/* ============================================================
   1. TOKENS
   ============================================================ */
:root{
  --bg:        #070706;
  --bg-2:      #050504;
  --surf:      #0d0d0c;
  --surf-2:    #15130f;
  --line:      #302e29;
  --line-soft: #24221e;
  --text:      #f5f1ed;
  --muted:     #a6a097;
  --dim:       #77726a;

  --rose:      #c9a657;
  --rose-hi:   #efd58f;
  --amber:     #d7b86f;
  --mint:      #67d7aa;

  --display: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --wrap: 1200px;
  --pad: 22px;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overscroll-behavior-y:none}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:var(--body);font-weight:400;font-size:16px;line-height:1.65;
  overflow-x:hidden;
  min-height:100vh;display:flex;flex-direction:column;
  /* Stops the mobile browser's elastic pull-down bounce at the top of the
     page -- combined with the sticky+backdrop-filter nav, that bounce was
     briefly revealing the online-count badge from behind the nav, then
     snapping it back out of view once released. */
  overscroll-behavior-y:none;
}
img{max-width:100%;display:block}
a{color:inherit}
button{font-family:inherit}

.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 var(--pad)}

h1,h2,h3{font-family:var(--display);font-weight:700;margin:0;letter-spacing:-.03em;line-height:1.02}
h1{font-size:clamp(2.5rem,7vw,4.6rem);font-weight:800;letter-spacing:-.045em}
h2{font-size:clamp(1.85rem,4.2vw,2.9rem)}
h3{font-size:clamp(1.08rem,1.8vw,1.28rem);letter-spacing:-.02em;line-height:1.2}
p{margin:0 0 1em}
.lead{font-size:clamp(1rem,1.4vw,1.12rem);color:#c5b9cb;max-width:60ch;font-weight:300}
.sm{font-size:.84rem}
.mut{color:var(--muted)}

:focus-visible{outline:2px solid var(--amber);outline-offset:3px;border-radius:4px}

/* ============================================================
   2. BUTTONS
   ============================================================ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  border:0;cursor:pointer;text-decoration:none;white-space:nowrap;
  font-weight:600;font-size:.95rem;letter-spacing:-.01em;
  padding:14px 26px;border-radius:var(--r-m);
  transition:transform .15s cubic-bezier(.3,.8,.4,1), box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary{
  background:linear-gradient(178deg,var(--rose-hi) 0%,var(--rose) 62%,#a9843d 100%);
  color:#17130b;box-shadow:0 10px 26px -12px rgba(215,184,111,.75), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 18px 36px -14px rgba(215,184,111,.85), inset 0 1px 0 rgba(255,255,255,.34)}
.btn-primary:active{transform:translateY(0)}
.btn-primary:disabled{opacity:.7;cursor:default;transform:none}
.btn-primary:active{transform:translateY(0) scale(.97)}
.btn-ghost{background:rgba(255,255,255,.035);color:var(--text);border:1px solid var(--line)}
.btn-ghost:hover{border-color:var(--dim);background:rgba(255,255,255,.06)}
.btn-ghost:active{transform:scale(.97)}
.btn-sm{padding:10px 18px;font-size:.88rem;border-radius:10px}
.btn-block{width:100%}
.btn-lg{padding:17px 38px;font-size:1.02rem}

@media (prefers-reduced-motion:no-preference){
  body{animation:pagefade .3s ease}
  @keyframes pagefade{from{opacity:0}to{opacity:1}}
}

/* ============================================================
   3. TOP BARS + NAV
   ============================================================ */
.pill18{border:1px solid rgba(240,169,60,.45);color:var(--amber);border-radius:5px;padding:1px 7px;font-weight:600;font-size:.7rem}

.nav{position:sticky;top:0;z-index:150;background:rgba(7,7,6,.9);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--line-soft)}
.nav .wrap{display:flex;align-items:center;gap:26px;height:66px}
.brand{display:flex;align-items:center;gap:8px;text-decoration:none;flex:none}
.brand-logo{display:block;width:94px;height:auto}
.mark{
  width:26px;height:26px;flex:none;display:grid;place-items:center;color:var(--rose-hi);
  filter:drop-shadow(0 3px 8px rgba(220,59,104,.6));
}
.mark svg{width:100%;height:100%}
.bname{font-family:var(--display);font-weight:800;font-size:1.18rem;letter-spacing:-.03em;color:var(--amber)}
.bname i{font-style:normal;color:var(--amber);opacity:.72}
.navlinks{display:flex;gap:24px;margin-left:auto;font-size:.9rem;color:#aaa59c;font-weight:400}
.navlinks a{text-decoration:none;position:relative;padding:3px 0}
.navlinks a::after{content:"";position:absolute;left:0;bottom:0;height:1.5px;width:0;background:var(--rose);transition:width .22s}
.navlinks a:hover{color:var(--text)}
.navlinks a:hover::after{width:100%}
.nav .btn{flex:none}

.rewardbadge{
  flex:none;display:flex;align-items:center;gap:5px;text-decoration:none;
  color:var(--text);font-size:.82rem;font-weight:600;
  background:rgba(255,255,255,.05);border:1px solid var(--line-soft);border-radius:100px;
  padding:6px 12px;
}
.rewardbadge:hover{border-color:var(--line)}
.rewardbadge-sep{color:var(--dim);margin:0 1px}

.rewardbalances{display:flex;gap:12px;margin-bottom:4px}
.rewardbalance-item{
  flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;
  border:1px solid var(--line-soft);border-radius:var(--r-m);padding:18px 10px;background:var(--surf);
}
.rewardbalance-ico{font-size:1.6rem}
.rewardbalance-item b{font-family:var(--display);font-size:1.5rem;font-weight:800}
.rewardbalance-item span:last-child{font-size:.78rem;color:var(--dim)}

.rewardrules{margin:0;padding-left:18px;font-size:.86rem;color:var(--muted);line-height:1.8}
.rewardtoast{border-color:rgba(240,169,60,.4)}

.onlinebadge{
  display:inline-flex;align-items:center;gap:7px;font-size:.82rem;font-weight:600;color:#a8e6b8;
  background:rgba(76,201,138,.1);border:1px solid rgba(76,201,138,.3);border-radius:100px;
  padding:6px 14px;margin:0 0 14px;
}
.onlinebadge-center{align-self:center;margin-left:auto;margin-right:auto}
.onlinebadge-dot{width:8px;height:8px;border-radius:50%;background:#4bc98a;box-shadow:0 0 0 3px rgba(76,201,138,.25);flex:none}

.statbar-row{display:flex;align-items:center;gap:12px;font-size:.82rem}
.statbar-label{flex:none;width:130px;color:var(--muted)}
.statbar-track{flex:1;height:20px;border-radius:6px;background:rgba(255,255,255,.06);overflow:hidden}
.statbar-fill{height:100%;background:linear-gradient(90deg,#f0a93c,#dc3b68);border-radius:6px;min-width:2px}
.statbar-nums{flex:none;width:90px;text-align:right;font-weight:600;color:var(--text)}
.statbar-nums-sub{font-weight:500;color:var(--dim)}
@media (max-width:560px){
  .statbar-label{width:88px;font-size:.74rem}
  .statbar-nums{width:70px;font-size:.76rem}
}

/* language selector */
.langsel{position:relative;flex:none}
.langsel-btn{
  display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.04);border:1px solid var(--line);
  border-radius:100px;padding:8px 11px;cursor:pointer;color:var(--text);font-size:.85rem;
  transition:border-color .16s,background .16s;
}
.langsel-btn:hover{border-color:var(--dim);background:rgba(255,255,255,.07)}
.langsel-btn .flag{font-size:1.05rem;line-height:1}
.langsel-btn svg{color:var(--muted);transition:transform .18s;flex:none}
.langsel.open .langsel-btn svg{transform:rotate(180deg)}
.langsel-menu{
  position:absolute;top:calc(100% + 8px);right:0;z-index:200;min-width:170px;
  background:var(--surf-2);border:1px solid var(--line);border-radius:var(--r-m);
  box-shadow:0 20px 40px -16px #000;overflow:hidden;padding:6px;
}
.langsel-item{
  display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;
  text-decoration:none;color:var(--text);font-size:.87rem;position:relative;white-space:nowrap;
}
.langsel-item:hover{background:rgba(255,255,255,.06)}
.langsel-item.on{background:rgba(220,59,104,.12);color:#ffd3de}
.langsel-item .flag{font-size:1.05rem;flex:none}
.langsel-item .check{margin-left:auto;color:var(--rose-hi);flex:none}

.burger{display:none;margin-left:auto;background:none;border:1px solid var(--line);border-radius:9px;padding:9px 10px;cursor:pointer}
.burger i{display:block;width:17px;height:1.6px;background:var(--text);margin:3.4px 0;transition:transform .2s,opacity .2s}
.burger.on i:nth-child(1){transform:translateY(5px) rotate(45deg)}
.burger.on i:nth-child(2){opacity:0}
.burger.on i:nth-child(3){transform:translateY(-5px) rotate(-45deg)}

/* ============================================================
   4. HERO
   ============================================================ */
.hero{
  position:relative;overflow:hidden;padding:64px 0 76px;
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(220,59,104,.20), transparent 60%),
    radial-gradient(680px 460px at 92% 6%, rgba(240,169,60,.10), transparent 58%),
    linear-gradient(180deg,#12101a,#100e17);
}
.hero-grid{position:relative;z-index:3;display:grid;grid-template-columns:1.04fr .96fr;gap:56px;align-items:start}

/* --- simple photo + signup hero (index.php, logged-out) --- */
.hero-simple{position:relative;padding:0;min-height:min(88vh,780px);display:flex;align-items:center;overflow:hidden}
.hero-simple-bg{position:absolute;inset:0;z-index:0;background:linear-gradient(160deg,var(--surf-2),var(--bg-2))}
.hero-simple-bg picture{display:block;width:100%;height:100%}
.hero-simple-bg img{width:100%;height:100%;object-fit:cover;object-position:center 22%;display:block}
.hero-simple-bg::after{
  content:"";position:absolute;inset:0;
  background:
    linear-gradient(100deg, var(--bg) 0%, rgba(18,16,26,.92) 32%, rgba(18,16,26,.45) 56%, rgba(18,16,26,.12) 74%, transparent 92%),
    linear-gradient(0deg, var(--bg) 0%, transparent 16%);
}
/* Opt-in per-page override (see landing-f.php) -- the regcard sitting on
   top is already fully opaque on its own, so this darkening only exists
   for .hero-hook's legibility, not the card. Lighter here reveals more of
   a hero photo whose subject sits right-of-center. */
.hero-simple-bg.reveal-right::after{
  background:
    linear-gradient(100deg, var(--bg) 0%, rgba(18,16,26,.75) 22%, rgba(18,16,26,.3) 42%, rgba(18,16,26,.08) 60%, transparent 78%),
    linear-gradient(0deg, var(--bg) 0%, transparent 16%);
}
.hero-simple-bg.reveal-right img{object-position:62% 22%}
.hero-simple-bg .ph-icon{display:none;position:absolute;inset:0;align-items:center;justify-content:center;color:var(--dim)}
.hero-simple-bg.ph-fallback img{display:none}
.hero-simple-bg.ph-fallback .ph-icon{display:flex}
.hero-simple-inner{position:relative;z-index:1;width:100%;padding:72px 0}
.hero-simple-card{max-width:420px}
.hero-hook{
  font-family:var(--display);font-weight:800;letter-spacing:-.03em;line-height:1.12;
  font-size:clamp(1.9rem,3.8vw,2.6rem);color:#fff;margin:0 0 34px;max-width:460px;
  text-shadow:0 4px 24px rgba(0,0,0,.5);
}
/* --- "real members" showcase, inline in the hero card next to the
   signup form (index.php) so it's visible without scrolling --- */
.showcase-inline{margin-top:28px;padding-top:22px;border-top:1px solid var(--line-soft)}
.showcase-inline-label{font-size:.78rem;font-weight:600;letter-spacing:.02em;color:#cabfd0;margin:0 0 12px}
.showcasegrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.showcard{position:relative;aspect-ratio:3/4;border-radius:var(--r-m);overflow:hidden;background:var(--surf-2)}
.showcard img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width:380px){
  .showcasegrid{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:860px){
  .hero-simple{min-height:0;display:block}
  .hero-simple-bg::after{
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(18,16,26,.75) 30%, rgba(18,16,26,.88) 62%, var(--bg) 100%);
  }
  .hero-simple-bg{min-height:340px;position:relative}
  .hero-simple-inner{padding:0 0 40px}
  .hero-simple-card{max-width:none;margin-top:-120px}

  /* Opt-in per-page override (see landing-f.php) for a hero photo whose
     punchline sits right-of-center -- the default crop/darken above is
     tuned for hero1.webp's face-on-the-right composition and otherwise
     hides most of a differently-framed image behind a short, heavily
     darkened strip. */
  .hero-simple-bg.reveal-right{min-height:440px}
  .hero-simple-bg.reveal-right img{object-position:72% 26%}
  .hero-simple-bg.reveal-right::after{
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(18,16,26,.3) 32%, rgba(18,16,26,.55) 64%, var(--bg) 100%);
  }
}

.eyebrow{
  display:inline-flex;align-items:center;gap:9px;margin-bottom:20px;
  background:rgba(255,255,255,.045);border:1px solid var(--line);
  border-radius:100px;padding:6px 14px 6px 8px;font-size:.79rem;color:#c9bdd0;
}
.live-dot{width:7px;height:7px;border-radius:50%;background:var(--mint);position:relative;flex:none;margin-left:4px}
.live-dot::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:1px solid var(--mint);opacity:.5}
@media (prefers-reduced-motion:no-preference){
  .live-dot::after{animation:ping 2.4s ease-out infinite}
  @keyframes ping{0%{transform:scale(.6);opacity:.7}70%,100%{transform:scale(1.5);opacity:0}}
}
.hero h1 mark{background:none;color:var(--rose-hi)}
.hero .lead{margin-top:22px}

.hero-points{list-style:none;margin:26px 0 30px;padding:0;display:grid;gap:11px;max-width:530px}
.hero-points li{display:flex;gap:11px;align-items:flex-start;font-size:.94rem;color:#cbbfd1;font-weight:300}
.tick{flex:none;width:20px;height:20px;margin-top:2px;border-radius:6px;background:rgba(75,201,138,.13);color:var(--mint);display:grid;place-items:center;font-size:.68rem}

.trustrow{display:flex;gap:22px;flex-wrap:wrap;align-items:center;padding-top:24px;border-top:1px solid var(--line-soft)}
.trustrow div{display:flex;align-items:center;gap:8px;font-size:.82rem;color:var(--dim)}
.trustrow svg{color:var(--muted);flex:none}

/* --- landing page variants (presentation/testing, see landing-*.php) --- */
.hero-center{display:flex;flex-direction:column;align-items:center;text-align:center;position:relative;z-index:3}
.hero-center .eyebrow{margin-bottom:20px}
.hero-center h1{max-width:640px}
.hero-center .lead{max-width:520px;margin-left:auto;margin-right:auto}
.hero-center .regcard{margin-top:30px;width:100%;max-width:420px;text-align:left}

.hero-b{padding:110px 0 90px;text-align:center}
.hero-b .wordmark{font-family:var(--display);font-weight:800;letter-spacing:-.04em;font-size:clamp(2.4rem,6.5vw,3.8rem)}
.hero-b .wordmark i{font-style:normal;color:var(--rose-hi)}
.hero-b .lead{max-width:440px;margin:16px auto 30px}

.citybadge{
  display:inline-flex;align-items:center;gap:8px;margin-bottom:20px;
  background:rgba(75,201,138,.1);border:1px solid rgba(75,201,138,.3);color:var(--mint);
  border-radius:100px;padding:7px 16px 7px 8px;font-size:.79rem;font-weight:600;
}

/* --- registration card --- */
.regcard{
  position:relative;background:linear-gradient(170deg,#17150f 0%,#0f0f0d 60%,#0b0b0a 100%);
  border:1px solid var(--line);border-radius:var(--r-l);padding:26px 26px 22px;
  box-shadow:0 44px 90px -46px #000, 0 0 0 1px rgba(255,255,255,.03) inset;
}
.regcard::before{
  content:"";position:absolute;left:14%;right:14%;top:-1px;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(239,213,143,.38) 30%,rgba(255,255,255,.58) 50%,rgba(239,213,143,.38) 70%,transparent);
}
.regcard::after{
  content:"";position:absolute;left:0;right:0;top:0;height:170px;pointer-events:none;
  border-radius:var(--r-l) var(--r-l) 0 0;
  background:radial-gradient(320px 150px at 50% -10%, rgba(215,184,111,.16), transparent 72%);
}
.regcard > *{position:relative;z-index:1}
.reg-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.reg-top h2{font-size:1.5rem}
.reg-step{font-size:.76rem;color:var(--dim);font-variant-numeric:tabular-nums;white-space:nowrap}
.bar{height:3px;background:var(--line-soft);border-radius:3px;overflow:hidden;margin:14px 0 20px}
.bar i{display:block;height:100%;width:50%;background:linear-gradient(90deg,var(--rose),var(--rose-hi));border-radius:3px;transition:width .35s cubic-bezier(.3,.8,.4,1)}

/* profile.php: edit form + live-preview card side by side */
.profileedit{display:grid;grid-template-columns:1fr 320px;gap:32px;align-items:start;margin-top:8px}
.previewcol{position:sticky;top:90px}
.previewlabel{font-size:.8rem;color:var(--dim);text-align:center;margin:0 0 12px}
.previewcol .swipecard{max-width:320px;margin:0 auto}
.previewcol .swipephoto{aspect-ratio:3/4}
@media (max-width:900px){
  .profileedit{grid-template-columns:1fr}
  .previewcol{position:static;order:-1;max-width:320px;margin:0 auto 28px}
}

/* account.php: summary card + icon-labeled sections */
.acctsummary{display:flex;align-items:center;gap:16px}
.acctsummary .swipephoto.small{flex:none}
.acctsummary h2{font-size:1.3rem;margin-bottom:2px}
.acctsummary p{margin:0;font-size:.85rem;color:var(--muted)}
.sectioniconhead{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.sectioniconhead .ico{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none}
.sectioniconhead .ico.mint{background:rgba(75,201,138,.13);color:var(--mint)}
.sectioniconhead .ico.rose{background:rgba(220,59,104,.13);color:var(--rose-hi)}
.sectioniconhead .ico.amber{background:rgba(240,169,60,.13);color:var(--amber)}
.sectioniconhead h2{font-size:1.15rem;margin:0}

.step-pane{display:none}
.step-pane.on{display:block}
@media (prefers-reduced-motion:no-preference){.step-pane.on{animation:fadein .3s ease}}
@keyframes fadein{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

.fl{margin-bottom:15px}
.fl > label{display:block;font-size:.79rem;color:#aaa49a;margin-bottom:7px;font-weight:500}
.fl input,.fl select{
  width:100%;padding:13px 14px;font-size:.94rem;font-family:inherit;font-weight:400;color:var(--text);
  background:rgba(5,5,4,.72);border:1px solid var(--line);border-radius:11px;transition:border-color .16s,background .16s;
}
.fl input::placeholder{color:#69645c}
/* country -> city type-ahead (components/CityPicker.tsx + app.js) */
.citypick{position:relative}
.citysuggest{
  position:absolute;left:0;right:0;top:100%;margin-top:-10px;z-index:40;max-height:260px;overflow-y:auto;
  background:#15130f;border:1px solid var(--line);border-radius:11px;box-shadow:0 18px 40px -16px #000;padding:4px;
}
.citysuggest button{display:block;width:100%;text-align:left;padding:10px 12px;border:0;border-radius:8px;background:none;color:var(--text);font:inherit;font-size:.94rem;cursor:pointer}
.citysuggest button.on,.citysuggest button:hover{background:rgba(215,184,111,.14)}
.citysuggest button:last-child{color:var(--muted)}
#cityText.bad{border-color:var(--rose-hi)}
/* iOS zooms the whole page into any input under 16px on focus */
@media (max-width:760px){.fl input,.fl select,.fl textarea{font-size:16px}}
.fl input:focus,.fl select:focus{outline:none;border-color:var(--rose);background:rgba(8,8,6,.9)}
.fl select{appearance:none;padding-right:36px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23a294ad' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;}
.fl select option{background:#15130f;color:var(--text)}
.fl textarea{width:100%;padding:13px 14px;font-size:.94rem;font-family:inherit;color:var(--text);background:rgba(5,5,4,.72);border:1px solid var(--line);border-radius:11px;resize:vertical}
.fl textarea:focus{outline:none;border-color:var(--rose);background:rgba(8,8,6,.9)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:11px}

/* chip choices */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  border:1px solid var(--line);background:rgba(255,255,255,.02);color:#b8b1a7;
  padding:9px 15px;border-radius:100px;font-size:.87rem;cursor:pointer;
  transition:border-color .16s,background .16s,color .16s,transform .12s;
}
.chip:hover{border-color:var(--dim);color:var(--text)}
.chip:active{transform:scale(.97)}
.chip.sel{background:rgba(215,184,111,.14);border-color:var(--rose);color:#f0d58e}

.mygallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}
.mygallery-item{position:relative;aspect-ratio:3/4;border-radius:var(--r-m);overflow:hidden;background:var(--surf-2)}
.mygallery-item img{width:100%;height:100%;object-fit:cover;display:block}
.mygallery-badge{position:absolute;left:6px;top:6px;background:rgba(201,166,87,.95);color:#17130b;font-size:.62rem;font-weight:700;padding:2px 7px;border-radius:100px;letter-spacing:.02em}
.mygallery-privatebadge{position:absolute;right:6px;top:6px;background:rgba(0,0,0,.6);color:var(--amber);font-size:.62rem;font-weight:700;padding:2px 7px;border-radius:100px}
.mygallery-actions{position:absolute;left:0;right:0;bottom:0;display:flex;gap:1px;background:rgba(0,0,0,.55);backdrop-filter:blur(4px)}
.mygallery-actions form{flex:1;display:flex}
.mygallery-actions button{
  flex:1;display:flex;align-items:center;justify-content:center;padding:7px 0;
  background:none;border:none;color:#fff;cursor:pointer;
}
.mygallery-actions button:hover{background:rgba(255,255,255,.12)}
.mygallery-add{
  aspect-ratio:3/4;border-radius:var(--r-m);border:1.5px dashed var(--line);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  color:var(--dim);cursor:pointer;text-align:center;padding:8px;
}
.mygallery-add:hover{border-color:var(--dim);color:var(--muted)}
.mygallery-add span{font-size:.72rem;font-weight:500}
/* Gallery order (owner, 2026-10-02): the first tile is the main photo -- gold frame + "★ Pagrindinė", no star
   button; the badges follow a drag without any JS. Tiles can be dragged (app.js); pending/private badges stack. */
.mygallery-item{cursor:grab;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.mygallery-item img{pointer-events:none}
.mygallery-badge{display:none}
.mygallery-item:first-child .mygallery-badge{display:inline-block}
.mygallery-item:first-child{outline:2px solid rgba(201,166,87,.95);outline-offset:-2px}
.mygallery-item:first-child .mygallery-act-main{display:none}
.mygallery-badges{position:absolute;right:6px;top:6px;display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.mygallery-badges .mygallery-privatebadge{position:static}
.mygallery-placeholder{opacity:.25}
.mygallery-ghost{position:fixed;z-index:1000;margin:0;pointer-events:none;opacity:.95;box-shadow:0 24px 48px -12px rgba(0,0,0,.9);will-change:transform}
.mygallery.sorting{cursor:grabbing}
.mygallery-saved{margin-top:10px;font-size:.8rem;font-weight:600;color:#6bdc8a;transition:opacity .5s}
.mygallery-saved.out{opacity:0}
.mygallery-add .mygallery-uploading{display:none}
.mygallery-add.uploading{pointer-events:none;border-style:solid;color:var(--muted)}
.mygallery-add.uploading > svg,.mygallery-add.uploading > span:not(.mygallery-uploading){display:none}
.mygallery-add.uploading .mygallery-uploading{display:block}
.mygallery-add.uploading::before{content:"";width:26px;height:26px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--rose);animation:mgSpin .8s linear infinite}
@keyframes mgSpin{to{transform:rotate(360deg)}}

.avatarpicker{display:flex;flex-wrap:wrap;gap:10px}
.avatarpicker-item{
  width:56px;height:56px;border-radius:50%;padding:0;overflow:hidden;cursor:pointer;
  border:2px solid var(--line);background:var(--surf-2);transition:border-color .16s,transform .12s;
}
.avatarpicker-item img{width:100%;height:100%;object-fit:cover;display:block}
.avatarpicker-item:hover{border-color:var(--dim)}
.avatarpicker-item.sel{border-color:var(--rose)}
.avatarpicker-item:active{transform:scale(.94)}

.pwbox{position:relative}
.pwtog{position:absolute;right:5px;top:50%;transform:translateY(-50%);background:none;border:0;color:var(--muted);font-size:.77rem;cursor:pointer;padding:9px 11px}
.pwtog:hover{color:var(--text)}
.forgotlink{display:inline-block;margin-top:9px;font-size:.8rem;color:var(--dim);text-decoration:underline;text-underline-offset:2px}
.forgotlink:hover{color:var(--muted)}

.ck{display:flex;gap:12px;align-items:flex-start;margin:14px 0;font-size:.81rem;line-height:1.5;color:#b6a9bd;cursor:pointer}
/* Consent boxes (registration, age-consent): a clear white frame -- the old 1px dark border on a dark card was
   easy to miss on phones (owner, 2026-10-02). */
.ck input{appearance:none;flex:none;width:22px;height:22px;margin:0;border:2px solid rgba(255,255,255,.88);border-radius:6px;background:rgba(255,255,255,.06);cursor:pointer;position:relative;transition:.15s}
.ck input:focus-visible{outline:2px solid var(--rose);outline-offset:2px}
.ck input:checked{background:var(--rose);border-color:var(--rose)}
.ck input:checked::after{content:"";position:absolute;left:5.5px;top:1.5px;width:5px;height:10px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(42deg)}
.ck a{color:#d5c8da;text-decoration:underline;text-underline-offset:2px}

.err{color:#ff7c9c;font-size:.79rem;margin:-4px 0 10px;display:none}
.err.on{display:block}
.navbtns{display:grid;grid-template-columns:auto 1fr;gap:10px;margin-top:4px}
.reg-foot{margin-top:14px;text-align:center;font-size:.77rem;color:var(--dim);line-height:1.6}
.reg-foot a{color:#b7a9be}

/* ============================================================
   5. MARQUEE
   ============================================================ */
.marq{border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);background:var(--bg-2);overflow:hidden;padding:13px 0}
.marq-track{display:flex;gap:0;width:max-content}
@media (prefers-reduced-motion:no-preference){.marq-track{animation:slide 42s linear infinite}}
@keyframes slide{to{transform:translateX(-50%)}}
.marq-track span{display:inline-flex;align-items:center;gap:10px;padding:0 26px;font-size:.85rem;color:var(--dim);white-space:nowrap}
.marq-track b{color:#c9bdd0;font-weight:500}
.marq-track em{font-style:normal;color:var(--rose-hi);font-size:.6rem}

/* ============================================================
   6. STATS
   ============================================================ */
.stats{background:var(--bg-2);border-bottom:1px solid var(--line-soft)}
.stats .wrap{display:grid;grid-template-columns:repeat(2,1fr)}
.st{padding:28px 16px;text-align:center;border-left:1px solid var(--line-soft)}
.st:first-child{border-left:0}
.st b{display:block;font-family:var(--display);font-size:2.05rem;font-weight:700;letter-spacing:-.04em;line-height:1;font-variant-numeric:tabular-nums}
.st span{display:block;margin-top:8px;font-size:.8rem;color:var(--muted);font-weight:300}
.st.on b{color:var(--mint)}

/* ============================================================
   7. SECTIONS
   ============================================================ */
.sec{padding:84px 0}
.sec-2{background:var(--bg-2)}
.head{max-width:64ch;margin-bottom:42px}
.head h2 + p{margin-top:14px}

.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;counter-reset:s}
.step{position:relative;padding:30px 26px;border:1px solid var(--line-soft);border-radius:var(--r-l);background:linear-gradient(170deg,rgba(255,255,255,.028),rgba(255,255,255,0))}
.step::before{
  counter-increment:s;content:counter(s);
  position:absolute;top:-15px;left:26px;width:32px;height:32px;border-radius:10px;
  background:var(--rose);color:#fff;display:grid;place-items:center;
  font-family:var(--display);font-weight:700;font-size:.95rem;
  box-shadow:0 6px 16px -6px rgba(220,59,104,.9);
}
.step h3{margin:12px 0 9px}
.step p{font-size:.91rem;color:#b3a5bb;margin:0;font-weight:300}

/* bento action cards (dashboard quick links, landing feature grid) */
.bento{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.bx{
  display:flex;flex-direction:column;
  border:1px solid var(--line-soft);border-radius:var(--r-l);padding:28px 26px;
  background:var(--surf);position:relative;overflow:hidden;
  transition:border-color .2s,transform .18s;text-decoration:none;color:inherit;
}
.bx:hover{border-color:var(--line);transform:translateY(-3px)}
.bx:active{transform:translateY(-1px) scale(.98)}
.bx h3{margin-bottom:9px}
.bx p{font-size:.9rem;color:#b3a5bb;margin:0;font-weight:300}
.bx .ico{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:rgba(240,169,60,.11);color:var(--amber);margin-bottom:16px;flex:none}
.bx.rose .ico{background:rgba(220,59,104,.13);color:var(--rose-hi)}
.bx.mint .ico{background:rgba(75,201,138,.12);color:var(--mint)}
.bx.wide{grid-column:span 2}
.bx.amber .ico{background:rgba(240,169,60,.14);color:var(--amber)}
.bx .tagline{display:inline-block;margin-top:auto;padding-top:14px;font-size:.76rem;color:var(--amber);font-weight:600}

/* safety split section */
.split{display:grid;grid-template-columns:.85fr 1.15fr;gap:52px;align-items:center}
.slist{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.slist li{background:var(--surf);border:1px solid var(--line-soft);border-radius:var(--r-m);padding:19px 22px;display:flex;gap:15px}
.slist .n{flex:none;width:32px;height:32px;border-radius:10px;background:rgba(75,201,138,.12);color:var(--mint);display:grid;place-items:center}
.slist h3{font-size:1rem;margin-bottom:4px}
.slist p{margin:0;font-size:.87rem;color:#a99cb1;font-weight:300}
.orb{
  aspect-ratio:1/1;border-radius:26px;border:1px solid var(--line-soft);position:relative;overflow:hidden;display:grid;place-items:center;
  background:radial-gradient(420px 320px at 32% 24%, rgba(220,59,104,.20), transparent 64%),
             radial-gradient(340px 300px at 76% 80%, rgba(240,169,60,.13), transparent 60%), var(--surf);
}
.orb::before,.orb::after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.07)}
.orb::before{width:76%;height:76%}
.orb::after{width:50%;height:50%;border-color:rgba(220,59,104,.25)}
.orb svg{position:relative;z-index:2;color:var(--amber)}

/* faq */
.faq{display:grid;gap:10px}
.q{border:1px solid var(--line-soft);border-radius:var(--r-m);background:var(--surf);overflow:hidden}
.q[open]{border-color:var(--line)}
.q summary{list-style:none;cursor:pointer;padding:19px 52px 19px 22px;position:relative;font-family:var(--display);font-weight:600;font-size:1.02rem;letter-spacing:-.02em}
.q summary::-webkit-details-marker{display:none}
.q summary::after{content:"";position:absolute;right:22px;top:50%;width:11px;height:11px;margin-top:-6px;border-right:1.8px solid var(--rose-hi);border-bottom:1.8px solid var(--rose-hi);transform:rotate(45deg);transition:transform .22s}
.q[open] summary::after{transform:rotate(-135deg);margin-top:-2px}
.q .a{padding:0 44px 22px 22px;color:#b3a5bb;font-size:.92rem;font-weight:300}
.q .a p:last-child{margin-bottom:0}

/* final CTA */
.final{position:relative;text-align:center;padding:96px 0;overflow:hidden;
  background:radial-gradient(760px 420px at 50% 8%, rgba(220,59,104,.24), transparent 66%), var(--bg-2);
  border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft)}
.final h2{max-width:17ch;margin:0 auto 18px}
.final p{margin:0 auto 28px;max-width:56ch;color:#c3b7c9;font-weight:300}

@media (max-width:1040px){
  .bx.wide{grid-column:span 1}
  .split{grid-template-columns:1fr;gap:34px}
  .orb{max-width:320px;order:-1;margin:0 auto}
}
@media (max-width:760px){
  .final{padding:64px 0}
  .q .a{padding-right:22px}
}

/* member wall / match cards */
.wall,.matchgrid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.matchgrid{grid-template-columns:repeat(4,1fr)}
.mcard{
  border:1px solid var(--line-soft);border-radius:16px;overflow:hidden;background:var(--surf);
  text-align:center;padding-bottom:14px;transition:transform .18s,border-color .18s;
}
.mcard:hover{transform:translateY(-3px);border-color:var(--line)}
.mcard:active{transform:translateY(-1px) scale(.98)}
.matchgrid .mcard{cursor:pointer;text-decoration:none;color:inherit;display:block}
@media (prefers-reduced-motion:no-preference){
  .matchgrid .mcard{opacity:0;transform:translateY(12px);animation:cardin .5s cubic-bezier(.22,.7,.3,1) forwards}
  @keyframes cardin{to{opacity:1;transform:none}}
}
.mthumb{position:relative;aspect-ratio:1/1;display:grid;place-items:center;filter:blur(0)}
.mthumb .lock{position:relative;z-index:2;color:rgba(255,255,255,.9);display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(0,0,0,.34)}
.mthumb.locked img{filter:blur(16px) saturate(.7);transform:scale(1.1)}
.matchgrid .mthumb::after{content:none}
.matchgrid .mthumb img{width:100%;height:100%;object-fit:cover}
.matchgrid .mthumb .initial{position:relative;z-index:2;font-family:var(--display);font-size:1.6rem;font-weight:700;color:#fff}
.g1{background:linear-gradient(140deg,#e0517b,#7c2246)}
.g2{background:linear-gradient(140deg,#f0a93c,#8a5a17)}
.g3{background:linear-gradient(140deg,#6f5ac9,#33255e)}
.g4{background:linear-gradient(140deg,#4bc98a,#1d6046)}
.g5{background:linear-gradient(140deg,#d9557f,#472046)}
.g6{background:linear-gradient(140deg,#4a8fd0,#1e3f66)}
.mcard b{display:block;margin-top:11px;font-size:.87rem;font-weight:500;padding:0 10px}
.mcard span{display:block;font-size:.76rem;color:var(--dim);padding:0 10px}
.wall-note{margin-top:20px;font-size:.82rem;color:var(--dim);text-align:center}

/* legal */
.legal{border:1px solid var(--line-soft);border-radius:var(--r-m);padding:24px 26px;background:rgba(255,255,255,.014);font-size:.84rem;color:#96899d;line-height:1.75;font-weight:300}
.legal b{color:#c6b9cc;font-weight:600}
.legal a{color:#c6b9cc}

/* footer */
footer{background:var(--bg-2);border-top:1px solid var(--line-soft);padding:48px 0 22px;font-size:.86rem;margin-top:auto}
.ftop{display:flex;justify-content:space-between;align-items:flex-start;gap:32px;flex-wrap:wrap;padding-bottom:30px;border-bottom:1px solid var(--line-soft)}
.fbrand .brand{margin-bottom:12px}
.fblurb{color:var(--dim);font-size:.84rem;line-height:1.7;max-width:38ch;margin:0}
.flinks{display:flex;flex-wrap:wrap;gap:14px 24px;padding-top:6px}
.flinks a{color:#bfb2c6;text-decoration:none;font-size:.87rem;white-space:nowrap}
.flinks a:hover{color:var(--text)}
.fnav{display:flex;gap:20px;flex-wrap:wrap;color:var(--muted)}
.fnav a{text-decoration:none}
.fnav a:hover{color:var(--text)}
.fagebar{display:flex;align-items:center;justify-content:center;gap:9px;text-align:center;flex-wrap:wrap;padding:22px 0 0;font-size:.76rem;color:var(--dim)}
.fbot{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap;padding-top:18px;font-size:.79rem;color:var(--dim)}
.badges{display:flex;gap:7px;flex-wrap:wrap}
.bdg{border:1px solid var(--line);border-radius:6px;padding:4px 9px;font-size:.7rem;color:var(--muted)}
.bdg.a{border-color:rgba(240,169,60,.4);color:var(--amber)}
@media (max-width:760px){
  .ftop{grid-template-columns:1fr 1fr;gap:26px 20px}
  .fbrand{grid-column:1 / -1}
  .fbot{justify-content:center;text-align:center}
}
.linkbtn{background:none;border:0;color:var(--muted);cursor:pointer;font-size:.86rem;padding:0;text-decoration:none}
.linkbtn:hover{color:var(--text)}

/* cookie */
.cookie{position:fixed;left:14px;right:14px;bottom:14px;z-index:220;max-width:540px;margin:0 auto;background:var(--surf-2);border:1px solid var(--line);border-radius:var(--r-m);padding:17px 19px;box-shadow:0 30px 60px -26px #000;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.cookie p{margin:0;font-size:.81rem;color:#b3a5bb;flex:1 1 250px;line-height:1.5;font-weight:300}
.cookie a{color:var(--amber)}
.cookie.hide{display:none}
.badges button.bdg{font:inherit;color:inherit;background:transparent;cursor:pointer}

/* reveal */
@media (prefers-reduced-motion:no-preference){
  .rv{opacity:0;transform:translateY(16px);animation:rise .65s cubic-bezier(.22,.7,.3,1) forwards}
  .rv2{animation-delay:.09s}
  @keyframes rise{to{opacity:1;transform:none}}
}

/* ============================================================
   8. APP COMPONENTS (registracija/prisijungimas/naršymas/pokalbiai)
   ============================================================ */
.flash{border-radius:var(--r-m);padding:13px 16px;margin-bottom:18px;font-size:.88rem;border:1px solid transparent}
.flash-success{background:rgba(75,201,138,.12);border-color:rgba(75,201,138,.35);color:#bdeed4}
.flash-error{background:rgba(220,59,104,.12);border-color:rgba(220,59,104,.4);color:#ffc2d3}
/* Success notices ("slaptažodis pakeistas", reward toasts...) fade out by themselves; errors stay.
   Pure CSS so it also covers notices React keeps on screen across client-side navigations
   (the layout Header isn't re-rendered after a Server Action redirect). */
.flash-success,.flash-info{animation:flash-out 5s ease forwards}
.verifygate .flash{animation:none}
@keyframes flash-out{0%,80%{opacity:1;max-height:240px}92%{opacity:0;max-height:240px}100%{opacity:0;visibility:hidden;max-height:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;border-width:0;overflow:hidden}}

.swipewrap{max-width:420px;margin:0 auto}

.swipecard{background:var(--surf);border:1px solid var(--line-soft);border-radius:var(--r-l);overflow:hidden;box-shadow:0 30px 60px -32px #000}
.swipephoto{position:relative;aspect-ratio:1/1;display:grid;place-items:center;font-family:var(--display);font-size:3rem;font-weight:700;color:#fff}
.swipephoto.small{width:72px;height:72px;aspect-ratio:auto;border-radius:14px;font-size:1.6rem;overflow:hidden}
/* Absolutely positioned: WebKit (every iOS browser) doesn't resolve height:100% for a grid
   item whose container is sized by flex, so the photo sat at its natural ratio with the
   gradient showing above and below it. */
.swipephoto img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}
.swipephoto .initial{opacity:.85}
.swipephoto.locked img{filter:blur(22px) saturate(.7);transform:scale(1.1)}
.premiumlock{
  position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  background:rgba(10,8,14,.28);color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.6);
}
.premiumlock svg{color:var(--amber)}
.premiumlock span{font-family:var(--display);font-weight:700;font-size:.86rem;letter-spacing:.01em}

/* --- match_profile.php extra photo gallery + private-photo access request --- */
.profgallery{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}
.profgallery-item{position:relative;aspect-ratio:3/4;border-radius:var(--r-m);overflow:hidden;background:var(--surf-2)}
.profgallery-item img{width:100%;height:100%;object-fit:cover;display:block}
.profgallery-item.locked img{filter:blur(16px) saturate(.7);transform:scale(1.1)}
.profgallery-item .premiumlock{background:rgba(10,8,14,.35)}
.profgallery-item:not(.locked){cursor:pointer}
.profgallery-item.active{box-shadow:0 0 0 2px var(--rose-hi)}
.photorequest{background:var(--surf);border:1px solid var(--line);border-radius:var(--r-m);padding:14px 16px;margin-bottom:18px}
.photorequest-row{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--line-soft)}
.photorequest-row:last-child{border-bottom:none}
.photorequest-row form{flex:none}

.msgsectionhead{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--dim);margin:24px 0 12px}
.newmatches{display:flex;gap:16px;overflow-x:auto;padding:2px 2px 8px;-webkit-overflow-scrolling:touch}
.newmatch-item{display:flex;flex-direction:column;align-items:center;gap:7px;flex:none;width:66px;text-decoration:none;color:inherit}
.newmatch-item .chatavatar{width:64px;height:64px;font-size:1.4rem;border:2px solid var(--rose-hi)}
.newmatch-item span{font-size:.72rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:66px}

.msginbox{display:flex;flex-direction:column}
.msgrow{display:flex;align-items:center;gap:14px;padding:12px 4px;border-bottom:1px solid var(--line-soft);text-decoration:none;color:inherit}
.msgrow:last-child{border-bottom:none}
.msgrow .chatavatar{width:52px;height:52px;font-size:1.2rem}
.msgrow-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.msgrow-name{font-weight:600;font-size:.95rem}
.msgrow-preview{font-size:.82rem;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msgrow.unread .msgrow-name{font-weight:800}
.msgrow.unread .msgrow-preview{color:var(--text);font-weight:600}
.msgrow-meta{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.msgrow-time{font-size:.7rem;color:var(--dim)}
.msgrow-dot{width:10px;height:10px;border-radius:50%;background:var(--rose-hi);display:block;margin-left:auto}

.cardmenu{
  position:absolute;top:12px;right:12px;z-index:6;
  width:32px;height:32px;border-radius:50%;border:0;cursor:pointer;
  background:rgba(10,8,14,.5);color:#fff;font-size:1.15rem;line-height:1;letter-spacing:1px;
  display:grid;place-items:center;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
}
.cardmenu:hover{background:rgba(10,8,14,.7)}
.photobadge{
  position:absolute;top:12px;left:12px;z-index:6;
  display:flex;align-items:center;gap:5px;
  background:rgba(8,6,12,.82);color:#fff;font-size:.72rem;font-weight:700;
  padding:5px 10px;border-radius:100px;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  border:1px solid rgba(255,255,255,.14);text-shadow:0 1px 2px rgba(0,0,0,.6);
  box-shadow:0 2px 8px -2px rgba(0,0,0,.5);
}
.demobadge{
  position:absolute;top:12px;right:12px;z-index:6;display:inline-flex;align-items:center;
  padding:5px 10px;border-radius:100px;background:#f0a93c;color:#1b1118;
  border:1px solid rgba(255,255,255,.45);box-shadow:0 4px 12px -6px #000;
  font-size:.68rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
}
.mthumb .demobadge{top:6px;right:6px;padding:3px 8px;font-size:.6rem;color:#1b1118}
.demonotice{margin:2px 0 12px;color:#f6c66f;font-size:.74rem;line-height:1.4;font-weight:600}
.demobox{display:flex;flex-direction:column;gap:5px;margin-top:18px;padding:15px 17px;border:1px solid rgba(240,169,60,.38);border-radius:var(--r-m);background:rgba(240,169,60,.09)}
.demobox strong{font-size:.9rem;color:#ffd486}
.demobox span{font-size:.8rem;line-height:1.45;color:#cbbfd1}
.mthumb .photobadge{top:6px;left:6px;padding:3px 8px;font-size:.64rem;gap:3px;background:rgba(8,6,12,.88)}
.cardmenu-dropdown{
  position:absolute;top:50px;right:12px;z-index:7;
  background:var(--surf-2);border:1px solid var(--line);border-radius:var(--r-m);
  box-shadow:0 20px 40px -16px #000;overflow:hidden;min-width:150px;
}
.cardmenu-dropdown form{margin:0}
.cardmenu-dropdown button{
  display:block;width:100%;text-align:left;padding:11px 16px;background:none;border:0;
  color:var(--text);font-size:.85rem;cursor:pointer;font-family:inherit;
}
.cardmenu-dropdown button:hover{background:rgba(255,255,255,.06)}
.cardmenu-dropdown form + form button{border-top:1px solid var(--line-soft)}

.swipeinfo{padding:16px 20px 4px;overflow:hidden}
.swipeinfo h3{margin-bottom:4px;display:flex;align-items:center;gap:8px}
.onlinedot{width:9px;height:9px;border-radius:50%;background:var(--mint);flex:none;box-shadow:0 0 0 3px rgba(75,201,138,.18)}
.swipeloc{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:.83rem;margin:0 0 8px}
.swipeloc svg{flex:none}
.swipeabout-label{font-size:.78rem;color:var(--rose-hi);font-weight:600;margin:0 0 3px}
.swipebio{
  font-size:.86rem;color:#d8cdde;line-height:1.4;margin:0 0 8px;font-weight:300;
  white-space:pre-line;
}
.interesttags{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:12px}
.interesttags .tag{
  background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:100px;
  padding:4px 10px;font-size:.75rem;color:#cbbfd1;white-space:nowrap;
}

/* discover.php: whole page fits one viewport, no scrolling to reach the
   swipe buttons -- the stack (flex:1) absorbs whatever space is left over
   after the chrome (nav), hint line and buttons take theirs. */
.sec-discover{flex:1;display:flex;flex-direction:column;padding:0}
.discoverpage{
  flex:1;
  display:flex;flex-direction:column;
  padding:10px 0;
}
.discoverfilters{display:flex;gap:22px;justify-content:center;border-bottom:1px solid var(--line-soft);margin-bottom:16px;overflow-x:auto}
.discoverfilters a{
  flex:none;padding:12px 2px;color:var(--dim);text-decoration:none;font-size:.92rem;font-weight:600;
  border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;
}
.discoverfilters a.on{color:var(--text);border-color:var(--rose)}

.discoverhint{flex:none;text-align:center;color:var(--dim);font-size:.86rem;font-weight:400;margin:0 0 10px}

.viewtoggle{display:flex;justify-content:center;gap:8px;margin-bottom:14px}
.viewtoggle a{
  padding:7px 16px;border-radius:100px;border:1px solid var(--line-soft);
  color:var(--dim);text-decoration:none;font-size:.82rem;font-weight:600;transition:all .15s;
}
.viewtoggle a.on{background:var(--rose);color:#fff;border-color:var(--rose)}

.nudge{
  display:flex;align-items:center;gap:6px;
  background:rgba(240,169,60,.1);border:1px solid rgba(240,169,60,.3);border-radius:var(--r-m);
  padding:12px 10px 12px 16px;margin-bottom:14px;color:#ffe3ac;font-size:.85rem;font-weight:500;line-height:1.4;
}
.nudge-link{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;flex:1;min-width:0}
.nudge-link:hover{opacity:.9}
.nudge-ico{flex:none;font-size:1rem}
.nudge-close{
  flex:none;width:26px;height:26px;border-radius:50%;border:0;cursor:pointer;
  background:transparent;color:#ffe3ac;opacity:.6;font-size:1.1rem;line-height:1;
  display:grid;place-items:center;
}
.nudge-close:hover{opacity:1;background:rgba(240,169,60,.16)}

.discoverlayout{flex:1;display:flex;flex-direction:column;align-items:center;width:100%}
.ghostcard{display:none}

.swipewrap{flex:1;display:flex;flex-direction:column;justify-content:center;width:100%;max-width:420px;margin:0 auto}

.backlink{display:inline-flex;align-items:center;gap:6px;color:var(--dim);text-decoration:none;font-size:.86rem;font-weight:500;margin-bottom:14px}
.backlink:hover{color:var(--text)}
.backlink::before{content:"←"}

/* card stack (discover.php) -- 340px is the floor a card needs to show
   photo + name + city + bio without looking crushed; if a viewport is too
   short for that, the page scrolls a little rather than mangling the card. */
.stackwrap{position:relative;flex:1;min-height:460px;max-height:min(78vh,760px);margin-bottom:12px}
.stackwrap .swipecard{
  position:absolute;inset:0;display:flex;flex-direction:column;
  touch-action:none;user-select:none;cursor:grab;transform-origin:center top;
}
.stackwrap .swipecard:active{cursor:grabbing}
.stackwrap .swipephoto{flex:1;min-height:0;cursor:pointer;aspect-ratio:auto}
.stackwrap .swipeinfo{flex:none}
.stamp{
  position:absolute;top:26px;z-index:5;padding:8px 18px;border:3px solid;border-radius:10px;
  font-family:var(--display);font-weight:800;font-size:1.35rem;letter-spacing:.04em;
  text-transform:uppercase;opacity:0;pointer-events:none;transition:opacity .1s linear;
}
.stamp-like{left:20px;color:var(--mint);border-color:var(--mint);transform:rotate(-14deg)}
.stamp-nope{right:20px;color:var(--rose-hi);border-color:var(--rose-hi);transform:rotate(14deg)}

.swipe-actions{flex:none;display:flex;align-items:center;justify-content:center;gap:18px;padding:6px 22px 22px}
.swbtn{width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;font-size:1.4rem;display:grid;place-items:center;transition:transform .15s}
.swbtn:hover{transform:translateY(-2px)}
.swbtn:active{transform:scale(.88)}
.swbtn-sm{width:50px;height:50px;font-size:1.15rem;align-self:center}
.swbtn-pass{background:var(--surf-2);color:var(--muted);border:1px solid var(--line)}
.swbtn-like{background:linear-gradient(178deg,var(--rose-hi),var(--rose));color:#fff;box-shadow:0 10px 26px -12px rgba(220,59,104,.9)}
.swbtn-super{background:var(--surf-2);color:var(--amber);border:1px solid rgba(240,169,60,.4)}
.swbtn:disabled{opacity:.35;cursor:not-allowed}
.swbtn:disabled:hover{transform:none}

.emptystate{flex:none;text-align:center;padding:40px 20px;border:1px dashed var(--line);border-radius:var(--r-l);background:var(--surf)}

/* match_profile.php: round icon action row below the static profile card,
   sharing the exact swbtn styling used by the discover.php swipe buttons. */
.matchactions{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:20px}
.matchactions form{margin:0}


/* 18+ age verification gate, shown to logged-out visitors before anything else */
/* margin:auto on the box centres it while it fits; on a short screen (phone held sideways) it starts at the
   top and the overlay scrolls -- align-items:center cut the top off with no way to reach it. */
.agegate{position:fixed;inset:0;z-index:900;display:flex;padding:20px;overflow-y:auto;overscroll-behavior:contain;background:rgba(8,6,10,.86)}
.agegate.hide{display:none}
.agegate-box{text-align:center;max-width:460px;width:100%;padding:12px;margin:auto}
.agegate-badge{
  width:104px;height:104px;margin:0 auto 26px;border-radius:50%;
  display:grid;place-items:center;
  background:radial-gradient(circle at 34% 30%,#e5495f,#a3182a 74%);
  border:4px solid #fff;box-shadow:0 16px 34px -12px rgba(0,0,0,.7);
  font-family:var(--display);font-weight:800;font-size:1.9rem;color:#fff;letter-spacing:-.02em;
}
.agegate-box h2{font-size:1.6rem;line-height:1.25;margin-bottom:14px;color:#fff}
.agegate-box p{color:#cabfd0;font-size:.92rem;line-height:1.6;font-weight:300;margin:0}
.agegate-actions{display:grid;gap:12px;margin-top:28px}
.agegate-confirm{
  border:none;border-radius:100px;padding:15px 24px;font-family:var(--display);font-weight:700;font-size:1rem;color:#fff;cursor:pointer;
  background:linear-gradient(178deg,#6bdc8a 0%,#3fae5c 62%,#2c8a46 100%);
  box-shadow:0 16px 34px -14px rgba(63,174,92,.7), inset 0 1px 0 rgba(255,255,255,.3);
  transition:transform .15s;
}
.agegate-confirm:hover{transform:translateY(-2px)}
.agegate-confirm:active{transform:translateY(0) scale(.98)}
.agegate-leave{color:#9c8fa5;font-size:.82rem;text-decoration:underline;text-underline-offset:2px}
.agegate-leave:hover{color:#cabfd0}
@media (max-height:520px){
  .agegate-box{padding:4px 12px}
  .agegate-badge{width:64px;height:64px;margin-bottom:12px;border-width:3px;font-size:1.25rem}
  .agegate-box h2{font-size:1.25rem;margin-bottom:8px}
  .agegate-actions{gap:8px;margin-top:16px}
  .agegate-confirm{padding:12px 24px}
}

/* Email verification gate: everything else on the page is blurred and
   inert until email_verified_at is set server-side (see includes/header.php) */
body.unverified-blur > *:not(.verifygate):not(.agegate){filter:blur(9px);pointer-events:none;user-select:none}
.verifygate{position:fixed;inset:0;z-index:950;display:flex;padding:20px;overflow-y:auto;overscroll-behavior:contain;background:rgba(8,6,10,.86)}
.verifygate-box{text-align:center;max-width:420px;width:100%;margin:auto;background:var(--surf);border:1px solid var(--line);border-radius:var(--r-l);padding:34px 28px;box-shadow:0 30px 60px -26px #000}
.verifygate-box h2{font-size:1.35rem;margin-bottom:10px;color:#fff}
.verifygate-box p{color:#cabfd0;font-size:.9rem;line-height:1.55;font-weight:300;margin:0}
.verifygate-box .agegate-badge{width:72px;height:72px;font-size:1.5rem;margin-bottom:20px}
.verifygate-form{margin-top:22px;text-align:left}
/* Resend feedback that can't be missed (owner, 2026-10-02): the gate flashes green, the box pops, an envelope
   with a check flies in; errors shake the box. [hidden] must win over .btn's display. */
.verifygate [hidden]{display:none!important}
.verifygate.vgate-pulse{animation:vgatePulse .8s ease-out}
@keyframes vgatePulse{0%{background:rgba(63,174,92,.55)}100%{background:rgba(8,6,10,.86)}}
.verifygate-box.vgate-pop{animation:vgatePop .5s cubic-bezier(.2,1.4,.4,1)}
@keyframes vgatePop{0%{transform:scale(.9);opacity:.3}100%{transform:none;opacity:1}}
.verifygate-box.vgate-shake{animation:vgateShake .42s}
@keyframes vgateShake{0%,100%{transform:none}20%,60%{transform:translateX(-9px)}40%,80%{transform:translateX(9px)}}
.vgate-envelope{position:relative;width:104px;height:72px;margin:8px auto 0;border-radius:10px;background:linear-gradient(165deg,#f5f1ed,#ddd3da);box-shadow:0 20px 40px -16px rgba(0,0,0,.85);animation:vgateFly .9s cubic-bezier(.2,1.3,.4,1) both}
.vgate-envelope::before{content:"";position:absolute;inset:0;border-radius:10px 10px 0 0;background:#c9bcc5;clip-path:polygon(0 0,100% 0,50% 60%)}
.vgate-env-check{position:absolute;right:-14px;top:-14px;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-size:1.3rem;font-weight:800;color:#fff;background:linear-gradient(178deg,#6bdc8a,#2c8a46);border:3px solid var(--surf);animation:vgateCheck .5s .55s cubic-bezier(.2,1.6,.4,1) both}
@keyframes vgateFly{0%{transform:translateY(30px) scale(.5) rotate(-10deg);opacity:0}100%{transform:none;opacity:1}}
@keyframes vgateCheck{0%{transform:scale(0)}100%{transform:scale(1)}}
.vgate-sent h2{font-size:1.55rem;margin:20px 0 8px;color:#fff}
.vgate-sent .vgate-sent-text{color:#efe8f1;font-size:.98rem;font-weight:400;line-height:1.55;margin:0 0 18px}
.vgate-sent-text b{color:#fff;font-weight:700;overflow-wrap:anywhere}
#vgateResendAgain:disabled{opacity:.55;cursor:default}
.vgate-sent p.sm{margin:8px 0 0}
#vgateOpenMail{margin-bottom:6px}
#vgateResendAgain{margin-top:18px}
#vgateBackToForm{margin-top:12px}
@media (prefers-reduced-motion:reduce){.verifygate.vgate-pulse,.verifygate-box.vgate-pop,.verifygate-box.vgate-shake,.vgate-envelope,.vgate-env-check{animation:none}}
.verifygate-emailfield{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.verifygate-form input[type=email]{
  flex:1;min-width:0;padding:12px 14px;border-radius:11px;border:1px solid var(--line);
  background:rgba(8,6,12,.5);color:var(--text);font-family:inherit;font-size:.92rem;
}
.verifygate-form input[type=email]:focus{outline:none;border-color:var(--rose)}
.verifygate-form input[type=email][readonly]{
  background:none;border-color:transparent;padding:12px 0;color:#cabfd0;
}
.verifygate-changelink{
  flex:none;background:none;border:none;color:var(--amber);font-size:.8rem;font-weight:600;
  cursor:pointer;text-decoration:underline;text-underline-offset:2px;padding:0;font-family:inherit;
}
.verifygate-form button{
  width:100%;border:none;border-radius:100px;padding:13px 20px;font-family:var(--display);font-weight:700;
  font-size:.94rem;color:#fff;cursor:pointer;
  background:linear-gradient(178deg,var(--rose-hi) 0%,var(--rose) 62%,#c22c56 100%);
}
.verifygate-form button:hover{filter:brightness(1.05)}

/* "it's a match" overlay */
.matchmodal{
  position:fixed;inset:0;z-index:500;display:none;align-items:center;justify-content:center;padding:20px;
  background:radial-gradient(circle at 50% 15%,rgba(220,59,104,.35),transparent 55%),rgba(6,4,10,.94);
  backdrop-filter:blur(6px);
}
.matchmodal.on{display:flex}
.matchmodal-box{text-align:center;max-width:360px;width:100%}
@media (prefers-reduced-motion:no-preference){
  .matchmodal.on .matchmodal-box{animation:matchpop .45s cubic-bezier(.2,.9,.3,1.2)}
  @keyframes matchpop{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:none}}
}
.matchmodal-close{
  position:absolute;top:18px;left:18px;width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);color:#fff;font-size:1.1rem;cursor:pointer;display:grid;place-items:center;
}
.matchmodal-photos{position:relative;height:230px;margin:10px 0 28px}
.matchmodal-photo{
  position:absolute;top:0;width:150px;height:200px;border-radius:16px;overflow:hidden;
  border:4px solid var(--bg);box-shadow:0 16px 34px -14px #000;background:var(--surf-2);
  display:grid;place-items:center;font-family:var(--display);font-weight:700;font-size:2rem;color:#fff;
}
.matchmodal-photo img{width:100%;height:100%;object-fit:cover}
.matchmodal-photo-me{left:50%;transform:rotate(-9deg) translateX(-88%);z-index:1}
.matchmodal-photo-them{left:50%;transform:rotate(9deg) translateX(-12%);z-index:2}
.matchmodal-title{
  font-family:var(--display);font-style:italic;font-weight:800;font-size:2.4rem;
  color:var(--rose-hi);margin-bottom:6px;letter-spacing:-.01em;
}
.matchmodal-sub{color:var(--muted);margin-bottom:24px}
.matchmodal-msgform{display:flex;gap:10px;margin-bottom:14px}
.matchmodal-msgform input{
  flex:1;padding:13px 16px;border-radius:100px;border:1px solid var(--line);
  background:rgba(255,255,255,.06);color:var(--text);font-family:inherit;
}
.matchmodal-msgform input:focus{outline:none;border-color:var(--rose-hi)}
.matchmodal-msgform button{
  width:44px;height:44px;flex:none;border-radius:50%;border:0;cursor:pointer;
  background:linear-gradient(135deg,var(--rose-hi),var(--rose));color:#fff;display:grid;place-items:center;
}
.matchmodal-emojis{display:flex;justify-content:center;gap:12px;margin-bottom:18px}
.matchmodal-emoji{
  width:46px;height:46px;border-radius:50%;border:1px solid var(--line);background:rgba(255,255,255,.05);
  font-size:1.3rem;cursor:pointer;display:grid;place-items:center;
}
.matchmodal-emoji:hover{background:rgba(255,255,255,.1)}
.matchmodal-viewlink{color:var(--muted);font-size:.85rem;text-decoration:underline}

/* small avatar used in chat header, linking back to the match profile */
.chatavatar{width:44px;height:44px;border-radius:50%;overflow:hidden;display:grid;place-items:center;font-family:var(--display);font-weight:700;color:#fff;flex:none}
.chatavatar img{width:100%;height:100%;object-fit:cover}

.chatwrap{border:1px solid var(--line-soft);border-radius:var(--r-l);background:var(--surf);overflow:hidden;display:flex;flex-direction:column;height:min(60vh,540px)}
.chatlist{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:8px}
.msg{position:relative;max-width:75%;padding:10px 30px 10px 14px;border-radius:14px;font-size:.9rem;line-height:1.4;word-wrap:break-word}
.msg.me{align-self:flex-end;background:linear-gradient(178deg,var(--rose-hi),var(--rose));color:#fff;border-bottom-right-radius:4px}
.msg.them{align-self:flex-start;background:var(--surf-2);color:var(--text);border-bottom-left-radius:4px}
.msg-body{display:block}
.msg.typing{padding:12px 16px}
.typing-dots{display:inline-flex;gap:4px;align-items:center}
.typing-dots span{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.5;animation:typingBounce 1.2s infinite ease-in-out}
.typing-dots span:nth-child(2){animation-delay:.2s}
.typing-dots span:nth-child(3){animation-delay:.4s}
@keyframes typingBounce{0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-4px);opacity:1}}
.msg-del{
  position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;border:0;cursor:pointer;
  background:rgba(0,0,0,.18);color:inherit;font-size:.85rem;line-height:1;opacity:.55;
  display:flex;align-items:center;justify-content:center;padding:0;
}
.msg-del:hover{opacity:1;background:rgba(0,0,0,.32)}
@media (prefers-reduced-motion:no-preference){
  .msg{animation:msgin .25s ease}
  @keyframes msgin{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
}
.chatform{display:flex;gap:10px;padding:14px;border-top:1px solid var(--line-soft)}
.chatform input{flex:1;padding:12px 14px;border-radius:11px;border:1px solid var(--line);background:rgba(8,6,12,.5);color:var(--text);font-family:inherit}
.chatform input:focus{outline:none;border-color:var(--rose)}
/* Phones: the conversation fills exactly the visible screen between the nav and the tab bar so the
   input + Siųsti are always on screen (a fixed 60vh box pushed them under the tab bar on iPhone,
   where vh is the toolbar-less height). app.js sets the exact height from innerHeight. */
@media (max-width:760px){
  .sec.sec-chat{
    padding:8px 0 0;display:flex;flex-direction:column;
    height:calc(100vh - 67px - 70px - env(safe-area-inset-bottom));
    height:calc(100dvh - 67px - 70px - env(safe-area-inset-bottom));
    min-height:300px;
  }
  .sec-chat > .wrap{flex:1;display:flex;flex-direction:column;min-height:0}
  .sec-chat .head{margin-bottom:8px !important;flex:none}
  .sec-chat .chatwrap{flex:1;height:auto;min-height:0;margin-bottom:8px}
  .sec-chat .chatlist{padding:12px}
  .sec-chat .chatform{flex:none;padding:10px}
  /* 16px: iOS zooms the whole page into any smaller input on focus, pushing Siųsti off screen */
  .sec-chat .chatform input{font-size:16px;min-width:0}
}

/* ============================================================
   9. MOBILE APP TAB BAR (logged-in members, phone widths)
   ============================================================ */
.tabbar{display:none}
.tabbar a,.tabbar button{
  position:relative;flex:1;display:flex;align-items:center;justify-content:center;
  color:var(--dim);text-decoration:none;padding:12px 0;
  border-radius:12px;transition:color .15s,transform .15s;
  background:none;border:none;font-family:inherit;cursor:pointer;
}
.tabbar a span,.tabbar button span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.tabbar a svg,.tabbar button svg{width:25px;height:25px;transition:transform .15s}
.tabbar a.on,.tabbar button.on{color:var(--rose-hi)}
.tabbar-badge{position:absolute;top:5px;left:calc(50% + 5px);min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;border-radius:999px;background:#dfc272;color:#15120c;font-size:.62rem;font-weight:700;line-height:1}
.tabbar a:active,.tabbar button:active{transform:scale(.92)}

.moremenu{position:fixed;inset:0;z-index:210;display:none}
.moremenu:not([hidden]){display:block}
.moremenu::before{content:"";position:absolute;inset:0;background:rgba(3,3,2,.72)}
.moremenu-sheet{
  position:absolute;left:0;right:0;bottom:0;background:var(--surf);border:1px solid var(--line);border-bottom:none;
  border-radius:20px 20px 0 0;padding:10px 10px calc(14px + env(safe-area-inset-bottom));
  box-shadow:0 -20px 50px -20px #000;
}
.moremenu-sheet a{
  display:flex;align-items:center;gap:13px;padding:14px 12px;color:var(--text);text-decoration:none;
  font-size:.94rem;font-weight:500;border-radius:12px;
}
.moremenu-sheet a:active{background:rgba(255,255,255,.05)}
.moremenu-sheet a svg{width:20px;height:20px;color:var(--dim);flex:none}
.moremenu-sheet a.on{color:var(--rose-hi)}
.moremenu-sheet a.on svg{color:var(--rose-hi)}
.discover-filter-menu{padding:10px 12px 16px;margin-bottom:4px;border-bottom:1px solid var(--line)}
.discover-filter-menu > strong{display:block;margin-bottom:11px;color:#d7b86f;font-size:.7rem;letter-spacing:.16em;text-transform:uppercase}
.discover-filter-menu > div{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.discover-filter-menu a{justify-content:center!important;padding:10px!important;border:1px solid var(--line);border-radius:999px!important;background:rgba(255,255,255,.02);font-size:.78rem!important}
.discover-filter-menu a i{width:7px;height:7px;border-radius:50%;background:#67d7aa;box-shadow:0 0 0 3px rgba(103,215,170,.12)}
.discover-filter-menu > div + div{margin-top:8px}
.discover-filter-menu a.on{color:#f0d58e!important;border-color:rgba(217,183,112,.65);background:rgba(34,29,18,.78)}

/* ============================================================
   10. DESKTOP DISCOVER LAYOUT (previous/next preview cards)
   ============================================================ */
@media (min-width:1041px){
  .discoverlayout{flex-direction:row;align-items:stretch;justify-content:center;gap:36px}
  .discoverlayout .swipewrap{width:420px;max-width:420px;margin:0}
  .ghostcard{
    display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;
    width:200px;flex:none;opacity:.55;filter:saturate(.65);
    transform:scale(.94);transition:opacity .3s ease,transform .3s ease;
  }
  .ghostcard.empty{opacity:0}
  .ghostlabel{font-size:.7rem;letter-spacing:.07em;text-transform:uppercase;color:var(--dim);font-weight:700}
  .ghostbody{width:100%;display:flex;flex-direction:column;align-items:center;gap:10px}
  .ghostphoto{
    width:100%;aspect-ratio:3/4;border-radius:var(--r-l);overflow:hidden;
    display:grid;place-items:center;font-family:var(--display);font-weight:700;font-size:2rem;color:#fff;
    border:1px solid var(--line-soft);
  }
  .ghostphoto img{width:100%;height:100%;object-fit:cover}
  .ghostbody b{font-size:.9rem;color:var(--muted);font-weight:500}
}

/* ============================================================
   11. RESPONSIVE
   ============================================================ */
@media (max-width:1040px){
  .hero-grid{grid-template-columns:1fr;gap:40px}
  .wall,.matchgrid{grid-template-columns:repeat(4,1fr)}
  .steps{grid-template-columns:1fr;gap:26px}
  .bento{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:760px){
  .navlinks{display:none}
  .burger{display:block}
  .navlinks.open{display:grid;position:absolute;top:66px;left:0;right:0;background:var(--bg-2);border-bottom:1px solid var(--line);padding:18px var(--pad) 22px;gap:15px;margin:0}

  /* brand + language selector + auth button all have to fit next to each
     other on a narrow screen -- shrink each a bit instead of letting the
     auth button get pushed off the right edge. */
  .nav .wrap{gap:8px}
  .nav .brand .bname{display:none}
  .mark{width:30px;height:30px;font-size:.76rem}
  .langsel-btn{padding:6px 7px;gap:3px}
  .langsel-btn .flag{font-size:.92rem}
  /* On mobile the brand mark pushes langsel close to the left edge, so a
     menu anchored to its right edge (desktop's right:0) overflows off the
     left of the screen -- anchor to the button's left edge instead so it
     opens rightward, staying on screen. */
  .langsel-menu{left:0;right:auto}
  .nav .btn-sm{padding:9px 12px;font-size:.82rem}
  /* Phone header for members: logo · ⭐ balance (super likes cost stars) · language · bell · menu.
     Logout lives in the menu sheet. */
  .nav-auth .btn-ghost{display:none}
  .nav-auth .rewardbadge{order:1;margin-left:auto;padding:6px 10px;font-size:.78rem}
  .nav-auth .langsel{order:2}
  .nav-auth .discover-mobile-header-actions{order:3;display:flex;align-items:center;gap:8px}
  .hero{padding:44px 0 56px}
  .sec{padding:60px 0}
  .wall,.matchgrid{grid-template-columns:repeat(3,1fr);gap:9px}
  .matchgrid{grid-template-columns:repeat(2,1fr)}
  .bento{grid-template-columns:1fr}
  .regcard{padding:22px 18px 18px}

  body.has-tabbar{padding-bottom:calc(70px + env(safe-area-inset-bottom))}
  body.has-tabbar .cookie{bottom:calc(84px + env(safe-area-inset-bottom))}
  .tabbar{
    display:flex;position:fixed;left:0;right:0;bottom:0;z-index:190;
    background:rgba(13,11,19,.96);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
    border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom));
  }
}
/* Phones, discover swipe view (Tinder-style): the deck fills exactly the visible screen
   between the nav and the tab bar, the photo fills the whole card, and name/info plus
   ✕ ★ ♥ float over its bottom -- a browser eats ~180px of toolbars, so buttons under the
   card would leave it almost square. app.js sets the exact height from innerHeight
   (iOS 100vh includes the hidden toolbars); dvh/vh are the fallback until it runs. */
.discoverfilters .viewswitch{display:none}
.swipe-actions[hidden]{display:none}
@media (max-width:760px){
  .sec-discover.is-swipe{
    flex:none;
    height:calc(100vh - 67px - 70px - env(safe-area-inset-bottom));
    height:calc(100dvh - 67px - 70px - env(safe-area-inset-bottom));
    min-height:380px;
  }
  .sec-discover.is-swipe .discoverpage{padding:0 var(--pad);min-height:0}
  /* space-between, not center: a centered row that overflows clips its first tab on narrow phones */
  .sec-discover.is-swipe .discoverfilters{margin-bottom:8px;gap:12px;justify-content:space-between}
  .sec-discover.is-swipe .discoverfilters a{padding:10px 2px}
  .sec-discover.is-swipe .discoverfilters .viewswitch{display:flex;align-items:center;border-bottom-color:transparent}
  @media (max-width:360px){.sec-discover.is-swipe .discoverfilters a{font-size:.84rem}}
  .sec-discover.is-swipe .viewtoggle,.sec-discover.is-swipe .discoverhint{display:none}
  .sec-discover.is-swipe .discoverlayout{min-height:0}
  .sec-discover.is-swipe .swipewrap{position:relative;min-height:0;padding-bottom:10px}
  .sec-discover.is-swipe .stackwrap{min-height:260px;max-height:none;margin:0}

  .sec-discover.is-swipe .stackwrap .swipephoto{position:absolute;top:0;left:0;right:0;bottom:0}
  .sec-discover.is-swipe .stackwrap .swipeinfo{
    position:absolute;left:0;right:0;bottom:0;z-index:4;pointer-events:none;
    padding:72px 16px 88px;
    background:linear-gradient(to top,rgba(8,6,12,.96) 0%,rgba(8,6,12,.82) 42%,rgba(8,6,12,0) 100%);
  }
  .sec-discover.is-swipe .swipeinfo h3{color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.55)}
  .sec-discover.is-swipe .swipeloc{color:rgba(255,255,255,.86);margin-bottom:4px}
  .sec-discover.is-swipe .swipeabout-label{display:none}
  .sec-discover.is-swipe .swipebio{color:rgba(255,255,255,.9);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-bottom:6px}
  .sec-discover.is-swipe .interesttags{max-height:28px;overflow:hidden;padding-bottom:0}
  .sec-discover.is-swipe .interesttags .tag{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.22);color:#fff}

  .sec-discover.is-swipe .swipe-actions{position:absolute;left:0;right:0;bottom:24px;z-index:20;padding:0;pointer-events:none}
  .sec-discover.is-swipe .swbtn{pointer-events:auto;box-shadow:0 8px 22px -8px rgba(0,0,0,.85)}
  .sec-discover.is-swipe .swbtn-pass,.sec-discover.is-swipe .swbtn-super{background:rgba(22,19,30,.85);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
}
@media (max-width:420px){
  .two{grid-template-columns:1fr}
  .wall{grid-template-columns:repeat(2,1fr)}
}

/* privacy policy / legal text bodies (app/privacy) */
.legalbody p{margin:0 0 12px}
.legalbody ul{color:#b3a5bb;padding-left:20px;margin:0 0 14px}
.legalbody li{margin-bottom:6px}

/* Desktop deck: a long bio squeezed the photo -- the card shows photo, name, city and interests;
   the full bio is on the profile (tap the photo -> view-profile). Phones keep their 2-line overlay. */
@media (min-width:761px){
  .stackwrap .swipeabout-label,.stackwrap .swipebio{display:none}
}

/* ============================================================
   12. AMIVO DISCOVER — EDITORIAL BLACK / WARM GOLD
   The authenticated browse screen follows the supplied desktop and phone
   references while keeping the existing matching and moderation behaviour.
   ============================================================ */
.discover-intro,.discover-aside{display:none}
.discover-mobile-header-actions{display:none}
.profile-status{
  position:absolute;top:18px;left:18px;z-index:6;display:inline-flex;align-items:center;gap:8px;
  padding:8px 13px;border:1px solid rgba(245,241,237,.24);border-radius:999px;
  color:#f5f1ed;background:rgba(8,8,7,.7);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  font-size:.72rem;font-weight:700;line-height:1;box-shadow:0 8px 24px rgba(0,0,0,.22)
}
.profile-status i{width:8px;height:8px;border-radius:50%;background:#67d7aa;box-shadow:0 0 0 4px rgba(103,215,170,.15)}
.discover-match-badge{position:absolute;top:18px;right:18px;z-index:6;padding:8px 13px;border:1px solid rgba(217,183,112,.42);border-radius:999px;color:#ead18f;background:rgba(8,8,7,.7);backdrop-filter:blur(12px);font-size:.72rem;font-weight:700;line-height:1}
.discover-edition{display:block;margin-bottom:12px;color:#e2c77d;font-size:.68rem;font-weight:700;letter-spacing:.18em}

body:has(.sec-discover){background:#050504}
body:has(.sec-discover) > footer{display:none}

@media (min-width:761px){
  .sec-discover.is-swipe .discover-stage{display:flex;flex-direction:column;min-width:0;min-height:0}
  .sec-discover.is-swipe .discoverlayout,.sec-discover.is-swipe .swipewrap{min-height:0}
  .sec-discover.is-swipe .swipewrap{position:relative;max-width:650px;width:100%}
  .sec-discover.is-swipe .stackwrap{min-height:620px;max-height:none;margin:0}
  .sec-discover.is-swipe .stackwrap .swipecard{border-color:rgba(217,183,112,.38);border-radius:30px;background:#0b0b0a}
  .sec-discover.is-swipe .stackwrap .swipephoto{position:absolute;inset:0}
  .sec-discover.is-swipe .stackwrap .swipeinfo{
    position:absolute;left:0;right:0;bottom:0;z-index:4;pointer-events:none;
    padding:180px 38px 132px;background:linear-gradient(to top,rgba(5,5,4,.98) 0%,rgba(5,5,4,.76) 43%,rgba(5,5,4,0) 100%)
  }
  .sec-discover.is-swipe .swipeinfo h3{
    display:block;max-width:100%;overflow-wrap:anywhere;color:#f5f1ed;font-family:Georgia,"Times New Roman",serif;font-weight:400;
    font-size:clamp(2.3rem,3vw,3.35rem);line-height:.98;letter-spacing:-.045em;margin-bottom:10px;
    text-shadow:0 3px 18px rgba(0,0,0,.7)
  }
  .sec-discover.is-swipe .swipeinfo .onlinedot{display:none}
  .sec-discover.is-swipe .swipeloc{color:rgba(245,241,237,.82);font-size:.92rem;margin-bottom:13px}
  .sec-discover.is-swipe .swipeabout-label{display:none}
  .sec-discover.is-swipe .swipebio{
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
    max-width:52ch;color:rgba(245,241,237,.84);font-size:.91rem;line-height:1.55;margin-bottom:13px
  }
  .sec-discover.is-swipe .interesttags{max-height:38px;overflow:hidden;padding:0}
  .sec-discover.is-swipe .interesttags .tag{
    padding:6px 12px;background:rgba(245,241,237,.1);border-color:rgba(245,241,237,.24);color:#f5f1ed;
    backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)
  }
  .sec-discover.is-swipe .swipe-actions{
    position:absolute;left:0;right:0;bottom:38px;z-index:20;padding:0;pointer-events:none
  }
  .sec-discover.is-swipe .swbtn{pointer-events:auto;background:rgba(8,8,7,.66);border:1px solid rgba(217,183,112,.48);color:#e5c77e;box-shadow:0 12px 28px rgba(0,0,0,.34);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
  .sec-discover.is-swipe .swbtn-like{width:68px;height:68px;background:linear-gradient(145deg,#f0d58e,#cfaa59);border-color:#f2d991;color:#15120c;box-shadow:0 15px 34px rgba(207,170,89,.3)}
  .sec-discover.is-swipe .swbtn-sm{width:55px;height:55px}
  .sec-discover.is-swipe .photobadge{left:auto;right:18px;top:18px;background:rgba(8,8,7,.7);border-color:rgba(245,241,237,.24)}
  .sec-discover.is-swipe .cardmenu{top:auto;right:18px;bottom:286px;background:rgba(8,8,7,.7);border:1px solid rgba(245,241,237,.2);font-family:Georgia,serif;font-weight:700}
}

@media (min-width:1100px){
  .nav-discover{display:none}
  body:has(.sec-discover){padding-bottom:0}
  .sec-discover{min-height:100svh;padding:18px;background:radial-gradient(circle at 50% 35%,rgba(217,183,112,.075),transparent 38%),#050504}
  .sec-discover .discoverpage{
    width:100%;max-width:1720px;min-height:calc(100svh - 36px);padding:0;
    display:grid;grid-template-columns:26% 48% 26%;
    border:1px solid rgba(217,183,112,.25);border-radius:32px;overflow:hidden;background:#080807
  }
  .discover-intro,.discover-aside{display:flex;min-width:0;padding:42px 36px}
  .discover-intro{flex-direction:column;border-right:1px solid rgba(217,183,112,.2)}
  .discover-intro .brand{align-self:flex-start}
  .discover-intro .brand-logo{width:108px}
  .discover-intro-copy{margin:auto 0}
  .discover-kicker{display:block;color:#d7b86f;font-size:.7rem;font-weight:700;letter-spacing:.18em;line-height:1.4}
  .discover-intro h1{
    margin:22px 0 20px;color:#f5f1ed;font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.5rem,3.5vw,4.15rem);
    font-weight:400;line-height:.98;letter-spacing:-.05em
  }
  .discover-intro h1 em{display:block;margin-top:7px;color:#e1c477;font-weight:400}
  .discover-intro-copy > p{margin:0;color:#9c978e;font-size:.93rem;line-height:1.7;max-width:29ch}
  .discover-side-nav{display:grid;gap:8px}
  .discover-side-nav a{display:flex;align-items:center;gap:14px;padding:13px 16px;border:1px solid transparent;border-radius:14px;text-decoration:none;color:#817d76;font-size:.92rem;transition:.18s ease}
  .discover-side-nav a span{width:24px;color:#99958d;font-size:1.3rem;text-align:center;line-height:1}
  .discover-side-nav a svg{width:24px;height:24px;flex:none;color:#99958d}
  .discover-side-nav a:hover{color:#f5f1ed;border-color:rgba(217,183,112,.16)}
  .discover-side-nav a.on{color:#f5f1ed;background:rgba(217,183,112,.13);border-color:rgba(217,183,112,.32)}
  .discover-side-nav a.on span{color:#e3c777}
  .discover-side-nav a.on svg{color:#e3c777}
  .discover-side-badge{display:grid;place-items:center;width:25px;height:25px;margin-left:auto;border-radius:50%;color:#15120c;background:#dfc272;font-size:.7rem}
  .discover-prive-card{margin-top:28px;padding:20px 22px;border:1px solid rgba(217,183,112,.3);border-radius:20px;background:linear-gradient(145deg,rgba(217,183,112,.12),rgba(217,183,112,.025))}
  .discover-prive-card > span{display:flex;justify-content:space-between;color:#dec37b;font-size:.69rem;font-weight:700;letter-spacing:.16em}
  .discover-prive-card strong{display:block;margin-top:15px;color:#f5f1ed;font-family:Georgia,"Times New Roman",serif;font-size:1.25rem;font-weight:400}
  .discover-prive-card p{margin:7px 0 0;color:#858078;font-size:.73rem;line-height:1.5}

  .discover-stage{padding:34px 44px;height:calc(100svh - 38px);max-height:1020px;align-self:center}
  .discover-stage .discoverfilters-mobile,.discover-stage > .viewtoggle,.discover-stage > .discoverhint{display:none}
  .discover-stage .discoverlayout{min-height:0;justify-content:center}
  .sec-discover.is-swipe .discover-stage .swipewrap{
    flex:none;height:auto;width:min(100%,634px,calc(66.667vh - 69.333px));width:min(100%,634px,calc(66.667dvh - 69.333px));
    min-width:0;aspect-ratio:2/3
  }
  .sec-discover.is-swipe .discover-stage .stackwrap{flex:none;width:100%;height:100%;min-height:0}
  .discover-stage .nudge{position:absolute;z-index:40;top:48px;left:50%;width:min(480px,calc(100% - 36px));transform:translateX(-50%);margin:0;background:rgba(8,8,7,.84);border-color:rgba(217,183,112,.45)}

  .discover-aside{flex-direction:column;justify-content:space-between;border-left:1px solid rgba(217,183,112,.2)}
  .discover-aside-main{min-width:0}
  .discover-aside h2{margin:0 0 22px;color:#f5f1ed;font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(1.6rem,2vw,2rem);line-height:1.08}
  .discover-recommendation-list{display:grid;gap:12px}
  .discover-recommendation{
    display:flex;align-items:center;gap:13px;min-width:0;padding:14px 15px;
    border:1px solid #2d2b27;border-radius:18px;background:#0d0d0c
  }
  .discover-recommendation-avatar{
    flex:none;width:44px;height:44px;display:grid;place-items:center;border:1px solid #514936;border-radius:50%;
    color:#b9ad92;background:rgba(217,183,112,.07);font-family:Georgia,"Times New Roman",serif;font-size:1rem
  }
  .discover-recommendation-copy{display:grid;gap:3px;min-width:0;line-height:1.25}
  .discover-recommendation-copy strong{overflow:hidden;color:#f5f1ed;font-size:.84rem;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
  .discover-recommendation-copy span{overflow:hidden;color:#78746d;font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}
  .discover-recommendation-online{flex:none;width:7px;height:7px;margin-left:auto;border-radius:50%;background:#67d7aa;box-shadow:0 0 0 3px rgba(103,215,170,.1)}
  .discover-current-interests{margin-top:42px}
  .discover-aside-interests{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}
  .discover-aside-interest{
    display:inline-flex;align-items:center;min-height:36px;padding:8px 13px;border:1px solid #302e29;border-radius:999px;
    color:#a5a097;background:rgba(245,241,237,.015);font-size:.76rem;line-height:1.1
  }
  .discover-aside-filters{display:flex;flex-wrap:wrap;gap:9px}
  .discover-aside-filters a,.discover-aside-views a{
    padding:9px 14px;border:1px solid #302e29;border-radius:999px;color:#918d85;text-decoration:none;font-size:.78rem;line-height:1;transition:.18s ease
  }
  .discover-aside-filters a:hover,.discover-aside-views a:hover{color:#f5f1ed;border-color:#696052}
  .discover-aside-filters a.on,.discover-aside-views a.on{color:#e3c777;border-color:#806b3e;background:rgba(217,183,112,.12)}
  .discover-aside-views{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px;padding-top:18px;border-top:1px solid #282620}
  .discover-aside blockquote{margin:40px 0 0;padding-top:30px;border-top:1px solid #302e29;color:#9e9990;font-family:Georgia,"Times New Roman",serif;font-size:1.08rem;font-style:italic;line-height:1.55}
  .discover-aside cite{display:block;margin-top:18px;color:#d7b86f;font-family:var(--body);font-size:.63rem;font-style:normal;font-weight:700;letter-spacing:.17em}

  .sec-discover:not(.is-swipe) .discover-stage{overflow:auto}
  .sec-discover:not(.is-swipe) .discoverlayout{align-items:stretch}
  .sec-discover:not(.is-swipe) .matchgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
}

@media (min-width:1100px) and (max-height:760px){
  .sec-discover .discoverpage{grid-template-columns:26% 48% 26%}
  .discover-intro,.discover-aside{padding:30px}
  .discover-intro h1{font-size:2.65rem}
  .discover-stage{padding:22px 32px}
  .sec-discover.is-swipe .discover-stage .stackwrap{min-height:0}
  .sec-discover.is-swipe .stackwrap .swipeinfo{padding:145px 32px 112px}
  .sec-discover.is-swipe .swipe-actions{bottom:28px}
}

@media (min-width:1100px) and (min-height:761px) and (max-height:1000px){
  .sec-discover.is-swipe .discover-stage .swipewrap{max-width:560px}
}

@media (max-width:1099px) and (min-width:761px){
  .sec-discover.is-swipe .discoverpage{max-width:720px;padding:20px 24px}
  .sec-discover.is-swipe .discoverfilters{margin-bottom:12px}
  .sec-discover.is-swipe .viewtoggle,.sec-discover.is-swipe .discoverhint{display:none}
  .sec-discover.is-swipe .discover-stage{flex:1}
  .sec-discover.is-swipe .discoverlayout{justify-content:center}
  .sec-discover.is-swipe .swipewrap{
    flex:none;width:min(100%,520px,calc(66.667vh - 100px));width:min(100%,520px,calc(66.667dvh - 100px));
    height:auto;aspect-ratio:2/3
  }
  .sec-discover.is-swipe .stackwrap{flex:none;width:100%;height:100%;min-height:0}
}

@media (max-width:760px){
  .nav-discover{height:70px;background:#070706;border-bottom-color:#24221e;backdrop-filter:none;-webkit-backdrop-filter:none}
  .nav-discover .wrap{height:70px;padding:0 18px;gap:10px}
  .nav-discover .brand{margin-right:auto}
  .nav-discover .brand-logo{width:78px}
  .nav-discover .btn-ghost{display:none}
  .nav-discover .rewardbadge{padding:6px 10px;font-size:.78rem}
  .discover-mobile-header-actions{display:flex;align-items:center;gap:8px}
  .discover-mobile-header-actions a,.discover-mobile-header-actions button{width:40px;height:40px;display:grid;place-items:center;border:1px solid #2b2925;border-radius:50%;color:#d2cec6;background:#0d0d0c;text-decoration:none}
  .discover-mobile-header-actions svg{width:18px;height:18px}

  body.has-tabbar:has(.sec-discover){padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  .sec-discover.is-swipe{height:calc(100vh - 70px - 72px - env(safe-area-inset-bottom));height:calc(100dvh - 70px - 72px - env(safe-area-inset-bottom));min-height:430px}
  .sec-discover.is-swipe .discoverpage{padding:0;position:relative}
  .sec-discover.is-swipe .discover-stage{display:flex;flex-direction:column;flex:1;min-height:0;position:relative}
  .sec-discover.is-swipe .discoverfilters{display:none}
  .sec-discover.is-swipe .discoverfilters::-webkit-scrollbar{display:none}
  .sec-discover.is-swipe .discoverfilters a{
    padding:7px 10px;margin:0;border:1px solid rgba(245,241,237,.2);border-radius:999px;background:rgba(8,8,7,.7);
    color:rgba(245,241,237,.75);font-size:.68rem;line-height:1;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)
  }
  .sec-discover.is-swipe .discoverfilters a.on{color:#f0d58e;border-color:rgba(217,183,112,.65);background:rgba(34,29,18,.78)}
  .sec-discover.is-swipe .discoverfilters .viewswitch{margin-left:auto;padding:6px 8px}
  .sec-discover.is-swipe .discoverlayout,.sec-discover.is-swipe .swipewrap{height:100%;padding:0}
  .sec-discover.is-swipe .stackwrap{height:100%;min-height:0;max-height:none;margin:0}
  .sec-discover.is-swipe .stackwrap .swipecard{border:0;border-radius:0;background:#090908;box-shadow:none}
  .sec-discover.is-swipe .stackwrap .swipephoto{inset:0}
  .sec-discover.is-swipe .stackwrap .swipeinfo{padding:150px 18px 104px;background:linear-gradient(to top,rgba(5,5,4,.98) 0%,rgba(5,5,4,.72) 45%,rgba(5,5,4,0) 100%)}
  .sec-discover.is-swipe .swipeinfo h3{display:block;max-width:100%;overflow-wrap:anywhere;font-family:Georgia,"Times New Roman",serif;font-size:2.18rem;font-weight:400;line-height:1;letter-spacing:-.04em;margin-bottom:8px}
  .sec-discover.is-swipe .swipeinfo .onlinedot{display:none}
  .sec-discover.is-swipe .swipeloc{font-size:.82rem;margin-bottom:8px}
  .sec-discover.is-swipe .swipebio{font-size:.8rem;line-height:1.45;-webkit-line-clamp:2;margin-bottom:8px}
  .sec-discover.is-swipe .interesttags{max-height:30px;gap:5px}
  .sec-discover.is-swipe .interesttags .tag{padding:5px 9px;font-size:.67rem;background:rgba(245,241,237,.11);border-color:rgba(245,241,237,.24)}
  .sec-discover.is-swipe .profile-status{top:14px;left:12px;padding:7px 10px;font-size:.66rem}
  .sec-discover.is-swipe .discover-match-badge{top:14px;right:12px;padding:7px 10px;font-size:.66rem}
  .sec-discover.is-swipe .cardmenu{top:auto;bottom:210px;right:12px;width:34px;height:34px;border:1px solid rgba(245,241,237,.25);background:rgba(8,8,7,.68);font-family:Georgia,serif;font-weight:700}
  .sec-discover.is-swipe .swipe-actions{bottom:25px;gap:16px}
  .sec-discover.is-swipe .swbtn{background:rgba(8,8,7,.68);border:1px solid rgba(217,183,112,.48);color:#e5c77e;box-shadow:0 10px 26px rgba(0,0,0,.4)}
  .sec-discover.is-swipe .swbtn-like{width:62px;height:62px;background:linear-gradient(145deg,#f0d58e,#cfaa59);border-color:#f2d991;color:#15120c}
  .sec-discover.is-swipe .swbtn-sm{width:50px;height:50px}
  .sec-discover.is-swipe .nudge{position:absolute;z-index:45;top:52px;left:12px;right:12px;margin:0;background:rgba(8,8,7,.9)}

  .tabbar{height:72px;background:#070706;border-top-color:#24221e;padding:4px 10px calc(4px + env(safe-area-inset-bottom))}
  .tabbar a,.tabbar button{color:#77746e;border-radius:50%}
  .tabbar a.on,.tabbar button.on{color:#e3c777}
  .tabbar a.on::before,.tabbar button.on::before{content:"";position:absolute;width:43px;height:43px;border-radius:50%;background:rgba(217,183,112,.11);z-index:-1}
  .tabbar a svg,.tabbar button svg{width:23px;height:23px}
}

/* Desktop discover: real filters/views (left) and account block (right) -- 2026-10-01 */
@media (min-width:1100px){
  .discover-controls{display:grid;gap:12px;margin-top:26px}
  .discover-controls .discover-aside-views{margin-top:0;padding-top:12px}
  .discover-account{display:grid;gap:12px;margin-top:28px;padding-top:22px;border-top:1px solid #302e29}
  .discover-account-stars{
    justify-self:start;padding:9px 14px;border:1px solid #806b3e;border-radius:999px;color:#e3c777;background:rgba(217,183,112,.12);
    text-decoration:none;font-size:.8rem;font-weight:650;line-height:1
  }
  .discover-account-langs{display:flex;flex-wrap:wrap;gap:6px}
  .discover-account-langs a{display:grid;place-items:center;width:34px;height:30px;border:1px solid #302e29;border-radius:10px;text-decoration:none;font-size:1rem;opacity:.75;transition:.18s ease}
  .discover-account-langs a:hover{opacity:1;border-color:#696052}
  .discover-account-langs a.on{opacity:1;border-color:#806b3e;background:rgba(217,183,112,.12)}
  .discover-account-links{display:flex;flex-wrap:wrap;gap:9px}
  .discover-account-links a{padding:9px 14px;border:1px solid #302e29;border-radius:999px;color:#918d85;text-decoration:none;font-size:.78rem;line-height:1;transition:.18s ease}
  .discover-account-links a:hover{color:#f5f1ed;border-color:#696052}
}
@media (min-width:1100px) and (max-height:820px){
  .discover-current-interests{margin-top:26px}
  .discover-controls{margin-top:16px}
}

/* Desktop member shell -- 2026-10-01. The root layout wraps every member page in .member-shell:
   one centred frame, the menu (components/MemberSideNav.tsx) in its left column, always in the
   same place; discover's deck + right column fill the rest of the frame. Phones/tablets: plain. */
.member-sidenav{display:none}
@media (min-width:1100px){
  .nav-auth{display:none}
  body:has(.member-shell){background:#050504}
  .member-shell{
    display:grid;grid-template-columns:minmax(260px,26%) minmax(0,1fr);
    width:calc(100% - 36px);max-width:1720px;min-height:calc(100svh - 36px);margin:18px auto;
    border:1px solid rgba(217,183,112,.25);border-radius:32px;overflow:clip;
    background:radial-gradient(circle at 60% 35%,rgba(217,183,112,.06),transparent 40%),#080807
  }
  .member-shell > .member-sidenav{
    display:flex;flex-direction:column;gap:18px;position:sticky;top:0;align-self:start;
    height:calc(100svh - 36px);overflow-y:auto
  }
  .member-shell-main{min-width:0}
  .member-sidenav .discover-intro-copy{margin:auto 0 0;padding-top:18px}
  .member-sidenav .discover-intro-copy + .member-sidenav-foot{margin-top:18px}
  .member-sidenav-main{display:grid;gap:6px}
  .member-sidenav-main a{
    display:flex;align-items:center;gap:13px;padding:11px 14px;border:1px solid transparent;border-radius:14px;
    color:#8f8a82;text-decoration:none;font-size:.92rem;transition:.18s ease
  }
  .member-sidenav-main a svg{width:22px;height:22px;flex:none;color:#99958d}
  .member-sidenav-main a:hover{color:#f5f1ed;border-color:rgba(217,183,112,.16)}
  .member-sidenav-main a.on{color:#f5f1ed;background:rgba(217,183,112,.13);border-color:rgba(217,183,112,.32)}
  .member-sidenav-main a.on svg{color:#e3c777}
  .member-sidenav-main b{
    display:grid;place-items:center;min-width:23px;height:23px;margin-left:auto;padding:0 6px;border-radius:999px;
    color:#15120c;background:#dfc272;font-size:.7rem
  }
  .member-sidenav-more{display:grid;gap:2px;padding-top:12px;border-top:1px solid #24221e}
  .member-sidenav-more a{padding:8px 14px;border-radius:10px;color:#7f7a72;text-decoration:none;font-size:.84rem;transition:.18s ease}
  .member-sidenav-more a:hover,.member-sidenav-more a.on{color:#f5f1ed;background:rgba(245,241,237,.035)}
  .member-sidenav-foot{display:grid;gap:12px;margin-top:auto;padding-top:14px;border-top:1px solid #24221e}
  .member-sidenav-langs{display:flex;flex-wrap:wrap;gap:6px}
  .member-sidenav-langs a{
    display:grid;place-items:center;width:32px;height:28px;border:1px solid #302e29;border-radius:9px;
    text-decoration:none;font-size:.95rem;opacity:.75;transition:.18s ease
  }
  .member-sidenav-langs a:hover{opacity:1;border-color:#696052}
  .member-sidenav-langs a.on{opacity:1;border-color:#806b3e;background:rgba(217,183,112,.12)}
  .member-sidenav-logout{
    justify-self:start;padding:8px 14px;border:1px solid #302e29;border-radius:999px;color:#918d85;
    text-decoration:none;font-size:.78rem;line-height:1
  }
  .member-sidenav-logout:hover{color:#f5f1ed;border-color:#696052}

  /* discover inside the shell: no second frame; deck + right column share the space */
  .member-shell .sec-discover{min-height:0;padding:0;background:none}
  .member-shell .sec-discover .discoverpage{
    max-width:none;min-height:calc(100svh - 38px);border:0;border-radius:0;background:transparent;
    grid-template-columns:minmax(0,1fr) 35%
  }
  .member-shell .sec-discover:not(.is-swipe) .discoverpage{grid-template-columns:minmax(0,1fr) 35%}
  .discover-controls--aside{margin:0 0 30px}
  .discover-stage .nudge{width:min(400px,calc(100% - 120px))}
  .discover-intro h1{font-size:clamp(2.2rem,2.6vw,3.2rem)}
}
@media (min-width:1100px) and (max-height:1000px){
  .member-sidenav .discover-intro-copy > p{display:none}
}
@media (min-width:1100px) and (max-height:860px){
  .discover-intro h1{margin:12px 0 4px;font-size:2.3rem}
  .member-sidenav-main a{padding:9px 14px}
  .member-sidenav-more a{padding:6px 14px}
}
@media (min-width:1100px) and (max-height:720px){
  .member-sidenav .discover-intro-copy{display:none}
}

/* Deck/filter ran out -> default view, with a short note (discover page) */
.discover-fallback{margin:0 0 14px;font-size:.86rem}

/* "Verta susipažinti": each person opens their profile */
a.discover-recommendation{color:inherit;text-decoration:none;transition:border-color .18s ease,background .18s ease}
a.discover-recommendation:hover{border-color:#806b3e;background:rgba(217,183,112,.06)}
/* their interests appear on hover / keyboard focus (desktop right column) */
.discover-recommendation-copy .discover-recommendation-interests{
  max-height:0;opacity:0;overflow:hidden;white-space:normal;color:#b9ad92;font-size:.72rem;line-height:1.45;
  transition:max-height .22s ease,opacity .18s ease,margin .22s ease
}
a.discover-recommendation:hover .discover-recommendation-interests,
a.discover-recommendation:focus-visible .discover-recommendation-interests{max-height:4.5em;opacity:1;margin-top:4px}
