:root {
  --bg-deep: #05070A;
  --bg-canvas: #0A0D14;
  --bg-card: #0F1320;
  --bg-elevated: #181E30;
  --bg-glass: rgba(15, 19, 32, 0.7);
  --gold: #FFD700;
  --gold-dim: #B8960F;
  --gold-glow: rgba(255, 215, 0, 0.15);
  --gold-muted: rgba(255, 215, 0, 0.08);
  --cyan: #00f0ff;
  --cyan-dim: #0096a8;
  --cyan-glow: rgba(0, 240, 255, 0.12);
  --magenta: #ff2a6d;
  --magenta-dim: #b01d4c;
  --green: #05ffa1;
  --green-dim: #03b372;
  --text: #F1F5F9;
  --text-sec: #94A3B8;
  --text-muted: #475569;
  --red: #EF4444;
  --blue: #3B82F6;
  --purple: #A855F7;
  --hairline: rgba(255, 255, 255, 0.06);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  --font-ui: 'Inter', 'Heebo', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --font-display: 'Orbitron', monospace;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.3), inset 0 0 0 1px var(--hairline);
  --shadow-elevated: 0 8px 32px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,215,0,0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glitch-blue: #00f0ff;
  --glitch-pink: #ff2a6d;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  height: 100%;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg-deep);
  position: relative;
}

/* ── CYBER: Grid Overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,215,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,215,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── CYBER: Scanlines ── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 999999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

/* ── CYBER: Noise Texture ── */
#noiseOverlay {
  position: fixed; inset: 0; z-index: 999998;
  pointer-events: none; opacity: 0.035;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── CYBER: Matrix Rain Canvas ── */
#matrixRain {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0.15;
}

#particleCanvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0.4;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ── CYBER: Terminal Boot Screen ── */
#bootScreen {
  position: fixed; inset: 0; z-index: 1000000;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  font-family: var(--font-mono); color: var(--gold-dim);
  font-size: 13px; line-height: 1.8; text-align: left;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.8s ease;
}
#bootScreen.hidden { opacity: 0; pointer-events: none; }
#bootScreen .boot-content { max-width: 600px; width: 100%; }
#bootScreen .boot-line { opacity: 0; animation: bootFadeIn 0.5s ease forwards; white-space: pre-wrap; }
#bootScreen .boot-cursor::after {
  content: '█'; animation: bootBlink 0.6s step-end infinite;
  color: var(--gold);
}
@keyframes bootFadeIn { to { opacity: 1; } }
@keyframes bootBlink { 50% { opacity: 0; } }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100%; right: 8px; z-index: 100;
  padding: 8px 16px; background: var(--gold); color: var(--bg-deep);
  border-radius: var(--radius-md); font-weight: 700; font-size: 14px;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

/* ── HEADER ── */
header {
  position: relative; z-index: 10;
  padding: 16px 24px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
  background: rgba(5, 7, 10, 0.8);
  backdrop-filter: blur(20px);
}
.logo { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: 3px; display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--gold); }
.logo-tag { font-family: var(--font-ui); font-size: 10px; color: var(--text-muted); letter-spacing: 1px; font-weight: 400; }
.logo-lion { font-size: 18px; line-height: 1; }
.logo-version {
  font-family: var(--font-mono); font-size: 8px; font-weight: 600;
  color: var(--gold-dim); background: var(--gold-muted);
  padding: 1px 6px; border-radius: 4px; letter-spacing: 1px;
  border: 1px solid rgba(255,215,0,0.1);
}
header nav { display: flex; gap: 4px; }
header nav button {
  background: transparent; border: 1px solid transparent; color: var(--text-muted);
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-family: var(--font-ui); font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
  letter-spacing: 0.5px; position: relative;
}
header nav button:hover { color: var(--text); border-color: var(--hairline); }
header nav button.active {
  color: var(--gold); border-color: var(--gold-dim); background: var(--gold-muted);
  box-shadow: 0 0 20px rgba(255,215,0,0.05), 0 0 40px rgba(255,215,0,0.05);
}
header .creator-badge {
  font-family: var(--font-mono); font-size: 9px; color: var(--text-muted);
  letter-spacing: 1px; display: flex; align-items: center; gap: 6px;
}
header .creator-badge strong { color: var(--gold); font-weight: 600; }

/* ── AI-Ready ── */
.ai-ready {
  position: relative; z-index: 1;
  border-bottom: 1px solid var(--hairline);
}
.ai-ready-details {
  max-width: 1200px; margin: 0 auto; padding: 8px 24px;
}
.ai-ready-details summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
  padding: 4px 0; font-size: 11px; color: var(--text-muted); user-select: none;
}
.ai-ready-details summary::-webkit-details-marker { display: none; }
.ai-ready-details summary:hover { color: var(--gold); }
.ai-ready-details .ai-icon { width: 14px; height: 14px; transition: transform 0.3s; }
.ai-ready-details[open] .ai-icon { transform: rotate(90deg); }
.ai-ready-details .ai-badge {
  font-size: 9px; color: var(--gold-dim); background: var(--gold-muted);
  padding: 2px 8px; border-radius: var(--radius-pill); letter-spacing: 0.5px;
  font-family: var(--font-mono);
}
.ai-ready-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px 0 8px; }
.ai-item dt { font-weight: 700; color: var(--text); font-size: 12px; margin-bottom: 2px; }
.ai-item dd { font-size: 11px; color: var(--text-sec); line-height: 1.4; }
.ai-ready-details .ai-footer {
  font-size: 10px; color: var(--text-muted); padding: 6px 0 8px;
  border-top: 1px solid var(--hairline); margin-top: 4px;
  font-family: var(--font-mono);
}

/* ── HERO ── */
.hero {
  position: relative; z-index: 1;
  text-align: center; padding: 60px 24px 40px;
  max-width: 900px; margin: 0 auto;
}

/* ── CYBER: Glitch Text ── */
.hero h1 {
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 52px);
  font-weight: 900; letter-spacing: 4px; line-height: 1.2;
  position: relative; display: inline-block;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255,215,0,0.3), 0 0 40px rgba(255,215,0,0.1);
  margin-bottom: 12px;
  animation: glitch-skew 4s infinite linear alternate-reverse;
}
.hero h1::before,
.hero h1::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero h1::before {
  color: var(--glitch-blue);
  z-index: -1;
  animation: glitch-effect 3s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.hero h1::after {
  color: var(--glitch-pink);
  z-index: -2;
  animation: glitch-effect-2 3s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
@keyframes glitch-effect {
  0%, 5%, 100% { transform: translate(0); clip-path: inset(0); }
  1% { transform: translate(-2px, 1px); clip-path: inset(60% 0 30% 0); }
  2% { transform: translate(2px, -1px); clip-path: inset(20% 0 70% 0); }
  3% { transform: translate(-1px, 2px); clip-path: inset(80% 0 5% 0); }
  4% { transform: translate(1px, -2px); clip-path: inset(10% 0 60% 0); }
}
@keyframes glitch-effect-2 {
  0%, 8%, 100% { transform: translate(0); clip-path: inset(0); }
  1% { transform: translate(1px, 1px); clip-path: inset(10% 0 70% 0); }
  2% { transform: translate(-2px, -1px); clip-path: inset(50% 0 20% 0); }
  3% { transform: translate(2px, 1px); clip-path: inset(30% 0 50% 0); }
  4% { transform: translate(-1px, -2px); clip-path: inset(70% 0 10% 0); }
}
@keyframes glitch-skew {
  0%, 100% { transform: skew(0deg); }
  10% { transform: skew(0.5deg); }
  20% { transform: skew(-0.3deg); }
  30% { transform: skew(0.8deg); }
  40% { transform: skew(-0.5deg); }
  50% { transform: skew(0.2deg); }
  60% { transform: skew(-0.7deg); }
  70% { transform: skew(0.4deg); }
  80% { transform: skew(-0.2deg); }
  90% { transform: skew(0.6deg); }
}

.hero h1::after-underline {
  content: '';
  display: block; width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto 0;
}

/* ── CYBER: Terminal Typewriter Subtitle ── */
.hero p {
  font-size: 15px; color: var(--text-sec); line-height: 1.6;
  max-width: 650px; margin: 0 auto;
}
.hero p strong { color: var(--gold); }

.hero .stats-row {
  display: flex; justify-content: center; gap: 32px; margin-top: 24px;
  font-size: 12px; color: var(--text-muted); font-family: var(--font-mono);
}
.hero .stats-row span { display: flex; align-items: center; gap: 6px; }
.hero .stats-row .num { color: var(--gold); font-weight: 600; }

/* ── MAIN ── */
main {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 0 24px 60px;
}
.section-title {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 3px;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }

/* ── CALC GRID ── */
.calc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-bottom: 32px;
}
.calc-panel {
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border: 1px solid var(--hairline); border-radius: var(--radius-xl);
  overflow: hidden; transition: all var(--transition);
  position: relative;
}
/* ── CYBER: Data Stream Border ── */
.calc-panel::before {
  content: '';
  position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg,
    transparent 20%, rgba(255,215,0,0.08) 30%, transparent 40%,
    rgba(0,240,255,0.04) 50%, transparent 60%);
  z-index: -1; opacity: 0; transition: opacity 0.6s;
  background-size: 300% 300%;
  animation: datastream 6s ease-in-out infinite;
}
.calc-panel:hover::before { opacity: 1; }
@keyframes datastream {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}
.calc-panel:hover { border-color: rgba(255,215,0,0.12); box-shadow: 0 4px 24px rgba(0,0,0,0.2), 0 0 40px rgba(255,215,0,0.03); }
.calc-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between;
}
.calc-panel-header h2 {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 2px; color: var(--gold); display: flex; align-items: center; gap: 8px;
}
.calc-panel-header h2 .icon { font-size: 14px; }
.calc-panel-header .panel-tag {
  font-family: var(--font-mono); font-size: 9px; color: var(--text-muted);
  background: var(--bg-card); padding: 2px 8px; border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
}
.calc-body { padding: 20px; }
.calc-body.hidden { display: none; }

/* ── FORM ── */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 500; color: var(--text-sec);
  margin-bottom: 4px; letter-spacing: 0.3px;
}
.form-group .hint { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .prefix {
  position: absolute; right: 12px; left: auto;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  pointer-events: none;
}
.input-wrap input, .input-wrap select {
  width: 100%; padding: 10px 12px;
  background: var(--bg-card); border: 1px solid var(--hairline);
  border-radius: var(--radius-md); color: var(--text);
  font-family: var(--font-ui); font-size: 14px;
  transition: all var(--transition); outline: none;
}
.input-wrap input:focus, .input-wrap select:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px var(--gold-glow), 0 0 20px rgba(255,215,0,0.05);
}
.input-wrap .prefix ~ input { padding-right: 28px; padding-left: 12px; }

.toggle-group { display: flex; gap: 4px; background: var(--bg-card); border-radius: var(--radius-md); padding: 3px; }
.toggle-group button {
  flex: 1; padding: 7px 12px; background: transparent; border: none;
  border-radius: calc(var(--radius-md) - 2px); color: var(--text-muted);
  font-family: var(--font-ui); font-size: 11px; font-weight: 500;
  cursor: pointer; transition: all var(--transition); letter-spacing: 0.5px;
}
.toggle-group button:hover { color: var(--text-sec); }
.toggle-group button.active { background: var(--gold-muted); color: var(--gold); box-shadow: 0 0 20px rgba(255,215,0,0.05); }

.trigger-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trigger-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; background: var(--bg-card); border-radius: var(--radius-md);
  border: 1px solid var(--hairline); cursor: pointer; transition: all var(--transition);
  position: relative;
}
.trigger-item:hover { border-color: rgba(255,215,0,0.15); }
.trigger-item.active { border-color: var(--gold-dim); background: var(--gold-muted); }
.trigger-item input[type="checkbox"] { display: none; }
.trigger-item .check {
  width: 16px; height: 16px; border: 2px solid var(--text-muted);
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0;
}
.trigger-item.active .check { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 10px rgba(255,215,0,0.3); }
.trigger-item.active .check::after {
  content: '✓'; font-size: 10px; color: var(--bg-deep); font-weight: 700;
}
.trigger-item .info { font-size: 12px; color: var(--text); flex: 1; }
.trigger-item .info small { display: block; font-size: 10px; color: var(--text-muted); }
.trigger-item .trigger-input {
  width: 70px; padding: 4px 6px; background: var(--bg-deep);
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font-mono); font-size: 11px; text-align: center;
  display: none;
}
.trigger-item.active .trigger-input { display: block; }
.trigger-item .trigger-input:focus { border-color: var(--gold-dim); outline: none; }

/* ── SLIDER ── */
.slider-wrap { margin-bottom: 14px; }
.slider-wrap .slider-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;
}
.slider-wrap .slider-header label { font-size: 12px; color: var(--text-sec); }
.slider-wrap .slider-header .val {
  font-family: var(--font-mono); font-size: 13px; color: var(--gold); font-weight: 600;
  text-shadow: 0 0 10px rgba(255,215,0,0.2);
}
input[type="range"] {
  width: 100%; height: 4px; -webkit-appearance: none; appearance: none;
  background: var(--bg-card); border-radius: 2px; outline: none;
  border: 1px solid var(--hairline);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px;
  background: var(--gold); border-radius: 50%; cursor: pointer;
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 10px rgba(255,215,0,0.3), 0 0 20px rgba(255,215,0,0.1);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  background: var(--gold); border-radius: 50%; cursor: pointer;
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 10px rgba(255,215,0,0.3), 0 0 20px rgba(255,215,0,0.1);
}

/* ── RESULTS ── */
.results-panel {
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border: 1px solid var(--hairline); border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}
.results-panel .result-hero {
  padding: 32px 24px; text-align: center;
  border-bottom: 1px solid var(--hairline);
  position: relative; overflow: hidden;
}
.results-panel .result-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,215,0,0.06) 0%, transparent 60%);
  pointer-events: none;
}
/* ── CYBER: Pulsing result amount ── */
.results-panel .result-hero .label {
  font-size: 11px; color: var(--text-muted); letter-spacing: 2px;
  font-family: var(--font-display); text-transform: uppercase;
}
.results-panel .result-hero .amount {
  font-family: var(--font-mono); font-size: clamp(36px, 6vw, 64px);
  font-weight: 700; color: var(--gold); line-height: 1.1;
  margin: 8px 0; letter-spacing: -1px;
  text-shadow: 0 0 40px rgba(255,215,0,0.15), 0 0 80px rgba(255,215,0,0.05);
  animation: pulse-glow 2.5s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 20px rgba(255,215,0,0.15), 0 0 40px rgba(255,215,0,0.05); }
  50% { text-shadow: 0 0 40px rgba(255,215,0,0.3), 0 0 80px rgba(255,215,0,0.1), 0 0 120px rgba(255,215,0,0.05); }
}
.results-panel .result-hero .amount .currency {
  font-size: 0.5em; color: var(--gold-dim); font-weight: 400;
}
.results-panel .result-hero .sub { font-size: 13px; color: var(--text-sec); }
.results-panel .result-body { padding: 24px; }

/* ── BREAKDOWN TABLE ── */
.breakdown { width: 100%; border-collapse: collapse; }
.breakdown th {
  text-align: right; padding: 8px 12px; font-size: 10px;
  font-family: var(--font-display); letter-spacing: 1.5px;
  color: var(--text-muted); text-transform: uppercase;
  border-bottom: 1px solid var(--hairline); font-weight: 500;
}
.breakdown th:last-child { text-align: left; }
.breakdown td {
  padding: 10px 12px; font-size: 13px; color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-family: var(--font-ui);
}
.breakdown td:last-child, .breakdown th:last-child {
  text-align: left; font-family: var(--font-mono); font-weight: 600;
}
.breakdown tr:last-child td { border-bottom: none; }
.breakdown .positive { color: var(--green); text-shadow: 0 0 10px rgba(5,255,161,0.2); }
.breakdown .negative { color: var(--red); }
.breakdown .total-row td { font-weight: 700; color: var(--gold); border-top: 1px solid var(--hairline); padding-top: 12px; }
.breakdown .trigger-tag {
  display: inline-block; font-size: 9px; padding: 2px 6px;
  border-radius: var(--radius-sm); background: var(--gold-muted);
  color: var(--gold); font-family: var(--font-mono); letter-spacing: 0.5px;
}

/* ── CHART ── */
.chart-container {
  margin: 20px 0; padding: 16px; background: var(--bg-card);
  border-radius: var(--radius-lg); border: 1px solid var(--hairline);
  position: relative; overflow: hidden;
}
.chart-container h3 {
  font-family: var(--font-display); font-size: 10px; letter-spacing: 2px;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: 12px;
}
.chart-wrap { width: 100%; height: 200px; position: relative; }
#refundChart { width: 100%; height: 100%; }

/* ── COMPARISON ── */
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comparison-card {
  padding: 16px; background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--hairline); text-align: center;
  transition: all var(--transition); position: relative;
}
.comparison-card:hover { border-color: rgba(255,215,0,0.1); transform: translateY(-1px); }
.comparison-card .route { font-size: 11px; font-family: var(--font-display); letter-spacing: 1px; color: var(--text-muted); margin-bottom: 4px; }
.comparison-card .net {
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  color: var(--text); margin: 4px 0;
}
.comparison-card .tax { font-size: 11px; color: var(--text-muted); }
.comparison-card.better {
  border-color: var(--gold-dim); background: var(--gold-muted);
  box-shadow: 0 0 20px rgba(255,215,0,0.05), inset 0 0 20px rgba(255,215,0,0.02);
}
.comparison-card.better .net { color: var(--gold); text-shadow: 0 0 10px rgba(255,215,0,0.2); }
.comparison-card.better::after {
  content: '★ מומלץ'; display: block; font-size: 9px;
  font-family: var(--font-display); letter-spacing: 1px;
  color: var(--gold); margin-top: 4px;
}

/* ── EDUCATION ── */
.edu-section { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.edu-card {
  padding: 20px; background: var(--bg-card);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  transition: all var(--transition); position: relative; overflow: hidden;
}
/* ── CYBER: Holographic shimmer on hover ── */
.edu-card::after {
  content: '';
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg,
    transparent 30%, rgba(255,215,0,0.02) 50%, transparent 70%);
  opacity: 0; transition: opacity 0.5s;
  transform: rotate(25deg);
  pointer-events: none;
}
.edu-card:hover::after { opacity: 1; }
.edu-card:hover { border-color: rgba(255,215,0,0.12); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.edu-card .icon { font-size: 24px; margin-bottom: 8px; display: block; }
.edu-card h3 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.edu-card p { font-size: 12px; color: var(--text-sec); line-height: 1.5; }

/* ── BRACKETS ── */
.brackets-wrap {
  background: var(--bg-card); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: 16px; overflow-x: auto; margin-bottom: 32px;
}
.brackets-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.brackets-table th {
  text-align: right; padding: 8px 12px;
  font-family: var(--font-display); font-size: 9px; letter-spacing: 1.5px;
  color: var(--text-muted); text-transform: uppercase;
  border-bottom: 1px solid var(--hairline);
}
.brackets-table th:last-child { text-align: left; }
.brackets-table td {
  padding: 6px 12px; color: var(--text-sec);
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.brackets-table td:last-child { text-align: left; font-family: var(--font-mono); color: var(--gold); }
.brackets-note {
  font-size: 11px; color: var(--text-muted); margin-top: 8px; font-family: var(--font-mono);
}

/* ── FAQ ── */
.faq-section { margin-top: 40px; }
.faq-item {
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  margin-bottom: 8px; overflow: hidden; transition: all var(--transition);
}
.faq-item:hover { border-color: rgba(255,215,0,0.1); }
.faq-question {
  width: 100%; padding: 16px 20px; background: var(--bg-card);
  border: none; color: var(--text); font-family: var(--font-ui);
  font-size: 13px; font-weight: 500; text-align: right;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-question::after {
  content: '+'; font-size: 18px; color: var(--gold); transition: transform var(--transition);
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: all 0.3s ease;
}
.faq-answer p {
  padding: 0 20px 16px;
  font-size: 13px; color: var(--text-sec); line-height: 1.6;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--hairline); padding: 24px;
  text-align: center; font-size: 12px; color: var(--text-muted);
}
footer strong { color: var(--gold); }
footer .badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 8px 0; padding: 6px 14px;
  background: var(--bg-card); border: 1px solid var(--hairline);
  border-radius: var(--radius-pill); font-size: 10px;
  font-family: var(--font-mono); color: var(--text-muted);
}
footer .badge .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.premium-badge {
  font-family: var(--font-mono); font-size: 7px; font-weight: 700;
  color: var(--gold); background: var(--gold-muted);
  padding: 1px 5px; border-radius: 3px; letter-spacing: 1px;
  border: 1px solid rgba(255,215,0,0.15);
}
footer .footer-text { margin: 12px 0; font-size: 13px; color: var(--text-sec); }
footer .links { display: flex; justify-content: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
footer .links a { color: var(--text-muted); text-decoration: none; font-size: 11px; transition: color var(--transition); }
footer .links a:hover { color: var(--gold); }
footer .disclaimer {
  margin-top: 12px; font-size: 10px; color: var(--text-muted);
  max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.5;
}
footer .geo-badge {
  margin-top: 8px; font-size: 9px; color: var(--text-muted);
  font-family: var(--font-mono);
}
footer .geo-badge a { color: var(--gold-dim); text-decoration: none; }
footer .geo-badge a:hover { color: var(--gold); }

/* ── MODE TABS ── */
.mode-tabs {
  display: flex; gap: 4px; margin-bottom: 20px;
  background: var(--bg-card); border-radius: var(--radius-pill);
  padding: 3px; width: fit-content;
}
.mode-tabs button {
  padding: 8px 20px; background: transparent; border: none;
  border-radius: var(--radius-pill); color: var(--text-muted);
  font-family: var(--font-ui); font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
  letter-spacing: 0.5px; white-space: nowrap;
}
.mode-tabs button:hover { color: var(--text); }
.mode-tabs button.active {
  background: var(--gold-muted); color: var(--gold);
  box-shadow: 0 0 20px rgba(255,215,0,0.08), 0 0 40px rgba(255,215,0,0.03);
}

/* ── KEYFRAMES ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes countUp { from { opacity: 0.3; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

.animate-in { animation: fadeIn 0.5s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-elevated) 50%, var(--bg-card) 100%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md); color: transparent !important;
}

/* ── CYBER: Buttons ── */
.btn-primary {
  padding: 10px 28px; background: linear-gradient(135deg, var(--gold) 0%, #E6C200 100%);
  border: none; border-radius: var(--radius-pill); color: var(--bg-deep);
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
  transition: all var(--transition); display: inline-flex; align-items: center; gap: 8px;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  transform: rotate(25deg);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(255,215,0,0.25), 0 0 60px rgba(255,215,0,0.1); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  padding: 10px 20px; background: transparent; border: 1px solid var(--hairline);
  border-radius: var(--radius-pill); color: var(--text-sec);
  font-family: var(--font-ui); font-size: 11px; font-weight: 500; cursor: pointer;
  transition: all var(--transition); position: relative;
}
.btn-secondary:hover { border-color: var(--gold-dim); color: var(--gold); box-shadow: 0 0 20px rgba(255,215,0,0.05); }

/* ── CYBER: Glitch on calc ── */
.glitch-flash {
  animation: glitch-flash 0.3s ease;
}
@keyframes glitch-flash {
  0% { filter: hue-rotate(0deg) brightness(1); }
  25% { filter: hue-rotate(90deg) brightness(1.3); transform: translate(1px, -1px); }
  50% { filter: hue-rotate(180deg) brightness(0.8); transform: translate(-1px, 1px); }
  75% { filter: hue-rotate(270deg) brightness(1.2); transform: translate(1px, 1px); }
  100% { filter: hue-rotate(360deg) brightness(1); transform: translate(0); }
}

/* ── Voice Input ── */
.voice-btn {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  background: var(--bg-elevated); border: 1px solid var(--hairline); color: var(--text-sec);
  width: 30px; height: 28px; border-radius: var(--radius-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  transition: all var(--transition); z-index: 2; gap: 3px; font-family: var(--font-ui); font-size: 10px;
}
.voice-btn:hover { border-color: var(--gold-dim); color: var(--gold); }
.voice-btn.listening { background: var(--red); color: white; border-color: var(--red); width: auto; padding: 0 10px; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: white; display: inline-block; animation: pulse-dot 0.8s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── AI Chat ── */
.ai-chat-toggle {
  position: fixed; bottom: 130px; left: 20px; z-index: 9999;
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--gold-dim); color: var(--gold); font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.ai-chat-toggle:hover { transform: translateY(-2px); box-shadow: 0 0 30px var(--gold-glow); border-color: var(--gold); }
.ai-chat-toggle.active { background: var(--gold); color: var(--bg-deep); }

.ai-chat-panel {
  position: fixed; bottom: 190px; left: 20px; z-index: 9998;
  width: 320px; max-height: 420px;
  background: var(--bg-elevated); border: 1px solid var(--hairline);
  border-radius: var(--radius-xl); overflow: hidden;
  display: none; flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.ai-chat-panel.open { display: flex; }
.ai-chat-header {
  padding: 12px 16px; background: var(--bg-card);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display); font-size: 11px; letter-spacing: 2px;
  color: var(--gold); display: flex; align-items: center; gap: 8px;
}
.ai-chat-messages {
  flex: 1; padding: 12px; overflow-y: auto; min-height: 200px; max-height: 260px;
  display: flex; flex-direction: column; gap: 8px;
}
.ai-chat-messages::-webkit-scrollbar { width: 3px; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }
.chat-msg {
  padding: 8px 12px; border-radius: var(--radius-md);
  font-size: 12px; line-height: 1.5; max-width: 90%;
  font-family: var(--font-ui);
}
.chat-user { background: var(--gold-muted); color: var(--text); align-self: flex-end; border-bottom-left-radius: var(--radius-sm); }
.chat-ai { background: var(--bg-card); color: var(--text-sec); align-self: flex-start; border: 1px solid var(--hairline); border-bottom-right-radius: var(--radius-sm); }
.ai-chat-input-wrap {
  display: flex; gap: 4px; padding: 8px; border-top: 1px solid var(--hairline);
  background: var(--bg-card);
}
.ai-chat-input-wrap input {
  flex: 1; padding: 8px 10px; background: var(--bg-deep); border: 1px solid var(--hairline);
  border-radius: var(--radius-pill); color: var(--text); font-family: var(--font-ui);
  font-size: 12px; outline: none;
}
.ai-chat-input-wrap input:focus { border-color: var(--gold-dim); }
.ai-chat-input-wrap button {
  padding: 8px 14px; background: var(--gold); color: var(--bg-deep); border: none;
  border-radius: var(--radius-pill); font-family: var(--font-ui); font-size: 11px;
  font-weight: 600; cursor: pointer; transition: all var(--transition);
}
.ai-chat-input-wrap button:hover { background: #E6C200; }

/* ── Tax Tips ── */
.tip-item {
  padding: 6px 12px; background: var(--gold-muted); border: 1px solid rgba(255,215,0,0.1);
  border-radius: var(--radius-pill); font-size: 11px; color: var(--gold-dim);
  font-family: var(--font-mono); display: inline-block; width: fit-content;
}

/* ── Live Rate ── */
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); display: inline-block; animation: pulse-dot 1.5s infinite; vertical-align: middle; }

/* ── Select for scenarios ── */
#loadScenario option { background: var(--bg-card); color: var(--text); }

/* ── Year Toggle ── */
.btn-secondary.alt-year { border-color: var(--cyan-dim); color: var(--cyan); }

/* ── WHATSAPP ── */
.whatsapp-float {
  position: fixed; bottom: 80px; left: 20px; z-index: 9999;
  display: flex; align-items: center; gap: 6px;
  background: #25D366; color: white; text-decoration: none;
  padding: 10px 16px 10px 12px;
  border-radius: 50px; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition); font-family: var(--font-ui);
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.15);
}
.whatsapp-float:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(37,211,102,0.55); background: #20BD5A; }
.whatsapp-float .whatsapp-label { font-size: 11px; }

/* ── ACCESSIBILITY 2.0 PREMIUM ── */
.acc-toggle {
  position: fixed; bottom: 20px; left: 20px; z-index: 9998;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-elevated), rgba(255,215,0,0.08));
  border: 1px solid var(--gold-dim); color: var(--gold); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  animation: accPulse 3s ease-in-out infinite;
}
@keyframes accPulse { 0%,100% { box-shadow: 0 2px 12px rgba(0,0,0,0.3); } 50% { box-shadow: 0 0 30px var(--gold-glow), 0 0 60px var(--gold-glow); } }
.acc-toggle:hover { background: var(--gold-muted); transform: scale(1.1); }
.acc-toggle.active { background: var(--gold); color: var(--bg-deep); box-shadow: 0 0 40px rgba(255,215,0,0.4); }

.acc-bar {
  position: fixed; bottom: 72px; left: 20px; z-index: 9997;
  background: rgba(15,19,32,0.95); backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl); padding: 10px;
  display: none; flex-direction: column; gap: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,215,0,0.05);
  width: 180px; max-height: 70vh; overflow-y: auto;
}
.acc-bar.open { display: flex; }
.acc-bar::-webkit-scrollbar { width: 2px; }
.acc-bar::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }
.acc-section-label {
  font-size: 8px; font-family: var(--font-display); letter-spacing: 1.5px;
  color: var(--text-muted); padding: 4px 6px 2px; margin-top: 2px;
}
.acc-row { display: flex; gap: 3px; padding: 0 4px; }
.acc-btn {
  flex: 1; height: 28px; border: 1px solid transparent;
  background: var(--bg-card); color: var(--text-sec);
  font-family: var(--font-mono); font-size: 10px; cursor: pointer;
  border-radius: var(--radius-sm); transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; padding: 0 4px; line-height: 1;
}
.acc-btn:hover { background: var(--gold-muted); color: var(--gold); border-color: rgba(255,215,0,0.15); }
.acc-btn.active { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); box-shadow: 0 0 15px rgba(255,215,0,0.3); }
.acc-divider { height: 1px; background: var(--hairline); margin: 4px 0; }
.acc-reset { font-size: 9px; letter-spacing: 0.5px; color: var(--text-muted); height: 30px; padding: 0 8px; }

/* Accessibility state classes */
.a11y-contrast { filter: contrast(1.5) brightness(1.1); }
.a11y-grayscale { filter: grayscale(1); }
.a11y-invert { filter: invert(0.9) hue-rotate(180deg); }
.a11y-contrast.a11y-grayscale { filter: contrast(1.5) brightness(1.1) grayscale(1); }
.a11y-contrast.a11y-invert { filter: contrast(1.5) brightness(1.1) invert(0.9) hue-rotate(180deg); }
.a11y-grayscale.a11y-invert { filter: grayscale(1) invert(0.9) hue-rotate(180deg); }
.a11y-contrast.a11y-grayscale.a11y-invert { filter: contrast(1.5) brightness(1.1) grayscale(1) invert(0.9) hue-rotate(180deg); }
.a11y-cb-protanopia { filter: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><filter id="p"><feColorMatrix type="matrix" values="0.567,0.433,0,0,0 0.558,0.442,0,0,0 0,0.242,0.758,0,0 0,0,0,1,0"/></filter></svg>#p'); }
.a11y-cb-deuteranopia { filter: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><filter id="d"><feColorMatrix type="matrix" values="0.625,0.375,0,0,0 0.7,0.3,0,0,0 0,0.3,0.7,0,0 0,0,0,1,0"/></filter></svg>#d'); }
.a11y-cb-tritanopia { filter: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><filter id="t"><feColorMatrix type="matrix" values="0.95,0.05,0,0,0 0,0.433,0.567,0,0 0,0.475,0.525,0,0 0,0,0,1,0"/></filter></svg>#t'); }
.a11y-font-serif { --font-ui: 'Georgia', 'Times New Roman', serif; --font-display: 'Georgia', serif; --font-mono: 'Courier New', monospace; }
.a11y-font-dyslexic { --font-ui: 'OpenDyslexic', 'Comic Sans MS', sans-serif; --font-display: 'OpenDyslexic', sans-serif; --font-mono: 'OpenDyslexicMono', monospace; letter-spacing: 0.15em; word-spacing: 0.25em; }
.a11y-bionic strong, .a11y-bionic b { font-weight: 900; }
.a11y-links a { text-decoration: underline !important; color: var(--gold) !important; background: rgba(255,215,0,0.05); padding: 1px 3px; border-radius: 2px; }
.a11y-large-cursor, .a11y-large-cursor * { cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><circle cx="4" cy="4" r="8" fill="white" stroke="black" stroke-width="1.5"/></svg>') 4 4, auto !important; }
.a11y-paused *, .a11y-paused *::before, .a11y-paused *::after { animation-play-state: paused !important; transition-duration: 0s !important; }

/* ── VIRAL: Confetti Canvas ── */
#confettiCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 999995; }

/* ── VIRAL: Social Ticker ── */
.social-ticker {
  position: fixed; bottom: 20px; right: 20px; z-index: 9996;
  padding: 6px 14px; background: rgba(15,19,32,0.85); backdrop-filter: blur(12px);
  border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  font-size: 9px; color: var(--text-muted); font-family: var(--font-mono);
  display: flex; align-items: center; gap: 4px; direction: ltr;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  animation: tickerFadeIn 1s ease 2s both;
}
@keyframes tickerFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.social-ticker span { color: var(--gold); font-weight: 600; }

/* ── VIRAL: Reading Ruler ── */
#readingRuler {
  position: fixed; left: 0; right: 0; z-index: 999990; height: 28px;
  pointer-events: none; display: none;
  background: linear-gradient(180deg, rgba(255,215,0,0.08), transparent);
  border-top: 1px solid rgba(255,215,0,0.15);
  border-bottom: 1px solid rgba(255,215,0,0.08);
  transition: top 0.05s linear;
}
#readingRuler.active { display: block; }

/* ── VIRAL: Screen Mask ── */
#screenMask {
  position: fixed; inset: 0; z-index: 999991;
  pointer-events: none; display: none;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(5,7,10,0.85) 70%);
}
#screenMask.active { display: block; }

/* ── VIRAL: 3D Result ── */
.result-3d {
  perspective: 800px;
}
.result-3d .amount {
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}
.result-3d .amount:hover {
  transform: rotateX(5deg) rotateY(-5deg) scale(1.05);
  text-shadow: 0 0 60px rgba(255,215,0,0.3), 0 0 120px rgba(255,215,0,0.1);
}

/* ── VIRAL: Fortune Teller Intro ── */
#fortuneOverlay {
  position: fixed; inset: 0; z-index: 1000001;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  font-family: var(--font-display);
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
}
#fortuneOverlay.active { opacity: 1; pointer-events: auto; }
#fortuneOverlay .fortune-text {
  font-size: clamp(16px, 3vw, 32px);
  color: var(--gold);
  text-align: center;
  padding: 20px;
  text-shadow: 0 0 40px rgba(255,215,0,0.2);
  animation: fortuneGlow 2s ease-in-out infinite;
}
@keyframes fortuneGlow { 0%,100% { opacity: 0.8; } 50% { opacity: 1; text-shadow: 0 0 60px rgba(255,215,0,0.4); } }
#fortuneOverlay .fortune-sub {
  font-size: 12px; color: var(--text-muted);
  font-family: var(--font-mono); margin-top: 16px;
  letter-spacing: 2px;
}
#fortuneOverlay .fortune-btn {
  margin-top: 24px; padding: 10px 32px;
  background: linear-gradient(135deg, var(--gold), #E6C200);
  border: none; border-radius: var(--radius-pill);
  color: var(--bg-deep); font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  cursor: pointer; text-transform: uppercase;
  transition: all var(--transition);
}
#fortuneOverlay .fortune-btn:hover { transform: scale(1.05); box-shadow: 0 0 40px rgba(255,215,0,0.3); }
#fortuneOverlay .fortune-skip {
  margin-top: 12px; padding: 6px 16px;
  background: transparent; border: 1px solid var(--hairline);
  border-radius: var(--radius-pill); color: var(--text-muted);
  font-family: var(--font-ui); font-size: 10px; cursor: pointer;
  transition: all var(--transition);
}
#fortuneOverlay .fortune-skip:hover { color: var(--text); border-color: var(--gold-dim); }

/* ── VIRAL: Shareable Badge ── */
.refund-badge {
  display: none; margin: 16px auto;
  padding: 14px 24px; background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,215,0,0.02));
  border: 1px solid rgba(255,215,0,0.15); border-radius: var(--radius-lg);
  text-align: center; max-width: 340px;
}
.refund-badge.show { display: block; animation: fadeIn 0.5s ease; }
.refund-badge .badge-title { font-size: 9px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 2px; }
.refund-badge .badge-amount { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--gold); margin: 4px 0; }
.refund-badge .badge-label { font-size: 11px; color: var(--text-sec); }
.refund-badge .badge-footer { font-size: 8px; color: var(--text-muted); margin-top: 8px; font-family: var(--font-mono); }
.refund-badge .badge-share {
  margin-top: 8px; padding: 6px 16px;
  background: var(--bg-card); border: 1px solid var(--hairline);
  border-radius: var(--radius-pill); color: var(--gold);
  font-family: var(--font-ui); font-size: 10px; cursor: pointer;
  transition: all var(--transition);
}
.refund-badge .badge-share:hover { border-color: var(--gold-dim); background: var(--gold-muted); }

/* ── VIRAL: Easter Egg Theme ── */
.a11y-easter-egg-cyber { }
.a11y-easter-egg-cyber h1 { color: var(--magenta) !important; text-shadow: 0 0 30px rgba(255,42,109,0.5) !important; }
.a11y-easter-egg-cyber .logo { color: var(--cyan) !important; }
.a11y-easter-egg-cyber .logo span { color: var(--magenta) !important; }
.a11y-easter-egg-cyber .btn-primary { background: linear-gradient(135deg, var(--magenta), #8B1A3D) !important; }
.a11y-easter-egg-ocean { }
.a11y-easter-egg-ocean h1 { color: var(--cyan) !important; text-shadow: 0 0 30px rgba(0,240,255,0.5) !important; }
.a11y-easter-egg-ocean .logo span { color: var(--cyan) !important; }
.a11y-easter-egg-sunset { }
.a11y-easter-egg-sunset h1 { color: #ff6b35 !important; text-shadow: 0 0 30px rgba(255,107,53,0.5) !important; }
.a11y-easter-egg-sunset .logo span { color: #ff6b35 !important; }
.a11y-easter-egg-matrix { }
.a11y-easter-egg-matrix h1 { color: var(--green) !important; text-shadow: 0 0 30px rgba(5,255,161,0.5) !important; }
.a11y-easter-egg-matrix .logo span { color: var(--green) !important; }

/* ── VIRAL: Sound Toggle ── */
.sound-indicator {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; color: var(--text-muted); font-family: var(--font-mono);
  cursor: pointer; transition: all var(--transition);
  position: fixed; bottom: 20px; left: 72px; z-index: 9995;
  padding: 4px 10px; background: rgba(15,19,32,0.7);
  border: 1px solid var(--hairline); border-radius: var(--radius-pill);
}
.sound-indicator:hover { color: var(--gold); }

/* ── PRINT ── */
@media print {
  #particleCanvas, #matrixRain, #noiseOverlay, #bootScreen,
  .whatsapp-float, .acc-toggle, .acc-bar, header nav, body::before, body::after { display: none !important; }
  .ai-ready { border: 1px solid #ccc; }
}

/* ── TABLET ── */
@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .edu-section { grid-template-columns: 1fr 1fr; }
  .eeat-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .premium-grid { grid-template-columns: 1fr; }
  .bv-track { height: 100px; }
  header nav { display: none; }
  header .creator-badge { display: none; }
  .ai-ready-grid { grid-template-columns: 1fr; }
}

/* ── MOBILE (Tablets & Large Phones) ── */
@media (max-width: 768px) {
  header { padding: 12px 16px; }
  header .logo { font-size: 13px; gap: 4px; }
  header .logo-tag { display: none; }
  header .logo-version { display: none; }
  .live-bar { font-size: 9px; padding: 4px 10px; gap: 4px; }
  .live-bar .live-bar-divider { margin: 0 2px; }
  .calc-panel { padding: 12px; }
  .calc-body { padding: 12px; }
  .form-group { margin-bottom: 10px; }
  .input-wrap input { font-size: 16px !important; height: 44px; padding: 0 10px; }
  .btn-primary, .btn-secondary { font-size: 11px; padding: 10px 14px; min-height: 44px; }
  .trigger-item { padding: 10px 12px; min-height: 44px; }
  .trigger-item .trigger-input { height: 36px; font-size: 14px; }
  .confidence-bar { flex-wrap: wrap; }
  .eeat-author { flex-direction: column; }
  .eeat-avatar { width: 48px; height: 48px; }
  .points-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 20px 16px; }
  .modal-header { font-size: 17px; }
  .hero .stats-row { flex-direction: column; gap: 8px; align-items: center; }
  .section-title { font-size: 16px; padding: 24px 16px 8px; }
  .btn-primary, .btn-secondary { font-size: 11px; }
  footer .badge { font-size: 8px; padding: 4px 8px; flex-wrap: wrap; justify-content: center; }
  .premium-badge { font-size: 6px; }
  .answer-first { padding: 0 16px 24px; }
  .eeat-section { padding: 0 16px 32px; }
  .stats-grid { grid-template-columns: 1fr; }
  .modal-box { width: 96vw; }
}

/* ── MOBILE (Small Phones 480px and below) ── */
@media (max-width: 480px) {
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 13px; }
  .hero { padding: 32px 12px 20px; }
  main { padding: 0 12px 32px; }
  header { padding: 10px 12px; }
  header .logo { font-size: 11px; gap: 3px; letter-spacing: 1px; }
  header .logo span { font-size: 13px; }
  header .logo-lion { display: none; }
  .mode-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mode-tabs button { flex: 0 0 auto; font-size: 10px; padding: 8px 12px; min-height: 44px; }
  .mode-tabs button.active { border-bottom-width: 2px; }
  .trigger-grid { grid-template-columns: 1fr; }
  .trigger-item { padding: 8px 10px; min-height: 44px; }
  .trigger-item .trigger-input { height: 34px; font-size: 13px; }
  .results-panel .result-hero .amount { font-size: 28px; }
  .results-panel .result-hero .label { font-size: 11px; }
  .results-panel .result-hero .sub { font-size: 10px; }
  .results-panel .result-hero { padding: 20px 16px; }
  .table .breakdown th, .table .breakdown td { font-size: 10px; padding: 6px 8px; }
  .calc-panel .calc-panel-header h2 { font-size: 13px; }
  .calc-panel .calc-panel-header { padding: 10px 12px; }
  .calc-body { padding: 10px 12px; }
  .input-wrap input { font-size: 16px !important; height: 44px; padding: 0 8px; }
  .input-wrap .prefix { font-size: 13px; padding: 0 8px; }
  .form-group label { font-size: 11px; }
  .trigger-item .info { font-size: 12px; }
  .trigger-item .info small { font-size: 10px; }
  .slider-wrap { padding: 0; }
  .btn-primary, .btn-secondary { padding: 10px 12px; font-size: 11px; min-height: 44px; }
  select, select option { font-size: 11px; }
  .live-bar { font-size: 8px; padding: 4px 8px; }
  .live-bar .live-bar-item strong { font-size: 9px; }
  .trust-bar { gap: 4px; }
  .trust-badge { font-size: 8px; padding: 3px 8px; }
  .trust-stats { font-size: 9px; gap: 4px; padding: 6px 10px; }
  .media-bar { font-size: 8px; gap: 4px; padding: 4px 10px; }
  .share-bar { gap: 4px; }
  .share-btn, .share-link-btn { font-size: 11px; padding: 6px 10px; min-height: 44px; }
  .share-btn { font-size: 0; }
  .share-btn::first-letter { font-size: 14px; }
  .geo-claim { font-size: 11px; }
  .answer-card.key-takeaway { padding: 12px; }
  .answer-card .takeaway-text { font-size: 12px; }
  .stat-item { padding: 10px; }
  .stat-item .stat-num { font-size: 16px; }
  .stat-item .stat-label { font-size: 10px; }
  .comparison-grid { grid-template-columns: 1fr; }
  .comp-table { font-size: 9px; }
  .comp-table th, .comp-table td { padding: 6px 4px; }
  .comp-intro { font-size: 11px; padding: 10px 12px; }
  .faq-section .faq-item { margin-bottom: 4px; }
  .faq-question { font-size: 12px; padding: 10px 12px; }
  .faq-answer { font-size: 11px; padding: 8px 12px; }
  .eeat-avatar { width: 40px; height: 40px; }
  .eeat-info h3 { font-size: 12px; }
  .eeat-creds { font-size: 10px; }
  .eeat-bio { font-size: 11px; }
  .eeat-contact a { font-size: 10px; padding: 6px 8px; }
  .eeat-sources h4 { font-size: 12px; }
  .eeat-sources li { font-size: 10px; }
  footer .badge { font-size: 7px; padding: 4px 6px; }
  footer .footer-text { font-size: 11px; }
  .modal-box { padding: 16px 12px; width: 98vw; max-height: 85vh; }
  .modal-header { font-size: 15px; }
  .modal-sub { font-size: 11px; }
  .points-q { font-size: 12px; }
  .points-options button { min-height: 40px; font-size: 11px; }
  .points-check { font-size: 11px; padding: 6px 6px; }
  .points-result-num { font-size: 28px; }
  .points-result-value { font-size: 12px; }
  .stats-row .num { font-size: 12px; }
  .chart-container h3 { font-size: 12px; }
  .chart-wrap { height: 180px; }
  .breakdown th, .breakdown td { font-size: 10px; padding: 6px 6px; }
  .section-title { font-size: 14px; padding: 20px 12px 6px; }
  .premium-grid { grid-template-columns: 1fr; }
  .whatsapp-float { bottom: 60px; left: 8px; padding: 6px 10px; }
  .whatsapp-float .whatsapp-label { display: none; }
  .acc-toggle { bottom: 8px; left: 8px; width: 34px; height: 34px; }
  .acc-bar { bottom: 52px; left: 8px; }
  .result-hero .live-badge { font-size: 7px; }
  .confidence-label { font-size: 9px; }
  .confidence-pct { font-size: 9px; }
  .ai-ready-grid { grid-template-columns: 1fr; }
}

/* ── EXTRA SMALL (iPhone SE 375px) ── */
@media (max-width: 375px) {
  header .logo { font-size: 10px; letter-spacing: 0; }
  header .logo span { font-size: 11px; }
  .mode-tabs button { font-size: 9px; padding: 6px 8px; }
  .results-panel .result-hero .amount { font-size: 24px; }
  .results-panel .result-hero { padding: 16px 12px; }
  .trigger-item { padding: 6px 8px; }
  .form-group { margin-bottom: 8px; }
  .calc-panel .calc-panel-header { padding: 8px 10px; }
  .calc-body { padding: 8px 10px; }
  .live-bar { font-size: 7px; padding: 3px 6px; }
  .hero h1 { font-size: 18px; }
  .hero p { font-size: 12px; }
  .answer-card.key-takeaway { flex-direction: column; gap: 8px; padding: 10px; }
  .answer-card .takeaway-icon { font-size: 20px; }
  .btn-primary, .btn-secondary { font-size: 10px; padding: 8px 10px; min-height: 40px; }
  .modal-header { font-size: 14px; }
  .share-btn, .share-link-btn { min-height: 40px; font-size: 0; }
  .share-btn::first-letter { font-size: 13px; }
  .stats-row span { font-size: 11px; }
  .section-title { padding: 16px 12px 4px; }
  .comp-table { font-size: 8px; }
  .comp-table th, .comp-table td { padding: 4px 3px; }
  .live-bar .live-bar-item { white-space: nowrap; }
  .trust-stats { font-size: 8px; padding: 4px 8px; }
  .media-bar { font-size: 7px; padding: 3px 8px; }
}

/* ── GEO: Answer-First Section ── */
.answer-first {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 0 24px 32px;
}
.answer-grid { display: flex; flex-direction: column; gap: 16px; }
.answer-card.key-takeaway {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(255,215,0,0.06), rgba(255,215,0,0.02));
  border: 1px solid rgba(255,215,0,0.12);
  border-radius: var(--radius-lg); position: relative;
}
.answer-card .takeaway-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.answer-card .takeaway-text { font-size: 14px; color: var(--text); line-height: 1.6; }
.answer-card .takeaway-text strong { color: var(--gold); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-item {
  padding: 14px 16px; background: var(--bg-card);
  border: 1px solid var(--hairline); border-radius: var(--radius-md);
  text-align: center; transition: all var(--transition);
}
.stat-item:hover { border-color: rgba(255,215,0,0.12); }
.stat-num {
  display: block; font-family: var(--font-display); font-size: 20px;
  font-weight: 700; color: var(--gold); letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(255,215,0,0.15);
}
.stat-label {
  display: block; font-size: 11px; color: var(--text-sec);
  margin-top: 4px; line-height: 1.3;
}
.stat-label cite {
  display: block; font-size: 9px; color: var(--text-muted);
  font-style: normal; font-family: var(--font-mono); margin-top: 2px;
}
.answer-cta {
  margin-top: 12px; font-size: 10px; color: var(--text-muted);
  text-align: center; line-height: 1.5;
}
.answer-cta strong { color: var(--gold); }

/* ── GEO: EEAT Section ── */
.eeat-section {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 0 24px 40px;
}
.eeat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.eeat-author {
  display: flex; gap: 16px; padding: 20px;
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border: 1px solid var(--hairline); border-radius: var(--radius-xl);
  align-items: flex-start;
}
.eeat-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 16px; font-weight: 900;
  color: var(--bg-deep); flex-shrink: 0; overflow: hidden;
  position: relative;
}
.eeat-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.eeat-avatar-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; position: absolute; inset: 0; }
.eeat-info h3 { font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.eeat-creds { font-size: 11px; color: var(--text-sec); margin-bottom: 8px; }
.eeat-creds strong { color: var(--green); }
.eeat-bio {
  font-size: 12px; color: var(--text-sec); line-height: 1.5;
  padding: 8px 12px; background: var(--bg-card);
  border-radius: var(--radius-md); border-right: 2px solid var(--gold-dim);
  margin-bottom: 8px;
}
.eeat-contact { display: flex; gap: 8px; flex-wrap: wrap; }
.eeat-contact a {
  font-size: 11px; color: var(--text-muted); text-decoration: none;
  padding: 4px 10px; background: var(--bg-card);
  border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.eeat-contact a:hover { color: var(--gold); border-color: var(--gold-dim); }
.eeat-sources {
  padding: 20px; background: var(--bg-glass); backdrop-filter: blur(12px);
  border: 1px solid var(--hairline); border-radius: var(--radius-xl);
}
.eeat-sources h4 { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.eeat-sources ul { list-style: none; padding: 0; }
.eeat-sources li {
  font-size: 11px; color: var(--text-sec); line-height: 1.5;
  padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
}
.eeat-sources li:last-child { border-bottom: none; }
.eeat-sources li strong { color: var(--text); }
.eeat-note {
  font-size: 10px; color: var(--text-muted); margin-top: 10px;
  font-family: var(--font-mono);
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── PREMIUM: Grid ── */
.premium-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.premium-card {
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border: 1px solid var(--hairline); border-radius: var(--radius-xl);
  overflow: hidden; position: relative;
}
.premium-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
}
.premium-full { grid-column: 1 / -1; }
.premium-header {
  padding: 12px 16px; border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 10px; letter-spacing: 1.5px;
  color: var(--text-sec);
}
.premium-icon { font-size: 14px; }
.premium-badge {
  font-size: 8px; font-family: var(--font-mono); letter-spacing: 1px;
  padding: 2px 8px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-dim), #8B7500);
  color: var(--bg-deep); font-weight: 700;
}

/* ── PREMIUM: Bracket Visualizer ── */
.bv-container { padding: 16px; direction: ltr; }
.bv-header { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-sec); margin-bottom: 16px; font-family: var(--font-mono); }
.bv-header strong { color: var(--gold); }
.bv-track { display: flex; gap: 3px; align-items: flex-end; height: 140px; }
.bv-tier { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bv-bar {
  width: 100%; height: 80px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--hairline);
  position: relative; overflow: hidden; transition: all 0.5s;
}
.bv-bar.bv-active { border-color: rgba(255,215,0,0.2); }
.bv-fill {
  position: absolute; bottom: 0; left: 0; width: 0; height: 100%;
  background: linear-gradient(180deg, var(--gold), rgba(255,215,0,0.3));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(255,215,0,0.2);
}
.bv-label { font-size: 9px; font-family: var(--font-mono); color: var(--gold); font-weight: 600; }
.bv-range { font-size: 8px; color: var(--text-muted); font-family: var(--font-mono); }
.bv-note { margin-top: 16px; font-size: 10px; color: var(--text-muted); text-align: center; font-family: var(--font-mono); }
.bv-note strong { color: var(--gold); }

/* ── PREMIUM: Multi-Year ── */
.my-container { padding: 16px; }
.my-header { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-sec); margin-bottom: 12px; }
.my-header strong { color: var(--gold); }
.my-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.my-year { width: 32px; font-size: 10px; font-family: var(--font-mono); color: var(--text-muted); font-weight: 600; }
.my-bar-wrap { flex: 1; height: 20px; background: var(--bg-card); border-radius: var(--radius-pill); overflow: hidden; }
.my-bar { height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); border-radius: var(--radius-pill); transition: width 0.8s; min-width: 4px; }
.my-amount { width: 90px; text-align: left; font-size: 11px; font-family: var(--font-mono); color: var(--gold); font-weight: 600; }
.my-cp { width: 60px; text-align: left; font-size: 9px; color: var(--text-muted); font-family: var(--font-mono); }
.my-note { margin-top: 10px; font-size: 9px; color: var(--text-muted); font-family: var(--font-mono); }

/* ── PREMIUM: Smart Recommendations ── */
.rec-container { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.rec-card {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--hairline);
  transition: all var(--transition);
}
.rec-card:hover { border-color: rgba(255,215,0,0.15); }
.rec-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.rec-card strong { display: block; font-size: 11px; color: var(--text); margin-bottom: 2px; }
.rec-card p { font-size: 10px; color: var(--text-sec); line-height: 1.4; margin: 0; }
.rec-action { border-color: rgba(255,215,0,0.2); background: rgba(255,215,0,0.04); }
.rec-action strong { color: var(--gold); }
.rec-warning { border-color: rgba(239,68,68,0.2); background: rgba(239,68,68,0.04); }
.rec-warning strong { color: var(--red); }
.rec-tip { border-color: rgba(5,255,161,0.15); background: rgba(5,255,161,0.03); }
.rec-tip strong { color: var(--green); }
.rec-info { border-color: rgba(59,130,246,0.15); background: rgba(59,130,246,0.03); }

/* ── PREMIUM: What-If ── */
.whatif-container { padding: 12px; }
.whatif-table { width: 100%; border-collapse: collapse; }
.whatif-table th {
  text-align: right; padding: 6px 8px; font-size: 9px;
  font-family: var(--font-display); letter-spacing: 1px;
  color: var(--text-muted); border-bottom: 1px solid var(--hairline);
  font-weight: 500;
}
.whatif-table th:last-child { text-align: left; }
.whatif-table td {
  padding: 6px 8px; font-size: 11px; color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-family: var(--font-mono);
}
.whatif-table td:last-child { text-align: left; font-weight: 600; }
.whatif-table tr:hover td { background: rgba(255,215,0,0.03); }
.whatif-note { margin-top: 8px; font-size: 9px; color: var(--text-muted); font-family: var(--font-mono); }

/* ── PREMIUM: Year Selector ── */
#yearSelector option { background: var(--bg-card); color: var(--text); }

/* ── GEO: Bilingual Claim Badge ── */
.geo-claim {
  display: inline-block; margin: 0 auto 12px;
  padding: 6px 16px; background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(0,240,255,0.05));
  border: 1px solid rgba(255,215,0,0.2); border-radius: var(--radius-pill);
  font-size: 10px; color: var(--text-sec); font-family: var(--font-mono);
  letter-spacing: 0.5px; direction: ltr;
}
.geo-claim strong { color: var(--gold); }

/* ── GEO: Feature Comparison Table ── */
.comparison-section { margin-bottom: 32px; }
.comp-intro {
  font-size: 12px; color: var(--text-sec); line-height: 1.6;
  padding: 12px 16px; background: var(--bg-card);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  margin-bottom: 12px; direction: ltr; text-align: left;
}
.comp-intro strong { color: var(--gold); }
.comp-table-wrap { overflow-x: auto; }
.comp-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 600px; }
.comp-table th {
  text-align: right; padding: 10px 12px;
  font-family: var(--font-display); font-size: 9px; letter-spacing: 1.5px;
  color: var(--text-muted); text-transform: uppercase;
  border-bottom: 1px solid var(--hairline); font-weight: 500; white-space: nowrap;
}
.comp-table th:first-child { text-align: right; }
.comp-table td {
  padding: 8px 12px; color: var(--text-sec); font-size: 11px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.comp-table td:first-child { font-weight: 500; color: var(--text); white-space: nowrap; }
.comp-table tr:hover td { background: rgba(255,215,0,0.02); }
.comp-yes { color: var(--green) !important; text-align: center !important; font-size: 14px; }
.comp-no { color: var(--text-muted) !important; text-align: center !important; font-size: 12px; }
.comp-partial { color: var(--gold-dim) !important; text-align: center !important; font-size: 11px; font-family: var(--font-mono); }
.comp-table tr:nth-child(1) td { background: rgba(255,215,0,0.04); }
.comp-footer {
  margin-top: 12px; font-size: 11px; color: var(--text-muted);
  text-align: center; font-family: var(--font-mono);
}
.comp-footer strong { color: var(--gold); }

/* ── PREMIUM: PDF Button ── */
#exportPDF { transition: all var(--transition); }
#exportPDF:hover { border-color: var(--gold) !important; background: var(--gold-muted); box-shadow: 0 0 20px var(--gold-glow); }
#exportPDF:disabled { opacity: 0.5; cursor: wait; }

/* ── EXPOSURE: Trust Bar ── */
.trust-bar {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  margin: 10px 0 14px; padding: 6px 0;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--bg-glass); border: 1px solid var(--hairline);
  font-size: 9px; font-family: var(--font-mono); letter-spacing: 0.5px;
  color: var(--text-sec); white-space: nowrap;
}
.trust-badge:hover {
  border-color: rgba(255,215,0,0.2); color: var(--gold);
}

/* ── EXPOSURE: Share Bar ── */
.share-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 8px 12px;
  background: var(--bg-glass); border: 1px solid var(--hairline);
  border-radius: var(--radius-md); justify-content: center;
}
.share-label { font-size: 11px; color: var(--text-sec); font-family: var(--font-mono); }
.share-btn, .share-link-btn {
  padding: 5px 10px; border-radius: var(--radius-pill);
  background: var(--bg-card); border: 1px solid var(--hairline);
  color: var(--text-sec); font-size: 10px; cursor: pointer;
  font-family: var(--font-ui); transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 3px;
}
.share-btn:hover, .share-link-btn:hover {
  border-color: var(--cyan); color: var(--cyan);
  background: var(--cyan-glow); transform: translateY(-1px);
}

/* ── EXPOSURE: Result Share ── */
.result-share {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  margin-top: 14px; padding: 8px; border-top: 1px solid var(--hairline);
}
.result-share span { font-size: 10px; color: var(--text-muted); font-family: var(--font-mono); }
.result-share .share-btn, .result-share .share-link-btn {
  font-size: 16px; padding: 4px 8px; min-width: 32px; justify-content: center;
}
.result-share .share-btn:hover, .result-share .share-link-btn:hover {
  transform: scale(1.2);
}

/* ── EXPOSURE: Performance pausing ── */
.page-hidden canvas { display: none; }

/* ── PERFORMANCE: Content-Visibility ── */
.edu-section, .faq-section, .comparison-section, .eeat-section, .brackets-wrap, .premium-grid, .section-title {
  content-visibility: auto;
  contain-intrinsic-size: 200px;
}
.share-bar, .trust-bar { content-visibility: auto; contain-intrinsic-size: 40px; }
.result-share { content-visibility: auto; contain-intrinsic-size: 30px; }

/* ── TRUST STATS BAR (Wintax-inspired) ── */
.trust-stats {
  display: flex; align-items: center; gap: 8px;
  justify-content: center; flex-wrap: wrap;
  padding: 8px 16px; margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(255,215,0,0.05), transparent);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  font-size: 11px; color: var(--text-sec);
  font-family: var(--font-mono); direction: ltr;
}
.trust-stat-item strong { color: var(--gold); font-weight: 700; }
.trust-stat-divider { color: var(--text-muted); }

/* ── MEDIA MENTIONS BAR (Wintax-inspired) ── */
.media-bar {
  display: flex; align-items: center; gap: 6px;
  justify-content: center; flex-wrap: wrap;
  padding: 5px 14px; margin-bottom: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  font-size: 10px; color: var(--text-muted);
  font-family: var(--font-mono);
}
.media-bar-label { color: var(--text-sec); font-weight: 600; letter-spacing: 0.5px; direction: rtl; }
.media-bar-item { color: var(--text-sec); font-size: 10px; }
.media-bar-item:hover { color: var(--gold); cursor: default; }
.media-bar-divider { color: var(--text-muted); }

/* ── SCROLL REVEAL ANIMATIONS (Awwwards style) ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-scale.revealed { opacity: 1; transform: scale(1); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── BUTTON RIPPLE EFFECT ── */
.ripple-btn { position: relative; overflow: hidden; }
.ripple-btn .ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255, 215, 0, 0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ── TOGGLE SPRING INTERACTION ── */
.toggle-group button:active:not(.active) {
  transform: scale(0.92);
  transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toggle-group button.active {
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── INPUT FOCUS GLOW ── */
.input-wrap input:focus {
  border-color: var(--gold-dim) !important;
  box-shadow: 0 0 0 3px var(--gold-glow), 0 0 20px rgba(255, 215, 0, 0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.input-wrap input { transition: box-shadow 0.3s ease, border-color 0.3s ease; }
/* iOS zoom prevention: inputs must be ≥16px on mobile */
@media (max-width: 768px) {
  .input-wrap input { font-size: 16px !important; }
  select, .trigger-input { font-size: 16px !important; }
}

/* ── SCROLL PROGRESS BAR ── */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--cyan));
  width: 0%; z-index: 10001;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── RESULT PULSE ── */
@keyframes resultPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); box-shadow: 0 0 30px var(--gold-glow); }
  100% { transform: scale(1); }
}
.result-pulse {
  animation: resultPulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── HERO TYPOGRAPHY ENHANCEMENT ── */
.hero h1 {
  animation: heroTextReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.3s;
}
@keyframes heroTextReveal {
  from { opacity: 0; transform: translateY(20px) scale(0.98); letter-spacing: -2px; }
  to { opacity: 1; transform: translateY(0) scale(1); letter-spacing: normal; }
}

/* ── TRIGGER CARD HOVER ENHANCEMENT ── */
.trigger-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border-color: rgba(255,215,0,0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.trigger-item:active {
  transform: translateY(0) scale(0.98);
}

/* ── COUNTER NUMBER ANIMATION ── */
.counter-pulse {
  animation: counterPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes counterPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ── LIVE BAR (inspired by zmizrahi.co.il terminal) ── */
.live-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px; margin-bottom: 12px;
  background: var(--bg-elevated); border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  font-size: 11px; color: var(--text-sec);
  font-family: var(--font-mono); direction: ltr;
  overflow-x: auto; white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.live-bar-dot { color: var(--green); font-size: 8px; animation: livePulse 1.5s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.live-bar-label { color: var(--green); font-weight: 700; font-size: 9px; letter-spacing: 1px; }
.live-bar-item strong { color: var(--text); font-weight: 600; }
.live-bar-divider { color: var(--text-muted); }

/* ── CONFIDENCE BAR ── */
.confidence-bar {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; padding: 4px 0;
}
.confidence-label { font-size: 10px; color: var(--text-muted); font-family: var(--font-mono); }
.confidence-track {
  flex: 1; height: 4px; background: var(--bg-card);
  border-radius: 2px; overflow: hidden;
}
.confidence-fill {
  height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 2px; transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.confidence-pct { font-size: 10px; color: var(--gold); font-family: var(--font-mono); font-weight: 600; min-width: 32px; text-align: right; }

/* ── LIVE BADGE IN RESULT ── */
.live-badge {
  font-family: var(--font-mono); font-size: 8px; font-weight: 700;
  color: var(--green); background: rgba(5, 255, 161, 0.1);
  padding: 2px 6px; border-radius: 3px; letter-spacing: 0.5px;
  vertical-align: middle; position: relative; top: -1px;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero h1::before, .hero h1::after { display: none; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
  #scrollProgress { display: none; }
}

/* ── CREDIT POINTS CALCULATOR MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-card); border: 1px solid var(--hairline); border-radius: var(--radius-xl);
  width: min(520px, 94vw); max-height: 90vh; overflow-y: auto;
  padding: 28px 28px 20px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  direction: rtl;
}
.modal-close {
  position: absolute; top: 12px; left: 12px; background: none; border: none;
  color: var(--text-muted); font-size: 20px; cursor: pointer; line-height: 1;
  padding: 6px 8px; border-radius: 6px; transition: all 0.15s;
}
.modal-close:hover { color: var(--text); background: var(--bg-elevated); }
.modal-header {
  font-size: 20px; font-weight: 700; color: var(--gold); margin-bottom: 4px;
}
.modal-sub {
  font-size: 13px; color: var(--text-sec); margin-bottom: 20px;
}
.modal-body { display: flex; flex-direction: column; gap: 18px; }
.points-step {
  background: var(--bg-elevated); border-radius: var(--radius-md); padding: 14px 16px;
  border: 1px solid var(--hairline);
}
.points-q {
  font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 8px;
}
.points-subq {
  font-size: 12px; color: var(--text-sec); margin-bottom: 6px;
}
.points-options {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.points-options button {
  flex: 1; min-width: 80px; padding: 8px 12px; border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  background: transparent; color: var(--text-sec); font-size: 13px;
  cursor: pointer; transition: all 0.15s; font-family: var(--font-ui);
}
.points-options button:hover { border-color: var(--gold-muted); color: var(--text); }
.points-options button.active { background: var(--gold-glow); border-color: var(--gold-dim); color: var(--gold); font-weight: 600; }
.points-children { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.points-child-row { display: flex; gap: 6px; align-items: center; }
.points-child-row select {
  flex: 1; padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid var(--hairline);
  background: var(--bg-card); color: var(--text); font-size: 13px; font-family: var(--font-ui);
}
.points-remove-child {
  background: none; border: none; color: var(--red); font-size: 16px;
  cursor: pointer; padding: 4px 6px; border-radius: 4px;
}
.points-remove-child:hover { background: rgba(239,68,68,0.15); }
.points-add-child {
  background: none; border: 1px dashed var(--text-muted); border-radius: var(--radius-sm);
  color: var(--text-sec); font-size: 12px; padding: 6px; cursor: pointer; width: 100%;
  transition: all 0.15s; font-family: var(--font-ui);
}
.points-add-child:hover { border-color: var(--cyan-dim); color: var(--cyan); }
.points-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.points-check {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text);
  cursor: pointer; padding: 6px 8px; border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.points-check:hover { background: var(--gold-muted); }
.points-check input[type="checkbox"] {
  accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer;
}
.points-result {
  margin-top: 14px; padding: 16px; background: var(--bg-elevated);
  border-radius: var(--radius-md); border: 1px solid var(--gold-dim);
  text-align: center;
}
.points-result-num {
  font-size: 36px; font-weight: 800; color: var(--gold);
  line-height: 1.1;
}
.points-result-value {
  font-size: 14px; color: var(--text-sec); margin-top: 4px;
}
.points-result-value strong { color: var(--text); }
.points-result-breakdown {
  margin-top: 10px; font-size: 12px; color: var(--text-sec);
  display: flex; flex-direction: column; gap: 2px;
}
.points-apply {
  margin-top: 12px; padding: 10px 28px; background: var(--gold); color: #000;
  border: none; border-radius: var(--radius-pill); font-weight: 700; font-size: 14px;
  cursor: pointer; transition: all 0.15s; font-family: var(--font-ui);
}
.points-apply:hover { transform: scale(1.03); box-shadow: 0 0 20px var(--gold-glow); }
.points-footer {
  margin-top: 12px; font-size: 11px; color: var(--text-muted); text-align: center;
}

/* ── ADVANCED TAX TOOLS (Premium Cyber Edition) ── */
.tools-section {
  margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px;
}
.tool-card {
  border: 1px solid var(--hairline); border-radius: var(--radius-xl);
  overflow: hidden; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-glass); backdrop-filter: blur(12px);
  position: relative;
}
.tool-card::before {
  content: ''; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg,
    transparent 20%, rgba(255,215,0,0.06) 30%, transparent 40%,
    rgba(0,240,255,0.03) 50%, transparent 60%);
  z-index: -1; opacity: 0; transition: opacity 0.6s;
  background-size: 300% 300%;
  animation: datastream 6s ease-in-out infinite;
}
.tool-card.open::before { opacity: 1; }
.tool-card.open { border-color: rgba(255,215,0,0.12); box-shadow: 0 4px 24px rgba(0,0,0,0.2), 0 0 40px rgba(255,215,0,0.03); }
.tool-card:hover { border-color: rgba(255,215,0,0.08); }

.tool-header {
  width: 100%; padding: 16px 20px; background: transparent;
  border: none; color: var(--text); font-family: var(--font-ui);
  font-size: 13px; font-weight: 600; text-align: right;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: all 0.3s; position: relative; z-index: 1;
}
.tool-header::after {
  content: '+'; font-size: 20px; color: var(--gold); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0.6;
}
.tool-card.open .tool-header::after { transform: rotate(45deg); opacity: 1; }
.tool-header:hover { background: rgba(255,215,0,0.03); }
.tool-header .tool-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  display: none; animation: livePulse 1.5s ease-in-out infinite;
  margin-left: 8px;
}
.tool-card.open .tool-header .tool-live-dot { display: inline-block; }
.tool-icon { font-size: 18px; margin-left: 8px; transition: transform 0.3s; display: inline-block; }
.tool-card.open .tool-icon { transform: scale(1.15); }
.tool-tag {
  font-family: var(--font-mono); font-size: 8px; font-weight: 700;
  color: var(--green); background: rgba(5,255,161,0.12);
  padding: 2px 10px; border-radius: var(--radius-pill); letter-spacing: 0.5px;
  border: 1px solid rgba(5,255,161,0.2);
  box-shadow: 0 0 10px rgba(5,255,161,0.05);
}
.tool-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), padding 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 20px; position: relative;
}
.tool-card.open .tool-body { max-height: 800px; padding: 16px 20px 20px; }

.tool-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.tool-field { position: relative; }
.tool-field label {
  display: block; font-size: 10px; color: var(--text-muted);
  margin-bottom: 4px; letter-spacing: 0.5px;
  font-family: var(--font-mono); text-transform: uppercase;
}
.tool-field input, .tool-field select {
  width: 100%; padding: 10px 12px; background: var(--bg-deep);
  border: 1px solid var(--hairline); border-radius: var(--radius-md);
  color: var(--text); font-family: var(--font-mono); font-size: 13px;
  outline: none; transition: all 0.3s;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}
.tool-field input:focus, .tool-field select:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px var(--gold-glow), 0 0 20px rgba(255,215,0,0.05), inset 0 1px 3px rgba(0,0,0,0.2);
}
.tool-field input:hover, .tool-field select:hover { border-color: rgba(255,215,0,0.2); }

/* Terminal-style results */
.tool-result {
  padding: 14px 16px; background: linear-gradient(135deg, var(--bg-elevated), rgba(15,19,32,0.9));
  border-radius: var(--radius-lg); border: 1px solid var(--hairline);
  font-size: 12px; color: var(--text-sec); line-height: 1.6;
  position: relative; overflow: hidden;
}
.tool-result::before {
  content: '▌'; position: absolute; top: 0; right: 0; font-size: 10px;
  color: rgba(255,215,0,0.06); font-family: var(--font-mono);
}
.tool-result strong { color: var(--gold); font-weight: 700; }
.tool-result .tr-positive { color: var(--green); text-shadow: 0 0 10px rgba(5,255,161,0.15); }
.tool-result .tr-negative { color: var(--red); }
.tool-result .tr-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 3px 0; position: relative;
}
.tool-result .tr-row span:last-child {
  font-family: var(--font-mono); direction: ltr; text-align: left; font-weight: 600;
}
.tool-result .tr-bar-wrap {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--bg-card); border-radius: 1px; overflow: hidden;
}
#tHeatResult .tr-bar-wrap {
  position: relative; height: 4px; margin-top: 2px; margin-bottom: 6px;
}
#tHeatResult .tr-bar-fill {
  height: 100%; border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.tool-result .tr-bar-fill {
  height: 100%; border-radius: 1px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.tool-result .tr-total {
  border-top: 1px solid var(--hairline); margin-top: 6px; padding-top: 6px;
  font-weight: 700; color: var(--gold); font-size: 13px;
}
.tool-result .tr-total span:last-child {
  font-size: 15px; color: var(--gold);
  text-shadow: 0 0 20px rgba(255,215,0,0.15);
}

/* ─── ITA Live Bar — Futuristic HUD ─── */
.ita-live-bar {
  position: relative; z-index: 50;
  background: linear-gradient(135deg, #0a0d1499, #0f1320cc);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: var(--radius-sm);
  margin: 12px auto 0; max-width: 1100px;
  cursor: pointer; user-select: none;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,240,255,0.04), inset 0 0 30px rgba(0,240,255,0.02);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ita-live-bar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,240,255,0.015) 2px, rgba(0,240,255,0.015) 4px);
  pointer-events: none; z-index: 2;
}
.ita-live-bar::after {
  content: ''; position: absolute; top: -50%; left: -50%; right: -50%; bottom: -50%;
  background: conic-gradient(from 0deg at 50% 50%, transparent, rgba(0,240,255,0.03), transparent, rgba(255,215,0,0.03), transparent);
  animation: ita-rotate-glow 8s linear infinite;
  pointer-events: none; z-index: 1;
}
@keyframes ita-rotate-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.ita-live-bar:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 30px rgba(0,240,255,0.08), inset 0 0 40px rgba(0,240,255,0.03);
}
.ita-scanlines {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(0deg,
    transparent, transparent 2px,
    rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  z-index: 3; pointer-events: none;
  animation: ita-scan-move 0.1s linear infinite;
}
@keyframes ita-scan-move {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}
.ita-data-stream {
  position: absolute; top: 0; right: 0; bottom: 0; width: 60px;
  overflow: hidden; opacity: 0.12; z-index: 1; pointer-events: none;
  font-family: monospace; font-size: 6px; line-height: 1; color: var(--cyan);
  writing-mode: vertical-rl;
  animation: ita-stream-flow 3s linear infinite;
}
@keyframes ita-stream-flow {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
.ita-live-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; font-size: 11px;
  font-family: var(--font-mono);
  flex-wrap: wrap; position: relative; z-index: 4;
}
.ita-live-status {
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.ita-live-dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: #22C55E; display: inline-block;
  box-shadow: 0 0 8px #22C55E88, 0 0 20px #22C55E44;
  animation: ita-pulse-dot 1.2s ease-in-out infinite;
}
@keyframes ita-pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #22C55E88, 0 0 20px #22C55E44; }
  50% { opacity: 0.6; box-shadow: 0 0 16px #22C55Eaa, 0 0 40px #22C55E66; }
}
.ita-dot-ring {
  position: absolute; top: -6px; left: -6px; width: 20px; height: 20px;
  border-radius: 50%; border: 1px solid rgba(34,197,94,0.3);
  animation: ita-ring-pulse 2s ease-out infinite;
}
@keyframes ita-ring-pulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}
.ita-live-label {
  font-weight: 600; letter-spacing: 1px;
  display: flex; align-items: center; gap: 2px;
}
.ita-glitch-text {
  position: relative; display: inline-block;
  color: var(--gold);
}
.ita-glitch-text::before,
.ita-glitch-text::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
}
.ita-glitch-text::before {
  color: var(--cyan); clip-path: inset(0 0 60% 0);
  animation: ita-glitch-1 4s infinite linear alternate-reverse;
}
.ita-glitch-text::after {
  color: var(--magenta); clip-path: inset(60% 0 0 0);
  animation: ita-glitch-2 4s infinite linear alternate-reverse;
}
@keyframes ita-glitch-1 {
  0%, 90%, 100% { opacity: 0; transform: translate(0); }
  91% { opacity: 0.8; transform: translate(-1px, 1px); }
  93% { opacity: 0.4; transform: translate(1px, -1px); }
  95% { opacity: 0.8; transform: translate(-1px, -1px); }
}
@keyframes ita-glitch-2 {
  0%, 88%, 100% { opacity: 0; transform: translate(0); }
  89% { opacity: 0.6; transform: translate(1px, -1px); }
  91% { opacity: 0.3; transform: translate(-1px, 1px); }
  94% { opacity: 0.7; transform: translate(1px, 0); }
}
.ita-cursor-blink {
  color: var(--gold); font-weight: 300;
  animation: ita-blink 1s step-end infinite;
  margin-left: 1px;
}
@keyframes ita-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.ita-live-ticker {
  flex: 1; overflow: hidden; position: relative;
  text-overflow: ellipsis; white-space: nowrap; min-width: 0;
  display: flex; align-items: center; gap: 2px;
}
.ita-typewriter {
  color: var(--text-sec); display: inline-block;
}
.ita-type-cursor {
  color: var(--cyan); font-weight: 300;
  animation: ita-blink 0.8s step-end infinite;
  font-size: 10px; line-height: 1;
}
.ita-live-clock {
  display: flex; align-items: center; gap: 4px;
  padding: 1px 6px; border: 1px solid rgba(0,240,255,0.15);
  border-radius: 3px; background: rgba(0,240,255,0.04);
}
.ita-clock-digits {
  color: var(--cyan); font-size: 12px; font-weight: 600;
  font-family: 'Inter', monospace;
  text-shadow: 0 0 10px rgba(0,240,255,0.3);
  animation: ita-clock-flicker 0.1s ease infinite alternate;
}
@keyframes ita-clock-flicker {
  0% { opacity: 1; }
  100% { opacity: 0.92; }
}
.ita-clock-label {
  font-size: 8px; color: rgba(0,240,255,0.4);
  letter-spacing: 1px; font-weight: 400;
}
.ita-live-data { display: flex; gap: 14px; align-items: center; }
.ita-data-item {
  display: flex; align-items: center; gap: 4px; font-size: 10px;
  white-space: nowrap;
}
.ita-data-dot { width: 4px; height: 4px; border-radius: 50%; display: inline-block; }
.pulse-green { background: #22C55E; animation: ita-pulse-dot-small 1.5s ease-in-out infinite; }
.pulse-gold { background: #FFD700; animation: ita-pulse-dot-small 2s ease-in-out infinite; }
.pulse-blue { background: #3B82F6; animation: ita-pulse-dot-small 1.8s ease-in-out infinite; }
@keyframes ita-pulse-dot-small {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px currentColor; }
  50% { opacity: 0.3; box-shadow: 0 0 8px currentColor; }
}
.ita-data-label { color: var(--text-muted); }
.ita-data-val { color: var(--text-sec); font-weight: 500; }
.ita-green { color: #22C55E !important; }
.ita-warn { color: #FFD700 !important; }
.ita-ok { color: #3B82F6 !important; }
.ita-gold { color: var(--gold) !important; }

/* ─── Expand Panel ─── */
.ita-expand {
  max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 1100px; margin: 0 auto; position: relative; z-index: 49;
}
.ita-expand-open { max-height: 800px; }
.ita-expand-header {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 16px 8px; gap: 2px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(0,0,0,0.2);
}
.ita-expand-title {
  position: relative;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 6px; color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,240,255,0.3);
  animation: ita-glitch-text 3s infinite;
}
.ita-expand-title::before,
.ita-expand-title::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
}
.ita-expand-title::before {
  color: var(--magenta);
  animation: ita-title-glitch-1 3s infinite;
}
.ita-expand-title::after {
  color: var(--gold);
  animation: ita-title-glitch-2 3s infinite;
}
@keyframes ita-title-glitch-1 {
  0%, 95%, 100% { opacity: 0; transform: translate(0); }
  96% { opacity: 0.6; transform: translate(-2px, 1px); }
  98% { opacity: 0.3; transform: translate(2px, -1px); }
}
@keyframes ita-title-glitch-2 {
  0%, 97%, 100% { opacity: 0; transform: translate(0); }
  98% { opacity: 0.4; transform: translate(1px, 1px); }
  99.5% { opacity: 0.7; transform: translate(-1px, -2px); }
}
.ita-expand-sub {
  font-size: 9px; color: var(--text-muted);
  font-family: var(--font-mono); letter-spacing: 1px;
}
.ita-expand-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 12px 4px;
}

/* ─── Cards ─── */
.ita-card {
  position: relative;
  background: linear-gradient(160deg, rgba(15,19,32,0.85), rgba(10,13,20,0.95));
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}
.ita-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0,240,255,0.06), 0 0 60px rgba(0,240,255,0.02);
}
.ita-card-glow {
  position: absolute; top: -50%; left: -50%; right: -50%; bottom: -50%;
  background: radial-gradient(circle at 50% 50%, rgba(0,240,255,0.02), transparent 60%);
  animation: ita-card-shimmer 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ita-card-shimmer {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.ita-card-header {
  font-size: 10px; font-weight: 700; font-family: var(--font-mono);
  color: var(--gold); padding: 10px 12px 6px;
  border-bottom: 1px solid rgba(0,240,255,0.06);
  letter-spacing: 0.5px; position: relative; z-index: 1;
}
.ita-card-body {
  padding: 8px 12px 12px; position: relative; z-index: 1;
}
.ita-metric {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 9px; font-family: var(--font-mono);
  padding: 3px 0; color: var(--text-sec);
}
.ita-metric-label { color: rgba(148,163,184,0.6); letter-spacing: 0.3px; }
.ita-metric-val { font-weight: 600; }
.ita-metric-bar {
  height: 2px; background: rgba(255,255,255,0.04);
  border-radius: 1px; margin: 2px 0 4px; overflow: hidden;
  position: relative;
}
.ita-metric-fill {
  height: 100%; border-radius: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  animation: ita-bar-fill 1.5s ease-out forwards;
  transform-origin: left;
}
@keyframes ita-bar-fill {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* ─── Card-specific accent borders ─── */
.ita-card-conn { border-left: 2px solid rgba(0,240,255,0.2); }
.ita-card-conn:hover { border-left-color: var(--cyan); }
.ita-card-stats { border-left: 2px solid rgba(255,215,0,0.2); }
.ita-card-stats:hover { border-left-color: var(--gold); }
.ita-card-deadlines { border-left: 2px solid rgba(239,68,68,0.2); }
.ita-card-deadlines:hover { border-left-color: var(--red); }
.ita-card-reforms { border-left: 2px solid rgba(34,197,94,0.2); }
.ita-card-reforms:hover { border-left-color: #22C55E; }

/* ─── Mobile Queries (merged) ─── */
@media (max-width: 768px) {
  .ita-expand-grid, .hud-grid { grid-template-columns: repeat(2, 1fr); }
  .ita-live-inner { gap: 6px; padding: 6px 10px; font-size: 10px; }
  .ita-live-data { display: none; }
  .ita-data-stream { display: none; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .tool-header { font-size: 12px; padding: 14px 16px; }
  .tool-card.open .tool-body { padding: 14px 16px 18px; }
  .tool-result .tr-row span:last-child { font-size: 12px; }
  .summary-metrics { grid-template-columns: repeat(3, 1fr); }
  .cpa-tabs { gap: 4px; }
  .cpa-tab { font-size: 10px; padding: 6px 8px; }
  .waterfall-row { height: 36px; flex-wrap: wrap; margin-bottom: 8px; }
  .waterfall-data { width: 80px; }
  .waterfall-label { width: 60px; }
}
@media (max-width: 480px) {
  .ita-expand-grid, .hud-grid { grid-template-columns: 1fr; }
  .ita-live-clock, .ita-cursor-blink, .ita-type-cursor { display: none; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-header { font-size: 11px; padding: 12px 14px; }
  .tool-tag { font-size: 7px; padding: 1px 6px; }
  .tool-body { padding: 0 14px; }
  .tool-card.open .tool-body { padding: 12px 14px 16px; }
  .tool-result .tr-total span:last-child { font-size: 13px; }
  .summary-metrics { grid-template-columns: repeat(2, 1fr); }
  .cpa-tabs { flex-wrap: wrap; }
  .cpa-tab { flex: 1 0 40%; }
}
@media (max-width: 480px) {
  .ita-expand-grid { grid-template-columns: 1fr; }
  .ita-live-clock { display: none; }
  .ita-cursor-blink { display: none; }
  .ita-type-cursor { display: none; }
}

/* ─── Smart Summary Engine ─── */
.summary-section { max-width: 1100px; margin: 24px auto 0; padding: 0 16px; }
.summary-card {
  background: linear-gradient(160deg, rgba(15,19,32,0.9), rgba(10,13,20,0.95));
  border: 1px solid rgba(255,215,0,0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(255,215,0,0.04);
}
.summary-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255,215,0,0.03);
}
.summary-icon { font-size: 20px; }
.summary-title {
  flex: 1; font-size: 13px; font-weight: 700; font-family: var(--font-mono);
  color: var(--gold); letter-spacing: 0.5px;
}
.summary-voice-btn, .summary-refresh-btn {
  background: none; border: 1px solid var(--hairline); border-radius: 4px;
  color: var(--text-muted); cursor: pointer; font-size: 14px;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.summary-voice-btn:hover, .summary-refresh-btn:hover {
  border-color: var(--gold); color: var(--gold);
  background: var(--gold-muted);
}
.summary-voice-btn.active { border-color: #22C55E; color: #22C55E; background: rgba(34,197,94,0.1); }
.summary-body { padding: 14px 16px; min-height: 40px; }
.summary-loading { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 12px; font-family: var(--font-mono); }
.summary-dot-pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  animation: ita-pulse-dot 1s ease-in-out infinite;
}
.summary-text {
  font-size: 13px; line-height: 1.8; color: var(--text-sec);
  font-family: 'Heebo', sans-serif;
}
.summary-text strong { color: var(--gold); }
.summary-text .highlight-green { color: #22C55E; font-weight: 600; }
.summary-text .highlight-red { color: #EF4444; font-weight: 600; }
.summary-text .highlight-cyan { color: var(--cyan); font-weight: 600; }
.summary-recs { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.summary-rec-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 4px 0; font-size: 12px; line-height: 1.6; color: var(--text-sec);
}
.summary-rec-item .rec-bullet { color: var(--gold); flex-shrink: 0; }
.summary-metrics {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--hairline);
}
.summary-metric {
  background: var(--bg-canvas); padding: 10px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.sm-label { font-size: 9px; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.5px; }
.sm-value { font-size: 14px; font-weight: 700; font-family: var(--font-mono); color: var(--text); }
@media (max-width: 768px) { .summary-metrics { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .summary-metrics { grid-template-columns: repeat(2, 1fr); } }

/* ─── HUD Dashboard ─── */
.hud-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999; background: rgba(5,7,10,0.97);
  display: none; flex-direction: column;
  backdrop-filter: blur(20px);
}
.hud-overlay.open { display: flex; }
.hud-header {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 24px; border-bottom: 1px solid var(--hairline);
  background: rgba(0,240,255,0.02);
}
.hud-title {
  font-family: var(--font-mono); font-size: 13px; font-weight: 800;
  letter-spacing: 4px; color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,240,255,0.3);
}
.hud-subtitle {
  font-size: 9px; color: var(--text-muted);
  font-family: var(--font-mono); letter-spacing: 2px;
  flex: 1;
}
.hud-close {
  background: none; border: 1px solid var(--hairline);
  color: var(--text-muted); cursor: pointer;
  width: 32px; height: 32px; border-radius: 4px;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.hud-close:hover { border-color: var(--red); color: var(--red); }
.hud-grid {
  flex: 1; overflow-y: auto; padding: 16px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  align-content: start;
}
.hud-widget {
  background: linear-gradient(160deg, rgba(15,19,32,0.8), rgba(10,13,20,0.9));
  border: 1px solid rgba(0,240,255,0.08);
  border-radius: 6px; padding: 10px;
  display: flex; flex-direction: column; gap: 4px;
  cursor: pointer; transition: all 0.2s;
  min-height: 80px;
}
.hud-widget:hover {
  border-color: rgba(255,215,0,0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,215,0,0.04);
}
.hud-widget-header {
  display: flex; align-items: center; gap: 6px;
  font-size: 9px; font-family: var(--font-mono);
  color: var(--gold); letter-spacing: 0.3px;
}
.hud-widget-icon { font-size: 12px; }
.hud-widget-value {
  font-size: 16px; font-weight: 800; font-family: var(--font-mono);
  color: var(--text); line-height: 1.2;
}
.hud-widget-label {
  font-size: 8px; color: var(--text-muted);
  font-family: var(--font-mono);
}
.hud-widget-bar {
  height: 2px; background: rgba(255,255,255,0.04);
  border-radius: 1px; margin-top: auto; overflow: hidden;
}
.hud-widget-fill {
  height: 100%; border-radius: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}
@media (max-width: 1024px) { .hud-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .hud-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .hud-grid { grid-template-columns: repeat(2, 1fr); } }

/* ─── Console Log ─── */
.console-log {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9998; font-family: var(--font-mono);
  font-size: 11px;
}
.console-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px; cursor: pointer;
  background: rgba(10,13,20,0.95);
  border-top: 1px solid var(--hairline);
  backdrop-filter: blur(12px);
  user-select: none;
}
.console-tab:hover { background: rgba(15,19,32,0.95); }
.console-tab-icon { color: var(--cyan); font-size: 12px; }
.console-tab-text {
  font-size: 10px; font-weight: 600; color: var(--gold);
  letter-spacing: 1px;
}
.console-tab-badge {
  font-size: 9px; color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 0 6px; border-radius: 3px;
}
.console-tab-arrow {
  margin-left: auto; color: var(--text-muted);
  font-size: 8px; transition: transform 0.3s;
}
.console-log.open .console-tab-arrow { transform: rotate(180deg); }
.console-body {
  max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
  background: rgba(5,7,10,0.97);
  border-top: 1px solid var(--hairline);
  backdrop-filter: blur(12px);
}
.console-log.open .console-body { max-height: 300px; }
.console-output {
  padding: 8px 16px; max-height: 240px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.console-line {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 10px; line-height: 1.5; color: var(--text-sec);
  animation: console-fade-in 0.2s ease;
}
@keyframes console-fade-in {
  0% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}
.console-line .cl-time { color: var(--text-muted); flex-shrink: 0; font-size: 9px; }
.console-line .cl-icon { flex-shrink: 0; width: 14px; text-align: center; }
.console-line .cl-msg { flex: 1; }
.console-line.cl-info .cl-icon { color: var(--cyan); }
.console-line.cl-success .cl-icon { color: #22C55E; }
.console-line.cl-warn .cl-icon { color: #FFD700; }
.console-line.cl-error .cl-icon { color: #EF4444; }
.console-line.cl-system .cl-icon { color: var(--magenta); }
.console-input-line {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-top: 1px solid var(--hairline);
  background: rgba(0,0,0,0.3);
}
.console-prompt { color: var(--cyan); font-weight: 700; font-size: 12px; }
.console-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-sec); font-family: var(--font-mono); font-size: 11px;
}
.console-input::placeholder { color: var(--text-muted); }

/* ─── Floating Voice Toggle ─── */
.voice-float-btn {
  position: fixed; bottom: 48px; right: 16px;
  z-index: 9997; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--hairline);
  background: var(--bg-elevated); color: var(--text-muted);
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.voice-float-btn:hover {
  border-color: var(--gold); color: var(--gold);
  transform: scale(1.1);
}
.voice-float-btn.active {
  border-color: #22C55E; color: #22C55E;
  box-shadow: 0 0 20px rgba(34,197,94,0.2);
  animation: voice-pulse 2s ease-in-out infinite;
}
@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(34,197,94,0.2); }
  50% { box-shadow: 0 0 40px rgba(34,197,94,0.4); }
}

/* ─── Bracket Waterfall ─── */
.waterfall-section {
  max-width: 1100px; margin: 0 auto 32px; padding: 0 16px;
}
.waterfall-canvas {
  background: linear-gradient(160deg, rgba(15,19,32,0.8), rgba(10,13,20,0.9));
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  padding: 16px; min-height: 180px;
}
.waterfall-row {
  display: flex; align-items: center; height: 28px;
  margin-bottom: 4px; position: relative;
}
.waterfall-row:last-child { margin-bottom: 0; }
.waterfall-label {
  width: 80px; font-size: 9px; font-family: var(--font-mono);
  color: var(--text-muted); flex-shrink: 0;
}
.waterfall-track {
  flex: 1; height: 20px; background: rgba(255,255,255,0.03);
  border-radius: 3px; position: relative; overflow: hidden;
  margin: 0 8px;
}
.waterfall-fill {
  height: 100%; border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.waterfall-fill::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15));
  border-radius: 3px;
}
.waterfall-fill.l1 { background: linear-gradient(90deg, #22C55E, #16a34a); }
.waterfall-fill.l2 { background: linear-gradient(90deg, #3B82F6, #2563eb); }
.waterfall-fill.l3 { background: linear-gradient(90deg, #FFD700, #e6b800); }
.waterfall-fill.l4 { background: linear-gradient(90deg, #F59E0B, #d97706); }
.waterfall-fill.l5 { background: linear-gradient(90deg, #EF4444, #dc2626); }
.waterfall-fill.l6 { background: linear-gradient(90deg, #A855F7, #9333ea); }
.waterfall-fill.l7 { background: linear-gradient(90deg, #EC4899, #db2777); }
.waterfall-data {
  width: 120px; font-size: 9px; font-family: var(--font-mono);
  color: var(--text-sec); text-align: right; flex-shrink: 0;
}
.waterfall-marker {
  position: absolute; top: -4px; bottom: -4px; width: 2px;
  background: var(--gold); z-index: 5;
  box-shadow: 0 0 8px var(--gold), 0 0 20px rgba(255,215,0,0.3);
  transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.waterfall-marker::before {
  content: '▼'; position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%); font-size: 8px; color: var(--gold);
}
.waterfall-income-label {
  position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  font-size: 8px; color: var(--gold); font-family: var(--font-mono);
  white-space: nowrap; text-shadow: 0 0 8px rgba(255,215,0,0.5);
}
.waterfall-summary {
  display: flex; gap: 20px; justify-content: center;
  padding: 12px 16px; border-top: 1px solid var(--hairline);
  margin-top: 12px; flex-wrap: wrap;
}
.waterfall-summary-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.waterfall-summary-item .wfs-label { font-size: 9px; color: var(--text-muted); font-family: var(--font-mono); }
.waterfall-summary-item .wfs-value { font-size: 16px; font-weight: 700; font-family: var(--font-mono); color: var(--gold); }
.waterfall-legend {
  display: flex; gap: 6px; justify-content: center; margin-top: 8px; flex-wrap: wrap;
}
.waterfall-legend-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 8px; font-family: var(--font-mono); color: var(--text-muted);
}
.waterfall-legend-dot {
  width: 8px; height: 8px; border-radius: 2px;
}
@media (max-width: 768px) {
  .waterfall-row { height: 36px; flex-wrap: wrap; margin-bottom: 8px; }
  .waterfall-data { width: 80px; }
  .waterfall-label { width: 60px; }
}

/* ─── Restore Banner ─── */
.restore-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  background: linear-gradient(90deg, rgba(255,215,0,0.08), rgba(0,240,255,0.08));
  border-bottom: 1px solid var(--gold);
  backdrop-filter: blur(16px);
  animation: restore-slide 0.4s ease;
}
@keyframes restore-slide {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}
.restore-icon { font-size: 18px; }
.restore-text { flex: 1; font-size: 13px; color: var(--text); font-weight: 500; }
.restore-btn {
  padding: 6px 16px; border-radius: 4px; border: 1px solid var(--hairline);
  font-size: 12px; font-family: var(--font-mono); cursor: pointer;
  transition: all 0.2s;
}
.restore-yes { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 700; }
.restore-yes:hover { background: #e6b800; }
.restore-no { background: transparent; color: var(--text-muted); }
.restore-no:hover { border-color: var(--text-muted); color: var(--text); }

/* ─── Keyboard Shortcuts Overlay ─── */
.kbd-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10001; background: rgba(5,7,10,0.92);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.kbd-panel {
  background: linear-gradient(160deg, rgba(15,19,32,0.95), rgba(10,13,20,0.98));
  border: 1px solid var(--hairline); border-radius: var(--radius-md);
  max-width: 420px; width: 90%; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.kbd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--hairline);
}
.kbd-title { font-size: 13px; font-weight: 700; color: var(--gold); font-family: var(--font-mono); }
.kbd-close {
  background: none; border: 1px solid var(--hairline); border-radius: 4px;
  color: var(--text-muted); cursor: pointer;
  width: 28px; height: 28px; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.kbd-close:hover { border-color: var(--red); color: var(--red); }
.kbd-body { padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.kbd-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-sec); font-family: var(--font-mono);
}
.kbd-key {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 22px; padding: 0 6px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--hairline);
  border-radius: 4px; font-size: 10px; font-weight: 700; color: var(--gold);
  font-family: var(--font-mono);
}
.kbd-footer {
  padding: 10px 16px; border-top: 1px solid var(--hairline);
  font-size: 10px; color: var(--text-muted); text-align: center;
  font-family: var(--font-mono);
}

/* ─── CPA Dashboard ─── */
.cpa-section {
  max-width: 1100px; margin: 0 auto 32px; padding: 0 16px;
}
.cpa-tabs {
  display: flex; gap: 6px; margin-bottom: 0;
  background: rgba(10,13,20,0.6); padding: 8px 12px;
  border: 1px solid var(--hairline); border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.cpa-tab {
  background: none; border: 1px solid transparent; cursor: pointer;
  font-size: 11px; font-family: var(--font-mono); color: var(--text-muted);
  padding: 6px 12px; border-radius: 4px; transition: all 0.2s;
}
.cpa-tab:hover { color: var(--text-sec); border-color: var(--hairline); }
.cpa-tab.active {
  color: var(--gold); background: rgba(255,215,0,0.06);
  border-color: rgba(255,215,0,0.15);
}
.cpa-content {
  border: 1px solid var(--hairline); border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: linear-gradient(160deg, rgba(15,19,32,0.7), rgba(10,13,20,0.8));
  padding: 16px; min-height: 160px;
}
.cpa-panel { animation: cpa-fade 0.3s ease; }
@keyframes cpa-fade { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: translateY(0); } }
.cpa-risk-score {
  font-size: 32px; font-weight: 900; font-family: var(--font-mono);
  text-align: center; margin-bottom: 12px;
}
.cpa-risk-flags { display: flex; flex-direction: column; gap: 6px; }
.cpa-risk-flag {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-family: var(--font-mono); padding: 6px 10px;
  border-radius: 4px; border: 1px solid var(--hairline);
}
.cpa-risk-flag .flag-icon { flex-shrink: 0; font-size: 14px; }
.cpa-risk-flag .flag-text { flex: 1; color: var(--text-sec); }
.cpa-risk-flag .flag-severity { font-size: 9px; font-weight: 600; }
.cpa-checklist-progress {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-family: var(--font-mono); color: var(--text-sec);
  margin-bottom: 12px;
}
.cpa-progress-bar {
  flex: 1; height: 4px; background: rgba(255,255,255,0.06);
  border-radius: 2px; overflow: hidden;
}
.cpa-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--cyan), var(--gold));
  border-radius: 2px; transition: width 0.5s ease;
}
.cpa-checklist-items { display: flex; flex-direction: column; gap: 4px; }
.cpa-checklist-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-family: var(--font-mono); padding: 6px 8px;
  border-radius: 4px; border: 1px solid var(--hairline);
  cursor: pointer; transition: all 0.2s;
}
.cpa-checklist-item:hover { border-color: rgba(255,215,0,0.15); }
.cpa-checklist-item .ck-check {
  width: 14px; height: 14px; border-radius: 3px;
  border: 1px solid var(--text-muted); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 8px; transition: all 0.2s;
}
.cpa-checklist-item.done { opacity: 0.5; }
.cpa-checklist-item.done .ck-check {
  background: #22C55E; border-color: #22C55E; color: #000;
}
.cpa-checklist-item .ck-text { flex: 1; color: var(--text-sec); }
.cpa-deductions-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
}
.cpa-deduction-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-family: var(--font-mono); padding: 8px 10px;
  border-radius: 4px; border: 1px solid var(--hairline);
  transition: all 0.2s;
}
.cpa-deduction-item:hover { border-color: rgba(0,240,255,0.15); }
.cpa-deduction-item .dd-icon { font-size: 16px; flex-shrink: 0; }
.cpa-deduction-item .dd-info { flex: 1; }
.cpa-deduction-item .dd-info .dd-name { color: var(--gold); font-size: 11px; }
.cpa-deduction-item .dd-info .dd-desc { color: var(--text-muted); font-size: 9px; margin-top: 2px; }
.cpa-deduction-item .dd-status {
  font-size: 9px; padding: 2px 8px; border-radius: 3px;
}
.dd-available { background: rgba(34,197,94,0.1); color: #22C55E; }
.dd-missed { background: rgba(255,215,0,0.1); color: #FFD700; }
.dd-na { background: rgba(239,68,68,0.1); color: #EF4444; }
.cpa-notes-content {
  font-size: 12px; line-height: 1.8; color: var(--text-sec);
  font-family: 'Heebo', sans-serif;
}
.cpa-notes-content strong { color: var(--gold); }
.cpa-notes-content .note-highlight { color: var(--cyan); }
.cpa-notes-copy {
  margin-top: 12px; background: none; border: 1px solid var(--hairline);
  color: var(--text-muted); cursor: pointer; font-size: 10px;
  font-family: var(--font-mono); padding: 6px 12px; border-radius: 4px;
  transition: all 0.2s;
}
.cpa-notes-copy:hover { border-color: var(--gold); color: var(--gold); }
.cpa-profile-form {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.cpa-profile-input {
  flex: 1; background: rgba(255,255,255,0.03); border: 1px solid var(--hairline);
  border-radius: 4px; padding: 8px 12px; font-size: 12px;
  font-family: var(--font-mono); color: var(--text); outline: none;
}
.cpa-profile-input:focus { border-color: var(--gold); }
.cpa-profile-save {
  background: var(--gold); color: #000; border: none;
  border-radius: 4px; padding: 8px 16px; font-size: 12px;
  font-family: var(--font-mono); font-weight: 700; cursor: pointer;
}
.cpa-profile-list { display: flex; flex-direction: column; gap: 4px; }
.cpa-profile-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--hairline); border-radius: 4px;
  font-size: 12px; font-family: var(--font-mono); color: var(--text-sec);
}
.cpa-profile-item .pi-name { flex: 1; }
.cpa-profile-item .pi-date { font-size: 9px; color: var(--text-muted); }
.cpa-profile-item .pi-load, .cpa-profile-item .pi-delete {
  background: none; border: 1px solid var(--hairline); border-radius: 3px;
  font-size: 10px; padding: 2px 8px; cursor: pointer; color: var(--text-muted);
  transition: all 0.2s;
}
.cpa-profile-item .pi-load:hover { border-color: var(--cyan); color: var(--cyan); }
.cpa-profile-item .pi-delete:hover { border-color: var(--red); color: var(--red); }

/* ─── Enhanced Reveal Animation ─── */
/* inherited from existing .reveal classes */

@media (max-width: 768px) {
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .tool-header { font-size: 12px; padding: 14px 16px; }
  .tool-card.open .tool-body { padding: 14px 16px 18px; }
  .tool-result .tr-row span:last-child { font-size: 12px; }
}
@media (max-width: 480px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-header { font-size: 11px; padding: 12px 14px; }
  .tool-tag { font-size: 7px; padding: 1px 6px; }
  .tool-body { padding: 0 14px; }
  .tool-card.open .tool-body { padding: 12px 14px 16px; }
  .tool-result .tr-total span:last-child { font-size: 13px; }
}
