/* ============================================
   TYP — Test Your Partner
   Design System
   ============================================ */

:root {
  --bg-primary: #060606;
  --bg-secondary: #0d0d0d;
  --bg-card: #111111;
  --bg-elevated: #161616;
  --red-primary: #dc2626;
  --red-glow: rgba(220, 38, 38, 0.35);
  --red-dim: #2d0808;
  --red-soft: #ff4444;
  --text-primary: #f5f5f5;
  --text-muted: #666666;
  --text-dim: #333333;
  --border: #1e1e1e;
  --success: #16a34a;
  --warning: #d97706;
  --gold: #f59e0b;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: #000;
  font-family: var(--font-body);
  color: var(--text-primary);
  overflow: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }

/* ============================================
   APP ROOT — Desktop Phone Frame
   ============================================ */
#app-root {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(220,38,38,0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(220,38,38,0.05) 0%, transparent 40%),
    #000;
  gap: 32px;
  padding: 16px;
}

.device-frame {
  position: relative;
  width: 390px;
  height: 844px;
  background: #1a1a1a;
  border-radius: 56px;
  padding: 14px;
  box-shadow:
    0 0 0 2px #2a2a2a,
    0 0 80px rgba(220,38,38,0.15),
    0 30px 60px rgba(0,0,0,0.6);
  flex-shrink: 0;
}

.device-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 32px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 100;
}

.device-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.device-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: #444;
  border-radius: 2px;
  z-index: 100;
}

/* Status bar */
.status-bar {
  height: 44px;
  padding: 14px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
  z-index: 50;
}
.status-bar .status-icons { display: flex; gap: 6px; align-items: center; font-size: 11px; }

/* View container */
#view-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#view-container::-webkit-scrollbar { display: none; }

/* Bottom nav */
.bottom-nav {
  display: flex;
  height: 78px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 8px 4px 24px;
  flex-shrink: 0;
}
.bottom-nav.hidden { display: none; }
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
  padding: 6px 2px;
}
.nav-item.active { color: var(--red-primary); }
.nav-item .nav-icon { font-size: 22px; line-height: 1; }
.nav-item .nav-label { font-size: 10px; text-transform: uppercase; }

/* ============================================
   CONTEXT PANEL (desktop sidebar)
   ============================================ */
.context-panel {
  width: 280px;
  height: 844px;
  background: rgba(13,13,13,0.6);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 22px;
  overflow-y: auto;
  scrollbar-width: thin;
  backdrop-filter: blur(10px);
}
.context-logo {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--red-primary);
  letter-spacing: 4px;
  line-height: 1;
  text-shadow: 0 0 30px var(--red-glow);
}
.logo-tm { font-size: 14px; color: var(--text-muted); vertical-align: super; }
.context-tag { color: var(--text-primary); font-size: 13px; margin-top: 4px; font-weight: 600; }
.context-rule { color: var(--text-muted); font-size: 11px; margin-top: 6px; line-height: 1.5; }
.context-section { margin-top: 28px; }
.context-section h4 {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}
.ctx-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--text-primary);
  border-radius: 6px;
  transition: all 0.2s;
}
.ctx-btn:hover { background: rgba(220,38,38,0.1); color: var(--red-soft); }
.ctx-disclaimer { color: var(--text-muted); font-size: 11px; line-height: 1.6; }

/* Hide context panel on small screens */
@media (max-width: 800px) {
  .context-panel { display: none; }
  #app-root { padding: 0; }
  .device-frame {
    width: 100vw; height: 100vh;
    border-radius: 0; padding: 0;
    box-shadow: none;
  }
  .device-notch { display: none; }
  .device-home-bar { display: none; }
  .device-screen { border-radius: 0; }
}

/* ============================================
   SHARED UI PRIMITIVES
   ============================================ */
.view {
  min-height: 100%;
  padding: 0 24px 32px;
  animation: viewIn 0.35s ease;
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.h-display {
  font-family: var(--font-display);
  letter-spacing: 2px;
  line-height: 0.95;
  color: var(--text-primary);
}
.h-1 { font-size: 48px; }
.h-2 { font-size: 32px; }
.h-3 { font-size: 24px; }
.text-mono { font-family: var(--font-mono); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-red { color: var(--red-primary); }
.text-red-soft { color: var(--red-soft); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-gold { color: var(--gold); }

.body-md { font-size: 15px; line-height: 1.6; color: var(--text-primary); }
.body-sm { font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.body-xs { font-size: 11px; line-height: 1.5; color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 24px;
  border-radius: 8px;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s;
  font-family: var(--font-body);
  letter-spacing: 0.3px;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--red-primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(220,38,38,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover { background: #ef2828; box-shadow: 0 0 30px rgba(220,38,38,0.5); }
.btn-secondary {
  background: transparent;
  border: 1px solid #333;
  color: var(--text-primary);
}
.btn-secondary:hover { border-color: #555; background: rgba(255,255,255,0.03); }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 8px 12px; }
.btn-ghost:hover { color: var(--text-primary); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 24px; font-size: 16px; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.card-feature {
  background: var(--bg-card);
  border: 1px solid rgba(220,38,38,0.4);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 30px rgba(220,38,38,0.08);
}
.card-elevated { background: var(--bg-elevated); }
.card-tap {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s, box-shadow 0.2s;
}
.card-tap:active { transform: scale(0.98); }
.card-tap:hover { border-color: rgba(220,38,38,0.4); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.badge-red { background: rgba(220,38,38,0.15); color: var(--red-soft); border: 1px solid rgba(220,38,38,0.3); }
.badge-gold { background: rgba(245,158,11,0.12); color: var(--gold); border: 1px solid rgba(245,158,11,0.3); }
.badge-grey { background: #1a1a1a; color: var(--text-muted); border: 1px solid var(--border); }
.badge-success { background: rgba(22,163,74,0.12); color: var(--success); border: 1px solid rgba(22,163,74,0.3); }

/* Intensity dots */
.intensity { display: inline-flex; gap: 4px; }
.intensity .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2a2a2a;
}
.intensity .dot.on { background: var(--red-primary); box-shadow: 0 0 6px var(--red-glow); }

/* Scrollable horizontal chip row */
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}
.chip.active {
  background: rgba(220,38,38,0.12);
  border-color: var(--red-primary);
  color: var(--red-soft);
}

/* Top bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 18px;
}
.top-bar .top-logo {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--red-primary);
}
.top-bar .top-actions { display: flex; gap: 14px; align-items: center; }
.top-bar .icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 16px;
  color: var(--text-primary);
  position: relative;
}
.icon-btn .dot-notif {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--red-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red-primary);
}

/* ============================================
   SPLASH
   ============================================ */
.splash {
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  z-index: 200;
}
.splash::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 60%);
  animation: pulse-glow 2.4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 0.7; transform: scale(1.1); }
}
.splash-logo {
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--red-primary);
  letter-spacing: 8px;
  line-height: 1;
  text-shadow: 0 0 40px var(--red-glow);
  animation: fadeUp 1s ease 0.2s both;
  z-index: 2;
}
.splash-tag {
  color: var(--text-primary);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
  animation: fadeUp 1s ease 0.8s both;
  z-index: 2;
}
.splash-tm { color: var(--text-muted); font-size: 18px; vertical-align: super; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ONBOARDING CAROUSEL
   ============================================ */
.onboarding {
  height: 100%;
  display: flex; flex-direction: column;
  padding: 40px 0 32px;
}
.onb-skip {
  align-self: flex-end;
  padding: 8px 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.onb-slides {
  flex: 1;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.onb-slides::-webkit-scrollbar { display: none; }
.onb-slide {
  min-width: 100%;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 32px;
  text-align: center;
}
.onb-visual {
  width: 240px; height: 240px;
  margin-bottom: 40px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.onb-headline {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 3px;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1;
}
.onb-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}
.onb-controls {
  padding: 24px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.onb-dots { display: flex; gap: 8px; }
.onb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: all 0.3s;
}
.onb-dot.active {
  background: var(--red-primary);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 8px var(--red-glow);
}

/* Onboarding visuals */
.viz-phones {
  position: relative;
  width: 100%; height: 100%;
}
.viz-phone {
  position: absolute;
  width: 70px; height: 130px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.viz-phone.left { left: 30px; top: 50%; transform: translateY(-50%) rotate(-12deg); }
.viz-phone.right { right: 30px; top: 50%; transform: translateY(-50%) rotate(12deg); }
.viz-phone::before {
  content: ''; position: absolute; inset: 8px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(220,38,38,0.2), transparent);
}
.viz-signal {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
  animation: signal 1.8s ease infinite;
}
@keyframes signal {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; box-shadow: 0 0 16px var(--red-glow); }
}

.viz-chat {
  width: 100%; padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.viz-bubble {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 12px;
  max-width: 80%;
  line-height: 1.4;
}
.viz-bubble.theirs {
  background: var(--bg-card); color: var(--text-primary);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.viz-bubble.mine {
  background: var(--red-primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.viz-score {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid rgba(220,38,38,0.4);
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 0 40px rgba(220,38,38,0.15);
}
.viz-score .score-num {
  font-family: var(--font-mono);
  font-size: 56px;
  color: var(--red-primary);
  font-weight: 700;
}
.viz-score .score-label {
  font-size: 11px; letter-spacing: 2px; color: var(--text-muted);
  text-transform: uppercase;
}

/* ============================================
   AUTH / SIGN UP / PROFILE SETUP
   ============================================ */
.auth { padding: 50px 24px 32px; min-height: 100%; display: flex; flex-direction: column; }
.auth-back { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; align-self: flex-start; padding: 8px 0; }
.auth h1 {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.auth p.lead {
  font-size: 14px; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 32px;
}
.auth-options { display: flex; flex-direction: column; gap: 12px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 8px 0; color: var(--text-dim); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-disclaimer {
  margin-top: auto; padding-top: 24px;
  font-size: 11px; color: var(--text-dim); line-height: 1.6;
  text-align: center;
}
.auth-microcopy {
  margin-top: 16px; font-size: 12px; color: var(--text-muted); text-align: center;
}

/* Form fields */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600;
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
.field textarea { min-height: 100px; resize: none; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.field-hint { font-size: 11px; color: var(--text-dim); margin-top: 6px; }

.photo-upload {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 1px dashed #333;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  margin: 8px 0 24px;
  font-size: 28px;
  color: var(--text-muted);
}

/* ============================================
   PARTNER CONNECTION FLOW
   ============================================ */
.invite-gate {
  padding: 60px 24px 32px;
  min-height: 100%;
  display: flex; flex-direction: column;
}
.lock-banner {
  background: rgba(220,38,38,0.06);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--red-soft);
  text-align: center;
  margin-bottom: 32px;
  text-transform: uppercase;
  font-weight: 600;
}

.dual-circles {
  display: flex; align-items: center; justify-content: center;
  margin: 24px 0 40px;
  gap: 0;
  position: relative;
}
.partner-circle {
  width: 96px; height: 96px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}
.partner-circle.me {
  background: linear-gradient(135deg, var(--red-primary), #8a1717);
  color: #fff;
  border: 2px solid var(--red-primary);
  box-shadow: 0 0 30px var(--red-glow);
}
.partner-circle.them {
  background: var(--bg-card);
  border: 2px dashed var(--text-dim);
}
.dotted-line {
  width: 60px;
  border-top: 2px dashed var(--text-dim);
  margin: 0 -10px;
  position: relative;
  z-index: 1;
}
.dotted-line.live { border-color: var(--red-primary); }
.dotted-line.live::after {
  content: ''; position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  background: var(--red-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--red-primary);
  animation: signal 1.4s ease infinite;
}

/* Invite code display */
.invite-code-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}
.invite-code-box .code {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 12px;
  color: var(--red-primary);
  text-shadow: 0 0 20px var(--red-glow);
}
.invite-code-box .code-label {
  font-size: 10px; letter-spacing: 2px; color: var(--text-muted);
  text-transform: uppercase; margin-bottom: 8px;
}
.invite-link {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.invite-actions { display: flex; gap: 8px; margin-top: 12px; }
.invite-actions .btn { flex: 1; font-size: 13px; padding: 12px; }

/* Waiting state */
.waiting-dots { display: inline-flex; gap: 6px; margin-left: 8px; }
.waiting-dots span {
  width: 6px; height: 6px;
  background: var(--red-primary);
  border-radius: 50%;
  animation: wait 1.4s ease infinite;
}
.waiting-dots span:nth-child(2) { animation-delay: 0.2s; }
.waiting-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes wait {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}

/* Connected celebration */
.connected-cele {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px;
  text-align: center;
}
.merge-circles {
  position: relative;
  width: 200px; height: 120px;
  margin-bottom: 32px;
}
.merge-circle {
  position: absolute;
  width: 96px; height: 96px;
  border-radius: 50%;
  top: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  color: #fff;
  font-weight: 700;
  animation: merge 1.4s ease forwards;
}
.merge-circle.left {
  left: 0;
  background: linear-gradient(135deg, var(--red-primary), #8a1717);
  box-shadow: 0 0 30px var(--red-glow);
}
.merge-circle.right {
  right: 0;
  background: linear-gradient(135deg, #d97706, #6b3a05);
  animation-name: mergeRight;
}
@keyframes merge {
  0% { transform: translateX(0); }
  100% { transform: translateX(28px); }
}
@keyframes mergeRight {
  0% { transform: translateX(0); }
  100% { transform: translateX(-28px); }
}
.merge-spark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 60px; height: 60px;
  background: radial-gradient(circle, var(--red-soft), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  animation: spark 0.6s ease 1.0s forwards;
}
@keyframes spark {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(0.4); }
  60% { opacity: 1; transform: translate(-50%,-50%) scale(1.4); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(2.2); }
}

/* Confetti */
.confetti-piece {
  position: absolute; width: 6px; height: 14px;
  background: var(--red-primary); top: -20px;
  animation: confettiFall 3s linear infinite;
  border-radius: 1px;
  opacity: 0.7;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translateY(900px) rotate(720deg); opacity: 0; }
}

/* ============================================
   HOME DASHBOARD
   ============================================ */
.home-tagline {
  background: var(--bg-card);
  border-left: 3px solid var(--red-primary);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 12px;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.partner-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid rgba(220,38,38,0.3);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 0 30px rgba(220,38,38,0.06);
  position: relative;
  overflow: hidden;
}
.partner-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 60%);
  pointer-events: none;
}
.partner-card-header { display: flex; align-items: center; gap: 14px; }
.partner-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d97706, #6b3a05);
  border: 2px solid rgba(220,38,38,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; font-weight: 700;
  flex-shrink: 0;
}
.partner-info { flex: 1; min-width: 0; }
.partner-name { font-size: 18px; font-weight: 600; color: var(--text-primary); }
.partner-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--success); font-weight: 600;
  letter-spacing: 0.5px; margin-top: 2px;
}
.partner-status .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red-primary);
  box-shadow: 0 0 8px var(--red-primary);
  animation: livePulse 1.6s ease infinite;
}
@keyframes livePulse { 0%,100% {opacity: 1;} 50% {opacity: 0.4;} }
.partner-meta {
  display: flex; gap: 16px; margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.meta-item { font-size: 12px; color: var(--text-muted); }
.meta-item strong { color: var(--text-primary); margin-right: 4px; }

/* Feature grid */
.section-label {
  font-size: 11px; letter-spacing: 2px;
  color: var(--text-muted); font-weight: 700;
  text-transform: uppercase;
  margin: 8px 0 12px;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 130px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.feature-card:active { transform: scale(0.97); }
.feature-card:hover { border-color: rgba(220,38,38,0.4); }
.feature-card.feature-core { border-color: rgba(220,38,38,0.3); }
.feature-card .fc-icon { font-size: 28px; line-height: 1; margin-bottom: 6px; }
.feature-card .fc-label {
  font-size: 9px; letter-spacing: 1.5px;
  color: var(--text-muted); text-transform: uppercase; font-weight: 700;
}
.feature-card .fc-title {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 1px;
  color: var(--text-primary);
  margin: 4px 0;
  line-height: 1;
}
.feature-card .fc-sub { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.feature-card .fc-badge {
  position: absolute; top: 12px; right: 12px;
}

/* ============================================
   SIMULATIONS / SCENARIOS
   ============================================ */
.page-header {
  padding: 40px 0 8px;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: 3px;
  line-height: 1;
}
.page-header p {
  font-size: 13px; color: var(--text-muted);
  margin-top: 8px; line-height: 1.5;
}

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.scenario-card.premium {
  border-color: rgba(245,158,11,0.3);
  background: linear-gradient(135deg, var(--bg-card), rgba(245,158,11,0.03));
}
.scenario-card:active { transform: scale(0.98); }
.scenario-card:hover { border-color: rgba(220,38,38,0.4); }
.scenario-card.premium:hover { border-color: rgba(245,158,11,0.5); }
.scenario-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.scenario-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 6px;
}
.scenario-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-muted);
  flex-wrap: wrap;
}
.scenario-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(220,38,38,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid rgba(220,38,38,0.2);
}
.scenario-badges {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 10px;
}
.scenario-badges .badge { font-size: 9px; padding: 3px 6px; }

/* Scenario detail */
.scenario-detail {
  padding: 20px 0 32px;
}
.scenario-detail h2 {
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 16px;
}
.detail-row {
  display: flex; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.detail-row .label { color: var(--text-muted); }
.detail-row .value { color: var(--text-primary); font-weight: 600; }
.detail-tests {
  margin: 16px 0;
}
.detail-tests h4 {
  font-size: 11px; letter-spacing: 1.5px; color: var(--text-muted);
  text-transform: uppercase; margin-bottom: 10px; font-weight: 700;
}
.detail-tests li {
  list-style: none; padding-left: 20px; position: relative;
  font-size: 13px; color: var(--text-primary); line-height: 1.6;
  margin-bottom: 6px;
}
.detail-tests li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--red-primary);
}
.warning-box {
  background: rgba(220,38,38,0.06);
  border: 1px solid rgba(220,38,38,0.25);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--red-soft);
  line-height: 1.5;
  margin: 16px 0;
}

/* Scenario in progress */
.scenario-runtime {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(220,38,38,0.08), transparent 60%),
    var(--bg-primary);
  display: flex;
  flex-direction: column;
  z-index: 80;
}
.runtime-header {
  padding: 50px 24px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.runtime-progress {
  height: 3px; background: var(--border);
  border-radius: 2px; overflow: hidden;
}
.runtime-progress .fill {
  height: 100%; background: var(--red-primary);
  box-shadow: 0 0 8px var(--red-glow);
  transition: width 0.5s ease;
}
.runtime-meta {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 1px; text-transform: uppercase;
}
.runtime-body {
  flex: 1;
  padding: 32px 24px;
  overflow-y: auto;
  scrollbar-width: none;
}
.runtime-body::-webkit-scrollbar { display: none; }
.runtime-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 32px;
  font-weight: 400;
  white-space: pre-line;
  animation: textIn 0.6s ease;
}
@keyframes textIn { from {opacity:0; transform: translateY(8px);} to {opacity: 1; transform:translateY(0);} }

.choice-list { display: flex; flex-direction: column; gap: 10px; }
.choice-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex; gap: 12px; align-items: flex-start;
}
.choice-card:hover { border-color: rgba(220,38,38,0.3); }
.choice-card:active { transform: scale(0.98); }
.choice-card.selected {
  border-color: var(--red-primary);
  background: rgba(220,38,38,0.08);
  box-shadow: 0 0 16px rgba(220,38,38,0.15);
}
.choice-card.faded { opacity: 0.3; pointer-events: none; }
.choice-letter {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.choice-card.selected .choice-letter {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: #fff;
}
.consequence {
  margin-top: 16px;
  padding: 14px;
  background: rgba(220,38,38,0.04);
  border-left: 2px solid var(--red-primary);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.55;
  font-style: italic;
  animation: textIn 0.5s ease;
}

.scenario-end {
  padding: 60px 24px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.scenario-end .end-icon { font-size: 48px; margin-bottom: 8px; }
.scenario-end h3 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 2px;
}

/* ============================================
   TRUTH MODE
   ============================================ */
.truth-cat-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.truth-cat-card:hover { border-color: rgba(220,38,38,0.3); }
.truth-cat-card:active { transform: scale(0.98); }
.truth-cat-card .cat-icon {
  font-size: 28px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  border-radius: 10px;
  flex-shrink: 0;
}
.truth-cat-card .cat-info { flex: 1; min-width: 0; }
.truth-cat-card .cat-label {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.truth-cat-card .cat-sub { font-size: 12px; color: var(--text-muted); }
.truth-cat-card .cat-arrow { color: var(--text-muted); font-size: 20px; }

/* Question screen */
.q-runtime {
  position: absolute; inset: 0;
  background: var(--bg-primary);
  display: flex; flex-direction: column;
  z-index: 80;
  padding: 50px 24px 32px;
}
.q-back { font-size: 14px; color: var(--text-muted); align-self: flex-start; padding: 8px 0; margin-bottom: 16px; }
.q-counter { font-size: 11px; letter-spacing: 1.5px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 20px; }
.q-text {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 32px;
}
.q-options { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.q-option {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-size: 14px;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}
.q-option:hover { border-color: rgba(220,38,38,0.3); }
.q-option:active { transform: scale(0.98); }
.q-option.selected {
  border-color: var(--red-primary);
  background: rgba(220,38,38,0.08);
}

.q-scale {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  margin-bottom: 20px;
}
.q-scale-display {
  font-family: var(--font-mono);
  font-size: 56px;
  text-align: center;
  color: var(--red-primary);
  text-shadow: 0 0 20px var(--red-glow);
  font-weight: 700;
  margin-bottom: 12px;
}
.q-scale-input {
  width: 100%;
  -webkit-appearance: none; appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}
.q-scale-input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  background: var(--red-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 12px var(--red-glow);
}
.q-scale-input::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--red-primary);
  border-radius: 50%;
  border: 0;
  box-shadow: 0 0 12px var(--red-glow);
}
.q-scale-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-muted);
  margin-top: 12px; letter-spacing: 0.5px;
}

.q-free {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-size: 15px;
  color: var(--text-primary);
  width: 100%;
  min-height: 140px;
  resize: none;
  font-family: var(--font-body);
  line-height: 1.5;
}
.q-free:focus {
  outline: none;
  border-color: var(--red-primary);
}
.q-share-note {
  font-size: 11px; color: var(--warning);
  margin-top: 8px;
  font-style: italic;
}
.q-yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-yesno button {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}
.q-yesno button:hover { border-color: rgba(220,38,38,0.4); }
.q-yesno button.selected {
  border-color: var(--red-primary);
  background: rgba(220,38,38,0.1);
  color: var(--red-soft);
}

/* Reveal screen */
.reveal-screen {
  padding: 50px 24px 32px;
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 0%, rgba(220,38,38,0.1), transparent 60%),
    var(--bg-primary);
}
.reveal-screen h1 {
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 8px;
}
.reveal-flash {
  position: absolute; inset: 0;
  background: var(--red-primary);
  z-index: 999;
  pointer-events: none;
  animation: flash 0.6s ease forwards;
}
@keyframes flash {
  0% { opacity: 0; }
  20% { opacity: 0.4; }
  100% { opacity: 0; }
}

.compare-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.compare-cell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.compare-cell.match {
  border-color: var(--success);
  background: rgba(22,163,74,0.06);
}
.compare-cell.mismatch {
  border-color: rgba(220,38,38,0.4);
  background: rgba(220,38,38,0.04);
}
.compare-cell .who {
  font-size: 11px; letter-spacing: 1.5px;
  color: var(--text-muted); text-transform: uppercase; font-weight: 700;
  margin-bottom: 8px;
}
.compare-cell .answer {
  font-size: 14px; color: var(--text-primary);
  line-height: 1.4;
  font-weight: 500;
}

.reveal-question {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 24px 0 4px;
  line-height: 1.4;
}
.reveal-question::before {
  content: '— Question';
  display: block;
  font-size: 10px; letter-spacing: 1.5px; color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
}
.reveal-result-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 8px;
}
.pill-match { background: rgba(22,163,74,0.15); color: var(--success); }
.pill-mismatch { background: rgba(220,38,38,0.15); color: var(--red-soft); }

/* ============================================
   QUIZ
   ============================================ */
.quiz-type-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.quiz-type-card:hover { border-color: rgba(220,38,38,0.4); }
.quiz-type-card:active { transform: scale(0.98); }
.qt-icon { font-size: 32px; margin-bottom: 8px; }
.qt-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.qt-sub { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.streak-card {
  background: linear-gradient(135deg, rgba(220,38,38,0.1), rgba(245,158,11,0.06));
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.streak-card .flame { font-size: 32px; }
.streak-info { flex: 1; }
.streak-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}
.streak-label { font-size: 11px; letter-spacing: 1.5px; color: var(--text-muted); text-transform: uppercase; }

/* ============================================
   SCORE DASHBOARD
   ============================================ */
.score-hero {
  padding: 40px 0;
  text-align: center;
  position: relative;
}
.score-circle {
  position: relative;
  width: 220px; height: 220px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.score-ring {
  position: absolute; inset: 0;
  transform: rotate(-90deg);
}
.score-ring circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}
.score-ring .bg { stroke: var(--border); }
.score-ring .fg {
  stroke: var(--red-primary);
  filter: drop-shadow(0 0 8px var(--red-glow));
  transition: stroke-dashoffset 1.5s ease;
}
.score-num {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  color: var(--red-primary);
  text-shadow: 0 0 30px var(--red-glow);
  line-height: 1;
}
.score-percent { font-size: 32px; opacity: 0.7; }
.score-label {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.risk-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 8px;
}
.risk-low { background: rgba(22,163,74,0.12); color: var(--success); border: 1px solid rgba(22,163,74,0.3); }
.risk-medium { background: rgba(245,158,11,0.12); color: var(--gold); border: 1px solid rgba(245,158,11,0.3); }
.risk-high { background: rgba(220,38,38,0.12); color: var(--red-soft); border: 1px solid rgba(220,38,38,0.3); }

.risk-msg {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  padding: 0 24px;
}

.breakdown-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.bd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.bd-card .bd-label {
  font-size: 10px; letter-spacing: 1.5px; color: var(--text-muted);
  text-transform: uppercase; margin-bottom: 6px;
}
.bd-card .bd-num {
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 700; color: var(--text-primary);
}
.bd-card .bd-bar { height: 3px; background: var(--border); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.bd-card .bd-bar-fill { height: 100%; background: var(--red-primary); transition: width 1s ease; }

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 14px 14px 38px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  position: relative;
  margin-bottom: 8px;
}
.insight-card::before {
  content: '◆';
  position: absolute;
  left: 14px; top: 14px;
  color: var(--red-primary);
}

/* Shareable card */
.share-preview {
  background:
    radial-gradient(circle at 30% 30%, rgba(220,38,38,0.2), transparent 60%),
    linear-gradient(135deg, #0a0a0a, #160404);
  border: 1px solid rgba(220,38,38,0.4);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  margin: 16px 0;
  position: relative;
  overflow: hidden;
}
.share-preview::after {
  content: 'TYP';
  position: absolute;
  bottom: 12px; right: 16px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
}
.share-preview .share-num {
  font-family: var(--font-mono);
  font-size: 64px;
  color: var(--red-primary);
  text-shadow: 0 0 20px var(--red-glow);
  line-height: 1;
  font-weight: 700;
}
.share-preview .share-tag {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-top: 12px;
}
.share-preview .share-insight {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 16px;
  font-style: italic;
  line-height: 1.5;
}
.share-format-row { display: flex; gap: 8px; }
.share-format-row .btn { flex: 1; font-size: 12px; padding: 12px 8px; }

/* ============================================
   COUPLE CHAT
   ============================================ */
.chat-header {
  padding: 50px 20px 12px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.chat-back { font-size: 20px; color: var(--text-muted); padding: 4px 8px; }
.chat-partner-name { font-size: 16px; font-weight: 600; }
.chat-partner-status { font-size: 11px; color: var(--success); display: flex; align-items: center; gap: 4px; }
.chat-stream {
  padding: 16px 20px 100px;
  display: flex; flex-direction: column; gap: 8px;
}
.chat-msg {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
}
.chat-msg.theirs {
  background: var(--bg-card);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.mine {
  background: var(--red-primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg.system {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  align-self: center;
  font-size: 11px;
  text-align: center;
  color: var(--gold);
  padding: 8px 12px;
  max-width: 90%;
  border-radius: 8px;
}
.chat-time {
  font-size: 9px; color: var(--text-dim);
  margin-top: 2px;
  letter-spacing: 0.5px;
}
.chat-input-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 12px 16px 24px;
  display: flex; gap: 8px; align-items: center;
}
.chat-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-primary);
}
.chat-trigger-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.chat-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--red-glow);
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notif-item {
  display: flex; gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 8px;
  position: relative;
}
.notif-item.unread { border-color: rgba(220,38,38,0.3); }
.notif-item.unread::before {
  content: '';
  position: absolute;
  top: 14px; right: 14px;
  width: 6px; height: 6px;
  background: var(--red-primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--red-primary);
}
.notif-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.notif-text { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.notif-time { font-size: 10px; color: var(--text-dim); margin-top: 4px; }

/* ============================================
   PAYWALL
   ============================================ */
.paywall {
  padding: 50px 24px 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245,158,11,0.08), transparent 60%),
    var(--bg-primary);
}
.paywall-headline {
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: 3px;
  margin-bottom: 12px;
  line-height: 1;
}
.paywall-sub { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin-bottom: 24px; }

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 12px;
  position: relative;
}
.plan-card.popular {
  border-color: rgba(220,38,38,0.4);
  background: linear-gradient(135deg, var(--bg-card), rgba(220,38,38,0.04));
}
.plan-card.premium {
  border-color: rgba(245,158,11,0.4);
  background: linear-gradient(135deg, var(--bg-card), rgba(245,158,11,0.04));
}
.plan-popular-badge {
  position: absolute;
  top: -10px; right: 16px;
  background: var(--red-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 0 12px var(--red-glow);
}
.plan-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.plan-tag { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; letter-spacing: 0.5px; }
.plan-price {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}
.plan-price .per { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.plan-yearly { font-size: 11px; color: var(--gold); margin-bottom: 14px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 16px; }
.plan-features li {
  font-size: 13px; color: var(--text-primary);
  padding: 6px 0 6px 24px;
  position: relative;
  line-height: 1.5;
}
.plan-features li::before {
  content: '✓';
  position: absolute; left: 0; top: 6px;
  color: var(--red-primary);
  font-weight: 700;
}
.plan-card.premium .plan-features li::before { color: var(--gold); }

/* ============================================
   PROFILE
   ============================================ */
.profile-header {
  padding: 40px 0 24px;
  text-align: center;
}
.profile-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-primary), #8a1717);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  border: 3px solid rgba(220,38,38,0.3);
  box-shadow: 0 0 30px var(--red-glow);
}
.profile-name { font-family: var(--font-display); font-size: 32px; letter-spacing: 2px; line-height: 1; }
.profile-meta { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

.profile-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 20px 0 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
}
.stat-num { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 9px; letter-spacing: 1px; color: var(--text-muted); text-transform: uppercase; margin-top: 4px; font-weight: 700; }

.menu-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.menu-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: rgba(255,255,255,0.02); }
.menu-icon { font-size: 18px; width: 24px; text-align: center; }
.menu-label { flex: 1; font-size: 14px; color: var(--text-primary); }
.menu-arrow { color: var(--text-muted); font-size: 18px; }
.menu-value { font-size: 12px; color: var(--text-muted); }

/* Modal / bottom sheet */
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 90;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from {opacity:0} to {opacity:1} }
.bottom-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-secondary);
  border-radius: 20px 20px 0 0;
  padding: 24px;
  z-index: 91;
  border: 1px solid var(--border);
  border-bottom: none;
  animation: sheetUp 0.3s ease;
  max-height: 85%;
  overflow-y: auto;
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-handle {
  width: 36px; height: 4px;
  background: var(--text-dim);
  border-radius: 2px;
  margin: -8px auto 16px;
}
.sheet-title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

/* Utilities */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-1 { flex: 1; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.w-full { width: 100%; }

.divider {
  height: 1px; background: var(--border);
  margin: 24px 0;
}
.section-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 32px 0 16px;
}
.section-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.section-divider .label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700;
}

/* Hidden helper */
.hidden { display: none !important; }
