/* ============================================================
   AETERN — premium dark dating experience
   Black marble · gold veins · magenta brand. Mobile-app feel,
   centered on desktop. Glassmorphism on near-black.
   ============================================================ */

:root {
  /* Brand */
  --mag: #ec1c8c;        /* logo magenta            */
  --mag-2: #ff4db0;      /* bright magenta          */
  --mag-deep: #a80d63;   /* deep magenta            */
  --gold: #d8a64a;       /* luxe gold accent        */
  --gold-2: #f3d691;     /* light gold              */
  --gold-deep: #8a6a24;
  --grad-mag: linear-gradient(135deg, #ff4db0 0%, #ec1c8c 52%, #b00f68 100%);
  --grad-mag-soft: linear-gradient(135deg, rgba(255,77,176,.16), rgba(236,28,140,.10));
  --grad-gold: linear-gradient(120deg, #8a6a24, #f3d691 50%, #8a6a24);

  /* Surfaces (near-black, warm) */
  --bg: #08060a;
  --bg-2: #0e0a12;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --surface-3: rgba(255, 255, 255, 0.11);
  --glass: rgba(16, 11, 18, 0.66);
  --glass-strong: rgba(14, 10, 16, 0.86);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-gold: rgba(216, 166, 74, 0.30);

  /* Text */
  --ink: #f5eef1;
  --ink-2: #b7a9b3;
  --ink-3: #7c6e7a;
  --on-brand: #ffffff;

  /* Feedback */
  --like: var(--mag-2);
  --on: #41e0a3;       /* online */
  --nope: #8b8190;
  --warn: var(--gold);
  --danger: #ff5d6c;

  /* Geometry */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 30px;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 36px 90px rgba(0, 0, 0, 0.72);
  --glow-mag: 0 10px 34px rgba(236, 28, 140, 0.45);

  --app-w: 468px;
  --tabbar-h: 76px;
  --header-h: 64px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Saira Condensed", "Plus Jakarta Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
button, input, textarea, select { font-family: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: rgba(236,28,140,.35); color: #fff; }

/* ---------------- Backdrop: black marble + gold veins ---------------- */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bd-base {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, #17101c 0%, transparent 55%),
    radial-gradient(90% 70% at 110% 110%, #1a0f18 0%, transparent 50%),
    linear-gradient(160deg, #0b0810 0%, #08060a 45%, #0a0710 100%);
}
.bd-veins { position: absolute; inset: -2%; width: 104%; height: 104%; opacity: .7; }
.bd-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(45% 38% at 78% 18%, rgba(236,28,140,.20) 0%, transparent 60%),
    radial-gradient(40% 35% at 18% 86%, rgba(216,166,74,.10) 0%, transparent 60%);
  animation: glowDrift 22s ease-in-out infinite alternate;
}
@keyframes glowDrift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-3%, 2%, 0) scale(1.06); } }
.bd-grain {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* App shell */
.app-root {
  position: relative; z-index: 1;
  height: 100dvh; width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.phone {
  position: relative;
  width: 100%; max-width: var(--app-w); height: 100dvh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(20,14,24,.72), rgba(10,7,13,.86));
  overflow: hidden;
}
@media (min-width: 540px) {
  .app-root { padding: 24px; }
  .phone {
    height: min(912px, calc(100dvh - 48px));
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.05);
    border: 1px solid rgba(216,166,74,.16);
    backdrop-filter: blur(8px);
  }
}

/* ---------- Buttons ---------- */
.btn {
  border: none; cursor: pointer; font-weight: 700; font-size: 15px;
  border-radius: 999px; padding: 14px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .14s ease, box-shadow .2s ease, background .2s ease, opacity .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent; letter-spacing: .2px;
}
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--grad-mag); color: #fff; box-shadow: var(--glow-mag); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(236,28,140,.6); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line-gold); }
.btn-gold { background: var(--grad-gold); color: #1a1206; box-shadow: 0 10px 28px rgba(216,166,74,.3); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }
.btn-danger { background: rgba(255,93,108,.12); color: #ff8088; border: 1px solid rgba(255,93,108,.32); }
.btn-danger:hover { background: rgba(255,93,108,.2); }
.btn-link { background: none; padding: 6px; color: var(--mag-2); font-weight: 700; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; letter-spacing: .3px; text-transform: uppercase; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-2);
  background: rgba(0,0,0,.28); border-radius: var(--r-md);
  padding: 13px 15px; font-size: 15px; color: var(--ink);
  transition: border .15s, box-shadow .15s, background .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.select { color: var(--ink); }
.select option { background: #14101a; color: var(--ink); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--mag); background: rgba(0,0,0,.4);
  box-shadow: 0 0 0 3px rgba(236,28,140,.18);
}
.textarea { resize: vertical; min-height: 84px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }

/* ---------- Generic ---------- */
.muted { color: var(--ink-2); }
.center { text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; user-select: none; transition: all .15s;
}
.pill:hover { border-color: var(--line-gold); color: var(--ink); }
.pill.on { background: var(--grad-mag); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(236,28,140,.4); }
.pill.static { cursor: default; }
.pill.static:hover { border-color: var(--line-2); color: var(--ink-2); }
.badge { display:inline-flex; align-items:center; gap:5px; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; letter-spacing:.3px; }
.badge-verified { background: rgba(255,77,176,.16); color: var(--mag-2); border: 1px solid rgba(255,77,176,.3); }
.badge-new { background: var(--grad-mag); color:#fff; }
.dot-online { width: 9px; height: 9px; border-radius: 50%; background: var(--on); box-shadow: 0 0 0 3px rgba(65,224,163,.18); display:inline-block; }

/* The AET·ERN wordmark */
.wordmark { font-family: var(--display); font-weight: 800; font-style: italic; letter-spacing: 1.5px; color: var(--ink); text-transform: uppercase; }
.wordmark .mag { color: var(--mag); }
.brand-gradient-text { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 1.5px; }
.brand-word { font-family: var(--display); font-weight: 700; font-style: italic; }

/* ============================================================
   AUTH (landing / login / register) — marble hero
   ============================================================ */
.auth {
  width: 100%; max-width: var(--app-w); height: 100dvh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(16,11,20,.4), rgba(8,6,12,.78));
  overflow-y: auto;
}
@media (min-width: 540px) {
  .auth { height: min(912px, calc(100dvh - 48px)); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border: 1px solid rgba(216,166,74,.16); }
}
.auth-hero {
  position: relative; padding: 64px 30px 40px;
  text-align: center; overflow: hidden; flex-shrink: 0;
  border-bottom: 1px solid var(--line);
}
.auth-hero::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(70% 80% at 50% 30%, rgba(236,28,140,.18), transparent 70%);
}
.auth-logo { font-family: var(--display); font-style: italic; font-size: 64px; font-weight: 900; letter-spacing: 2px; position: relative; line-height: .9; text-transform: uppercase; }
.auth-logo .mag { color: var(--mag); text-shadow: 0 0 28px rgba(236,28,140,.5); }
.auth-tag { font-family: var(--display); font-size: 16px; letter-spacing: 5px; margin-top: 14px; font-weight: 600; position: relative; color: var(--mag-2); text-transform: uppercase; }
.auth-body { padding: 30px 26px 36px; flex: 1; }
.auth-title { font-family: var(--display); font-style: italic; text-transform: uppercase; letter-spacing: 1px; font-size: 30px; font-weight: 800; margin: 0 0 8px; line-height: 1.04; }
.auth-sub { color: var(--ink-2); margin: 0 0 24px; font-size: 14.5px; line-height: 1.5; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.form-error { background: rgba(255,93,108,.1); color: #ff909a; border: 1px solid rgba(255,93,108,.3); padding: 11px 14px; border-radius: var(--r-md); font-size: 13.5px; margin-bottom: 14px; }

.feat-row { display:flex; gap: 10px; margin-top: 24px; }
.feat { flex:1; background: var(--surface); border:1px solid var(--line); border-radius: var(--r-md); padding: 15px 10px; text-align:center; transition: border-color .2s; }
.feat:hover { border-color: var(--line-gold); }
.feat .ico { font-size: 22px; }
.feat .t { font-size: 12px; font-weight: 700; margin-top: 7px; color: var(--ink-2); }

/* Stepper (register) */
.steps { display:flex; gap:6px; margin-bottom: 24px; }
.steps .s { flex:1; height:4px; border-radius:999px; background: var(--surface-3); transition: background .3s; }
.steps .s.on { background: var(--grad-mag); }
.consent { display:flex; gap:11px; align-items:flex-start; padding:13px; border:1px solid var(--line-2); border-radius: var(--r-md); margin-bottom:10px; background:var(--surface); cursor:pointer; transition: border-color .2s; }
.consent:hover { border-color: var(--line-gold); }
.consent input { margin-top:3px; width:18px; height:18px; accent-color: var(--mag); flex-shrink:0; }
.consent .c-t { font-size: 13.5px; font-weight: 700; }
.consent .c-d { font-size: 12px; color: var(--ink-2); margin-top:2px; }

.seg { display:flex; background: var(--surface); border:1px solid var(--line-2); border-radius: var(--r-md); padding:4px; gap:4px; }
.seg button { flex:1; border:none; background:none; padding:10px; border-radius: 12px; font-weight:700; font-size:13.5px; color:var(--ink-2); cursor:pointer; transition:all .15s; }
.seg button.on { background: var(--grad-mag); color:#fff; box-shadow: 0 6px 16px rgba(236,28,140,.35); }

/* ============================================================
   APP CHROME (header + tabbar + screens)
   ============================================================ */
.app-header {
  height: var(--header-h); flex-shrink:0;
  display:flex; align-items:center; justify-content:space-between;
  padding: 0 18px; border-bottom: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(18px);
  position: relative; z-index: 5;
}
.app-header .h-title { font-family: var(--display); font-style: italic; text-transform: uppercase; font-size: 24px; font-weight: 800; letter-spacing: 1.4px; }
.app-header .h-actions { display:flex; gap:6px; align-items:center; }
.icon-btn {
  width:42px; height:42px; border-radius:50%; border:1px solid var(--line); background:var(--surface);
  display:grid; place-items:center; cursor:pointer; color:var(--ink-2); position:relative;
  transition: background .15s, color .15s, transform .12s, border-color .15s;
}
.icon-btn:hover { background:var(--surface-2); color:var(--ink); border-color: var(--line-gold); }
.icon-btn:active { transform:scale(.92); }
.icon-btn svg { width:21px; height:21px; }
.icon-btn .count {
  position:absolute; top:-3px; right:-3px; min-width:18px; height:18px; padding:0 4px;
  background:var(--mag); color:#fff; border-radius:999px; font-size:10.5px; font-weight:800;
  display:grid; place-items:center; border:2px solid #0c0810;
}

.screen { flex:1; overflow-y:auto; overflow-x:hidden; -webkit-overflow-scrolling: touch; position:relative; }
.screen-pad { padding: 18px; }
.screen::-webkit-scrollbar { width:8px; }
.screen::-webkit-scrollbar-thumb { background:rgba(255,255,255,.08); border-radius:999px; }

.tabbar {
  height: var(--tabbar-h); flex-shrink:0;
  display:flex; align-items:stretch;
  border-top:1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(18px);
  padding-bottom: env(safe-area-inset-bottom);
  position: relative; z-index: 5;
}
.tab {
  flex:1; border:none; background:none; cursor:pointer;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  color:var(--ink-3); font-size:10.5px; font-weight:700; position:relative;
  transition: color .15s; letter-spacing:.3px;
}
.tab svg { width:25px; height:25px; transition: transform .15s; }
.tab.on { color: var(--mag-2); }
.tab.on svg { transform: translateY(-1px) scale(1.06); filter: drop-shadow(0 4px 10px rgba(236,28,140,.5)); }
.tab .tcount {
  position:absolute; top:11px; right:50%; margin-right:-22px;
  min-width:17px; height:17px; padding:0 4px; background:var(--mag); color:#fff;
  border-radius:999px; font-size:10px; font-weight:800; display:grid; place-items:center;
  border:2px solid #0c0810;
}

/* Avatars */
.avatar { border-radius:50%; overflow:hidden; flex-shrink:0; display:grid; place-items:center; color:#fff; font-weight:800; position:relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.avatar img { width:100%; height:100%; object-fit:cover; }

/* ============================================================
   DISCOVER (swipe deck)
   ============================================================ */
.deck-wrap { position:relative; flex:1; padding: 14px 16px 4px; display:flex; flex-direction:column; }
.deck { position:relative; flex:1; min-height: 380px; }
.card {
  position:absolute; inset:0; border-radius: var(--r-lg);
  background:#15101a; color:#fff; overflow:hidden;
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255,255,255,.06);
  user-select:none; -webkit-user-select:none; will-change: transform; cursor: grab;
}
.card:active { cursor: grabbing; }
.card-photo { position:absolute; inset:0; background-size:cover; background-position:center; }
.card-grad { position:absolute; inset:0; background: linear-gradient(to top, rgba(6,4,8,.95) 2%, rgba(6,4,8,.5) 34%, rgba(6,4,8,.08) 58%, transparent 75%); }
.card-top { position:absolute; top:0; left:0; right:0; display:flex; justify-content:space-between; padding:14px; gap:8px; }
.compat-chip { background: rgba(0,0,0,.5); backdrop-filter: blur(8px); border:1px solid var(--line-gold); border-radius:999px; padding:7px 12px; font-size:13px; font-weight:800; display:flex; align-items:center; gap:6px; }
.compat-chip .ring { width:9px; height:9px; border-radius:50%; }
.card-online { background: rgba(0,0,0,.5); backdrop-filter: blur(8px); border:1px solid var(--line); border-radius:999px; padding:7px 12px; font-size:12px; font-weight:700; display:flex; align-items:center; gap:6px; }
.card-info { position:absolute; left:0; right:0; bottom:0; padding: 18px 18px 20px; }
.card-name { font-family: var(--display); font-style: italic; text-transform: uppercase; letter-spacing:.5px; font-size:30px; font-weight:800; display:flex; align-items:center; gap:9px; flex-wrap:wrap; line-height:1; }
.card-name .age { font-weight:600; opacity:.92; }
.card-sub { font-size:14px; opacity:.94; margin-top:9px; display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; }
.card-bio { font-size:14px; opacity:.95; margin-top:10px; line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-tags { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.card-tag { background: rgba(255,255,255,.1); backdrop-filter: blur(4px); border:1px solid rgba(255,255,255,.16); border-radius:999px; padding:6px 11px; font-size:12px; font-weight:600; }
.card-prompt { background: rgba(255,255,255,.08); border:1px solid var(--line); border-radius: var(--r-md); padding:11px 13px; margin-top:12px; }
.card-prompt .q { font-size:11px; opacity:.75; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color: var(--gold-2); }
.card-prompt .a { font-size:14.5px; font-weight:600; margin-top:3px; }
.card-expand { position:absolute; right:14px; bottom:14px; }

.stamp {
  position:absolute; top:30px; font-family: var(--display); font-style:italic; font-size:34px; font-weight:900; letter-spacing:2px;
  padding:6px 16px; border:4px solid; border-radius:14px; opacity:0; transform:rotate(-16deg);
  pointer-events:none; text-transform:uppercase;
}
.stamp.like { left:20px; color:var(--mag-2); border-color:var(--mag-2); text-shadow:0 0 20px rgba(255,77,176,.6); }
.stamp.nope { right:20px; color:#cbd0d6; border-color:#cbd0d6; transform:rotate(16deg); }

.deck-actions { display:flex; justify-content:center; align-items:center; gap:18px; padding: 18px 0 6px; }
.fab { border:none; border-radius:50%; cursor:pointer; display:grid; place-items:center; transition: transform .14s ease, box-shadow .2s, border-color .2s; }
.fab:active { transform: scale(.9); }
.fab svg { width:50%; height:50%; }
.fab-nope { width:64px; height:64px; color:#d7dade; background:var(--surface-2); border:1px solid var(--line-2); }
.fab-nope:hover { border-color:#cbd0d6; color:#fff; }
.fab-like { width:76px; height:76px; color:#fff; background:var(--grad-mag); box-shadow: var(--glow-mag); }
.fab-info { width:54px; height:54px; color:var(--gold-2); background:var(--surface-2); border:1px solid var(--line-gold); }
.fab-rewind { width:54px; height:54px; color:var(--gold); background:var(--surface-2); border:1px solid var(--line-2); }

/* Empty / loading */
.empty { padding: 50px 28px; text-align:center; color:var(--ink-2); display:flex; flex-direction:column; align-items:center; gap:12px; }
.empty .big { font-size:54px; filter: grayscale(.1); }
.empty h3 { margin:0; color:var(--ink); font-size:20px; font-family: var(--display); font-style:italic; text-transform:uppercase; letter-spacing:.5px; }
.empty p { margin:0; font-size:14px; max-width:290px; line-height:1.5; }
.spinner { width:34px; height:34px; border:3px solid rgba(255,255,255,.12); border-top-color:var(--mag); border-radius:50%; animation: spin .8s linear infinite; }
.loading-center { display:flex; align-items:center; justify-content:center; height:100%; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 75%); background-size:200% 100%; animation: sk 1.3s infinite; border-radius: var(--r-md); }
@keyframes sk { to { background-position:-200% 0; } }

/* ============================================================
   LISTS (matches / generic)
   ============================================================ */
.list-item { display:flex; align-items:center; gap:13px; padding:13px 16px; cursor:pointer; transition: background .12s; position:relative; }
.list-item:hover { background: var(--surface); }
.list-item + .list-item { border-top:1px solid var(--line); }
.li-main { flex:1; min-width:0; }
.li-name { font-weight:800; font-size:15.5px; display:flex; align-items:center; gap:7px; }
.li-sub { color:var(--ink-2); font-size:13.5px; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.li-sub.unread { color:var(--ink); font-weight:700; }
.li-meta { text-align:right; display:flex; flex-direction:column; align-items:flex-end; gap:5px; }
.li-time { font-size:11.5px; color:var(--ink-3); }
.li-unread { min-width:20px; height:20px; padding:0 5px; background:var(--grad-mag); color:#fff; border-radius:999px; font-size:11px; font-weight:800; display:grid; place-items:center; box-shadow:0 4px 12px rgba(236,28,140,.4); }

.section-title { font-family: var(--display); font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:1.4px; color:var(--gold); padding: 18px 16px 8px; font-style: italic; }

.rail { display:flex; gap:14px; padding: 14px 16px 6px; overflow-x:auto; }
.rail::-webkit-scrollbar { display:none; }
.rail-item { display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; flex-shrink:0; width:66px; }
.rail-ring { padding:3px; border-radius:50%; background:var(--grad-mag); box-shadow:0 6px 16px rgba(236,28,140,.35); }
.rail-item .nm { font-size:11.5px; font-weight:700; max-width:64px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Search */
.search-bar { padding: 14px 16px; display:flex; gap:10px; position:sticky; top:0; background:var(--glass); backdrop-filter: blur(18px); z-index:3; border-bottom:1px solid var(--line); }
.filters-sheet { padding: 6px 16px 16px; border-bottom:1px solid var(--line); }
.chips-scroll { display:flex; flex-wrap:wrap; gap:8px; }
.result-grid { display:grid; grid-template-columns: 1fr 1fr; gap:12px; padding:14px; }
.result-card { border-radius: var(--r-md); overflow:hidden; background:#15101a; color:#fff; position:relative; aspect-ratio: 3/4; cursor:pointer; box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(255,255,255,.05); transition: transform .15s, box-shadow .2s; }
.result-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line-gold); }
.result-card .rc-photo { position:absolute; inset:0; background-size:cover; background-position:center; }
.result-card .rc-grad { position:absolute; inset:0; background:linear-gradient(to top, rgba(6,4,8,.88), transparent 58%); }
.result-card .rc-info { position:absolute; bottom:0; left:0; right:0; padding:11px; }
.result-card .rc-name { font-weight:800; font-size:15px; display:flex; align-items:center; gap:5px; }
.result-card .rc-sub { font-size:12px; opacity:.9; margin-top:2px; }
.result-card .rc-compat { position:absolute; top:8px; right:8px; background:rgba(0,0,0,.5); backdrop-filter:blur(6px); border:1px solid var(--line-gold); border-radius:999px; padding:4px 9px; font-size:11.5px; font-weight:800; }

/* ============================================================
   CHAT
   ============================================================ */
.chat-head { height: var(--header-h); flex-shrink:0; display:flex; align-items:center; gap:11px; padding:0 10px 0 6px; border-bottom:1px solid var(--line); background:var(--glass); backdrop-filter: blur(18px); }
.chat-head .nm { font-weight:800; font-size:16px; line-height:1.1; }
.chat-head .st { font-size:12px; color:var(--ink-2); }
.chat-head .st.online { color:var(--on); font-weight:700; }
.chat-scroll { flex:1; overflow-y:auto; padding: 16px; display:flex; flex-direction:column; gap:4px; background: rgba(0,0,0,.18); }
.msg { max-width:76%; padding:10px 14px; border-radius:18px; font-size:14.5px; line-height:1.4; word-wrap:break-word; position:relative; }
.msg.me { align-self:flex-end; background:var(--grad-mag); color:#fff; border-bottom-right-radius:6px; box-shadow:0 6px 18px rgba(236,28,140,.28); }
.msg.them { align-self:flex-start; background:var(--surface-2); color:var(--ink); border:1px solid var(--line); border-bottom-left-radius:6px; }
.msg-time { font-size:10.5px; opacity:.8; margin-top:4px; display:flex; gap:5px; align-items:center; justify-content:flex-end; }
.msg.them .msg-time { color:var(--ink-3); }
.day-sep { align-self:center; font-size:11px; color:var(--ink-3); font-weight:700; background:var(--surface); border:1px solid var(--line); padding:3px 11px; border-radius:999px; margin:8px 0; text-transform:uppercase; letter-spacing:.4px; }
.typing { align-self:flex-start; background:var(--surface-2); border:1px solid var(--line); border-radius:18px; border-bottom-left-radius:6px; padding:12px 16px; display:flex; gap:4px; }
.typing span { width:7px; height:7px; border-radius:50%; background:var(--ink-3); animation: blink 1.2s infinite; }
.typing span:nth-child(2){ animation-delay:.2s; } .typing span:nth-child(3){ animation-delay:.4s; }
@keyframes blink { 0%,60%,100%{ opacity:.3; transform:translateY(0);} 30%{ opacity:1; transform:translateY(-3px);} }
.chat-input { flex-shrink:0; display:flex; gap:9px; align-items:flex-end; padding:10px 12px; border-top:1px solid var(--line); background:var(--glass); backdrop-filter: blur(18px); padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.chat-input textarea { flex:1; border:1px solid var(--line-2); background:rgba(0,0,0,.3); color:var(--ink); border-radius:22px; padding:11px 16px; font-size:15px; resize:none; max-height:120px; line-height:1.35; }
.chat-input textarea::placeholder { color: var(--ink-3); }
.chat-input textarea:focus { outline:none; border-color:var(--mag); background:rgba(0,0,0,.4); }
.send-btn { width:46px; height:46px; flex-shrink:0; border:none; border-radius:50%; background:var(--grad-mag); color:#fff; display:grid; place-items:center; cursor:pointer; box-shadow: var(--glow-mag); transition:transform .12s; }
.send-btn:active { transform:scale(.9); }
.send-btn:disabled { opacity:.5; }

/* ============================================================
   PROFILE / SETTINGS
   ============================================================ */
.profile-hero { padding: 30px 20px 24px; text-align:center; position:relative; border-bottom:1px solid var(--line); background: radial-gradient(80% 100% at 50% 0%, rgba(236,28,140,.14), transparent 70%); }
.profile-hero .av-wrap { display:inline-block; position:relative; }
.profile-hero .edit-cam { position:absolute; bottom:4px; right:4px; width:34px; height:34px; border-radius:50%; background:var(--grad-mag); border:2px solid #0c0810; display:grid; place-items:center; box-shadow:var(--glow-mag); cursor:pointer; color:#fff; }
.profile-hero h2 { margin:14px 0 2px; font-size:26px; font-family: var(--display); font-style:italic; text-transform:uppercase; letter-spacing:.5px; }
.profile-hero .ph-sub { color:var(--ink-2); font-size:14px; }
.profile-complete { margin: 18px 20px 0; }
.pc-bar { height:8px; background:var(--surface-3); border-radius:999px; overflow:hidden; }
.pc-fill { height:100%; background:var(--grad-mag); border-radius:999px; transition:width .5s; box-shadow:0 0 12px rgba(236,28,140,.5); }

.tile-group { margin: 16px; border:1px solid var(--line); border-radius: var(--r-lg); overflow:hidden; background:var(--surface); }
.tile { display:flex; align-items:center; gap:13px; padding:15px 16px; cursor:pointer; transition:background .12s; }
.tile + .tile { border-top:1px solid var(--line); }
.tile:hover { background:var(--surface-2); }
.tile .t-ico { width:38px; height:38px; border-radius:11px; display:grid; place-items:center; background:var(--surface-2); color:var(--mag-2); flex-shrink:0; border:1px solid var(--line); }
.tile .t-ico svg { width:20px; height:20px; }
.tile .t-main { flex:1; }
.tile .t-title { font-weight:700; font-size:15px; }
.tile .t-sub { font-size:12.5px; color:var(--ink-2); margin-top:1px; }
.tile .chev { color:var(--ink-3); }

.photo-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; padding:16px; }
.photo-cell { aspect-ratio:3/4; border-radius:var(--r-md); overflow:hidden; position:relative; background:var(--surface); border:1px dashed var(--line-2); display:grid; place-items:center; }
.photo-cell img { width:100%; height:100%; object-fit:cover; }
.photo-cell .ph-del { position:absolute; top:6px; right:6px; width:26px; height:26px; border-radius:50%; background:rgba(0,0,0,.6); color:#fff; border:none; cursor:pointer; display:grid; place-items:center; }
.photo-cell .ph-status { position:absolute; bottom:6px; left:6px; font-size:10px; font-weight:800; padding:3px 7px; border-radius:999px; }
.ph-status.pending { background:rgba(216,166,74,.2); color:var(--gold-2); }
.ph-status.approved { background:rgba(65,224,163,.18); color:var(--on); }
.ph-status.rejected { background:rgba(255,93,108,.18); color:#ff8088; }
.photo-add { cursor:pointer; color:var(--mag-2); }
.photo-add .plus { font-size:34px; font-weight:300; }

.detail-back { display:flex; align-items:center; gap:6px; padding:15px 16px; cursor:pointer; font-weight:700; color:var(--ink-2); transition: color .15s; }
.detail-back:hover { color: var(--ink); }

/* Toggle switch */
.switch { position:relative; width:46px; height:27px; flex-shrink:0; }
.switch input { opacity:0; width:0; height:0; }
.switch .sl { position:absolute; inset:0; background:var(--surface-3); border-radius:999px; transition:.25s; cursor:pointer; }
.switch .sl::before { content:""; position:absolute; width:21px; height:21px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.25s; box-shadow:0 2px 5px rgba(0,0,0,.4); }
.switch input:checked + .sl { background:var(--grad-mag); }
.switch input:checked + .sl::before { transform: translateX(19px); }

.cat-block { margin-bottom:18px; }
.cat-label { font-size:12.5px; font-weight:800; color:var(--gold); margin-bottom:9px; display:flex; align-items:center; gap:6px; text-transform:uppercase; letter-spacing:.5px; }

/* ============================================================
   TOASTS + MODALS
   ============================================================ */
.toast-layer { position:fixed; left:50%; bottom: calc(var(--tabbar-h) + 18px); transform:translateX(-50%); z-index:90; display:flex; flex-direction:column; gap:8px; align-items:center; pointer-events:none; width:100%; max-width: var(--app-w); padding:0 16px; }
.toast { pointer-events:auto; background:rgba(20,14,24,.94); color:#fff; border:1px solid var(--line-2); padding:12px 18px; border-radius:999px; font-size:13.5px; font-weight:600; box-shadow: var(--shadow-md); backdrop-filter: blur(10px); animation: toastIn .3s ease, toastOut .3s ease forwards; animation-delay: 0s, 2.6s; max-width:100%; }
.toast.ok { border-color: rgba(65,224,163,.4); } .toast.err { border-color: rgba(255,93,108,.45); } .toast.info { border-color: var(--line-2); }
@keyframes toastIn { from{ opacity:0; transform: translateY(14px) scale(.96);} to{ opacity:1;} }
@keyframes toastOut { to { opacity:0; transform: translateY(10px) scale(.97);} }

.modal-layer { position:fixed; inset:0; z-index:100; display:none; align-items:center; justify-content:center; padding:22px; }
.modal-layer.open { display:flex; }
.modal-backdrop { position:absolute; inset:0; background:rgba(4,2,6,.7); backdrop-filter: blur(6px); animation: fade .2s; }
@keyframes fade { from{opacity:0;} }
.modal { position:relative; background:linear-gradient(180deg, #17101d, #100b15); border:1px solid var(--line-2); border-radius:var(--r-xl); padding:26px; width:100%; max-width:380px; box-shadow:var(--shadow-lg); animation: pop .32s cubic-bezier(.2,1.2,.4,1); max-height:86dvh; overflow-y:auto; }
@keyframes pop { from{ opacity:0; transform: scale(.9) translateY(10px);} }
.modal h3 { margin:0 0 8px; font-size:21px; font-family: var(--display); font-style:italic; text-transform:uppercase; letter-spacing:.5px; }
.modal p { color:var(--ink-2); font-size:14px; margin:0 0 18px; line-height:1.5; }
.modal-actions { display:flex; gap:10px; margin-top:18px; }
.modal-actions .btn { flex:1; }

/* Match celebration */
.match-cele { text-align:center; color:#fff; }
.match-cele .mc-title { font-family:var(--display); font-style:italic; text-transform:uppercase; font-size:38px; font-weight:900; margin-bottom:6px; letter-spacing:1px; text-shadow:0 0 30px rgba(236,28,140,.6); }
.match-cele .mc-sub { opacity:.95; margin-bottom:24px; }
.match-modal { background: radial-gradient(120% 120% at 50% 0%, #2a0f22, #120a16); border:1px solid var(--line-gold); }
.match-modal p { color:rgba(255,255,255,.92); }
.confetti { position:fixed; inset:0; pointer-events:none; z-index:101; overflow:hidden; }
.confetti i { position:absolute; width:9px; height:14px; top:-20px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); opacity:.4; } }

/* helpers */
.stack > * + * { margin-top: 14px; }
.flex { display:flex; }
.between { justify-content:space-between; align-items:center; }
.gap8 { gap:8px; } .gap12 { gap:12px; }
.wrap { flex-wrap:wrap; }
.grow { flex:1; }
.small { font-size:12.5px; } .b { font-weight:700; }
.mt0{margin-top:0;} .mb0{margin-bottom:0;}
.danger-text { color: var(--danger); }
.ok-text { color: var(--on); }
.divider { height:1px; background:var(--line); margin:16px 0; }
.code-input { letter-spacing: 8px; text-align:center; font-size:22px; font-weight:800; }
