/* ══════════════════════════════════════════════════
   SHARED CALCULATOR STYLESHEET — CapitalCalc
   Used by: car-loan, mortgage, paycheck calculators
   Loaded as /shared-calc.css (static asset)
   Version: 2.0 — Professional Design System
══════════════════════════════════════════════════ */

/* ── FALLBACK FONT METRICS ── */
@font-face{font-family:'Fraunces Fallback';src:local('Georgia');font-style:normal;font-weight:600;ascent-override:100%;descent-override:27%;line-gap-override:0%;size-adjust:93%}
@font-face{font-family:'DM Sans Fallback';src:local('Arial');font-style:normal;font-weight:400;ascent-override:95%;descent-override:24%;line-gap-override:0%;size-adjust:99%}

/* ── DESIGN TOKENS ── */
:root {
  --bg: #F5F6F9;
  --surface: #FFFFFF;
  --surface2: #F0F2F7;
  --surface3: #E4E8F0;
  --border: #DDE2EC;
  --border2: #BCC3D4;
  --text: #0C0F1A;
  --text2: #3A4258;
  --text3: #6B7490;
  --accent: #0B5E38;
  --accent2: #0E7A4A;
  --accent-pale: #E4F3EC;
  --accent-mid: #18A362;
  --danger: #B83025;
  --danger-pale: #FCF0EE;
  --pro: #1B2D72;
  --pro-pale: #EDF0FC;
  --gold: #7A5800;
  --gold-pale: #FBF6E6;
  --warn: #6A3F00;
  --warn-pale: #FDF5EC;
  /* Radius — more restrained than before */
  --r: 8px;
  --r-sm: 5px;
  --r-xs: 3px;
  /* Fonts */
  --font: 'DM Sans', 'DM Sans Fallback', sans-serif;
  --serif: 'Fraunces', 'Fraunces Fallback', serif;
  --mono: 'JetBrains Mono', monospace;
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.11), 0 4px 12px rgba(0,0,0,.06);
  --shadow-card: 0 1px 4px rgba(0,0,0,.05), 0 2px 10px rgba(0,0,0,.04);
  --glow-accent: 0 0 0 3px rgba(11,94,56,.12);
  --glow-pro: 0 0 0 3px rgba(27,45,114,.12);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

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

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--accent); color: #fff;
  padding: 8px 16px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  text-decoration: none; z-index: 9999;
  transition: top .15s;
}
.skip-link:focus { top: 1rem; }

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
header {
  background: rgba(255,255,255,.96);
  position: sticky; top: 0; z-index: 200;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 0 1.75rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 1rem;
}
.logo {
  font-family: var(--font); font-size: .95rem;
  color: var(--text); font-weight: 700;
  text-decoration: none; letter-spacing: -.03em;
  display: flex; align-items: center;
  white-space: nowrap; flex-shrink: 0;
}
.logo em { color: var(--accent); font-style: normal; }
.logo-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); margin: 0 1px;
  position: relative; top: -3px;
}
.header-nav {
  display: flex; align-items: center;
  gap: .25rem; flex-wrap: nowrap;
}
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--text3);
  text-decoration: none; padding: 5px 10px;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--surface2); }
.nav-link.active {
  color: var(--accent); font-weight: 600;
  background: var(--accent-pale);
}
.pro-badge-active {
  font-size: 11px; font-weight: 600;
  background: var(--accent-pale); color: var(--accent);
  border: 1px solid rgba(11,94,56,.2);
  padding: 4px 10px; border-radius: var(--r-sm);
  display: none; align-items: center; gap: 5px;
  white-space: nowrap; letter-spacing: .01em;
}
.pro-badge-active.on { display: flex; }
.upgrade-btn {
  background: var(--accent); color: #fff;
  font-family: var(--font); font-size: 12px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--r-sm);
  border: none; cursor: pointer;
  letter-spacing: .01em; white-space: nowrap;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 1px 4px rgba(11,94,56,.2);
  flex-shrink: 0;
}
.upgrade-btn:hover { background: var(--accent2); box-shadow: 0 3px 12px rgba(11,94,56,.3); }

/* Mobile header */
@media (max-width: 700px) {
  .header-inner { padding: 0 1rem; gap: .5rem; }
  .nav-link { display: none; }
}
@media (min-width: 701px) and (max-width: 900px) {
  .nav-link { font-size: 12px; padding: 5px 8px; }
  .header-inner { padding: 0 1.25rem; }
}
@media (max-width: 640px) {
  header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
}
@media (max-width: 360px) {
  .upgrade-btn { font-size: 11px; padding: 7px 12px; }
}

/* ══════════════════════════════════════════════════
   MOBILE CALCULATOR NAV
══════════════════════════════════════════════════ */
.mobile-calc-nav {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 199;
}
.mcn-inner {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mcn-inner::-webkit-scrollbar { display: none; }
.mcn-link {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s;
  white-space: nowrap;
}
.mcn-link.active {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}
.mcn-link:hover:not(.active) { color: var(--text); }
@media (max-width: 700px) { .mobile-calc-nav { display: block; } }

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  background: #0B3D24;
  background-image:
    linear-gradient(145deg, #0B3D24 0%, #0B5E38 50%, #0C6B42 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 60V0h1v60H0zm60 0V0h-1v60h1zM0 0h60v1H0V0zm0 60h60v-1H0v1z' fill='rgba(255,255,255,.025)'/%3E%3C/svg%3E");
  padding: 3.5rem 1.75rem 4.5rem;
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 85% 40%, rgba(18,163,98,.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1120px; margin: 0 auto;
  position: relative; z-index: 1;
  display: flex; align-items: center;
  justify-content: space-between; gap: 3rem;
}
.hero-copy, .hero-content { flex: 1; min-width: 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.55); font-size: 11px;
  font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 20px; height: 1px;
  background: rgba(255,255,255,.3);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  color: #fff; line-height: 1.06;
  margin-bottom: .85rem;
  font-weight: 600; letter-spacing: -.03em;
}
.hero h1 em { font-style: italic; font-weight: 300; color: rgba(255,255,255,.85); }
.hero-sub {
  color: rgba(255,255,255,.68);
  font-size: .9rem; line-height: 1.75;
  max-width: 520px; margin-bottom: 1.5rem;
}
.hero-trust {
  display: flex; flex-wrap: wrap;
  gap: 4px 20px; margin-top: 1.25rem;
}
.hero-trust-item {
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.65);
  display: flex; align-items: center; gap: 6px;
}
.hero-trust-item::before {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(110,207,160,.75);
  flex-shrink: 0;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1rem; }
.pill {
  font-size: 11px; font-weight: 500;
  padding: 4px 11px;
  border-radius: var(--r-sm);
  letter-spacing: .01em;
}
.pill-free {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.1);
}
.pill-pro {
  background: transparent;
  color: rgba(255,255,255,.3);
  border: 1px solid rgba(255,255,255,.06);
}
/* Hero visual box */
.hero-visual {
  flex-shrink: 0; width: 200px; height: 200px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 16px 40px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.06);
}
.hero-visual svg {
  width: 110px; height: 110px;
  color: rgba(255,255,255,.8);
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.2));
}
@media (max-width: 860px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 2rem; }
  .hero-visual { display: none; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-trust { justify-content: center; }
  .hero-pills { justify-content: center; }
  .hero-eyebrow { margin-left: auto; margin-right: auto; justify-content: center; }
}
@media (max-width: 640px) {
  .hero { padding: 2.25rem 1rem 3rem; }
  .hero h1 { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .hero-pills { display: none; }
}

/* ══════════════════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════════════════ */
.main {
  max-width: 1120px; margin: 0 auto;
  padding: 2rem 1.75rem 5rem;
}
.main-cols {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.75rem; align-items: start;
}
.main-center { min-width: 0; }
@media (max-width: 880px) {
  .main-cols { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 640px) {
  .main { padding: 1.25rem 1rem 4rem; }
}
@media (max-width: 480px) {
  .main { padding: 1rem .875rem 3.5rem; }
}

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-card);
}
.sidebar-card h2, .sidebar-card h3 {
  font-family: var(--serif); font-size: .9rem;
  font-weight: 600; margin-bottom: .75rem; color: var(--text);
}
.rate-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .45rem 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.rate-row:last-child { border-bottom: none; padding-bottom: 0; }
.rate-label { color: var(--text2); }
.rate-val { font-family: var(--mono); font-weight: 500; color: var(--text); font-size: 12.5px; }
.rate-val.green { color: var(--accent); }
.rate-val.red { color: var(--danger); }
.sidebar-tip {
  font-size: 12.5px; color: var(--text2); line-height: 1.65;
}

/* ── EXPLAINER ── */
.explainer {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.1rem 1.35rem; margin-bottom: 1.35rem;
  box-shadow: var(--shadow-card);
}
.explainer h2 {
  font-family: var(--serif); font-size: 1rem;
  font-weight: 600; margin-bottom: .45rem; color: var(--text);
}
.explainer p { font-size: .875rem; color: var(--text2); line-height: 1.75; }
.explainer strong { font-weight: 600; color: var(--text); }

/* ══════════════════════════════════════════════════
   TABS
══════════════════════════════════════════════════ */
.tab-bar {
  display: flex; background: var(--surface);
  border: 1px solid var(--border); border-bottom: none;
  border-radius: var(--r) var(--r) 0 0;
  overflow: hidden; width: 100%;
}
.tab-btn {
  flex: 1; min-width: 0; padding: 13px 8px;
  font-family: var(--font); font-size: 12.5px; font-weight: 500;
  color: var(--text3); border: none; background: none;
  cursor: pointer; border-bottom: 2px solid transparent;
  border-right: 1px solid var(--border);
  transition: all .15s;
  display: flex; align-items: center; justify-content: center;
  gap: 6px; white-space: nowrap; overflow: hidden;
}
/* Mobile: scrollable, natural-width tabs */
@media (max-width: 640px) {
  .tab-bar { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-btn { flex: 0 0 auto; padding: 11px 14px; font-size: 12px; }
  .tab-btn .tab-label { display: inline; }
  .tab-btn .tab-short { display: none; }
}
.tab-btn:last-child { border-right: none; }
.tab-btn.active {
  color: var(--accent); border-bottom-color: var(--accent);
  background: var(--surface); font-weight: 600;
}
.tab-btn:hover:not(.active) { background: var(--surface2); color: var(--text); }

/* ── SCROLLABLE TAB BAR WITH PRO SEPARATOR ── */
.tab-bar-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-bar-scroll::-webkit-scrollbar { display: none; }
.tab-bar-scroll .tab-btn {
  flex: 0 0 auto;
  padding: 12px 14px;
  font-size: 12.5px;
}
.tab-bar-scroll .tab-btn-free {
  font-weight: 600;
  color: var(--text);
  border-right: none;
}
.tab-bar-scroll .tab-btn-free.active { color: var(--accent); }
/* Visual divider + PRO label between free and pro tabs */
.tab-sep {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 9px;
  font-weight: 700;
  color: var(--pro);
  background: var(--pro-pale);
  border-left: 1px solid var(--border);
  border-right: 1px solid rgba(27,45,114,.15);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tab-pro-pill {
  font-size: 9px; font-weight: 700;
  background: var(--pro-pale); color: var(--pro);
  padding: 2px 6px; border-radius: var(--r-xs);
  letter-spacing: .04em; flex-shrink: 0;
}
.tab-label { display: inline; }
.tab-short { display: none; }

/* Mobile: compact tab sizing in scroll bar — reduces congestion on small screens */
@media (max-width: 640px) {
  .tab-bar.tab-bar-scroll .tab-btn {
    padding: 11px 11px;
    font-size: 12px;
  }
  .tab-bar.tab-bar-scroll .tab-sep {
    padding: 0 8px;
    font-size: 8px;
  }
}

/* ══════════════════════════════════════════════════
   CALC CARD
══════════════════════════════════════════════════ */
.calc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0 0 var(--r) var(--r);
  padding: 1.75rem 2rem; box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

.section-label {
  font-size: 10px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: .14em;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 1.25rem; margin-top: 1.5rem;
}
.section-label:first-child { margin-top: 0; }
.section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ══════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════ */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem; margin-bottom: 1.25rem;
}
.fg-full { grid-column: 1 / -1; }
.fgroup { display: flex; flex-direction: column; gap: 5px; }
.frow {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 3px;
}
label {
  font-size: 11px; font-weight: 600; color: var(--text2);
  text-transform: uppercase; letter-spacing: .08em;
  display: block;
}
.label-note { font-weight: 400; text-transform: none; letter-spacing: 0; }
.fhint { font-size: 11.5px; color: var(--text3); margin-top: 2px; line-height: 1.5; }
.field-error {
  font-size: 11.5px; color: var(--danger);
  margin-top: 3px; font-weight: 500; display: none;
}
.field-error.show { display: block; }

/* Inputs */
.inp-wrap { position: relative; display: flex; align-items: center; }
.inp-wrap .prefix,
.inp-wrap .suffix {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--text3); font-size: 13px;
  pointer-events: none; font-family: var(--mono); z-index: 1;
}
.inp-wrap .prefix { left: 12px; }
.inp-wrap .suffix { right: 12px; }
.inp-wrap input { padding-left: 26px; }
.inp-wrap.has-suffix input { padding-right: 30px; padding-left: 13px; }
.inp-wrap.suffix-wrap input { padding-right: 36px; padding-left: 13px; }

input[type="number"],
input[type="text"],
input[type="date"],
select {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font); font-size: 13.5px;
  color: var(--text); background: var(--surface);
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
input[type="number"]:focus,
input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
}
input:hover:not(:focus),
select:hover:not(:focus) { border-color: var(--border2); }
input::placeholder { color: var(--text3); opacity: 1; }
input.error { border-color: var(--danger); }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236B7490' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px; cursor: pointer;
}
.locked-field {
  background: var(--surface2) !important;
  color: var(--text3) !important;
  cursor: pointer !important;
  border-style: dashed !important;
}
.locked-field:focus {
  border-color: var(--border) !important;
  box-shadow: none !important;
}

/* Range slider */
.range-group { display: flex; flex-direction: column; gap: 6px; }
.range-display, .range-top {
  display: flex; justify-content: space-between; align-items: center;
}
.range-val {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--accent); background: var(--accent-pale);
  padding: 3px 10px; border-radius: var(--r-sm);
}
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px;
  background: var(--border); border-radius: 10px;
  outline: none; cursor: pointer; border: none; padding: 0;
}
input[type="range"]:focus { box-shadow: none; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  cursor: pointer; transition: transform .15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff; cursor: pointer;
}

/* Pro lock badge */
.pro-lock {
  font-size: 10px; font-weight: 600;
  background: var(--pro-pale); color: var(--pro);
  padding: 3px 8px; border-radius: var(--r-xs);
  cursor: pointer; transition: opacity .15s;
  white-space: nowrap; border: none; font-family: var(--font);
}
.pro-lock:hover { opacity: .75; }

/* Medium mobile: keep 2-col forms */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .calc-card { padding: 1.1rem; }
  .tab-btn { font-size: 11px; padding: 11px 8px; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .state-teaser, .aff-bar, .pro-strip { flex-direction: column; align-items: flex-start; }
  .price-box { flex-direction: column; gap: .65rem; text-align: center; }
  .price-meta { text-align: center; }
}
/* Small mobile: single column forms */
@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .calc-card { padding: .875rem; }
  .result-grid { grid-template-columns: 1fr; }
  .rc-total .rc-val { font-size: 1.85rem; }
}
@media (max-width: 360px) {
  .tab-btn { padding: 10px 3px; font-size: 10px; }
  .tab-pro-pill { display: none; }
  .calc-card { padding: .75rem; }
}

/* ══════════════════════════════════════════════════
   CALCULATE BUTTON
══════════════════════════════════════════════════ */
.calc-btn {
  width: 100%; padding: 14px 24px;
  background: var(--accent);
  color: #fff; border: none; border-radius: var(--r-sm);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; margin-top: 1.25rem;
  transition: background .15s, box-shadow .15s, transform .1s;
  letter-spacing: .01em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 2px 8px rgba(11,94,56,.2);
}
.calc-btn:hover:not(:disabled) {
  background: var(--accent2);
  box-shadow: 0 4px 16px rgba(11,94,56,.35);
  transform: translateY(-1px);
}
.calc-btn:active:not(:disabled) { transform: translateY(0); }
.calc-btn:disabled { opacity: .5; cursor: not-allowed; }
.calc-btn-wrap { margin-top: 1.25rem; }
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none; flex-shrink: 0;
}
.calc-btn.loading .btn-spinner { display: block; }

/* ══════════════════════════════════════════════════
   RESULTS
══════════════════════════════════════════════════ */
.results { display: none; margin-top: 1.75rem; }
.results.show { display: block; animation: fadeUp .3s ease; }

.results-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 1.25rem;
}
.results-header::before, .results-header::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.results-header span {
  font-size: 10px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: .14em; white-space: nowrap;
}

.result-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 1.25rem;
}
.rc { border-radius: var(--r-sm); padding: 1rem 1.2rem; }
.rc-full { grid-column: 1 / -1; }
.rc-default { background: var(--surface2); border: 1px solid var(--border); }
.rc-total {
  background: var(--text); /* Dark, not gradient */
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.rc-accent {
  background: var(--accent-pale);
  border: 1px solid rgba(11,94,56,.15);
}
.rc-warn { background: var(--danger-pale); border: 1px solid rgba(184,48,37,.12); }

.rc-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .4rem;
}
.rc-default .rc-label { color: var(--text3); }
.rc-total .rc-label { color: rgba(255,255,255,.5); }
.rc-accent .rc-label { color: var(--accent); }
.rc-warn .rc-label { color: var(--danger); }

.rc-val {
  font-family: var(--mono); font-size: 1.6rem;
  line-height: 1; font-weight: 500;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.rc-default .rc-val { color: var(--text); }
.rc-total .rc-val { color: #fff; font-size: 2.25rem; }
.rc-accent .rc-val { color: var(--accent); }
.rc-warn .rc-val { color: var(--danger); }

.rc-sub { font-size: 11px; margin-top: .35rem; line-height: 1.4; }
.rc-default .rc-sub { color: var(--text3); }
.rc-total .rc-sub { color: rgba(255,255,255,.55); }
.rc-accent .rc-sub { color: var(--accent); opacity: .8; }
.rc-warn .rc-sub { color: var(--danger); opacity: .8; }

/* Breakdown lines in result card */
.rc-breakdown, .rc-tax-lines {
  display: flex; flex-wrap: wrap;
  gap: 4px 14px; margin-top: .65rem;
  padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.08);
}
.rc-bline, .rc-tax-line {
  font-size: 11px; color: rgba(255,255,255,.5);
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.rc-bline strong, .rc-tax-line strong {
  color: rgba(255,255,255,.85); font-weight: 600;
  font-family: var(--mono); font-size: 11px;
}
.rc-bline-dot, .rc-tax-line-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,.25); flex-shrink: 0;
}

@media (max-width: 480px) {
  .result-grid { grid-template-columns: 1fr; }
  .rc-total .rc-val { font-size: 1.85rem; }
}

/* ══════════════════════════════════════════════════
   PLAIN ENGLISH BOX
══════════════════════════════════════════════════ */
.plain-box {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--gold-pale);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1.1rem 1.25rem; margin-bottom: 1.25rem;
}
.plain-box h3 {
  font-family: var(--serif); font-size: .9rem;
  font-weight: 600; color: var(--gold); margin-bottom: .4rem;
}
.plain-box p { font-size: .875rem; color: var(--warn); line-height: 1.75; }
.plain-box strong { color: #4A3000; font-weight: 600; }

/* ══════════════════════════════════════════════════
   BREAKDOWN TABLE
══════════════════════════════════════════════════ */
.breakdown, .breakdown-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem;
}
.breakdown h3, .breakdown-card h3 {
  font-size: 10px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: .85rem;
}
.brow {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.brow:last-child { border-bottom: none; font-weight: 600; padding-top: 10px; }
.bl { color: var(--text2); }
.bv {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.bv.g, .bv.accent { color: var(--accent); }
.bv.r, .bv.danger { color: var(--danger); }

/* ══════════════════════════════════════════════════
   INSIGHTS
══════════════════════════════════════════════════ */
.insights-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem;
}
.insights-header {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .85rem;
}
.insights-header-text {
  font-size: 11px; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: .08em;
}
.insight-item {
  font-size: 13px; color: var(--text2); line-height: 1.6;
  padding: .45rem 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: .65rem;
}
.insight-item:last-child { border-bottom: none; padding-bottom: 0; }
.insight-item::before { content: '→'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ══════════════════════════════════════════════════
   TRUST BAR
══════════════════════════════════════════════════ */
.trust-bar {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 1rem 2rem;
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow-card);
}
.trust-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--text3); font-weight: 500;
}
.trust-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-mid); flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   PRO ELEMENTS
══════════════════════════════════════════════════ */
.pro-placeholder { text-align: center; padding: 3.5rem 1.5rem; }
.pp-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--pro-pale); display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; font-size: 1.5rem;
}
.pp-title {
  font-family: var(--serif); font-size: 1.5rem;
  font-weight: 600; margin-bottom: .5rem; color: var(--text);
  letter-spacing: -.025em;
}
.pp-desc {
  color: var(--text2); font-size: 13.5px;
  max-width: 360px; margin: 0 auto 1.5rem; line-height: 1.7;
}

.pro-strip {
  background: var(--pro);
  border-radius: var(--r-sm); padding: 1.1rem 1.4rem;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(27,45,114,.2);
}
.ps-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: .3rem; }
.ps-feats { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.ps-feats span {
  font-size: 11px; color: rgba(255,255,255,.6);
  display: flex; align-items: center; gap: 4px;
}
.ps-feats span::before { content: '✓'; font-weight: 700; }
.ps-right { display: flex; align-items: center; flex-shrink: 0; }
.ps-price { font-size: 16px; font-weight: 700; color: #fff; white-space: nowrap; margin-right: .75rem; }
.ps-price sub { font-size: 11px; font-weight: 400; color: rgba(255,255,255,.6); }
.ps-btn {
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-sm); padding: 9px 16px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: background .15s; white-space: nowrap;
}
.ps-btn:hover { background: rgba(255,255,255,.2); }

/* Pro sidebar card */
.pro-sidebar-card {
  background: var(--pro); border-radius: var(--r);
  padding: 1.25rem; box-shadow: 0 4px 16px rgba(27,45,114,.2);
}
.pro-sidebar-card h3 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: .75rem; }
.pro-sidebar-card .feat {
  color: rgba(255,255,255,.8); font-size: 12px;
  display: flex; align-items: center; gap: 7px; margin-bottom: 7px;
}
.pro-sidebar-card .feat::before { content: '✓'; color: rgba(110,207,160,.8); font-weight: 700; }

/* ══════════════════════════════════════════════════
   AMORTIZATION TABLE (shared)
══════════════════════════════════════════════════ */
.amort-section, .amort-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.35rem;
  box-shadow: var(--shadow-card); margin-bottom: 1.25rem;
}
.amort-section h3, .amort-card h3 {
  font-size: 10px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: .85rem;
}
.amort-toggle, .amort-controls {
  display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.amort-tab {
  font-size: 12px; font-weight: 600; padding: 6px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface2); color: var(--text3);
  cursor: pointer; font-family: var(--font); transition: all .15s;
}
.amort-tab.active {
  background: var(--accent); color: #fff;
  border-color: var(--accent); box-shadow: 0 2px 8px rgba(11,94,56,.2);
}
.amort-wrap, .amort-table-wrap {
  overflow-x: auto; border-radius: var(--r-sm); border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch; max-width: 100%;
}
.amort-table {
  width: 100%; border-collapse: collapse;
  font-size: 12.5px; min-width: 520px;
}
.amort-table th {
  background: var(--surface2); padding: .65rem .85rem;
  text-align: right; font-size: 10px; font-weight: 700;
  color: var(--text3); text-transform: uppercase;
  letter-spacing: .06em; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.amort-table th:first-child { text-align: left; }
.amort-table td {
  padding: .6rem .85rem; text-align: right;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 12.5px;
  color: var(--text2); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.amort-table td:first-child { text-align: left; color: var(--text); }
.amort-table tr:last-child td { border-bottom: none; }
.amort-table tr:hover td { background: var(--surface2); }
.td-pmt { color: var(--text) !important; font-weight: 500 !important; }
.td-int { color: var(--danger) !important; }
.td-prin { color: var(--accent) !important; }
.amort-show-more {
  width: 100%; padding: .7rem;
  border: none; background: var(--surface2);
  font-family: var(--font); font-size: 12.5px;
  font-weight: 600; color: var(--text3);
  cursor: pointer; border-top: 1px solid var(--border);
  transition: all .15s;
}
.amort-show-more:hover { background: var(--surface3); color: var(--text); }

/* ══════════════════════════════════════════════════
   DONUT CHART (shared)
══════════════════════════════════════════════════ */
.donut-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.35rem;
  box-shadow: var(--shadow-card); margin-bottom: 1.25rem;
}
.donut-section h3 {
  font-size: 10px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1.25rem;
}
.donut-wrap { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.donut-svg-wrap, .chart-row .donut-wrap {
  flex-shrink: 0; position: relative; width: 150px; height: 150px;
}
.donut-svg-wrap svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.donut-label, .donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none;
}
.donut-label-pct, .donut-center-pct {
  font-family: var(--mono); font-size: 1.35rem;
  font-weight: 600; color: var(--text); line-height: 1;
}
.donut-label-sub, .donut-center-lbl {
  font-size: 9px; font-weight: 600; color: var(--text3);
  text-transform: uppercase; letter-spacing: .07em; margin-top: 3px;
}
.donut-legend { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 10px; }
.legend-item { display: flex; align-items: center; gap: 10px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.legend-body { flex: 1; }
.legend-name { font-size: 12px; font-weight: 600; color: var(--text2); }
.legend-val { font-family: var(--mono); font-size: 12px; color: var(--text); font-weight: 500; }
.legend-pct { font-size: 11px; color: var(--text3); }

/* Chart row (car loan style) */
.chart-row {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 1.25rem; padding: 1.15rem 1.25rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-sm); flex-wrap: wrap;
}
.chart-row .donut-wrap { width: 110px; height: 110px; position: relative; flex-shrink: 0; }
.chart-row .donut-wrap svg { width: 110px; height: 110px; transform: rotate(-90deg); }
.chart-legend { flex: 1; }
.chart-legend .legend-item { margin-bottom: .5rem; }

/* ══════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 1000; display: flex; align-items: center;
  justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .2s; backdrop-filter: blur(4px);
}
.modal-overlay.on { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border-radius: 12px;
  width: 100%; max-width: 480px; padding: 2rem;
  position: relative; box-shadow: var(--shadow-lg);
  max-height: 90vh; overflow-y: auto;
  transform: translateY(10px); transition: transform .2s;
}
.modal-overlay.on .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--surface2); border: none;
  border-radius: 50%; width: 30px; height: 30px;
  font-size: 18px; cursor: pointer; color: var(--text3);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.modal-close:hover { background: var(--surface3); }
.modal-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--pro);
  background: var(--pro-pale); display: inline-flex;
  padding: 4px 10px; border-radius: var(--r-xs); margin-bottom: .75rem;
}
.modal-title {
  font-family: var(--serif); font-size: 1.5rem;
  font-weight: 600; color: var(--text); margin-bottom: .5rem;
  line-height: 1.2; letter-spacing: -.025em;
}
.modal-desc { font-size: .875rem; color: var(--text3); margin-bottom: 1.25rem; line-height: 1.65; }
.modal-section {
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text3); margin-bottom: .65rem;
}
.feat-list { list-style: none; margin-bottom: 1.25rem; }
.feat-list li {
  display: flex; gap: 10px; font-size: 13px;
  color: var(--text2); margin-bottom: .6rem; line-height: 1.45;
}
.feat-check { color: var(--accent); font-weight: 700; flex-shrink: 0; }
.price-box {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 1rem 1.25rem; margin-bottom: 1.25rem;
}
.price-num {
  font-family: var(--mono); font-size: 2.25rem;
  font-weight: 500; color: var(--accent); line-height: 1;
  letter-spacing: -.04em;
}
.price-meta { display: flex; flex-direction: column; gap: 2px; }
.price-period { font-size: 12px; font-weight: 600; color: var(--text); }
.price-note { font-size: 11px; color: var(--text3); }
.modal-cta {
  display: block; width: 100%; padding: 14px;
  background: var(--accent); color: #fff;
  text-decoration: none; border-radius: var(--r-sm);
  text-align: center; font-size: 14px; font-weight: 600;
  font-family: var(--font); border: none; cursor: pointer;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(11,94,56,.2); margin-bottom: 1.1rem;
}
.modal-cta:hover { background: var(--accent2); box-shadow: 0 4px 16px rgba(11,94,56,.3); }
.modal-cta:disabled { opacity: .6; cursor: not-allowed; }
.key-divider {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: .85rem; font-size: 11px; color: var(--text3);
}
.key-divider::before, .key-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.key-row { display: flex; gap: .5rem; }
.key-input {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 13px;
  background: var(--surface); color: var(--text);
  outline: none; transition: border .15s;
}
.key-input:focus { border-color: var(--accent); box-shadow: var(--glow-accent); }
.key-btn {
  padding: 10px 18px; background: var(--accent); color: #fff;
  border: none; border-radius: var(--r-sm);
  font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .15s;
}
.key-btn:hover { background: var(--accent2); }
.key-btn:disabled { opacity: .55; cursor: not-allowed; }
.key-status { font-size: 12px; min-height: 18px; margin-top: .5rem; font-weight: 500; }
.key-status.err { color: var(--danger); }
.key-status.ok { color: var(--accent); }
.modal-alt { font-size: 12px; color: var(--text3); margin-top: .85rem; text-align: center; }
.modal-alt a { color: var(--accent); text-decoration: none; font-weight: 600; }
.modal-micro { font-size: 10.5px; color: var(--text3); text-align: center; margin-top: .75rem; }
.modal-success { text-align: center; }
.ms-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.ms-title {
  font-family: var(--serif); font-size: 1.5rem;
  font-weight: 600; margin-bottom: .5rem; color: var(--accent);
}
.ms-desc { font-size: .875rem; color: var(--text3); margin-bottom: 1.25rem; }
.ms-features { list-style: none; text-align: left; margin-bottom: 1.25rem; }
.ms-features li {
  font-size: 13px; color: var(--text2); margin-bottom: .4rem;
  display: flex; align-items: center; gap: 8px;
}
.ms-features li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.ms-btn {
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--r-sm); padding: 12px 24px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s; width: 100%;
}
.ms-btn:hover { background: var(--accent2); }
.ms-note { font-size: 11px; color: var(--text3); margin-top: .75rem; }
.modal-ctx { display: none; background: var(--surface2); border-radius: var(--r-sm); padding: 1rem; margin-bottom: 1.25rem; }
.modal-ctx.on { display: flex; align-items: flex-start; gap: .85rem; }
.modal-ctx-icon { font-size: 1.5rem; flex-shrink: 0; }
.modal-ctx-tag { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--pro); margin-bottom: .25rem; }
.modal-ctx-msg { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: .2rem; }
.modal-ctx-sub { font-size: 12px; color: var(--text3); line-height: 1.5; }

/* ══════════════════════════════════════════════════
   DISCLAIMER
══════════════════════════════════════════════════ */
.results-disclaimer {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: .9rem 1.1rem;
  font-size: 12px; color: var(--text3); line-height: 1.6;
  margin-top: 1.25rem;
}
.results-disclaimer strong { color: var(--text2); }
.disc-meta { display: block; margin-top: .35rem; font-size: 11px; color: var(--border2); }

/* ══════════════════════════════════════════════════
   PRINT BUTTON
══════════════════════════════════════════════════ */
.print-btn {
  width: 100%; margin-top: 1rem; padding: 11px 20px;
  background: transparent; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); font-family: var(--font);
  font-size: 13px; font-weight: 600; color: var(--text3);
  cursor: pointer; transition: all .15s;
}
.print-btn:hover { background: var(--surface2); color: var(--text); }

/* ══════════════════════════════════════════════════
   AD SLOTS
══════════════════════════════════════════════════ */
.ad-slot {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-sm); overflow: hidden;
  position: relative; content-visibility: auto;
}
.ad-slot-label {
  font-size: 9px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text3);
  opacity: .4; position: absolute; top: 5px; left: 9px;
}
.ad-leaderboard { min-height: 90px; height: 90px; margin-bottom: 1.75rem; }
.ad-banner-sm { min-height: 50px; height: 90px; margin: 1.5rem 0; }
.ad-rectangle { min-height: 250px; height: 250px; border-radius: var(--r); }
.ad-inline { min-height: 90px; height: 90px; margin: 1.5rem 0; }
@media (max-width: 640px) {
  .ad-leaderboard { height: 60px; min-height: 50px; }
  .ad-banner-sm { height: 60px; min-height: 50px; }
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
footer {
  background: linear-gradient(135deg,#0B3D24 0%,#0B5E38 100%); color: rgba(255,255,255,.65);
  padding: 3rem 1.75rem 2.5rem; margin-top: 2rem;
}
.footer-links {
  max-width: 1120px; margin: 0 auto 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: rgba(255,255,255,.45); margin-bottom: .4rem;
}
.footer-col a { font-size: 13px; color: rgba(255,255,255,.7); text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-copy, .footer-disc {
  text-align: center; font-size: 12px; color: rgba(255,255,255,.5);
  max-width: 1120px; margin: 0 auto;
}
.footer-disc { margin-top: .4rem; font-size: 11px; }
@media (max-width: 900px) { .footer-links { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; } }
@media (max-width: 640px) {
  footer { padding: 2.5rem 1rem 2rem; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
}
@media (max-width: 360px) {
  footer { padding: 2rem .875rem 1.75rem; }
}

/* ══════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }
.shake { animation: shake .4s ease; }

/* ══════════════════════════════════════════════════
   PRINT STYLES
══════════════════════════════════════════════════ */
@media print {
  header, footer, .hero, .sidebar, .trust-bar,
  .print-btn, .ad-slot, .pro-strip { display: none !important; }
  .main { max-width: 100%; padding: 0; }
  .results { display: block !important; }
  body { background: #fff !important; }
}
