/* ============ Triad design tokens — "body heat" ============ */
:root {
  --bg: #0c1712;
  --bg-raised: #142019;
  --surface: rgba(210, 240, 226, 0.05);
  --surface-strong: rgba(210, 240, 226, 0.10);
  --border: rgba(180, 224, 205, 0.13);
  --text: #eef5f0;
  --text-dim: #9fb6ab;
  --accent-1: #16c98a;
  --accent-2: #e8c37e;
  --ember: #34d8b0;
  --accent-grad: linear-gradient(115deg, var(--ember), var(--accent-1) 42%, var(--accent-2));
  --btn-grad: linear-gradient(120deg, #2fdca8, #16c98a 48%, #0fa870);
  --danger: #ff5f5f;
  --ok: #58e0a5;
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Outfit", system-ui, sans-serif;
  --dur: 220ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 300;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
/* film grain — the tactile layer over everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.landing-glow {
  position: fixed; inset: -10%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(640px 460px at 16% -4%, rgba(22, 201, 138, 0.22), transparent 70%),
    radial-gradient(720px 540px at 88% 8%, rgba(232, 195, 126, 0.20), transparent 70%),
    radial-gradient(560px 420px at 78% 82%, rgba(52, 216, 176, 0.12), transparent 70%),
    radial-gradient(900px 640px at 40% 108%, rgba(22, 201, 138, 0.13), transparent 72%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============ shared bits ============ */
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  color: var(--text); text-decoration: none; letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.brand-mark {
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-size: 1.1em;
}

.btn {
  font-family: var(--font-ui); font-weight: 500; font-size: 0.95rem;
  border: 1px solid transparent; border-radius: 999px;
  padding: 0.6rem 1.4rem; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 2px; }
.btn-primary {
  background: var(--btn-grad); background-size: 170% 170%; background-position: 0% 50%;
  color: #04140d; font-weight: 600;
  box-shadow: 0 6px 26px rgba(22, 201, 138, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-position 500ms var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px); background-position: 95% 50%;
  box-shadow: 0 12px 38px rgba(22, 201, 138, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-strong); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: rgba(255, 95, 95, 0.35); }
.btn-danger-ghost:hover { background: rgba(255, 95, 95, 0.12); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ============ landing v2 ============ */
.landing { overflow-x: hidden; }
.landing-nav {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem clamp(1.2rem, 5vw, 4rem);
}
.hero { position: relative; z-index: 1; text-align: center; padding: clamp(2.5rem, 7vw, 5rem) 1.5rem 1rem; max-width: 980px; margin: 0 auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem; color: var(--accent-1); font-weight: 600; margin-bottom: 1.4rem; border: 1px solid rgba(22, 201, 138, 0.35); border-radius: 999px; padding: 0.45rem 1.1rem; background: rgba(22, 201, 138, 0.07); }
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 9.5vw, 6.8rem); line-height: 0.98; letter-spacing: -0.015em; margin: 0 0 1.5rem; }
.hero-title em { font-style: italic; font-weight: 700; background: var(--accent-grad); background-size: 200% 200%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s ease-in-out infinite; }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-sub { color: var(--text-dim); font-size: 1.12rem; line-height: 1.7; max-width: 580px; margin: 0 auto 2.4rem; }
.hero-sub strong { color: var(--text); font-weight: 500; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-cta .btn-primary { padding: 1rem 2.4rem; font-size: 1.1rem; }

/* floating card fan */
.hero-cards { position: relative; height: 250px; margin-top: 3.8rem; z-index: 1; }
.mini-card { position: absolute; left: 50%; display: flex; align-items: center; gap: 0.7rem; background: linear-gradient(160deg, #173026, var(--bg-raised)); border: 1px solid var(--border); border-radius: 16px; padding: 0.65rem 1.2rem 0.65rem 0.65rem; font-size: 0.9rem; color: var(--text-dim); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(22, 201, 138, 0.06); }
.mini-card img { width: 48px; height: 48px; border-radius: 12px; }
.mini-card .v { color: #5ad1ff; font-size: 0.8em; margin-left: 0.25rem; }
.mc-1 { transform: translateX(-185%) rotate(-7deg); top: 16px; animation: float1 7s ease-in-out infinite; }
.mc-2 { transform: translateX(-50%) rotate(1.5deg); top: 84px; z-index: 3; animation: float2 8s ease-in-out infinite; }
.mc-3 { transform: translateX(72%) rotate(8deg); top: 26px; animation: float3 7.5s ease-in-out infinite; }
.mc-match {
  transform: translateX(-38%) rotate(-3deg); top: 8px; z-index: 4; border: none;
  background: var(--accent-grad); color: #fff; font-weight: 600; padding: 0.55rem 1.2rem;
  box-shadow: 0 16px 44px rgba(22, 201, 138, 0.5); animation: float2 6.5s ease-in-out infinite;
}
@keyframes float1 { 0%, 100% { margin-top: 0; } 50% { margin-top: -14px; } }
@keyframes float2 { 0%, 100% { margin-top: 0; } 50% { margin-top: -10px; } }
@keyframes float3 { 0%, 100% { margin-top: 0; } 50% { margin-top: -18px; } }

/* proof strip */
.proof-strip { position: relative; z-index: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; padding: 1.4rem 1.5rem 0; max-width: 920px; margin: 0 auto; }
.proof-chip { font-size: 0.8rem; color: var(--text-dim); border: 1px solid var(--border); border-radius: 999px; padding: 0.5rem 1.05rem; background: var(--surface); transition: all var(--dur) var(--ease); }
.proof-chip:hover { color: var(--text); border-color: rgba(22, 201, 138, 0.4); transform: translateY(-2px); }
.proof-chip strong { color: var(--text); font-weight: 500; }

/* signature line — the one memorable, quotable moment */
.manifesto { position: relative; z-index: 1; text-align: center; padding: clamp(4rem, 9vw, 7rem) 1.5rem clamp(2rem, 5vw, 3rem); max-width: 860px; margin: 0 auto; }
.manifesto blockquote { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(2.1rem, 7vw, 4rem); line-height: 1.08; margin: 0; color: var(--text); }
.manifesto blockquote em { font-style: italic; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.manifesto-by { color: var(--text-dim); margin-top: 1.3rem; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; }

/* final CTA */
.cta-final { position: relative; z-index: 1; text-align: center; padding: 4.5rem 1.5rem 3.5rem; }
.cta-plus-note { color: var(--text-dim); font-size: 0.88rem; margin-top: 1.4rem; }
.cta-final h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 600; margin: 0 0 1.6rem; line-height: 1.02; }
.cta-final h2 em { font-style: italic; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing-footer {
  text-align: center; color: var(--text-dim); font-size: 0.85rem; padding: 2.5rem 1rem 3rem;
  border-top: 1px solid var(--border); position: relative; z-index: 1;
}
.landing-footer a { color: var(--text-dim); }
.landing-footer a:hover { color: var(--accent-1); }

/* ============ auth ============ */
.auth-body { display: grid; place-items: center; padding: 2rem 1rem; }
.auth-body .landing-glow {
  background:
    radial-gradient(700px 520px at 12% 8%, rgba(22, 201, 138, 0.30), transparent 68%),
    radial-gradient(760px 560px at 90% 16%, rgba(232, 195, 126, 0.26), transparent 68%),
    radial-gradient(620px 480px at 82% 88%, rgba(52, 216, 176, 0.18), transparent 68%),
    radial-gradient(700px 520px at 12% 92%, rgba(22, 201, 138, 0.16), transparent 70%);
}
/* drifting warm orbs so tall forms never float in dead space */
.float-orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(70px); opacity: 0.5;
}
.orb-1 { width: 320px; height: 320px; left: 6%; top: 12%; background: radial-gradient(circle, var(--accent-1), transparent 70%); animation: float1 11s ease-in-out infinite; }
.orb-2 { width: 380px; height: 380px; right: 4%; top: 42%; background: radial-gradient(circle, var(--accent-2), transparent 70%); animation: float3 13s ease-in-out infinite; }
.orb-3 { width: 260px; height: 260px; left: 14%; bottom: 6%; background: radial-gradient(circle, var(--ember), transparent 70%); animation: float2 9s ease-in-out infinite; }
.auth-card {
  position: relative; z-index: 1; width: min(500px, 100%); padding: 2.2rem;
  background: rgba(20, 32, 25, 0.72); backdrop-filter: blur(20px);
  border: 1px solid rgba(180, 224, 205, 0.20); border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 80px rgba(22, 201, 138, 0.10);
}
.auth-card::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(52, 216, 176, 0.7), rgba(22, 201, 138, 0.7), rgba(232, 195, 126, 0.7), transparent); }
/* section the long register form so it reads in chapters, not a wall */
#couple-fields, #single-fields {
  border: 1px solid rgba(180, 224, 205, 0.10); border-radius: 16px;
  padding: 1rem; display: flex; flex-direction: column; gap: 0.9rem;
  background: rgba(210, 240, 226, 0.025);
}
.auth-brand { display: flex; justify-content: center; margin-bottom: 1.6rem; }
.auth-tabs { display: flex; gap: 0.4rem; background: var(--surface); border-radius: 999px; padding: 0.3rem; margin-bottom: 1.4rem; }
.auth-tab {
  flex: 1; border: none; background: transparent; color: var(--text-dim);
  padding: 0.55rem; border-radius: 999px; cursor: pointer; font-family: var(--font-ui); font-weight: 500;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.auth-tab.active { background: var(--accent-grad); color: #fff; }
.auth-form { display: flex; flex-direction: column; gap: 0.9rem; }
.auth-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.88rem; color: var(--text-dim); font-weight: 400; }
.label-hint { font-size: 0.78rem; opacity: 0.7; }
.auth-form input, .auth-form select, .auth-form textarea, .chat-form input, #report-reason {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); padding: 0.65rem 0.8rem; font-family: var(--font-ui); font-size: 0.95rem;
  transition: border-color var(--dur) var(--ease);
}
.auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus, .chat-form input:focus {
  outline: none; border-color: var(--accent-1);
}
.auth-form select option { background: var(--bg-raised); }
.partner-row { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 0.6rem; }
.partner-row:has(> label:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.type-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem; text-align: center;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text-dim);
  border-radius: 16px; padding: 1.1rem 0.7rem; cursor: pointer; font-family: var(--font-ui);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.type-btn:hover { transform: translateY(-2px); border-color: rgba(22, 201, 138, 0.4); }
.type-btn .type-emoji { font-size: 1.4rem; line-height: 1; }
.type-btn .type-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--text); }
.type-btn .type-desc { font-size: 0.76rem; opacity: 0.8; }
.type-btn.active {
  border-color: transparent; color: var(--text);
  background: linear-gradient(150deg, rgba(22, 201, 138, 0.16), rgba(232, 195, 126, 0.10));
  box-shadow: 0 8px 28px rgba(22, 201, 138, 0.22), inset 0 0 0 1.5px var(--accent-1);
}

/* ============ signup wizard ============ */
.wizard { position: relative; }
.wizard-progress { margin-bottom: 0.6rem; }
.wizard-bar { height: 6px; border-radius: 999px; background: var(--surface-strong); overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.wizard-bar span { display: block; height: 100%; width: 25%; border-radius: 999px; background: var(--accent-grad); box-shadow: 0 0 12px rgba(22, 201, 138, 0.55); transition: width 360ms var(--ease); }
.wizard-count { margin: 0.45rem 0 0; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); text-align: right; }
.wizard-step { display: none; flex-direction: column; gap: 0.95rem; min-height: 268px; animation: stepIn 320ms var(--ease); }
.wizard-step.active { display: flex; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }
.wizard-title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1.1; margin: 0.1rem 0 0; }
.wizard-sub { color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; margin: 0 0 0.4rem; }
.field-group-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-1); font-weight: 600; margin: 0.5rem 0 -0.3rem; }
.type-btn:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 2px; }
.wizard-nav { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.wizard-nav .btn { padding-top: 0.78rem; padding-bottom: 0.78rem; }
.wizard-nav .btn-ghost { flex: 0 0 auto; }
.wizard-nav .btn-primary { flex: 1; }
#couple-fields, #single-fields { display: flex; flex-direction: column; gap: 0.9rem; }
.auth-error { background: rgba(255, 95, 95, 0.12); border: 1px solid rgba(255, 95, 95, 0.4); color: #ffb3b3; border-radius: 10px; padding: 0.7rem 1rem; font-size: 0.9rem; }
.auth-hint { color: var(--text-dim); font-size: 0.82rem; text-align: center; line-height: 1.6; }
.auth-hint code { color: var(--accent-1); }

/* ============ app shell ============ */
.app-body { display: block; overflow-x: hidden; }
/* phone-width column; padding-bottom clears the fixed tab bar */
.app-shell {
  position: relative; z-index: 1; max-width: 480px; margin: 0 auto;
  padding: 0 1rem calc(76px + env(safe-area-inset-bottom));
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
/* slim sticky top bar — admin dashboard only (in-app views are header-free) */
.app-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: center; align-items: center;
  padding: 0.8rem 0 0.7rem; margin-bottom: 0.3rem;
  background: linear-gradient(to bottom, var(--bg) 62%, rgba(12, 23, 18, 0));
}
/* bottom tab bar — fixed, evenly spaced, glassy (Tinder structure) */
.app-nav {
  position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(480px, 100%); display: flex; justify-content: space-around; align-items: stretch;
  padding: 0.45rem 0.4rem calc(0.5rem + env(safe-area-inset-bottom));
  background: rgba(14, 22, 17, 0.9); backdrop-filter: blur(18px);
  border-top: 1px solid var(--border); box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
}
.nav-btn {
  flex: 1; border: none; background: transparent; color: var(--text-dim); cursor: pointer;
  font-family: var(--font-ui); font-weight: 600; font-size: 0.62rem;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  padding: 0.35rem 0; border-radius: 14px; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 0.22rem;
  transition: color var(--dur) var(--ease);
}
.nav-btn::before { font-size: 1.3rem; line-height: 1; font-weight: 400; letter-spacing: 0; }
.nav-btn[data-view="deck"]::before { content: "\25B3"; }   /* triangle */
.nav-btn[data-view="likes"]::before { content: "\2605"; }  /* star */
.nav-btn[data-view="matches"]::before { content: "\25C8"; } /* diamond */
.nav-btn[data-view="prefs"]::before { content: "\2261"; }   /* sliders (U+2261: in every font incl. Android) */
.nav-btn[data-view="profile"]::before { content: "\25C9"; } /* fisheye */
.nav-btn:hover:not(.active) { color: var(--text); }
.nav-btn.active { color: var(--accent-1); }
.nav-btn.active::before { filter: drop-shadow(0 0 8px rgba(22, 201, 138, 0.6)); }
.badge {
  position: absolute; top: 0; left: 50%; margin-left: 0.3rem;
  background: var(--danger); color: #fff; font-size: 0.56rem; font-weight: 700;
  line-height: 1; border-radius: 999px; padding: 0.12rem 0.34rem;
}
.app-body .float-orb { opacity: 0.35; }
/* wide screens: the phone column becomes a lit glass slab, tab bar aligned to it */
@media (min-width: 900px) {
  .app-shell {
    background: rgba(20, 32, 25, 0.45); backdrop-filter: blur(14px);
    border-left: 1px solid var(--border); border-right: 1px solid var(--border);
    box-shadow: 0 0 90px rgba(0, 0, 0, 0.45), 0 0 120px rgba(22, 201, 138, 0.05);
  }
}

/* header-free shell: each view owns its top edge, padded clear of the status bar */
.view { display: none; flex: 1; flex-direction: column; padding-top: calc(env(safe-area-inset-top) + 0.6rem); }
.view.active { display: flex; }
/* chat pins its own header to the very top instead */
#view-chat { padding-top: 0; }
/* discover: near-full-bleed Tinder geometry — card claims top→nav, 6px side inset */
#view-deck { position: relative; margin: 0 -1rem; padding: calc(env(safe-area-inset-top) + 8px) 6px 0; }
.view-title { font-family: var(--font-display); font-size: 1.6rem; margin: 0.4rem 0 1.2rem; }
.view-title::after {
  content: ""; display: block; width: 44px; height: 3px; border-radius: 999px;
  background: var(--accent-grad); margin-top: 0.5rem;
}

/* ============ deck ============ */
.deck { position: relative; flex: 1; min-height: 480px; perspective: 1400px; }
/* soft ember pool under the stack so the deck never floats on dead black */
.deck::before {
  content: ""; position: absolute; inset: -4% 0 4%; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 42%, rgba(22, 201, 138, 0.16), transparent 72%);
  filter: blur(6px); animation: breathe 8s ease-in-out infinite;
}
.card {
  position: absolute; inset: 0; border-radius: 24px; overflow: hidden;
  background: var(--bg-raised); border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 70px rgba(0, 0, 0, 0.6),
              0 0 60px rgba(22, 201, 138, 0.08);
  display: flex; flex-direction: column; transform-origin: 50% 90%;
  touch-action: none; user-select: none; cursor: grab; will-change: transform;
  transition: transform 340ms var(--ease), opacity 340ms var(--ease), box-shadow var(--dur) var(--ease);
}
/* gradient rim-light so the top card reads as a lit physical object */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: 24px; padding: 1.3px; z-index: 6;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(52, 216, 176, 0.55), rgba(22, 201, 138, 0.28) 38%, transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card.dragging { transition: none; cursor: grabbing; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7), 0 0 80px rgba(22, 201, 138, 0.16); }
.card.behind-1 { transform: scale(0.94) translateY(18px); filter: brightness(0.82) blur(0.4px); opacity: 0.9; pointer-events: none; }
.card.behind-1::before { opacity: 0.4; }
.card.behind-2 { transform: scale(0.88) translateY(36px); filter: brightness(0.62) blur(1.4px); opacity: 0.7; pointer-events: none; }
.card.behind-2::before { opacity: 0; }
.card.fly-left { transform: translateX(-135%) translateY(24px) rotate(-22deg) scale(0.92) !important; opacity: 0; }
.card.fly-right { transform: translateX(135%) translateY(24px) rotate(22deg) scale(0.92) !important; opacity: 0; }
.card-photo { position: relative; flex: 1; min-height: 0; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* live drag wash — green on like, red on pass, driven by --like-p / --pass-p */
.card-wash { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; mix-blend-mode: screen; }
.wash-like { background: radial-gradient(120% 90% at 15% 40%, rgba(88, 224, 165, 0.55), transparent 70%); opacity: calc(var(--like-p, 0) * 0.9); }
.wash-pass { background: radial-gradient(120% 90% at 85% 40%, rgba(255, 95, 95, 0.55), transparent 70%); opacity: calc(var(--pass-p, 0) * 0.9); }
/* tinder-style multi-photo progress segments */
.card-progress { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 4; display: flex; gap: 4px; pointer-events: none; }
.card-seg {
  flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); transition: background var(--dur) var(--ease);
}
.card-seg.active { background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.7); }
/* taller scrim: the floating action row + info block both read over the photo */
.card-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 23, 18, 0.98) 0%, rgba(12, 23, 18, 0.74) 20%, rgba(12, 23, 18, 0.32) 46%, transparent 70%),
              linear-gradient(200deg, rgba(22, 201, 138, 0.10), transparent 40%);
}
.card-stamp {
  position: absolute; top: 30px; font-family: var(--font-display); font-weight: 700;
  font-size: 2.1rem; letter-spacing: 0.02em; padding: 0.15rem 1rem; border-radius: 12px;
  border: 3.5px solid; z-index: 5; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition: opacity 90ms linear;
}
.stamp-like { left: 22px; color: var(--ok); border-color: var(--ok); box-shadow: 0 0 24px rgba(88, 224, 165, 0.4);
  opacity: calc(var(--like-p, 0) * 1); transform: rotate(-15deg) scale(calc(0.7 + var(--like-p, 0) * 0.42)); }
.stamp-pass { right: 22px; color: var(--danger); border-color: var(--danger); box-shadow: 0 0 24px rgba(255, 95, 95, 0.4);
  opacity: calc(var(--pass-p, 0) * 1); transform: rotate(15deg) scale(calc(0.7 + var(--pass-p, 0) * 0.42)); }
/* bottom padding clears the action row floating over the photo */
.card-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.3rem 1.4rem 122px; z-index: 2; }
.card-name { font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; line-height: 1.05; margin: 0; display: flex; align-items: baseline; gap: 0.55rem; flex-wrap: wrap; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }
.card-type-chip {
  font-family: var(--font-ui); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.22rem 0.6rem; border-radius: 999px;
  background: var(--accent-grad); color: #fff; align-self: center;
}
.card-type-chip.single { background: rgba(88, 224, 165, 0.2); color: var(--ok); border: 1px solid rgba(88, 224, 165, 0.4); }
.card-meta { color: var(--text-dim); font-size: 0.9rem; margin: 0.3rem 0 0.55rem; }
/* compatibility % and distance as premium badges — the differentiators */
.card-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.65rem; }
.card-badge {
  display: inline-flex; align-items: center; gap: 0.28rem; font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.01em; padding: 0.3rem 0.72rem; border-radius: 999px;
}
.badge-compat { background: var(--accent-grad); color: #fff; box-shadow: 0 4px 16px rgba(22, 201, 138, 0.4); }
.badge-distance { color: var(--ember); background: rgba(52, 216, 176, 0.15); border: 1px solid rgba(52, 216, 176, 0.5); }
.card-bio { color: var(--text); font-size: 0.94rem; line-height: 1.55; margin: 0 0 0.7rem; font-weight: 300;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { font-size: 0.75rem; padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--surface-strong); border: 1px solid var(--border); color: var(--text-dim); }
.tag.shared { background: rgba(22, 201, 138, 0.16); border-color: rgba(22, 201, 138, 0.5); color: #8fe6c4; box-shadow: 0 0 14px rgba(22, 201, 138, 0.14); }
.card-report { position: absolute; top: 14px; right: 14px; z-index: 5; background: rgba(0,0,0,0.4); border: none; color: rgba(255,255,255,0.7); border-radius: 999px; width: 34px; height: 34px; cursor: pointer; font-size: 1rem; }
.card-report:hover { color: var(--danger); }

/* Tinder-style: the action row floats OVER the bottom of the photo card */
.deck-actions {
  position: absolute; left: 0; right: 0; bottom: 30px; z-index: 5;
  display: flex; justify-content: center; align-items: center; gap: 1.2rem; padding: 0; pointer-events: none;
}
.deck-actions .action-btn { pointer-events: auto; }
.action-btn {
  width: 66px; height: 66px; border-radius: 50%; border: 1.5px solid var(--border);
  background: linear-gradient(160deg, var(--bg-raised), #0f1a14); font-size: 1.65rem; cursor: pointer;
  display: grid; place-items: center; color: var(--text);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.action-btn:hover { transform: translateY(-3px) scale(1.06); }
.action-btn:active { transform: translateY(-1px) scale(0.94); }
.action-btn.pass { color: var(--danger); }
.action-btn.like {
  color: #04140d; background: var(--btn-grad); background-size: 160% 160%; border: none; width: 82px; height: 82px; font-size: 2rem;
  box-shadow: 0 14px 40px rgba(22, 201, 138, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: likeGlow 4s ease-in-out infinite;
}
@keyframes likeGlow {
  0%, 100% { box-shadow: 0 14px 40px rgba(22, 201, 138, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 16px 52px rgba(22, 201, 138, 0.7), 0 0 30px rgba(232, 195, 126, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}
.action-btn.like:hover { animation: heartbeat 900ms var(--ease) infinite; background-position: 90% 50%; }
@keyframes heartbeat {
  0%, 100% { transform: translateY(-3px) scale(1.06); }
  14% { transform: translateY(-3px) scale(1.16); }
  28% { transform: translateY(-3px) scale(1.07); }
  42% { transform: translateY(-3px) scale(1.14); }
}
.action-btn.small { width: 52px; height: 52px; font-size: 1.2rem; }
.action-btn.rewind { color: #ffd75a; }
.action-btn.super { color: #5ad1ff; }
.action-btn.ice { flex-shrink: 0; }
.action-btn.pass:hover { border-color: rgba(255, 95, 95, 0.6); color: #fff; background: rgba(255, 95, 95, 0.16); box-shadow: 0 14px 32px rgba(255, 95, 95, 0.3); }
.action-btn.rewind:hover { border-color: rgba(255, 215, 90, 0.55); background: rgba(255, 215, 90, 0.14); box-shadow: 0 14px 32px rgba(255, 215, 90, 0.22); }
.action-btn.super:hover { border-color: rgba(90, 209, 255, 0.6); background: rgba(90, 209, 255, 0.15); box-shadow: 0 14px 32px rgba(90, 209, 255, 0.3); }
.action-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; animation: none; }
/* tiny floating status pill over the very bottom edge of the card */
.limits-bar {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 3px; z-index: 6;
  text-align: center; color: var(--text-dim); font-size: 0.72rem; letter-spacing: 0.04em;
  width: fit-content; max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin: 0; padding: 0.3rem 0.95rem; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(12, 23, 18, 0.78); backdrop-filter: blur(8px);
}
.limits-bar:empty { display: none; }
.limits-bar .super-count { color: #5ad1ff; }
/* deck cleared by JS → collapse it so the empty-state card centers in the freed space */
.deck:empty { display: none; }
/* empty states are full glass panels that OWN the freed space: they stretch
   to fill the flex view (no dark void around a small card) and center inside */
.deck-empty {
  position: relative; text-align: center; margin: 0.2rem 0 0.6rem; padding: 2.6rem 2rem;
  color: var(--text-dim); width: 100%; border-radius: 26px;
  flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: radial-gradient(circle at 50% 30%, rgba(22, 201, 138, 0.07), transparent 60%), rgba(20, 32, 25, 0.72);
  backdrop-filter: blur(20px); border: 1px solid rgba(180, 224, 205, 0.20);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), 0 0 80px rgba(22, 201, 138, 0.08);
}
.deck-empty p { max-width: 340px; }
.empty-cta { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.6rem; width: min(280px, 100%); }
.empty-cta .btn { width: 100%; }
.deck-empty::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(52, 216, 176, 0.7), rgba(22, 201, 138, 0.7), rgba(232, 195, 126, 0.7), transparent); }
.deck-empty h2 { font-family: var(--font-display); color: var(--text); font-size: 1.5rem; margin-top: 0; }
.deck-empty h2::before {
  content: "\25B3"; display: block; font-size: 2rem; margin-bottom: 0.6rem;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; animation: breathe 6s ease-in-out infinite;
}
.deck-empty p { line-height: 1.65; margin-bottom: 0; }

/* super-liked-you ribbon on cards */
.super-ribbon {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: linear-gradient(120deg, #5ad1ff, #e8c37e); color: #fff;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(90, 209, 255, 0.4);
}

/* prompt Q&A block on cards */
.card-prompt {
  background: rgba(255, 255, 255, 0.07); border-left: 3px solid var(--accent-1);
  border-radius: 0 12px 12px 0; padding: 0.55rem 0.8rem; margin: 0 0 0.7rem;
}
.card-prompt .pq { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-1); font-weight: 600; margin: 0 0 0.2rem; }
.card-prompt .pa { font-family: var(--font-display); font-style: italic; font-size: 0.95rem; margin: 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ likes you grid ============ */
.likes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.9rem; }
.liker-card {
  position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; text-align: left;
  border: 1px solid var(--border); background: var(--bg-raised); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.liker-card:hover { transform: translateY(-4px); border-color: rgba(22, 201, 138, 0.45);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.5), 0 0 30px rgba(22, 201, 138, 0.16); }
.liker-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.liker-card::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 23, 18, 0.96) 0%, rgba(12, 23, 18, 0.45) 40%, transparent 66%); }
.liker-card .liker-info { position: absolute; left: 0; right: 0; bottom: 46px; padding: 0 0.7rem; z-index: 3; }
.liker-card .liker-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: #fff; display: flex; align-items: center; gap: 0.3rem; }
.liker-card .liker-meta { color: rgba(238, 245, 240, 0.78); font-size: 0.75rem; margin-top: 0.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.liker-card .liker-actions { position: absolute; left: 0; right: 0; bottom: 0.55rem; padding: 0 0.55rem; display: flex; gap: 0.4rem; z-index: 3; }
.liker-card .liker-actions .lk-pass { flex: 0 0 40px; padding: 0.42rem 0; font-size: 0.9rem; }
.liker-card .liker-actions .lk-like { flex: 1; padding: 0.42rem 0; font-size: 0.82rem; }
.liker-card.teaser .liker-info { bottom: 0.7rem; }
.liker-super { position: absolute; top: 8px; left: 8px; z-index: 3; background: linear-gradient(120deg, #5ad1ff, #e8c37e);
  color: #04140d; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em; padding: 0.24rem 0.6rem; border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }

/* ============ icebreaker messages ============ */
.msg.icebreaker { align-self: center; max-width: 90%; text-align: center; padding: 0.9rem 1.2rem; background: linear-gradient(150deg, rgba(90, 209, 255, 0.14), rgba(232, 195, 126, 0.12)); border: 1px solid rgba(90, 209, 255, 0.4); color: var(--text); border-radius: 18px; box-shadow: 0 8px 26px rgba(90, 209, 255, 0.12); }
.msg.icebreaker .ice-label { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.18em; color: #7fdcff; font-weight: 700; margin-bottom: 0.4rem; }
.msg.icebreaker .ice-q { font-family: var(--font-display); font-style: italic; font-size: 1.08rem; line-height: 1.4; }

/* ============ prompts editor ============ */
.prompts-editor { border-top: 1px solid var(--border); padding-top: 1.1rem; }
.prompt-row { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.9rem; }
.prompt-row select, .prompt-row textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); padding: 0.55rem 0.7rem; font-family: var(--font-ui); font-size: 0.9rem;
}
.prompt-row select option { background: var(--bg-raised); }

/* ============ matches ============ */
.matches-list { display: flex; flex-direction: column; gap: 0.7rem; }
/* bottom-anchored nudge so a short list never floats in a tall empty column */
.list-foot { margin: auto auto 0.3rem; padding-top: 1.6rem; text-align: center; color: var(--text-dim); font-size: 0.82rem; line-height: 1.5; max-width: 300px; }
.list-foot::before { content: ""; display: block; width: 40px; height: 1px; margin: 0 auto 1rem; background: linear-gradient(90deg, transparent, rgba(22, 201, 138, 0.5), transparent); }
#matches-empty:not([hidden]) ~ .list-foot, #likes-empty:not([hidden]) ~ .list-foot, .likes-locked:not([hidden]) ~ .list-foot { display: none; }
.match-row {
  display: flex; align-items: center; gap: 1rem; text-align: left; width: 100%;
  background: linear-gradient(160deg, rgba(210, 240, 226, 0.08), var(--surface) 60%);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 0.8rem 1rem; cursor: pointer; color: var(--text); font-family: var(--font-ui);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.match-row:hover {
  background: var(--surface-strong); transform: translateX(4px);
  border-color: rgba(22, 201, 138, 0.4);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), 0 0 24px rgba(22, 201, 138, 0.12);
}
.match-row .m-av { position: relative; flex-shrink: 0; }
.match-row .m-av img { width: 56px; height: 56px; border-radius: 15px; object-fit: cover; border: 1.5px solid rgba(180, 224, 205, 0.22); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); display: block; }
.match-row .m-newdot { position: absolute; top: -3px; right: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-grad); border: 2px solid var(--bg); box-shadow: 0 0 10px rgba(22, 201, 138, 0.6); }
.match-row .m-body { flex: 1; min-width: 0; }
.match-row .m-name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; display: flex; align-items: center; gap: 0.4rem; }
.match-row .m-last { color: var(--text-dim); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.1rem; }
.match-row .m-new { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 500; }
.match-row .m-side { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.match-row .m-unread { min-width: 22px; height: 22px; padding: 0 0.4rem; border-radius: 999px; background: var(--accent-grad); color: #fff; font-size: 0.74rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 3px 12px rgba(22, 201, 138, 0.4); }
.match-row .m-chevron { color: var(--text-dim); font-size: 1.5rem; line-height: 1; transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.match-row:hover .m-chevron { color: var(--accent-1); transform: translateX(3px); }
/* unread matches glow and read brighter */
.match-row.unread { border-color: rgba(22, 201, 138, 0.35); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3), 0 0 22px rgba(22, 201, 138, 0.1); }
.match-row.unread .m-last { color: var(--text); font-weight: 500; }

/* ============ chat ============ */
/* pins to the very top now that the app header is gone */
.chat-header {
  position: sticky; top: 0; z-index: 15;
  display: flex; align-items: center; gap: 0.7rem;
  padding: calc(env(safe-area-inset-top) + 0.7rem) 0 0.85rem; margin-bottom: 0.2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, var(--bg) 82%, rgba(12, 23, 18, 0.6));
  backdrop-filter: blur(10px);
}
.chat-back { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1.2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: all var(--dur) var(--ease); }
.chat-back:hover { background: var(--surface-strong); border-color: rgba(180, 224, 205, 0.3); }
.chat-avatar { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; flex-shrink: 0; border: 1.5px solid rgba(180, 224, 205, 0.25); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); }
.chat-title { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-title strong { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-sub { color: var(--text-dim); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-actions { display: flex; gap: 0.35rem; flex-shrink: 0; }
.chat-act { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); font-size: 1.05rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: all var(--dur) var(--ease); }
.chat-act:hover { color: var(--text); border-color: var(--accent-1); background: rgba(22, 201, 138, 0.12); transform: translateY(-1px); }
.chat-act.danger:hover { color: var(--danger); border-color: rgba(255, 95, 95, 0.5); background: rgba(255, 95, 95, 0.12); }
.chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0.45rem; padding: 1.2rem 0.2rem; min-height: 300px; max-height: 62vh; scroll-behavior: smooth; }
.msg { max-width: 76%; padding: 0.6rem 0.95rem 0.5rem; border-radius: 20px; font-size: 0.94rem; line-height: 1.45; overflow-wrap: break-word; position: relative; animation: msgIn 320ms var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
.msg-text { display: block; }
.msg.mine { align-self: flex-end; background: var(--accent-grad); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 6px 20px rgba(22, 201, 138, 0.28); }
.msg.theirs { align-self: flex-start; background: rgba(210, 240, 226, 0.08); border: 1px solid var(--border); border-bottom-left-radius: 6px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); backdrop-filter: blur(4px); }
.msg-time { display: block; font-size: 0.64rem; opacity: 0.6; margin-top: 0.15rem; text-align: right; }
.msg.theirs .msg-time { text-align: left; }
.chat-form { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.7rem; padding: 0.4rem 0.45rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.chat-form:focus-within { border-color: rgba(22, 201, 138, 0.5); box-shadow: 0 10px 34px rgba(22, 201, 138, 0.18); }
.chat-form input { flex: 1; border-radius: 999px; padding: 0.65rem 1rem; background: transparent; border-color: transparent; min-width: 0; }
.chat-empty-hint { margin: auto; text-align: center; color: var(--text-dim); font-size: 0.9rem; max-width: 300px; padding: 2rem 1.5rem; line-height: 1.6; }
.chat-empty-hint::before { content: "\9651"; display: block; font-size: 2.2rem; margin-bottom: 0.6rem; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: breathe 5s ease-in-out infinite; }

/* ============ profile ============ */
/* glass card; grid puts avatar + name side by side, everything else full-width */
.profile-card {
  position: relative; padding: 1.8rem 1.6rem;
  background: rgba(20, 32, 25, 0.72); backdrop-filter: blur(20px);
  border: 1px solid rgba(180, 224, 205, 0.20); border-radius: 26px;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.2rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), 0 0 80px rgba(22, 201, 138, 0.08);
}
.profile-card::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(52, 216, 176, 0.7), rgba(22, 201, 138, 0.7), rgba(232, 195, 126, 0.7), transparent); }
.profile-card > * { grid-column: 1 / -1; min-width: 0; }
.profile-card > .profile-avatar { grid-column: 1; }
.profile-card > .profile-head { grid-column: 2; }
/* compact identity header — the photo grid below is the hero now */
.profile-avatar {
  width: 72px; height: 72px; border-radius: 20px; object-fit: cover; border: 2px solid transparent;
  box-shadow: 0 0 0 2px rgba(22, 201, 138, 0.45), 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(22, 201, 138, 0.15);
}
.profile-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.05; margin: 0 0 0.25rem; }
.profile-head p { margin: 0; }
/* rhythm: hairline dividers open each chapter of the long stack */
.pf-photos-wrap, .profile-card > .auth-form { border-top: 1px solid var(--border); padding-top: 1.2rem; }
/* Tinder-style section headings: small, quiet, uppercase — each opens a chapter */
.pf-section { margin: 0 0 0.15rem; font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-dim); }
.pf-section .label-hint { text-transform: none; letter-spacing: 0; font-weight: 400; display: block; margin-top: 0.2rem; }
.auth-form > .pf-section:not(:first-child) { border-top: 1px solid var(--border); padding-top: 1.2rem; margin-top: 0.6rem; }
#pf-single-prefs:not([hidden]) { display: flex; flex-direction: column; gap: 0.9rem; }

/* ============ modals ============ */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(6, 14, 10, 0.75); backdrop-filter: blur(8px); }
.modal-card {
  position: relative; padding: 2.2rem; width: min(420px, calc(100vw - 2rem)); text-align: center;
  background: rgba(20, 32, 25, 0.85); backdrop-filter: blur(20px);
  border: 1px solid rgba(180, 224, 205, 0.20); border-radius: 24px; animation: pop 380ms var(--ease);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), 0 0 60px rgba(22, 201, 138, 0.08);
}
.modal-card::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, rgba(52, 216, 176, 0.7), rgba(22, 201, 138, 0.7), rgba(232, 195, 126, 0.7), transparent); }
@keyframes pop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-eyebrow { text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.72rem; color: var(--accent-1); font-weight: 600; margin: 0 0 0.4rem; }
.modal-title { font-family: var(--font-display); font-size: 2rem; margin: 0 0 1rem; }
.modal-avatar { width: 110px; height: 110px; border-radius: 26px; object-fit: cover; box-shadow: 0 14px 40px rgba(22, 201, 138, 0.35); }
.modal-card p { color: var(--text-dim); }
.modal-actions { display: flex; gap: 0.8rem; justify-content: center; margin-top: 1.4rem; flex-wrap: wrap; }
#report-reason { width: 100%; margin-top: 0.8rem; }

/* ============ dual-consent partner switcher ============ */
/* floats over the top of the photo card, Tinder mode-pill style */
.partner-switch {
  position: absolute; top: calc(env(safe-area-inset-top) + 22px); left: 50%; transform: translateX(-50%);
  z-index: 7; display: flex; align-items: center; gap: 0.3rem; padding: 0.3rem; width: fit-content;
  background: rgba(12, 23, 18, 0.72); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); white-space: nowrap;
}
.ps-label { color: var(--text-dim); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; padding-left: 0.7rem; }
.ps-btn {
  border: none; background: transparent; color: var(--text-dim);
  border-radius: 999px; padding: 0.42rem 1.1rem; cursor: pointer;
  font-family: var(--font-ui); font-weight: 500; font-size: 0.9rem; transition: all var(--dur) var(--ease);
}
.ps-btn:hover:not(.active) { color: var(--text); }
.ps-btn.active { background: var(--accent-grad); color: #fff; box-shadow: 0 4px 18px rgba(22, 201, 138, 0.4); }
.partner-liked-chip {
  position: absolute; top: 18px; left: 18px; z-index: 3;
  background: rgba(12, 23, 18, 0.75); border: 1px solid rgba(22, 201, 138, 0.55);
  color: #8fe6c4; font-size: 0.78rem; font-weight: 500;
  padding: 0.3rem 0.75rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.waiting-note { color: var(--accent-1); font-weight: 500; }
.verified { color: #5ad1ff; font-size: 0.8em; }
.verified-chip {
  background: rgba(90, 209, 255, 0.12); border: 1px solid rgba(90, 209, 255, 0.45);
  color: #5ad1ff; font-size: 0.82rem; font-weight: 500;
  padding: 0.35rem 0.85rem; border-radius: 999px;
}
.pf-badges { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }

/* ============ photos ============ */
/* portrait tiles (3:4) so the editor previews the real swipe-card crop */
.pf-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 0.6rem; }
.photo-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-primary {
  position: absolute; bottom: 6px; left: 6px; background: var(--accent-grad); color: #fff;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.15rem 0.5rem; border-radius: 999px;
}
.photo-del {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%;
  border: none; background: rgba(0, 0, 0, 0.55); color: #fff; cursor: pointer; font-size: 0.75rem;
}
.photo-del:hover { background: var(--danger); }
.photo-add {
  aspect-ratio: 3 / 4; border-radius: 12px; border: 1.5px dashed var(--border);
  background: var(--surface); color: var(--text-dim); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; font-size: 1.4rem; font-family: var(--font-ui);
  transition: all var(--dur) var(--ease);
}
.photo-add span { font-size: 0.72rem; }
.photo-add:hover { border-color: var(--accent-1); color: var(--accent-1); }

/* ============ group chat (three voices) ============ */
/* sender labels are colour-coded so it's instantly three distinct people */
.msg-sender { display: flex; align-items: center; gap: 0.34rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.2rem; }
.msg-sender::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.msg-sender.sender-p1 { color: #4be0a8; }   /* partner 1 — coral */
.msg-sender.sender-p2 { color: #f0d59a; }   /* partner 2 — violet */
.msg.mine .msg-sender { color: rgba(255, 255, 255, 0.85); }
.msg.mine.p2 { background: linear-gradient(120deg, #e8c37e, #16c98a); box-shadow: 0 6px 20px rgba(232, 195, 126, 0.3); }
.msg.theirs.p2 { background: rgba(232, 195, 126, 0.16); border-color: rgba(232, 195, 126, 0.38); }
.msg.system { align-self: center; max-width: 88%; text-align: center; animation: msgIn 320ms var(--ease) both; background: rgba(210, 240, 226, 0.05); border: 1px solid rgba(180, 224, 205, 0.2); color: var(--text-dim); font-size: 0.78rem; padding: 0.45rem 1.1rem; border-radius: 999px; }
.chat-as { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid rgba(22, 201, 138, 0.4); background: rgba(22, 201, 138, 0.1); color: var(--text); border-radius: 999px; padding: 0.5rem 0.85rem; cursor: pointer; white-space: nowrap; font-family: var(--font-ui); font-weight: 500; font-size: 0.8rem; transition: all var(--dur) var(--ease); }
.chat-as::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4be0a8; transition: background var(--dur) var(--ease); }
.chat-as.as-p2 { border-color: rgba(232, 195, 126, 0.45); background: rgba(232, 195, 126, 0.12); }
.chat-as.as-p2::before { background: #f0d59a; }
.chat-as:hover { filter: brightness(1.15); }

/* ============ date zero ============ */
.dz-card { text-align: left; width: min(480px, calc(100vw - 2rem)); }
.dz-card .auth-form { margin-top: 1rem; }
.dz-status { margin-top: 0.9rem; font-size: 0.85rem; color: var(--text-dim);
  display: flex; gap: 0.5rem; flex-wrap: wrap; }
.dz-locked { color: var(--ok); font-weight: 600; }
#dz-confirm:disabled { opacity: 0.45; cursor: default; }

/* ============ Triad+ ============ */
.likes-locked .liker-card.teaser img { filter: blur(10px) saturate(1.4); }
.liker-card.teaser { pointer-events: none; }
.liker-card.teaser::after {
  content: "\01F512"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.5rem; z-index: 2;
  background: linear-gradient(to top, rgba(12, 23, 18, 0.78), rgba(12, 23, 18, 0.12) 60%),
              linear-gradient(200deg, rgba(22, 201, 138, 0.10), transparent 45%);
}
.locked-cta {
  text-align: center; padding: 1.8rem 1.4rem; margin-top: 1rem; position: relative; border-radius: 22px;
  background: rgba(20, 32, 25, 0.72); backdrop-filter: blur(14px); border: 1px solid rgba(255, 215, 90, 0.25);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 60px rgba(52, 216, 176, 0.08);
}
.locked-count { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 1rem; color: var(--text); }
.plus-tag, .plus-mark {
  background: linear-gradient(120deg, #ffd75a, var(--accent-1));
  -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700;
}
.plus-section {
  border: 1px solid rgba(255, 215, 90, 0.25); border-radius: 16px;
  padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.8rem;
  background: linear-gradient(160deg, rgba(255, 215, 90, 0.05), transparent 60%);
}
.plus-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.4rem; }
.plus-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.incognito-row { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; color: var(--text-dim); cursor: pointer; flex-wrap: wrap; }
.incognito-row input { accent-color: var(--accent-1); width: 17px; height: 17px; }
.lock-tag { font-size: 0.72rem; color: #ffd75a; border: 1px solid rgba(255, 215, 90, 0.4); border-radius: 999px; padding: 0.15rem 0.55rem; }
.plus-features { list-style: none; padding: 0; margin: 0.6rem 0 1rem; text-align: left; }
.plus-features li { padding: 0.45rem 0 0.45rem 1.6rem; position: relative; color: var(--text-dim); }
.plus-features li::before { content: "\2605"; position: absolute; left: 0; color: var(--accent-1); }
.save-tag { font-size: 0.7rem; color: var(--ok); margin-left: 0.3rem; }
#referral-section { border-color: rgba(22, 201, 138, 0.28); background: linear-gradient(160deg, rgba(22, 201, 138, 0.06), transparent 60%); }
.ref-blurb { margin: 0; line-height: 1.5; }
.ref-link-row { display: flex; gap: 0.5rem; }
.ref-link-row input { flex: 1; min-width: 0; font-size: 0.82rem; color: var(--text-dim); background: rgba(6, 14, 10, 0.5); border: 1px solid rgba(22, 201, 138, 0.2); border-radius: 10px; padding: 0.55rem 0.7rem; }
.ref-link-row .btn { flex: 0 0 auto; }

/* ============ ops dashboard ============ */
.admin-shell { max-width: 860px; }
.admin-tag { font-size: 0.6em; letter-spacing: 0.2em; color: var(--ember); vertical-align: middle; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; margin-bottom: 1.6rem; }
.stat-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.15rem;
}
.st-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; }
.st-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }
.st-sub { font-size: 0.74rem; color: var(--text-dim); opacity: 0.8; }
.admin-queue { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.8rem; }
.admin-row {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 0.9rem 1.1rem;
}
.admin-row-body { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 0.2rem; }
.admin-row-actions { display: flex; gap: 0.5rem; }
.admin-selfie { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); }
.repeat-flag { color: var(--danger); font-size: 0.78rem; font-weight: 600; margin-left: 0.4rem; }
.pending-chip {
  background: rgba(255, 215, 90, 0.10); border: 1px solid rgba(255, 215, 90, 0.4);
  color: #ffd75a; font-size: 0.82rem; font-weight: 500;
  padding: 0.35rem 0.85rem; border-radius: 999px;
}

/* ============ danger zone ============ */
.danger-zone { text-align: center; padding-top: 0.4rem; border-top: 1px solid var(--border); }
.btn-delete-link {
  background: none; border: none; cursor: pointer; font-family: var(--font-ui);
  color: var(--text-dim); font-size: 0.8rem; text-decoration: underline;
  text-underline-offset: 3px; padding: 0.4rem;
  transition: color var(--dur) var(--ease);
}
.btn-delete-link:hover { color: var(--danger); }

/* ============ triangle test ============ */
.quiz-card { max-height: 82vh; overflow-y: auto; text-align: left; width: min(520px, calc(100vw - 2rem)); }
.quiz-row { margin: 1.1rem 0; }
.quiz-q { font-weight: 500; margin: 0 0 0.45rem; font-size: 0.95rem; }
.quiz-scale { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 0.6rem; align-items: center; }
.quiz-scale span { font-size: 0.72rem; color: var(--text-dim); }
.quiz-scale span:last-child { text-align: right; }
.quiz-scale input[type=range] { width: 100%; accent-color: var(--accent-1); }
.triangle-svg { width: 100%; max-width: 400px; height: auto; margin: 0.5rem auto; display: block; }
.verify-pose { font-family: var(--font-display); font-size: 1.25rem; color: var(--accent-1); font-style: italic; margin: 0.8rem 0; }
#verify-file { width: 100%; color: var(--text-dim); margin: 0.5rem 0; }

/* ---------- distance & radius ---------- */
.card-distance { color: var(--ember); font-weight: 500; }

/* Tinder-preferences feel: settings rows read label-left / value-right */
#profile-form label:has(> #pf-display), #prefs-form label:has(> #pf-city), #pf-single-prefs > label {
  flex-direction: row; align-items: center; justify-content: space-between; gap: 0.8rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 0.5rem 0.5rem 0.5rem 0.9rem; white-space: nowrap;
}
#pf-display, #pf-city { width: 56%; text-align: right; background: transparent; border-color: transparent; }
#pf-single-prefs select { max-width: 70%; font-size: 0.9rem; text-align: right;
  background: transparent; border-color: transparent; padding: 0.5rem 0.1rem 0.5rem 0.3rem; }

/* ---------- Preferences view: stacked Tinder-style setting cards ---------- */
.prefs-stack { padding-bottom: 0.6rem; }
.pref-card {
  position: relative; display: flex; flex-direction: column; gap: 0.8rem;
  background: rgba(20, 32, 25, 0.72); backdrop-filter: blur(14px);
  border: 1px solid rgba(180, 224, 205, 0.18); border-radius: 18px; padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(22, 201, 138, 0.05);
}
.pref-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; }
.pref-head .pf-section { margin: 0; }
.pref-lab { cursor: pointer; }
.pref-value { color: var(--accent-1); font-weight: 600; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.prefs-stack .btn-primary { margin-top: 0.3rem; }
.radius-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; margin-top: 0.5rem;
  border-radius: 999px; cursor: pointer;
  background: var(--accent-grad); background-size: 100% 100%;
}
.radius-slider:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 4px; }
.radius-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent-1);
  box-shadow: 0 3px 12px rgba(22, 201, 138, 0.5);
  transition: transform var(--dur) var(--ease);
}
.radius-slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
.radius-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent-1);
  box-shadow: 0 3px 12px rgba(22, 201, 138, 0.5);
}

/* ============ lifestyle basics & filters ============ */
/* card chips: outlined champagne — clearly distinct from interest tags */
.card-basics { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.65rem; }
.basic-chip {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 0.24rem 0.68rem; border-radius: 999px;
  color: var(--accent-2); background: rgba(232, 195, 126, 0.08);
  border: 1px solid rgba(232, 195, 126, 0.45);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.basic-chip.outside {
  color: var(--text-dim); border-color: var(--border); border-style: dashed;
  background: rgba(210, 240, 226, 0.05);
}

/* profile editor: label-left / select-right rows, matching the Tinder-row feel */
.basics-fields { display: flex; flex-direction: column; gap: 0.55rem; }
.basics-row {
  flex-direction: row !important; align-items: center; justify-content: space-between;
  gap: 0.8rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.45rem 0.5rem 0.45rem 0.9rem; white-space: nowrap;
}
.basics-row select {
  max-width: 60%; text-align: right; background: transparent; border-color: transparent;
  padding: 0.5rem 0.1rem 0.5rem 0.3rem; font-size: 0.9rem;
}
.basics-block { display: flex; flex-direction: column; gap: 0.45rem; }
.basics-lab {
  margin: 0; font-size: 0.8rem; color: var(--text-dim); font-weight: 500;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.basics-heights { grid-template-columns: 1fr 1fr; }
.basics-heights input { width: 100%; }

/* tag-toggle chips (languages on Profile, every filter group on Prefs) */
.chip-toggle-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip-toggle {
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 500; cursor: pointer;
  padding: 0.32rem 0.78rem; border-radius: 999px;
  background: var(--surface-strong); border: 1px solid var(--border); color: var(--text-dim);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.chip-toggle:hover:not(:disabled) { color: var(--text); border-color: rgba(232, 195, 126, 0.5); }
.chip-toggle:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 2px; }
.chip-toggle.active {
  color: #f5e3bd; background: rgba(232, 195, 126, 0.14);
  border-color: rgba(232, 195, 126, 0.65); box-shadow: 0 0 14px rgba(232, 195, 126, 0.15);
}
.chip-toggle:disabled { opacity: 0.4; cursor: not-allowed; }

/* prefs: stacked filter groups; locked groups read dimmed with the plus tag */
.filters-blurb { margin: -0.2rem 0 0.2rem; white-space: normal; line-height: 1.5; }
#filter-groups { display: flex; flex-direction: column; gap: 0.9rem; }
.filter-group.locked .basics-lab { opacity: 0.75; }
.filter-group.locked .chip-toggle-row { opacity: 0.55; }
.filter-scalar-row {
  display: flex !important; flex-direction: row !important; align-items: center;
  justify-content: space-between; gap: 0.8rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 0.45rem 0.5rem 0.45rem 0.9rem;
}
.filter-scalar-row select {
  background: transparent; border-color: transparent; text-align: right;
  font-size: 0.9rem; padding: 0.5rem 0.1rem 0.5rem 0.3rem;
}
.filters-note { color: var(--accent-2); font-weight: 500; }
/* .auth-form label goes column by default — toggle rows in prefs stay rows */
.prefs-stack label.incognito-row { flex-direction: row; align-items: center; }

@media (max-width: 480px) {
  .partner-row { grid-template-columns: 1fr 1fr; }
  #couple-fields .partner-row > label:first-child { grid-column: 1 / -1; }
  .hero-cards { display: none; }
  .deck { min-height: 420px; }
}
