/* ===================================================================
   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; }

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; }
input, textarea, select { font-family: inherit; }

.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: 15px; 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: 380px; 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; }
.swipe-card__body .bio { font-size: 15px; color: var(--text); margin: 12px 0 14px; }
.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; }
.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; }
.match-tile span { color: var(--muted); font-size: 13px; }

/* 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; }
.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; background: var(--bg); border: 1px solid var(--border-2); color: var(--text); border-radius: 999px; padding: 13px 18px; font-size: 15px; }
.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; }
.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; }
.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__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; }

.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-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%; }

/* 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; bottom: 0; top: auto; height: auto; width: 100%; flex-direction: row;
    border-right: none; border-top: 1px solid var(--border); padding: 8px; z-index: 50; justify-content: space-around;
  }
  .app-side .brand, .app-side__spacer, .side-me { display: none; }
  .nav-item { flex-direction: column; gap: 3px; font-size: 11px; padding: 6px; margin: 0; }
  .nav-item svg { width: 22px; height: 22px; }
  .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; }
  .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; }
  .form-grid { grid-template-columns: 1fr; }
  /* keep the panic button clear of the fixed bottom nav */
  .panic-fab { bottom: 94px; right: 14px; }
}
