/* ═══════════════════════════════════════════════════════
   Vesica Academy — Design System v2
   Fonts: Bricolage Grotesque (body) · Fraunces (display)
   Palette: Deep onyx bg · Electric rose accent · Teal secondary
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200;12..96,400;12..96,600;12..96,800&family=Fraunces:ital,opsz,wght@0,9..144,200;0,9..144,800;1,9..144,300&family=JetBrains+Mono:wght@400;700&display=swap');

/* ─── Variables ─────────────────────────────────────────── */
:root {
  /* Core palette — deep violet */
  --bg:          #0D0818;
  --bg2:         #130D24;
  --bg3:         #1A1133;
  --card:        #17112A;
  --card2:       #1F1838;
  --overlay:     rgba(13,8,24,0.75);

  /* Accent */
  --rose:        #E8357A;
  --rose-light:  #FF6BA3;
  --rose-dim:    rgba(232,53,122,0.18);
  --rose-border: rgba(232,53,122,0.28);

  /* Secondary */
  --teal:        #14D9C5;
  --teal-dim:    rgba(20,217,197,0.15);
  --teal-border: rgba(20,217,197,0.25);

  /* Alias kept for legacy code */
  --accent:       var(--rose);
  --accent-light: var(--rose-light);
  --primary:      var(--rose);
  --secondary:    var(--teal);
  --gradient:     var(--rose);
  --gradient-soft:rgba(232,53,122,0.12);
  --bg-elevated:  var(--bg2);
  --card-bg:      var(--card);
  --card-bg2:     rgba(20,18,32,0.95);
  --card-bg-2:    var(--card);
  --primary-dark: #c22065;
  --lavender:     #b794ff;
  --locked:       #2a2640;
  --accent2:      var(--teal);
  --accent2-light: #6ef5e8;
  --gold:         #F4B942;
  --gold-dark:    #d4953a;
  --danger:       #EF5350;
  --success:      var(--teal);

  /* Text */
  --text:       #F5F2FF;
  --text-light: rgba(245,242,255,0.58);
  --text-muted: rgba(245,242,255,0.32);

  /* Borders */
  --border:       rgba(232,53,122,0.18);
  --border-light: rgba(245,242,255,0.07);

  /* Shadows */
  --shadow:      0 8px 32px rgba(0,0,0,0.55);
  --shadow-lg:   0 24px 72px rgba(0,0,0,0.75);
  --shadow-glow: 0 0 32px rgba(232,53,122,0.30);

  /* Shape */
  --radius:    22px;
  --radius-sm: 14px;
  --radius-xs: 9px;

  /* Love-language palette */
  --ll-words: #b794ff;
  --ll-gifts: #E8357A;
  --ll-acts:  #14D9C5;
  --ll-time:  #10b981;
  --ll-touch: #fb923c;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button, a, [role="button"], .ll-option, .quiz-option, .nav-item,
.swipe-btn, .swipe-action-btn, .action-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
html, body { height: 100%; overflow: hidden; }

/* ─── Body ──────────────────────────────────────────────── */
body {
  font-family: 'Bricolage Grotesque', sans-serif;
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%,  rgba(232,53,122,0.28), transparent),
    radial-gradient(ellipse 55% 35% at 88% 8%,   rgba(155,39,255,0.22), transparent),
    radial-gradient(ellipse 60% 50% at 50% 105%,  rgba(20,217,197,0.08), transparent),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
  user-select: none;
  -webkit-user-select: none;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 80px rgba(155,39,255,0.15), 0 0 120px rgba(0,0,0,0.8);
}

/* ─── Header ────────────────────────────────────────────── */
.app-header {
  padding: 14px 20px 10px;
  background: rgba(13,8,24,0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(245,242,255,0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-top { display: flex; align-items: center; justify-content: space-between; }

.app-header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.03em;
  background: var(--rose);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
}
.logo-mark {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.header-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 200;
  letter-spacing: 0.01em;
  margin-top: 1px;
}

.header-pills { display: flex; gap: 6px; align-items: center; }
.pill {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--card2);
  border: 1px solid var(--border-light);
  color: var(--text);
  white-space: nowrap;
}
.streak-pill { color: #fb923c; }
.pearl-pill  { color: var(--teal); }
.level-pill  { color: var(--rose-light); }

.xp-bar-wrap {
  height: 3px;
  background: var(--border-light);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.xp-bar {
  height: 100%;
  background: var(--rose);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

/* ─── Screen routing ────────────────────────────────────── */
.app-main { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.screen { display: none; padding: 24px 20px 120px; height: 100%; box-sizing: border-box; overflow-y: auto; }
.screen.active { display: block; animation: fadeUp 0.28s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);     }
}

/* ─── Bottom nav — floating pill, icon-only ─────────────── */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(19,13,36,0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(245,242,255,0.08);
  border-radius: 32px;
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 56px);
  max-width: 380px;
  z-index: 40;
  box-shadow: 0 12px 40px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.03);
}
.nav-btn {
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 8px 12px;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.15s;
  flex: 1; border-radius: 20px;
}
.nav-btn.active { color: var(--rose); }
.nav-btn.active .nav-icon svg { filter: drop-shadow(0 0 8px rgba(232,53,122,0.5)); }
.nav-btn:active { transform: scale(0.88); }
.nav-icon { display: flex; align-items: center; justify-content: center; }
.nav-icon svg { width: 24px; height: 24px; stroke-width: 1.75; display: block; }
.nav-label { display: none !important; }

/* ─── Typography ────────────────────────────────────────── */
.title {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.1;
}
.subtitle {
  font-size: 14px;
  font-weight: 200;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 20px;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.gradient-text {
  background: var(--rose);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: block; width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px; font-weight: 800;
  letter-spacing: 0.01em;
  transition: all 0.18s;
  text-align: center;
}
.btn-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 4px 24px rgba(232,53,122,0.40);
}
.btn-primary:active { transform: scale(0.97); box-shadow: none; }
.btn-secondary {
  background: var(--card2);
  border: 1.5px solid var(--border-light);
  color: var(--text);
}
.btn-ghost {
  background: transparent;
  color: var(--text-light);
  font-weight: 600;
}
.btn-ghost:active { opacity: 0.7; }
.btn-gold {
  background: var(--gold);
  color: #000;
  box-shadow: 0 4px 20px rgba(244,185,66,0.35);
}
.btn-stack { display: flex; flex-direction: column; gap: 10px; }

/* ─── Cards ─────────────────────────────────────────────── */
.glass-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

/* ─── Back button ───────────────────────────────────────── */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: 20px; padding: 7px 14px;
  font-size: 13px; font-weight: 600; color: var(--text-light);
  cursor: pointer; margin-bottom: 18px;
}

/* ─── Form elements ─────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px; font-weight: 600; color: var(--text-light);
  margin-bottom: 6px; letter-spacing: 0.03em; text-transform: uppercase;
}
.required { color: var(--rose); }
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], select, textarea {
  width: 100%;
  background: var(--card2);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px; font-weight: 400;
  padding: 12px 16px;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px var(--rose-dim);
}
textarea { resize: vertical; min-height: 80px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='rgba(245,242,255,0.4)' d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.char-count { font-size: 11px; color: var(--text-muted); text-align: right; margin-top: 4px; }

/* ─── Photo slots ───────────────────────────────────────── */
.photo-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.photo-slot {
  aspect-ratio: 3/4;
  background: var(--card2);
  border: 1.5px dashed var(--border-light);
  border-radius: var(--radius-sm);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.photo-slot.uploading { border-style: solid; }
.photo-slot-uploading { font-size: 11px; color: var(--text-muted); animation: pulse-glow 1.2s ease-in-out infinite; text-align: center; }
.photo-add-btn {
  background: none; border: none; cursor: pointer;
  font-size: 24px; color: var(--text-muted);
}
.photo-remove-btn {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  background: rgba(0,0,0,0.6); border: none; border-radius: 50%;
  color: #fff; font-size: 12px; cursor: pointer; display: grid; place-items: center;
}

/* ─── Pill selectors ────────────────────────────────────── */
.pill-selector { display: flex; flex-wrap: wrap; gap: 7px; }
.pill-opt {
  padding: 7px 14px; border-radius: 20px;
  background: var(--card2); border: 1.5px solid var(--border-light);
  color: var(--text-light); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.pill-opt.selected {
  background: var(--rose-dim);
  border-color: var(--rose);
  color: var(--rose-light);
}
.lifestyle-group { margin-bottom: 16px; }
.lifestyle-label {
  font-size: 13px; font-weight: 600; color: var(--text-light);
  margin-bottom: 8px; letter-spacing: 0.03em; text-transform: uppercase;
}

/* ─── Desires grid ──────────────────────────────────────── */
.desires-grid { display: flex; flex-wrap: wrap; gap: 7px; }

/* ─── Checkbox ──────────────────────────────────────────── */
.checkbox-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 400; color: var(--text-light); cursor: pointer;
}
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--rose); }

/* ─── Age gate ──────────────────────────────────────────── */
.age-gate-check { margin: 16px 0; }

/* ─── Welcome screen ────────────────────────────────────── */
.welcome-hero {
  text-align: center;
  padding: 48px 0 36px;
  position: relative;
}
.hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(232,53,122,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.emoji-stack {
  font-size: 72px;
  display: block;
  filter: drop-shadow(0 0 24px rgba(232,53,122,0.6));
  margin-bottom: 20px;
  animation: pulse-glow 3s ease-in-out infinite;
}
.hero-mark {
  width: 96px;
  height: auto;
  margin: 0 auto 20px;
}
@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(232,53,122,0.5)); }
  50%       { filter: drop-shadow(0 0 40px rgba(232,53,122,0.9)); }
}
.welcome-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: 46px; font-weight: 800; font-style: italic;
  line-height: 1.05; letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.welcome-hero p {
  font-size: 15px; font-weight: 200; color: var(--text-light);
  max-width: 280px; margin: 0 auto;
}

.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-item { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon { font-size: 28px; flex-shrink: 0; }
.feature-text strong { display: block; font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.feature-text span  { font-size: 13px; font-weight: 200; color: var(--text-light); line-height: 1.4; }

/* ─── Progress ──────────────────────────────────────────── */
.progress-label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-light); }
.progress-wrap { height: 6px; background: var(--border-light); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--rose); border-radius: 3px; transition: width 0.7s cubic-bezier(0.34,1.56,0.64,1); }

/* ─── Love Language Quiz ────────────────────────────────── */
.ll-quiz-header { text-align: center; padding: 20px 0 24px; }
.ll-quiz-icon { font-size: 48px; margin-bottom: 12px; }
.ll-quiz-progress-wrap { height: 4px; background: var(--border-light); border-radius: 2px; margin: 12px 0 6px; overflow: hidden; }
.ll-quiz-progress-bar { height: 100%; background: var(--rose); border-radius: 2px; transition: width 0.5s ease; }
.ll-quiz-progress-text { font-size: 12px; color: var(--text-muted); }
.ll-question { margin-bottom: 20px; font-size: 17px; font-weight: 800; line-height: 1.35; }
.ll-options { display: flex; flex-direction: column; gap: 10px; }
.ll-option {
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--card2); border: 1.5px solid var(--border-light);
  color: var(--text); font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: left; transition: all 0.15s;
}
.ll-option:active, .ll-option.selected {
  background: var(--rose-dim); border-color: var(--rose); color: var(--rose-light);
}

/* ─── LL Result ─────────────────────────────────────────── */
.ll-result-card { text-align: center; padding: 32px 0; }
.ll-result-emoji { font-size: 64px; margin-bottom: 16px; }
.ll-result-title { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.ll-result-bars { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.ll-bar-row { display: flex; align-items: center; gap: 10px; }
.ll-bar-label { width: 80px; font-size: 12px; font-weight: 600; color: var(--text-light); text-align: right; flex-shrink: 0; }
.ll-bar-track { flex: 1; height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.ll-bar-fill  { height: 100%; border-radius: 4px; transition: width 0.8s cubic-bezier(0.34,1.56,0.64,1); }
.ll-bar-pct   { width: 36px; font-size: 12px; font-weight: 800; color: var(--text); text-align: right; }
.ll-bar-fill.words { background: var(--ll-words); }
.ll-bar-fill.gifts { background: var(--ll-gifts); }
.ll-bar-fill.acts  { background: var(--ll-acts);  }
.ll-bar-fill.time  { background: var(--ll-time);  }
.ll-bar-fill.touch { background: var(--ll-touch); }

/* ─── Academy ───────────────────────────────────────────── */
.module-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer; transition: all 0.18s;
  position: relative;
}
.module-card:active { transform: scale(0.985); }
.module-card.done { border-color: var(--teal-border); }
.module-card.locked { opacity: 0.5; cursor: default; }
.module-icon { font-size: 32px; flex-shrink: 0; }
.module-info { flex: 1; min-width: 0; }
.module-title { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 3px; }
.module-sub   { font-size: 12px; font-weight: 200; color: var(--text-light); }
.module-badge { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 20px; margin-top: 6px; display: inline-block; }
.badge-pass { background: var(--teal-dim); color: var(--teal); }
.badge-try  { background: var(--rose-dim); color: var(--rose-light); }
.module-check { font-size: 20px; color: var(--teal); }

/* ─── Module detail / lessons ───────────────────────────── */
.lesson-item {
  background: var(--card2); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  transition: all 0.15s;
}
.lesson-item:active { transform: scale(0.98); }
.lesson-icon  { font-size: 22px; flex-shrink: 0; }
.lesson-title { font-size: 14px; font-weight: 600; }
.lesson-done  { margin-left: auto; color: var(--teal); font-size: 16px; }

/* ─── Quiz ──────────────────────────────────────────────── */
.quiz-header { margin-bottom: 20px; }
.quiz-question { font-size: 17px; font-weight: 800; line-height: 1.35; margin-bottom: 16px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--card2); border: 1.5px solid var(--border-light);
  color: var(--text); font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: left; transition: all 0.15s;
}
.quiz-option.correct  { background: var(--teal-dim); border-color: var(--teal); color: var(--teal); }
.quiz-option.wrong    { background: rgba(239,83,80,0.15); border-color: var(--danger); color: var(--danger); }
.quiz-option.selected { background: var(--rose-dim); border-color: var(--rose); }
.quiz-progress-wrap { height: 4px; background: var(--border-light); border-radius: 2px; margin-bottom: 16px; overflow: hidden; }
.quiz-progress-bar  { height: 100%; background: var(--rose); border-radius: 2px; transition: width 0.4s ease; }

/* ─── DISCOVER — full-bleed card ────────────────────────── */
#screen-discover {
  display: none;
}
#screen-discover.active {
  /* display:block is REQUIRED — it overrides `#screen-discover{display:none}`
     (ID specificity beats `.screen.active{display:block}`), so without a
     display here the screen stays hidden. height:100% + overflow-y:auto come
     from .screen, keeping this a scroll container bounded to its .app-main
     parent (which is overflow:hidden). Do NOT re-add min-height:100svh: that
     made the screen taller than .app-main, so its overflow was clipped by
     the parent instead of scrolling internally — Discover became
     unscrollable in portrait (small svh) and the Pass/Like buttons, which
     the bottom padding is sized to clear the floating nav pill, couldn't be
     reached. */
  display: block;
  padding: 0 0 calc(150px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.discover-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 10px;
}
.discover-title {
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 800; font-style: italic; letter-spacing: -0.03em;
}
.discover-topbar-right {
  display: flex; align-items: center; gap: 10px;
}
.discover-hint {
  font-size: 12px; font-weight: 800; color: var(--text-muted);
  background: var(--card2); border: 1px solid var(--border-light);
  padding: 4px 10px; border-radius: 20px;
}
.desires-filter-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--text-light); cursor: pointer;
}
.desires-filter-label input { accent-color: var(--rose); width: 14px; height: 14px; }

/* Card stack wrapper — leave room at bottom for fixed action buttons */
.card-stack {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0 0 8px;
}

/* Full-bleed swipe card */
.swipe-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  cursor: grab;
  will-change: transform;
  user-select: none;
}
.swipe-card:active { cursor: grabbing; }

/* Photo fills the card */
.swipe-photo-wrap {
  position: absolute; inset: 0;
}
.swipe-photo-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.swipe-photo-emoji {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 96px;
  background: linear-gradient(160deg, var(--bg3) 0%, var(--card) 100%);
}

/* Gradient overlay — info legible */
.swipe-photo-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(9,8,15,0.20) 55%,
    rgba(9,8,15,0.75) 78%,
    rgba(9,8,15,0.96) 100%
  );
}

/* Top badges */
.swipe-top-badges {
  position: absolute; top: 14px; left: 14px; right: 58px;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
  z-index: 5;
}
.online-badge {
  background: rgba(9,8,15,0.55); backdrop-filter: blur(8px);
  border: 1px solid var(--teal-border);
  color: var(--teal); font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 20px;
  letter-spacing: 0.04em;
}
/* Redesign v2: circular match-score badge (gradient disc) */
.compat-pill {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--rose);
  border: 2px solid rgba(245,242,255,0.22);
  color: #fff; font-size: 15px; font-weight: 800; line-height: 1;
  box-shadow: 0 6px 20px rgba(155,39,255,0.45);
}
.compat-pill small { font-size: 8px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.85; text-transform: uppercase; margin-top: 1px; }

/* Info at bottom of card */
.swipe-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 18px 20px;
  pointer-events: none;
}
.swipe-name {
  font-family: 'Fraunces', serif;
  font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.swipe-occupation {
  font-size: 14px; font-weight: 200; color: rgba(255,255,255,0.75);
  margin-top: 3px; margin-bottom: 10px;
}
.swipe-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.swipe-tag {
  padding: 4px 10px; border-radius: 20px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.85);
}

/* Info button inside card (top-right area) */
.swipe-info-btn {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(9,8,15,0.55); backdrop-filter: blur(8px);
  border: 1px solid var(--border-light); color: var(--text-light);
  cursor: pointer; display: grid; place-items: center;
  z-index: 5; pointer-events: auto;
}
.swipe-info-btn svg { display: block; }

/* Discover header with filter */
.discover-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 10px;
}
.discover-header-right {
  display: flex; align-items: center; gap: 10px;
}
.verify-unlock-hint {
  display: block; width: calc(100% - 40px); margin: 0 20px 10px;
  background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3);
  border-radius: 10px; color: #60a5fa; font-size: 13px; font-weight: 600;
  padding: 9px 14px; cursor: pointer; text-align: center;
  transition: background 0.18s;
}
.verify-unlock-hint:hover { background: rgba(59,130,246,0.22); }

/* Card info button */
.card-info-btn {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(9,8,15,0.55); backdrop-filter: blur(8px);
  border: 1px solid var(--border-light); color: var(--text-light);
  font-size: 16px; cursor: pointer;
  display: grid; place-items: center;
}

/* Swipe overlays */
.swipe-overlay-like,
.swipe-overlay-pass {
  position: absolute; top: 22px; padding: 6px 16px; border-radius: 8px;
  font-size: 22px; font-weight: 800; letter-spacing: 0.1em;
  opacity: 0; z-index: 10; pointer-events: none;
  border: 3px solid;
}
.swipe-overlay-like { right: 18px; color: var(--teal); border-color: var(--teal); transform: rotate(8deg); }
.swipe-overlay-pass { left: 18px; color: var(--rose); border-color: var(--rose); transform: rotate(-8deg); }

/* Action buttons — fixed above the floating nav pill */
.swipe-actions-external {
  position: fixed;
  bottom: calc(18px + 72px + 14px); /* nav bottom offset + nav height + gap */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  z-index: 35;
  pointer-events: auto;
}
.swipe-action-btn {
  width: 62px; height: 62px; border-radius: 50%; border: none;
  font-size: 22px; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  transition: transform 0.15s, box-shadow 0.15s;
}
.swipe-action-btn:active { transform: scale(0.88); }
.swipe-action-btn.pass {
  background: rgba(22,18,38,0.95);
  border: 1.5px solid rgba(239,83,80,0.45);
  color: var(--danger); font-size: 22px;
  box-shadow: 0 8px 28px rgba(239,83,80,0.18);
}
.swipe-action-btn.boost {
  width: 54px; height: 54px;
  background: var(--rose);
  color: #fff; font-size: 22px;
  box-shadow: 0 8px 28px rgba(155,39,255,0.35);
}
.swipe-action-btn.like {
  background: rgba(22,18,38,0.95);
  border: 1.5px solid rgba(232,53,122,0.45);
  color: var(--rose); font-size: 24px;
  box-shadow: 0 8px 28px rgba(232,53,122,0.18);
}

/* Action save button on card */
.card-save-btn {
  position: absolute; bottom: 90px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(9,8,15,0.55); backdrop-filter: blur(6px);
  color: var(--text-muted); font-size: 16px; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid var(--border-light);
}
.card-save-btn.active { color: var(--gold); }

/* ── Discover profile card (new tap-based design) ─────────── */
.discover-profile-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 60svh;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  margin: 0 16px;
  width: calc(100% - 32px);
}
.dpc-photo-wrap {
  position: absolute; inset: 0;
}
.dpc-photo-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.dpc-photo-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(9,8,15,0.20) 55%,
    rgba(9,8,15,0.80) 80%,
    rgba(9,8,15,0.97) 100%
  );
}
.dpc-top-badges {
  position: absolute; top: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none; z-index: 5;
}
.dpc-overlay-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 18px 20px;
  pointer-events: none;
}
.dpc-name {
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.dpc-occupation {
  font-size: 14px; font-weight: 200; color: rgba(255,255,255,0.75);
  margin-top: 3px; margin-bottom: 8px;
}

/* Locked card */
.locked-card {
  position: relative; border-radius: 24px; overflow: hidden;
  width: calc(100% - 32px); margin: 0 16px;
  aspect-ratio: 3/4; max-height: 60svh;
  background: linear-gradient(160deg, var(--bg3) 0%, #0d0b1a 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  box-shadow: var(--shadow-lg);
}
.locked-card-emoji { font-size: 64px; }
.locked-card-title {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 800;
  color: var(--text); text-align: center;
}
.locked-card-sub {
  font-size: 14px; color: var(--text-light); text-align: center;
  max-width: 240px; line-height: 1.5;
}

/* Discover action buttons */
/* ── Redesign v2: Electives — image-backed Majors & Minors grid ── */
.electives-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 6px;
}
.elective-card-v2 {
  border-radius: 20px; overflow: hidden; cursor: pointer;
  background: var(--card); border: 1px solid rgba(245,242,255,0.07);
  box-shadow: 0 8px 26px rgba(0,0,0,0.4);
  transition: transform 0.16s, box-shadow 0.16s;
  -webkit-tap-highlight-color: transparent;
}
.elective-card-v2:active { transform: scale(0.97); }
.elective-card-v2:hover  { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.5); }
.ec-cover {
  position: relative; height: 116px;
  display: flex; align-items: center; justify-content: center;
}
/* Gradient "cover" tints (stand-in for topic photography) */
.tint-teal .ec-cover { background: #0f766e; }
.tint-rose .ec-cover { background: #9d174d; }
.tint-gold .ec-cover { background: #7c5e10; }
.tint-lav  .ec-cover { background: #5b21b6; }
.ec-cover::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.14), transparent 70%);
}
.ec-icon-gold { position: relative; z-index: 1; color: var(--gold);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45)); }
.ec-icon-gold .ic { width: 40px; height: 40px; stroke-width: 1.6; }
.ec-lock {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  color: rgba(255,255,255,0.85);
  background: rgba(9,8,15,0.5); border-radius: 50%; padding: 5px;
  display: flex; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.elective-card-v2.locked .ec-cover { filter: saturate(0.5) brightness(0.7); }
.ec-body { padding: 12px 14px 15px; }
.ec-title {
  font-family: 'Fraunces', serif; font-weight: 800; font-size: 15px;
  line-height: 1.15; color: var(--text);
}
.ec-status {
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
  color: var(--text-muted); margin-top: 5px; text-transform: uppercase;
}
.ec-status-earned { color: var(--teal); }
.ec-status-gold   { color: var(--gold); }
.elective-card-v2.earned-major { border-color: rgba(244,185,66,0.4); }
.elective-card-v2.earned-minor { border-color: rgba(20,217,197,0.35); }

/* Teal "Explore Electives" CTA (reference) */
.btn.btn-teal-cta {
  background: #14D9C5;
  color: #04201d; font-weight: 800; border: none;
  box-shadow: 0 8px 26px rgba(20,217,197,0.34);
}
.btn.btn-teal-cta:hover { filter: brightness(1.06); }

/* ── Redesign v2: academy module card icons ──────────────── */
.module-card .module-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  background: rgba(245,242,255,0.05); color: var(--rose-light);
}
.module-card.completed .module-icon { color: var(--teal); background: var(--teal-dim); }
.module-card.locked .module-icon { color: var(--text-muted); }
.module-card .module-icon.ic-gold { color: var(--gold); background: var(--gold-dim); }
.module-card .module-icon.ic-teal { color: var(--teal); background: var(--teal-dim); }
.module-status { display: flex; align-items: center; justify-content: center; }
.ms-done { color: var(--teal); } .ms-play { color: var(--rose); }
.ms-lock { color: var(--text-muted); } .ms-gold { color: var(--gold); }

/* ── Redesign v2: header pills with inline icons ─────────── */
.header-pills .pill { display: inline-flex; align-items: center; gap: 5px; }
.level-pill  .ic { color: var(--lavender); }
.streak-pill .ic { color: #FF8A3D; }
.pearl-pill  .ic { color: var(--teal); }

/* ── Redesign v2: inline icon colors ─────────────────────── */
.ic { display: inline-block; vertical-align: -0.15em; pointer-events: none; }
/* Icon tiles / flex-centered controls keep their own layout */
.discover-action-btn .ic, .module-icon .ic, .ec-icon-gold .ic,
.profile-stat .ic, .settings-row-icon .ic, .empty-emoji .ic,
.chat-action-btn .ic, .match-grid-chat-btn .ic, .pv-action-row .ic,
.dpc-lock-overlay .ic { display: block; vertical-align: baseline; }
.ic-gold  { color: var(--gold); }
.ic-lav   { color: var(--lavender); }
.ic-flame { color: #FF8A3D; }
.ic-rose  { color: var(--rose); }
.ic-teal  { color: var(--teal); }

/* ── Redesign v2: profile stat grid ──────────────────────── */
.profile-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 4px 0 16px;
}
.profile-stat {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 14px; border-radius: 16px;
  background: var(--card); border: 1px solid rgba(245,242,255,0.07);
}
.profile-stat.stat-gold {
  border-color: rgba(244,185,66,0.4);
  background: var(--card);
}
.profile-stat-ic { display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-light); }
.profile-stat-body { display: flex; flex-direction: column; min-width: 0; }
.profile-stat-val {
  font-family: 'Fraunces', serif; font-weight: 800; font-size: 16px; line-height: 1.1;
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-stat-lbl {
  font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Redesign v2: settings as list rows ──────────────────── */
.settings-list {
  display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  background: var(--card); border: 1px solid rgba(245,242,255,0.07);
  margin-top: 14px;
}
.settings-row {
  display: flex; align-items: center; gap: 13px;
  width: 100%; text-align: left; cursor: pointer;
  padding: 15px 16px; border: none; background: none;
  color: var(--text); font: inherit; font-size: 15px; font-weight: 500;
  border-bottom: 1px solid rgba(245,242,255,0.05);
  transition: background 0.15s;
}
.settings-row:last-child { border-bottom: none; }
.settings-row:active { background: rgba(245,242,255,0.04); }
.settings-ic { display: flex; align-items: center; justify-content: center; width: 22px; flex-shrink: 0; color: var(--rose-light); }
.settings-lbl { flex: 1; }
.settings-row::after {
  content: '›'; font-size: 20px; color: var(--text-muted);
  font-weight: 400; line-height: 1;
}
.settings-danger { color: #ff6b6b; }
.settings-danger .settings-ic { filter: grayscale(0); }

/* ── Redesign v2: floating circular action buttons ───────── */
.discover-actions {
  display: flex; justify-content: center; align-items: center;
  gap: 26px; padding: 22px 20px 8px;
}
.discover-action-btn {
  width: 60px; height: 60px; border-radius: 50%; border: none;
  padding: 0; font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.16s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.16s;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.discover-action-btn:active { transform: scale(0.9); }
.discover-action-btn:hover  { transform: translateY(-2px); }
.discover-action-btn.pass {
  background: rgba(28,22,46,0.85);
  border: 1.5px solid rgba(245,242,255,0.14);
  color: rgba(245,242,255,0.72);
  box-shadow: 0 8px 26px rgba(0,0,0,0.4);
}
.discover-action-btn.pass:hover { border-color: rgba(239,83,80,0.55); color: var(--danger); }
/* The like is the hero: larger, gradient-filled, glowing. */
.discover-action-btn.like {
  width: 74px; height: 74px; font-size: 30px;
  background: var(--rose);
  color: #fff;
  box-shadow: 0 10px 34px rgba(232,53,122,0.5), 0 0 0 6px rgba(232,53,122,0.10);
}
.discover-action-btn.request {
  background: rgba(22,18,38,0.95);
  border: 1.5px solid rgba(155,39,255,0.45);
  color: #9B27FF; font-size: 14px;
  box-shadow: 0 6px 24px rgba(155,39,255,0.18);
}
.discover-action-btn.request.pending {
  opacity: 0.55; cursor: default;
}

/* Legacy compat-badge */
.compat-badge {
  position: absolute; top: 14px; right: 14px;
  background: rgba(9,8,15,0.65); backdrop-filter: blur(8px);
  border: 1px solid var(--rose-border);
  color: var(--rose-light); font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 20px;
}

/* Legacy profile-card (locked) */
.profile-card {
  position: relative;
  border-radius: 24px; overflow: hidden;
  aspect-ratio: 9/13.5;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.profile-photo {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  overflow: hidden;
}
.profile-photo-img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-emoji { font-size: 72px; }
.locked-photo {
  font-size: 72px; opacity: 0.25;
  background: var(--card);
}
.lock-overlay {
  position: absolute; inset: 0;
  background: rgba(9,8,15,0.75); backdrop-filter: blur(16px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.lock-overlay-icon { font-size: 48px; }
.lock-overlay-text { font-size: 16px; font-weight: 600; color: var(--text-light); }
.profile-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 18px 90px;
  background: linear-gradient(to top, rgba(9,8,15,0.95) 0%, transparent 100%);
}
.profile-body h2 { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.profile-bio { font-size: 13px; font-weight: 200; color: var(--text-light); margin-top: 4px; }
.profile-prompt { font-size: 13px; font-style: italic; color: var(--text-muted); margin-top: 6px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.profile-tag {
  padding: 4px 10px; border-radius: 20px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.14);
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.8);
}
.ll-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 800;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}
.ll-badge-row { margin-top: 4px; }
.couple-badge { background: rgba(155,39,255,0.2); border-color: rgba(155,39,255,0.4); color: #c084fc; }
.play-partner-tag { background: var(--rose-dim); border-color: var(--rose-border); color: var(--rose-light); }
.advanced-badge { font-size: 14px; }
.verified-badge { font-size: 14px; display: inline-flex; align-items: center; gap: 3px; background: rgba(59,130,246,0.18); color: #60a5fa; border: 1px solid rgba(59,130,246,0.35); border-radius: 6px; padding: 1px 6px; font-size: 12px; font-weight: 600; vertical-align: middle; }
.profile-info-btn {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(9,8,15,0.55); backdrop-filter: blur(8px);
  border: 1px solid var(--border-light); color: var(--text-light);
  font-size: 16px; cursor: pointer;
  display: grid; place-items: center;
}

/* Discover empty state */
.empty-stack {
  text-align: center; padding: 60px 20px;
}
.empty-emoji { font-size: 56px; margin-bottom: 16px; }
.empty-stack h2 { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.empty-stack p { font-size: 14px; font-weight: 200; color: var(--text-light); }
.discover-tips { list-style: none; text-align: left; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.discover-tips li { font-size: 14px; color: var(--text-light); line-height: 1.5; font-weight: 200; }
.tip-link { background: none; border: none; color: var(--rose-light); font-weight: 800; cursor: pointer; text-decoration: underline; font-size: inherit; padding: 0; display: inline; }

/* Ping / rating hint */
.swipe-hint { display: none; }
.likes-remaining-pill {
  font-size: 11px; font-weight: 800; color: var(--rose-light);
  background: var(--rose-dim); border: 1px solid var(--rose-border);
  padding: 4px 10px; border-radius: 20px;
}

/* Private mode banner */
.private-mode-banner {
  background: var(--rose-dim); border-bottom: 1px solid var(--rose-border);
  color: var(--rose-light); font-size: 12px; font-weight: 600;
  padding: 8px 20px; text-align: center;
}

/* ─── MATCHES ───────────────────────────────────────────── */
#screen-matches { padding: 0 0 calc(140px + env(safe-area-inset-bottom, 16px)); }

.matches-page { display: flex; flex-direction: column; }

.matches-tabbar {
  display: flex; gap: 0;
  padding: 18px 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.matches-tab {
  font-size: 15px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--text-muted); padding: 0 0 12px; margin-right: 24px;
  cursor: pointer; border-bottom: 2.5px solid transparent; transition: all 0.18s;
}
.matches-tab.active { color: var(--text); border-bottom-color: var(--rose); }

/* Active matches row */
.new-matches-row {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 18px 20px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

/* 2-column photo grid — see bottom of file for full .match-grid-* rules */
.new-matches-row::-webkit-scrollbar { display: none; }

.new-match-bubble {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  scroll-snap-align: start; flex-shrink: 0; cursor: pointer;
}
.new-match-ring {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2.5px solid var(--rose);
  padding: 2px; overflow: hidden;
  box-shadow: 0 0 16px rgba(232,53,122,0.30);
}
.new-match-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.new-match-emoji {
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card2); font-size: 28px;
}
.new-match-name { font-size: 11px; font-weight: 600; color: var(--text-muted); }

/* Matches page section labels */
.matches-section-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); padding: 20px 20px 0;
}

/* Search bar */
.matches-search-wrap {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 16px 4px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 10px 14px;
  color: var(--text-muted);
}
.matches-search-input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 14px; color: var(--text-light);
  font-family: 'Bricolage Grotesque', sans-serif;
}
.matches-search-input::placeholder { color: var(--text-muted); }

/* Messages section */
.messages-section { display: flex; flex-direction: column; padding: 0 20px; }
.messages-section-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); padding: 12px 0 6px;
}

/* Message avatar variants */
.message-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

.message-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: opacity 0.15s;
}
.message-row:active { opacity: 0.7; }
.message-row:last-child { border-bottom: none; }

.message-avatar-wrap { position: relative; flex-shrink: 0; }
.message-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--card2); overflow: hidden;
  display: grid; place-items: center; font-size: 26px;
}
.message-avatar img { width: 100%; height: 100%; object-fit: cover; }
.message-unread-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--rose);
  border: 2px solid var(--bg);
}

.message-body { flex: 1; min-width: 0; }
.message-name-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.message-name {
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text-light);
}
.message-time {
  font-size: 11px; color: var(--text-muted); flex-shrink: 0;
}
.message-preview-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 3px;
}
.message-preview {
  font-size: 13px; font-weight: 400; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
}
.unread-count {
  min-width: 20px; height: 20px; border-radius: 10px;
  background: var(--rose); color: #fff;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px; flex-shrink: 0;
}
.message-time { font-size: 11px; font-weight: 600; color: var(--text-muted); flex-shrink: 0; }
.unread-count {
  background: var(--rose); color: #fff;
  font-size: 11px; font-weight: 800;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
}

/* Legacy match-item (kept for partial compat) */
.match-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}
.match-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--card2); display: grid; place-items: center; font-size: 26px;
  overflow: hidden; flex-shrink: 0;
}
.match-info { flex: 1; min-width: 0; }
.match-info h3 { font-size: 15px; font-weight: 800; }
.match-info p  { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-info-btn {
  background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-muted); flex-shrink: 0;
}
.match-unread .match-info h3 { color: var(--text); }
.ping-badge { font-size: 14px; }
.unread-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--rose); margin-left: 2px; vertical-align: middle;
}

/* Saved profiles */
.saved-profile-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border-light); cursor: pointer;
}
.saved-profile-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; font-size: 22px; }
.saved-profile-name { flex: 1; font-size: 14px; font-weight: 600; }

/* Unmatch section */
.unmatched-section { margin-top: 12px; }
.unmatched-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.unmatched-avatar { font-size: 28px; }
.unmatched-info { flex: 1; font-size: 13px; color: var(--text-muted); }
.unmatch-recover-btn { font-size: 12px; color: var(--rose-light); background: none; border: none; cursor: pointer; }

/* Weekly check-in */
.check-in-banner {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-light);
  border-radius: 12px; padding: 12px 16px; margin: 12px 20px 0;
  font-size: 13px; font-weight: 200; color: rgba(245,242,255,0.55); line-height: 1.4;
}
.check-in-banner strong { font-weight: 600; color: var(--teal); }

/* ─── CHAT ──────────────────────────────────────────────── */
#screen-chat { display: none; }
#screen-chat.active { padding: 0; display: flex; flex-direction: column; }

.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: rgba(9,8,15,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0; z-index: 20;
}
.chat-header-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card2); display: grid; place-items: center;
  font-size: 22px; flex-shrink: 0; overflow: hidden;
}
.chat-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-header-info { flex: 1; }
.chat-header-info h3 { font-size: 16px; font-weight: 800; }
.chat-header-info p  { font-size: 12px; font-weight: 200; color: var(--text-muted); }
.chat-coupon-btn { background: none; border: none; font-size: 22px; cursor: pointer; }

.chat-container { flex: 1; display: flex; flex-direction: column; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px 16px calc(80px + env(safe-area-inset-bottom, 20px));
  display: flex; flex-direction: column; gap: 8px;
}
.chat-bubble {
  max-width: 78%; padding: 10px 14px; border-radius: 18px;
  font-size: 14px; font-weight: 400; line-height: 1.45;
  word-break: break-word;
}
.chat-bubble.me   { background: var(--rose); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.chat-bubble.them { background: var(--card2); color: var(--text); align-self: flex-start; border-bottom-left-radius: 5px; border: 1px solid var(--border-light); }
.chat-bubble.system { background: none; color: var(--text-muted); font-size: 12px; font-style: italic; text-align: center; align-self: center; border: none; max-width: 100%; }
.chat-bubble.ephemeral-expired { background: var(--card2); color: var(--text-muted); font-size: 13px; }

.icebreaker-card {
  background: var(--teal-dim); border: 1px solid var(--teal-border);
  border-radius: var(--radius-sm); padding: 14px; margin-bottom: 8px;
}
.icebreaker-label { font-size: 11px; font-weight: 800; color: var(--teal); margin-bottom: 4px; }
.icebreaker-text  { font-size: 14px; font-weight: 400; line-height: 1.4; }

.chat-icebreakers { margin-bottom: 12px; }
.chat-ice-label { font-size: 12px; font-weight: 800; color: var(--text-muted); margin-bottom: 8px; }
.chat-ice-btn {
  display: block; width: 100%; text-align: left; padding: 10px 14px; margin-bottom: 6px;
  background: var(--card2); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  color: var(--text-light); font-size: 13px; font-weight: 400; cursor: pointer;
}

.chat-input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(9,8,15,0.90); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
}
.chat-img-btn {
  font-size: 22px; cursor: pointer; flex-shrink: 0; color: var(--text-muted);
  display: grid; place-items: center;
}
#chat-input {
  flex: 1; background: var(--card2);
  border: 1.5px solid var(--border-light); border-radius: 22px;
  padding: 10px 16px; font-size: 14px; color: var(--text);
  outline: none;
}
#chat-input:focus { border-color: var(--rose); }
#chat-send {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--rose); color: #fff; font-size: 16px;
  cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(232,53,122,0.40); flex-shrink: 0;
}

/* Ephemeral image */
.ephemeral-bubble { max-width: 78%; }
.ephemeral-bubble.me   { align-self: flex-end; }
.ephemeral-bubble.them { align-self: flex-start; }
.ephemeral-img-wrap {
  border-radius: 14px; overflow: hidden;
  border: 2px solid var(--rose-border);
}
.ephemeral-img { width: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-select: none; }
.ephemeral-timer { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 4px; }
.screenshot-protect { -webkit-user-select: none; }
#screenshot-guard {
  display: none; position: fixed; inset: 0;
  background: var(--bg); z-index: 9999;
}
#screenshot-guard.active { display: block; }

/* ─── PROFILE VIEW (card detail) ───────────────────────── */
.pv-carousel-wrap {
  width: 100%; position: relative;
  border-radius: 0; overflow: hidden;
  margin-bottom: 0;
  aspect-ratio: 3/4;
}
.pv-carousel {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; height: 100%;
}
.pv-carousel::-webkit-scrollbar { display: none; }
.pv-carousel-slide {
  flex: 0 0 100%; scroll-snap-align: start;
  position: relative;
}
.pv-carousel-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px;
}
.pv-dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.35); transition: all 0.2s; }
.pv-dot.active { background: #fff; width: 18px; }

/* Profile view body */
.pv-back-row { padding: 12px 18px 0; }
.pv-back-btn {
  background: var(--card2); border: 1px solid var(--border-light);
  color: var(--text-light); border-radius: 20px; padding: 6px 14px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.pv-body { padding: 20px 18px; }
.pv-compat-score { font-size: 15px; font-weight: 700; color: var(--text); margin: 4px 0 12px; }
.pv-message-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin: 12px 0 10px;
  padding: 14px 20px; border-radius: 30px; border: none;
  background: var(--rose);
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 24px rgba(232,53,122,0.40);
}
.pv-message-btn:active { transform: scale(0.97); }
.pv-action-row {
  display: flex; gap: 10px; padding: 0 18px 14px;
}
.pv-name  { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.pv-sub   { font-size: 14px; font-weight: 200; color: var(--text-light); margin-top: 2px; }
.pv-tags  { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.pv-tag   { padding: 5px 12px; border-radius: 20px; background: var(--card2); border: 1px solid var(--border-light); font-size: 12px; font-weight: 600; color: var(--text-light); }
.pv-bio   { font-size: 14px; font-weight: 200; color: var(--text-light); line-height: 1.55; }
.pv-section-title { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 18px 0 8px; }
.pv-prompt {
  background: var(--card2); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 14px;
  font-size: 14px; font-style: italic; color: var(--text-light); line-height: 1.45;
  margin-bottom: 10px;
}
.pv-prompt-q { font-size: 11px; font-weight: 800; color: var(--rose-light); margin-bottom: 4px; font-style: normal; }
.pv-ll-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pv-ll-label { width: 70px; font-size: 12px; font-weight: 600; color: var(--text-light); flex-shrink: 0; }
.pv-ll-track { flex: 1; height: 6px; background: var(--border-light); border-radius: 3px; overflow: hidden; }
.pv-ll-fill  { height: 100%; border-radius: 3px; }
.pv-actions  { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.pv-info { padding: 16px 18px 4px; }
.pv-lifestyle-grid { display: flex; flex-direction: column; gap: 0; }
.pv-lifestyle-pill {
  display: flex; align-items: baseline; gap: 8px;
  padding: 9px 0; border-bottom: 1px solid var(--border-light);
}
.pv-lifestyle-pill:last-child { border-bottom: none; }
.pv-lifestyle-label { font-size: 13px; color: var(--text-muted); font-weight: 600; min-width: 130px; flex-shrink: 0; }
.pv-lifestyle-val   { font-size: 14px; color: var(--text); font-weight: 500; }
.pv-prompt-card { margin-bottom: 14px; }
.pv-prompt-card:last-child { margin-bottom: 0; }
.pv-prompt-label { font-size: 12px; font-weight: 800; color: var(--rose-light); letter-spacing: 0.02em; margin-bottom: 4px; text-transform: uppercase; }
.pv-prompt-answer { font-size: 14px; color: var(--text-light); line-height: 1.55; }
.pv-opening-prompt { font-size: 15px; font-style: italic; color: var(--text-light); line-height: 1.55; }
.pv-lifestyle-chip { padding: 6px 12px; border-radius: 20px; background: var(--card2); border: 1px solid var(--border-light); font-size: 12px; font-weight: 600; color: var(--text-light); }

/* ─── PROFILE (own) ─────────────────────────────────────── */
.profile-hero { position: relative; margin-bottom: 0; }
.profile-user-carousel-wrap {
  width: 100%; aspect-ratio: 4/5;
  position: relative; overflow: hidden;
}
.profile-user-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 18px 20px;
  background: linear-gradient(to top, rgba(9,8,15,0.95) 0%, transparent 100%);
}
.profile-user-name  { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.profile-user-sub   { font-size: 13px; font-weight: 200; color: var(--text-light); margin-top: 2px; }
.profile-edit-btn {
  position: absolute; top: 14px; right: 14px;
  background: rgba(9,8,15,0.65); backdrop-filter: blur(8px);
  border: 1px solid var(--border-light); border-radius: 22px;
  padding: 7px 14px; font-size: 13px; font-weight: 800; color: var(--text);
  cursor: pointer;
}

.profile-stats {
  display: flex; gap: 0;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 16px;
}
.stat-block {
  flex: 1; text-align: center; padding: 16px 8px;
  border-right: 1px solid var(--border-light);
}
.stat-block:last-child { border-right: none; }
.stat-value { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.stat-label { font-size: 11px; font-weight: 200; color: var(--text-muted); margin-top: 2px; }

.profile-tab-bar {
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  margin-bottom: 16px;
}
.profile-tab-bar::-webkit-scrollbar { display: none; }
.profile-tab {
  flex-shrink: 0; padding: 10px 16px;
  font-size: 13px; font-weight: 800; color: var(--text-muted);
  border-bottom: 2.5px solid transparent; cursor: pointer;
  white-space: nowrap; transition: all 0.18s;
}
.profile-tab.active { color: var(--rose); border-bottom-color: var(--rose); }

/* ─── Modals ─────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(9,8,15,0.85); backdrop-filter: blur(16px);
  align-items: flex-end; justify-content: center;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.22s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  background: var(--card2);
  border: 1px solid var(--border-light);
  border-radius: 28px 28px 0 0;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
  width: 100%; max-width: 480px;
  animation: slideUp 0.28s cubic-bezier(0.34,1.56,0.64,1);
  max-height: 85vh; overflow-y: auto;
}
@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-card h2 { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; text-align: center; }
.modal-card p  { font-size: 14px; font-weight: 200; color: var(--text-light); text-align: center; margin-bottom: 18px; line-height: 1.5; }

.match-modal-card { text-align: center; }
.match-burst { font-size: 64px; margin-bottom: 12px; filter: drop-shadow(0 0 24px rgba(232,53,122,0.6)); animation: pulse-glow 2s ease-in-out infinite; }
.match-modal-avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--card2); display: grid; place-items: center;
  overflow: hidden; border: 2px solid var(--border-light);
}
.match-modal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.match-modal-avatar-img { width: 100%; height: 100%; object-fit: cover; }

.levelup-card { text-align: center; }
.levelup-emoji { font-size: 56px; margin-bottom: 12px; }

.coupon-modal-card { }
.coupon-modal-sub { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 16px; }
#coupon-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

/* ─── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: var(--card2); border: 1px solid var(--border-light);
  border-radius: 24px; padding: 10px 20px;
  font-size: 14px; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
  z-index: 300; white-space: nowrap; max-width: 90vw;
}
.toast.visible { opacity: 1; }

/* ─── Upgrade / Tier cards ───────────────────────────────── */
.upgrade-pitch { margin-bottom: 16px; }
.upgrade-pitch-headline {
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 800; font-style: italic;
  letter-spacing: -0.02em; margin-bottom: 6px;
}
.upgrade-pitch-body { font-size: 13px; font-weight: 200; color: var(--text-light); line-height: 1.5; }
/* Reassurance shown only to an existing subscriber, whose Platinum button is a
   plan change rather than a second purchase. */
.upgrade-pitch-note {
  margin-top: 8px; font-size: 12px; font-weight: 300; line-height: 1.5;
  color: var(--teal); background: var(--teal-dim);
  border: 1px solid var(--teal-border); border-radius: 10px; padding: 8px 10px;
}

.tier-comparison { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.tier-card {
  background: var(--card); border: 1.5px solid var(--border-light);
  border-radius: var(--radius); overflow: hidden;
  position: relative;
}
.tier-card.platinum-upgrade-card { border-color: var(--gold); }
.tier-card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-light);
}
.tier-card-icon { font-size: 28px; }
.tier-card-header h3 { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 800; }
.tier-card-header .price { font-size: 13px; font-weight: 200; color: var(--text-light); }
.tier-card ul { list-style: none; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.tier-card li { font-size: 13px; font-weight: 400; color: var(--text-light); display: flex; gap: 8px; }
.tier-card li::before { content: "✓"; color: var(--teal); font-weight: 800; flex-shrink: 0; }
.paid-tier-card { position: relative; }
.platinum-upgrade-card .tier-card-header { padding-right: 120px; }
.best-value-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold); color: #000;
  font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.current-tier-banner {
  background: var(--teal-dim); border-top: 1px solid var(--teal-border);
  color: var(--teal); font-size: 13px; font-weight: 800;
  padding: 10px 14px; display: flex; align-items: center; gap: 8px;
}
.current-tier-banner.platinum-banner { background: rgba(244,185,66,0.1); border-color: rgba(244,185,66,0.3); color: var(--gold); }
.current-tier-banner span { font-weight: 300; opacity: 0.85; }
.tier-banner-icon { font-size: 20px; }

/* Membership level, shown beside a member's name — theirs and your own.
   Premium reads in the teal used for the current-tier banner; Platinum in gold,
   matching the Platinum card and button so the two levels stay distinguishable
   at a glance across Discover, the profile view and your own header. */
.member-badge {
  display: inline-flex; align-items: center; gap: 3px; vertical-align: middle;
  font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.member-badge-premium  { background: var(--teal-dim); color: var(--teal); border: 1px solid var(--teal-border); }
.member-badge-platinum { background: rgba(244,185,66,0.12); color: var(--gold); border: 1px solid rgba(244,185,66,0.3); }
.btn-platinum { background: var(--gold); color: #000; }
.btn-platinum:active { transform: scale(0.97); }
#btn-upgrade-platinum, #btn-upgrade-paid {
  cursor: pointer;
}

/* ─── Certificate ───────────────────────────────────────── */
.cert-card {
  background: linear-gradient(135deg, var(--card) 0%, var(--card2) 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius); padding: 28px; text-align: center;
  margin-bottom: 20px; position: relative; overflow: hidden;
}
.cert-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(244,185,66,0.08), transparent 70%);
  pointer-events: none;
}
.cert-emoji  { font-size: 56px; margin-bottom: 12px; }
.cert-title  { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.cert-sub    { font-size: 13px; font-weight: 200; color: var(--text-light); margin: 6px 0 16px; }
.cert-name   { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 800; color: var(--gold); margin-bottom: 6px; }
.cert-date   { font-size: 12px; font-weight: 200; color: var(--text-muted); }
.cert-seal   { font-size: 48px; margin-top: 16px; }

/* Redesigned certificate card (Phase 4) */
.cert-card-v2 {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(167,149,221,0.16), transparent 60%),
    linear-gradient(160deg, #14101f 0%, #0c0a14 100%);
  border: 1.5px solid rgba(244,185,66,0.55);
  box-shadow: 0 0 0 5px #0c0a14, 0 0 0 6px rgba(167,149,221,0.25), 0 18px 44px rgba(0,0,0,0.45);
  padding: 30px 24px 26px;
}
.cert-card-v2 .cert-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: #a795dd; margin: 12px 0 20px;
}
.cert-card-v2 .cert-vesica { display: block; margin: 0 auto; filter: drop-shadow(0 0 18px rgba(167,149,221,0.35)); }
.cert-card-v2 .cert-wordmark { display: block; margin: 12px auto 20px; height: 26px; width: auto; }
.cert-card-v2 .cert-awarded-to { font-size: 13px; font-weight: 200; color: var(--text-light); margin-bottom: 8px; }
.cert-card-v2 .cert-name  { font-size: 30px; color: #f4ecff; letter-spacing: -0.01em; margin-bottom: 10px; }
.cert-card-v2 .cert-title { font-size: 19px; color: var(--gold); margin-bottom: 14px; }
.cert-card-v2 .cert-body  { font-size: 13px; font-weight: 200; line-height: 1.65; color: var(--text-light); margin-bottom: 18px; }
.cert-founding {
  display: inline-block; margin: 0 auto 16px; padding: 7px 18px;
  border: 1px solid rgba(244,185,66,0.5); border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--gold); background: rgba(244,185,66,0.08);
}
.cert-rule { height: 1px; background: linear-gradient(90deg, transparent, rgba(244,185,66,0.5), transparent); }
.cert-rule-top { margin-bottom: 20px; }
.cert-rule-bottom { margin-top: 20px; }
.cert-meta {
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px dashed var(--border-light); margin-bottom: 4px;
}
.cert-meta > div { display: flex; flex-direction: column; gap: 2px; min-width: 80px; }
.cert-meta span   { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.cert-meta strong { font-size: 13px; font-weight: 800; color: var(--text); }
.cert-specializations { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cert-spec-tag {
  padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 800;
  background: var(--card2); border: 1px solid var(--border-light); color: var(--text-light);
}
.cert-spec-tag.major { border-color: rgba(244,185,66,0.4); color: var(--gold); background: rgba(244,185,66,0.08); }
.cert-spec-tag.minor { border-color: rgba(167,149,221,0.4); color: #b7a8e8; background: rgba(167,149,221,0.08); }

/* ─── Kink test ─────────────────────────────────────────── */
.kink-intro-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 24px; text-align: center; margin-bottom: 16px;
}
.kink-section-header { font-size: 16px; font-weight: 800; color: var(--text); margin: 18px 0 10px; }
.kink-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.kink-item-label { font-size: 14px; font-weight: 400; color: var(--text); max-width: 55%; }
.kink-rating-btns { display: flex; gap: 6px; }
.kink-rating-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--card2); border: 1.5px solid var(--border-light);
  font-size: 14px; cursor: pointer; transition: all 0.15s;
  display: grid; place-items: center;
}
.kink-rating-btn.selected { background: var(--rose-dim); border-color: var(--rose); }
.kink-results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.kink-result-chip {
  background: var(--card2); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 14px;
  font-size: 13px; font-weight: 600; text-align: center;
}
.kink-result-chip.high { border-color: var(--rose-border); background: var(--rose-dim); color: var(--rose-light); }

/* ─── Expert Library ────────────────────────────────────── */
.library-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.book-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 16px; cursor: pointer;
  transition: all 0.18s;
}
.book-card:active { transform: scale(0.97); }
.book-cover { font-size: 36px; margin-bottom: 10px; }
.book-title { font-size: 14px; font-weight: 800; line-height: 1.2; margin-bottom: 4px; }
.book-author { font-size: 12px; font-weight: 200; color: var(--text-muted); }

/* ─── Therapists ────────────────────────────────────────── */
/* Filter chips */
.therapist-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.therapist-chips::-webkit-scrollbar { display: none; }
.therapist-chip {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 20px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  color: var(--text-light); font-size: 12px; font-weight: 700; white-space: nowrap;
  cursor: pointer; transition: all 0.15s;
}
.therapist-chip.active {
  background: var(--teal-dim); border-color: var(--teal); color: var(--teal);
}

/* Card — vertical stack (was incorrectly flex-row) */
.therapist-card {
  display: block;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
}
.therapist-card-header {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px;
}
.therapist-avatar {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-dim); color: var(--teal);
}
.therapist-avatar svg { width: 24px; height: 24px; }
.therapist-card-info { flex: 1 1 auto; min-width: 0; }
.therapist-name   { font-size: 16px; font-weight: 800; margin-bottom: 4px; line-height: 1.2; }
.therapist-featured-badge {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px;
  padding: 3px 9px; border-radius: 20px;
  background: rgba(244,185,66,0.14); border: 1px solid rgba(244,185,66,0.35);
  color: var(--gold); font-size: 11px; font-weight: 800;
}
.therapist-featured-badge svg { width: 12px; height: 12px; }
.therapist-location {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 400; color: var(--text-light);
}
.therapist-location svg { width: 13px; height: 13px; flex: 0 0 auto; }

/* Specialty + module pills */
.therapist-specialties, .therapist-modules {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0;
}
.therapist-specialty-pill {
  padding: 5px 11px; border-radius: 20px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.82);
}
.therapist-module-pill {
  padding: 5px 11px; border-radius: 20px;
  background: rgba(167,149,221,0.12); border: 1px solid rgba(167,149,221,0.30);
  font-size: 11px; font-weight: 600; color: var(--lavender);
}
.therapist-approach {
  font-size: 13px; font-weight: 300; line-height: 1.5;
  color: var(--text-light); margin: 10px 0;
}
.therapist-modules-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 12px;
}
.therapist-disclaimer {
  font-size: 11px; font-weight: 300; line-height: 1.5;
  color: var(--text-muted); margin-top: 16px; padding: 0 4px;
}

/* ─── Electives ─────────────────────────────────────────── */
.elective-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 18px; margin-bottom: 12px;
  cursor: pointer; transition: all 0.18s;
}
.elective-card.unlocked:active { transform: scale(0.98); }
.elective-card.locked-elective { opacity: 0.45; cursor: default; }
.elective-icon  { font-size: 32px; margin-bottom: 10px; }
.elective-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.elective-sub   { font-size: 13px; font-weight: 200; color: var(--text-light); }
.elective-badge { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 800; }
.elective-badge.completed { background: var(--teal-dim); color: var(--teal); }
.elective-badge.locked-badge { background: var(--card2); color: var(--text-muted); }
.platinum-badge { background: rgba(244,185,66,0.15); color: var(--gold); }

/* ─── Locked screen ─────────────────────────────────────── */
.locked-screen {
  text-align: center; padding: 48px 20px;
}
.locked-screen-icon { font-size: 56px; margin-bottom: 16px; }
.locked-screen h2 { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.locked-screen p  { font-size: 14px; font-weight: 200; color: var(--text-light); margin-bottom: 24px; line-height: 1.5; }
.locked-screen .readiness-bar-wrap { height: 6px; background: var(--border-light); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.locked-screen .readiness-bar { height: 100%; background: var(--rose); border-radius: 3px; transition: width 0.7s; }
.locked-screen .readiness-label { font-size: 12px; font-weight: 800; color: var(--text-muted); margin-bottom: 20px; }

/* ─── Confetti ───────────────────────────────────────────── */
#confetti-container { position: fixed; inset: 0; pointer-events: none; z-index: 500; }
.confetti-piece {
  position: absolute; width: 10px; height: 10px; border-radius: 2px;
  animation: confetti-fall 1.8s ease-in forwards;
  transform-origin: center;
}
@keyframes confetti-fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ─── Couples cert / exam ────────────────────────────────── */
.couples-cert-card {
  background: rgba(232,53,122,0.12);
  border: 2px solid rgba(155,39,255,0.35);
  border-radius: var(--radius); padding: 24px; text-align: center; margin-bottom: 16px;
}

/* ─── Prompts ────────────────────────────────────────────── */
.prompt-pair { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.prompt-pair select { margin-bottom: 4px; }
.remove-prompt-btn {
  align-self: flex-end; background: none; border: none;
  color: var(--danger); font-size: 13px; cursor: pointer; padding: 0;
}

/* ─── Admin ──────────────────────────────────────────────── */
.admin-section { margin-bottom: 20px; }
.admin-section h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }

/* ─── Analytics card ─────────────────────────────────────── */
.analytics-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 18px; margin-bottom: 12px;
}
.analytics-stats { display: flex; gap: 0; }
.analytics-stat  { flex: 1; text-align: center; padding: 12px 6px; border-right: 1px solid var(--border-light); }
.analytics-stat:last-child { border-right: none; }
.analytics-stat-val { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 800; }
.analytics-stat-lbl { font-size: 11px; font-weight: 200; color: var(--text-muted); margin-top: 2px; }

/* ─── Private mode / streak shield ──────────────────────── */
.settings-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--border-light);
}
.settings-toggle-label { font-size: 14px; font-weight: 600; }
.settings-toggle-sub   { font-size: 12px; font-weight: 200; color: var(--text-muted); margin-top: 2px; }
.toggle-switch {
  width: 44px; height: 24px; border-radius: 12px;
  background: var(--card2); border: 1.5px solid var(--border-light);
  position: relative; cursor: pointer; transition: background 0.2s;
  flex-shrink: 0;
}
.toggle-switch.on { background: var(--rose); border-color: var(--rose); }
.toggle-switch::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; top: 2px; left: 2px;
  transition: left 0.2s;
}
.toggle-switch.on::after { left: calc(100% - 20px); }

/* ─── Misc ──────────────────────────────────────────────── */
.action-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px;
  cursor: pointer; display: flex; align-items: center; gap: 12px;
  transition: all 0.15s;
}
.action-card:active { transform: scale(0.98); }
.action-card-icon { font-size: 26px; flex-shrink: 0; }
.action-card-text { font-size: 14px; font-weight: 600; }
.action-card-sub  { font-size: 12px; font-weight: 200; color: var(--text-muted); margin-top: 2px; }

.pearl-store-grid { display: flex; flex-direction: column; gap: 10px; }
.pearl-option {
  background: var(--card2); border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 16px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  transition: all 0.15s;
}
.pearl-option.selected { border-color: var(--rose); background: var(--rose-dim); }
.pearl-option-icon  { font-size: 28px; }
.pearl-option-label { flex: 1; font-size: 15px; font-weight: 800; }
.pearl-option-price { font-size: 14px; font-weight: 200; color: var(--text-muted); }

.readiness-score-display {
  text-align: center; padding: 16px 0;
}
.readiness-big { font-family: 'Fraunces', serif; font-size: 56px; font-weight: 800; color: var(--rose); }
.readiness-lbl { font-size: 13px; font-weight: 200; color: var(--text-light); }

/* Capstone / major thesis */
.capstone-card {
  background: rgba(232,53,122,0.10);
  border: 2px solid rgba(155,39,255,0.30);
  border-radius: var(--radius); padding: 24px; text-align: center; margin-bottom: 16px;
}
.capstone-icon  { font-size: 48px; margin-bottom: 12px; }
.capstone-title { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 800; margin-bottom: 8px; }

/* Kink couples compat */
.compat-meter { margin: 12px 0; }
.compat-meter-track { height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.compat-meter-fill  { height: 100%; border-radius: 4px; background: var(--rose); transition: width 0.8s; }
.compat-percent { font-family: 'Fraunces', serif; font-size: 36px; font-weight: 800; color: var(--rose); margin-bottom: 4px; }

/* Love coupon */
.coupon-option {
  background: var(--card2); border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 14px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  transition: all 0.15s;
}
.coupon-option:disabled { opacity: 0.4; cursor: default; }
.coupon-option:not(:disabled):active { transform: scale(0.97); }
.coupon-option-icon  { font-size: 26px; }
.coupon-option-label { flex: 1; font-size: 14px; font-weight: 600; }
.coupon-option-count { font-size: 13px; color: var(--text-muted); }

/* Tips links in discover */
.discover-tips li { padding: 6px 0; display: flex; align-items: center; }

/* Swipe-hint updated */
.swipe-hint { padding: 6px 0 0; }

/* Constellation partner */
.constellation-card {
  background: rgba(20,217,197,0.10);
  border: 1px solid var(--teal-border); border-radius: var(--radius);
  padding: 18px; margin-bottom: 12px;
}

/* Anonymous signals */
.anon-signal-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.anon-signal-chip {
  background: var(--rose-dim); border: 1px solid var(--rose-border);
  color: var(--rose-light); padding: 6px 12px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
}

/* Weekly pearl hint */
.pearl-hint-row { text-align: center; padding: 10px 0; color: var(--text-muted); font-size: 13px; }

/* Spotlight */
.spotlight-active { border-color: var(--gold) !important; box-shadow: 0 0 24px rgba(244,185,66,0.25) !important; }

/* Readiness score chip */
.readiness-chip {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: var(--rose-dim); border: 1px solid var(--rose-border);
  color: var(--rose-light); font-size: 13px; font-weight: 800;
}

/* ─── Badge grid (My Badges section on profile) ──────────── */
.badge-grid-collapsible { margin-bottom: 4px; }
.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}
.badge-grid-preview {
  max-height: 114px; /* show ~1 row */
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.badge-grid-preview.expanded { max-height: 1000px; }
.badge {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px; border-radius: 14px;
  background: var(--card2); border: 1px solid var(--border-light);
  opacity: 0.4; transition: opacity 0.2s, border-color 0.2s;
}
.badge.earned {
  opacity: 1;
  border-color: rgba(20,217,197,0.35);
  background: rgba(20,217,197,0.06);
}
.badge.earned.gold {
  border-color: rgba(244,185,66,0.4);
  background: rgba(244,185,66,0.08);
}
.badge-icon { font-size: 22px; line-height: 1; }
.badge-name { font-size: 9px; font-weight: 700; text-align: center; color: var(--text-light); letter-spacing: 0.01em; }
.badge-tier { font-size: 9px; color: var(--gold); font-weight: 700; }
.badge-toggle-btn {
  display: block; width: 100%; margin: 8px 0 16px;
  background: none; border: 1px solid var(--border-light); border-radius: 12px;
  color: var(--text-muted); font-size: 12px; font-weight: 600;
  padding: 8px; cursor: pointer; text-align: center;
}
.badge-toggle-btn:active { opacity: 0.7; }

/* Collapsible section header (Pearls & Membership hide/show) */
.collapsible-header {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: 12px; margin-bottom: 8px;
  background: none; border: none; padding: 0; cursor: pointer;
}
.collapse-chevron {
  flex-shrink: 0; font-size: 12px; font-weight: 700;
  color: var(--text-muted); letter-spacing: 0.02em;
  border: 1px solid var(--border-light); border-radius: 999px;
  padding: 5px 12px; white-space: nowrap;
}
.collapsible-header:active .collapse-chevron { opacity: 0.7; }

/* ─── Match grid cards — larger, tappable ─────────────────── */
/* Redesign v2: New Matches as a horizontal circular-avatar carousel */
.new-matches-grid {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 14px 16px 8px; -webkit-overflow-scrolling: touch;
}
.new-matches-grid::-webkit-scrollbar { display: none; }
.match-grid-card {
  position: relative; flex: 0 0 auto; width: 78px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: none; box-shadow: none; border-radius: 0; overflow: visible;
  cursor: pointer; scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}
.match-grid-card:active { transform: scale(0.95); transition: transform 0.1s; }
.match-grid-photo {
  width: 74px; height: 74px; border-radius: 50%; object-fit: cover; display: block;
  border: 2.5px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--rose) border-box;
}
.match-grid-compat {
  position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
  background: var(--rose);
  border: 1.5px solid var(--bg);
  color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: 20px; pointer-events: none;
  box-shadow: 0 3px 10px rgba(155,39,255,0.5);
}
.match-grid-info {
  position: static; padding: 0; background: none; pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
}
.match-grid-name {
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--text); line-height: 1; display: block;
}
.match-grid-age { display: none; }
.match-grid-chat-btn { display: none; }

/* ─── Modal .show alias (JS uses .show, keep .open for backward compat) ── */
.modal-overlay.show { display: flex; animation: fadeIn 0.22s ease; }

/* ─── Desire pills (JS renders .desire-pill, CSS had .desire-chip) ──── */
.desire-pill { padding: 8px 16px; border-radius: 20px; cursor: pointer; font-size: 13px; font-weight: 600; background: var(--card2); border: 1.5px solid var(--border-light); color: var(--text-light); transition: all 0.15s; }
.desire-pill.selected { background: var(--rose-dim); border-color: var(--rose); color: var(--rose-light); }

/* ─── Love language score bars (JS uses ll-score-*, CSS had ll-bar-*) ── */
.ll-score-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ll-score-icon { font-size: 18px; flex-shrink: 0; }
.ll-score-label { width: 70px; font-size: 12px; font-weight: 600; color: var(--text-light); flex-shrink: 0; }
.ll-score-bar-wrap { flex: 1; height: 8px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.ll-score-bar { height: 100%; border-radius: 4px; transition: width 0.8s cubic-bezier(0.34,1.56,0.64,1); }
.ll-score-val { width: 24px; font-size: 12px; font-weight: 800; color: var(--text); text-align: right; }
.ll-score-bars { display: flex; flex-direction: column; gap: 4px; }

/* ─── Module card completed/in-progress (JS uses these classes) ─────── */
.module-card.completed { border-color: var(--teal-border); }
.module-card.in-progress { border-color: var(--rose-border); }

/* ─── Saved profiles (JS uses saved-profile-item/saved-avatar) ──────── */
.saved-profile-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); cursor: pointer; }
.saved-profile-item:last-child { border-bottom: none; }
.saved-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.saved-profile-name { flex: 1; font-size: 14px; font-weight: 600; }

/* ─── Analytics section (JS uses analytics-grid/num/label) ──────────── */
.analytics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border-light); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.analytics-num { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 800; }
.analytics-label { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-top: 2px; }

/* ─── Unmatch item (JS uses unmatch-item) ─────────────────────────────  */
.unmatch-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.unmatch-item:last-child { border-bottom: none; }

/* ─── Spotlight (JS uses spotlight-active-badge, spotlight-btn, spotlight-cost) */
.spotlight-active-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(244,185,66,0.15); border: 1px solid rgba(244,185,66,0.4); color: var(--gold); border-radius: 20px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.spotlight-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.spotlight-cost { font-size: 12px; opacity: 0.8; }

/* ─── Verify screen ────────────────────────────────────────────────────  */
.verify-steps { display: flex; flex-direction: column; gap: 16px; }
.verify-step-card { background: var(--card2); border: 1.5px solid var(--border-light); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: flex-start; transition: border-color 0.2s; }
.verify-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--rose-dim); color: var(--rose-light); font-size: 13px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.verify-step-body { flex: 1; }
.verify-step-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.verify-step-desc { font-size: 13px; color: var(--text-light); line-height: 1.45; margin-bottom: 10px; }
.verify-upload-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 20px; background: var(--card); border: 1.5px solid var(--border-light); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.verify-upload-btn:active { transform: scale(0.97); }
.verify-photo-preview { margin-bottom: 8px; }

/* ─── Couples cert modules (JS uses couples-module-card etc.) ─────────  */
.couples-module-card { margin-bottom: 12px; }
.couples-module-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.couples-module-icon { font-size: 28px; flex-shrink: 0; }
.couples-module-info { flex: 1; }
.couples-module-title { font-size: 15px; font-weight: 700; }
.couples-module-status { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.couples-note-block { font-size: 13px; color: var(--text-light); line-height: 1.5; font-style: italic; margin-bottom: 10px; }

/* ─── Kink compatibility (JS uses kink-mutual-item) ──────────────────── */
.kink-mutual-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; color: var(--text-light); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 380px) {
  .swipe-name { font-size: 26px; }
  .title { font-size: 26px; }
  .matches-tab { font-size: 14px; }
  .new-match-ring { width: 56px; height: 56px; }
}

/* ─── Phase 5: motion budget (3 moments, reduced-motion gated) ── */
/* 1. Card exit on Pass/Like (JS adds the class, then advances) */
.discover-profile-card { transition: transform 0.3s cubic-bezier(0.4, 0, 1, 1), opacity 0.3s ease; }
.discover-profile-card.card-exit-left  { transform: translateX(-120%) rotate(-12deg); opacity: 0; }
.discover-profile-card.card-exit-right { transform: translateX(120%) rotate(12deg); opacity: 0; }

/* 2. Match modal spring-in (3. is the certificate confetti, JS-gated) */
.modal-overlay.show .match-modal-card { animation: match-spring 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes match-spring {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .discover-profile-card { transition: none; }
  .modal-overlay.show .match-modal-card { animation: none; }
}

/* Empty-chat icebreakers, promoted */
.chat-icebreakers-empty {
  border: 1px solid var(--lavender-border, rgba(155,39,255,0.3));
  border-radius: 14px;
  padding: 14px;
  background: rgba(155, 39, 255, 0.06);
}
.chat-icebreakers-empty .chat-ice-label { font-size: 14px; font-weight: 700; }

/* Loading dots for async count fills */
.loading-dots span { animation: dot-blink 1.2s infinite; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.member-counts { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }

/* ─── Phase 6: visible keyboard focus ─────────────────────── */
button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #a795dd;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Photo-only avatars (emoji avatars removed) ──────────── */
.match-grid-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.match-avatar img, .saved-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.saved-avatar { overflow: hidden; }

/* ─── Dating UX features (distance, date-safety, feedback, trust) ─── */
.dpc-distance { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.trust-line {
  font-size: 12.5px; color: var(--text-light); line-height: 1.5;
  text-align: center; padding: 0 6px; margin: 4px 0 12px;
}
.datesafe-banner {
  background: rgba(20,217,197,0.10); border: 1px solid rgba(20,217,197,0.32);
  border-radius: 14px; padding: 12px 16px; margin-bottom: 12px;
  font-size: 13px; color: var(--text); line-height: 1.5;
}
.datesafe-banner strong { color: var(--teal, #14D9C5); }
.nps-btn { transition: background 0.15s; }

/* ─── Module-completion reward (free tier) ────────────────── */
.reward-intro {
  color: var(--text-light); font-size: 14px; line-height: 1.6;
  margin: 4px 0 18px;
}
.reward-intro strong { color: var(--text); }
.reward-card-list { display: flex; flex-direction: column; gap: 14px; }
.reward-profile-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  animation: reward-card-in 0.4s ease both;
}
.reward-card-list .reward-profile-card:nth-child(2) { animation-delay: 0.1s; }
.reward-card-list .reward-profile-card:nth-child(3) { animation-delay: 0.2s; }
@keyframes reward-card-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.reward-card-avatar-img {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; display: block;
  border: 2px solid var(--border-light);
}
.reward-card-name { font-weight: 700; font-size: 17px; }
.reward-card-bio { font-size: 13px; color: var(--text-light); line-height: 1.55; margin: 4px 0 8px; }
.reward-msg-btn { margin-top: 4px; }
.reward-compose-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  text-align: center; align-items: center;
}
.reward-message-input {
  width: 100%; box-sizing: border-box;
  background: var(--card2); border: 1px solid var(--border-light);
  border-radius: 12px; color: var(--text);
  font: inherit; font-size: 14px; padding: 12px;
  resize: vertical; margin: 8px 0 4px;
}
.reward-message-input:focus { outline: none; border-color: var(--rose); }
.reward-academy-banner {
  display: block; width: 100%; text-align: left;
  background: var(--gradient-soft, rgba(232,53,122,0.15));
  border: 1px solid var(--rose-border, rgba(232,53,122,0.35));
  border-radius: 14px; color: var(--text);
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1.5;
  padding: 13px 16px; margin-bottom: 12px; cursor: pointer;
  transition: filter 0.2s;
}
.reward-academy-banner:hover { filter: brightness(1.15); }

/* ─── Print (launch plan) ─────────────────────────────────── */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .app-header, .bottom-nav, .toast, #confetti-container { display: none !important; }
}

/* ── Redesign v2: uniform perk bullets (de-emoji) ───────────── */
.paid-tier-perks { list-style: none; padding: 0; margin: 0; }
.paid-tier-perks li.perk {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.45;
}
.paid-tier-perks li.perk::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314D9C5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}
.platinum-upgrade-card .paid-tier-perks li.perk::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4B942' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

/* ── De-emoji: inline SVG sizing for static HTML icons ──────── */
.feature-icon svg { width: 26px; height: 26px; color: var(--teal); }
.trust-line svg, #btn-use-location svg { width: 15px; height: 15px; vertical-align: -2px; }
.ll-quiz-icon svg { width: 48px; height: 48px; color: var(--rose); }
.match-burst svg { width: 64px; height: 64px; color: var(--rose); }
.levelup-emoji svg { width: 56px; height: 56px; color: var(--gold); }
.modal h2 svg, .sheet h2 svg { width: 20px; height: 20px; vertical-align: -3px; }

/* ── My Desires / desire chips (was unstyled) ──────────────── */
.desires-display { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.desire-display-pill {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600; line-height: 1;
  color: var(--lavender);
  background: rgba(167, 149, 221, 0.12);
  border: 1px solid rgba(167, 149, 221, 0.32);
}

/* Disappearing-image send confirmation */
.ephemeral-preview-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(5,4,10,0.72); backdrop-filter: blur(6px); padding: 24px;
}
.ephemeral-preview-card {
  width: 100%; max-width: 340px; background: var(--card2, #17122a);
  border: 1px solid var(--border-light, rgba(255,255,255,0.12)); border-radius: 20px;
  padding: 18px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.ephemeral-preview-title { font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.ephemeral-preview-img {
  width: 100%; max-height: 46vh; object-fit: contain; border-radius: 12px;
  background: rgba(0,0,0,0.3);
}
.ephemeral-preview-note { font-size: 12px; color: var(--text-light, #b9afd0); margin: 10px 0 14px; }

/* ═══════════════════════════════════════════════════════════════════
   LIQUID GLASS REDESIGN  (claude/liquid-glass-redesign)
   Frosted glass surfaces + neumorphic inset inputs + pill glass buttons.
   Appended last so it layers over the base component styles.
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --glass-fill:   rgba(255,255,255,0.055);
  --glass-fill-2: rgba(255,255,255,0.09);
  --glass-brd:    rgba(255,255,255,0.15);
  --glass-hi:     inset 0 1px 0 rgba(255,255,255,0.22), inset 0 0 0 1px rgba(255,255,255,0.04);
  --glass-sh:     0 12px 36px rgba(0,0,0,0.44);
  --neu-inset:    inset 0 2px 7px rgba(0,0,0,0.55), inset 0 -1px 0 rgba(255,255,255,0.05);
  --grad-rv:      var(--rose);
}

/* Atmospheric depth — a single, subtle brand-hue glow over the solid base
   (no multi-color gradients). */
body, #app {
  background:
    radial-gradient(130% 90% at 50% -12%, rgba(155,39,255,0.16), transparent 60%),
    var(--bg);
}

/* ── Liquid glass card ── */
.glass-card {
  background: var(--glass-fill);
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  border: 1px solid var(--glass-brd);
  border-radius: 24px;
  box-shadow: var(--glass-sh), var(--glass-hi);
}

/* ── Buttons: pill glass / neumorphic ── */
.btn { border-radius: 999px; letter-spacing: 0.005em; }
.btn-primary {
  background: var(--grad-rv);
  color: #fff;
  box-shadow: 0 10px 28px rgba(232,53,122,0.42),
              inset 0 1px 0 rgba(255,255,255,0.38),
              inset 0 -4px 10px rgba(120,8,60,0.34);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { transform: scale(0.975); }
.btn-secondary {
  background: var(--glass-fill-2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-brd);
  color: var(--text);
  box-shadow: var(--glass-hi), 0 8px 20px rgba(0,0,0,0.34);
}
.btn-gold {
  background: var(--gold);
  color: #2a1c00;
  box-shadow: 0 10px 26px rgba(244,185,66,0.40), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-ghost {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px;
}

/* ── Inputs: neumorphic inset glass ── */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], select, textarea, .search-input, #chat-input {
  background: rgba(0,0,0,0.24);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: var(--neu-inset);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
input:focus, select:focus, textarea:focus, #chat-input:focus {
  border-color: rgba(255,92,156,0.6);
  box-shadow: var(--neu-inset), 0 0 0 3px rgba(232,53,122,0.22);
}

/* ── Pills (level / streak / pearl) as little glass chips ── */
.pill {
  background: var(--glass-fill-2);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ── Header: sheer glass ── */
.app-header {
  background: rgba(13,8,24,0.5);
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── Back button: glass pill ── */
.back-btn {
  background: var(--glass-fill);
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* ── Bottom nav: liquid glass pill with active glass highlight ── */
.bottom-nav {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-brd);
  box-shadow: 0 18px 46px rgba(0,0,0,0.55), var(--glass-hi);
  backdrop-filter: blur(32px) saturate(1.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
}
.nav-btn { border-radius: 999px; transition: color .2s, background .2s, transform .15s; }
.nav-btn.active {
  background: rgba(255,255,255,0.10);
  box-shadow: var(--glass-hi);
}

/* ── Settings rows + generic frosted surfaces ── */
.settings-row {
  background: var(--glass-fill);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ── Redesign polish round 2 ── */
:root { --glass-fill: rgba(255,255,255,0.072); }   /* a touch brighter for legibility */

/* Module list cards → frosted glass with glassy icon tiles */
.module-card {
  background: var(--glass-fill);
  border: 1px solid var(--glass-brd);
  border-radius: 22px;
  box-shadow: var(--glass-hi), 0 8px 22px rgba(0,0,0,0.32);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
}
.module-card .module-icon {
  border-radius: 16px;
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Discover Pass/Like → circular liquid-glass buttons */
.discover-action-btn.pass {
  background: var(--glass-fill-2);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-hi), 0 8px 20px rgba(0,0,0,0.4);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.discover-action-btn.like {
  background: var(--grad-rv);
  box-shadow: 0 10px 26px rgba(232,53,122,0.5),
              inset 0 1px 0 rgba(255,255,255,0.4);
}

/* "Them" chat bubbles → frosted glass; mine keeps the gradient */
.chat-bubble.them, .coupon-bubble {
  background: var(--glass-fill);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-hi);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.chat-bubble.me {
  background: var(--grad-rv);
  box-shadow: 0 6px 18px rgba(232,53,122,0.38), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Search field pill */
.search-input, #therapist-search, #matches-search {
  border-radius: 999px;
}

/* ═══════════ Micro-interactions + Readiness meter ═══════════ */

/* Relationship Readiness meter (Academy) */
.readiness-meter { padding: 18px 20px; }
.readiness-meter .rm-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rm-label { font-family: 'Fraunces', serif; font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.rm-caption { font-size: 12px; color: var(--text-light); margin-top: 3px; }
.rm-score {
  font-family: 'Fraunces', serif; font-weight: 800; font-size: 34px; line-height: 1;
  color: var(--rose); letter-spacing: -0.03em;
}
.rm-score span { font-size: 16px; opacity: 0.7; margin-left: 1px; }
.rm-track {
  height: 12px; border-radius: 999px; margin-top: 14px; overflow: hidden;
  background: rgba(0,0,0,0.28);
  box-shadow: var(--neu-inset);
}
.rm-fill {
  height: 100%; border-radius: 999px; background: var(--rose);
  box-shadow: 0 0 14px rgba(232,53,122,0.55), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.readiness-meter.is-certified .rm-score { color: var(--gold); }
.readiness-meter.is-certified .rm-fill { background: var(--gold); box-shadow: 0 0 16px rgba(244,185,66,0.6), inset 0 1px 0 rgba(255,255,255,0.4); }
.readiness-meter.is-certified { border-color: rgba(244,185,66,0.4); box-shadow: var(--glass-sh), var(--glass-hi), 0 0 22px rgba(244,185,66,0.12); }

/* Tap ripple */
.btn, .discover-action-btn, .nav-btn, .back-btn, .settings-row, .coupon-option, .module-card {
  position: relative; overflow: hidden;
}
.tap-ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.18) 40%, transparent 70%);
  transform: scale(0); opacity: 0.65;
  animation: tapRipple 0.6s ease-out forwards;
  z-index: 2;
}
@keyframes tapRipple { to { transform: scale(1); opacity: 0; } }

/* Match modal avatar pop */
.match-pop { animation: matchPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes matchPop {
  0%   { transform: scale(0.55); opacity: 0; }
  60%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

/* Springier discover card fly-out */
.discover-profile-card { transition: transform 0.42s cubic-bezier(0.34, 1.2, 0.5, 1), opacity 0.42s ease; }

@media (prefers-reduced-motion: reduce) {
  .rm-fill { transition: none; }
  .tap-ripple, .match-pop { animation: none; }
}

/* ── Bento-grid profile ─────────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.bento-grid .span2 { grid-column: span 2; }
.bento-tile {
  background: var(--glass-fill);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-hi), var(--glass-sh);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bt-h {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}
.bt-hero {
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 20px;
}
.bt-hero-ring { flex-shrink: 0; }
.bt-hero-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bt-name {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.05;
  margin: 0;
}
.bt-badges-inline { display: flex; gap: 6px; flex-wrap: wrap; }
.bt-sub {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.bt-stat {
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
}
.bt-stat-ic {
  display: inline-flex;
  color: var(--rose);
  margin-bottom: 2px;
}
.bt-stat.is-gold .bt-stat-ic { color: var(--gold); }
.bt-stat-val {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
}
.bt-stat-lbl {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
}
.bt-ll-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  margin: 4px 0 0;
}
.bt-inline-btn {
  align-self: flex-start;
  margin-top: 8px;
  padding: 8px 18px;
  font-size: 13px;
}
.bt-about-text {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.bt-prompt { margin-top: 6px; }
.bt-prompt-q {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
}
.bt-prompt-a {
  font-size: 15px;
  line-height: 1.5;
  font-family: 'Fraunces', serif;
}
.bt-badges .badge-grid { margin-top: 4px; }

/* ── Pearl system: reveal gate, explainer, balance split ── */
.liked-reveal-banner { text-align: center; margin-bottom: 14px; }
.liked-reveal-count {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Fraunces', serif; font-size: 19px; font-weight: 800;
  color: var(--rose-light); margin-bottom: 6px;
}
.liked-reveal-banner p { font-size: 13px; color: var(--text-light); margin: 0 0 12px; }
.match-grid-card.liked-blur { position: relative; }
.match-grid-card.liked-blur .match-grid-photo { filter: blur(14px) saturate(0.7); transform: scale(1.05); }
.match-grid-card.liked-blur .match-grid-info strong { color: var(--text-light); font-weight: 600; }

.pearl-explainer {
  margin-top: 14px;
  background: var(--glass-fill, rgba(255,255,255,0.05));
  border: 1px solid var(--glass-brd, rgba(255,255,255,0.12));
  border-radius: 16px;
  padding: 4px 14px;
  overflow: hidden;
}
.pearl-explainer > summary {
  cursor: pointer; list-style: none; padding: 12px 0;
  font-family: 'Fraunces', serif; font-weight: 800; font-size: 15px;
  color: var(--text); display: flex; align-items: center; justify-content: space-between;
}
.pearl-explainer > summary::-webkit-details-marker { display: none; }
.pearl-explainer > summary::after { content: '＋'; color: var(--teal); font-weight: 700; }
.pearl-explainer[open] > summary::after { content: '－'; }
.pearl-explainer-body { padding: 2px 0 14px; }
.pearl-explainer-body p { font-size: 13px; line-height: 1.6; color: var(--text-light); margin: 0 0 8px; }
.pearl-explainer-body p.pearl-h {
  font-family: 'Fraunces', serif; font-weight: 800; font-size: 13px;
  color: var(--rose-light); text-transform: uppercase; letter-spacing: 0.04em;
  margin: 14px 0 6px;
}
.pearl-explainer-body ul { margin: 0 0 8px; padding-left: 18px; }
.pearl-explainer-body li { font-size: 13px; line-height: 1.6; color: var(--text-light); margin-bottom: 5px; }
.pearl-explainer-body strong { color: var(--text); }
.pearl-balance-split {
  display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--glass-brd, rgba(255,255,255,0.1));
}
.pearl-balance-split > span {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 800; font-size: 14px; color: var(--teal);
}
.pearl-balance-split em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--text-light); }
.pearl-split-note { color: var(--lavender) !important; font-size: 12px !important; font-weight: 700; }

/* ── Referral card ── */
.referral-card .ref-blurb { font-size: 13px; line-height: 1.6; color: var(--text-light); margin: 0 0 14px; }
.referral-card .ref-blurb strong { color: var(--text); }
.ref-link-row {
  background: var(--glass-fill-2, rgba(255,255,255,0.04));
  border: 1px solid var(--glass-brd, rgba(255,255,255,0.12));
  border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; overflow-x: auto;
}
.ref-code { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--teal); white-space: nowrap; }
.ref-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ref-actions .btn { flex: 1 1 auto; padding: 9px 12px; font-size: 13px; }
.ref-empty { font-size: 13px; color: var(--text-light); margin: 0; }
.ref-stats { display: flex; gap: 12px; margin: 16px 0 12px; }
.ref-stat {
  flex: 1; text-align: center; padding: 12px 8px; border-radius: 14px;
  background: var(--glass-fill, rgba(255,255,255,0.05));
  border: 1px solid var(--glass-brd, rgba(255,255,255,0.12));
}
.ref-num { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 800; color: var(--rose-light); line-height: 1.1; }
.ref-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); margin-top: 4px; }
.ref-progress { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.ref-progress-bar { height: 100%; background: var(--rose); border-radius: 99px; transition: width 0.5s ease; }
.ref-next { font-size: 12px; color: var(--text-light); margin: 8px 0 0; }
.ref-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ref-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 99px; color: var(--gold, #F4B942);
  background: rgba(244,185,66,0.14); border: 1px solid rgba(244,185,66,0.35);
}
.ref-premium { font-size: 12px; color: var(--lavender); margin: 10px 0 0; display: flex; align-items: center; gap: 5px; }

/* ── Billing period toggle (monthly / yearly) ─────────────────────────────
   Sits above the tier comparison. Segmented control rather than a switch:
   the saving only reads if both options are visible at once. */
.billing-toggle {
  display: flex; gap: 4px; margin: 0 auto 16px; padding: 4px;
  max-width: 340px; border-radius: 100px;
  background: var(--glass-fill, rgba(255,255,255,0.05));
  border: 1px solid var(--glass-brd, rgba(255,255,255,0.10));
}
.billing-opt {
  flex: 1; padding: 9px 14px; border: none; border-radius: 100px;
  background: transparent; color: var(--text-light); cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .16s, color .16s;
}
.billing-opt.active {
  background: var(--grad-rv, linear-gradient(120deg, var(--rose), var(--lavender)));
  color: #fff;
}
.billing-save {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.02em;
  padding: 2px 7px; border-radius: 100px;
  background: rgba(20,217,197,0.16); color: var(--teal, #14D9C5);
}
.billing-opt.active .billing-save { background: rgba(255,255,255,0.22); color: #fff; }
