/* Vesta — design system. Dark, premium, editorial. */
:root {
  --bg: #0a0d13;
  --bg2: #0f1420;
  --panel: #131a29;
  --panel2: #1a2336;
  --line: rgba(255,255,255,.07);
  --text: #e8ecf4;
  --muted: #8b95a9;
  --faint: #5b6478;
  --gold: #e8b64c;
  --gold-dim: rgba(232,182,76,.14);
  --green: #3ddc97;
  --green-dim: rgba(61,220,151,.12);
  --red: #ff6b6b;
  --red-dim: rgba(255,107,107,.12);
  --blue: #5ea8ff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: var(--sans);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(10,13,19,.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hwrap { max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 18px; }
.logo { font-family: var(--serif); font-size: 22px; font-weight: 600;
  letter-spacing: .5px; color: var(--text); }
.logo em { color: var(--gold); font-style: italic; }
.logo-sub { font-size: 10px; text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--faint); display: block; margin-top: -2px; }
nav.desktop { display: none; gap: 4px; margin-left: auto; }
@media (min-width: 900px) { nav.desktop { display: flex; } }
.navbtn {
  background: none; border: none; color: var(--muted); font: 600 12px var(--sans);
  text-transform: uppercase; letter-spacing: 1.4px; padding: 9px 13px;
  border-radius: 8px; cursor: pointer; transition: all .35s var(--ease);
}
.navbtn:hover { color: var(--text); background: var(--panel2); }
.navbtn.active { color: var(--gold); background: var(--gold-dim); }
.gear { margin-left: auto; background: none; border: 1px solid var(--line);
  color: var(--muted); border-radius: 8px; padding: 8px 11px; cursor: pointer;
  font-size: 15px; transition: all .3s var(--ease); }
@media (min-width: 900px) { .gear { margin-left: 6px; } }
.gear:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- mobile tab bar ---------- */
nav.mobile {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  display: flex; background: rgba(13,17,26,.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { nav.mobile { display: none; } }
nav.mobile button {
  flex: 1; background: none; border: none; color: var(--faint); cursor: pointer;
  font: 600 9px var(--sans); text-transform: uppercase; letter-spacing: .6px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0;
}
nav.mobile button .ic { font-size: 17px; }
nav.mobile button.active { color: var(--gold); }

/* ---------- layout ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 26px 20px 60px; }
.tab { display: none; }
.tab.active { display: block; }
.hero { margin: 18px 0 30px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 4.5vw, 42px);
  line-height: 1.15; letter-spacing: .2px; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p { color: var(--muted); max-width: 640px; margin-top: 10px; font-size: 14.5px; }
.eyebrow { font-size: 10.5px; text-transform: uppercase; letter-spacing: 2.6px;
  color: var(--gold); font-weight: 700; margin-bottom: 10px; }

/* ---------- cards / panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr; } .g3 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .g2 { grid-template-columns: 1fr 1fr; }
  .g3 { grid-template-columns: repeat(3, 1fr); } }

/* form controls */
label.f { display: block; margin-bottom: 14px; }
label.f span.l { display: block; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 1.6px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
input, select {
  width: 100%; background: var(--bg2); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; font: 500 15px var(--sans);
  transition: border-color .3s var(--ease); appearance: none;
}
input:focus, select:focus { outline: none; border-color: var(--gold); }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238b95a9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* buttons — hover fill like the reference spec */
.btn {
  position: relative; overflow: hidden; display: inline-block;
  background: transparent; color: var(--text); border: 1px solid var(--gold);
  font: 700 11.5px var(--sans); text-transform: uppercase; letter-spacing: 2px;
  padding: 13px 26px; border-radius: 10px; cursor: pointer; z-index: 1;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); z-index: -1; }
.btn:hover::before { transform: scaleX(1); }
.btn:hover { color: #14100a; transition: color .5s var(--ease); }
.btn.full { width: 100%; text-align: center; }
.btn.ghost { border-color: var(--line); color: var(--muted); }
.btn.ghost::before { background: var(--panel2); }
.btn.ghost:hover { color: var(--text); }
.btn.sm { padding: 8px 14px; font-size: 10px; letter-spacing: 1.4px; border-radius: 8px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; }
.stat .k { font-size: 10px; text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--faint); font-weight: 700; }
.stat .v { font-family: var(--serif); font-size: 24px; margin-top: 4px; font-weight: 500; }
.stat .v.good { color: var(--green); } .stat .v.bad { color: var(--red); }
.stat .v.gold { color: var(--gold); }
.stat .s { font-size: 11px; color: var(--faint); margin-top: 2px; }

/* verdict */
.verdict { border-radius: 14px; padding: 18px 20px; margin-top: 16px;
  display: flex; gap: 16px; align-items: flex-start; border: 1px solid; }
.verdict.good { background: var(--green-dim); border-color: rgba(61,220,151,.3); }
.verdict.warn { background: var(--gold-dim); border-color: rgba(232,182,76,.3); }
.verdict.bad { background: var(--red-dim); border-color: rgba(255,107,107,.3); }
.verdict .g { font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1; }
.verdict.good .g { color: var(--green); } .verdict.warn .g { color: var(--gold); }
.verdict.bad .g { color: var(--red); }
.verdict h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 5px; }
.verdict p { font-size: 13.5px; color: var(--muted); }

/* ---------- market cards (product-list rows) ---------- */
.toolrow { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.toolrow input, .toolrow select { width: auto; flex: 1; min-width: 140px; }
.mgrid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .mgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1050px) { .mgrid { grid-template-columns: 1fr 1fr 1fr; } }
.mcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; transition: transform .45s var(--ease), border-color .45s var(--ease);
}
.mcard:hover { transform: translateY(-3px); border-color: rgba(232,182,76,.4); }
.mcard .top { display: flex; justify-content: space-between; align-items: flex-start; }
.mcard h3 { font-family: var(--serif); font-size: 19px; font-weight: 550; }
.mcard .county { font-size: 10.5px; color: var(--faint); text-transform: uppercase;
  letter-spacing: 1.4px; margin-top: 2px; }
.badge { font: 800 11px var(--sans); padding: 5px 10px; border-radius: 999px;
  letter-spacing: 1px; flex-shrink: 0; }
.badge.A { background: var(--green-dim); color: var(--green); }
.badge.B { background: rgba(94,168,255,.14); color: var(--blue); }
.badge.C { background: var(--gold-dim); color: var(--gold); }
.badge.D { background: var(--red-dim); color: var(--red); }
.mcard .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 14px 0; }
.mcard .nums div { font-size: 13px; color: var(--muted); }
.mcard .nums b { color: var(--text); font-weight: 600; display: block; font-size: 15px; }
.mcard .nums b.good { color: var(--green); } .mcard .nums b.bad { color: var(--red); }
.mcard .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.link { color: var(--blue); font-size: 12px; font-weight: 600; text-decoration: none;
  padding: 8px 10px; border-radius: 8px; background: rgba(94,168,255,.08); }
.link:hover { background: rgba(94,168,255,.18); }

/* ---------- program cards ---------- */
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.pcard.best { border-color: rgba(232,182,76,.5); background:
  linear-gradient(160deg, rgba(232,182,76,.08), var(--panel) 45%); }
.pcard .max { font-family: var(--serif); font-size: 30px; color: var(--gold); font-weight: 550; }
.pcard h3 { font-size: 15px; }
.pcard .dp { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 1.4px; }
.pcard p { font-size: 12.5px; color: var(--muted); }
.pcard .lim { font-size: 12px; color: var(--muted); }
.pill { display: inline-block; font: 700 10px var(--sans); text-transform: uppercase;
  letter-spacing: 1.2px; padding: 4px 9px; border-radius: 999px;
  background: var(--panel2); color: var(--muted); margin-right: 6px; }
.pill.hot { background: var(--gold-dim); color: var(--gold); }

/* ---------- playbook ---------- */
.book { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .book { grid-template-columns: 1fr 1fr; } }
.entry { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 12px; padding: 18px 20px; }
.entry.law { border-left-color: var(--blue); }
.entry h4 { font-size: 14.5px; margin-bottom: 7px; font-weight: 650; }
.entry p { font-size: 13px; color: var(--muted); }

/* ---------- map ---------- */
#map { height: 62vh; min-height: 420px; border-radius: 16px; border: 1px solid var(--line);
  z-index: 1; background: var(--bg2); }
.map-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px;
  font-size: 12px; color: var(--muted); align-items: center; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block;
  vertical-align: -1px; margin-right: 5px; }
.leaflet-popup-content-wrapper { background: var(--panel2); color: var(--text);
  border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.leaflet-popup-tip { background: var(--panel2); }
.leaflet-popup-content { font-family: var(--sans); font-size: 13px; margin: 14px 16px; }
.pop h3 { font-family: var(--serif); font-size: 17px; margin-bottom: 2px; }
.pop .sub { color: var(--muted); font-size: 11px; text-transform: uppercase;
  letter-spacing: 1.2px; margin-bottom: 8px; }
.pop .r { display: flex; justify-content: space-between; gap: 16px; padding: 2.5px 0;
  color: var(--muted); }
.pop .r b { color: var(--text); }
.pop .r b.good { color: var(--green); } .pop .r b.bad { color: var(--red); }
.pop .acts { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.pop .acts a, .pop .acts button { font: 700 10px var(--sans); text-transform: uppercase;
  letter-spacing: 1px; color: var(--gold); background: var(--gold-dim); border: none;
  padding: 7px 10px; border-radius: 7px; cursor: pointer; text-decoration: none; }

/* Zillow-style split view: map + results panel (full-bleed on desktop) */
.mapwrap { display: grid; gap: 14px; grid-template-columns: 1fr; }
.mappanel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; overflow-y: auto; max-height: 40vh; }
@media (min-width: 1000px) {
  .mapwrap { grid-template-columns: 1fr 400px;
    width: calc(100vw - 48px); margin-left: calc(50% - 50vw + 24px); }
  .mappanel { max-height: 78vh; height: 78vh; }
  #map { height: 78vh; }
}

/* address autocomplete */
.searchwrap { position: relative; z-index: 900; }
.searchwrap input { width: 100%; }
.sug { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 3000;
  background: #151c2c; border: 1px solid rgba(232,182,76,.35); border-radius: 12px;
  overflow: hidden; box-shadow: 0 18px 60px rgba(0,0,0,.85); display: none; }
.sug.open { display: block; }
.sug .it { padding: 12px 15px; cursor: pointer; border-bottom: 1px solid var(--line);
  background: #151c2c; }
.sug .it:last-child { border-bottom: none; }
.sug .it:hover, .sug .it.active { background: #24304a; }
.sug .l1 { font-weight: 650; font-size: 14px; color: #fff; }
.sug .l2 { font-size: 12px; color: #9aa5bb; margin-top: 1px; }

/* dual price slider */
.pricebar { flex: 1.6; min-width: 250px; }
.pricebar .pl { display: block; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--gold); font-weight: 700; margin-bottom: 2px; }
.dual { position: relative; height: 26px; }
.dual .track { position: absolute; top: 50%; left: 0; right: 0; height: 4px;
  transform: translateY(-50%); background: var(--panel2); border-radius: 4px; }
.dual .fill { position: absolute; top: 0; bottom: 0; background: var(--gold); border-radius: 4px; }
.dual input[type="range"] { position: absolute; top: 50%; left: 0; width: 100%;
  transform: translateY(-50%); -webkit-appearance: none; appearance: none;
  background: none; pointer-events: none; margin: 0; height: 22px; }
.dual input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none;
  pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); border: 2.5px solid #fff; cursor: grab;
  box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.dual input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 15px;
  height: 15px; border-radius: 50%; background: var(--gold); border: 2.5px solid #fff;
  cursor: grab; }
.mappanel .ph { font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--muted); font-weight: 700; margin: 2px 0 12px; }
.lcard { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; margin-bottom: 10px; cursor: pointer;
  transition: border-color .35s var(--ease), transform .35s var(--ease); }
.lcard:hover { border-color: rgba(232,182,76,.45); }
.lcard.sel { border-color: var(--gold); transform: translateX(3px); }
.lcard .price { font-family: var(--serif); font-size: 20px; font-weight: 550; }
.lcard .addr { font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
.lcard .facts { font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.lcard .facts b { color: var(--text); }
.lcard .facts b.good { color: var(--green); } .lcard .facts b.bad { color: var(--red); }
.lcard .acts { margin-top: 9px; display: flex; gap: 8px; }
.lcard.sold { opacity: .5; filter: saturate(.4); }
.lcard .price .badge { font-size: 9.5px; vertical-align: 3px; margin-left: 4px; }

/* price-pill markers */
.pricepin-wrap { background: none !important; border: none !important; }
.pricepin { display: inline-block; transform: translate(-50%, -50%);
  background: var(--pinc, #c0392b); color: #fff; font: 800 11px var(--sans);
  letter-spacing: .3px; padding: 4px 9px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.9); box-shadow: 0 3px 10px rgba(0,0,0,.5);
  white-space: nowrap; cursor: pointer; transition: transform .25s var(--ease); }
.pricepin:hover, .pricepin.sel { transform: translate(-50%, -50%) scale(1.18); z-index: 1000; }

/* ---------- charts ---------- */
.chartbox { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; margin-top: 16px; overflow-x: auto; }
.chartbox h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--muted); margin-bottom: 12px; }
svg text { font-family: var(--sans); }

/* ---------- AI box ---------- */
.aibox { margin-top: 16px; background: linear-gradient(160deg, rgba(94,168,255,.07), var(--panel));
  border: 1px solid rgba(94,168,255,.25); border-radius: 14px; padding: 18px 20px; }
.aibox h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--blue); margin-bottom: 8px; }
.aibox .out { font-size: 13.5px; color: var(--text); white-space: pre-wrap; }
.aibox .out:empty::before { content: "Add your Anthropic API key in Settings (⚙) to unlock AI deal analysis — or rely on the built-in engine above (free, offline)."; color: var(--faint); }
/* calculation feedback */
@keyframes popin { from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: none; } }
.popin { animation: popin .55s var(--ease) both; }
@keyframes btnpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,182,76,.55); }
  50% { box-shadow: 0 0 0 14px rgba(232,182,76,0); } }
.btn.working { pointer-events: none; color: #14100a; animation: btnpulse .8s ease infinite; }
.btn.working::before { transform: scaleX(1); }

.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--blue);
  border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite;
  vertical-align: -2px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- saved deals ---------- */
.dealrow { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; margin-top: 10px; flex-wrap: wrap; }
.dealrow .nm { font-weight: 650; font-size: 14px; }
.dealrow .meta { font-size: 12px; color: var(--muted); }
.dealrow .cf.good { color: var(--green); font-weight: 700; }
.dealrow .cf.bad { color: var(--red); font-weight: 700; }
.x { background: none; border: none; color: var(--faint); cursor: pointer; font-size: 16px; }
.x:hover { color: var(--red); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 4000; display: none;   /* above the map search dropdown (3000) */
  background: rgba(5,7,11,.7); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal .card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
  overscroll-behavior: contain; }
body.lock { overflow: hidden; }

/* admin command center — full-screen, not a popup */
.modal .card.admincard { max-width: 1150px; width: 96vw; height: 94vh; max-height: 94vh;
  border-color: rgba(232,182,76,.35);
  background: linear-gradient(170deg, rgba(232,182,76,.05), var(--panel) 30%); }
@media (max-width: 700px) { .modal .card.admincard { width: 100vw; height: 100vh;
  max-height: 100vh; border-radius: 0; padding: 20px 16px; } .modal:has(.admincard) { padding: 0; } }

/* the shield — make it look like it guards something */
.gear.shield {
  background: linear-gradient(135deg, #e8b64c, #c9932e);
  color: #14100a; border: none; font-size: 16px;
  box-shadow: 0 0 14px rgba(232,182,76,.45), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gear.shield:hover { transform: translateY(-1px) scale(1.06); color: #14100a;
  box-shadow: 0 0 26px rgba(232,182,76,.75), inset 0 1px 0 rgba(255,255,255,.35); }
.modal h2 { font-family: var(--serif); font-weight: 550; margin-bottom: 4px; }
.modal .sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.note { font-size: 11.5px; color: var(--faint); margin-top: 6px; }

/* ---------- reveal animation (reference spec: 0.22,1,0.36,1) ---------- */
.rv { opacity: 0; transform: translateY(20px); }
.rv.in { opacity: 1; transform: none;   /* none (not 0px) — a lingering transform traps dropdowns under the map */
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.rv.d1.in { transition-delay: .1s; } .rv.d2.in { transition-delay: .22s; }
.rv.d3.in { transition-delay: .34s; } .rv.d4.in { transition-delay: .46s; }

hr.sep { border: none; border-top: 1px solid var(--line); margin: 26px 0; }
.small { font-size: 12px; color: var(--faint); }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }
h2.sec { font-family: var(--serif); font-weight: 550; font-size: 22px; margin: 26px 0 14px; }
.banner { background: var(--gold-dim); border: 1px solid rgba(232,182,76,.3);
  color: var(--text); border-radius: 12px; padding: 12px 16px; font-size: 13px; margin-bottom: 18px; }
.banner b { color: var(--gold); }

/* ---------- invite gate ---------- */
.gate { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center;
  justify-content: center; padding: 24px;
  background: radial-gradient(80% 80% at 50% 20%, #131a29 0%, #0a0d13 70%); }
.gate[hidden] { display: none; }
.gatecard { width: 100%; max-width: 380px; text-align: center; background: var(--panel);
  border: 1px solid var(--line); border-radius: 20px; padding: 40px 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: popin .7s var(--ease) both; }
.gatecard input { margin-bottom: 10px; }
.gatecard #gInvite { text-align: center; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; }
.gatecard .logo-sub { letter-spacing: 3px; }
.gtabs { display: flex; gap: 6px; margin: 20px 0 16px; background: var(--bg2);
  border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.gtab { flex: 1; background: none; border: none; color: var(--muted); font: 700 12px var(--sans);
  text-transform: uppercase; letter-spacing: 1.4px; padding: 9px; border-radius: 8px; cursor: pointer; }
.gtab.active { background: var(--gold-dim); color: var(--gold); }

/* ---------- print: deal one-pager ---------- */
@media print {
  body { background: #fff; color: #111; padding: 0; font-size: 12px; }
  header, nav.mobile, nav.desktop, .gear, .toolrow, .aibox, #savedDeals, #cmpBox,
  #lenderBox, #cfpbChart, .btn, .modal, section.tab:not(.active) { display: none !important; }
  section.tab.active .hero p, section.tab.active .hero .eyebrow { color: #444; }
  .hero h1, .hero h1 em { color: #111 !important; }
  .panel, .stat, .chartbox, .verdict { background: #fff !important; border-color: #ccc !important; }
  .stat .v, .stat .k, .stat .s, .verdict p, .chartbox * { color: #111 !important; }
  .stat .v.good { color: #147a4d !important; } .stat .v.bad { color: #b3261e !important; }
  input, select { background: #fff; color: #111; border-color: #bbb; }
  .rv { opacity: 1 !important; transform: none !important; }
  main { max-width: none; padding: 0; }
}
