/* ==========================================================================
   01. TOKENS (The 10/10 Aesthetic)
   ========================================================================== */
:root[data-theme="dark"] {
  --bg-canvas: #050507;
  --bg-surface: #0f0f12;
  --bg-surface-hover: #161619;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(41, 151, 255, 0.4);
  
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #555555;
  
  --accent-success: #10b981;
  --accent-blue: #2997ff;
  --accent-amber: #f59e0b;
  --accent-violet: #8b5cf6;
  
  /* Softened from 32px spread to 20px spread per your review */
  --shadow-machined: 
    inset 0 1px 0 rgba(255, 255, 255, 0.06), 
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 6px 20px rgba(0, 0, 0, 0.28);
    
  --shadow-inset: 
    inset 0 2px 5px rgba(0, 0, 0, 0.4), 
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px var(--border-subtle);

  --input-bg: #050505;
  --noise-opacity: 0.02; /* Reduced to avoid dirtying OLED blacks */
}

:root[data-theme="light"] {
  --bg-canvas: #f5f5f7;
  --bg-surface: #ffffff;
  --bg-surface-hover: #fcfcfc;
  
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-focus: rgba(0, 102, 204, 0.3);
  
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-tertiary: #a1a1aa;
  
  --accent-success: #059669;
  --accent-blue: #0066cc;
  --accent-amber: #d97706;
  --accent-violet: #7c3aed;
  
  --shadow-machined: 
    0 4px 16px rgba(0, 0, 0, 0.03),
    0 1px 2px rgba(0, 0, 0, 0.02),
    inset 0 0 0 1px rgba(0, 0, 0, 0.02);
    
  --shadow-inset: 
    inset 0 1px 3px rgba(0, 0, 0, 0.03),
    0 0 0 1px var(--border-subtle);

  --input-bg: #ffffff;
  --noise-opacity: 0.012;
}

/* ==========================================================================
   02. RESET & GPU-FRIENDLY BACKGROUND
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

::selection { background: var(--accent-blue); color: #ffffff; }

/* Sub-surface lighting */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(circle at 20% 0%, rgba(41, 151, 255, 0.12), transparent 50%),
    radial-gradient(circle at 80% 40%, rgba(16, 185, 129, 0.08), transparent 50%);
}

/* High-performance Base64 PNG Noise (No iOS Safari Repaint Jank) */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  opacity: var(--noise-opacity);
  pointer-events: none;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEUAAABVVVVaWlphYWFoaGjGz3K3AAAAAXRSTlMAQObYZgAAAF1JREFUOE9jYMAOTAwMFAoMG4CUrIEBimASRgYGzowMDB8YGJi+MDAwfWBgYHrAwMD0gIGB6QkDA9MTBgamZwwMTC8YGJheMTAwvWJgYHrNwMD0moGB6Q0DA9MbBiSAATgQYgQZ2EAAAAAASUVORK5CYII=");
  background-repeat: repeat;
}

/* ==========================================================================
   02.5 UTILITY CLASSES
   ========================================================================== */
.hidden { 
  display: none !important; 
}

/* ==========================================================================
   03. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.03em; color: var(--text-primary); }
h1 { font-size: 32px; letter-spacing: -0.04em; margin-bottom: 8px; }
h2 { font-size: 22px; margin-bottom: 20px; }
h3 { font-size: 16px; margin-bottom: 6px; }
h4 { font-size: 12px; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }

p { color: var(--text-secondary); margin-bottom: 16px; font-size: 14px; }
.lead { font-size: 16px; color: var(--text-secondary); max-width: 600px; line-height: 1.6; }
.muted-text { color: var(--text-tertiary); font-size: 13px; margin-bottom: 20px; }

/* ==========================================================================
   04. EXPANSIVE LAYOUT
   ========================================================================== */
.shell { max-width: 1040px; margin: 0 auto; padding: 48px 24px 96px; }
.page-head { margin-bottom: 56px; animation: slideUp 0.6s cubic-bezier(.22, 1, .36, 1) forwards; }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}

.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

/* ==========================================================================
   05. SURFACES & HOVER LIGHTING
   ========================================================================== */
.panel, .card, .glass {
  background-color: var(--bg-surface);
  /* Sub-surface machined light sweep */
  background-image: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0) 100%);
  background-size: 100% 200%;
  background-position: 0% 100%;
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow-machined);
  transition: 
    transform 0.4s cubic-bezier(.22, 1, .36, 1), 
    box-shadow 0.4s cubic-bezier(.22, 1, .36, 1),
    background-position 0.4s cubic-bezier(.22, 1, .36, 1);
}

.panel { padding: 40px; }
.card, .glass { padding: 32px; }

.card:hover, .glass:hover {
  transform: translateY(-2px);
  background-position: 0% 0%; /* Sweeps the light gradient up the card */
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.08), 
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.35); /* Softened from 0.5 */
}

/* ==========================================================================
   06. TACTILE INPUTS
   ========================================================================== */
.field { margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-primary); letter-spacing: -0.01em; }
.input-wrap { position: relative; }

.prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-tertiary); font-size: 14px; pointer-events: none;
}

input[type=number], select {
  width: 100%;
  padding: 12px 14px;
  background: var(--input-bg);
  border: none;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  box-shadow: var(--shadow-inset);
  transition: all 0.3s cubic-bezier(.22, 1, .36, 1);
}

input[type=number] { padding-left: 32px; appearance: textfield; -moz-appearance: textfield; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

input:hover, select:hover {
  box-shadow: 
    inset 0 2px 5px rgba(0, 0, 0, 0.4), 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.15);
}

input:focus, select:focus {
  outline: none;
  /* Premium blue halo focus ring */
  box-shadow: 
    inset 0 2px 5px rgba(0, 0, 0, 0.4), 
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px var(--accent-blue),
    0 0 0 3px rgba(41, 151, 255, 0.15);
}

select {
  appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}

.hint { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.divider { height: 1px; background: var(--border-subtle); margin: 40px 0; border: none; }

/* ==========================================================================
   07. NAVIGATION (Spring Interaction)
   ========================================================================== */
.topbar {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 16px 24px;
  margin: 16px auto; 
  max-width: 1040px;
  width: calc(100% - 32px);
  border-bottom: 1px solid var(--border-subtle);
}

.theme-toggle {
  background: none; 
  border: none; 
  cursor: pointer; 
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -12px;
}


@media (max-width: 860px) {
  .topbar {
    width: calc(100% - 24px);
    padding: 12px 16px;
    margin: 8px auto;
  }
}

.brand-block { display: flex; flex-direction: column; gap: 2px; }
.brand { font-weight: 600; font-size: 15px; color: var(--text-primary); letter-spacing: -0.02em;}
.brand-dot { color: var(--accent-blue); }
.brand-tag { font-size: 10.5px; color: var(--text-tertiary); font-weight: 500; letter-spacing: 0.03em; }
@media (max-width: 480px) { .brand-tag { display: none; } }

.nav-pills {
  display: flex; gap: 2px;
  background: var(--bg-surface);
  padding: 6px; border-radius: 12px;
  box-shadow: var(--shadow-machined);
}

.nav-btn {
  background: transparent; border: none;
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); border-radius: 8px;
  cursor: pointer; 
  transition: color 0.4s cubic-bezier(.22, 1, .36, 1), background-color 0.4s cubic-bezier(.22, 1, .36, 1), box-shadow 0.4s cubic-bezier(.22, 1, .36, 1); 
  text-decoration: none;
}

.nav-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.03); }
.nav-btn.active {
  background: var(--bg-surface-hover); 
  color: var(--accent-blue);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}

.nav-indicator { display: none; }

.year-badge {
  background: var(--bg-surface); box-shadow: var(--shadow-machined);
  color: var(--text-primary); font-size: 12px; font-weight: 600;
  padding: 6px 10px; border-radius: 8px; letter-spacing: 0.05em;
}

/* ==========================================================================
   08. RESULTS & HIERARCHY
   ========================================================================== */
.results-col { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 32px; }

.card-label {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-tertiary); }
.dot.green { background: var(--accent-success); box-shadow: 0 0 8px rgba(16,185,129,0.5); }
.dot.blue { background: var(--accent-blue); }
.dot.amber { background: var(--accent-amber); }

.big-num {
  font-size: 32px; font-weight: 600; letter-spacing: -0.04em;
  color: var(--text-primary); font-feature-settings: "tnum";
}
.big-num.amber { color: var(--accent-amber); }
.big-num.blue  { color: var(--accent-blue); }
.big-num.green { color: var(--accent-success); }

.big-num.featured-num { 
  font-size: 52px; font-weight: 700; letter-spacing: -0.05em; color: var(--text-primary); 
}
.card-sub { font-size: 13px; color: var(--text-tertiary); margin-top: 8px; }

/* The Ambient Featured Glow (Zero Blur / 100% Native Gradient) */
.featured-wrap {
  position: relative; border-radius: 16px; z-index: 1;
}
.featured-wrap::before {
  content: ""; position: absolute; inset: -16px; z-index: -1;
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
  border-radius: 24px; pointer-events: none;
}
.featured-wrap .card { border: none; height: 100%; }

/* Secondary Tables (Increased Row Height) */
.mini-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.mini-table td { padding: 14px 0; font-size: 14px; border-bottom: 1px solid var(--border-subtle); }
.mini-table td:first-child { color: var(--text-secondary); }
.mini-table td:last-child { text-align: right; color: var(--text-primary); font-feature-settings: "tnum"; font-weight: 500; }
.mini-table tr:last-child td { border-bottom: none; }
.mini-table tr.total td { border-top: 1px solid var(--border-subtle); font-weight: 600; color: var(--text-primary); }

/* Tertiary Grid Pills */
.quarterly-grid, .rate-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.q-pill, .rate-pill {
  background: transparent; border: 1px solid var(--border-subtle);
  border-radius: 12px; padding: 16px; transition: background 0.3s cubic-bezier(.22, 1, .36, 1);
}
.q-pill:hover, .rate-pill:hover { background: rgba(255,255,255,0.02); }
.q-label, .rate-lbl { font-size: 11px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 8px; }
.q-amount, .rate-num { font-size: 18px; font-weight: 600; color: var(--text-primary); font-feature-settings: "tnum"; }

/* ==========================================================================
   09. LISTS & TABLES
   ========================================================================== */
.steps, .check-list, .pro-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.steps li, .check-list li { display: flex; gap: 16px; align-items: flex-start; font-size: 15px; color: var(--text-secondary); line-height: 1.5; }
.step-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 14px;
  background: rgba(41, 151, 255, 0.1); color: var(--accent-blue); font-weight: 600; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.check-list li::before { content: "✓"; color: var(--accent-blue); font-weight: 700; margin-top: 2px; }

table.ref-table, table.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.ref-table th, table.compare-table th {
  text-align: left; padding: 20px 12px; border-bottom: 1px solid var(--border-subtle);
  color: var(--text-tertiary); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
table.ref-table td, table.compare-table td { padding: 20px 12px; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); }
table.ref-table td:last-child, table.compare-table td:last-child { text-align: right; color: var(--text-primary); font-feature-settings: "tnum"; }

/* ==========================================================================
   10. ANIMATIONS & RESPONSIVE
   ========================================================================== */
.hidden-page { display: none; }

/* GPU-Friendly Animation (Zero Blurs) */
.page-anim { animation: slideUp 0.7s cubic-bezier(.22, 1, .36, 1) forwards; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.disclaimer {
  max-width: 1040px; margin: 80px auto 0; padding: 40px 24px;
  text-align: center; font-size: 13px; color: var(--text-tertiary);
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 860px) {
  .calc-grid { grid-template-columns: 1fr; gap: 32px; }
  .results-col { position: static; gap: 16px; }
  .shell { padding: 24px 16px 80px; }
  .panel { padding: 24px; }
  
  .topbar { flex-direction: column; align-items: flex-start; gap: 20px; }
  .nav-pills { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; padding-bottom: 6px; }
  
  .big-num.featured-num { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =====================================================
   CTA CARDS (Contextual Utility)
===================================================== */
.cta-card {
  margin-top: 24px;
  background-color: var(--bg-surface);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
  background-size: 100% 200%;
  background-position: 0% 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(.22, 1, .36, 1);
}

.cta-card:hover {
  background-position: 0% 0%;
  border-color: var(--accent-blue);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.cta-content {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(41, 151, 255, 0.1);
  color: var(--accent-blue);
}

.cta-text h3 {
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.cta-text p {
  font-size: 12px;
  margin-bottom: 0;
  color: var(--text-secondary);
}
/* ---- Affiliate CTA Cards (label / title / arrow layout) ---- */
.cta-card.cta-affiliate {
  display: block;
  padding: 16px 20px;
  text-decoration: none;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent-success);
  margin-bottom: 4px;
}
.cta-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
}
.cta-arrow {
  font-size: 20px;
  color: var(--accent-success);
  flex-shrink: 0;
  font-weight: 300;
}

/* ==========================================================================
   INTERACTIVE MICROSITE TOOLTIPS
   ========================================================================== */
.tooltip-trigger {
  display: inline-block;
  margin-left: 4px;
  color: var(--text-tertiary);
  cursor: help;
  font-size: 12px;
  position: relative;
  transition: color 0.2s ease;
}

.tooltip-trigger:hover {
  color: var(--accent-blue);
}

/* The Popup Box Configuration (Flipped to drop down) */
.tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 12px); /* Forces the box to render below the icon */
  left: 50%;
  transform: translateX(-50%) translateY(-8px); /* Starts slightly tucked up */
  width: 220px;
  padding: 10px 12px;
  background-color: #161619;
  color: #f5f5f7;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); /* Slightly deeper shadow for bottom drop */
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  z-index: 99;
  transition: opacity 0.2s cubic-bezier(.22, 1, .36, 1), transform 0.2s cubic-bezier(.22, 1, .36, 1);
}

/* Dark mode override matching style tokens */
[data-theme="light"] .tooltip-trigger::after {
  background-color: #ffffff;
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Hover Action: Trigger smoothly fades in and drops into place */
.tooltip-trigger:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =====================================================
   TAX BREAKDOWN DONUT CHART
===================================================== */
.donut-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 8px auto 20px;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,0.28));
}
.donut-svg { width: 100%; height: 100%; overflow: visible; }
.donut-track {
  fill: none;
  stroke: var(--border-subtle);
  stroke-width: 26;
}
.donut-seg {
  fill: none;
  stroke-width: 26;
  transform: rotate(-90deg);
  transform-origin: 100px 100px;
  transition: stroke-dasharray 0.7s cubic-bezier(.22,1,.36,1), stroke-dashoffset 0.7s cubic-bezier(.22,1,.36,1), stroke-width 0.25s ease, opacity 0.25s ease;
  cursor: pointer;
  pointer-events: stroke;
}
#seg-takehome { stroke: var(--accent-success); }
#seg-fed      { stroke: var(--accent-blue); }
#seg-se       { stroke: var(--accent-amber); }
#seg-exp      { stroke: var(--accent-violet); }
.donut-seg.dim  { opacity: 0.28; }
.donut-seg.lift { stroke-width: 31; }

.donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none; text-align: center;
}
.donut-center-val { font-size: 20px; font-weight: 700; color: var(--text-primary); font-feature-settings: "tnum"; letter-spacing: -0.03em; }
.donut-center-lbl { font-size: 10.5px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }

.donut-legend { display: flex; flex-direction: column; gap: 2px; }
.legend-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 8px; border-radius: 10px;
  cursor: pointer; transition: background 0.2s ease;
}
.legend-row:hover, .legend-row.active { background: var(--bg-surface-hover); }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.legend-label { font-size: 13px; color: var(--text-secondary); flex: 1; }
.legend-val { font-size: 13px; color: var(--text-primary); font-weight: 600; font-feature-settings: "tnum"; }
.legend-pct { font-size: 11.5px; color: var(--text-tertiary); font-feature-settings: "tnum"; width: 38px; text-align: right; }

@media (max-width: 480px) { .donut-wrap { width: 150px; height: 150px; } }

/* =====================================================
   DEDUCTION BENCHMARK INSIGHT BANNER
===================================================== */
.insight-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 340px;
  max-width: calc(100vw - 32px);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--bg-surface);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0) 100%);
  box-shadow: var(--shadow-machined), 0 20px 40px rgba(0,0,0,0.28);
  border: 1px solid var(--border-subtle);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.22,1,.36,1), opacity 0.4s cubic-bezier(.22,1,.36,1);
}
.insight-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.insight-icon { font-size: 20px; line-height: 1; margin-top: 1px; }
.insight-body { flex: 1; min-width: 0; }
.insight-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-amber); margin-bottom: 6px; }
.insight-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; }
.insight-link { font-size: 13px; font-weight: 600; color: var(--accent-blue); text-decoration: none; }
.insight-link:hover { text-decoration: underline; }
.insight-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; cursor: pointer;
  color: var(--text-tertiary); font-size: 18px; line-height: 1;
  padding: 2px 4px;
}
.insight-close:hover { color: var(--text-primary); }

@media (max-width: 480px) {
  .insight-banner { left: 16px; right: 16px; bottom: 16px; width: auto; }
}

/* =====================================================
   COUNTRY SELECTOR
===================================================== */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.country-select {
  appearance: none;
  cursor: pointer;
  padding: 7px 30px 7px 10px;
  border: none;
  border-radius: 8px;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-machined);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.country-select:focus {
  outline: none;
  box-shadow:
    var(--shadow-machined),
    0 0 0 2px rgba(41, 151, 255, 0.18);
}
