/**
 * INSTANT KLARITY — style.css
 * Complete Design System — Clean Build v1.0
 *
 * TABLE OF CONTENTS:
 * 01. Design Tokens (CSS Variables)
 * 02. Reset & Base
 * 03. Noise Texture & Ambient
 * 04. Navigation
 * 05. Layout & Wrapper
 * 06. Landing — Hero
 * 07. Landing — Input Section
 * 08. Landing — Focus Chips
 * 09. Landing — Social Proof
 * 10. Landing — How It Works
 * 11. Landing — Trust Section
 * 12. Landing — Category Grid
 * 13. Landing — Bottom CTA
 * 14. Landing — Footer
 * 15. Output — Report Header
 * 16. Output — Cards System
 * 17. Output — Card Types
 * 18. Output — Risk Badge
 * 19. Output — Move Step
 * 20. Output — Timing Lock
 * 21. Output — Action Row
 * 22. Output — Shareable Card
 * 23. Loading Overlay
 * 24. Upgrade Modal
 * 25. Utility Classes
 * 26. Animations & Keyframes
 * 27. Scrollbar
 */

/* ─────────────────────────────────────────────
   01. DESIGN TOKENS
   ───────────────────────────────────────────── */

:root {
  /* Core backgrounds */
  --bg:           #0B0B0B;
  --surface:      #111111;
  --surface2:     #161616;
  --surface3:     #1A1A1A;

  /* Borders */
  --border:       #1F1F1F;
  --border2:      #2A2A2A;
  --border3:      #333333;

  /* Text */
  --text:         #F0F0F0;
  --text2:        #C8C8C8;
  --muted:        #6B6B6B;
  --muted2:       #A1A1A1;

  /* Brand accent */
  --accent:       #4F46E5;
  --accent2:      #6366F1;
  --accent-glow:  rgba(79, 70, 229, 0.15);
  --accent-dim:   rgba(79, 70, 229, 0.08);

  /* Semantic colors */
  --green:        #16A34A;
  --green-light:  #4ADE80;
  --green-bg:     #0D1F13;
  --green-border: rgba(22, 163, 74, 0.2);

  --red:          #DC2626;
  --red-light:    #F87171;
  --red-bg:       #1F0D0D;
  --red-border:   rgba(220, 38, 38, 0.2);

  --gold:         #D97706;
  --gold-light:   #FCD34D;
  --gold-bg:      #1F1700;
  --gold-border:  rgba(217, 119, 6, 0.2);

  --blue-bg:      #0D0F1F;
  --blue-border:  rgba(79, 70, 229, 0.25);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --space-xs:     4px;
  --space-sm:     8px;
  --space-md:     16px;
  --space-lg:     24px;
  --space-xl:     40px;
  --space-2xl:    64px;

  /* Radius */
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    20px;
  --radius-full:  9999px;

  /* Shadows */
  --shadow-accent: 0 0 24px rgba(79, 70, 229, 0.3);
  --shadow-accent-hover: 0 0 36px rgba(79, 70, 229, 0.5);

  /* Transitions */
  --transition:   all 0.2s ease;
  --transition-slow: all 0.4s ease;
}

/* ─────────────────────────────────────────────
   02. RESET & BASE
   ───────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

textarea {
  font-family: var(--font-body);
  resize: none;
}

/* ─────────────────────────────────────────────
   03. NOISE TEXTURE & AMBIENT
   ───────────────────────────────────────────── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.glow-orb {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,0.07), transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

/* ─────────────────────────────────────────────
   04. NAVIGATION
   ───────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(31, 31, 31, 0.6);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text2);
}

.nav-logo span {
  color: var(--accent);
  opacity: 0.85;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-signin {
  font-size: 12px;
  color: var(--muted2);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav-signin:hover { color: var(--text); }

.nav-cta {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(79, 70, 229, 0.3);
  color: #A5B4FC;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-cta:hover {
  background: rgba(79, 70, 229, 0.25);
  border-color: rgba(79, 70, 229, 0.5);
  color: white;
}

/* ─────────────────────────────────────────────
   05. LAYOUT & WRAPPER
   ───────────────────────────────────────────── */

.wrapper {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

/* Screen toggle system */
#landingScreen { display: block; }
#outputScreen  { display: none;  }

#landingScreen.hidden { display: none; }
#outputScreen.visible { display: block; }

/* ─────────────────────────────────────────────
   06. LANDING — HERO
   ───────────────────────────────────────────── */

.hero {
  padding-top: 52px;
  padding-bottom: 48px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 6px var(--accent2);
  animation: glowPulse 2s infinite;
}

.eyebrow-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #A5B4FC;
  text-transform: uppercase;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-headline .gradient-text {
  background: linear-gradient(90deg, #A5B4FC, #818CF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted2);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto 36px;
}

/* ─────────────────────────────────────────────
   07. LANDING — INPUT SECTION
   ───────────────────────────────────────────── */

.input-section { margin-bottom: 0; }

.input-wrapper {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 4px 4px 4px 16px;
  margin-top: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-wrapper:focus-within {
  border-color: rgba(79, 70, 229, 0.5);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08),
              0 0 32px rgba(79, 70, 229, 0.1);
}

.input-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  padding-top: 14px;
  padding-bottom: 4px;
}

.situation-input {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  width: 100%;
  min-height: 72px;
  line-height: 1.6;
  padding-bottom: 10px;
  caret-color: var(--accent2);
}

.situation-input::placeholder { color: var(--muted); }

.input-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.input-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}

.char-count {
  font-size: 11px;
  color: var(--muted);
  transition: color 0.2s;
  margin-right: 8px;
}

.char-count.warning { color: var(--red-light); }

.input-error {
  display: none;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--red-light);
  line-height: 1.5;
}

.input-error.visible { display: block; }

/* Submit button */
.submit-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: var(--transition);
  box-shadow: var(--shadow-accent);
  white-space: nowrap;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent-hover);
}

.submit-btn:active { transform: translateY(0); }

.submit-btn svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.submit-btn:hover svg { transform: translateX(2px); }

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ─────────────────────────────────────────────
   08. LANDING — FOCUS CHIPS
   ───────────────────────────────────────────── */

.focus-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.focus-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  width: 100%;
  margin-bottom: 4px;
}

.focus-chip {
  padding: 6px 14px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--muted2);
  font-family: var(--font-body);
  transition: var(--transition);
  white-space: nowrap;
}

.focus-chip:hover {
  border-color: rgba(79, 70, 229, 0.3);
  color: var(--text);
  background: var(--accent-dim);
}

.focus-chip.active {
  background: rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.4);
  color: #A5B4FC;
}

/* ─────────────────────────────────────────────
   09. LANDING — SOCIAL PROOF
   ───────────────────────────────────────────── */

.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.sp-avatars {
  display: flex;
}

.sp-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--bg);
  margin-left: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.sp-avatar:first-child { margin-left: 0; }
.sp-avatar:nth-child(1) { background: #1e1b4b; color: #818CF8; }
.sp-avatar:nth-child(2) { background: #1a2e1b; color: #4ADE80; }
.sp-avatar:nth-child(3) { background: #2e1b1b; color: #F87171; }
.sp-avatar:nth-child(4) { background: #1e1e1e; color: #FCD34D; }

.sp-text {
  font-size: 11px;
  color: var(--muted);
}

.sp-text strong {
  color: var(--muted2);
  font-weight: 500;
}

/* ─────────────────────────────────────────────
   10. LANDING — HOW IT WORKS
   ───────────────────────────────────────────── */

.section-how { margin-top: 64px; }

.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 28px;
}

.steps { display: flex; flex-direction: column; }

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(31, 31, 31, 0.6);
}

.step:last-child { border-bottom: none; }

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted2);
  flex-shrink: 0;
}

.step-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.step-desc {
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.5;
  font-weight: 300;
}

/* ─────────────────────────────────────────────
   11. LANDING — TRUST SECTION
   ───────────────────────────────────────────── */

.section-trust {
  margin-top: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}

.section-trust::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,70,229,0.4), transparent);
}

.trust-headline {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.trust-sub {
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.6;
  font-weight: 300;
}

.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.trust-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted2);
}

.trust-tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   12. LANDING — CATEGORY GRID
   ───────────────────────────────────────────── */

.section-cats { margin-top: 48px; }

.cats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  transition: var(--transition);
  text-align: left;
}

.cat-card:hover {
  border-color: rgba(79, 70, 229, 0.3);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.cat-icon {
  font-size: 20px;
  margin-bottom: 8px;
  display: block;
}

.cat-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.cat-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* ─────────────────────────────────────────────
   13. LANDING — BOTTOM CTA
   ───────────────────────────────────────────── */

.bottom-cta {
  margin-top: 56px;
  text-align: center;
}

.bottom-cta-text {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.bottom-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 14px;
  color: white;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: var(--transition);
  box-shadow: 0 0 28px rgba(79, 70, 229, 0.35);
}

.bottom-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(79, 70, 229, 0.5);
}

/* ─────────────────────────────────────────────
   14. LANDING — FOOTER
   ───────────────────────────────────────────── */

.footer {
  margin-top: 56px;
  padding: 20px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-link {
  font-size: 11px;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-link:hover { color: var(--muted2); }

/* ─────────────────────────────────────────────
   15. OUTPUT — REPORT HEADER
   ───────────────────────────────────────────── */

.progress-bar {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transform-origin: left;
  animation: progressLoad 1s ease forwards;
}

.report-header {
  margin-bottom: 20px;
}

.report-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent2);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.report-question {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
}

.report-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.report-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border2);
  flex-shrink: 0;
}

.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 11px;
  color: var(--muted2);
  margin-bottom: 20px;
}

.free-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.free-badge-dot.warning { background: var(--gold); }

.transition-line {
  font-size: 12px;
  color: #4B4B6B;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  padding-left: 2px;
}

/* ─────────────────────────────────────────────
   16. OUTPUT — CARDS SYSTEM
   ───────────────────────────────────────────── */

.card {
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease forwards;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.card-icon { font-size: 14px; }

.card-body {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
}

.card-body strong { font-weight: 600; }

/* ─────────────────────────────────────────────
   17. OUTPUT — CARD TYPES
   ───────────────────────────────────────────── */

/* Card 1 — Situation Read */
.card-1 {
  background: var(--surface);
  animation-delay: 0.10s;
}
.card-1:hover {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 0 20px rgba(255,255,255,0.02);
}
.tag-read {
  background: rgba(255,255,255,0.06);
  color: var(--muted2);
}

/* Card 2 — Opportunity */
.card-2 {
  background: var(--green-bg);
  border-color: var(--green-border);
  animation-delay: 0.22s;
}
.card-2:hover {
  border-color: rgba(22,163,74,0.35);
  box-shadow: 0 0 20px rgba(22,163,74,0.06);
}
.tag-opp {
  background: rgba(22,163,74,0.15);
  color: var(--green-light);
}

/* Card 3 — Risk */
.card-3 {
  background: var(--red-bg);
  border-color: var(--red-border);
  animation-delay: 0.34s;
}
.card-3:hover {
  border-color: rgba(220,38,38,0.35);
  box-shadow: 0 0 20px rgba(220,38,38,0.06);
}
.tag-risk {
  background: rgba(220,38,38,0.15);
  color: var(--red-light);
}

/* Card 4 — Recommended Move */
.card-4 {
  background: var(--blue-bg);
  border-color: var(--blue-border);
  animation-delay: 0.46s;
}
.card-4:hover {
  border-color: rgba(79,70,229,0.45);
  box-shadow: 0 0 20px rgba(79,70,229,0.08);
}
.tag-move {
  background: rgba(79,70,229,0.2);
  color: #A5B4FC;
}

/* Card 5 — Timing */
.card-5 {
  background: var(--gold-bg);
  border-color: var(--gold-border);
  animation-delay: 0.58s;
}
.card-5:hover {
  border-color: rgba(217,119,6,0.35);
  box-shadow: 0 0 20px rgba(217,119,6,0.06);
}
.tag-timing {
  background: rgba(217,119,6,0.15);
  color: var(--gold-light);
}

/* ─────────────────────────────────────────────
   18. OUTPUT — RISK BADGE
   ───────────────────────────────────────────── */

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.25);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin-bottom: 12px;
}

.risk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  flex-shrink: 0;
}

.risk-dot.risk-pulse { animation: riskPulse 2s infinite; }

.risk-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--red-light);
  letter-spacing: 0.08em;
}

/* ─────────────────────────────────────────────
   19. OUTPUT — MOVE STEP
   ───────────────────────────────────────────── */

.move-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
}

.move-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(79,70,229,0.2);
  border: 1px solid rgba(79,70,229,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #A5B4FC;
  flex-shrink: 0;
  margin-top: 1px;
}

.move-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* ─────────────────────────────────────────────
   20. OUTPUT — TIMING LOCK
   ───────────────────────────────────────────── */

.timing-locked { position: relative; }

.timing-blur {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.timing-overlay {
  background: rgba(11,11,11,0.75);
  backdrop-filter: blur(2px);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(217,119,6,0.2);
  margin-top: -8px;
}

.timing-detected {
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.timing-detected::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 8px var(--gold-light);
  animation: glowPulse 2s infinite;
  flex-shrink: 0;
}

.timing-unlocked { }

.timing-unlocked .timing-headline {
  font-weight: 600;
  color: var(--gold-light);
  font-size: 15px;
  margin-bottom: 10px;
}

.timing-unlocked .timing-detail {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 10px;
}

.timing-unlocked .timing-cta {
  font-size: 12px;
  color: var(--gold);
  font-style: italic;
}

.unlock-btn {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  color: white;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: var(--transition);
  box-shadow: 0 0 24px rgba(79,70,229,0.35);
  position: relative;
  overflow: hidden;
}

.unlock-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.unlock-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(79,70,229,0.5);
}

.unlock-btn:hover::after { opacity: 1; }

/* ─────────────────────────────────────────────
   21. OUTPUT — ACTION ROW
   ───────────────────────────────────────────── */

.action-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
  animation-delay: 0.75s;
}

.share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  color: var(--muted2);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-dim);
}

.new-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  background: var(--accent);
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}

.new-btn:hover { background: var(--accent2); }

/* Outcome tracker */
.outcome-tracker {
  margin-top: 16px;
  display: none;
}

.outcome-tracker.visible { display: block; }

.outcome-label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

.outcome-btns {
  display: flex;
  gap: 8px;
}

.outcome-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
  transition: var(--transition);
}

.outcome-btn-yes {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green-light);
}

.outcome-btn-partial {
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--muted2);
}

.outcome-btn-no {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  color: var(--red-light);
}

.outcome-thanks {
  font-size: 12px;
  color: var(--green-light);
  text-align: center;
  padding: 10px;
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────────
   22. OUTPUT — SHAREABLE CARD
   ───────────────────────────────────────────── */

.share-card-section {
  margin-top: 32px;
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: var(--transition-slow);
}

.share-card-section.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.share-card-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  text-align: center;
}

.share-card {
  background: #0D0D0D;
  border: 1px solid #222;
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.share-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(79,70,229,0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.sc-brand {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent2);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.sc-situation {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sc-question {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.4;
}

.sc-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
  margin-bottom: 16px;
}

.sc-insight-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sc-insight {
  font-size: 14px;
  color: #D4D4D4;
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.sc-rec-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(79,70,229,0.1);
  border: 1px solid rgba(79,70,229,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.sc-rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
}

.sc-rec-text {
  font-size: 13px;
  font-weight: 500;
  color: #A5B4FC;
  line-height: 1.4;
}

.sc-footer {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sc-footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--muted2);
  font-size: 11px;
}

/* ─────────────────────────────────────────────
   23. LOADING OVERLAY
   ───────────────────────────────────────────── */

.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,11,11,0.96);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.loading-overlay.active { display: flex; }

.loading-logo {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text2);
}

.loading-logo span { color: var(--accent); }

.loading-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.loading-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0);
}

.loading-fill.active {
  animation: loadingProgress 3s ease forwards;
}

.loading-text {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: opacity 0.2s;
}

/* ─────────────────────────────────────────────
   24. UPGRADE MODAL
   ───────────────────────────────────────────── */

.upgrade-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(11,11,11,0.96);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.upgrade-modal.active { display: flex; }

.upgrade-inner {
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.upgrade-brand {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent2);
  margin-bottom: 20px;
}

.upgrade-headline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.upgrade-sub {
  font-size: 14px;
  color: var(--muted2);
  margin-bottom: 28px;
  line-height: 1.6;
}

.upgrade-plan {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  text-align: left;
}

.upgrade-plan-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.upgrade-plan-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-display);
}

.upgrade-plan-price span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  font-family: var(--font-body);
}

.upgrade-plan-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.upgrade-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 0 28px rgba(79,70,229,0.4);
  transition: var(--transition);
}

.upgrade-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(79,70,229,0.5);
}

.upgrade-dismiss {
  font-size: 13px;
  color: var(--muted);
  padding: 8px;
  transition: color 0.2s;
}

.upgrade-dismiss:hover { color: var(--muted2); }

/* ─────────────────────────────────────────────
   25. UTILITY CLASSES
   ───────────────────────────────────────────── */

.hidden  { display: none !important; }
.visible { display: block !important; }

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.5s ease forwards;
}

.text-accent  { color: var(--accent2); }
.text-muted   { color: var(--muted); }
.text-muted2  { color: var(--muted2); }
.font-display { font-family: var(--font-display); }

/* ─────────────────────────────────────────────
   26. ANIMATIONS & KEYFRAMES
   ───────────────────────────────────────────── */

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

@keyframes glowPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

@keyframes riskPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px var(--red); }
  50%       { opacity: 0.6; transform: scale(0.85); box-shadow: 0 0 4px var(--red); }
}

@keyframes progressLoad {
  0%   { transform: scaleX(0); }
  60%  { transform: scaleX(0.75); }
  90%  { transform: scaleX(0.93); }
  100% { transform: scaleX(1); }
}

@keyframes loadingProgress {
  0%   { transform: scaleX(0); }
  60%  { transform: scaleX(0.7); }
  90%  { transform: scaleX(0.92); }
  100% { transform: scaleX(1); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ─────────────────────────────────────────────
   27. SCROLLBAR
   ───────────────────────────────────────────── */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--border3); }

/* ─────────────────────────────────────────────
   28. PERSONAL PATTERN FIELDS — v1.2
   ───────────────────────────────────────────── */

.pattern-row {
  margin-top: 12px;
  margin-bottom: 4px;
}

.pattern-fields {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.pattern-field {
  flex: 1;
}

.pattern-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  box-sizing: border-box;
  -moz-appearance: textfield;
}

.pattern-input::-webkit-outer-spin-button,
.pattern-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pattern-input::placeholder {
  color: var(--muted);
}

.pattern-input:focus {
  border-color: var(--border3);
  background: var(--surface3);
}

.pattern-hint {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-body);
  line-height: 1.4;
}

.pattern-privacy {
  color: var(--muted);
  margin-left: 4px;
}

/* Calibration notice on output */
.calibration-notice {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 8px 16px;
  margin: -8px 0 16px;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────
   29. RATE LIMIT NOTICE — v1.2
   ───────────────────────────────────────────── */

.rate-limit-notice {
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 16px;
}

/* ─────────────────────────────────────────────
   30. ERROR STATES — v1.3
   ───────────────────────────────────────────── */

.input-error.warning {
  background: var(--gold-bg);
  border-color: var(--gold-border);
  color: var(--gold-light);
}

/* ─────────────────────────────────────────────
   32. EMAIL GATE MODAL
   Appears after submit, before result is shown.
   Same visual language as upgrade modal.
   ───────────────────────────────────────────── */

.email-gate-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.email-gate-modal.active {
  display: flex;
}

.email-gate-inner {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
}

.email-gate-brand {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent2);
  margin-bottom: 20px;
}

.email-gate-headline {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 12px;
}

.email-gate-sub {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 24px;
}

.email-gate-field {
  margin-bottom: 16px;
}

.email-gate-input {
  width: 100%;
  background: var(--surface3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  text-align: center;
}

.email-gate-input::placeholder {
  color: var(--muted);
}

.email-gate-input:focus {
  border-color: var(--accent2);
}

.email-gate-error {
  font-size: 12px;
  color: #F87171;
  margin-top: 8px;
  min-height: 16px;
}

.email-gate-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-bottom: 16px;
}

.email-gate-btn:hover {
  background: var(--accent2);
}

.email-gate-btn:active {
  transform: scale(0.98);
}

.email-gate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.email-gate-privacy {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 480px) {
  .email-gate-inner {
    padding: 32px 20px;
  }
  .email-gate-headline {
    font-size: 20px;
  }
}

/* ─────────────────────────────────────────────
   33. PREVIEW BLUR MODEL — v1.9
   Sentence-based preview with soft gradient fade
   Free users see first sentence + blur
   Paid users see full cards
   ───────────────────────────────────────────── */

.preview-visible {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 10px;
}

.preview-text {
  color: var(--text);
}

.timing-visible {
  white-space: pre-line;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 10px;
}

.preview-hidden-wrap {
  position: relative;
  min-height: 52px;
  overflow: hidden;
}

.preview-hidden-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text2);
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  white-space: pre-line;
}

.preview-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 11, 0.08) 0%,
    rgba(11, 11, 11, 0.42) 35%,
    rgba(11, 11, 11, 0.85) 100%
  );
  pointer-events: none;
  border-radius: 10px;
}

/* ── Unlock Report Block ── */
.unlock-report-block {
  margin: 24px 0;
  text-align: center;
  padding: 0 4px;
}

.unlock-report-copy {
  font-size: 13px;
  color: var(--muted2);
  margin-bottom: 12px;
  line-height: 1.5;
  font-family: var(--font-body);
}

.unlock-report-btn {
  width: 100%;
  padding: 16px 18px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  letter-spacing: 0.01em;
}

.unlock-report-btn:hover {
  opacity: 0.92;
}

.unlock-report-btn:active {
  transform: scale(0.98);
}

@media (max-width: 480px) {
  .preview-visible {
    font-size: 14px;
    line-height: 1.55;
  }

  .preview-hidden-text {
    font-size: 13px;
    line-height: 1.55;
  }

  .unlock-report-btn {
    padding: 15px 16px;
    font-size: 15px;
  }
}

/* ── Timing card stronger blur ── */
.card-5 .preview-hidden-text {
  filter: blur(6px);
}

.card-5 .preview-fade {
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 11, 0.2) 0%,
    rgba(11, 11, 11, 0.7) 30%,
    rgba(11, 11, 11, 0.95) 100%
  );
}

/* ══════════════════════════════════════════════
   PAID TOAST — Fix #2
   ══════════════════════════════════════════════ */
.paid-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: #1a1a2e;
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #a5b4fc;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.paid-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════
   RETRY BLOCK — Fix #6
   ══════════════════════════════════════════════ */
.retry-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 80px 24px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.retry-message {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--text-secondary, #9ca3af);
  line-height: 1.6;
}

.retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  letter-spacing: 0.02em;
}

.retry-btn:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.6);
  color: #c7d2fe;
}

/* ══════════════════════════════════════════════
   NAV AUTH — signed-in state + dropdown
   ══════════════════════════════════════════════ */

.nav-auth-wrap {
  position: relative;
}

.nav-signin.signed-in {
  color: var(--accent2);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-signin.signed-in:hover {
  color: var(--text);
}

.nav-auth-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 500;
  overflow: hidden;
}

.nav-auth-dropdown.open {
  display: block;
}

.nav-auth-email {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted2);
  word-break: break-all;
  border-bottom: 1px solid var(--border);
}

.nav-auth-divider {
  display: none;
}

.nav-auth-item {
  width: 100%;
  text-align: left;
  padding: 11px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text2);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.nav-auth-item:hover {
  background: var(--surface3);
  color: var(--text);
}

.nav-auth-signout {
  color: #F87171;
}

.nav-auth-signout:hover {
  background: rgba(248, 113, 113, 0.08);
  color: #F87171;
}

/* ══════════════════════════════════════════════
   GOOGLE GATE — primary gate modal styles
   ══════════════════════════════════════════════ */

.gate-google {
  margin: 0 auto 12px;
  display: flex;
  justify-content: center;
}

.gate-auth-status {
  font-size: 12px;
  min-height: 18px;
  text-align: center;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.gate-auth-status.error   { color: #F87171; }
.gate-auth-status.success { color: #4ADE80; }

.gate-email-toggle {
  text-align: center;
  margin: 4px 0 0;
}

.gate-email-link {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  padding: 4px 0;
}

.gate-email-link:hover {
  color: var(--text2);
}

.gate-email-fallback {
  display: none;
  margin-top: 14px;
}

.gate-email-fallback.open {
  display: block;
}

/* ══════════════════════════════════════════════
   UPGRADE MODAL — restructured single path
   ══════════════════════════════════════════════ */

.upgrade-already-paid {
  text-align: center;
  margin-top: 4px;
}

.upgrade-already-paid .upgrade-path-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted2);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.upgrade-already-paid .upgrade-path-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.upgrade-already-paid .google-signin-container {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}


/* ══════════════════════════════════════════════
   BLUR PLACEHOLDER — subtle visual weight for free users
   Gives the impression of hidden content without exposing real data
   ══════════════════════════════════════════════ */

.preview-placeholder {
  padding: 4px 0 8px;
}

.placeholder-line {
  height: 13px;
  background: var(--text2, rgba(255,255,255,0.15));
  border-radius: 4px;
  margin-bottom: 10px;
  opacity: 0.25;
  filter: blur(3.5px);
}

.placeholder-line:last-child {
  margin-bottom: 0;
}


/* Guest state — identified but not paid */
.nav-signin.guest {
  color: var(--muted2);
  font-weight: 400;
}
.nav-signin.guest:hover {
  color: var(--text2);
}
