@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#18243b;--muted:#718096;--line:#e8edf3;--soft:#f6f8fb;--teal:#c23f78;--teal2:#9f285d;--coral:#e96c9a;--gold:#f4bd63;--white:#fff;--shadow:0 18px 50px #17334a12;--radius:20px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff3f8;color:var(--ink);font:15px/1.55 'DM Sans',sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}img{display:block;max-width:100%;object-fit:cover}.wrap{width:min(1180px,calc(100% - 36px));margin:auto}.site-header{height:76px;background:#fff0f6;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 max(18px,calc((100vw - 1180px)/2));gap:36px;position:sticky;top:0;z-index:10}.brand{font:800 23px Manrope,sans-serif;letter-spacing:-1px;color:var(--teal);display:flex;align-items:center;gap:9px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;color:#fff;background:linear-gradient(145deg,var(--teal),#21b6a4);font-size:20px}.main-nav{display:flex;align-items:center;gap:25px;flex:1}.main-nav a{color:#59677a;font-size:14px;font-weight:600}.main-nav a:hover,.main-nav a.active{color:var(--teal)}.header-actions{display:flex;align-items:center;gap:12px}.btn{border:0;background:var(--teal);color:white;padding:12px 19px;border-radius:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.2s}.btn:hover{background:var(--teal2);transform:translateY(-1px)}.btn-light{background:#e8f6f4;color:var(--teal)}.btn-outline{background:white;color:var(--teal);border:1px solid #b7dcd7}.btn-coral{background:var(--coral)}.btn-wide{width:100%}.text-btn{background:none;border:0;color:#526176;font-weight:700}.hero{background:linear-gradient(100deg,#092e2adf,#092e2a4d),url('images/16689972e5ebcf-big.avif') center/cover;min-height:440px;border-radius:26px;margin:28px auto;color:#fff;display:flex;align-items:center;padding:56px;overflow:hidden}.hero-copy{max-width:610px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:800;color:#b4e8df}.hero h1{font:800 clamp(36px,5vw,60px)/1.08 Manrope,sans-serif;letter-spacing:-2px;margin:15px 0}.hero p{font-size:17px;color:#edf7f5;max-width:510px}.hero-actions{display:flex;gap:12px;margin-top:25px;flex-wrap:wrap}.hero .btn-light{background:#fff;color:var(--teal)}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:34px 0 18px}.section-head h2{font:800 27px Manrope;margin:0;letter-spacing:-.8px}.muted{color:var(--muted)}.filters{display:flex;gap:10px;flex-wrap:wrap;background:#fff;padding:16px;border:1px solid var(--line);border-radius:16px;margin:20px 0}.filters input,.filters select,.field input,.field select,.field textarea,.search-input{border:1px solid #dfe6ee;border-radius:10px;padding:12px 13px;background:#fff;color:var(--ink);min-width:0}.filters input{flex:1;min-width:150px}.member-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.member-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 5px 18px #20394a08;transition:.2s}.member-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.member-photo{height:240px;position:relative;background:#dcebe7}.member-photo img{width:100%;height:100%;object-fit:cover}.online{position:absolute;left:12px;top:12px;background:#fff;border-radius:20px;padding:5px 9px;font-size:11px;font-weight:700}.online:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#29b879;margin-right:6px}.heart{position:absolute;right:12px;top:12px;border:0;background:#ffffffdf;border-radius:50%;width:36px;height:36px;font-size:19px;color:#d45b66}.member-info{padding:15px}.member-info h3{margin:0;font-size:17px}.member-info p{margin:5px 0 12px;color:var(--muted);font-size:13px}.tags{display:flex;gap:6px;flex-wrap:wrap}.tag{font-size:11px;padding:5px 8px;border-radius:8px;background:#edf7f5;color:#24756e}.card-actions{display:flex;gap:8px;margin-top:14px}.card-actions .btn{padding:9px 12px;font-size:12px;flex:1}.panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:25px;box-shadow:0 5px 24px #20394a07}.page-title{margin:30px 0 20px}.page-title h1{font:800 34px Manrope;margin:0 0 5px;letter-spacing:-1px}.two-col{display:grid;grid-template-columns:260px 1fr;gap:22px}.side-menu{display:flex;flex-direction:column;gap:5px}.side-menu a{padding:11px 13px;border-radius:10px;color:#5b687a;font-weight:600}.side-menu a.active,.side-menu a:hover{background:#eaf6f4;color:var(--teal)}.profile-top{display:grid;grid-template-columns:250px 1fr;gap:26px;align-items:start}.profile-top>img{width:100%;height:320px;border-radius:16px}.profile-stats{display:flex;gap:22px;flex-wrap:wrap;margin:18px 0;color:#5e6d7f}.profile-stats strong{color:var(--ink)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-weight:700;font-size:13px}.field input,.field select,.field textarea{width:100%}.field.full{grid-column:1/-1}.account-main{min-height:calc(100vh - 76px);display:grid;grid-template-columns:1.1fr .9fr;max-width:1180px;margin:30px auto;background:#fff;border-radius:26px;overflow:hidden;box-shadow:var(--shadow)}.account-art{background:linear-gradient(120deg,#073b35e8,#073b3570),url('images/16689972e5ebcf-big.avif') center/cover;color:#fff;padding:55px;display:flex;flex-direction:column;justify-content:center;min-height:650px}.account-art h1{font:800 48px/1.1 Manrope;letter-spacing:-1.5px;margin:18px 0}.account-art p{max-width:430px;color:#e0f2ef}.account-perks{display:grid;gap:12px;margin-top:28px;color:#fff}.account-panel{padding:48px;align-self:center}.account-tabs{display:flex;background:#f1f5f7;border-radius:12px;padding:4px;margin-bottom:28px}.account-tab{border:0;background:transparent;padding:11px;flex:1;border-radius:9px;color:#6b788a;font-weight:700}.account-tab.active{background:#fff;color:var(--teal);box-shadow:0 2px 8px #1d343b10}.account-panel h2{font:800 29px Manrope;margin:0}.account-form{display:grid;gap:15px;margin-top:22px}.account-form .field{gap:7px}.form-message{min-height:20px;color:var(--teal);font-size:13px}.chat-layout{display:grid;grid-template-columns:300px 1fr;min-height:620px;overflow:hidden;padding:0}.chat-people{border-right:1px solid var(--line)}.chat-heading{padding:20px;border-bottom:1px solid var(--line)}.chat-person{display:flex;gap:12px;align-items:center;padding:14px 18px;border-bottom:1px solid #f0f3f6;cursor:pointer}.chat-person.active,.chat-person:hover{background:#edf8f6}.avatar{width:46px;height:46px;border-radius:50%;object-fit:cover;flex:none}.chat-person strong{display:block}.chat-person small{color:var(--muted)}.chat-window{display:flex;flex-direction:column;min-width:0}.chat-top{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}.chat-messages{padding:24px;flex:1;min-height:320px;max-height:440px;overflow:auto;background:linear-gradient(#fbfcfd,#f7fafb);display:flex;flex-direction:column;gap:12px}.bubble{max-width:75%;padding:11px 14px;border-radius:15px;background:#fff;border:1px solid var(--line);align-self:flex-start;box-shadow:0 2px 5px #142d3d06;overflow-wrap:anywhere}.bubble.mine{background:var(--teal);color:#fff;align-self:flex-end;border-color:var(--teal)}.bubble small{display:block;font-size:10px;opacity:.7;margin-top:4px}.chat-compose{padding:16px;border-top:1px solid var(--line)}.compose-tools{display:flex;gap:8px;align-items:center;margin-bottom:10px;flex-wrap:wrap}.compose-tools select{padding:6px;border:1px solid var(--line);border-radius:8px}.compose-row{display:flex;gap:10px}.compose-row textarea{flex:1;resize:vertical;min-height:48px;max-height:140px;border:1px solid #dfe6ee;border-radius:12px;padding:12px}.inbox-list{display:grid}.inbox-item{display:grid;grid-template-columns:55px 1fr auto;align-items:center;gap:14px;padding:15px 5px;border-bottom:1px solid var(--line)}.inbox-item h3{margin:0;font-size:15px}.inbox-item p{margin:3px 0;color:var(--muted);font-size:13px}.footer{padding:32px 0 24px;color:#7a8797;font-size:12px;text-align:center}.footer a{margin:0 7px}.empty{padding:35px;text-align:center;color:var(--muted)}.notice{background:#fff7e9;color:#7b5b24;border:1px solid #f6e4bf;border-radius:12px;padding:12px 15px;font-size:13px;margin:15px 0}.mobile-menu{display:none}@media(max-width:900px){.member-grid{grid-template-columns:repeat(2,1fr)}.site-header{gap:16px}.main-nav{gap:13px}.account-main{margin:18px;grid-template-columns:1fr}.account-art{min-height:330px;padding:35px}.account-panel{padding:30px}.two-col{grid-template-columns:1fr}.side-menu{flex-direction:row;overflow:auto}.profile-top{grid-template-columns:200px 1fr}}@media(max-width:620px){.site-header{height:auto;min-height:68px;padding:12px 16px;flex-wrap:wrap;gap:12px}.main-nav{order:3;flex-basis:100%;justify-content:space-between;gap:9px}.main-nav a{font-size:12px}.header-actions .text-btn{display:none}.brand{font-size:20px}.wrap{width:calc(100% - 24px)}.hero{padding:30px 23px;min-height:380px;margin:14px auto}.hero h1{font-size:39px}.member-grid{grid-template-columns:1fr 1fr;gap:10px}.member-photo{height:175px}.member-info{padding:11px}.member-info h3{font-size:14px}.member-info p{font-size:11px}.card-actions{flex-direction:column}.card-actions .btn{width:100%}.section-head h2{font-size:23px}.account-main{margin:10px;border-radius:18px}.account-art{padding:27px;min-height:290px}.account-art h1{font-size:36px}.account-panel{padding:22px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.profile-top{grid-template-columns:1fr}.profile-top>img{height:300px}.chat-layout{grid-template-columns:1fr}.chat-people{display:flex;overflow:auto;border-right:0;border-bottom:1px solid var(--line)}.chat-heading{display:none}.chat-person{min-width:155px;border-bottom:0}.chat-person .person-copy{font-size:12px}.chat-messages{min-height:280px;padding:15px}.inbox-item{grid-template-columns:45px 1fr auto;gap:9px}.inbox-item .avatar{width:42px;height:42px}.inbox-item .btn{padding:8px;font-size:11px}.page-title h1{font-size:29px}}


/* DateAThai visual refresh */
.logo-brand{width:155px;flex-shrink:0}.logo-brand img{width:100%;height:48px;object-fit:contain;object-position:left center}.user-menu{position:relative}.user-menu-trigger{display:flex;align-items:center;gap:7px;border:1px solid var(--line);background:#fff;border-radius:13px;padding:5px 8px}.user-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:linear-gradient(140deg,#0d8177,#75c7a9);color:#fff;font-weight:800}.menu-caret{color:#718096}.user-menu-panel{display:none;position:absolute;right:0;top:calc(100% + 10px);width:220px;background:#fff;border:1px solid var(--line);box-shadow:0 18px 40px #102c2a24;border-radius:14px;padding:7px;z-index:30}.user-menu.open .user-menu-panel{display:block}.user-menu-panel a{display:block;padding:11px 12px;border-radius:8px;color:#5b6678;font-size:14px}.user-menu-panel a:hover{background:#eef8f6;color:var(--teal)}
.home-hero{position:relative;isolation:isolate;min-height:660px;padding:50px max(24px,calc((100vw - 1180px)/2));display:grid;grid-template-columns:minmax(0,1.15fr) minmax(350px,.8fr);gap:55px;align-items:center;background:#103f3a url('images/thai-illustrated-background.jpg') center/cover no-repeat;color:white}.home-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,37,37,.82),rgba(5,47,45,.48) 52%,rgba(5,47,45,.22));z-index:-1}.home-hero-content{max-width:600px}.home-hero .eyebrow{color:#d2f5e6}.home-hero h1{font:800 clamp(43px,5.5vw,72px)/1.03 Manrope,sans-serif;letter-spacing:-2.8px;margin:20px 0}.home-hero h1 em{font-style:normal;color:#f4d59b}.home-hero-content>p{font-size:18px;line-height:1.75;color:#f1faf6;max-width:510px}.hero-trust{display:flex;gap:18px;flex-wrap:wrap;margin-top:30px;color:#f1e8d2;font-size:13px}.auth-card{background:#fff;color:var(--ink);border-radius:22px;padding:26px;box-shadow:0 24px 80px #082e2b50;max-width:480px;width:100%;justify-self:end}.auth-card-top{display:flex;gap:13px;align-items:center;margin-bottom:20px}.auth-brand-mark{width:45px;height:45px;display:grid;place-items:center;border-radius:14px;background:#e7f6f0;color:#0d8177;font-size:24px}.auth-card h2{font:800 21px Manrope,sans-serif;margin:0}.auth-card-top p{color:#788797;margin:3px 0 0;font-size:13px}.auth-card .account-tabs{display:grid;grid-template-columns:1fr 1fr;background:#f1f5f5;padding:4px;border-radius:12px;margin-bottom:22px}.auth-card .account-tab{border:0;background:transparent;border-radius:9px;padding:10px;color:#687887;font-weight:700}.auth-card .account-tab.active{background:#fff;color:var(--teal);box-shadow:0 2px 8px #123a3a12}.auth-card .field label{font-size:12px;color:#536273}.auth-card input,.auth-card select{border:1px solid #e1e8e9;border-radius:10px;padding:11px 12px;width:100%;background:#fff;min-width:0}.auth-card .account-form{display:grid;gap:13px}.auth-card .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.auth-card .field{min-width:0}.auth-card .btn-wide{padding:13px}.auth-switch{text-align:center;font-size:13px;color:#73818f;margin:0}.auth-switch button{border:0;background:none;color:var(--teal);font-weight:800;padding:0}.auth-note{font-size:11px;color:#8a96a2;text-align:center;margin:15px 0 0}.consent-line{font-size:12px;color:#657382;display:flex;gap:8px;align-items:flex-start}.consent-line input{width:auto;margin-top:4px}.photo-strip{display:grid;grid-template-columns:.8fr 1.2fr;gap:45px;align-items:center;padding-top:68px;padding-bottom:68px}.photo-strip h2,.values-panel h2{font:800 clamp(27px,3vw,38px)/1.2 Manrope,sans-serif;letter-spacing:-1px;margin:12px 0}.photo-strip-copy p,.values-panel p{color:#718096;line-height:1.8}.photo-mosaic{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:155px 155px;gap:12px}.photo-mosaic img{width:100%;height:100%;border-radius:16px;object-fit:cover}.photo-mosaic img:first-child{grid-row:span 2}.values-panel{margin-top:60px;margin-bottom:60px;background:#edf7f3;border-radius:22px;padding:32px 38px;display:flex;align-items:center;justify-content:space-between;gap:25px}.values-panel p{max-width:680px;margin-bottom:0}.home-page .section-head{margin-top:30px}.home-page .footer{margin-top:60px}
@media(max-width:900px){.home-hero{grid-template-columns:1fr;gap:28px;padding:44px 24px}.home-hero-content{max-width:720px}.auth-card{justify-self:start;max-width:560px}.photo-strip{grid-template-columns:1fr;gap:25px}.site-header{gap:18px}.main-nav{gap:14px}.header-actions .text-btn{display:none}}
@media(max-width:640px){.site-header{height:auto;min-height:68px;padding:10px 14px;gap:10px;flex-wrap:wrap}.logo-brand{width:125px}.logo-brand img{height:38px}.main-nav{order:3;flex-basis:100%;justify-content:space-between;gap:8px;padding:5px 0}.main-nav a{font-size:12px}.header-actions{margin-left:auto;gap:7px}.header-actions>.btn{padding:9px 11px;font-size:12px}.home-hero{padding:32px 16px;min-height:0}.home-hero h1{font-size:43px}.home-hero-content>p{font-size:15px}.auth-card{padding:19px}.auth-card .form-grid{grid-template-columns:1fr}.photo-strip{padding-top:42px;padding-bottom:42px}.photo-mosaic{grid-template-rows:120px 120px}.values-panel{display:block;padding:25px;margin-top:35px;margin-bottom:35px}.values-panel .btn{margin-top:18px}.user-menu-panel{right:-4px}}


/* DateAThai homepage refresh — premium editorial layout */
.home-page{background:#f7f8f5}
.home-page .site-header{height:78px;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);box-shadow:0 8px 28px rgba(17,46,43,.06);border-bottom:1px solid rgba(20,65,58,.08);gap:clamp(16px,3vw,42px)}
.home-page .brand img{width:48px;height:48px;object-fit:contain;border-radius:14px}
.home-page .main-nav a{font-size:14px;letter-spacing:.1px}
.home-page .header-actions .btn{border-radius:999px;padding:11px 20px;box-shadow:0 7px 18px rgba(13,129,119,.18)}
.home-hero{min-height:700px;padding:clamp(28px,5vw,72px) max(20px,calc((100vw - 1240px)/2));grid-template-columns:minmax(0,1.05fr) minmax(360px,.8fr);gap:clamp(28px,5vw,76px);background-image:url('images/thai-illustrated-background.jpg');background-position:center 48%;background-size:cover}
.home-hero-shade{background:linear-gradient(90deg,rgba(5,30,31,.78) 0%,rgba(5,39,38,.58) 43%,rgba(7,40,38,.17) 100%),linear-gradient(0deg,rgba(5,30,31,.22),transparent 48%)}
.home-hero-content{max-width:620px;padding:18px 0}
.home-hero .eyebrow{display:inline-flex;padding:9px 13px;border:1px solid #ffffff45;background:#ffffff14;border-radius:999px;letter-spacing:1.7px;font-size:10px;backdrop-filter:blur(6px)}
.home-hero h1{font-size:clamp(48px,6vw,82px);line-height:.99;letter-spacing:-3.8px;margin:24px 0}
.home-hero h1 em{color:#ffd9a0;text-shadow:0 4px 22px #0002}
.home-hero-content>p{font-size:clamp(16px,1.4vw,19px);line-height:1.8;color:#f3f8f5;max-width:490px}
.hero-trust{gap:10px;margin-top:32px}
.hero-trust span{border:1px solid #ffffff3d;background:#ffffff14;backdrop-filter:blur(8px);border-radius:999px;padding:9px 12px;color:#fff;font-size:12px}
.auth-card{max-width:490px;border:1px solid #ffffffb8;border-radius:26px;padding:clamp(22px,3vw,34px);box-shadow:0 30px 90px #061f1c66;backdrop-filter:blur(14px)}
.auth-brand-mark{border-radius:16px;background:linear-gradient(145deg,#e5f6ed,#fff0dc);color:#0b8176;width:48px;height:48px}
.auth-card h2{font-size:23px;letter-spacing:-.7px}
.auth-card .account-tabs{background:#f3f6f4;border-radius:14px;padding:5px}
.auth-card .account-tab{padding:12px 10px}
.auth-card .account-tab.active{background:white;color:#087d72;box-shadow:0 3px 12px #173a3314}
.auth-card .field label{font-size:12px;color:#43544f}
.auth-card input,.auth-card select,.auth-card textarea{border:1px solid #dfe8e3;border-radius:12px;padding:12px 13px;transition:border-color .18s,box-shadow .18s}
.auth-card input:focus,.auth-card select:focus,.auth-card textarea:focus{outline:none;border-color:#42a99a;box-shadow:0 0 0 3px #0d81771a}
.auth-card .account-form{gap:14px}
.auth-card .btn-wide{border-radius:13px;padding:14px 16px;background:linear-gradient(110deg,#087d72,#159e8d);box-shadow:0 8px 18px #0d81772a}
.auth-card .btn-wide:hover{background:linear-gradient(110deg,#06685f,#0d8177)}
.auth-card .form-grid{gap:13px}
.auth-note{font-size:12px;color:#7c8983}
.photo-strip{margin-top:54px;margin-bottom:54px;align-items:center;gap:clamp(25px,5vw,64px)}
.photo-strip-copy h2{font:800 clamp(27px,3vw,38px)/1.12 Manrope,sans-serif;letter-spacing:-1.3px;color:#172e2b}
.photo-strip-copy p{color:#697b75;line-height:1.8}
.photo-strip-gallery{gap:14px}
.photo-strip-gallery img{border-radius:20px;box-shadow:0 12px 35px #193a3215}
.home-page .site-footer{margin-top:30px}
.user-menu-panel{z-index:20;box-shadow:0 18px 45px #172b2922;border:1px solid #e5ece8;border-radius:16px;overflow:hidden}
.user-menu-panel a{padding:12px 18px}
@media(max-width:900px){.home-hero{grid-template-columns:1fr;gap:28px;min-height:unset;padding-top:55px;padding-bottom:55px;background-position:58% center}.home-hero-content{max-width:720px}.auth-card{justify-self:start;max-width:620px}.home-hero h1{font-size:clamp(46px,9vw,72px)}}
@media(max-width:600px){.home-page .site-header{height:auto;min-height:68px;flex-wrap:wrap;padding:10px 16px;gap:12px}.home-page .brand img{width:42px;height:42px}.home-page .main-nav{order:3;width:100%;overflow-x:auto;gap:18px;padding:4px 0}.home-page .main-nav a{white-space:nowrap}.home-page .header-actions{margin-left:auto}.home-page .header-actions .text-btn{padding:6px}.home-hero{padding:34px 16px 38px;gap:22px}.home-hero h1{letter-spacing:-2.3px}.home-hero-content>p{font-size:16px}.hero-trust{gap:7px}.hero-trust span{font-size:11px;padding:8px 10px}.auth-card{padding:21px 17px;border-radius:20px}.auth-card .form-grid{grid-template-columns:1fr}.auth-card .field.full{grid-column:auto}.photo-strip{grid-template-columns:1fr;margin-top:32px;margin-bottom:32px;gap:20px}}


/* Compact, photo-led authentication homepage refresh */
body.compact-home{background:#f5f7f6;color:#182d32;min-height:100vh}
.compact-home .site-header{height:68px;padding:0 max(22px,calc((100vw - 1240px)/2));box-shadow:0 2px 16px rgba(18,48,48,.045)}
.compact-home .main-nav a[data-member-link]{display:none!important}
.compact-home .site-header .header-actions .text-btn{color:#40545b}
.auth-home-main{width:min(1240px,calc(100% - 40px));margin:24px auto 20px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(390px,.78fr);gap:28px;align-items:stretch;min-height:calc(100vh - 132px)}
.welcome-visual{position:relative;overflow:hidden;min-height:620px;border-radius:26px;background:linear-gradient(145deg,#e7f3ed,#f9f0e4 70%,#e8f1ed);padding:38px;display:flex;flex-direction:column;justify-content:space-between}
.visual-copy{position:relative;z-index:2;max-width:520px}.visual-copy .eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:#137d70}.visual-copy h1{font:800 clamp(35px,4.2vw,57px)/1.06 Manrope,system-ui,sans-serif;letter-spacing:-2px;color:#163c3a;margin:15px 0}.visual-copy h1 em{font-style:normal;color:#d16c55}.visual-copy p{font-size:15px;line-height:1.65;color:#566b6a;max-width:410px}.visual-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.visual-pills span{background:#ffffffc9;border:1px solid #ffffff;padding:8px 12px;border-radius:99px;font-size:12px;font-weight:700;color:#41615a}
.member-photo-collage{position:relative;height:330px;max-width:550px;width:100%;margin:14px auto 8px}.member-photo-collage figure{position:absolute;margin:0;overflow:hidden;border-radius:18px;box-shadow:0 15px 35px #183f3520}.member-photo-collage img{width:100%;height:100%;object-fit:cover;display:block}.collage-main{left:10%;top:0;width:48%;height:285px;z-index:2}.collage-main figcaption{position:absolute;bottom:0;left:0;right:0;padding:30px 14px 14px;color:white;background:linear-gradient(transparent,#102b28d9);display:flex;flex-direction:column;gap:3px}.collage-main figcaption b{font-size:14px}.collage-main figcaption span{font-size:11px;opacity:.9}.collage-small{width:34%;height:190px;border:5px solid #f3f6ef}.collage-one{right:4%;top:10px;transform:rotate(5deg)}.collage-two{right:12%;bottom:0;transform:rotate(-5deg)}.collage-note{position:absolute;left:0;bottom:25px;z-index:3;display:flex;gap:10px;align-items:center;background:#fff;padding:12px 16px;border-radius:15px;box-shadow:0 12px 28px #153b3018}.note-heart{width:32px;height:32px;border-radius:11px;background:#fce9e5;color:#d16c55;display:grid;place-items:center}.collage-note b,.collage-note small{display:block}.collage-note b{font-size:12px;color:#254541}.collage-note small{font-size:11px;color:#7c8d88;margin-top:2px}.visual-footnote{font-size:11px;color:#71827b;margin-top:12px}
.auth-home-panel{display:flex;align-items:center;justify-content:center;min-width:0}.auth-home-panel .auth-card{max-width:500px;width:100%;justify-self:auto;padding:27px;border:1px solid #e8eeeb;border-radius:22px;box-shadow:0 12px 40px rgba(26,58,49,.08);max-height:calc(100vh - 130px);overflow-y:auto}.auth-home-panel .auth-card-top{margin-bottom:16px}.auth-home-panel .auth-card h2{font-size:20px}.auth-home-panel .account-tabs{margin-bottom:16px}.auth-home-panel .account-form .field{margin-bottom:11px}.auth-home-panel .auth-card input,.auth-home-panel .auth-card select,.auth-home-panel .auth-card textarea{font-size:13px;padding:10px 11px}.auth-home-panel .form-grid{gap:10px 12px}.auth-home-panel .auth-note{font-size:11px}.compact-footer{padding:8px 18px 12px;margin:0;text-align:center;font-size:11px}.compact-footer p{margin:0}
@media(max-width:900px){.auth-home-main{grid-template-columns:1fr;max-width:640px;min-height:0}.welcome-visual{min-height:520px;padding:28px}.auth-home-panel .auth-card{max-height:none}.member-photo-collage{height:280px}.collage-main{height:245px}}
@media(max-width:620px){.auth-home-main{width:calc(100% - 20px);margin:12px auto;gap:14px}.welcome-visual{min-height:440px;padding:23px;border-radius:20px}.visual-copy h1{font-size:39px}.visual-copy p{font-size:14px}.member-photo-collage{height:220px;margin-top:8px}.collage-main{height:200px;left:7%;width:49%}.collage-small{height:140px;width:35%}.collage-note{bottom:7px;padding:9px 11px}.compact-home .site-header{padding:10px 14px}.auth-home-panel .auth-card{padding:20px}.auth-home-panel .form-grid{grid-template-columns:1fr 1fr}.auth-home-panel .form-grid .full{grid-column:1/-1}}

/* Compact boxed member preview on the homepage */
.auth-home-main{grid-template-columns:minmax(0,1.08fr) minmax(360px,.78fr);gap:24px;max-width:1180px;margin:22px auto;padding:0 18px;min-height:calc(100vh - 112px)}
.welcome-visual{min-height:0;padding:30px;background:linear-gradient(145deg,#f2f8f5,#fff8f1);border:1px solid #e5eee8}
.visual-copy h1{font-size:clamp(30px,3.1vw,43px);letter-spacing:-1.5px}
.home-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:18px 0 8px}
.home-profile-card{margin:0;background:#fff;border:1px solid #e6ece8;border-radius:15px;overflow:hidden;box-shadow:0 8px 22px #163f3510;min-width:0}
.home-profile-card img{width:100%;height:clamp(130px,17vh,190px);object-fit:cover;object-position:center 30%}
.home-profile-info{padding:10px 12px 12px;display:flex;flex-direction:column;gap:2px}
.home-profile-info strong{font-size:14px;color:#203d39}
.home-profile-info span{font-size:11px;color:#74847f}
.visual-footnote{margin-top:auto;padding-top:8px}
.auth-home-panel .auth-card{max-width:470px}
@media(max-width:900px){.auth-home-main{grid-template-columns:1fr;max-width:660px}.welcome-visual{min-height:0}.home-profile-card img{height:170px}}
@media(max-width:620px){.home-profile-grid{gap:9px}.home-profile-card img{height:145px}.auth-home-main{padding:0 10px}.welcome-visual{padding:20px}.visual-copy h1{font-size:34px}}

/* Homepage authentication redesign inspired by the supplied account.html reference */
body.home-page.compact-home{background:#f4f7f7;min-height:100vh}
.home-page .site-header{height:68px;position:relative;padding-inline:clamp(18px,4vw,56px);box-shadow:0 1px 0 rgba(20,50,55,.05)}
.home-page .logo-brand img{width:158px;height:auto;object-fit:contain}
.home-page .main-nav a[data-member-link],.home-page .header-actions .auth-only{display:none}
.home-page .header-actions .text-btn,.home-page .header-actions>.btn{font-size:13px}
.auth-home-main{width:min(1180px,calc(100% - 40px));margin:28px auto 36px;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(370px,.82fr);gap:24px;align-items:stretch;min-height:calc(100vh - 132px)}
.welcome-visual{position:relative;isolation:isolate;overflow:hidden;border-radius:24px;background:linear-gradient(145deg,#0b615c,#123b3a 72%);padding:clamp(26px,3vw,42px);color:#fff;display:flex;flex-direction:column;justify-content:space-between;min-height:620px}
.welcome-visual:before{content:"";position:absolute;z-index:-1;width:360px;height:360px;border-radius:50%;background:#ffffff0b;right:-120px;top:-120px}
.welcome-visual:after{content:"";position:absolute;z-index:-1;width:280px;height:280px;border-radius:50%;border:1px solid #ffffff1b;right:-40px;top:-30px}
.visual-copy{max-width:520px}
.visual-copy .eyebrow{color:#bdebe3;font-size:10px;letter-spacing:2px}
.visual-copy h1{font:800 clamp(32px,3.6vw,48px)/1.1 Manrope,sans-serif;letter-spacing:-1.8px;margin:16px 0 12px}
.visual-copy h1 em{font-style:normal;color:#ffd7a2}
.visual-copy>p{max-width:420px;color:#e0f0ed;font-size:15px;margin:0}
.visual-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}
.visual-pills span{border:1px solid #ffffff36;background:#ffffff12;border-radius:30px;padding:7px 12px;font-size:12px;color:#f4fffd}
.home-profile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:26px 0 16px;align-items:start}
.home-profile-card{min-width:0;background:#fff;color:#18243b;border-radius:14px;overflow:hidden;box-shadow:0 10px 24px #062e2b24}
.home-profile-card img{width:100%;height:clamp(112px,15vw,178px);object-fit:cover;object-position:center 25%}
.home-profile-info{padding:10px 9px 12px;display:flex;flex-direction:column;gap:3px}
.home-profile-info strong{font-size:12px;line-height:1.3}
.home-profile-info span{font-size:10px;line-height:1.35;color:#718096}
.visual-footnote{font-size:11px;color:#c7e4df;margin-top:auto}
.auth-home-panel{display:flex;align-items:center;justify-content:center}
.auth-card{width:100%;background:#fff;border:1px solid #e9eeee;border-radius:24px;padding:clamp(24px,3vw,38px);box-shadow:0 18px 55px rgba(22,52,60,.08)}
.auth-card-top{display:flex;align-items:center;gap:13px;margin-bottom:22px}
.auth-brand-mark{width:46px;height:46px;flex:0 0 46px;border-radius:15px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#0d8177,#075e59);font-size:22px}
.auth-card-top h2{font:800 23px/1.2 Manrope,sans-serif;letter-spacing:-.7px;margin:0 0 4px}
.auth-card-top p{font-size:13px;color:#718096;margin:0}
.account-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:12px;background:#f1f5f5;margin-bottom:24px}
.account-tab{border:0;background:transparent;color:#697780;padding:11px 8px;border-radius:9px;font-weight:700;font-size:13px}
.account-tab.active{background:#fff;color:#08766d;box-shadow:0 2px 8px #123b3a12}
.account-form{display:grid;gap:14px}
.account-form .field{display:flex;flex-direction:column;gap:6px}
.account-form .field label{font-size:12px;font-weight:700;color:#35434a}
.account-form input,.account-form select{width:100%;min-height:44px;padding:11px 12px;border:1px solid #dfe7e7;border-radius:10px;background:#fff;color:#18243b;outline:none;font-size:13px}
.account-form input:focus,.account-form select:focus{border-color:#0d9b8e;box-shadow:0 0 0 3px #0d9b8e18}
.account-form .btn{min-height:46px;border-radius:10px;margin-top:3px}
.auth-switch{font-size:12px;color:#77858c;text-align:center;margin:0}
.auth-switch button{border:0;background:none;color:#08766d;font-weight:800;padding:0}
.form-message{font-size:12px;margin:0}
#homeRegisterForm .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
#homeRegisterForm[hidden],#homeLoginForm[hidden]{display:none}
@media(max-width:900px){.auth-home-main{grid-template-columns:minmax(0,1fr) minmax(340px,.9fr);gap:16px}.welcome-visual{padding:24px;min-height:590px}.home-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-profile-card img{height:145px}.home-profile-card:nth-child(n+3){display:none}}
@media(max-width:700px){.home-page .main-nav{display:none}.auth-home-main{width:min(520px,calc(100% - 24px));margin:14px auto 24px;grid-template-columns:1fr;gap:14px}.welcome-visual{min-height:0;padding:24px;border-radius:20px}.visual-copy h1{font-size:34px}.home-profile-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:20px 0 12px}.home-profile-card:nth-child(n){display:block}.home-profile-card img{height:105px}.home-profile-info{padding:7px 6px}.home-profile-info strong{font-size:10px}.home-profile-info span{font-size:9px}.visual-footnote{margin-top:4px}.auth-card{padding:23px;border-radius:20px}.auth-card-top h2{font-size:21px}}
@media(max-width:390px){#homeRegisterForm .form-grid{grid-template-columns:1fr}.home-profile-card img{height:90px}}

/* Homepage header blends into the page background (no white strip or divider). */
.home-page.compact-home .site-header{
  background:#f7f9fc !important;
  border-bottom:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
}
.home-page.compact-home{background:#f7f9fc;}

/* Compact registration controls and password strength feedback */
.field-hint,.password-meter small{display:block;font-size:11px;color:#6b7c89;margin-top:4px}.password-meter{margin-top:5px}.password-meter-track{height:5px;border-radius:8px;background:#e5e9ec;overflow:hidden}.password-meter-track span{display:block;height:100%;width:0;background:#dc5b5b;transition:width .18s,background .18s}.password-meter-track span.strong{background:#16a34a}.compact-consent{display:flex!important;align-items:center;gap:8px;font-size:12px!important;line-height:1.35;margin:10px 0!important}.compact-consent input{flex:0 0 auto;margin:0}.field-hint.available{color:#16803d}.field-hint.taken{color:#c62828}

/* Fix the age-confirmation checkbox: keep checkbox and copy together on one line. */
.account-form .compact-consent {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  width: 100%;
  min-width: 0;
}
.account-form .compact-consent input[type="checkbox"] {
  display: block;
  flex: 0 0 18px !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px;
  height: 18px;
  min-height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #0d8177;
}
.account-form .compact-consent span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

/* Member demo profiles and private-message sidebar */
.profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px;align-items:start}
.profile-main{min-width:0}
.private-message-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 5px 24px #20394a07;position:sticky;top:96px}
.private-message-panel h2{font:800 21px Manrope;margin:0 0 7px}
.private-message-panel form{display:grid;gap:10px;margin-top:16px}
.private-message-panel label{font-size:13px;font-weight:700}
.private-message-panel textarea{width:100%;resize:vertical;border:1px solid #dfe6ee;border-radius:11px;padding:12px;min-height:130px}
.fine-print{font-size:11px;color:var(--muted);margin-top:12px}
.profile-gallery{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}
.profile-gallery .section-head{margin:0 0 14px;align-items:center}
.profile-gallery .section-head h2{font:800 22px Manrope;margin:0}
.gallery-add{position:relative;cursor:pointer}
.profile-gallery-row{display:flex;gap:12px;overflow-x:auto;padding:2px 0 12px;min-height:100px}
.profile-gallery-row img{width:130px;height:130px;flex:0 0 130px;object-fit:cover;border-radius:13px;border:1px solid var(--line)}
.gallery-placeholder{min-width:100%;border:1px dashed #cbd9df;border-radius:12px;padding:25px;text-align:center;color:var(--muted);font-size:13px}
@media(max-width:900px){.profile-layout{grid-template-columns:1fr}.private-message-panel{position:static}}

/* DateAThai pink brand refresh */
:root{--line:#f1d9e4;--soft:#fff0f6;--shadow:0 18px 50px #7d24451a}
.site-header{border-bottom-color:#f0cbdc}
.btn{background:var(--teal)}.btn:hover{background:var(--teal2)}
.tag,.side-menu a.active,.side-menu a:hover{background:#ffe4ef;color:#9f285d}
.member-card,.panel,.account-main,.plan,.filters{border-color:#f1d9e4}
.language-picker{display:flex;align-items:center;gap:5px;margin-left:auto}
.language-picker button{border:1px solid #f0cbdc;background:#fff7fa;border-radius:9px;padding:5px 7px;font-size:12px;cursor:pointer}
.language-picker button[aria-pressed="true"]{background:#c23f78;color:#fff;border-color:#c23f78}
@media(max-width:1050px){.language-picker{order:3;margin-left:0}.site-header{height:auto;min-height:76px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}.main-nav{flex-wrap:wrap;gap:12px}}

.profile-details-card{margin:24px 0;padding:20px;background:#fff7fa;border:1px solid #f1d2e0;border-radius:16px}
.profile-details-card h2{margin:0 0 16px;font-size:20px}
.profile-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.profile-detail-grid>div{display:flex;flex-direction:column;gap:3px;padding:10px;background:#fff;border-radius:10px;border:1px solid #f5e1e9;min-width:0}
.profile-detail-grid small{color:#9b6078;font-weight:700}.profile-detail-grid strong{overflow-wrap:anywhere}
.admin-avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;background:#ffe4ef;vertical-align:middle}
@media(max-width:600px){.profile-detail-grid{grid-template-columns:1fr}}
.measure-row{display:grid;grid-template-columns:minmax(78px,.42fr) minmax(120px,1fr);gap:8px}.measure-row select{min-width:0}.language-picker{display:flex;flex-wrap:wrap;align-items:center;gap:4px}.language-picker button{border:1px solid #efc6d9;background:#fff7fb;border-radius:8px;padding:5px 7px;cursor:pointer;font-size:12px}.language-picker button[aria-pressed="true"]{background:#c23f78;color:#fff}

/* Compact member profile: keep details beside the portrait and gallery below. */
.profile-layout{grid-template-columns:minmax(0,1fr) 290px;gap:22px;align-items:start}
.profile-layout:not(:has(.private-message-panel)){grid-template-columns:minmax(0,1fr)}
.profile-main{min-width:0}
.profile-top{grid-template-columns:220px minmax(0,1fr);gap:22px;align-items:start}
.profile-top>img{width:220px;height:270px;object-fit:cover}
.profile-details-card{margin:15px 0;padding:14px;background:#fff7fa;border:1px solid #f1d2e0;border-radius:14px}
.profile-details-card h2{font-size:18px;margin:0 0 10px}
.profile-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.profile-detail-grid>div{padding:8px 9px;gap:2px;border-radius:8px}
.profile-detail-grid small{font-size:11px;line-height:1.35}
.profile-detail-grid strong{font-size:13px;line-height:1.4}
.profile-stats{gap:16px;margin:12px 0;font-size:13px}
.profile-gallery{grid-column:1/-1;margin-top:0;padding-top:18px}
.profile-gallery .section-head h2{font-size:20px}
.profile-gallery-row img{width:118px;height:118px;flex-basis:118px}
.private-message-panel{padding:17px}
@media(max-width:1000px){.profile-layout{grid-template-columns:minmax(0,1fr) 260px}.profile-top{grid-template-columns:190px minmax(0,1fr);gap:16px}.profile-top>img{width:190px;height:240px}.profile-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.profile-layout,.profile-layout:not(:has(.private-message-panel)){grid-template-columns:minmax(0,1fr)}.profile-top{grid-template-columns:150px minmax(0,1fr);gap:14px}.profile-top>img{width:150px;height:190px}.profile-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-gallery{grid-column:1}}
@media(max-width:520px){.profile-top{grid-template-columns:1fr}.profile-top>img{width:100%;height:260px}.profile-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-details-card{padding:11px}.profile-detail-grid>div{padding:7px}}

/* Screenshot-matched member profile: identity rail, compact details table, gallery underneath */
.profile-reference-card{background:#fff;border:1px solid #f1d9e4;border-radius:20px;padding:20px;box-shadow:0 6px 24px #7d24450b;min-width:0}
.profile-reference-grid{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;align-items:start}
.profile-identity{min-width:0;padding:0 0 8px}
.profile-portrait{width:100%;height:218px;object-fit:cover;object-position:center 25%;border-radius:13px;border:0}
.profile-identity h2{font:800 19px/1.3 Manrope,sans-serif;letter-spacing:-.3px;margin:12px 2px 5px;overflow-wrap:anywhere}
.profile-age{font-size:13px;font-weight:700;margin:4px 6px;color:#293447}
.profile-location{margin:5px 6px;color:var(--muted);line-height:1.4}
.profile-member-tag{display:inline-flex;margin:8px 4px;font-size:10px}
.profile-content{min-width:0}
.profile-card-actions{display:flex;justify-content:flex-end;min-height:30px;margin:-5px 0 4px}
.profile-card-actions .btn{padding:7px 13px;font-size:12px}
.profile-intro{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(140px,.9fr);gap:20px;align-items:start}
.profile-bio{margin:10px 0 17px;font-size:13px;line-height:1.5}
.profile-stats{display:flex;gap:17px;flex-wrap:wrap;margin:10px 0 14px;font-size:11px;line-height:1.45}
.profile-stats span{min-width:52px;color:#59677a}
.profile-stats strong{color:var(--ink);font-size:11px}
.profile-interests{padding-top:6px}
.profile-interests h3{font-size:14px;margin:0 0 13px}
.profile-interests .tags{gap:5px}
.profile-interests .tag{font-size:10px;padding:5px 8px}
.profile-details-card{margin:12px 0 0;padding:11px;background:#fff7fa;border:1px solid #f1d2e0;border-radius:13px}
.profile-details-card h2{font-size:16px;margin:0 0 9px}
.profile-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.profile-detail-grid>div{display:flex;flex-direction:column;gap:1px;padding:7px 8px;border-radius:8px;background:#fff;border:1px solid #f5e1e9;min-width:0}
.profile-detail-grid small{font-size:10px;line-height:1.3;color:#9b6078;font-weight:700}
.profile-detail-grid strong{font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.profile-member-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}
.profile-member-actions .btn{padding:9px 12px;font-size:12px}
.profile-gallery{margin:16px 0 0;padding:15px 0 0;border-top:1px solid #f2e5eb}
.profile-gallery .section-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px}
.profile-gallery .section-head h2{font:800 17px Manrope,sans-serif;margin:0}
.profile-gallery .gallery-add{padding:9px 13px;font-size:12px}
.profile-gallery-row{display:flex;gap:10px;overflow-x:auto;padding:2px 0 8px;min-height:90px}
.profile-gallery-row img{width:86px;height:86px;flex:0 0 86px;object-fit:cover;border-radius:10px;border:1px solid #f1d9e4}
.profile-gallery .gallery-placeholder{min-width:100%;padding:16px;text-align:left;background:#fffafd;border:1px dashed #edc9d9}
.profile-footnote{font-size:11px;color:var(--muted);text-align:center;margin:12px 0 0}
.profile-layout:has(.profile-reference-card){grid-template-columns:minmax(0,1fr) 270px;gap:18px}
.profile-layout:has(.profile-reference-card):not(:has(.private-message-panel)){grid-template-columns:minmax(0,1fr)}
@media(max-width:1000px){.profile-reference-grid{grid-template-columns:160px minmax(0,1fr);gap:14px}.profile-portrait{height:195px}.profile-intro{gap:12px}.profile-layout:has(.profile-reference-card){grid-template-columns:minmax(0,1fr) 245px}}
@media(max-width:760px){.profile-layout:has(.profile-reference-card),.profile-layout:has(.profile-reference-card):not(:has(.private-message-panel)){grid-template-columns:minmax(0,1fr)}.profile-reference-card{padding:14px}.profile-reference-grid{grid-template-columns:135px minmax(0,1fr);gap:12px}.profile-portrait{height:170px}.profile-intro{grid-template-columns:1fr}.profile-interests{padding-top:0}.profile-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){.profile-reference-grid{grid-template-columns:1fr}.profile-identity{display:grid;grid-template-columns:100px minmax(0,1fr);column-gap:12px;align-items:start}.profile-portrait{grid-row:span 4;width:100px;height:125px}.profile-identity h2{margin:4px 0;font-size:17px}.profile-age,.profile-location{margin:2px 0}.profile-member-tag{margin:4px 0}.profile-card-actions{margin-top:0}.profile-intro{grid-template-columns:1fr;gap:5px}.profile-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-gallery-row img{width:78px;height:78px;flex-basis:78px}}

/* Profile polish requested: readable white action labels and verified member badge */
.profile-identity{position:relative}
.profile-photo-wrap{position:relative;width:100%;margin:0 0 10px}
.profile-photo-wrap .profile-portrait{display:block;width:100%;margin:0}
.verified-user-badge{position:absolute;left:8px;top:8px;display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#16834a;color:#fff;font-size:11px;font-weight:800;line-height:1.2;box-shadow:0 2px 8px #1232}
.verified-user-badge span{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:50%;background:#fff;color:#16834a;font-size:11px}
.profile-card-actions .btn,.profile-gallery .gallery-add{color:#fff!important}
.profile-card-actions .btn:hover,.profile-gallery .gallery-add:hover{color:#fff!important;filter:brightness(.96)}

@media(max-width:520px){.profile-photo-wrap{grid-row:span 4}.profile-photo-wrap .profile-portrait{grid-row:auto}}

/* Full-size centered profile photo viewer */
.gallery-photo-open{display:block;flex:0 0 86px;width:86px;height:86px;padding:0;border:0;border-radius:10px;background:transparent;cursor:zoom-in;overflow:hidden}
.gallery-photo-open img{display:block;width:100%;height:100%;object-fit:cover;border-radius:10px;transition:transform .18s ease}
.gallery-photo-open:hover img{transform:scale(1.04)}
.photo-lightbox[hidden]{display:none!important}
.photo-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(17,18,31,.94);display:flex;flex-direction:column;align-items:center;padding:16px 20px 22px;color:#fff}
.photo-lightbox-toolbar{width:min(1200px,100%);display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:2px 0 14px}
.photo-lightbox-back{color:#fff;text-decoration:none;font-weight:750;background:#c43e7b;border:1px solid #e47aa6;border-radius:999px;padding:10px 16px}
.photo-lightbox-controls{display:flex;gap:8px;flex-wrap:wrap}
.photo-lightbox-controls button,.photo-lightbox-arrow{font:inherit;font-weight:700;color:#fff;background:#353342;border:1px solid #777387;border-radius:999px;padding:9px 14px;cursor:pointer}
.photo-lightbox-controls button:hover,.photo-lightbox-arrow:hover{background:#c43e7b}
.photo-lightbox-controls .photo-lightbox-close{background:#c43e7b;border-color:#c43e7b}
.photo-lightbox-stage{flex:1;min-height:0;width:100%;display:flex;align-items:center;justify-content:center;gap:16px}
.photo-lightbox-image{display:block;max-width:min(88vw,1200px);max-height:calc(100vh - 145px);width:auto;height:auto;object-fit:contain;border-radius:8px;box-shadow:0 12px 45px #0008}
.photo-lightbox-arrow{font-size:30px;line-height:1;min-width:46px;min-height:52px;padding:8px}
.photo-lightbox-count{margin:8px 0 0;color:#f6eaf0;font-size:13px}
body.photo-lightbox-open{overflow:hidden}
@media(max-width:600px){.photo-lightbox{padding:10px}.photo-lightbox-toolbar{align-items:flex-start}.photo-lightbox-controls{gap:5px}.photo-lightbox-controls button{padding:8px 10px;font-size:12px}.photo-lightbox-stage{gap:6px}.photo-lightbox-image{max-width:calc(100vw - 92px);max-height:calc(100vh - 170px)}.photo-lightbox-arrow{min-width:34px;min-height:42px;font-size:24px}.gallery-photo-open{width:78px;height:78px;flex-basis:78px}}

/* Member profile caption editor and public caption */
.profile-caption-form{margin:0 0 10px;padding:10px 12px;background:#fff7fa;border:1px solid #f5d5e2;border-radius:12px}.profile-caption-form label{display:block;font-size:12px;font-weight:700;color:#a13b68;margin-bottom:6px}.profile-caption-row{display:flex;gap:8px;align-items:center}.profile-caption-row input{flex:1;min-width:0;border:1px solid #ead5df;border-radius:9px;padding:10px 11px;font:inherit;font-size:13px;color:#18243c;background:#fff}.profile-caption-row .btn{color:#fff!important;white-space:nowrap}.member-caption{margin:4px 0 10px;font-size:20px;line-height:1.35;color:#18243c;font-weight:750}.profile-caption-form .form-message{margin:5px 0 0;font-size:12px}@media(max-width:520px){.profile-caption-row{align-items:stretch;flex-direction:column}.profile-caption-row .btn{width:100%}}


/* DateAThai responsive layout layer — phones, tablets and desktop */
:root { color-scheme: light; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-width: 320px; overflow-x: hidden; }
img, video, canvas, svg { max-width: 100%; }
input, select, textarea, button { max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 40px)); }
.panel, .admin-panel, .admin-card, .account-main, .profile-reference-card { min-width: 0; }
.member-grid, .home-profile-grid, .admin-grid, .admin-main-grid, .admin-form-grid,
.profile-detail-grid, .form-grid, .two-col, .profile-layout, .profile-reference-grid { min-width: 0; }
.admin-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { min-width: 900px; }
.language-picker, .header-actions, .main-nav { min-width: 0; }
.language-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
button, .btn, a { touch-action: manipulation; }
button, .btn, input, select { min-height: 40px; }

/* Medium laptops and tablets */
@media (max-width: 1100px) {
  .site-header { gap: 16px; padding-left: 20px; padding-right: 20px; }
  .main-nav { gap: 14px; }
  .header-actions { gap: 8px; }
  .auth-home-main { width: calc(100% - 32px); gap: 18px; }
  .admin-shell { padding-left: 18px; padding-right: 18px; }
  .admin-main-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
  .admin-table { min-width: 860px; }
}
@media (min-width: 701px) and (max-width: 900px) {
  .home-profile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .home-profile-card img { height: clamp(105px, 16vw, 145px); }
  .auth-home-main { grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); align-items: start; }
  .welcome-visual { min-height: 0; padding: 22px; }
  .visual-copy h1 { font-size: clamp(28px, 4vw, 38px); }
  .auth-home-panel .auth-card { padding: 20px; }
  .site-header { gap: 12px; }
  .brand { font-size: 19px; }
  .main-nav { gap: 10px; }
  .main-nav a { font-size: 12px; }
  .header-actions .btn { padding: 9px 12px; font-size: 12px; }
  .language-picker button, .language-picker a { padding: 6px 8px; font-size: 11px; }
}

/* Phones and narrow tablets */
@media (max-width: 700px) {
  html { scroll-padding-top: 12px; }
  .wrap { width: calc(100% - 24px); }
  .site-header, .home-page .site-header, .compact-home .site-header {
    position: relative; height: auto; min-height: 0; padding: 10px 12px;
    gap: 10px; flex-wrap: wrap; align-items: center;
  }
  .brand { font-size: 18px; gap: 7px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .logo-brand { width: 112px; }
  .logo-brand img { width: 100%; height: auto; max-height: 38px; object-fit: contain; }
  .header-actions { margin-left: auto; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .header-actions .btn { min-height: 36px; padding: 8px 11px; font-size: 12px; }
  .header-actions .text-btn { display: inline-flex; padding: 6px; font-size: 12px; }
  .language-picker { order: 4; flex: 1 0 100%; justify-content: flex-start; overflow: visible; }
  .language-picker button, .language-picker a { min-height: 32px; padding: 5px 8px; font-size: 11px; white-space: nowrap; }
  .main-nav { order: 5; display: flex; flex: 1 0 100%; width: 100%; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; gap: 18px; padding: 5px 0 3px; scrollbar-width: thin; }
  .main-nav a { flex: 0 0 auto; white-space: nowrap; font-size: 12px; }
  .home-page .main-nav { display: flex; }

  .auth-home-main { width: calc(100% - 20px); max-width: 560px; min-height: 0; margin: 12px auto 20px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
  .welcome-visual { min-height: 0; padding: 20px 17px; border-radius: 18px; }
  .visual-copy h1 { font-size: clamp(29px, 8vw, 38px); line-height: 1.08; letter-spacing: -1.1px; overflow-wrap: anywhere; }
  .visual-copy p, .home-hero-content > p { font-size: 14px; line-height: 1.55; }
  .home-profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 14px 0 10px; }
  .home-profile-card { min-width: 0; border-radius: 10px; }
  .home-profile-card img { width: 100%; height: clamp(94px, 29vw, 138px); object-fit: cover; }
  .home-profile-info { min-width: 0; padding: 6px 5px; }
  .home-profile-info strong { display: block; font-size: 11px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .home-profile-info span { display: block; font-size: 9px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .visual-footnote { font-size: 10px; margin-top: 8px; }
  .auth-home-panel, .auth-home-panel .auth-card { width: 100%; max-width: none; min-width: 0; }
  .auth-home-panel .auth-card, .auth-card { padding: 19px 16px; border-radius: 17px; }
  .auth-card-top h2 { font-size: 20px; }
  .auth-home-panel .form-grid, .auth-card .form-grid, .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .auth-home-panel .form-grid .full, .auth-card .form-grid .full, .field.full { grid-column: 1 / -1; }
  .field input, .field select, .field textarea, .filters input, .filters select, .search-input { width: 100%; min-width: 0; font-size: 16px; }
  .account-main { display: flex; flex-direction: column; width: calc(100% - 20px); margin: 10px auto; min-height: 0; border-radius: 17px; }
  .account-art { min-height: 0; padding: 24px 18px; }
  .account-art h1 { font-size: clamp(29px, 8vw, 38px); }
  .account-panel { padding: 20px 16px; }
  .account-panel h2 { font-size: 24px; }
  .account-tabs { gap: 4px; }
  .account-tab { min-width: 0; padding: 10px 5px; font-size: 12px; }

  .page-title { margin: 20px 0 14px; }
  .page-title h1 { font-size: clamp(25px, 7vw, 31px); line-height: 1.2; }
  .panel { padding: 16px; border-radius: 15px; }
  .section-head { align-items: flex-start; gap: 10px; margin: 22px 0 12px; }
  .section-head h2 { font-size: 21px; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .member-photo { height: clamp(135px, 43vw, 205px); }
  .member-info { padding: 10px; }
  .member-info h3 { font-size: 13px; overflow-wrap: anywhere; }
  .member-info p { font-size: 11px; }
  .card-actions { gap: 6px; flex-direction: column; }
  .card-actions .btn { width: 100%; padding: 9px 7px; font-size: 11px; }
  .filters { padding: 11px; gap: 8px; }
  .filters input, .filters select { flex: 1 1 140px; }
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .side-menu { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 3px; }
  .side-menu a { flex: 0 0 auto; white-space: nowrap; font-size: 12px; padding: 9px 11px; }

  .profile-layout, .profile-layout:has(.profile-reference-card), .profile-layout:has(.profile-reference-card):not(:has(.private-message-panel)) { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .profile-reference-card { padding: 12px; border-radius: 15px; }
  .profile-reference-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .profile-identity { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 4px 11px; align-items: start; }
  .profile-photo-wrap { grid-row: span 4; width: 94px; margin: 0; }
  .profile-photo-wrap .profile-portrait, .profile-portrait { width: 94px; height: 120px; border-radius: 10px; }
  .profile-identity h2 { font-size: 16px; margin: 2px 0; }
  .profile-age, .profile-location { margin: 2px 0; font-size: 12px; }
  .profile-member-tag { margin: 4px 0; }
  .profile-card-actions { margin: 0 0 6px; }
  .profile-intro { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .profile-bio { margin: 6px 0 10px; }
  .profile-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .profile-detail-grid > div { min-width: 0; padding: 7px; }
  .profile-detail-grid strong { font-size: 11px; overflow-wrap: anywhere; }
  .profile-gallery-row { gap: 7px; }
  .profile-gallery-row img, .gallery-photo-open { width: 72px; height: 72px; flex-basis: 72px; }
  .private-message-panel { position: static; padding: 13px; }

  .chat-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .chat-people { display: flex; flex-wrap: nowrap; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .chat-heading { display: none; }
  .chat-person { flex: 0 0 145px; padding: 10px; }
  .chat-top { padding: 12px; }
  .chat-messages { min-height: 240px; max-height: 48vh; padding: 12px; }
  .bubble { max-width: 88%; }
  .chat-compose { padding: 11px; }
  .compose-row { align-items: stretch; }
  .compose-row textarea { min-width: 0; font-size: 16px; }
  .inbox-item { grid-template-columns: 42px minmax(0, 1fr); gap: 9px; }
  .inbox-item > :last-child { grid-column: 2; justify-self: start; }
  .inbox-item .avatar { width: 40px; height: 40px; }
  .footer { padding: 24px 8px 18px; line-height: 1.8; }
  .footer a { display: inline-block; margin: 2px 5px; }

  /* Admin workspace remains separate and becomes touch-friendly. */
  .admin-site-header { justify-content: space-between; gap: 8px; padding: 10px 12px; }
  .admin-site-header .brand { font-size: 17px; }
  .admin-site-header .header-actions { gap: 6px; }
  .admin-site-header .header-actions .btn { padding: 8px 9px; font-size: 11px; }
  .admin-shell { padding: 14px 10px 32px; }
  .admin-hero { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 18px; }
  .admin-hero h1 { font-size: 27px; }
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .admin-card { padding: 12px; }
  .admin-card .metric { font-size: 24px; overflow-wrap: anywhere; }
  .admin-main-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .admin-panel { padding: 13px; border-radius: 14px; }
  .panel-head { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .admin-chart { height: 185px; }
  .admin-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .admin-tab { flex: 0 0 auto; white-space: nowrap; padding: 9px 11px; }
  .admin-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .admin-toolbar input, .admin-toolbar select { width: 100%; min-width: 0; font-size: 16px; }
  .admin-form-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-form-grid .full { grid-column: auto; }
  .admin-modal { padding: 8px; align-items: start; overflow-y: auto; }
  .admin-modal-card { width: 100%; max-height: calc(100dvh - 16px); overflow: auto; padding: 14px; border-radius: 15px; }
  .admin-login { width: 100%; max-width: none; padding: 17px; }
}

@media (max-width: 420px) {
  .header-actions .text-btn { font-size: 11px; }
  .home-profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .home-profile-card img { height: clamp(84px, 27vw, 112px); }
  .auth-home-panel .form-grid, .auth-card .form-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-home-panel .form-grid .full, .auth-card .form-grid .full, .field.full { grid-column: auto; }
  .member-grid { gap: 7px; }
  .member-photo { height: 140px; }
  .member-info { padding: 8px; }
  .profile-detail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .admin-grid { gap: 7px; }
  .admin-card .metric { font-size: 21px; }
  .admin-brand-label { display: none; }
}

@media (max-width: 350px) {
  .site-header { padding-inline: 8px; }
  .logo-brand { width: 98px; }
  .header-actions .btn { padding: 7px 8px; }
  .language-picker { gap: 4px; }
  .language-picker button, .language-picker a { padding: 4px 6px; font-size: 10px; }
  .profile-identity { grid-template-columns: 78px minmax(0, 1fr); }
  .profile-photo-wrap, .profile-photo-wrap .profile-portrait, .profile-portrait { width: 78px; height: 105px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Own-profile photo upload control */
.profile-photo-upload{display:flex;align-items:center;justify-content:center;width:100%;margin:9px auto 0;padding:9px 10px;border:1px solid #f1b8d0;border-radius:999px;background:#fde8f1;color:#a52f68;font-size:12px;font-weight:800;line-height:1.2;text-align:center;cursor:pointer;transition:background .18s ease,transform .18s ease;box-sizing:border-box}
.profile-photo-upload:hover{background:#f8d3e3;transform:translateY(-1px)}
.profile-photo-upload:focus-within{outline:3px solid #e9a7c8;outline-offset:2px}
.profile-photo-message{margin:3px 0 7px;color:#a52f68;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.profile-photo-message:empty{display:none}
@media(max-width:520px){.profile-photo-upload{max-width:100%;padding:8px 6px;font-size:11px}.profile-photo-message{font-size:10px}}

/* Real member photos and distinct no-photo placeholders */
.member-card-photo-link{display:block;position:relative;aspect-ratio:1/1;overflow:hidden;background:#f8eaf1;border-radius:14px 14px 0 0}
.member-card-photo{width:100%;height:100%;object-fit:cover;display:block}
.member-initial-avatar,.admin-avatar-initials{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f4b4ce,#d9b9f2);color:#702e65;font-weight:800;letter-spacing:.04em}
.member-initial-avatar{width:100%;height:100%;font-size:clamp(1.6rem,4vw,3rem)}
.member-card-info{padding:12px;display:grid;gap:7px}
.member-card-info h3,.member-card-info p{margin:0}
.member-card-info p{color:var(--muted,#778197);font-size:.9rem}
.admin-avatar-initials{border-radius:50%;font-size:12px}
.admin-avatar{object-fit:cover}
.member-card-photo-link .verified-user-badge{position:absolute;top:8px;left:8px;z-index:1}

/* Account dropdown avatar and gallery management */
.user-avatar.has-photo{padding:0;overflow:hidden;background:#f8e6ef}.user-avatar img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}.gallery-photo-item{position:relative;display:inline-flex;flex-direction:column;gap:6px}.gallery-photo-delete{border:1px solid #f0cbd9;border-radius:8px;padding:5px 9px;background:#fff0f5;color:#a72e63;font-weight:700;cursor:pointer}.gallery-photo-delete:hover{background:#f8d9e6}.gallery-photo-item .gallery-photo-open{display:block}

/* Inbox tabs and clear, readable message actions */
.inbox-tabs .account-tab{color:#536273}
.inbox-tabs .account-tab.active{color:#24756e}
.inbox-item .inbox-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.inbox-item .inbox-actions .btn{color:#fff;white-space:nowrap}
.inbox-item .inbox-actions .inbox-reply{background:#bd3978}
.inbox-item .inbox-actions .inbox-reply:hover{background:#a72d68}
.inbox-item .inbox-actions .inbox-delete{background:#b4233c}
.inbox-item .inbox-actions .inbox-delete:hover{background:#8f1c30}
.bubble.mine{color:#fff}
.bubble.mine small{color:#fff;opacity:.9}
@media(max-width:620px){.inbox-tabs{flex-wrap:wrap}.inbox-tabs .account-tab{min-width:40%;}.inbox-item .inbox-actions{grid-column:2;justify-self:start}}

/* Five message folders stay on one line on desktop, with a compact recycle-bin icon. */
.inbox-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;align-items:stretch}
.inbox-tabs .account-tab{min-width:0;padding:11px 7px;white-space:nowrap;font-size:13px}
.inbox-tabs .inbox-trash-tab{display:flex;align-items:center;justify-content:center;gap:5px}
.inbox-trash-tab [aria-hidden="true"]{font-size:16px;line-height:1}
.inbox-trash-tab .trash-label{font-size:12px}
.inbox-tabs .account-tab[aria-selected="true"]{background:#fff;color:#24756e;box-shadow:0 2px 8px #1d343b10}
.inbox-item .inbox-actions .inbox-restore{background:#287b69;color:#fff}
.inbox-item .inbox-actions .inbox-permanent-delete{background:#8f1c30;color:#fff}
@media(max-width:620px){.inbox-tabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}.inbox-tabs .account-tab{min-width:0;padding:10px 2px;font-size:10px;white-space:normal}.inbox-trash-tab{flex-direction:column;gap:1px!important}.inbox-trash-tab [aria-hidden="true"]{font-size:17px}.inbox-trash-tab .trash-label{font-size:9px}.inbox-item .inbox-actions{grid-column:2;justify-self:start}}


/* DateAThai navigation polish: boxed links, no wrapped labels, compact flag controls */
.site-header{gap:clamp(10px,1.5vw,22px);padding-inline:clamp(14px,3vw,42px)}
.site-header .brand{flex:0 0 auto}
.site-header .main-nav{display:flex;align-items:center;gap:clamp(5px,.65vw,10px);min-width:0;flex-wrap:nowrap}
.site-header .main-nav a{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;flex:0 0 auto;padding:10px 11px;border:1px solid #f0dce5;border-radius:10px;background:#fff9fb;line-height:1.2;text-decoration:none}
.site-header .main-nav a:hover,.site-header .main-nav a.active{background:#fff0f6;border-color:#e9bfd2;color:#ad2f6b}
.site-header .language-picker{gap:5px;flex:0 0 auto;margin-left:auto}
.site-header .language-picker button{min-width:39px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;font-size:19px;line-height:1;border-radius:10px}
.site-header .header-actions{flex:0 0 auto;white-space:nowrap}
.site-header .user-menu{flex:0 0 auto}
.site-header .main-nav a[href*="profile"]{min-width:max-content}
.site-header .brand img{display:block;max-width:100%;max-height:100%;object-fit:contain}
@media(max-width:1250px){
 .site-header{gap:8px;padding-inline:14px}
 .site-header .main-nav{gap:4px}
 .site-header .main-nav a{padding:9px 7px;font-size:12px}
 .site-header .language-picker button{min-width:34px;padding:4px 5px}
 .site-header .header-actions .btn{padding:10px 12px}
}
@media(max-width:980px){
 .site-header{height:auto;min-height:70px;flex-wrap:wrap;padding-block:10px}
 .site-header .main-nav{order:4;flex:1 0 100%;overflow-x:auto;padding:2px 0 5px}
 .site-header .language-picker{margin-left:auto}
}


/* Trust and safety controls on member profiles */
.profile-member-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:16px}
.profile-member-actions .btn{min-height:38px}
.btn-safety-light{background:#fff;border:1px solid #e7d7e2;color:#73536a}
.btn-safety-danger{background:#fff2f3;border:1px solid #efc2cb;color:#a62e4b}
.btn-safety-danger:hover{background:#ffe6ea}
#profileSafetyStatus{flex-basis:100%;margin:4px 0 0;font-size:12px}
.member-discovery-filters .btn{min-height:42px;white-space:nowrap}
.member-card-photo-link img{object-fit:cover}
.verified-user-badge{z-index:2}


/* Site-wide button standard: DateAThai pink with white text */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
a.btn,
.profile-photo-upload,
.gallery-add {
  background: #e92e83 !important;
  color: #ffffff !important;
  border-color: #e92e83 !important;
}
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.btn:hover,
a.btn:hover,
.profile-photo-upload:hover,
.gallery-add:hover {
  background: #cf216f !important;
  color: #ffffff !important;
  border-color: #cf216f !important;
}
button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled,
.btn:disabled,
button[disabled],
.btn[aria-disabled="true"] {
  background: #f4a4c8 !important;
  color: #ffffff !important;
  border-color: #f4a4c8 !important;
  opacity: .85;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}
.profile-portrait {
  display: block;
  width: 100%;
  height: 218px;
  object-fit: cover;
  object-position: center 25%;
}


/* Search filters: keep the desktop controls on one clean line. */
.member-discovery-filters{display:grid!important;grid-template-columns:minmax(130px,1.4fr) minmax(100px,.9fr) minmax(100px,.9fr) minmax(76px,.55fr) minmax(100px,.9fr) auto auto auto;align-items:end;gap:10px;overflow-x:auto;white-space:nowrap}
.member-discovery-filters .discovery-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;font-weight:700}
.member-discovery-filters .discovery-field span{white-space:normal;min-height:18px}
.member-discovery-filters .discovery-field input,.member-discovery-filters .discovery-field select{width:100%;min-width:0;height:42px;padding:9px 10px;font-size:12px}
.member-discovery-filters>label:not(.discovery-field){display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;white-space:nowrap}
.member-discovery-filters input[type=checkbox]{width:18px;height:18px;flex:0 0 auto}
.member-discovery-filters .btn{height:42px;align-self:end}
@media(max-width:1050px){.member-discovery-filters{grid-template-columns:repeat(8,minmax(110px,1fr));}.member-discovery-filters .btn{min-width:130px}}

/* Per-member QR sharing card */
.profile-qr-card{margin-top:14px;padding:13px 10px;border:1px solid #f0c7d7;border-radius:14px;background:linear-gradient(180deg,#fff8fb,#fff);text-align:center;box-shadow:0 4px 16px rgba(116,42,75,.06)}
.profile-qr-card h3{margin:0 0 5px;color:#8e315b;font-size:16px;font-weight:800}
.profile-qr-card>p:not(.profile-qr-status){margin:0 auto 10px;color:#6f5963;font-size:12px;line-height:1.45;max-width:230px}
.profile-qr-image{display:block;width:174px;height:174px;max-width:100%;object-fit:contain;background:white;margin:0 auto 10px;border:1px solid #f1e2e8;border-radius:8px}
.profile-qr-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:7px}
.profile-qr-actions .btn{font-size:12px;padding:8px 10px;min-height:36px}
.profile-qr-status{min-height:0;margin:7px 0 0;color:#7d3155;font-size:11px;overflow-wrap:anywhere}
@media(max-width:520px){.profile-qr-card{grid-column:1/-1}.profile-qr-image{width:156px;height:156px}}

/* Member identity: keep DateAThai ID label and value on one tidy line. */
.profile-member-id{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;white-space:nowrap;max-width:100%;font-size:12px;line-height:1.25;letter-spacing:-.1px;overflow-x:auto;scrollbar-width:none}
.profile-member-id strong{flex:0 0 auto;font-size:11px}
.profile-member-id::-webkit-scrollbar{display:none}
@media(max-width:480px){.profile-member-id{font-size:11px}.profile-member-id strong{font-size:10px}}

/* Inbox folders: all six navigation options remain on one row. */
.inbox-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;align-items:center;overflow-x:auto;overflow-y:hidden}
.inbox-tabs .account-tab{min-width:0;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;padding:10px 5px;font-size:clamp(9px,.78vw,12px);line-height:1.15;text-align:center;justify-content:center}
.inbox-tabs .inbox-trash-tab{white-space:nowrap;flex-direction:row;gap:3px!important}
.inbox-tabs .inbox-trash-tab .trash-label{font-size:inherit}
@media(max-width:620px){
 .inbox-tabs{grid-template-columns:repeat(6,minmax(max-content,1fr));gap:3px}
 .inbox-tabs .account-tab{font-size:10px;padding:9px 7px;white-space:nowrap}
 .inbox-tabs .inbox-trash-tab{flex-direction:row;gap:3px!important}
 .inbox-tabs .inbox-trash-tab .trash-label{font-size:10px}
}

/* Compact flag-only language controls on public pages (never on admin). */
body:not(.admin-intelligence) .language-picker,
body:not(.admin-intelligence) .language-list,
body:not(.admin-intelligence) .global-language-picker{display:flex;align-items:center;gap:4px;padding:3px;background:transparent;border:0;box-shadow:none}
body:not(.admin-intelligence) .language-picker button,
body:not(.admin-intelligence) .language-list .lang,
body:not(.admin-intelligence) .global-language-picker button{width:34px;height:32px;min-width:34px;padding:0;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border:1px solid #efd477;border-radius:7px;background:#fff4c2;color:#40351c;font-size:17px;line-height:1;box-shadow:0 1px 3px #765b1b18}
body:not(.admin-intelligence) .language-list .lang{font-size:0}
body:not(.admin-intelligence) .language-list .lang span{font-size:17px}
body:not(.admin-intelligence) .language-picker button[aria-pressed="true"],
body:not(.admin-intelligence) .language-list .lang[aria-pressed="true"],
body:not(.admin-intelligence) .global-language-picker button[aria-pressed="true"]{background:#ffe58a;border-color:#dfb83d;color:#40351c}
@media(max-width:700px){body:not(.admin-intelligence) .language-picker button,body:not(.admin-intelligence) .language-list .lang,body:not(.admin-intelligence) .global-language-picker button{width:29px;height:28px;min-width:29px;font-size:15px}body:not(.admin-intelligence) .language-list .lang span{font-size:15px}}

.member-call-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.member-call-actions .btn{white-space:nowrap}
@media(max-width:520px){.member-call-actions{justify-content:flex-start}.member-call-actions .btn{font-size:12px;padding:9px 11px}}

/* FINAL language selector: flags only, no tile, no background, no label. */
body:not(.admin-intelligence) .language-picker,
body:not(.admin-intelligence) .language-list,
body:not(.admin-intelligence) .global-language-picker{
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:5px!important;padding:0!important;margin:0 8px!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;outline:0!important;
}
body:not(.admin-intelligence) .language-picker button,
body:not(.admin-intelligence) .language-list .lang,
body:not(.admin-intelligence) .global-language-picker button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:0!important;height:auto!important;min-height:0!important;
  padding:1px!important;margin:0!important;
  background:transparent!important;background-color:transparent!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  color:inherit!important;font-size:22px!important;line-height:1!important;
  text-indent:0!important;letter-spacing:normal!important;opacity:1!important;
  transform:none!important;filter:none!important;
}
body:not(.admin-intelligence) .language-list .lang{font-size:22px!important}
body:not(.admin-intelligence) .language-list .lang span{font-size:22px!important}
body:not(.admin-intelligence) .language-picker button:hover,
body:not(.admin-intelligence) .language-list .lang:hover,
body:not(.admin-intelligence) .global-language-picker button:hover,
body:not(.admin-intelligence) .language-picker button[aria-pressed="true"],
body:not(.admin-intelligence) .language-list .lang[aria-pressed="true"],
body:not(.admin-intelligence) .global-language-picker button[aria-pressed="true"]{
  background:transparent!important;background-color:transparent!important;
  border:0!important;box-shadow:none!important;opacity:.78!important;
}
@media(max-width:700px){
 body:not(.admin-intelligence) .language-picker button,
 body:not(.admin-intelligence) .language-list .lang,
 body:not(.admin-intelligence) .global-language-picker button,
 body:not(.admin-intelligence) .language-list .lang span{font-size:19px!important}
}

/* Flag-only selector: use crisp local SVG flags, never language abbreviations. */
body:not(.admin-intelligence) .language-list,
body:not(.admin-intelligence) .language-picker,
body:not(.admin-intelligence) .global-language-picker{display:flex!important;align-items:center!important;gap:7px!important;padding:0!important;margin:0 8px!important;background:transparent!important;border:0!important;box-shadow:none!important}
body:not(.admin-intelligence) [data-lang]{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:34px!important;height:26px!important;min-width:34px!important;min-height:26px!important;
 padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;font-size:0!important;line-height:0!important;
 color:transparent!important;text-indent:0!important;opacity:1!important;
}
body:not(.admin-intelligence) [data-lang] .language-flag{
 display:block!important;width:28px!important;height:19px!important;max-width:none!important;
 object-fit:cover!important;border:1px solid #d8d8d8!important;border-radius:2px!important;
 box-shadow:0 1px 2px rgba(0,0,0,.12)!important;
}
body:not(.admin-intelligence) [data-lang]:hover .language-flag,
body:not(.admin-intelligence) [data-lang][aria-pressed="true"] .language-flag{outline:2px solid #e72d86!important;outline-offset:1px!important}
#google_translate_element,.goog-te-gadget{display:none!important}
.goog-te-banner-frame.skiptranslate{display:none!important}
body{top:0!important}
html body{top:0!important}
@media(max-width:700px){
 body:not(.admin-intelligence) .language-list,body:not(.admin-intelligence) .language-picker,body:not(.admin-intelligence) .global-language-picker{gap:5px!important}
 body:not(.admin-intelligence) [data-lang]{width:29px!important;min-width:29px!important;height:23px!important}
 body:not(.admin-intelligence) [data-lang] .language-flag{width:24px!important;height:16px!important}
}

/* DateAThai member actions: primary reactions grouped above profile details */
.profile-member-actions-primary{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;margin:10px 0 12px}
.profile-member-actions-primary .btn{flex:1 1 0;min-width:0;text-align:center;white-space:nowrap}
.profile-member-actions-secondary{margin-top:12px}
@media(max-width:560px){
 .profile-member-actions-primary{gap:5px}
 .profile-member-actions-primary .btn{padding:8px 5px;font-size:11px}
}

/* DateAThai master logo: consistent header footprint across every page */
.logo-brand > img{display:block;width:158px;height:46px;max-height:46px;object-fit:contain;object-position:left center}


/* Inbox interactions: keep each interest, heart or kiss on one clean horizontal row. */
.inbox-list .inbox-interaction-item{
  display:grid!important;
  grid-template-columns:48px minmax(220px,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  min-width:620px;
  padding:16px 8px!important;
}
.inbox-list .inbox-interaction-item > .avatar{
  grid-column:1!important;
  grid-row:1!important;
  width:46px!important;
  height:46px!important;
  border-radius:50%!important;
  object-fit:cover!important;
}
.inbox-list .inbox-interaction-item > .inbox-message-copy{
  grid-column:2!important;
  grid-row:1!important;
  min-width:0;
}
.inbox-list .inbox-interaction-item .inbox-message-copy h3,
.inbox-list .inbox-interaction-item .inbox-message-copy p,
.inbox-list .inbox-interaction-item .inbox-message-copy small{
  overflow-wrap:anywhere;
}
.inbox-list .inbox-interaction-item > .inbox-actions{
  grid-column:3!important;
  grid-row:1!important;
  justify-self:end!important;
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  gap:8px!important;
  white-space:nowrap;
}
.inbox-list .inbox-interaction-item .inbox-actions .btn{
  min-width:88px;
  padding:10px 16px;
  white-space:nowrap;
}
#inboxContent:has(.inbox-interaction-item){overflow-x:auto}
@media(max-width:620px){
  .inbox-list .inbox-interaction-item{grid-template-columns:40px minmax(190px,1fr) auto!important;gap:9px!important;min-width:570px}
  .inbox-list .inbox-interaction-item > .avatar{width:38px!important;height:38px!important}
  .inbox-list .inbox-interaction-item .inbox-actions{grid-column:3!important;justify-self:end!important}
}

/* Chat request lifecycle: clear status and consistent actions in Inbox and Outbox. */
.inbox-status-label{display:inline-flex;align-items:center;padding:8px 12px;border-radius:9px;background:#edf7f4;color:#287b69;font-size:12px;font-weight:800;white-space:nowrap}
.inbox-request-outbox .inbox-message-copy p strong{color:#9b2b68}
.inbox-request-outbox .inbox-actions button:disabled{opacity:.7;cursor:not-allowed}
.inbox-item .inbox-actions .inbox-reply{background:#bd3978;color:#fff}
@media(max-width:620px){.inbox-request-outbox .inbox-actions{grid-column:2;justify-self:start}}


/* Administrator identity uses the DateAThai brand mark, never a member portrait. */
.user-avatar.is-admin-avatar{background:#fff;border:1px solid #f0dce5;overflow:hidden;padding:0}
.user-avatar.is-admin-avatar .admin-avatar-logo{display:block;width:100%;height:100%;object-fit:contain;object-position:center;border-radius:4px;background:#fff;padding:2px;box-sizing:border-box}


/* DateAThai chat header: keep the site brand in the conversation header,
   rather than showing a member's personal profile photo. */
.chat-top #chatAvatar{
  width:92px;
  height:42px;
  flex:0 0 92px;
  object-fit:contain;
  object-position:center;
  border-radius:8px;
  padding:3px;
  background:#fff;
  box-shadow:0 0 0 1px rgba(222,48,137,.12);
}
@media(max-width:600px){
  .chat-top #chatAvatar{width:78px;height:36px;flex-basis:78px}
}
