/* ===================================================================
   DIGONAL — discreet connections
   Shared stylesheet for landing (index) + app
   =================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0c11;
  --bg-2:      #110f16;
  --surface:   #17151f;
  --surface-2: #201d2a;
  --surface-3: #2a2636;
  --border:    #2c2937;
  --border-2:  #3a3648;
  --text:      #ece9f3;
  --muted:     #9a94aa;
  --faint:     #6c6779;

  --gold:      #d6b275;
  --gold-soft: #ead3a4;
  --gold-deep: #b08d4f;
  --rose:      #c64f72;
  --rose-deep: #a23a59;

  --grad: linear-gradient(135deg, #e6c789 0%, #d6b275 35%, #c64f72 100%);
  --grad-soft: linear-gradient(135deg, #d6b27522, #c64f7222);

  --ok: #4cae8a;
  --shadow: 0 18px 50px -20px rgba(0,0,0,.7);
  --radius: 16px;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }   /* safety net — no accidental sideways scroll on mobile */

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
/* 16px minimum stops iOS Safari from auto-zooming when a field is focused */
input, textarea, select { font-family: inherit; font-size: 16px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); }
.gold-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ===== Brand mark ===== */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .04em;
}
.brand__name b { font-weight: 700; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 12px 24px; font-size: 15px; font-weight: 500; letter-spacing: .02em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad); color: #1a1320; font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(214,178,117,.5);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(198,79,114,.55); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ===================================================================
   LANDING
   =================================================================== */
.topbar {
  text-align: center; font-size: 13px; letter-spacing: .04em; color: var(--gold-soft);
  background: linear-gradient(90deg, #1a1622, #221a26, #1a1622);
  border-bottom: 1px solid var(--border);
  padding: 9px 16px;
}
.topbar b { color: var(--text); }

.site-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(13,12,17,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1120px; margin: 0 auto; }
.site-nav__links { display: flex; gap: 30px; }
.site-nav__links a { color: var(--muted); font-size: 15px; transition: color .2s; }
.site-nav__links a:hover { color: var(--gold-soft); }
.site-nav__actions { display: flex; gap: 12px; align-items: center; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 90px 0 70px; }
.hero::before {
  content:""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 70% 20%, rgba(198,79,114,.18), transparent 70%),
    radial-gradient(50% 50% at 20% 80%, rgba(214,178,117,.12), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--border-2); border-radius: 999px; padding: 7px 16px; margin-bottom: 26px;
}
.eyebrow::before { content:"❖"; color: var(--gold); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; }
.hero__sub { color: var(--muted); font-size: 19px; max-width: 30em; margin: 24px 0 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.hero__trust svg { width: 16px; height: 16px; color: var(--gold); }

/* signup join card */
.join-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: 22px; padding: 30px;
  box-shadow: var(--shadow);
}
.join-card h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 4px; }
.join-card p.small { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border-2); color: var(--text);
  border-radius: 12px; padding: 13px 14px; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,178,117,.15);
}
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label {
  position: relative; display: block; text-align: center; padding: 12px;
  border: 1px solid var(--border-2); border-radius: 12px; cursor: pointer; color: var(--muted);
  font-size: 14px; transition: all .18s;
}
.seg input { position: absolute; opacity: 0; }
.seg input:checked + span { color: var(--gold-soft); }
.seg label:has(input:checked) { border-color: var(--gold); background: var(--grad-soft); }
.fineprint { font-size: 12px; color: var(--faint); margin-top: 14px; text-align: center; line-height: 1.5; }
.fineprint a { color: var(--muted); text-decoration: underline; }

/* sections */
section.block { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head .kicker { color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: 12.5px; }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.08; margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border-2); margin-bottom: 18px;
}
.card .ico svg { width: 24px; height: 24px; color: var(--gold-soft); }
.card h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; counter-reset: step; }
.step { text-align: center; }
.step__num {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 24px; color: var(--gold-soft);
  border: 1px solid var(--gold-deep); background: var(--grad-soft);
}
.step h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stat .n { font-family: var(--serif); font-size: clamp(38px,5vw,54px); font-weight: 600; }
.stat .l { color: var(--muted); font-size: 14px; letter-spacing: .04em; }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.quote p { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; }
.quote .by { margin-top: 16px; color: var(--gold); font-size: 14px; letter-spacing: .03em; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; margin-bottom: 12px; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 24px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin-top: 12px; font-size: 15.5px; }

/* cta band */
.cta-band { text-align: center; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(34px,5vw,56px); font-weight: 600; line-height: 1.05; }
.cta-band p { color: var(--muted); font-size: 18px; margin: 16px auto 30px; max-width: 36em; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 50px 0 36px; }
.site-footer__top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 34px; }
.site-footer__cols { display: flex; gap: 60px; flex-wrap: wrap; }
.fcol h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.fcol a { display: block; color: var(--muted); font-size: 15px; margin-bottom: 9px; transition: color .2s; }
.fcol a:hover { color: var(--gold-soft); }
.site-footer__bot { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }

/* ===================================================================
   MODAL (auth)
   =================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(6,5,9,.72); backdrop-filter: blur(6px);
}
.modal.open { display: flex; }
.modal__box {
  width: 100%; max-width: 440px; background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-2); border-radius: 22px; padding: 32px; box-shadow: var(--shadow);
  animation: pop .25s ease;
  max-height: 90vh; overflow-y: auto;       /* long signup form stays scrollable */
  -webkit-overflow-scrolling: touch;
}
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__close { position: absolute; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.modal__head h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.xbtn { background: none; border: none; color: var(--muted); font-size: 26px; line-height: 1; }
.xbtn:hover { color: var(--text); }
.tabs { display: flex; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin: 18px 0 22px; }
.tabs button { flex: 1; border: none; background: none; color: var(--muted); padding: 10px; border-radius: 9px; font-size: 14.5px; font-weight: 500; transition: all .18s; }
.tabs button.active { background: var(--grad); color: #1a1320; font-weight: 600; }
.err { color: #e07a8e; font-size: 13.5px; margin-top: 10px; min-height: 18px; }
.hidden { display: none !important; }

/* ===================================================================
   APP
   =================================================================== */
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }

.app-side {
  border-right: 1px solid var(--border); background: var(--bg-2);
  display: flex; flex-direction: column; padding: 22px 16px;
  position: sticky; top: 0; height: 100vh;
}
.app-side .brand { padding: 6px 8px 22px; }
.nav-item {
  display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 12px;
  color: var(--muted); font-size: 15.5px; font-weight: 500; transition: all .16s; margin-bottom: 4px;
  border: 1px solid transparent; width: 100%; background: none; text-align: left;
}
.nav-item svg { width: 20px; height: 20px; flex: none; }
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item.active { background: var(--grad-soft); color: var(--gold-soft); border-color: var(--border-2); }
.nav-item .badge-dot { margin-left: auto; background: var(--rose); color: #fff; font-size: 11px; font-weight: 600; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px; }
.app-side__spacer { flex: 1; }
.side-me { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.side-me .meta { min-width: 0; }
.side-me .meta strong { display: block; font-size: 14px; }
.side-me .meta span { font-size: 12px; color: var(--muted); }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  display: none; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30;
  background: rgba(13,12,17,.9); backdrop-filter: blur(10px);
}
.view { padding: 30px 34px 60px; flex: 1; }
.view.hidden { display: none; }
.view-head { margin-bottom: 26px; }
.view-head h1 { font-family: var(--serif); font-size: 34px; font-weight: 600; }
.view-head p { color: var(--muted); }

/* avatar */
.avatar { border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; color: #1a1320; flex: none; overflow: hidden; }
.avatar--xs { width: 36px; height: 36px; font-size: 15px; }
.avatar--sm { width: 44px; height: 44px; font-size: 18px; }
.avatar--md { width: 60px; height: 60px; font-size: 24px; }
.avatar--lg { width: 96px; height: 96px; font-size: 38px; }

/* discover */
.discover-wrap { max-width: 420px; margin: 0 auto; }
.swipe-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  overflow: hidden; box-shadow: var(--shadow);
}
.swipe-card__photo { height: clamp(240px, 38vh, 360px); display: grid; place-items: center; position: relative; }
.swipe-card__photo .avatar--lg { width: 130px; height: 130px; font-size: 52px; }
.swipe-card__photo .priv {
  position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
  border: 1px solid var(--border-2); color: var(--gold-soft); font-size: 12px; padding: 6px 12px; border-radius: 999px;
}
.swipe-card__body { padding: 22px 24px 26px; }
.swipe-card__body h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.swipe-card__body .loc { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
/* clamp the card bio to a few lines so like/pass stay reachable — full bio shows on tap */
.swipe-card__body .bio { font-size: 15px; color: var(--text); margin: 12px 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12.5px; color: var(--gold-soft); border: 1px solid var(--border-2); background: var(--grad-soft); padding: 5px 12px; border-radius: 999px; }
.swipe-actions { display: flex; gap: 16px; justify-content: center; margin-top: 22px; }
.round-btn {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface);
  display: grid; place-items: center; transition: all .16s;
}
.round-btn svg { width: 26px; height: 26px; }
.round-btn:hover { transform: translateY(-3px); }
.round-btn--pass { color: var(--muted); }
.round-btn--pass:hover { border-color: #e07a8e; color: #e07a8e; }
.round-btn--like { color: var(--rose); border-color: var(--rose-deep); }
.round-btn--like:hover { background: var(--grad); color: #1a1320; border-color: transparent; }
.round-btn--msg { width: 52px; height: 52px; align-self: center; color: var(--gold, #d6b275); border-color: var(--gold-soft, #b8934f); position: relative; }
.round-btn--msg svg { width: 22px; height: 22px; }
.round-btn--msg:hover { background: var(--gold, #d6b275); color: #1a1320; border-color: transparent; }
.round-btn__cost { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--gold, #d6b275); color: #1a1320; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1; }
/* requests (incoming openers) */
.requests-head { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold, #d6b275); padding: 14px 16px 6px; }
.request { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.request .meta { flex: 1; min-width: 0; }
.request .preview { color: var(--muted); font-size: 13px; margin: 2px 0 8px; overflow: hidden; text-overflow: ellipsis; }
.request-actions { display: flex; gap: 8px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .big { font-size: 46px; margin-bottom: 14px; }

/* matches grid */
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.match-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  text-align: center; padding: 22px 16px; transition: transform .18s, border-color .18s; cursor: pointer;
}
.match-tile:hover { transform: translateY(-4px); border-color: var(--border-2); }
.match-tile .avatar { margin: 0 auto 12px; }
.match-tile h4 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 2px; }
.match-tile span { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* messages */
.chat-layout { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - 0px); }
.thread-list { border-right: 1px solid var(--border); overflow-y: auto; }
.thread-list__head { padding: 22px 20px 14px; }
.thread-list__head h1 { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.thread {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px; cursor: pointer;
  border-bottom: 1px solid var(--border); transition: background .15s;
}
.thread:hover { background: var(--surface); }
.thread.active { background: var(--surface-2); }
.thread .meta { flex: 1; min-width: 0; }
.thread .meta .row { display: flex; justify-content: space-between; gap: 8px; }
.thread .meta strong { font-size: 15px; }
.thread .meta .time { font-size: 11.5px; color: var(--faint); flex: none; }
.thread .meta .preview { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread .unread { width: 9px; height: 9px; border-radius: 50%; background: var(--rose); flex: none; }

.chat-panel { display: flex; flex-direction: column; min-width: 0; height: 100vh; position: relative; }

/* locked (pay-to-chat) state */
.locked-blur { filter: blur(7px); opacity: .85; pointer-events: none; user-select: none; padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.locked-blur .bubble { max-width: 72%; }
.chat-lock { position: absolute; inset: 0; display: grid; place-items: center; grid-template-columns: minmax(0, 100%); justify-items: center; padding: 22px; z-index: 12;
  background: radial-gradient(60% 50% at 50% 40%, rgba(13,12,17,.55), rgba(13,12,17,.9)); }
.chat-lock .lock-card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border-2); border-radius: 20px; padding: 28px 24px; text-align: center; width: 100%; max-width: 360px; box-shadow: var(--shadow); }
.chat-lock .lock-card h3 { overflow-wrap: break-word; }
.chat-lock .lock-ico { font-size: 42px; margin-bottom: 8px; }
.chat-lock .lock-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.chat-lock .lock-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.chat-lock .lock-card .btn { white-space: normal; line-height: 1.3; padding: 12px 16px; }
.chat-lock .lock-card .teaser-cd { color: var(--rose); font-size: 14px; margin: -4px 0 12px; }
/* pay-to-reply: real chat is visible, compose bar swapped for this unlock strip */
.reply-lock { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--bg-2); }
.reply-lock .reply-cd { display: block; text-align: center; font-size: 13px; margin-bottom: 9px; color: var(--rose); }
.reply-lock .reply-cd b { font-variant-numeric: tabular-nums; color: #e5677f; }
.reply-lock .reply-cd.soft { color: var(--muted); }
.reply-lock .reply-cd.expired { color: var(--gold-soft); }
.sys-note { align-self: center; text-align: center; font-size: 12.5px; color: var(--gold-soft); background: var(--grad-soft); border: 1px solid var(--border-2); border-radius: 999px; padding: 7px 16px; margin: 6px 0; max-width: 92%; }
.reply-lock .reply-note { display: block; text-align: center; font-size: 12px; color: var(--faint); margin-top: 8px; }
/* two-line CTA: bold intent line + small price line (dating-app paywall pattern) */
.btn--stack { flex-direction: column; gap: 2px; padding: 12px 20px; line-height: 1.25; }
.btn--stack b { font-size: 16px; font-weight: 600; }
.btn--stack small { font-size: 12px; font-weight: 500; opacity: .78; }
.chat-matched { text-align: center; color: var(--muted); padding: 54px 24px; margin: auto 0; }
.chat-matched .big { font-size: 46px; margin-bottom: 12px; }
.chat-matched h3 { color: var(--text); font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.chat-matched .why { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--gold-soft); max-width: 30em; margin: 14px auto 0; }
.chat-lock .lock-card .teaser-cd b { font-variant-numeric: tabular-nums; color: #e5677f; }
.chat-lock .lock-card .fineprint { margin: 12px 0 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.chat-head .meta strong { font-size: 16px; display: block; }
.chat-head .meta span { font-size: 12.5px; color: var(--muted); }
.chat-head .meta span.online { color: var(--ok); }
.chat-head .back { display: none; background: none; border: none; color: var(--muted); font-size: 22px; margin-right: 4px; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; background:
  radial-gradient(40% 40% at 80% 0%, rgba(198,79,114,.06), transparent), var(--bg); }
.bubble { max-width: 72%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.45; }
.bubble.them { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: var(--grad); color: #1a1320; border-bottom-right-radius: 5px; }
.bubble .t { display: block; font-size: 10.5px; opacity: .6; margin-top: 4px; text-align: right; }
.day-sep { text-align: center; color: var(--faint); font-size: 12px; margin: 8px 0; }
.typing { align-self: flex-start; color: var(--muted); font-size: 13px; padding: 4px 8px; font-style: italic; }
.chat-compose { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--bg-2); }
.chat-compose input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--border-2); color: var(--text); border-radius: 999px; padding: 13px 18px; font-size: 16px; }
.chat-compose input:focus { outline: none; border-color: var(--gold); }
.chat-compose .send { width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--grad); color: #1a1320; display: grid; place-items: center; flex: none; }
.chat-compose .send svg { width: 20px; height: 20px; }
.chat-empty { flex: 1; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 40px; }

/* profile */
.profile-wrap { max-width: 680px; }
.profile-hero { display: flex; align-items: center; gap: 22px; margin-bottom: 30px; }
.profile-hero .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold-deep); }
.profile-hero h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.profile-hero .sub { color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.panel h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); }
.toggle-row:last-child { border-bottom: none; }
.toggle-row .info strong { display: block; font-size: 15.5px; }
.toggle-row .info span { font-size: 13px; color: var(--muted); }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--surface-3); border: 1px solid var(--border-2); border-radius: 999px; transition: .2s; }
.switch .track::before { content:""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: var(--muted); border-radius: 50%; transition: .2s; }
.switch input:checked + .track { background: var(--grad); border-color: transparent; }
.switch input:checked + .track::before { transform: translateX(20px); background: #1a1320; }

/* photo slots (signup + profile) */
.photo-slots, .photo-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-slot {
  position: relative; aspect-ratio: 3 / 4; border: 1.5px dashed var(--border-2); border-radius: 12px;
  display: grid; place-items: center; cursor: pointer; overflow: hidden; background: var(--bg);
  color: var(--muted); font-size: 26px; transition: border-color .18s;
}
.photo-slot:hover { border-color: var(--gold); }
.photo-slot.filled { border-style: solid; border-color: var(--gold-deep); cursor: default; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .rm {
  position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; border: none; font-size: 15px; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
}
.photo-hint { font-size: 12px; color: var(--faint); margin: 8px 0 4px; }
/* drag-to-position photo cropper */
.cropper { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 20px; }
.cropper__box { background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; padding: 22px; max-width: 92vw; text-align: center; }
.cropper__box h3 { font-size: 20px; margin: 0 0 4px; }
.cropper__hint { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.cropper__view { position: relative; overflow: hidden; border-radius: 12px; margin: 0 auto; background: #000; cursor: grab; touch-action: none; user-select: none; }
.cropper__view:active { cursor: grabbing; }
.cropper__img { position: absolute; top: 0; left: 0; max-width: none; pointer-events: none; user-select: none; }
.cropper__grid { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
  background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 33.33% 33.33%; }
.cropper__zoom { width: 100%; margin: 16px 0 4px; accent-color: var(--gold); }
.cropper__actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
/* virtual gifts */
.attach.gift svg { color: var(--gold); }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gift-item { background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 14px; padding: 14px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; transition: all .15s; color: var(--text); }
.gift-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.gift-item .ge { font-size: 30px; line-height: 1; }
.gift-item .gn { font-size: 13px; }
.gift-item .gc { font-size: 12px; color: var(--gold-soft); }
.gift-bubble { display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  background: linear-gradient(160deg, rgba(214,178,117,.16), rgba(214,178,117,.06)); border: 1px solid rgba(214,178,117,.4);
  border-radius: 16px; padding: 12px 20px; max-width: 70%; }
.gift-bubble.them { align-self: flex-start; border-bottom-left-radius: 5px; }
.gift-bubble.me { align-self: flex-end; border-color: rgba(214,178,117,.6); border-bottom-right-radius: 5px; }
.gift-bubble .gift-emoji { font-size: 40px; line-height: 1; }
.gift-bubble .gift-cap { font-size: 13px; color: var(--text); }
.gift-bubble .t { font-size: 11px; color: var(--faint); margin-top: 2px; }

/* ---- Whispers: ephemeral vanishing messages ---- */
.attach.whisper-toggle { font-size: 20px; background: none; border: none; cursor: pointer; filter: grayscale(1) opacity(.6); transition: filter .15s, transform .15s; }
.attach.whisper-toggle.on { filter: none; transform: scale(1.12); }
.chat-compose.whisper-armed input { border-color: #d1663f; box-shadow: 0 0 0 2px rgba(209,102,63,.25); background: rgba(209,102,63,.06); }
.chat-compose.whisper-armed .send { background: linear-gradient(135deg, #e08a4a, #c64f72); }
.whisper-bubble { display: inline-flex; flex-direction: column; gap: 3px; max-width: 75%; position: relative;
  border-radius: 16px; padding: 11px 16px; font-size: 15px; line-height: 1.4; }
.whisper-bubble.them { align-self: flex-start; border-bottom-left-radius: 5px; }
.whisper-bubble.me { align-self: flex-end; border-bottom-right-radius: 5px; }
.whisper-bubble .t { font-size: 11px; color: var(--faint); margin-top: 2px; align-self: flex-end; }
/* sealed / sent / gone ghost states */
.whisper-bubble.sealed, .whisper-bubble.gone {
  background: linear-gradient(160deg, rgba(209,102,63,.16), rgba(209,102,63,.05));
  border: 1px dashed rgba(209,102,63,.5); color: var(--gold-soft); font-weight: 600; align-items: flex-start; }
.whisper-bubble.gone { opacity: .55; font-weight: 500; border-style: dotted; }
/* tap-to-reveal */
.whisper-bubble.whisper-reveal { cursor: pointer; align-items: center; flex-direction: row; flex-wrap: wrap; gap: 7px; transition: transform .12s, border-color .15s; }
.whisper-bubble.whisper-reveal:hover { transform: translateY(-1px); border-color: #d1663f; }
.whisper-bubble .wr-eye { font-size: 18px; }
.whisper-bubble .wr-label { font-weight: 600; color: var(--text); }
.whisper-bubble.whisper-reveal em { font-style: normal; font-size: 11.5px; color: #e08a4a; background: rgba(209,102,63,.14); border-radius: 999px; padding: 2px 9px; }
/* opened — showing text with the burn countdown */
.whisper-bubble.open { background: linear-gradient(160deg, rgba(209,102,63,.2), rgba(209,102,63,.07)); border: 1px solid rgba(209,102,63,.55); color: var(--text); animation: whisperReveal .25s ease; }
.whisper-bubble.open .wr-timer { font-size: 11px; color: #e08a4a; font-weight: 700; letter-spacing: .3px; }
.whisper-bubble.open .bubble-img { max-width: 220px; border-radius: 12px; margin-bottom: 4px; }
@keyframes whisperReveal { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

/* ---- Love shower: a 5-second rain of hearts over the whole screen ---- */
.love-shower { position: fixed; inset: 0; pointer-events: none; z-index: 400; overflow: hidden; }
.love-shower .lh { position: absolute; top: -8vh; will-change: transform, opacity;
  animation-name: heartFall; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes heartFall {
  0%   { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(112vh) rotate(40deg); opacity: 0; }
}
.love-note { color: #e07a8e !important; }

.avatar.has-photo { background-size: cover !important; background-position: center; }
.swipe-card__photo img.full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.swipe-card__photo img.full.blur { filter: blur(12px); transform: scale(1.1); }

/* toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text);
  padding: 13px 22px; border-radius: 999px; font-size: 14.5px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.match { border-color: var(--gold); color: var(--gold-soft); }

/* match popup */
.match-pop {
  position: fixed; inset: 0; z-index: 250; display: none; place-items: center; padding: 24px;
  background: rgba(6,5,9,.8); backdrop-filter: blur(8px); text-align: center;
}
.match-pop.open { display: grid; }
.match-pop__inner { animation: pop .3s ease; }
.match-pop h2 { font-family: var(--serif); font-size: 46px; font-weight: 600; margin-bottom: 8px; }
.match-pop .avatars { display: flex; justify-content: center; margin: 26px 0; }
.match-pop .avatars .avatar { width: 100px; height: 100px; font-size: 40px; box-shadow: 0 0 0 4px var(--bg); }
.match-pop .avatars .avatar:last-child { margin-left: -24px; }
.match-pop p { color: var(--muted); margin-bottom: 26px; }
.match-pop .actions { display: flex; gap: 12px; justify-content: center; }

/* reveal anim */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== premium / payment ===== */
.premium-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--grad-soft); border: 1px solid var(--border-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.premium-line strong { color: var(--gold-soft); font-weight: 600; white-space: nowrap; }
.premium-hero { text-align: center; padding: 8px 0 16px; }
.premium-badge { display: inline-block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--border-2); border-radius: 999px; padding: 6px 14px; margin-bottom: 14px; }
.premium-price { font-family: var(--serif); font-size: 58px; font-weight: 600; line-height: 1; }
.premium-price span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.premium-sub { color: var(--muted); font-size: 14.5px; max-width: 30em; margin: 10px auto 0; }
.premium-perks { list-style: none; margin: 6px 0 22px; }
.premium-perks li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--border); font-size: 15px; }
.premium-perks li:last-child { border-bottom: none; }
.premium-perks li::before { content: "✦"; position: absolute; left: 4px; color: var(--gold); }

/* ===== member profile modal ===== */
.member-box { max-width: 460px; padding: 0; overflow: hidden; position: relative; }
.member-x { position: absolute; top: 12px; right: 14px; z-index: 3; background: rgba(0,0,0,.5); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; }
.member-photo { position: relative; height: 360px; background: var(--surface-2); }
.member-photo img.main { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member-photo img.main.blur { filter: blur(14px); transform: scale(1.1); }
.member-photo .fallback { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, var(--surface-2), var(--surface-3)); }
.member-photo .fallback .avatar { width: 120px; height: 120px; font-size: 48px; }
.member-photo .priv { position: absolute; top: 14px; left: 14px; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); border: 1px solid var(--border-2); color: var(--gold-soft); font-size: 12px; padding: 6px 12px; border-radius: 999px; }
.member-thumbs { display: flex; gap: 8px; padding: 10px 16px 0; }
.member-thumbs img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.member-thumbs img.active { border-color: var(--gold); }
.member-info { padding: 16px 22px 24px; }
.member-info h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.member-info .sub { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.member-info .bio { font-size: 15px; margin: 8px 0 14px; }

/* ===== floating panic button (every page) ===== */
.panic-fab { position: fixed; right: 18px; bottom: 18px; z-index: 120; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--muted); display: grid; place-items: center; box-shadow: var(--shadow); transition: all .16s; cursor: pointer; }
.panic-fab svg { width: 22px; height: 22px; }
.panic-fab:hover { color: #e07a8e; border-color: #e07a8e; transform: scale(1.06); }

/* ===== credits + packages ===== */
.member-box { max-height: 90vh; overflow-y: auto; }
.credits-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--gold-soft); background: var(--grad-soft); border: 1px solid var(--border-2); border-radius: 999px; padding: 7px 13px; cursor: pointer; transition: border-color .16s; }
.credits-chip svg { width: 15px; height: 15px; }
.credits-chip:hover { border-color: var(--gold); }
.credits-chip.low { color: #e6b35e; }

.pkg-grid { display: grid; gap: 13px; margin: 18px 0 6px; }
.pkg { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--border-2); border-radius: 16px; padding: 16px 18px; background: var(--surface); transition: border-color .16s, transform .16s; }
.pkg:hover { border-color: var(--gold); transform: translateY(-2px); }
.pkg.featured { border-color: var(--gold-deep); background: var(--grad-soft); }
.pkg.recommended { position: relative; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.pkg-badge { position: absolute; top: -10px; left: 16px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #1a1320; background: var(--grad); border-radius: 999px; padding: 3px 10px; box-shadow: 0 4px 12px -4px rgba(0,0,0,.6); }
.pkg__info h4 { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.pkg__info p { color: var(--muted); font-size: 13px; }
.pkg__price { text-align: right; flex: none; }
.pkg__price .amt { font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--gold-soft); display: block; margin-bottom: 8px; }

/* ---- photo-moderation banner ---- */
.img-banner { border-radius: 12px; padding: 13px 16px; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.45; }
.img-banner .txt { flex: 1; }
.img-banner .txt b { display: block; margin-bottom: 2px; }
.img-banner .txt span { color: inherit; opacity: .85; }
.img-banner .btn { flex: none; }
.img-banner.flagged { background: rgba(198,79,114,.12); border: 1px solid var(--rose-deep); color: var(--rose); }
.img-banner.pending { background: var(--grad-soft); border: 1px solid var(--border-2); color: var(--gold-soft); }

/* ---- Boost ---- */
.boost-nav.active, .boost-nav:hover { color: var(--gold-soft); }
.boost-nav svg { color: var(--gold); }
.boost-timer { margin-left: auto; background: var(--rose); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.boost-hero { display: flex; align-items: center; gap: 11px; margin: 2px 0 14px; }
.boost-hero__ic { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--grad-soft); display: grid; place-items: center; }
.boost-hero__ic svg { width: 22px; height: 22px; color: var(--gold); }
.boost-hero h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.1; }
.boost-hero p { color: var(--muted); font-size: 13.5px; }
.boost-stat { display: flex; align-items: baseline; gap: 9px; background: var(--grad-soft); border: 1px solid var(--border-2); border-radius: 12px; padding: 11px 14px; margin-bottom: 8px; }
.boost-stat b { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--gold-soft); }
.boost-stat span { font-size: 13px; color: var(--text); }
.boost-live { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--rose); margin: 0 0 16px 2px; }
.boost-live svg { width: 14px; height: 14px; }
.boost-tier { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--border-2); border-radius: 14px; padding: 14px 16px; background: var(--surface); margin-bottom: 11px; cursor: pointer; transition: border-color .16s, transform .16s; }
.boost-tier:hover { border-color: var(--gold); transform: translateY(-2px); }
.boost-tier.featured { border-color: var(--gold); }
.boost-tier__info h4 { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.boost-tier__info p { color: var(--muted); font-size: 12.5px; }
.boost-tier__price { text-align: right; flex: none; }
.boost-tier__price .amt { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--gold-soft); display: block; }
.boost-tier__price .per { color: var(--muted); font-size: 11px; }
.boost-badge { position: absolute; top: -9px; left: 14px; background: var(--rose); color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; padding: 2px 9px; border-radius: 999px; }
.boost-badge.value { background: var(--gold-deep); }
.boost-fine { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.boost-fine svg { width: 13px; height: 13px; }
.boost-active { text-align: center; }
.boost-active .ring { font-family: var(--serif); font-size: 40px; font-weight: 600; color: var(--gold-soft); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.boost-active .ring-lbl { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.boost-bar { height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.boost-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--rose)); }
.boost-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 6px; }
.boost-metrics .m { background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; padding: 12px; }
.boost-metrics .m b { font-family: var(--serif); font-size: 24px; font-weight: 600; display: block; }
.boost-metrics .m span { color: var(--muted); font-size: 12px; }

/* ---- top-right profile avatar (mobile) ---- */
.topbar-avatar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface-2); overflow: hidden; cursor: pointer; padding: 0; flex: none; display: grid; place-items: center; color: var(--gold-soft); font-weight: 600; font-size: 13px; }
.topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Spark (games) ---- */
.spark-nav svg { color: var(--gold); }
.spark-hero { max-width: 460px; margin: 10px auto; text-align: center; background: var(--surface); border: 1px solid var(--border-2); border-radius: 20px; padding: 30px 24px; }
.spark-badge { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: var(--grad-soft); display: grid; place-items: center; }
.spark-badge svg { width: 30px; height: 30px; color: var(--gold); }
.spark-hero h2 { font-size: 27px; font-weight: 600; margin-bottom: 8px; }
.spark-hero p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 20px; }
.spark-hero p em { color: var(--gold-soft); font-style: normal; }
.spark-fine { font-size: 13px; margin-top: 14px; }
.spark-round { max-width: 460px; margin: 6px auto; }
.spark-loading { text-align: center; color: var(--muted); padding: 50px 0; }
.spark-search { text-align: center; max-width: 420px; margin: 0 auto; padding: 64px 20px; }
.spark-search .orb { position: relative; width: 76px; height: 76px; margin: 0 auto 26px; border-radius: 50%; background: var(--grad-soft); display: grid; place-items: center; }
.spark-search .orb svg { width: 34px; height: 34px; color: var(--gold); position: relative; z-index: 1; }
.spark-search .orb::before, .spark-search .orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: spark-pulse 1.8s ease-out infinite; }
.spark-search .orb::after { animation-delay: .9s; }
@keyframes spark-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.9); opacity: 0; } }
.spark-search h3 { font-size: 23px; font-weight: 600; margin-bottom: 6px; }
.spark-search p { color: var(--muted); font-size: 14.5px; }
.spark-av--lg { width: 92px; height: 92px; margin: 0 auto 20px; font-size: 32px; }
.spark-reveal .spark-go { font-family: var(--serif); font-size: 64px; font-weight: 700; color: var(--gold-soft); margin-top: 18px; line-height: 1; }
.spark-go.pop { animation: spark-go-pop .5s ease-out; }
@keyframes spark-go-pop { 0% { transform: scale(1.5); opacity: .2; } 60% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); } }
.spark-partner { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.spark-av { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 20px; }
.spark-av img { width: 100%; height: 100%; object-fit: cover; }
.spark-partner .spark-vs { font-size: 12px; color: var(--muted); }
.spark-partner strong { font-family: var(--serif); font-size: 22px; font-weight: 600; display: block; }
.spark-partner span { font-size: 13px; color: var(--muted); }
.spark-count { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.spark-count__bar { flex: 1; height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.spark-count__bar > i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--rose)); transition: width .1s linear; }
#sparkNum { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--gold-soft); min-width: 20px; text-align: right; }
.spark-q { font-size: 24px; font-weight: 600; text-align: center; margin-bottom: 20px; }
.spark-opts { display: grid; gap: 12px; }
.spark-opt { padding: 18px; border: 1px solid var(--border-2); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; cursor: pointer; transition: border-color .14s, transform .1s, background .14s; }
.spark-opt:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-1px); }
.spark-opt.picked { border-color: var(--gold); background: var(--grad-soft); color: var(--gold-soft); }
.spark-opt:disabled { cursor: default; opacity: .75; }
.spark-wait { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--gold-soft); font-size: 15px; margin-bottom: 22px; }
.spark-dots { display: inline-flex; gap: 4px; }
.spark-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: spark-dot 1s infinite ease-in-out; }
.spark-dots i:nth-child(2) { animation-delay: .15s; }
.spark-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes spark-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.spark-result { max-width: 440px; margin: 10px auto; text-align: center; background: var(--surface); border: 1px solid var(--border-2); border-radius: 20px; padding: 34px 24px; }
.spark-result.matched { border-color: var(--gold-deep); }
.spark-big { font-size: 52px; line-height: 1; margin-bottom: 8px; color: var(--gold); }
.spark-result h2 { font-size: 28px; font-weight: 600; margin-bottom: 10px; }
.spark-result p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 22px; }
.spark-result p b { color: var(--text); }
.spark-result .spark-refund { color: var(--gold-soft); font-size: 13.5px; margin-top: -8px; }

.out-credits { text-align: center; padding: 36px 18px; max-width: 420px; margin: 0 auto; }
.out-credits .big { font-size: 46px; margin-bottom: 12px; }
.out-credits h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.out-credits p { color: var(--muted); margin-bottom: 6px; }
.out-credits .sub { font-size: 13.5px; }
.out-credits .btn { margin-top: 18px; }

/* ===== chat photos ===== */
.chat-compose .attach { width: 42px; height: 48px; border: none; background: none; color: var(--muted); display: grid; place-items: center; flex: none; cursor: pointer; border-radius: 50%; }
.chat-compose .attach svg { width: 22px; height: 22px; }
.chat-compose .attach:hover { color: var(--gold-soft); }
.bubble.has-img { padding: 5px; max-width: 260px; }
.bubble-img { display: block; max-width: 240px; max-height: 300px; width: 100%; object-fit: cover; border-radius: 13px; cursor: pointer; }
.bubble.has-img .bubble-text { display: block; padding: 6px 8px 2px; }
.bubble.has-img .t { padding: 0 8px 4px; }
.lightbox { position: fixed; inset: 0; z-index: 240; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(5,4,8,.92); backdrop-filter: blur(4px); cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: var(--shadow); }

/* while a conversation is open the panic control lives in the chat header instead */
body.chat-open .panic-fab { display: none; }
.chat-head .chat-love { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(224,122,142,.4); background: rgba(224,122,142,.1); font-size: 16px; line-height: 1; display: inline-flex; align-items: center; gap: 5px; flex: none; cursor: pointer; margin-right: 8px; transition: transform .12s, background .15s; }
.chat-head .chat-love .lc { font-size: 12px; font-weight: 600; color: #e07a8e; white-space: nowrap; }
.chat-head .chat-love:hover { transform: scale(1.05); background: rgba(224,122,142,.2); }
.chat-head .chat-love:disabled { opacity: .5; cursor: default; }
.chat-head .chat-panic { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--muted); display: grid; place-items: center; flex: none; cursor: pointer; }
.chat-head .chat-panic svg { width: 19px; height: 19px; }
.chat-head .chat-panic:hover { color: #e07a8e; border-color: #e07a8e; }

/* chat ticks + privacy note */
.bubble .t .ticks { margin-left: 3px; letter-spacing: -2px; font-size: 11px; }
.bubble.me .t .ticks { color: #6b5733; }
.bubble.me .t .ticks.read { color: #1f6fd6; letter-spacing: -2px; }
.privacy-note { text-align: center; font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin: 0 auto 12px; max-width: 92%; }
.chat-ended { text-align: center; font-size: 13.5px; color: var(--muted); background: var(--surface-2); border-top: 1px solid var(--border); padding: 16px 18px; }

/* member profile facts (looking for / income) */
.member-info .facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 14px; }
.member-info .fact { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.member-info .fact span { display: block; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.member-info .fact b { font-size: 14.5px; color: var(--gold-soft); font-weight: 600; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .steps, .quotes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px 12px; }
  .site-nav__links { display: none; }

  .app-shell { grid-template-columns: 1fr; }
  .app-side {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; width: auto; flex-direction: row;
    border-right: none; border-top: 1px solid var(--border); padding: 8px; z-index: 50; justify-content: space-around;
  }
  /* bottom nav: credits lives in the top bar, Profile via the top-right avatar */
  .app-side .brand, .app-side__spacer, .side-me,
  .app-side [data-credits-chip] { display: none; }
  /* 5 items share the bar equally and shrink to fit any width — never overflow */
  .nav-item { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 3px; font-size: 11px; padding: 6px 2px; margin: 0; }
  .nav-item span, .nav-item b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-item svg { width: 22px; height: 22px; }
  /* bottom nav order — Discover · Matches · Messages · Spark · Boost; Profile moves to the top-right avatar */
  .app-side .nav-item[data-view="discover"] { order: 1; }
  .app-side .nav-item[data-view="matches"]  { order: 2; }
  .app-side .nav-item[data-view="messages"] { order: 3; }
  .app-side .nav-item[data-view="spark"]    { order: 4; }
  .app-side #boostNav                        { order: 5; }
  .app-side .nav-item[data-view="profile"]  { display: none; }
  .nav-item .badge-dot { position: absolute; margin: 0; transform: translate(14px, -10px); }
  .nav-item { position: relative; }
  .app-topbar { display: flex; }
  .view { padding: 20px 18px 100px; }
  /* Discover: like/pass float just above the bottom nav so they're ALWAYS reachable,
     no matter how long the bio — the card content simply scrolls behind them if needed */
  .view[data-view="discover"] .view-head h1 { font-size: 26px; }
  .view[data-view="discover"] .view-head p { display: none; }
  .view[data-view="discover"] .discover-wrap { padding-bottom: 92px; }
  .view[data-view="discover"] .swipe-actions {
    position: fixed; left: 0; right: 0; bottom: 92px; margin: 0; z-index: 45;
    pointer-events: none;   /* let taps pass except on the buttons themselves */
  }
  .view[data-view="discover"] .swipe-actions .round-btn { pointer-events: auto; box-shadow: 0 8px 24px -8px rgba(0,0,0,.7); }
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-layout.in-thread .thread-list { display: none; }
  .chat-layout:not(.in-thread) .chat-panel { display: none; }
  /* leave room for the sticky topbar (~63px) + fixed bottom nav (~80px) so the
     compose bar / last thread are never hidden behind the bottom nav */
  .chat-panel { height: calc(100dvh - 150px); }
  .thread-list { height: calc(100dvh - 150px); }
  .chat-head .back { display: block; }

  /* Open conversation = full-screen chat (WhatsApp-style): hide the tab bar + top bar,
     and pin the panel to the VISIBLE viewport so the composer stays above the keyboard. */
  body.chat-open .app-side,
  body.chat-open .app-topbar { display: none; }
  .chat-layout.in-thread .chat-panel {
    position: fixed; left: 0; right: 0; top: 0;
    height: var(--vvh, 100dvh); z-index: 60;
  }
  .chat-layout.in-thread .chat-scroll { overscroll-behavior: contain; }
  .form-grid { grid-template-columns: 1fr; }
  /* matches: two compact tiles per row instead of one huge card */
  .match-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .match-tile { padding: 18px 10px; }
  .match-tile .avatar--md { width: 68px; height: 68px; font-size: 26px; }
  /* keep the panic button clear of the fixed bottom nav */
  .panic-fab { bottom: 94px; right: 14px; }
}
