/* ==========================================================================
   DELTASPEND — EDITORIAL FINANCIAL REGRET MIRROR
   Pure Hand-Crafted Dark & Light Luxury Design System
   ========================================================================== */

/* 1. CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
button, input, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
html {
  scroll-behavior: smooth;
}

/* 2. Design Tokens: Dark Theme (Default) */
:root {
  --bg: #050505;
  --surface: #0c0d10;
  --surface-hover: #13151b;
  --surface-2: #1a1c24;
  --border: #1e2029;
  --border-hover: #2d303d;
  --text: #f0ebe3;
  --text-muted: #8a857b;
  --text-dim: #545149;
  --gold: #c8a96e;
  --gold-bright: #dfc08a;
  --gold-dim: rgba(200, 169, 110, 0.12);
  --gold-glow: rgba(200, 169, 110, 0.25);
  --red: #d44a4a;
  --red-glow: rgba(212, 74, 74, 0.22);
  --green: #4ad46a;
  --green-glow: rgba(74, 212, 106, 0.22);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 100px;
  --font-heading: 'DM Serif Display', 'Noto Sans Devanagari', 'Noto Sans JP', Georgia, serif;
  --font-body: 'Inter', 'Noto Sans Devanagari', 'Noto Sans JP', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --grain-opacity: 0.035;
  --grain-invert: 0;
}

/* 3. Design Tokens: Light Theme (Archival Broadsheet / Luxury Newsprint) */
[data-theme="light"] {
  --bg: #f7f4ec;
  --surface: #ffffff;
  --surface-hover: #f1ebd9;
  --surface-2: #e9e2ce;
  --border: #dfd7c5;
  --border-hover: #c4b9a0;
  --text: #141311;
  --text-muted: #5e594f;
  --text-dim: #8c8474;
  --gold: #8f6516;
  --gold-bright: #a8781d;
  --gold-dim: rgba(143, 101, 22, 0.10);
  --gold-glow: rgba(143, 101, 22, 0.22);
  --red: #b82a2a;
  --red-glow: rgba(184, 42, 42, 0.15);
  --green: #176d37;
  --green-glow: rgba(23, 109, 55, 0.15);
  --grain-opacity: 0.035;
  --grain-invert: 1;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.font-mono { font-family: var(--font-mono); }
.gold-text { color: var(--gold) !important; }

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

/* 4. Film Grain Overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--grain-opacity);
  filter: invert(var(--grain-invert));
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  transition: opacity 0.35s ease;
}

/* 5. Floating Controls (Theme Toggle + Audio Toggle) */
.floating-controls {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Animated Tactile Theme Switcher */
.theme-toggle-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.theme-toggle-btn:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.theme-toggle-btn:active .theme-switch-thumb {
  width: 28px; /* Subtle tactile elongation on click/press */
}

/* Symmetrical Track (64px wide x 28px high) */
.theme-switch-track {
  width: 64px;
  height: 28px;
  background: var(--surface-2);
  border-radius: 100px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  box-sizing: border-box;
  transition: background 0.3s ease;
}

/* Icons with subtle scale & rotation transitions */
.theme-icon {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
  transition: color 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-sun { 
  color: var(--text-dim); 
  opacity: 0.6;
  transform: scale(0.9) rotate(-15deg);
}
.icon-moon { 
  color: var(--gold-bright); 
  opacity: 1;
  transform: scale(1.05) rotate(0deg);
}

/* Mathematically Centered Thumb (22px in 28px height = exactly 3px padding everywhere) */
.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.2);
  transition: transform 0.38s cubic-bezier(0.34, 1.4, 0.64, 1), 
              width 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease, 
              border-color 0.3s ease;
  z-index: 1;
}

/* Light Theme: Thumb translates exactly (64 - 22 - 3 - 3 = 36px) leaving exactly 3px on the right */
[data-theme="light"] .theme-switch-thumb {
  transform: translateX(36px);
  background: #ffffff;
  border-color: #dfd7c5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .icon-sun { 
  color: var(--gold); 
  opacity: 1;
  transform: scale(1.05) rotate(15deg); 
}
[data-theme="light"] .icon-moon { 
  color: var(--text-dim); 
  opacity: 0.55;
  transform: scale(0.9) rotate(20deg);
}

/* Audio Toggle */
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.sound-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Top Editorial Navigation Bar */
.top-editorial-bar {
  width: 100%;
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  background: var(--bg);
  position: relative;
  z-index: 100;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.top-editorial-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.top-bar-left {
  display: flex;
  align-items: center;
}

/* Brand Lockup (Fintech Minimalist Luxury) */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  cursor: pointer;
}
.brand-delta-icon {
  width: 82px;
  height: 72px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 16px rgba(229, 169, 60, 0.45));
  transition: transform 0.25s ease;
}
.brand-lockup:hover .brand-delta-icon {
  transform: scale(1.05);
}
.brand-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.brand-wordmark {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 3.0rem;
  line-height: 0.92;
  letter-spacing: -0.04em;
  display: flex;
  align-items: baseline;
}
.wm-white {
  color: var(--text);
}
.wm-gold {
  color: var(--gold);
}
.wm-domain {
  color: var(--text-dim);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-left: 3px;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}
.brand-lockup:hover .wm-domain {
  opacity: 1;
  color: var(--gold);
}
.brand-line {
  display: none; /* Removed heavy divider for clean editorial whitespace */
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  line-height: 1;
  margin-top: 10px;
  padding-left: 2px;
}
.tag-dot {
  color: var(--gold);
  margin: 0 5px;
  opacity: 0.8;
}

/* Top Bar Right */
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.suite-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s ease;
}
.suite-badge:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-dim);
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Multi-Currency Selector */
.currency-switch-wrap {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.currency-btn {
  padding: 5px 9px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.22s ease;
  line-height: 1;
  white-space: nowrap;
}
.currency-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
}
.currency-btn.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* Multi-Language Selector Dropdown */
.lang-switch-wrap {
  position: relative;
  display: inline-flex;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  line-height: 1;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] {
  border-color: var(--gold);
  color: var(--gold);
}
.lang-icon {
  font-size: 12px;
  line-height: 1;
}
.lang-caret {
  font-size: 9px;
  color: var(--text-dim);
  transition: transform 0.2s ease;
}
.lang-btn[aria-expanded="true"] .lang-caret {
  transform: rotate(180deg);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 140px;
  z-index: 1000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--gold-dim);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: dropdownFadeIn 0.2s ease;
}
@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.lang-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  border: none;
  background: transparent;
  width: 100%;
  text-decoration: none;
  user-select: none;
}
.lang-opt:hover {
  background: var(--surface-hover);
  color: var(--gold);
}
.lang-opt.active {
  background: var(--gold-dim);
  color: var(--gold-bright);
  font-weight: 600;
}

/* Light Theme Overrides for Language Dropdown */
[data-theme="light"] .lang-btn {
  background: #ffffff;
  border-color: #dfd7c5;
  color: #726b5d;
}
[data-theme="light"] .lang-btn:hover, [data-theme="light"] .lang-btn[aria-expanded="true"] {
  border-color: #8f6516;
  color: #8f6516;
}
[data-theme="light"] .lang-dropdown {
  background: #ffffff;
  border-color: #dfd7c5;
  box-shadow: 0 10px 28px rgba(143, 101, 22, 0.12);
}
[data-theme="light"] .lang-opt {
  color: #2c2925;
}
[data-theme="light"] .lang-opt:hover {
  background: #f7f4ec;
  color: #8f6516;
}
[data-theme="light"] .lang-opt.active {
  background: rgba(143, 101, 22, 0.10);
  color: #8f6516;
}

/* Floating Toast Notification */
.ds-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--surface-2);
  border: 1px solid var(--gold);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 20px var(--gold-glow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  max-width: 90vw;
  text-align: center;
}
.ds-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Shared Calculation Loaded Banner */
.shared-banner-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.shared-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  border-radius: 100px;
  color: var(--gold-bright);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.shared-banner a {
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  margin-left: 4px;
}
.shared-banner a:hover {
  color: var(--gold);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 4px;
}

/* Badge */
.badge {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(229, 169, 60, 0.4);
  box-shadow: 0 0 16px rgba(229, 169, 60, 0.15);
  padding: 8px 22px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 28px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 12px 32px;
  min-height: 46px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}
.btn-primary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn-primary:hover {
  background: var(--gold-dim);
  border-color: var(--gold-bright);
  box-shadow: 0 0 30px var(--gold-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 32px;
  min-height: 46px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}
.btn-secondary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--surface-hover);
}

.btn-gold {
  background: var(--gold) !important;
  color: #050505 !important;
  border-color: var(--gold) !important;
  font-weight: 600;
}
.btn-gold:hover {
  background: var(--gold-bright) !important;
  box-shadow: 0 0 40px var(--gold-glow);
}

/* Solid Luxury Gold Pill Button (Hero Primary CTA) */
.btn-pill-gold {
  background: linear-gradient(135deg, #FFE182 0%, #E5A93C 55%, #B37D22 100%) !important;
  color: #12100a !important;
  border: 1px solid #FFE182 !important;
  border-radius: 100px !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  letter-spacing: -0.01em;
  padding: 16px 38px !important;
  box-shadow: 0 4px 20px rgba(229, 169, 60, 0.35), 0 0 40px rgba(229, 169, 60, 0.2) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-pill-gold svg {
  stroke: #12100a !important;
  transition: transform 0.25s ease;
}
.btn-pill-gold:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #FFF0B3 0%, #F5BA4C 55%, #C98D2E 100%) !important;
  box-shadow: 0 8px 30px rgba(229, 169, 60, 0.5), 0 0 60px rgba(229, 169, 60, 0.3) !important;
  border-color: #FFF0B3 !important;
}
.btn-pill-gold:hover svg {
  transform: translateX(4px);
}
.btn-pill-gold:active {
  transform: translateY(1px) scale(0.99);
}

/* Hero Section */
#hero {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}
.hero-content { max-width: 820px; }
#hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3.4rem, 7.5vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 28px;
  position: relative;
  text-wrap: balance;
}
#hero h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero-hook {
  display: block;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.hero-sub em {
  font-style: italic;
  color: var(--gold);
}

/* Interactive Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 100px;
  transition: transform 0.25s ease, background 0.25s ease;
  user-select: none;
}
.scroll-hint:hover {
  transform: translateY(4px);
  background: var(--gold-dim);
}
.scroll-hint span {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  transition: color 0.25s ease;
}
.scroll-hint:hover span {
  color: var(--gold);
}
.scroll-line {
  width: 1.5px;
  height: 24px;
  background: var(--text-dim);
  animation: scrollPulse 2s ease-in-out infinite;
  transition: background 0.25s ease;
}
.scroll-hint:hover .scroll-line {
  background: var(--gold);
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Calculator Wizard (In document flow) */
#calculator {
  max-width: 740px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 40px;
}

/* Glassmorphic Specimen Frame */
.calc-glass-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px 40px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22), 0 1px 2px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
[data-theme="light"] .calc-glass-frame {
  box-shadow: 0 16px 48px rgba(143, 101, 22, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Hairline Progressive Gold Progress Bar */
.calc-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--surface-2);
}
.calc-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
  box-shadow: 0 0 10px var(--gold-glow);
  transition: width 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.progress-dots {
  display: flex;
  gap: 10px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--border-hover);
  background: transparent;
  transition: all 0.4s ease;
}
.dot.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}
.dot.completed {
  background: var(--gold);
  border-color: var(--gold);
  opacity: 0.5;
}
.step-counter {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.steps-viewport {
  flex: 1;
  position: relative;
  min-height: 340px;
}
.step {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}
.step-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.8vw, 2.3rem);
  color: var(--text);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.step-desc em {
  color: var(--gold);
  font-style: italic;
}

/* Category Grid (10 items: 5 cols on desktop, 2 cols on mobile) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 600px) {
  .category-grid { grid-template-columns: repeat(5, 1fr); }
}
.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  min-height: 88px;
}
.chip span:last-child {
  line-height: 1.25;
}
.chip:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-2px);
}
.chip.selected {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 16px rgba(200, 169, 110, 0.15);
}
.chip-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.custom-input {
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.3s;
}
.custom-input:focus {
  border-color: var(--gold);
}

/* Step 2: Amount */
.amount-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 36px 0 28px;
}
.currency {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 4.8rem);
  color: var(--gold);
  line-height: 1;
}
#amount-input {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 4.8rem);
  color: var(--text);
  background: transparent;
  border: none;
  width: 4.5ch;
  text-align: center;
  line-height: 1;
  caret-color: var(--gold);
}
#amount-input::-webkit-inner-spin-button,
#amount-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#amount-input[type=number] { -moz-appearance: textfield; }

.presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.preset {
  padding: 10px 20px;
  min-height: 44px;
  min-width: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.preset:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.preset:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.preset.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
  box-shadow: 0 0 12px rgba(200, 169, 110, 0.15);
}

/* Step 3: Frequency */
.freq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 480px) {
  .freq-grid { grid-template-columns: repeat(3, 1fr); }
}
.freq-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}
.freq-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}
.freq-btn.selected {
  background: var(--gold-dim);
  border-color: var(--gold);
}
.freq-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.freq-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.freq-btn.selected .freq-label { color: var(--gold); }
.freq-btn.selected .freq-desc { color: var(--gold-bright); }

/* Step 4: Period */
.period-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  margin: 32px 0 24px;
}
.period-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.period-field label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.period-field select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 40px 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%238a857b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.3s;
}
.period-field select:focus { border-color: var(--gold); }
.period-dash {
  font-size: 1.5rem;
  color: var(--text-dim);
  padding-bottom: 12px;
}
.period-summary {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  min-height: 24px;
}

/* Step 5: Stock Grid (12 Assets: Indices, Crypto, Commodities, Tech Giants, Compounders) */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 520px) {
  .stock-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 680px) {
  .stock-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
.stock-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s ease;
}
.stock-sparkline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 28px;
  color: var(--text-dim);
  opacity: 0.25;
  transition: opacity 0.3s ease, color 0.3s ease;
  pointer-events: none;
}
.stock-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.stock-card:hover .stock-sparkline {
  opacity: 0.5;
  color: var(--gold);
}
.stock-card.selected {
  background: var(--gold-dim);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(200, 169, 110, 0.15);
}
.stock-card.selected .stock-sparkline {
  opacity: 0.75;
  color: var(--gold);
}
.stock-icon { font-size: 1.8rem; line-height: 1; }
.stock-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.stock-card.selected .stock-name { color: var(--gold); }
.stock-ticker {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Calculator Nav */
.calc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 10;
}
.calc-nav-spacer { flex: 1; }

#btn-calculate {
  position: relative;
  z-index: 15;
  box-shadow: 0 0 28px rgba(229, 169, 60, 0.35);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
#btn-calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 45px rgba(229, 169, 60, 0.55);
}

/* Results Section (Comparative Split Ledger) */
#results {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}
.results-container {
  max-width: 820px;
  text-align: center;
  width: 100%;
}

.verdict-banner {
  margin-bottom: 32px;
}
.verdict-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-block;
}
.verdict-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  color: var(--text);
  line-height: 1.15;
}

/* Comparative Split Ledger Cards */
.split-ledger {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
@media (max-width: 680px) {
  .split-ledger {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.ledger-col {
  padding: 34px 26px;
  border-radius: var(--radius);
  background: rgba(12, 13, 16, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  position: relative;
  text-align: center;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.ledger-spent {
  border-color: rgba(212, 74, 74, 0.35);
  background: linear-gradient(180deg, rgba(212, 74, 74, 0.08) 0%, rgba(12, 13, 16, 0.7) 100%);
}
[data-theme="light"] .ledger-spent {
  border-color: rgba(184, 42, 42, 0.25);
  background: linear-gradient(180deg, rgba(184, 42, 42, 0.06) 0%, rgba(255, 255, 255, 0.85) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px rgba(184, 42, 42, 0.08);
}

.ledger-gained {
  border-color: rgba(74, 212, 106, 0.4);
  background: linear-gradient(180deg, rgba(74, 212, 106, 0.08) 0%, rgba(12, 13, 16, 0.7) 100%);
  box-shadow: 0 18px 48px rgba(74, 212, 106, 0.12);
}
[data-theme="light"] .ledger-gained {
  border-color: rgba(23, 109, 55, 0.3);
  background: linear-gradient(180deg, rgba(23, 109, 55, 0.08) 0%, rgba(255, 255, 255, 0.85) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(23, 109, 55, 0.1);
}

.ledger-tag {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.ledger-spent .ledger-tag {
  color: var(--red);
  background: var(--red-glow);
  border: 1px solid rgba(212, 74, 74, 0.2);
}
.ledger-gained .ledger-tag {
  color: var(--green);
  background: var(--green-glow);
  border: 1px solid rgba(74, 212, 106, 0.2);
}

.ledger-divider-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-arrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.results-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 8px;
}
.results-amount {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 8px;
}
.results-amount.red {
  color: var(--red);
  text-shadow: 0 0 40px var(--red-glow);
}
.results-amount.green {
  color: var(--green);
  text-shadow: 0 0 40px var(--green-glow);
}
.results-on, .results-multiplier {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.results-on span, .results-multiplier strong {
  color: var(--text);
  font-weight: 600;
}
.results-multiplier .gold {
  color: var(--gold);
}
.text-green {
  color: var(--green);
  font-weight: 600;
}
.results-math-receipt {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .results-math-receipt {
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* Live Rate Pill in Step 2 & Step 3 */
.live-rate-pill {
  margin-top: 20px;
  display: inline-block;
  padding: 8px 18px;
  background: var(--gold-dim);
  border: 1px solid rgba(229, 169, 60, 0.3);
  border-radius: 100px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-align: center;
  transition: all 0.3s ease;
}
[data-theme="light"] .live-rate-pill {
  background: rgba(184, 141, 60, 0.1);
  border-color: rgba(184, 141, 60, 0.35);
  color: #8c671b;
}

.results-equivalent {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 28px;
  padding: 20px 28px;
  background: rgba(12, 13, 16, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .results-equivalent {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.results-regret {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}
.regret-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.regret-badge {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 7px 20px;
  border-radius: 100px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.results-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.results-actions .btn-primary,
.results-actions .btn-secondary {
  border-radius: 100px !important; /* Full smooth luxury pill curvature */
  padding: 14px 34px !important;
}

/* Newsletter Email Capture Moat */
.newsletter-card {
  text-align: left;
  padding: 34px 32px 30px;
  background: rgba(12, 13, 16, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .newsletter-card {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 44px rgba(143, 101, 22, 0.07);
}
.newsletter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.newsletter-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.newsletter-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.newsletter-sub {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.5;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.newsletter-input-wrap {
  flex: 1;
  min-width: 240px;
  position: relative;
}
.newsletter-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(26, 28, 36, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
[data-theme="light"] .newsletter-input {
  background: rgba(245, 241, 230, 0.7);
  border-color: rgba(223, 215, 197, 0.9);
}
.newsletter-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.newsletter-input::placeholder {
  color: var(--text-dim);
}
.newsletter-btn {
  white-space: nowrap;
  padding: 14px 28px !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.newsletter-privacy {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 10px;
  display: block;
}
.newsletter-error {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 6px;
  display: none;
}
.newsletter-error.visible {
  display: block;
}
.newsletter-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(74, 212, 106, 0.08);
  border: 1px solid rgba(74, 212, 106, 0.3);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 8px;
}
.newsletter-success.visible {
  display: flex;
}
.newsletter-success-icon {
  font-size: 1.2rem;
  color: var(--gold);
}
.newsletter-subscribed-wrap {
  margin-bottom: 8px;
}
.newsletter-subscribed-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(200, 169, 110, 0.1);
  border: 1px solid rgba(200, 169, 110, 0.3);
  border-radius: 100px;
  color: var(--gold);
  font-size: 0.85rem;
}

/* Monetization Box */
.monetization-box {
  text-align: left;
  padding: 34px 32px 30px;
  background: rgba(12, 13, 16, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
[data-theme="light"] .monetization-box {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 44px rgba(143, 101, 22, 0.07);
}
.monetize-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.monetize-heading {
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.monetize-sub {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.affiliate-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.aff-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(26, 28, 36, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="light"] .aff-item {
  background: rgba(241, 235, 217, 0.6);
  border-color: rgba(223, 215, 197, 0.8);
}
.aff-item:hover {
  background: var(--surface-hover);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.aff-logo { font-size: 22px; }
.aff-info { flex: 1; }
.aff-title { font-weight: 600; font-size: 14.5px; color: var(--text); display: block; }
.aff-desc { font-size: 12px; color: var(--gold); margin-top: 2px; display: block; }
.aff-go { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: 0.05em; }

/* Certificate Section */
#certificate-section {
  padding: 4rem 1.5rem;
  text-align: center;
}
.cert-meta-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 12px;
}
.cert-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 6px;
}
.cert-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.cert-canvas-wrap {
  margin: 0 auto 24px;
  max-width: 1020px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}
#certificate-canvas {
  width: 100%;
  height: auto;
  display: block;
}
.cert-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Modern Synthesized Footer */
#footer {
  padding: 2.25rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-delta-icon {
  width: 28px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(229, 169, 60, 0.4));
}
.fb-delta {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
}
.fb-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.fb-tagline {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-left: 6px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.2s ease;
}
.footer-nav-link:hover {
  color: var(--gold);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.disclaimer {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0;
}

.disclaimer-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(143, 101, 22, 0.28);
  border-radius: 4px;
  padding: 1px 5px;
  margin-right: 5px;
  display: inline-block;
  vertical-align: 1px;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .footer-nav {
    gap: 0.85rem;
  }
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  padding: 28px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.modal-header h3 { font-family: var(--font-heading); font-size: 20px; color: var(--gold); }
.modal-close {
  font-size: 26px;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-body code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gold);
}

/* Animations */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.shake { animation: shake 0.4s ease; }

/* Mobile Responsiveness */
@media (max-width: 720px) {
  .top-editorial-bar { padding: 14px 16px 12px; }
  .top-editorial-inner {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .top-bar-left {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .brand-lockup {
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .brand-delta-icon {
    width: 50px;
    height: 44px;
    flex-shrink: 0;
  }
  .brand-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    gap: 0;
  }
  .brand-wordmark {
    font-size: 1.85rem;
    line-height: 1;
    display: flex;
    align-items: baseline;
  }
  .wm-domain {
    font-size: 1.05rem;
    margin-left: 2px;
  }
  .brand-tagline {
    font-size: 0.46rem;
    letter-spacing: 0.13em;
    margin-top: 4px;
    padding-left: 1px;
    white-space: nowrap;
  }
  .top-bar-right {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  #hero h1 { font-size: 2.6rem; }
  .calc-nav { flex-direction: column; gap: 14px; }
  .calc-nav-spacer { display: none; }
  .calc-nav button { width: 100%; justify-content: center; }
  .calc-nav #btn-next,
  .calc-nav #btn-calculate {
    order: -1;
  }
  .results-amount { font-size: 2.8rem; }
  .results-actions, .cert-actions { flex-direction: column; }
  .results-actions button, .cert-actions button { width: 100%; justify-content: center; }
}

/* ==========================================================================
   EDITORIAL, LEGAL & ADSENSE READINESS STYLES
   ========================================================================== */

/* Editorial & Legal Container */
.editorial-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
}
.editorial-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}
.editorial-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: var(--text);
  margin: 14px 0 10px;
}
.editorial-meta {
  font-size: 0.8125rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.editorial-body section {
  margin-bottom: 2.5rem;
}
.editorial-body h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.editorial-body h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.editorial-body p {
  font-size: 1.025rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.editorial-body ul, .editorial-body ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.editorial-body li {
  margin-bottom: 0.6rem;
}
.editorial-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.editorial-body a:hover {
  color: var(--gold-bright);
}
.editorial-body code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Contact Cards */
.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 1.5rem 0;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-card h3 {
  font-size: 1.1rem;
  color: var(--text);
}
.contact-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.contact-email {
  color: var(--gold) !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  word-break: break-all;
}

/* Educational Section on Homepage (Anti-Thin-Content) */
.educational-section {
  max-width: 960px;
  margin: 5rem auto 4rem;
  padding: 0 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 4.5rem;
}
.edu-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  text-align: center;
}
.edu-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  text-align: center;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.15;
}
.edu-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* Educational Columns */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 4rem;
}
.edu-card {
  background: rgba(12, 13, 16, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
[data-theme="light"] .edu-card {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(143, 101, 22, 0.05);
}
.edu-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.edu-card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}
.edu-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 10px;
}
.edu-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Case Study Data Table */
.data-table-wrap {
  overflow-x: auto;
  background: rgba(12, 13, 16, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 4rem;
  padding: 1.25rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}
[data-theme="light"] .data-table-wrap {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 36px rgba(143, 101, 22, 0.06);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}
.data-table th {
  padding: 14px 18px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 16px 18px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.data-table tr:last-child td {
  border-bottom: none;
}
.gain-highlight {
  color: var(--green) !important;
  font-weight: 600;
}

/* FAQ Accordion */
.faq-section {
  max-width: 820px;
  margin: 0 auto 4rem;
}
.faq-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 2rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(12, 13, 16, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}
[data-theme="light"] .faq-item {
  background: rgba(255, 255, 255, 0.85);
}
.faq-item:hover, .faq-item[open] {
  border-color: var(--gold);
}
details.faq-item summary::-webkit-details-marker,
details.faq-item summary::marker {
  display: none;
}
summary.faq-question {
  width: 100%;
  padding: 18px 22px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  list-style: none;
  user-select: none;
}
summary.faq-question:hover {
  color: var(--gold);
}
.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
  color: var(--gold);
  line-height: 1;
}
details[open] .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 4px 22px 20px;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.7;
}

/* AdSense Ad Container Units (Subtle, compliant styling) */
.ad-unit {
  max-width: 728px;
  margin: 2.5rem auto;
  min-height: 90px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  overflow: hidden;
}
.ad-label {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Cookie Consent Banner (Positioned Unobtrusively at Bottom Right) */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  transform: none;
  width: calc(100% - 48px);
  max-width: 440px;
  background: rgba(15, 15, 17, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 169, 60, 0.4);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: slideUpRight 0.35s ease;
}
[data-theme="light"] .cookie-banner {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(184, 141, 60, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
@keyframes slideUpRight {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.cookie-banner a {
  color: var(--gold);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.cookie-btn-accept {
  background: var(--gold);
  color: #050505;
}
.cookie-btn-accept:hover {
  background: var(--gold-bright);
}
.cookie-btn-close {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 7px 11px;
  font-size: 0.875rem;
  line-height: 1;
}
.cookie-btn-close:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}
@media (max-width: 600px) {
  .cookie-banner {
    bottom: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    padding: 14px 16px;
    gap: 12px;
  }
}

/* ==========================================================================
   LIGHT THEME ENHANCEMENTS & ELEVATIONS
   High-contrast, tactile, prestigious editorial aesthetics
   ========================================================================== */
[data-theme="light"] .brand-delta-icon {
  filter: drop-shadow(0 2px 10px rgba(143, 101, 22, 0.3));
}
[data-theme="light"] .footer-delta-icon {
  filter: drop-shadow(0 2px 6px rgba(143, 101, 22, 0.25));
}
[data-theme="light"] .brand-line {
  background: linear-gradient(90deg, #8f6516 0%, rgba(143, 101, 22, 0.4) 70%, transparent 100%);
  box-shadow: none;
}
[data-theme="light"] .brand-tagline {
  color: #7a7264;
}
[data-theme="light"] .wm-white {
  color: #141311;
}
[data-theme="light"] .wm-gold {
  color: #8f6516;
}
[data-theme="light"] .wm-domain {
  color: #8c8474;
}
[data-theme="light"] .brand-lockup:hover .wm-domain {
  color: #8f6516;
}

/* Hero Badge Pill */
[data-theme="light"] .badge {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(143, 101, 22, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04), 0 0 16px rgba(143, 101, 22, 0.08);
  color: #805710;
}

/* Hero Primary CTA Button (Light Mode) */
[data-theme="light"] #hero #start-btn.btn-pill-gold {
  background: linear-gradient(135deg, #E5A93C 0%, #B8821E 100%) !important;
  color: #ffffff !important;
  border: 1px solid #E5A93C !important;
  box-shadow: 0 4px 18px rgba(184, 130, 30, 0.35), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}
[data-theme="light"] #hero #start-btn.btn-pill-gold svg {
  stroke: #ffffff !important;
}
[data-theme="light"] #hero #start-btn.btn-pill-gold:hover {
  background: linear-gradient(135deg, #F0BA52 0%, #CA9226 100%) !important;
  border-color: #F0BA52 !important;
  box-shadow: 0 8px 26px rgba(184, 130, 30, 0.45) !important;
}

/* Top Navigation Controls */
[data-theme="light"] .suite-badge {
  background: #ffffff;
  border: 1px solid #dfd7c5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  color: #524d43;
}
[data-theme="light"] .suite-badge:hover {
  border-color: #8f6516;
  color: #8f6516;
  background: rgba(143, 101, 22, 0.06);
}
[data-theme="light"] .sound-toggle {
  background: #ffffff;
  border: 1px solid #dfd7c5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  color: #524d43;
}
[data-theme="light"] .sound-toggle:hover {
  border-color: #8f6516;
  color: #8f6516;
}
[data-theme="light"] .theme-toggle-btn {
  background: #ffffff;
  border: 1px solid #dfd7c5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .theme-switch-track {
  background: #eae3d2;
}

/* Hero Headline & Hook */
[data-theme="light"] #hero h1::after {
  background: #8f6516;
}
[data-theme="light"] .hero-hook {
  color: #141311;
}
[data-theme="light"] .hero-sub {
  color: #4e493f;
}
[data-theme="light"] .hero-sub em {
  color: #8f6516;
  font-weight: 500;
}

/* Interactive Scroll Hint */
[data-theme="light"] .scroll-hint span {
  color: #777062;
}
[data-theme="light"] .scroll-line {
  background: #bbb19c;
}
[data-theme="light"] .scroll-hint:hover span {
  color: #8f6516;
}
[data-theme="light"] .scroll-hint:hover .scroll-line {
  background: #8f6516;
}

/* Step Wizard Chips & Buttons in Light Mode */
[data-theme="light"] .chip {
  background: #ffffff;
  border-color: #dfd7c5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
[data-theme="light"] .chip:hover {
  border-color: #8f6516;
  background: #faf8f2;
}
[data-theme="light"] .chip.selected {
  background: rgba(143, 101, 22, 0.09);
  border-color: #8f6516;
  color: #8f6516;
}
[data-theme="light"] .preset {
  background: #ffffff;
  border-color: #dfd7c5;
}
[data-theme="light"] .preset.active {
  background: rgba(143, 101, 22, 0.12);
  border-color: #8f6516;
  color: #8f6516;
}
[data-theme="light"] .freq-btn {
  background: #ffffff;
  border-color: #dfd7c5;
}
[data-theme="light"] .freq-btn.selected {
  background: rgba(143, 101, 22, 0.09);
  border-color: #8f6516;
}
[data-theme="light"] .stock-card {
  background: #ffffff;
  border-color: #dfd7c5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .stock-card:hover {
  border-color: #8f6516;
}
[data-theme="light"] .stock-card.selected {
  background: rgba(143, 101, 22, 0.09);
  border-color: #8f6516;
  box-shadow: 0 4px 14px rgba(143, 101, 22, 0.14);
}

/* Light Mode Currency Switcher */
[data-theme="light"] .currency-switch-wrap {
  background: #ffffff;
  border-color: #dfd7c5;
}
[data-theme="light"] .currency-btn {
  color: #726b5d;
}
[data-theme="light"] .currency-btn:hover {
  color: #141311;
  border-color: #dfd7c5;
}
[data-theme="light"] .currency-btn.active {
  background: rgba(143, 101, 22, 0.12);
  border-color: #8f6516;
  color: #8f6516;
  box-shadow: 0 0 10px rgba(143, 101, 22, 0.2);
}

/* Mobile Responsiveness for Header Controls & Actions */
@media (max-width: 768px) {
  .top-editorial-inner {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 4px 0;
  }
  .header-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .currency-switch-wrap {
    order: 1;
  }
  .lang-switch-wrap {
    order: 2;
  }
  .currency-btn {
    padding: 4px 7px;
    font-size: 10px;
  }
  .lang-btn {
    padding: 5px 9px;
    font-size: 10px;
  }
  .cert-actions {
    gap: 8px;
  }
}


