/* ============================================================
   Tryst — design system
   Elegant, upscale dark theme. One accent, soft surfaces.
   ============================================================ */
:root {
  --bg:        #0b0710;   /* deeper near-black plum — more depth, more premium */
  --bg-2:      #140d1d;
  --surface:   #1c1528;
  --surface-2: #261e34;
  --border:    rgba(255, 255, 255, 0.075);   /* hairline */
  --border-strong: rgba(255, 255, 255, 0.15);

  --text:      #f5f0f9;
  --muted:     #b6acc3;
  --faint:     #9a8fac;   /* meets WCAG AA (4.5:1) on the deeper bg */

  --accent:    #ec5c86;   /* rose */
  --accent-2:  #c261e6;   /* orchid */
  --accent-ink:#ffffff;
  --gold:      #ecc084;   /* trust / verified-host warm */
  --emerald:   #57cf9a;   /* verified seal (semantic — stays green in every theme) */
  --accent-rgb: 236, 92, 134;   /* rose, for rgba() tints — themed below */
  --accent-lite: #ffe0ed;       /* light end of the flowy headline gradient */
  --accent-mid:  #f78ab6;

  --ok:   #57cf9a;
  --warn: #ecc084;
  --danger:#ef6a6a;

  --radius:   16px;
  --radius-sm:11px;
  /* Two-layer shadow + a 1px inset top-highlight = the "lit glass" look. */
  --shadow:   inset 0 1px 0 rgba(255,255,255,.05), 0 24px 48px -22px rgba(0,0,0,.72), 0 6px 16px -10px rgba(0,0,0,.55);
  --shadow-sm:0 6px 18px -8px rgba(0,0,0,.5);
  --maxw: 1120px;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  /* Editorial serif for display headings — system stack, no font files needed.
     Ordered so Apple (Iowan), Windows (Palatino/Georgia) AND Android/Linux
     (Noto Serif) all get a refined serif, not a generic Times fallback. */
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Noto Serif", "Times New Roman", serif;
  color-scheme: dark;
}

/* Personal accent themes — same premium dark theme, different accent hue.
   Applied via data-accent="…" on <html>. Rose is the :root default above.
   Trust seals (emerald ✓ / gold ★) stay fixed — they're semantic, not brand. */
[data-accent="ember"]   { --accent:#ef5a52; --accent-2:#f2913e; --accent-rgb:239,90,82;  --accent-lite:#ffe2da; --accent-mid:#f79a86; }
[data-accent="ocean"]   { --accent:#3f9bf2; --accent-2:#7c6cf0; --accent-rgb:63,155,242;  --accent-lite:#dcecff; --accent-mid:#84b8f6; }
[data-accent="plum"]    { --accent:#c261e6; --accent-2:#8b6cf0; --accent-rgb:194,97,230;  --accent-lite:#f3ddff; --accent-mid:#cf9ae8; }
[data-accent="emerald"] { --accent:#2fbf8f; --accent-2:#3f9bf2; --accent-rgb:47,191,143;  --accent-lite:#d6f5e8; --accent-mid:#7fd9b8; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img, video, canvas, svg { max-width: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 82% -10%, rgba(194,97,230,.20), transparent 60%),
    radial-gradient(900px 600px at -10% 6%, rgba(var(--accent-rgb),.15), transparent 55%),
    radial-gradient(1100px 900px at 50% 128%, rgba(0,0,0,.5), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;          /* never allow a sideways scroll on mobile */
  overflow-wrap: break-word; /* long emails/URLs wrap instead of overflowing */
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
main { flex: 1 0 auto; padding: 28px 20px 64px; }
main.container { padding: 28px 20px 64px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
/* Editorial serif on display headings — the biggest perceived-quality lever. */
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: 1.55rem; }

/* Editorial helpers (opt-in per template): a tracked micro-label + a gold rule. */
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 10px; }
/* Flowy, pink-forward gradient on headline accent words (the "…near you" look).
   Scoped to headings so small .text-accent labels elsewhere stay solid & legible. */
h1 .text-accent, h2 .text-accent, .hl {
  background: linear-gradient(100deg, var(--accent-lite) 6%, var(--accent-mid) 40%, var(--accent) 74%, var(--accent-2) 108%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.hrule { height: 2px; width: 64px; border-radius: 2px; border: 0; margin: 14px 0 20px;
  background: linear-gradient(90deg, var(--gold), transparent); }
.hrule.center, .center .hrule { margin-left: auto; margin-right: auto; }
/* Editorial serif numerals for stat/metric displays (home, insights, dashboards). */
.stat-num { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; line-height: 1.1; }

/* Accent-color swatch picker (signup + settings). */
.accent-swatches { display: flex; gap: 14px; flex-wrap: wrap; }
.accent-swatch { display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; font-size: .75rem; color: var(--muted); font-weight: 600; }
.accent-swatch input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.accent-swatch .sw { width: 42px; height: 42px; border-radius: 50%; background: var(--sw);
  border: 2px solid transparent; box-shadow: 0 2px 8px rgba(0,0,0,.4); transition: transform .1s ease; }
.accent-swatch input:checked + .sw { border-color: #fff; transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(255,255,255,.18), 0 3px 10px rgba(0,0,0,.45); }
.accent-swatch input:checked ~ em { color: var(--text); }
.accent-swatch input:focus-visible + .sw { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.accent-swatch em { font-style: normal; }

/* Staff "official site message" toggle — shared by compose + thread. */
.ot-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.ot-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ot-switch .ot-slider { position: absolute; inset: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border-strong); transition: .18s; }
.ot-switch .ot-slider::before { content: ""; position: absolute; height: 20px; width: 20px; left: 2px; top: 2px;
  background: #fff; border-radius: 50%; transition: transform .18s; }
.ot-switch input:checked + .ot-slider { background: var(--accent); border-color: var(--accent); }
.ot-switch input:checked + .ot-slider::before { transform: translateX(20px); }

/* Floating "interested" heart on member cards — gently pulses to invite a tap. */
.fab { width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; background: var(--grad);
  color: #fff; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  box-shadow: 0 8px 20px -6px rgba(var(--accent-rgb),.6), inset 0 1px 0 rgba(255,255,255,.35); }
.fab:hover { filter: brightness(1.08); }
.pcard-wrap { position: relative; }
.card-like-form { position: absolute; bottom: 12px; right: 12px; z-index: 4; margin: 0; }
.heart-pulse { animation: heartpulse 2.2s ease-in-out infinite; }
@keyframes heartpulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 20px -6px rgba(var(--accent-rgb),.55), inset 0 1px 0 rgba(255,255,255,.35); }
  50% { transform: scale(1.1); box-shadow: 0 10px 24px -6px rgba(var(--accent-rgb),.85), 0 0 0 7px rgba(var(--accent-rgb),.10), inset 0 1px 0 rgba(255,255,255,.35); }
}
@media (prefers-reduced-motion: reduce) { .heart-pulse { animation: none; } }

/* Browse "Filters" disclosure — lead with cards, tuck filters behind a toggle. */
.browse-filters { margin-top: 4px; }
.browse-filters > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center;
  gap: 8px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.browse-filters > summary::-webkit-details-marker { display: none; }
.browse-filters > summary::after { content: "▾"; font-size: .8em; opacity: .6; }
.browse-filters[open] > summary::after { content: "▴"; }
.browse-filters > summary:hover { color: var(--text); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .85rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent);
  color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(20,16,26,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 64px; }
.brand { flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--text); letter-spacing: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 15px; }
.site-nav > a { color: var(--muted); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.site-nav > a:hover { color: var(--text); text-decoration: none; }
.nav-account { display: flex; align-items: center; gap: 9px; padding-left: 10px; border-left: 1px solid var(--border); }
.nav-name { color: var(--text); font-weight: 700; font-size: .9rem; }
.nav-burger { display: none; }
.nav-toggle { display: none; }
.nav-form { display: inline-flex; }
.nav-label { display: none; }   /* item text labels — shown only in the mobile menu */

/* ---------- Grouped nav dropdowns (declutter the top bar) ---------- */
.nav-dd { position: relative; }
.nav-dd > summary {
  list-style: none; cursor: pointer; color: var(--muted); font-weight: 600;
  font-size: .9rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px;
}
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary::after { content: "▾"; font-size: .7em; opacity: .65; }
.nav-dd > summary:hover { color: var(--text); }
.nav-dd[open] > summary { color: var(--text); }
.nav-dd.nav-account-dd > summary { color: var(--text); font-weight: 700;
  padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--border); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 200px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; display: flex; flex-direction: column; gap: 1px;
  box-shadow: 0 14px 34px rgba(0,0,0,.4); z-index: 120;
}
.nav-dd-menu.nav-dd-right { left: auto; right: 0; }
.nav-dd-menu a, .nav-dd-menu button {
  color: var(--muted); font-weight: 600; font-size: .9rem; text-align: left;
  padding: 9px 12px; border-radius: 8px; white-space: nowrap;
  background: none; border: none; cursor: pointer; width: 100%; font-family: inherit;
}
.nav-dd-menu a:hover, .nav-dd-menu button:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }

/* On-page Back button (mirrors the browser Back / Esc). */
.page-back { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 14px;
  padding: 6px 11px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted); font-weight: 600; font-size: .88rem; cursor: pointer; }
.page-back[hidden] { display: none; }   /* honor the hidden attribute (home/dead-ends) */
.page-back:hover { color: var(--text); background: var(--surface); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: .95rem; padding: 11px 20px; line-height: 1;
  transition: transform .06s ease, filter .15s ease, background .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 22px -8px rgba(var(--accent-rgb),.5); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; border-color: rgba(239,106,106,.5); color: var(--danger); }
.btn-danger:hover { background: rgba(239,106,106,.12); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Cards & surfaces ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }
.panel { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }

/* Any clickable card lifts on hover — unifies the interaction across every surface. */
a.card { transition: transform .13s ease, box-shadow .2s ease; }
a.card:hover { transform: translateY(-3px); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
}
.badge-accent { background: linear-gradient(135deg, rgba(var(--accent-rgb),.22), rgba(var(--accent-rgb),.08)); color: #f7a8c0; border-color: rgba(var(--accent-rgb),.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.badge-ok { background: linear-gradient(135deg, rgba(87,207,154,.22), rgba(87,207,154,.08)); color: #a6ecc9; border-color: rgba(87,207,154,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.badge-warn { background: linear-gradient(135deg, rgba(236,192,132,.24), rgba(236,192,132,.08)); color: #f0cf9b; border-color: rgba(236,192,132,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
/* Verified — the trust seal. Emerald ✓ = verified member, gold = verified host. */
.badge-verified { background: linear-gradient(135deg, rgba(87,207,154,.24), rgba(87,207,154,.08)); color: #a6ecc9; border-color: rgba(87,207,154,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.badge-host { background: linear-gradient(135deg, rgba(236,192,132,.26), rgba(236,192,132,.08)); color: #f0cf9b; border-color: rgba(236,192,132,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }

.chip { display:inline-block; font-size:.8rem; padding:4px 11px; border-radius:999px;
  background: var(--surface-2); color: var(--muted); border:1px solid var(--border); margin:0 6px 6px 0; }
.chip-accent { background: rgba(224,86,127,.14); color:#f19bb4; border-color: rgba(224,86,127,.4); }

/* Per-person cards on a couple's profile */
.person-card { background: var(--surface); border:1px solid var(--border-strong); border-radius: var(--radius); padding:16px 18px; }
.person-card .person-name { font-weight:800; font-size:1.05rem; color: var(--accent); margin-bottom:6px; display:flex; align-items:center; gap:7px; }
.person-card .person-name::before { content:"◆"; font-size:.8em; opacity:.85; }
.person-card .person-headline { font-size:1.1rem; font-weight:700; }
@media (max-width: 560px) { .couple-people { grid-template-columns: 1fr !important; } }

/* ---------- Alerts ---------- */
.messages { margin-top: 16px; }
.alert { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 10px; border: 1px solid var(--border); font-weight: 600; }
.alert-success { background: rgba(79,191,139,.12); border-color: rgba(79,191,139,.35); color: #a6e6c8; }
.alert-info { background: rgba(185,91,214,.12); border-color: rgba(185,91,214,.32); color: #dcb6ea; }
.alert-warning { background: rgba(232,176,107,.12); border-color: rgba(232,176,107,.32); color: #f0cf9b; }
.alert-danger, .alert-error { background: rgba(239,106,106,.12); border-color: rgba(239,106,106,.35); color: #f3a9a9; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field > label, .form label.field-label { display: block; font-weight: 700; margin-bottom: 7px; font-size: .92rem; }
.field .helptext { display: block; color: var(--faint); font-size: .82rem; margin-top: 6px; }
.field .errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--danger); font-size: .85rem; }
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=datetime-local], input[type=number], input[type=file],
input[type=tel], input[type=search], input[type=url], textarea, select {
  width: 100%; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 1rem; font-family: inherit;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.22);
}
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.checkbox-row label { font-weight: 600; }

/* Modern toggle-switch checkboxes (no more white boxes) */
input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; cursor: pointer;
  width: 42px; height: 24px; border-radius: 999px; vertical-align: middle; margin: 0;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  transition: background .15s ease, border-color .15s ease;
}
input[type="checkbox"]::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--faint); transition: transform .18s ease, background .18s ease;
}
input[type="checkbox"]:checked { background: var(--grad); border-color: transparent; }
input[type="checkbox"]:checked::before { transform: translateX(18px); background: #fff; }
input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(224,86,127,.25); }
.checkbox-row input[type="checkbox"] { margin-top: 1px; }

/* Custom radios */
input[type="radio"] {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; cursor: pointer;
  width: 20px; height: 20px; border-radius: 50%; vertical-align: middle;
  background: var(--bg-2); border: 2px solid var(--border-strong);
}
input[type="radio"]:checked { border-color: var(--accent); }
input[type="radio"]:checked::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
input[type="radio"]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(224,86,127,.25); }

/* Dropdown caret + no native white box */
select {
  appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23a99fb5' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}

/* File picker button */
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 8px 14px; margin-right: 12px; cursor: pointer; font-weight: 600;
}
input[type="file"]::file-selector-button:hover { background: var(--surface); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 18px; }

/* ---------- Layout helpers ---------- */
.grid { display: grid; gap: 20px; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
.spacer { height: 24px; }
.divider { height: 1px; background: var(--border); margin: 22px 0; border: 0; }

/* ---------- Profile cards ---------- */
.pcard { overflow: hidden; display: flex; flex-direction: column; }
.pcard .thumb { aspect-ratio: 4/5; background: var(--surface-2); position: relative; overflow: hidden; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .thumb .thumb-empty { display:flex; align-items:center; justify-content:center; height:100%; color: var(--faint); font-size: 2.4rem; }
.pcard .thumb .thumb-badges { position: absolute; top: 10px; left: 10px; display:flex; gap:6px; }
.pcard .pcard-body { padding: 14px 16px 18px; }
.pcard h3 { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; margin-bottom: 2px; }
.pcard .pcard-meta { color: var(--muted); font-size: .85rem; }

/* Premium hover lift on every member card. */
.pcard { transition: transform .13s ease, box-shadow .2s ease; }
.pcard:hover { transform: translateY(-3px); }

/* ---------- Photo-forward member cards (name over the image, Feeld/Raya-style) ----------
   Opt-in via `.pcard.photo` so it upgrades discovery cards without touching the
   body-below cards used for venues / trips / who-viewed-you. */
.pcard.photo { position: relative; }
.pcard.photo .thumb::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(11,7,16,.5) 66%, rgba(11,7,16,.92) 100%); }
.pcard.photo .pcard-ov { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px 13px 13px; }
.pcard.photo .pcard-ov h3 { color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.1rem;
  margin: 0 0 2px; text-shadow: 0 1px 6px rgba(0,0,0,.55); }
.pcard.photo .pcard-ov .pcard-meta { color: rgba(255,255,255,.85); font-size: .8rem; }
.pcard.photo .ov-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.pcard.photo .ov-chips .chip { margin: 0; background: rgba(255,255,255,.16); border: none; color: #fff;
  font-size: .72rem; padding: 3px 9px; backdrop-filter: blur(4px); }
.pcard.photo.compact .pcard-ov { padding: 10px 11px; }
.pcard.photo.compact .pcard-ov h3 { font-size: .95rem; margin: 0; }

/* Trust seal — the whole promise of the product, on every card. Emerald ✓ for a
   verified member, gold ★ for a verified host. Top-left, out of the name's way. */
/* Generalized so it also works on the swipe deck + profile-detail hero, not just cards. */
.seal { position: absolute; top: 10px; left: 10px; z-index: 3; width: 26px; height: 26px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1;
  font-size: 13px; font-weight: 900; background: linear-gradient(135deg, #57cf9a, #3fae82); color: #08170f;
  box-shadow: 0 2px 8px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.4); }
.seal.gold { background: linear-gradient(135deg, #f0c98a, #cf9a4e); color: #231603; }
.seal.lg { width: 32px; height: 32px; font-size: 15px; }
/* Keep the open/online + unicorn flags clear of the bottom name overlay. */
.pcard.photo .thumb-live { top: 10px; right: 10px; left: auto; bottom: auto; }
.pcard.photo .thumb-unicorn { top: 46px; left: 10px; right: auto; }

/* ---------- Hero (landing) ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.hero-art {
  aspect-ratio: 4/5; border-radius: 24px; border: 1px solid var(--border);
  background:
    radial-gradient(400px 300px at 30% 20%, rgba(224,86,127,.45), transparent 60%),
    radial-gradient(400px 320px at 80% 80%, rgba(185,91,214,.45), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-art .glyph { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size: 8rem; color: rgba(255,255,255,.14); }

/* Landing conversion bits */
.trust-bar { display:flex; flex-wrap:wrap; gap:8px 22px; justify-content:center; margin-bottom:24px;
  color: var(--muted); font-size:.92rem; font-weight:600; }
.trust-bar span { white-space:nowrap; }
.hero-photo-card { position:absolute; inset:0; }
.hero-photo-card img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero-glyph { position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:8rem; color: rgba(255,255,255,.14); }
.founding-cta { border:1px solid rgba(224,86,127,.4); margin-top:40px;
  background: radial-gradient(600px 220px at 50% 0%, rgba(224,86,127,.13), transparent 70%), var(--surface); }
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.step { text-align:center; }
.step-num { width:46px; height:46px; margin:0 auto 12px; border-radius:50%; display:flex;
  align-items:center; justify-content:center; font-weight:800; font-size:1.25rem; color:#fff; background:var(--grad); }
.faq-item { border:1px solid var(--border); border-radius:12px; padding:13px 16px; margin-bottom:10px; background:var(--surface); }
.faq-item summary { cursor:pointer; font-weight:700; list-style:none; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::before { content:"＋ "; color:var(--accent); font-weight:800; }
.faq-item[open] summary::before { content:"－ "; }
.faq-item[open] summary { margin-bottom:8px; }
@media (max-width:640px){ .steps { grid-template-columns:1fr; } }

.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.feature { text-align: left; }
.feature .ficon { font-size: 1.6rem; }
.feature h3 { margin-top: 10px; font-size: 1.1rem; }

.age-note { display:flex; gap:12px; align-items:flex-start; background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; margin-top: 20px; color: var(--muted); font-size:.9rem; }

/* ---------- Detail / gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
/* Tap any profile photo to view it full-size */
.gallery img, .hero-photo, img.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.92); padding: 18px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox .lb-close { position: absolute; top: 14px; right: 18px; font-size: 2rem; color: #fff;
  line-height: 1; opacity: .8; }

/* iOS Add-to-Home-Screen hint banner */
.ios-install-hint { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center;
  flex-wrap: wrap; justify-content: space-between; font-size: .92rem; }
.ios-install-hint[hidden] { display: none; }
.ios-install-hint span { flex: 1 1 240px; }
.photo-wrap { position: relative; }
.hero-photo { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); aspect-ratio: 4/5; object-fit: cover; display: block; }
/* Unicorn badge — the little 🦄 overlaid on a single woman's profile photo. */
.unicorn-badge { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; line-height: 1;
  background: rgba(20,16,26,.72); border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 2px 10px rgba(0,0,0,.45); backdrop-filter: blur(2px); }
.thumb-unicorn { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; z-index: 2;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; line-height: 1;
  background: rgba(20,16,26,.72); border: 1px solid rgba(255,255,255,.35); box-shadow: 0 1px 6px rgba(0,0,0,.45); }
.unicorn-optin { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); }
.photo-empty { width:100%; aspect-ratio:4/5; border-radius: var(--radius); border:1px dashed var(--border-strong);
  display:flex; align-items:center; justify-content:center; color: var(--faint); font-size:3rem; background: var(--surface); }

/* ---------- Verify / selfie ---------- */
.selfie-stage { display:flex; flex-direction:column; align-items:center; gap:16px; }
.selfie-frame {
  width: 260px; height: 260px; border-radius: 50%; overflow: hidden; position: relative;
  border: 3px solid var(--accent); box-shadow: 0 0 0 6px rgba(224,86,127,.15); background: #000;
}
.selfie-frame video, .selfie-frame img, .selfie-frame canvas { width: 100%; height: 100%; object-fit: cover; }
.selfie-oval { position:absolute; inset:0; border-radius:50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); pointer-events:none; }

/* ---------- Event list ---------- */
.event-row { display:flex; gap:16px; align-items:center; padding: 16px 18px; }
.event-date { flex:none; width:64px; text-align:center; border:1px solid var(--border);
  border-radius: 12px; padding: 8px 0; background: linear-gradient(180deg, var(--surface-2), var(--bg-2)); }
.event-date .d { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.event-date .m { font-size: .72rem; text-transform: uppercase; color: var(--gold); letter-spacing:.08em; }
.rsvp-item { transition: border-color .12s ease; }
.rsvp-item:hover { border-color: var(--border-strong); }
.event-row .grow { flex: 1 1 auto; min-width: 0; }
.section-title { display:flex; align-items:center; gap:10px; margin: 28px 0 14px; }
.section-title h2 { margin:0; }

/* ---------- Tables / lists ---------- */
.rsvp-item { display:flex; gap:14px; align-items:center; padding:14px 16px; border:1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); margin-bottom:10px; }
.avatar { width:48px; height:48px; border-radius:50%; object-fit:cover; flex:none; background: var(--surface-2); }
.avatar-sm { width:34px; height:34px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: rgba(0,0,0,.2); padding: 36px 0; margin-top: auto; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 26px 30px; align-items: start; }
.footer-brand { max-width: 280px; display: flex; flex-direction: column; gap: 8px; }
.footer-brandline { font-weight: 700; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { margin: 0 0 3px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text); opacity: .8; }
.footer-col a, .footer-links a { color: var(--muted); font-size: .9rem; }
.footer-col a:hover { color: var(--text); }
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

/* ---------- Utilities ---------- */
.text-accent { color: var(--accent); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.hide { display: none; }
.narrow { max-width: 460px; margin-left:auto; margin-right:auto; }
.wide-narrow { max-width: 680px; margin-left:auto; margin-right:auto; }

/* ---------- Sticky save bar (edit page) ---------- */
.edit-savebar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: center;
  background: rgba(20, 16, 26, 0.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); padding: 12px 20px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.28);
}

/* ---------- Tag picker (open-to / boundaries) ---------- */
.tag-picker { display:flex; flex-wrap:wrap; gap:6px; }
.tagchip { font-size:.8rem; padding:6px 12px; border-radius:999px; background: var(--surface-2);
  color: var(--muted); border:1px solid var(--border); cursor:pointer; transition: all .12s ease; }
.tagchip:hover { border-color: var(--border-strong); color: var(--text); }
.tagchip.active { background: rgba(224,86,127,.16); color:#f19bb4; border-color: rgba(224,86,127,.45); }

/* ---------- Presence / activity ---------- */
.presence { display:inline-flex; align-items:center; gap:6px; font-size:.8rem; color: var(--faint); }
.presence.online { color: var(--ok); font-weight:600; }
.pdot { width:8px; height:8px; border-radius:50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(79,191,139,.2); }
.thumb-live { position:absolute; bottom:10px; left:10px; display:inline-flex; align-items:center; gap:5px;
  background: rgba(0,0,0,.55); color:#fff; font-size:.72rem; font-weight:700; padding:3px 8px; border-radius:999px; }
.thumb-live .pdot { width:7px; height:7px; box-shadow:none; }
.strip { display:flex; gap:14px; overflow-x:auto; padding:4px 2px 10px; }
.strip .pcard { flex:0 0 150px; }
.stat-pills { display:flex; gap:10px; flex-wrap:wrap; }
.stat-pill { display:inline-flex; align-items:center; gap:7px; background: var(--surface); border:1px solid var(--border);
  border-radius:999px; padding:7px 14px; font-size:.85rem; color: var(--muted); }
.stat-pill strong { color: var(--text); }

/* ---------- Notifications bell ---------- */
.nav-bell { position: relative; font-size: 1.1rem; }
.nav-bell:hover { text-decoration: none; }
.nav-badge {
  position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center;
}
.note-item { display:flex; gap:12px; align-items:center; padding:14px 16px; border:1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); margin-bottom:8px; }
.note-item.unread { border-color: rgba(224,86,127,.4); background: rgba(224,86,127,.06); }
.note-dot { width:8px; height:8px; border-radius:50%; background: var(--accent); flex:none; }

/* ---------- Messaging / chat ---------- */
.thread-list { display:flex; flex-direction:column; }
.thread-link { display:flex; gap:12px; align-items:center; padding:14px 16px; border-bottom:1px solid var(--border); }
.thread-link:hover { background: var(--surface); text-decoration:none; }
.thread-link .grow { min-width:0; }
.thread-link .preview { color: var(--muted); font-size:.88rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.chat { display:flex; flex-direction:column; height: min(66vh, 560px); }
.chat-scroll { flex:1 1 auto; overflow-y:auto; padding: 8px 4px; display:flex; flex-direction:column; gap:8px; }
.msg { max-width: 75%; padding: 10px 14px; border-radius: 16px; font-size:.95rem; line-height:1.4; }
.msg .meta { display:block; font-size:.68rem; color: var(--faint); margin-top:4px; }
.msg-them { align-self:flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg-me { align-self:flex-end; background: var(--grad); color:#fff; border-bottom-right-radius: 4px; }
.msg-me .meta { color: rgba(255,255,255,.8); }
.chat-input { display:flex; gap:10px; align-items:flex-end; padding-top:12px; border-top:1px solid var(--border); }
.chat-input textarea { flex:1 1 auto; }

/* ---------- Private album ---------- */
.locked-album { position:relative; border:1px dashed var(--border-strong); border-radius: var(--radius);
  padding: 28px; text-align:center; background: var(--surface); }
.locked-album .lock-ico { font-size:2.4rem; }
.private-tag { position:absolute; top:8px; right:8px; }

/* ---------- Browse filters ---------- */
.filters { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.filter-search { display: flex; gap: 10px; }
.filter-search input { flex: 1 1 auto; min-width: 0; }
.filter-block { display: flex; flex-direction: column; gap: 9px; }
.filter-label { font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none;
  padding: 9px 15px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--border-strong); color: var(--muted); font-weight: 600; font-size: .9rem;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.filter-chip input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; margin: 0; }
.filter-chip:hover { color: var(--text); }
.filter-chip:has(input:checked) { background: rgba(224,86,127,.16); color: #f6b6c9; border-color: rgba(224,86,127,.55); }
.filter-select { width: auto; min-width: 160px; }
.filter-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-inline input[type="number"] { width: 84px; }
.filter-more summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: .9rem; list-style: none; width: fit-content; }
.filter-more summary::-webkit-details-marker { display: none; }
.filter-more summary::before { content: "⚙\00a0 "; }
.filter-more[open] summary::before { content: "✕\00a0 "; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  /* Collapse the busy top bar into a clean burger menu before it can crowd
     the brand (which was squeezing "◆ Escapade" onto two lines). */
  .nav-burger { display:flex; flex-direction:column; gap:5px; cursor:pointer; padding:8px; }
  .nav-burger span { width:22px; height:2px; background: var(--text); border-radius:2px; }
  /* Keep the menu checkbox in the tab order (visually hidden) so keyboard and
     screen-reader users can open the mobile menu — was display:none/hidden. */
  .nav-toggle { display:block; position:absolute; width:1px; height:1px; opacity:0; margin:0; }
  .nav-toggle:focus-visible + .nav-burger { outline:2px solid var(--accent-2); outline-offset:2px; }
  .site-nav {
    position: absolute; top: 64px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px; display: none;
    max-height: calc(100dvh - 64px); overflow-y: auto;   /* long menu scrolls */
  }
  /* Mobile menu: clean full-width list with real labels */
  .site-nav .nav-label { display: inline; }
  .site-nav > a { padding: 13px 6px; border-radius: 10px; }
  .site-nav > a:hover { background: var(--surface-2); text-decoration: none; }
  .nav-form { width: 100%; }
  .site-nav .btn {                       /* discreet / install / settings / logout become rows */
    width: 100%; justify-content: flex-start; border: none; background: transparent;
    padding: 13px 6px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  }
  .site-nav .btn:hover { background: var(--surface-2); }
  .nav-bell { display: flex; align-items: center; }
  .nav-badge { position: static; margin-left: 8px; }
  .nav-account {
    flex-direction: column; align-items: stretch; gap: 2px;
    border-left: none; padding-left: 0; margin-top: 8px; padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .nav-account .nav-name { padding: 13px 6px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }

  /* Dropdown groups become inline expandable sections in the mobile menu. */
  .nav-dd { width: 100%; }
  .nav-dd > summary { padding: 13px 6px; border-radius: 10px; font-size: .95rem; }
  .nav-dd > summary:hover { background: var(--surface-2); }
  .nav-dd.nav-account-dd > summary { border-left: none; padding-left: 6px; margin-left: 0;
    margin-top: 8px; padding-top: 15px; border-top: 1px solid var(--border); border-radius: 0; }
  .nav-dd-menu, .nav-dd-menu.nav-dd-right {
    position: static; box-shadow: none; border: none; background: transparent;
    padding: 0 0 6px 14px; min-width: 0; gap: 0;
  }
  .nav-dd-menu a, .nav-dd-menu button { padding: 12px 8px; font-size: .95rem; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; }
  .features { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

/* Denser people-grid on phones: 2 across instead of one giant card per row */
@media (max-width: 640px) {
  .grid-cards { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .pcard h3 { font-size: .98rem; }
  .pcard .pcard-body { padding: 11px 12px 14px; }
  .pcard .pcard-meta { font-size: .8rem; }
  .strip .pcard { flex-basis: 132px; }
  .event-row { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .container { padding: 0 14px; }
  main, main.container { padding: 20px 14px 72px; }
  .card-pad, .panel { padding: 16px; }
  .check-grid { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
  .hero { padding: 40px 0 28px; }
  .msg { max-width: 86%; }
  .selfie-frame { width: 220px; height: 220px; }
  /* keep the fixed save bar from covering the last fields */
  body:has(.edit-savebar) main { padding-bottom: 96px; }
}

/* ============================================================
   Accessibility: visible keyboard focus + reduced motion (WCAG)
   ============================================================ */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible,
.chip:focus-visible,
.tagchip:focus-visible,
.deck-btn:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Filter chips hide the native checkbox, so surface focus on the chip itself. */
.filter-chip:has(input:focus-visible) {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
