/* =====================================================================
   VALORE — luxury black & gold theme
   Dark, editorial, high-contrast. Fraunces display + Hanken Grotesk body.
   ===================================================================== */
:root {
  /* surfaces */
  --bg:        #0a0a0c;
  --bg-2:      #0c0c0f;
  --surface:   #141417;
  --surface-2: #1a1a1f;
  --surface-3: #212128;
  --surface-hi:#26262e;

  /* lines */
  --line:      rgba(255,255,255,.08);
  --line-soft: rgba(255,255,255,.05);
  --gold-line: rgba(214,178,94,.28);
  --gold-line-soft: rgba(214,178,94,.14);

  /* ink */
  --ink:       #f4f0e6;
  --ink-soft:  #aaa49a;
  --ink-dim:   #746f64;

  /* gold */
  --gold:        #d6b25e;
  --gold-bright: #f3dd95;
  --gold-deep:   #b3892f;
  --gold-soft:   rgba(214,178,94,.10);
  --gold-softer: rgba(214,178,94,.06);
  --grad-gold:   linear-gradient(135deg, #f6e6a9 0%, #d9b769 42%, #b3892f 100%);
  --grad-gold-text: linear-gradient(118deg, #fbeec1 0%, #eccd7d 45%, #cba74e 100%);
  --grad-gold-soft: linear-gradient(135deg, rgba(246,230,169,.16), rgba(179,137,47,.10));

  /* status */
  --danger:      #e57a63;
  --danger-soft: rgba(229,122,99,.12);
  --success:     #6fc99e;
  --success-soft:rgba(111,201,158,.12);

  /* effects */
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 16px 40px -18px rgba(0,0,0,.7);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 40px 90px -28px rgba(0,0,0,.85);
  --glow-gold: 0 10px 30px -8px rgba(214,178,94,.45);
  --radius: 16px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: hidden;
}

/* ambient gold glows + fine grain over the whole page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1000px 560px at 84% -8%, rgba(214,178,94,.13), transparent 60%),
    radial-gradient(760px 520px at 6% 8%,  rgba(214,178,94,.07), transparent 55%),
    radial-gradient(900px 700px at 50% 118%, rgba(214,178,94,.06), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* keep real content above the ambient layers */
.topbar, #app, .site-footer { position: relative; z-index: 1; }

::selection { background: rgba(214,178,94,.28); color: #fff; }

a { color: var(--gold); }

/* ===== KEYBOARD FOCUS — visible ring for keyboard nav only (a11y) ===== */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 8px;
}
/* inputs already show a gold focus ring via box-shadow — don't double up */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
.auth-field input:focus-visible { outline: none; }
/* drop the platform tap-highlight (we provide our own press/focus feedback) and
   remove the 300ms tap delay on interactive elements */
a, button, input, select, textarea, [role="button"] { -webkit-tap-highlight-color: transparent; }
a, button, [role="button"], .nav-link, .modal-tab { touch-action: manipulation; }

/* gold gradient text helper */
.gold-text {
  background: var(--grad-gold-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== TOPBAR ===== */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(10,10,12,.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  position: sticky; top: 0; z-index: 30;
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; text-decoration: none; color: inherit; cursor: pointer; }
.brand-mark {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1;
  color: #18140a;
  background: var(--grad-gold);
  border-radius: 9px;
  box-shadow: 0 2px 10px -2px rgba(214,178,94,.6), inset 0 1px 0 rgba(255,255,255,.5);
  letter-spacing: -.02em;
}
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: .06em;
  background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-link {
  font: inherit; font-size: 14px; font-weight: 500; text-decoration: none;
  background: none; border: 1px solid transparent; color: var(--ink-soft);
  padding: 7px 15px; border-radius: 999px; cursor: pointer; transition: .18s;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-link:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.nav-link.is-active { color: var(--gold-bright); background: var(--gold-soft); border-color: var(--gold-line-soft); }
.badge {
  background: var(--grad-gold); color: #18140a; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}

.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.auth-buttons { display: flex; gap: 8px; align-items: center; }

.topbar-login {
  font: inherit; font-size: 14px; font-weight: 600;
  background: none; border: none; cursor: pointer;
  color: var(--ink-soft); padding: 8px 12px; border-radius: 9px;
  transition: color .15s, background .15s;
}
.topbar-login:hover { color: var(--ink); background: rgba(255,255,255,.06); }

.topbar-cta {
  font: inherit; font-size: 14px; font-weight: 700;
  background: var(--grad-gold); color: #18140a;
  border: none; cursor: pointer;
  padding: 9px 17px; border-radius: 9px;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: var(--glow-gold), inset 0 1px 0 rgba(255,255,255,.4);
  transition: box-shadow .18s, transform .12s, filter .18s;
}
.topbar-cta:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 36px -8px rgba(214,178,94,.6), inset 0 1px 0 rgba(255,255,255,.5); }
.topbar-cta:active { transform: none; }
.cta-arrow { font-size: 16px; transition: transform .15s; }
.topbar-cta:hover .cta-arrow, .btn-primary:hover .cta-arrow { transform: translateX(3px); }

/* ===== USER MENU ===== */
.user-menu { position: relative; display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-gold); color: #18140a;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: .18s; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.user-avatar:hover { transform: scale(1.06); box-shadow: var(--glow-gold), inset 0 1px 0 rgba(255,255,255,.4); }

.user-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  min-width: 230px; overflow: hidden;
  opacity: 0; transform: translateY(-8px) scale(.97);
  pointer-events: none; transition: opacity .18s, transform .18s;
  z-index: 100;
}
.user-dropdown.is-open { opacity: 1; transform: none; pointer-events: auto; }
.user-dropdown-info { padding: 15px 16px; background: var(--grad-gold-soft); border-bottom: 1px solid var(--gold-line-soft); }
.user-dropdown-name { display: block; font-weight: 700; font-size: 14px; color: var(--ink); }
.user-dropdown-email { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropdown-divider { margin: 0; border: none; border-top: 1px solid var(--line); }
.dropdown-item {
  display: block; width: 100%; text-align: left; font: inherit; font-size: 14px;
  padding: 11px 16px; background: none; border: none; cursor: pointer;
  color: var(--ink-soft); transition: .12s;
}
.dropdown-item:hover { background: rgba(255,255,255,.04); color: var(--ink); }
.dropdown-credits { padding: 4px 16px 12px; font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.dropdown-item-accent { color: var(--gold-bright); font-weight: 600; }
.dropdown-item-accent:hover { background: var(--gold-soft); color: var(--gold-bright); }

/* ===== LAYOUT ===== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 44px 28px 96px; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.page-head { margin-bottom: 30px; }
.page-head h1 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.02em; margin: 0; line-height: 1.05;
}
.page-head .sub { color: var(--ink-soft); margin: 8px 0 0; font-size: 16px; }

.layout { display: grid; grid-template-columns: 380px 1fr; gap: 26px; align-items: start; }
.col-inputs { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.col-results { display: flex; flex-direction: column; gap: 20px; }

@media (max-width: 940px) {
  .layout { grid-template-columns: 1fr; }
  .col-inputs { position: static; }
}
@media (max-width: 600px) {
  .topbar { padding: 12px 16px; }
  .nav { display: none; }
  .wrap { padding: 28px 16px 64px; }
  .container { padding: 0 16px; }
}

/* ===== CARDS ===== */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border-top: 1px solid rgba(255,255,255,.05);
  -webkit-mask: linear-gradient(#000, transparent 40%); mask: linear-gradient(#000, transparent 40%);
}
.card-title {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  margin: 0 0 18px; letter-spacing: -.01em; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.card-title::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: var(--grad-gold); box-shadow: 0 0 12px -2px rgba(214,178,94,.7);
}
.card-sub { font-size: 13px; color: var(--ink-soft); margin: -10px 0 16px; }
.is-hidden { display: none !important; }

/* ===== FORM ===== */
.field { margin-bottom: 15px; }
.field label {
  display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-soft); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); transition: .18s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-line);
  background: var(--surface-3);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d6b25e' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px;
}
.field select option { background: var(--surface-2); color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.subgroup {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold); margin: 20px 0 12px; padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.subgroup:first-of-type { border-top: none; padding-top: 0; margin-top: 4px; }
.readout {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--gold-soft); border: 1px solid var(--gold-line-soft);
  border-radius: 10px; padding: 11px 13px; margin-top: 6px;
  font-size: 14px; color: var(--ink);
}
.readout strong { font-variant-numeric: tabular-nums; color: var(--gold-bright); }
.hint { font-size: 12px; color: var(--ink-soft); margin: 5px 0 0; }

/* ===== BUTTONS ===== */
.btn {
  position: relative; overflow: hidden;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  border-radius: 11px; padding: 12px 20px; border: 1px solid transparent;
  transition: .18s; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
}
.btn-sm { font-size: 13px; padding: 7px 14px; border-radius: 9px; }
.btn-primary { background: var(--grad-gold); color: #18140a; font-weight: 700; box-shadow: var(--glow-gold), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 16px 40px -8px rgba(214,178,94,.6), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-primary:active { transform: none; }
.btn-primary:disabled { opacity: .55; cursor: progress; filter: grayscale(.2); transform: none; }
/* shine sweep */
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.btn-primary:hover::after { left: 140%; }
.btn-block { width: 100%; margin-top: 8px; }
.btn-ghost { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold-line); color: var(--gold-bright); background: var(--surface-3); }
.btn-lg { font-size: 16px; padding: 14px 26px; border-radius: 13px; }
.btn-light { background: var(--surface); color: var(--gold-bright); border-color: var(--gold-line); }
.btn-light:hover { background: var(--surface-3); border-color: var(--gold); }
.actions { display: flex; gap: 10px; margin-top: 20px; }
.actions .btn { flex: 1; }
.link-btn {
  background: none; border: none; font: inherit; font-size: inherit;
  color: var(--gold); cursor: pointer; padding: 0; text-decoration: none;
}
.link-btn:hover { color: var(--gold-bright); text-decoration: underline; }
.link-danger { color: var(--danger); }
.link-danger:hover { color: #f3987f; }

/* ===== EMPTY / LOADING ===== */
.empty { text-align: center; padding: 52px 28px; }
.empty-icon {
  width: 64px; height: 64px; margin: 0 auto 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold-line-soft);
  color: var(--gold);
}
.empty-icon svg { width: 30px; height: 30px; }
.empty h3 { font-family: var(--font-display); font-weight: 500; font-size: 23px; margin: 10px 0 6px; color: var(--ink); }
.empty p { color: var(--ink-soft); margin: 0 0 18px; }
.check { list-style: none; padding: 0; margin: 0 auto; max-width: 360px; text-align: left; }
.check li { position: relative; padding: 8px 0 8px 30px; color: var(--ink-soft); }
.check li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold-line);
}
.check li::after {
  content: ""; position: absolute; left: 5px; top: 14px; width: 5px; height: 8px;
  border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(40deg);
}
.loading { text-align: center; padding: 64px 28px; }
.muted { color: var(--ink-soft); }
.muted-sm { font-size: 12px; color: var(--ink-soft); }
.spinner {
  width: 44px; height: 44px; margin: 0 auto 20px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--gold);
  animation: spin .8s linear infinite;
  box-shadow: 0 0 24px -6px rgba(214,178,94,.5);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== STATS ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-grid.three { grid-template-columns: repeat(3, 1fr); }
.stat {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 15px; display: flex; flex-direction: column; gap: 5px;
}
.stat.accent { background: var(--grad-gold-soft); border-color: var(--gold-line-soft); }
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.stat-val {
  font-family: var(--font-display); font-weight: 600; font-size: 23px;
  letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--gold-bright);
}
.stat.accent .stat-val { color: var(--gold-bright); }
.stat-sub { font-size: 12px; color: var(--gold); font-weight: 600; }
.summary .stat-val { font-size: 21px; }
@media (max-width: 560px) {
  .stat-grid, .stat-grid.three { grid-template-columns: 1fr 1fr; }
}

.insight { margin-top: 18px; border-left: 2px solid var(--gold); padding: 4px 0 4px 16px; background: linear-gradient(90deg, var(--gold-softer), transparent); }
.insight-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.insight p { margin: 7px 0 0; color: var(--ink-soft); }

/* Risk colours */
.risk-low { color: var(--success) !important; }
.risk-medium { color: var(--gold) !important; }
.risk-high { color: var(--danger) !important; }

/* ===== COMPS ===== */
.comps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .comps-grid { grid-template-columns: 1fr; } }
.comp-list { display: flex; flex-direction: column; gap: 10px; }
.comp {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2);
  transition: border-color .15s, transform .15s, background .15s;
}
.comp:hover { border-color: var(--gold-line); transform: translateX(2px); background: var(--surface-3); }
.comp-info .comp-addr { font-weight: 600; font-size: 13px; color: var(--ink); }
.comp-info .comp-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.comp-right { text-align: right; white-space: nowrap; flex-shrink: 0; }
.comp-price { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--gold-bright); }
.comp-link { font-size: 12px; color: var(--gold); text-decoration: none; display: block; margin-top: 2px; }
.comp-link:hover { text-decoration: underline; }

/* ===== STATEMENT ===== */
.stmt { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stmt h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); margin: 0; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.stmt-row { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink); }
.stmt-row + .stmt-row { border-top: 1px solid var(--line-soft); }
.stmt-row.neg span:last-child { color: var(--danger); }
.stmt-row.total { font-weight: 700; background: var(--gold-soft); }
.stmt-row.total span:last-child { color: var(--gold-bright); }
.yields { display: flex; gap: 32px; margin-top: 18px; }
.yields div { display: flex; flex-direction: column; gap: 2px; }
.yields strong { font-family: var(--font-display); font-size: 23px; font-variant-numeric: tabular-nums; color: var(--gold-bright); }

/* ===== PROJECTION TABLE ===== */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.proj { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; min-width: 560px; }
table.proj th {
  text-align: right; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--gold); padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--gold-line-soft);
}
table.proj th:first-child, table.proj td:first-child { text-align: left; }
table.proj td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
table.proj tbody tr:last-child td { border-bottom: none; }
table.proj tbody tr:nth-child(even) { background: rgba(255,255,255,.018); }
table.proj tbody tr:hover { background: var(--gold-softer); }
.summary { margin-top: 20px; }
.disclaimer { font-size: 12px; color: var(--ink-dim); margin: 18px 0 0; line-height: 1.55; }

/* ===== SAVED ANALYSES ===== */
.saved-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.saved-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.saved-card:hover { box-shadow: var(--shadow-lg); border-color: var(--gold-line); transform: translateY(-3px); }
.saved-card-meta { font-size: 11px; color: var(--ink-soft); font-weight: 500; margin-bottom: 6px; }
.saved-card h3 { font-family: var(--font-display); margin: 0 0 4px; font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
.saved-card .loc { color: var(--ink-soft); font-size: 13px; margin-bottom: 16px; }
.saved-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.saved-metrics div { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 9px; padding: 9px 11px; }
.saved-metrics .k { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-weight: 600; }
.saved-metrics .v { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; margin-top: 2px; color: var(--gold-bright); }
.saved-card .row { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.saved-card .row .btn { flex: 1; padding: 9px; font-size: 13px; }

/* ===== MODALS ===== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4,4,6,.7);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.modal {
  background: var(--surface);
  border: 1px solid var(--gold-line-soft);
  border-radius: 24px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(214,178,94,.06);
  width: 100%; max-width: 430px;
  overflow: hidden; position: relative;
  animation: slideUp .26s cubic-bezier(.34,1.4,.64,1);
}
@keyframes slideUp { from { opacity: 0; transform: translateY(26px) scale(.96) } to { opacity: 1; transform: none } }

.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.18);
  cursor: pointer; color: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center; transition: .15s;
}
.modal-close:hover { background: rgba(0,0,0,.5); color: #fff; border-color: var(--gold-line); }

/* Hero band */
.modal-hero {
  background:
    radial-gradient(420px 200px at 85% 10%, rgba(214,178,94,.22), transparent 60%),
    linear-gradient(135deg, #14110a 0%, #1d1810 55%, #0d0b07 100%);
  border-bottom: 1px solid var(--gold-line-soft);
  padding: 30px 28px 26px; position: relative; overflow: hidden;
}
.modal-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 12% 90%, rgba(214,178,94,.10), transparent 45%);
}
.modal-hero-inner { position: relative; }
.modal-hero-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.modal-hero-mark {
  width: 38px; height: 38px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 20px; color: #18140a;
  background: var(--grad-gold); border-radius: 10px;
  box-shadow: 0 4px 16px -2px rgba(214,178,94,.6), inset 0 1px 0 rgba(255,255,255,.5);
}
.modal-hero-name {
  font-family: var(--font-display); font-size: 23px; font-weight: 600; letter-spacing: .06em;
  background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.modal-hero-tag { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 14px; line-height: 1.45; }
.modal-hero-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-hero-pills span {
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: var(--gold-soft); border: 1px solid var(--gold-line-soft);
  color: var(--gold-bright); padding: 4px 10px; border-radius: 999px;
}

/* Tab switcher */
.modal-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--surface-2); padding: 0 20px; }
.modal-tab {
  flex: 1; font: inherit; font-size: 14px; font-weight: 600;
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 14px 4px; cursor: pointer; color: var(--ink-soft);
  transition: color .15s, border-color .15s; margin-bottom: -1px;
}
.modal-tab:hover { color: var(--ink); }
.modal-tab.is-active { color: var(--gold-bright); border-bottom-color: var(--gold); }

.modal-body { padding: 26px 28px 30px; }
.modal-form-header { margin-bottom: 22px; }
.modal-title { font-family: var(--font-display); font-size: 23px; font-weight: 600; margin: 0; letter-spacing: -.02em; color: var(--ink); }
.modal-sub { color: var(--ink-soft); margin: 5px 0 0; font-size: 14px; }

.auth-field label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); display: block; margin-bottom: 8px; }
.auth-field input {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface-2); transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-field input::placeholder { color: var(--ink-dim); }
.auth-field input:focus { outline: none; border-color: var(--gold-line); background: var(--surface-3); box-shadow: 0 0 0 3px var(--gold-soft); }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--ink-soft); display: flex; align-items: center; transition: color .15s; border-radius: 4px;
}
.pw-toggle:hover { color: var(--gold); }
.pw-toggle.is-visible .eye-icon { opacity: .5; }

.btn-auth-submit {
  position: relative; overflow: hidden;
  width: 100%; margin-top: 8px;
  font: inherit; font-size: 15px; font-weight: 700;
  background: var(--grad-gold); color: #18140a;
  border: none; border-radius: 12px; cursor: pointer; padding: 14px 20px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: var(--glow-gold), inset 0 1px 0 rgba(255,255,255,.4);
  transition: box-shadow .18s, transform .12s, filter .18s;
}
.btn-auth-submit:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 16px 40px -8px rgba(214,178,94,.6), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-auth-submit:active { transform: none; }
.btn-auth-submit:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-auth-submit::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.btn-auth-submit:hover::after { left: 140%; }
.btn-arrow { font-size: 17px; transition: transform .15s; }
.btn-auth-submit:hover .btn-arrow { transform: translateX(3px); }

.auth-error {
  background: var(--danger-soft); border: 1px solid rgba(229,122,99,.3);
  color: var(--danger); border-radius: 10px;
  padding: 11px 14px; font-size: 13.5px; margin-bottom: 16px;
  align-items: flex-start; gap: 8px;
}
.auth-error:not(.is-hidden) { display: flex; }
.auth-error::before { content: "⚠"; flex-shrink: 0; margin-top: 1px; }

.auth-switch { text-align: center; color: var(--ink-soft); font-size: 13.5px; margin: 18px 0 0; }
.auth-switch .link-btn { color: var(--gold-bright); font-weight: 600; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface-3); color: var(--ink); padding: 13px 24px; border-radius: 999px;
  border: 1px solid var(--gold-line-soft);
  font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: .25s; z-index: 300;
  white-space: nowrap; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--gold-line); color: var(--gold-bright); }
.toast.error { border-color: rgba(229,122,99,.4); color: var(--danger); }

/* ===== BOND / FINANCE ===== */
.check-row {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px;
  color: var(--ink-soft); margin: 2px 0 12px; cursor: pointer; user-select: none;
}
.check-row input { width: auto; accent-color: var(--gold); }
.bond-fields { transition: opacity .15s; }
.prime-badge { font-size: 12px; color: var(--gold); font-weight: 600; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.prime-badge.is-stale { color: var(--danger); }

/* ===== NEIGHBOURHOOD INTELLIGENCE ===== */
.intel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .intel-grid { grid-template-columns: 1fr; } }
.intel-card {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.intel-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin: 0; letter-spacing: -.01em; color: var(--ink); }
.intel-summary { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.intel-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-bright); white-space: nowrap; border: 1px solid var(--gold-line-soft);
}
.pill.crime-low { background: var(--success-soft); color: var(--success); border-color: rgba(111,201,158,.3); }
.pill.crime-moderate { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-line-soft); }
.pill.crime-high { background: var(--danger-soft); color: var(--danger); border-color: rgba(229,122,99,.3); }
.intel-list { display: flex; flex-direction: column; gap: 6px; }
.intel-li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 12.5px; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); color: var(--ink);
}
.intel-li:last-child { border-bottom: none; padding-bottom: 0; }
.intel-li-right { white-space: nowrap; flex-shrink: 0; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.intel-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; color: var(--ink-soft); }
.intel-row strong { color: var(--ink); font-weight: 600; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11.5px; padding: 3px 9px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line); color: var(--ink-soft); }

/* ===== CREDITS / BUY ===== */
.credit-pill {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--gold-soft); color: var(--gold-bright);
  border: 1px solid var(--gold-line-soft); border-radius: 999px; padding: 6px 14px;
  transition: .15s; white-space: nowrap;
}
.credit-pill:hover { background: var(--gold-softer); border-color: var(--gold-line); }
.credit-pill.is-empty { background: var(--danger-soft); color: var(--danger); border-color: rgba(229,122,99,.3); }

.modal-buy { max-width: 480px; }
.modal-buy .modal-close { background: rgba(255,255,255,.05); border-color: var(--line); color: var(--ink-soft); }
.modal-buy .modal-close:hover { background: rgba(255,255,255,.1); color: var(--ink); }
.buy-head { padding: 30px 28px 6px; }
.buy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px 28px 8px; }
@media (max-width: 480px) { .buy-grid { grid-template-columns: 1fr; } }
.pkg {
  font: inherit; cursor: pointer; text-align: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 15px;
  padding: 20px 10px 18px; transition: .18s; display: flex; flex-direction: column; gap: 2px;
}
.pkg:hover { border-color: var(--gold-line); box-shadow: var(--glow-gold); transform: translateY(-3px); background: var(--surface-3); }
.pkg-credits { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1; background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pkg-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.pkg-price { font-weight: 700; font-size: 18px; margin-top: 8px; font-variant-numeric: tabular-nums; color: var(--ink); }
.pkg-per { font-size: 11.5px; color: var(--ink-soft); }
.buy-note { text-align: center; font-size: 12px; color: var(--ink-soft); padding: 8px 28px 26px; margin: 0; }
.buy-note a { color: var(--gold); }
.lock-ico { display: inline-flex; align-items: center; vertical-align: -2px; color: var(--gold); margin-right: 3px; }

/* ===== HOME / HERO ===== */
.hero {
  position: relative; overflow: hidden;
  text-align: center; padding: 96px 28px 100px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 420px at 50% -10%, rgba(214,178,94,.16), transparent 62%),
    linear-gradient(180deg, #100e09 0%, var(--bg) 70%);
}
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 80%;
  background: radial-gradient(closest-side, rgba(214,178,94,.14), transparent 70%);
  filter: blur(20px); animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(-6%, -4%) scale(1); }
  to   { transform: translate(8%, 6%) scale(1.12); }
}
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--gold-soft); border: 1px solid var(--gold-line-soft); color: var(--gold-bright);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
}
.hero-badge .spark { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px 1px rgba(214,178,94,.9); }
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 6vw, 60px); line-height: 1.04; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.hero-title span { background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.hero-sub { font-size: 18px; line-height: 1.65; color: var(--ink-soft); margin: 24px auto 32px; max-width: 640px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-cta .btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--ink); }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.07); border-color: var(--gold-line); color: var(--gold-bright); }
.hero-trust { font-size: 13px; color: var(--ink-dim); margin-top: 22px; }

.section-head { text-align: center; max-width: 640px; margin: 80px auto 32px; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.01em; margin: 0; color: var(--ink); }
.section-head p { color: var(--ink-soft); margin: 10px 0 0; font-size: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 20px; box-shadow: var(--shadow); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature:hover { border-color: var(--gold-line); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-gold-soft); border: 1px solid var(--gold-line-soft); color: var(--gold);
  margin-bottom: 14px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 0 0 7px; color: var(--ink); }
.feature p { color: var(--ink-soft); font-size: 14px; margin: 0; line-height: 1.6; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; padding: 10px 16px; }
.step-n {
  width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--grad-gold-soft); color: var(--gold-bright); border: 1px solid var(--gold-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 0 0 7px; color: var(--ink); }
.step p { color: var(--ink-soft); font-size: 14px; margin: 0; }

.price-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 740px; margin: 0 auto; }
@media (max-width: 560px) { .price-preview { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 18px; text-align: center; position: relative; box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--gold-line-soft); }
.price-card.featured { border-color: var(--gold-line); box-shadow: var(--glow-gold); background: linear-gradient(180deg, var(--gold-softer), var(--surface)); }
.price-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad-gold); color: #18140a; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: 4px 13px; border-radius: 999px;
  box-shadow: var(--glow-gold);
}
.price-credits { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.price-amt { font-weight: 700; font-size: 24px; margin-top: 14px; color: var(--ink); }
.price-cta { text-align: center; margin-top: 28px; }

.cta-band {
  position: relative; overflow: hidden;
  text-align: center; padding: 72px 28px; margin-top: 84px;
  border-top: 1px solid var(--gold-line-soft); border-bottom: 1px solid var(--gold-line-soft);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(214,178,94,.18), transparent 65%),
    linear-gradient(180deg, #14110a, #0c0a06);
}
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.6vw, 36px); margin: 0; color: var(--ink); }
.cta-band p { color: var(--ink-soft); margin: 10px 0 26px; }

/* ===== BUY PAGE ===== */
.buy-balance {
  background: var(--gold-soft); border: 1px solid var(--gold-line-soft); border-radius: 12px;
  padding: 14px 18px; font-weight: 600; color: var(--gold-bright); margin-bottom: 20px;
}
.buy-grid-page { grid-template-columns: repeat(3, 1fr); padding: 0; max-width: 740px; }
@media (max-width: 560px) { .buy-grid-page { grid-template-columns: 1fr; } }
.faq { margin-top: 38px; display: grid; gap: 16px; max-width: 760px; }
.faq-item { border-top: 1px solid var(--line); padding-top: 16px; }
.faq-item h4 { margin: 0 0 5px; font-size: 15px; color: var(--ink); }
.faq-item p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ===== CONTACT ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-form-card { position: relative; }
.contact-success { text-align: center; padding: 26px 8px; }
.contact-success h3 { font-family: var(--font-display); font-weight: 500; font-size: 23px; margin: 8px 0 6px; color: var(--ink); }
.contact-success p { color: var(--ink-soft); margin: 0 0 18px; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.info-card { display: flex; flex-direction: column; gap: 18px; }
.info-row { display: flex; gap: 13px; align-items: flex-start; }
.info-ico {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-soft); border: 1px solid var(--gold-line-soft); color: var(--gold);
}
.info-ico svg { width: 18px; height: 18px; }
.info-k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.info-v { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.info-note { font-size: 12px; color: var(--ink-dim); margin: 0; }
.info-note code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: 11.5px; color: var(--gold); }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 32px; }
.footer-brand { max-width: 340px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--ink-soft); font-size: 13.5px; margin: 0; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 14px; transition: color .15s; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-bar {
  border-top: 1px solid var(--line); padding: 18px 28px; max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-dim);
}

/* ===== MOTION PREFERENCES ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ===== VALUATION FEATURE ===== */
.val-progress {
  display: flex; gap: 10px; list-style: none; padding: 0; margin: 0 0 24px;
  flex-wrap: wrap; font-size: 13px;
}
.val-step {
  display: flex; align-items: center; gap: 8px; color: var(--ink-dim);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.val-step-n {
  width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2);
  color: var(--ink-soft); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.val-step.is-current { color: var(--ink); border-color: var(--gold-line); background: var(--gold-soft); }
.val-step.is-current .val-step-n { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #18140a; }
.val-step.is-done { color: var(--ink-soft); }

.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .type-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .type-grid { grid-template-columns: 1fr; } }
.type-tile {
  display: flex; flex-direction: column; gap: 6px; text-align: left;
  padding: 22px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.type-tile:hover { border-color: var(--gold-line); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.type-ico { font-size: 30px; }
.type-name { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.type-method { font-size: 13px; color: var(--gold-bright); }
.type-hint { font-size: 12.5px; color: var(--ink-soft); }

.val-form-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.val-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 8px; }
.val-fields .field.full { grid-column: 1 / -1; }
@media (max-width: 560px) { .val-fields { grid-template-columns: 1fr; } }

.val-saved { margin-top: 36px; }
.saved-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .saved-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .saved-grid { grid-template-columns: 1fr; } }

.split-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 12px 0 4px; }
.split-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }

/* =====================================================================
   VALORE V2 — institutional landing (navy + gold + paper)
   Additive: scoped under .lv-* so existing dark views are untouched.
   ===================================================================== */
:root {
  --v-navy:      #16213e;
  --v-navy-2:    #1d2a4a;
  --v-navy-deep: #111a30;
  --v-navy-card: #1f2c4d;
  --v-gold:      #d8a93f;
  --v-gold-2:    #e7c673;
  --v-cream:     #eceef2;
  --v-paper:     #ffffff;
  --v-ink:       #16213e;   /* headings on light */
  --v-body:      #5b6478;   /* body text on light */
  --v-line:      #e2e5ea;
  --v-green:     #2faa6a;
  --v-mono:      "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* Hide the global dark topbar + footer on the institutional landing only */
body:has(#view-home:not(.is-hidden)) .topbar,
body:has(#view-home:not(.is-hidden)) .site-footer { display: none; }
body:has(#view-home:not(.is-hidden)) { background: var(--v-navy); }

#view-home { color: var(--v-ink); }
.lv-container { max-width: 1120px; margin: 0 auto; padding: 0 32px; width: 100%; }
.lv-center { text-align: center; }
.lv-left { text-align: left; }

/* ---- buttons ---- */
.lv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none; line-height: 1;
}
.lv-btn:active { transform: translateY(1px); }
.lv-btn-lg { padding: 15px 28px; font-size: 16px; }
.lv-btn-block { width: 100%; }
.lv-btn-gold { background: var(--v-gold); color: #1a1304; box-shadow: 0 8px 22px -10px rgba(216,169,63,.7); }
.lv-btn-gold:hover { background: var(--v-gold-2); }
.lv-btn-ghost { background: rgba(255,255,255,.06); color: #f3f5f9; border-color: rgba(255,255,255,.22); }
.lv-btn-ghost:hover { background: rgba(255,255,255,.12); }
.lv-btn-outline { background: transparent; color: #e9edf4; border-color: rgba(255,255,255,.28); }
.lv-btn-outline:hover { border-color: var(--v-gold); color: #fff; }
.lv-textlink { background: none; border: 0; color: #d7dce6; font: inherit; font-weight: 600; cursor: pointer; padding: 8px 4px; }
.lv-textlink:hover { color: #fff; }

/* ---- hero / nav ---- */
.lv-hero {
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(216,169,63,.10), transparent 60%),
    linear-gradient(180deg, var(--v-navy) 0%, var(--v-navy-deep) 100%);
  color: #eef1f6; padding-bottom: 90px;
}
.lv-nav {
  max-width: 1180px; margin: 0 auto; padding: 26px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.lv-brand { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--v-gold); text-decoration: none; letter-spacing: .2px; }
.lv-brand span { font-family: var(--font-body); font-size: 11px; letter-spacing: 2.5px; color: #8893a8; font-weight: 600; margin-left: 8px; vertical-align: middle; }
.lv-nav-links { display: flex; gap: 30px; }
.lv-nav-links a { color: #c5ccdb; text-decoration: none; font-size: 15px; font-weight: 500; }
.lv-nav-links a:hover { color: #fff; }
.lv-nav-cta { display: flex; align-items: center; gap: 14px; }

.lv-hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 40px 32px 0;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.lv-pill {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  padding: 7px 15px; font-size: 13px; color: #c7cfde; background: rgba(255,255,255,.03); margin-bottom: 26px;
}
.lv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--v-green); box-shadow: 0 0 0 3px rgba(47,170,106,.22); }
.lv-h1 { font-family: var(--font-display); font-weight: 900; font-size: 58px; line-height: 1.04; letter-spacing: -.5px; margin: 0 0 22px; color: #f6f8fb; }
.lv-gold { color: var(--v-gold); }
.lv-lead { font-size: 18px; line-height: 1.6; color: #b9c2d4; max-width: 460px; margin: 0 0 30px; }
.lv-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.lv-fine { margin-top: 20px; font-size: 13px; color: #8b95aa; }

/* fair value card */
.lv-fvcard {
  background: linear-gradient(180deg, rgba(40,54,90,.55), rgba(22,32,58,.6));
  border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 26px 28px 22px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); backdrop-filter: blur(4px);
}
.lv-fvcard-top { display: flex; align-items: center; justify-content: space-between; }
.lv-fvcard-label { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: #8893a8; }
.lv-tag { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.lv-tag-green { color: #7fe0ad; background: rgba(47,170,106,.16); border: 1px solid rgba(47,170,106,.4); }
.lv-fvcard-value { font-family: var(--v-mono); font-weight: 700; font-size: 42px; color: var(--v-gold); margin: 16px 0 4px; letter-spacing: -1px; }
.lv-fvcard-addr { font-size: 14px; color: #aeb7c8; }
.lv-fvcard-divider { height: 1px; background: rgba(255,255,255,.1); margin: 20px 0 16px; }
.lv-fvcard-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.lv-mini-label { display: block; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: #818ca2; margin-bottom: 5px; }
.lv-mini-val { font-family: var(--v-mono); font-weight: 600; font-size: 17px; color: #eaeef5; }
.lv-fvcard-chart { width: 100%; height: 78px; display: block; margin-top: 22px; }
.lv-fvcard-axis { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 1px; color: #6f7993; margin-top: 6px; }

/* ---- mandates (light) ---- */
.lv-mandates { background: var(--v-cream); padding: 78px 0 88px; }
.lv-eyebrow { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--v-gold); font-weight: 700; margin: 0 0 14px; }
.lv-h2 { font-family: var(--font-display); font-weight: 700; font-size: 36px; color: var(--v-ink); margin: 0 0 12px; letter-spacing: -.3px; }
.lv-h2.lv-on-dark { color: #f4f7fb; }
.lv-sub { font-size: 16px; color: var(--v-body); margin: 0 0 0; }
.lv-on-dark-soft { color: #aab3c6; }
.lv-mandate-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 44px; text-align: left; }
.lv-mandate { background: var(--v-paper); border: 1px solid var(--v-line); border-radius: 14px; padding: 28px; box-shadow: 0 1px 2px rgba(16,24,48,.04); }
.lv-mandate-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 11px; background: var(--v-navy); color: var(--v-gold); font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 20px; }
.lv-mandate h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--v-ink); margin: 0 0 10px; }
.lv-mandate p { font-size: 14.5px; line-height: 1.6; color: var(--v-body); margin: 0; }

/* ---- pricing (navy) ---- */
.lv-pricing { background: var(--v-navy); padding: 76px 0 86px; }
.lv-price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 46px; text-align: left; align-items: start; }
.lv-price { position: relative; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 30px 26px; }
.lv-price-pop { border-color: var(--v-gold); background: rgba(216,169,63,.06); box-shadow: 0 30px 70px -40px rgba(216,169,63,.6); }
.lv-pop-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--v-gold); color: #1a1304; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.lv-price-tier { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #9aa4ba; font-weight: 700; margin: 0 0 16px; }
.lv-price-tier.lv-gold { color: var(--v-gold); }
.lv-price-amt { font-family: var(--v-mono); font-weight: 700; font-size: 40px; color: #f4f7fb; margin: 0 0 6px; letter-spacing: -1px; }
.lv-price-amt span { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: #98a2b7; letter-spacing: 0; margin-left: 4px; }
.lv-price-custom { font-family: var(--font-display); letter-spacing: 0; }
.lv-price-for { font-size: 14px; color: #aab3c6; margin: 0 0 22px; }
.lv-price-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.lv-price-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: #d2d8e4; }
.lv-price-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--v-gold); font-weight: 700; }

/* ---- features (paper) ---- */
.lv-features { background: var(--v-paper); padding: 80px 0 96px; }
.lv-features .lv-sub { margin-bottom: 0; }
.lv-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 44px; }
.lv-feat { background: #f7f8fa; border: 1px solid var(--v-line); border-radius: 12px; padding: 26px 24px; transition: border-color .15s ease, transform .15s ease; }
.lv-feat:hover { border-color: var(--v-gold); transform: translateY(-2px); }
.lv-feat-no { font-family: var(--v-mono); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--v-gold); margin: 0 0 16px; }
.lv-feat h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--v-ink); margin: 0 0 9px; }
.lv-feat p { font-size: 14px; line-height: 1.6; color: var(--v-body); margin: 0; }

/* ---- responsive ---- */
@media (max-width: 940px) {
  .lv-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .lv-nav-links { display: none; }
  .lv-h1 { font-size: 44px; }
  .lv-mandate-grid, .lv-price-grid, .lv-feature-grid { grid-template-columns: 1fr; }
  .lv-price-pop { order: -1; }
}
@media (max-width: 560px) {
  .lv-container, .lv-nav, .lv-hero-inner { padding-left: 20px; padding-right: 20px; }
  .lv-h1 { font-size: 36px; }
}

/* =====================================================================
   VALORE V2 — authenticated app shell + dashboard (light)
   ===================================================================== */
#appShell { display: none; min-height: 100vh; }
body:has(.shell-view:not(.is-hidden)) #appShell { display: flex; }
body:has(.shell-view:not(.is-hidden)) .topbar,
body:has(.shell-view:not(.is-hidden)) .site-footer { display: none; }
body:has(.shell-view:not(.is-hidden)) { background: #eef0f3; }

/* sidebar */
.shell-sidebar { flex: 0 0 248px; width: 248px; background: var(--v-navy); color: #cdd4e2; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 16px; }
.shell-brand { font-family: var(--font-display); font-weight: 700; font-size: 25px; color: var(--v-gold); text-decoration: none; padding: 4px 12px 24px; }
.shell-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.shell-nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: #aab3c6; text-decoration: none; font-size: 14.5px; font-weight: 500; cursor: pointer; border-left: 2px solid transparent; }
.shell-nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .85; }
.shell-nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.shell-nav-item.is-active { background: rgba(216,169,63,.13); color: #fff; border-left-color: var(--v-gold); }
.shell-nav-sep { height: 1px; background: rgba(255,255,255,.08); margin: 12px 10px; }
.shell-pro { margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .5px; background: var(--v-gold); color: #1a1304; padding: 2px 6px; border-radius: 5px; }
.shell-user { display: flex; align-items: center; gap: 11px; padding: 14px 8px 4px; border-top: 1px solid rgba(255,255,255,.08); }
.shell-user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--v-gold); color: #1a1304; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: 0 0 36px; }
.shell-user-name { display: block; font-size: 13.5px; color: #eef1f6; font-weight: 600; }
.shell-user-role { display: block; font-size: 11.5px; color: #8893a8; }

/* main + topbar */
.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shell-topbar { display: flex; align-items: center; gap: 16px; padding: 14px 30px; background: #fff; border-bottom: 1px solid var(--v-line); position: sticky; top: 0; z-index: 5; }
.shell-page-title { font-size: 15px; font-weight: 600; color: var(--v-ink); }
.shell-search { flex: 1; max-width: 440px; margin-left: 8px; display: flex; align-items: center; gap: 9px; background: #f1f3f6; border: 1px solid var(--v-line); border-radius: 9px; padding: 8px 13px; color: #8a93a5; }
.shell-search svg { width: 16px; height: 16px; flex: 0 0 16px; }
.shell-search input { border: 0; background: transparent; outline: 0; font: inherit; font-size: 13.5px; width: 100%; color: var(--v-ink); }
.shell-newbtn { margin-left: auto; padding: 9px 16px; font-size: 13.5px; border-radius: 9px; }
.shell-content { padding: 30px; flex: 1; }

/* dashboard */
.dash-greet { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dash-hello { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--v-ink); margin: 0 0 5px; letter-spacing: -.3px; }
.dash-date { font-size: 14px; color: var(--v-body); margin: 0; }
.dash-prime { font-size: 13.5px; color: var(--v-body); margin: 0; white-space: nowrap; }
.dash-prime b { color: var(--v-ink); font-family: var(--v-mono); font-weight: 600; }

.dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 22px; }
.dash-stat { background: #fff; border: 1px solid var(--v-line); border-radius: 13px; padding: 18px 20px; }
.dash-stat-label { display: block; font-size: 12.5px; color: var(--v-body); margin-bottom: 10px; }
.dash-stat-val { display: block; font-family: var(--v-mono); font-weight: 700; font-size: 27px; color: var(--v-ink); letter-spacing: -.5px; }
.dash-stat-val.gold { color: var(--v-gold); }
.dash-stat-sub { display: block; font-size: 12px; color: var(--v-green); margin-top: 6px; min-height: 14px; }

.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.dash-card { background: #fff; border: 1px solid var(--v-line); border-radius: 14px; padding: 22px 24px; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dash-card h2, .dash-qa-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--v-ink); margin: 0 0 16px; }
.dash-card-head h2 { margin: 0; }
.dash-viewall { font-size: 13px; color: var(--v-gold); text-decoration: none; font-weight: 600; }
.dash-muted { font-size: 12px; color: var(--v-body); }

.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th { text-align: left; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: #9aa3b4; font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--v-line); }
.dash-table td { padding: 13px 8px; font-size: 14px; color: var(--v-ink); border-bottom: 1px solid #f0f2f5; vertical-align: middle; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-prop-name { font-weight: 600; }
.dash-prop-sub { display: block; font-size: 12px; color: #9aa3b4; font-weight: 400; margin-top: 2px; }
.dash-yield { font-family: var(--v-mono); color: var(--v-gold); font-weight: 600; }
.dash-money { font-family: var(--v-mono); }
.dash-badge { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; display: inline-block; }
.dash-badge.ok { color: var(--v-green); background: rgba(47,170,106,.12); }
.dash-badge.draft { color: #b07d18; background: rgba(216,169,63,.16); }

.dash-side { display: flex; flex-direction: column; gap: 20px; }
.dash-qa { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-qa button { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; text-align: left; background: #f7f8fa; border: 1px solid var(--v-line); border-radius: 11px; padding: 14px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--v-ink); cursor: pointer; transition: border-color .15s ease; }
.dash-qa button:hover { border-color: var(--v-gold); }
.dash-qa .qa-ico { color: var(--v-gold); font-size: 16px; line-height: 1; }

.dash-cap-head { font-size: 12.5px; font-weight: 600; color: var(--v-ink); margin: 4px 0 12px; }
.dash-snap { width: 100%; height: 72px; display: block; margin-bottom: 14px; }
.dash-cap-row { display: grid; grid-template-columns: 78px 1fr 48px; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 12.5px; color: var(--v-body); }
.dash-cap-bar { height: 7px; border-radius: 999px; background: #eef0f3; overflow: hidden; }
.dash-cap-bar > span { display: block; height: 100%; background: var(--v-navy); }
.dash-cap-val { font-family: var(--v-mono); text-align: right; color: var(--v-ink); }
.dash-source { font-size: 11px; color: #9aa3b4; margin: 12px 0 0; }
.dash-empty { text-align: center; color: var(--v-body); padding: 28px; font-size: 14px; }

/* coming-soon placeholder */
.shell-soon { max-width: 540px; margin: 56px auto; text-align: center; background: #fff; border: 1px solid var(--v-line); border-radius: 16px; padding: 48px 40px; }
.shell-soon-icon { width: 56px; height: 56px; border-radius: 15px; background: var(--v-navy); color: var(--v-gold); font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; font-family: var(--font-display); font-weight: 700; }
.shell-soon h2 { font-family: var(--font-display); font-weight: 700; font-size: 23px; color: var(--v-ink); margin: 0 0 12px; }
.shell-soon p { font-size: 15px; color: var(--v-body); line-height: 1.6; margin: 0 0 26px; }

@media (max-width: 1040px) {
  .dash-stats { grid-template-columns: repeat(2,1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .shell-sidebar { display: none; }
  .shell-content { padding: 20px; }
}

/* =====================================================================
   VALORE V2 — New Analysis wizard
   ===================================================================== */
.wz { max-width: 860px; margin: 0 auto; }
.wz-head h1 { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--v-ink); margin: 0 0 4px; }
.wz-head p { font-size: 14.5px; color: var(--v-body); margin: 0 0 26px; }

/* stepper */
.wz-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.wz-step { display: flex; align-items: center; gap: 11px; background: none; border: 0; cursor: pointer; padding: 4px; font: inherit; text-align: left; }
.wz-line { flex: 1; height: 2px; background: var(--v-line); border-radius: 2px; }
.wz-num { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: #e4e7ec; color: #8a93a5; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; font-family: var(--v-mono); }
.wz-step-txt b { display: block; font-size: 14px; color: #9aa3b4; font-weight: 600; }
.wz-step-txt small { display: block; font-size: 12px; color: #b3bac6; }
.wz-step.is-active .wz-num { background: var(--v-gold); color: #1a1304; }
.wz-step.is-active .wz-step-txt b { color: var(--v-ink); }
.wz-step.is-done .wz-num { background: var(--v-navy); color: var(--v-gold); }
.wz-step.is-done .wz-step-txt b { color: var(--v-ink); }

/* card + fields */
.wz-card { background: #fff; border: 1px solid var(--v-line); border-radius: 16px; padding: 30px 32px; }
.wz-card-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--v-ink); margin: 0 0 22px; }
.wz-field { margin-bottom: 18px; }
.wz-field.wz-half { max-width: calc(50% - 9px); }
.wz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wz-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.wz-row4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }
.wz-field label { display: block; font-size: 13px; font-weight: 600; color: var(--v-ink); margin-bottom: 7px; }
.wz-opt { color: #9aa3b4; font-weight: 400; }

.wz-card input[type=text], .wz-card input[type=number], .wz-card select {
  width: 100%; box-sizing: border-box; padding: 11px 13px; font: inherit; font-size: 14px;
  color: var(--v-ink); background: #fff; border: 1px solid #d8dce3; border-radius: 9px; outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wz-card input::placeholder { color: #b3bac6; }
.wz-card input:focus, .wz-card select:focus { border-color: var(--v-gold); box-shadow: 0 0 0 3px rgba(216,169,63,.16); }
.wz-card select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a8499' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }

.wz-input-prefix, .wz-input-suffix, .wz-input-ico { position: relative; display: flex; align-items: center; }
.wz-input-prefix span { position: absolute; left: 13px; color: #8a93a5; font-size: 14px; font-family: var(--v-mono); pointer-events: none; }
.wz-input-prefix input { padding-left: 30px !important; }
.wz-input-suffix span { position: absolute; right: 13px; color: #8a93a5; font-size: 13px; pointer-events: none; }
.wz-input-suffix input { padding-right: 38px !important; }
.wz-input-ico svg { position: absolute; left: 13px; width: 17px; height: 17px; color: #8a93a5; pointer-events: none; }
.wz-input-ico input { padding-left: 38px !important; }

/* purpose pills */
.wz-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.wz-pill { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid #d8dce3; border-radius: 10px; background: #fff; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--v-body); cursor: pointer; position: relative; }
.wz-pill::before { content: ""; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #c3c9d2; }
.wz-pill.is-active { border-color: var(--v-gold); background: rgba(216,169,63,.08); color: var(--v-ink); font-weight: 600; }
.wz-pill.is-active::before { border-color: var(--v-gold); background: radial-gradient(circle, var(--v-gold) 0 42%, transparent 46%); }

/* slider */
.wz-slider-val { float: right; font-family: var(--v-mono); font-weight: 600; color: var(--v-gold); }
.wz-range { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--v-navy) 0 22%, #e4e7ec 22%); outline: 0; margin: 9px 0 4px; }
.wz-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--v-gold); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; }
.wz-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--v-gold); border: 3px solid #fff; cursor: pointer; }
.wz-range-axis { display: flex; justify-content: space-between; font-size: 11px; color: #9aa3b4; }

/* subheads + toggle */
.wz-subhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 16px; padding-top: 20px; border-top: 1px solid var(--v-line); font-size: 14px; font-weight: 600; color: var(--v-ink); }
.wz-toggle { display: inline-flex; background: #f1f3f6; border: 1px solid var(--v-line); border-radius: 8px; padding: 2px; }
.wz-toggle button { border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--v-body); padding: 6px 12px; border-radius: 6px; cursor: pointer; }
.wz-toggle button.is-active { background: #fff; color: var(--v-ink); box-shadow: 0 1px 2px rgba(16,24,48,.1); }

.wz-hint { font-size: 12px; color: #9aa3b4; margin: 7px 0 0; }

/* market context */
.wz-comps { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #f7f8fa; border: 1px solid var(--v-line); border-radius: 11px; padding: 16px 18px; margin-bottom: 22px; }
.wz-comps b { font-size: 14px; color: var(--v-ink); }
.wz-comps p { font-size: 13px; color: var(--v-body); margin: 4px 0 0; }
.wz-search { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; color: var(--v-gold); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.wz-search svg { width: 15px; height: 15px; }
.wz-li { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.wz-li-card { background: #f7f8fa; border: 1px solid var(--v-line); border-radius: 11px; padding: 14px 16px; }
.wz-li-k { display: block; font-size: 12px; color: var(--v-body); margin-bottom: 8px; }
.wz-li-grade { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--v-green); margin-right: 8px; }
.wz-li-grade.b { color: var(--v-gold); }
.wz-li-v { font-size: 13px; color: var(--v-ink); font-weight: 500; }

/* footer nav */
.wz-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--v-line); }
.wz-foot-right { display: flex; gap: 12px; }
.wz-btn-link { background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--v-body); cursor: pointer; }
.wz-btn-link:hover { color: var(--v-ink); }
.lv-btn-outline-dark { background: #fff; border: 1px solid #d8dce3; color: var(--v-ink); }
.lv-btn-outline-dark:hover { border-color: var(--v-gold); }

@media (max-width: 720px) {
  .wz-row, .wz-row3, .wz-row4 { grid-template-columns: 1fr; }
  .wz-field.wz-half { max-width: 100%; }
  .wz-step-txt small { display: none; }
  .wz-card { padding: 22px 18px; }
}

/* =====================================================================
   VALORE V2 — property report (6 tabs)
   ===================================================================== */
.rep-crumb { display: inline-block; font-size: 13px; color: var(--v-body); text-decoration: none; margin-bottom: 14px; }
.rep-crumb:hover { color: var(--v-gold); }
.rep-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.rep-title { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--v-ink); margin: 0 0 6px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rep-badge { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--v-navy); background: #e9edf4; border: 1px solid var(--v-line); padding: 4px 11px; border-radius: 999px; }
.rep-meta { font-size: 13px; color: var(--v-body); margin: 0; }
.rep-actions { display: flex; gap: 10px; flex-shrink: 0; }
.rep-actions .lv-btn { padding: 9px 15px; font-size: 13px; border-radius: 9px; }

.rep-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--v-line); margin-bottom: 24px; overflow-x: auto; }
.rep-tab { background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--v-body); padding: 12px 16px; cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.rep-tab:hover { color: var(--v-ink); }
.rep-tab.is-active { color: var(--v-ink); border-bottom-color: var(--v-gold); }
.rep-pro { font-size: 9px; font-weight: 700; letter-spacing: .5px; background: var(--v-gold); color: #1a1304; padding: 2px 5px; border-radius: 4px; vertical-align: middle; }

/* shared report bits */
.rep-grid { display: grid; gap: 18px; }
.rep-statrow { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.rep-stat { background: #fff; border: 1px solid var(--v-line); border-radius: 13px; padding: 16px 18px; }
.rep-stat.navy { background: var(--v-navy); border-color: var(--v-navy); }
.rep-stat-label { display: block; font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; color: #9aa3b4; margin-bottom: 9px; }
.rep-stat.navy .rep-stat-label { color: #8893a8; }
.rep-stat-val { display: block; font-family: var(--v-mono); font-weight: 700; font-size: 24px; color: var(--v-ink); letter-spacing: -.5px; }
.rep-stat.navy .rep-stat-val { color: var(--v-gold); }
.rep-stat-sub { display: block; font-size: 11px; color: #9aa3b4; margin-top: 5px; }

.rep-card { background: #fff; border: 1px solid var(--v-line); border-radius: 14px; padding: 22px 24px; }
.rep-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--v-ink); margin: 0 0 18px; }
.rep-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* risk gauge */
.rep-gauge { text-align: center; padding: 6px 0 2px; }
.rep-gauge svg { width: 200px; max-width: 100%; height: auto; }
.rep-gauge-label { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--v-ink); margin: 8px 0 4px; }
.rep-gauge-cap { font-size: 12px; color: var(--v-body); margin: 0; }

/* key assumptions */
.rep-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.rep-kv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #f0f2f5; font-size: 13.5px; }
.rep-kv-row span { color: var(--v-body); }
.rep-kv-row b { color: var(--v-ink); font-family: var(--v-mono); font-weight: 600; }

/* approaches */
.rep-approaches { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 20px; }
.rep-appr { background: #fff; border: 1px solid var(--v-line); border-radius: 13px; padding: 20px; }
.rep-appr-no { font-family: var(--v-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--v-gold); margin: 0 0 4px; }
.rep-appr h4 { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--v-ink); margin: 0 0 16px; }
.rep-appr-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--v-body); padding: 6px 0; }
.rep-appr-line b { color: var(--v-ink); font-family: var(--v-mono); font-weight: 500; }
.rep-appr-tot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--v-line); }
.rep-appr-tot span { font-size: 12px; color: var(--v-body); }
.rep-appr-tot b { font-family: var(--v-mono); font-weight: 700; font-size: 19px; color: var(--v-ink); }

.rep-recon-row { display: grid; grid-template-columns: 160px 1fr 50px 90px; align-items: center; gap: 14px; margin-bottom: 12px; font-size: 13.5px; color: var(--v-ink); }
.rep-recon-bar { height: 9px; border-radius: 999px; background: #eef0f3; overflow: hidden; }
.rep-recon-bar > span { display: block; height: 100%; background: var(--v-gold); }
.rep-recon-pct { font-family: var(--v-mono); color: var(--v-body); text-align: right; }
.rep-recon-val { font-family: var(--v-mono); text-align: right; color: var(--v-ink); }
.rep-concluded { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--v-line); }
.rep-concluded span { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--v-ink); }
.rep-concluded b { font-family: var(--v-mono); font-weight: 700; font-size: 26px; color: var(--v-gold); }

/* cashflow */
.rep-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 22px; }
.rep-metric { background: #fff; border: 1px solid var(--v-line); border-radius: 13px; padding: 16px 18px; }
.rep-metric-label { display: block; font-size: 12px; color: var(--v-body); margin-bottom: 8px; }
.rep-metric-val { display: block; font-family: var(--v-mono); font-weight: 700; font-size: 22px; color: var(--v-green); }
.rep-cf-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.rep-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rep-table th { text-align: right; font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase; color: #9aa3b4; font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--v-line); }
.rep-table th:first-child, .rep-table td:first-child { text-align: left; }
.rep-table td { text-align: right; padding: 9px 6px; font-family: var(--v-mono); color: var(--v-ink); border-bottom: 1px solid #f4f5f8; }
.rep-table td.neg { color: #c0573a; }
.rep-bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; }
.rep-bars-col { flex: 1; background: var(--v-navy); border-radius: 3px 3px 0 0; min-height: 4px; }
.rep-bars-axis { display: flex; justify-content: space-between; font-size: 11px; color: #9aa3b4; margin-top: 8px; }

/* comparables */
.rep-comp-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.rep-src { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.rep-src.windeed { color: #185fa5; background: #e6f1fb; }
.rep-src.lightstone { color: #3b6d11; background: #eaf3de; }
.rep-src.portal { color: #854f0b; background: #faeeda; }
.rep-map { background: repeating-linear-gradient(45deg, #eef0f3, #eef0f3 12px, #e7eaef 12px, #e7eaef 24px); border: 1px solid var(--v-line); border-radius: 12px; height: 280px; display: flex; align-items: center; justify-content: center; color: #8a93a5; font-size: 12px; position: relative; }
.rep-note { font-size: 12px; color: #854f0b; background: #faeeda; border-radius: 9px; padding: 10px 14px; margin-top: 14px; }

/* IAS 40 */
.rep-ias-head { background: var(--v-navy); color: #eef1f6; border-radius: 13px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.rep-ias-head b { font-family: var(--font-display); font-size: 16px; }
.rep-ias-head small { display: block; font-size: 12px; color: #9aa3b4; margin-top: 2px; }
.rep-ias-on { font-size: 12px; font-weight: 700; color: var(--v-gold); }
.rep-check { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; color: var(--v-ink); }
.rep-check .yes { color: var(--v-green); font-weight: 700; }
.rep-check .no { color: #c0573a; font-weight: 700; }
.rep-qualify { background: #eaf3de; color: #3b6d11; border-radius: 9px; padding: 11px 14px; font-size: 13.5px; font-weight: 600; margin-top: 12px; }
.rep-tier { border: 1px solid var(--v-line); border-radius: 10px; padding: 13px 15px; margin-bottom: 10px; }
.rep-tier.applied { border-color: var(--v-gold); background: rgba(216,169,63,.07); }
.rep-tier-head { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: var(--v-ink); }
.rep-tier-head .st { font-size: 11.5px; font-weight: 600; }
.rep-tier-head .st.ok { color: var(--v-green); }
.rep-tier-head .st.mut { color: #9aa3b4; }
.rep-tier p { font-size: 12.5px; color: var(--v-body); margin: 5px 0 0; }
.rep-sens td.base { background: rgba(216,169,63,.18); font-weight: 700; color: var(--v-ink); }
.rep-sens th, .rep-sens td { text-align: center !important; }
.rep-disclose { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #f7f8fa; border: 1px solid var(--v-line); border-radius: 11px; padding: 14px 18px; margin-top: 18px; font-size: 13px; color: var(--v-body); }

/* AI report */
.rep-ai-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; align-items: start; }
.rep-narr h4 { font-family: var(--v-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--v-gold); margin: 20px 0 8px; }
.rep-narr h4:first-child { margin-top: 0; }
.rep-narr p { font-size: 14px; line-height: 1.7; color: var(--v-ink); margin: 0 0 8px; }
.rep-narr-title { font-family: var(--font-display) !important; font-weight: 700 !important; font-size: 20px !important; color: var(--v-ink) !important; letter-spacing: 0 !important; text-transform: none !important; margin: 0 0 4px !important; }
.rep-narr-sub { font-family: var(--v-mono); font-size: 12px; color: #9aa3b4; margin: 0 0 18px; }
.rep-export h4 { font-size: 13px; font-weight: 600; color: var(--v-ink); margin: 0 0 14px; }
.rep-export button { display: block; width: 100%; margin-bottom: 10px; }
.rep-disclaimer { font-size: 12px; line-height: 1.5; color: #854f0b; background: #faeeda; border-radius: 9px; padding: 12px 14px; margin-top: 16px; }

@media (max-width: 1040px) {
  .rep-statrow, .rep-approaches, .rep-metrics { grid-template-columns: repeat(2,1fr); }
  .rep-two, .rep-cf-grid, .rep-comp-grid, .rep-ai-grid { grid-template-columns: 1fr; }
  .rep-head { flex-direction: column; }
}

.dash-rowlink { cursor: pointer; }
.dash-rowlink:hover td { background: #faf8f2; }

/* Print: "Download PDF Report" → clean full report, all tabs expanded */
@media print {
  .shell-sidebar, .shell-topbar, .rep-tabs, .rep-actions, .rep-crumb, .topbar, .site-footer, .toast-wrap { display: none !important; }
  body:has(.shell-view:not(.is-hidden)) { background: #fff; }
  #appShell { display: block !important; }
  .rep-panel.is-hidden { display: block !important; }
  .rep-panel { margin-bottom: 24px; page-break-inside: avoid; }
  .shell-content { padding: 0; }
}

/* =====================================================================
   VALORE V2 — ROI calculator re-skin (light institutional, in-shell)
   Scoped to #view-calculator so the legacy dark theme is untouched elsewhere.
   ===================================================================== */
#view-calculator { color: var(--v-ink); max-width: 1140px; }
#view-calculator .page-head { margin-bottom: 22px; }
#view-calculator .page-head h1 { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--v-ink); margin: 0 0 4px; }
#view-calculator .page-head .sub { font-size: 14.5px; color: var(--v-body); margin: 0; }
#view-calculator .layout { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; }
#view-calculator .col-inputs, #view-calculator .col-results { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

#view-calculator .card { background: #fff; border: 1px solid var(--v-line); border-radius: 14px; box-shadow: none; padding: 22px 22px; }
#view-calculator .card-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--v-ink); margin: 0 0 4px; }
#view-calculator .card-sub { font-size: 13px; color: var(--v-body); margin: 0 0 16px; }
#view-calculator .subgroup { border-top: 1px solid var(--v-line); margin-top: 16px; padding-top: 16px; }

#view-calculator .field { margin-bottom: 14px; }
#view-calculator .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#view-calculator .grid-2.three { grid-template-columns: 1fr 1fr 1fr; }
#view-calculator label { display: block; font-size: 12.5px; font-weight: 600; color: var(--v-ink); margin-bottom: 6px; }
#view-calculator input, #view-calculator select {
  width: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit; font-size: 14px;
  color: var(--v-ink); background: #fff; border: 1px solid #d8dce3; border-radius: 9px; outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#view-calculator input::placeholder { color: #b3bac6; }
#view-calculator input:focus, #view-calculator select:focus { border-color: var(--v-gold); box-shadow: 0 0 0 3px rgba(216,169,63,.16); }
#view-calculator select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a8499' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
#view-calculator .cur-label { color: var(--v-body); }
#view-calculator .check-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--v-ink); margin: 4px 0; }
#view-calculator .check-row input { width: auto; }
#view-calculator .hint, #view-calculator .muted-sm, #view-calculator .prime-badge { font-size: 12px; color: #9aa3b4; }

/* buttons */
#view-calculator .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14.5px; padding: 12px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; }
#view-calculator .btn-primary { background: var(--v-gold); color: #1a1304; box-shadow: 0 8px 22px -12px rgba(216,169,63,.7); }
#view-calculator .btn-primary:hover { background: var(--v-gold-2); }
#view-calculator .btn-ghost { background: #fff; color: var(--v-ink); border-color: #d8dce3; }
#view-calculator .btn-ghost:hover { border-color: var(--v-gold); }
#view-calculator .btn-block { width: 100%; }
#view-calculator .actions { display: flex; gap: 10px; }

/* stats / yields */
#view-calculator .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
#view-calculator .stat { background: #f7f8fa; border: 1px solid var(--v-line); border-radius: 11px; padding: 14px 16px; }
#view-calculator .stat.accent { background: var(--v-navy); border-color: var(--v-navy); }
#view-calculator .stat-label { display: block; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: #9aa3b4; margin-bottom: 8px; }
#view-calculator .stat.accent .stat-label { color: #8893a8; }
#view-calculator .stat-val { display: block; font-family: var(--v-mono); font-weight: 700; font-size: 21px; color: var(--v-ink); }
#view-calculator .stat.accent .stat-val { color: var(--v-gold); }
#view-calculator .stat-sub { display: block; font-size: 11.5px; color: var(--v-body); margin-top: 4px; }
#view-calculator .stat-val.neg, #view-calculator .neg { color: #c0573a; }

/* statement rows / projection table */
#view-calculator .stmt-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #f0f2f5; font-size: 13.5px; color: var(--v-ink); }
#view-calculator .stmt-row b, #view-calculator .readout, #view-calculator .total b { font-family: var(--v-mono); }
#view-calculator .total { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--v-line); font-weight: 700; color: var(--v-ink); }
#view-calculator table { width: 100%; border-collapse: collapse; font-size: 13px; }
#view-calculator th { text-align: right; font-size: 10.5px; letter-spacing: .4px; text-transform: uppercase; color: #9aa3b4; font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--v-line); }
#view-calculator th:first-child, #view-calculator td:first-child { text-align: left; }
#view-calculator td { text-align: right; padding: 9px 6px; font-family: var(--v-mono); color: var(--v-ink); border-bottom: 1px solid #f4f5f8; }
#view-calculator .table-scroll { overflow-x: auto; }

/* market overview / comps / intelligence */
#view-calculator .insight { background: #f7f8fa; border: 1px solid var(--v-line); border-radius: 11px; padding: 14px 16px; font-size: 14px; color: var(--v-ink); line-height: 1.6; }
#view-calculator .insight-tag, #view-calculator .pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(216,169,63,.14); color: #8a6516; }
#view-calculator .comps-grid, #view-calculator .intel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
#view-calculator .comp-list { display: flex; flex-direction: column; gap: 8px; }
#view-calculator .comp-list > * { background: #f7f8fa; border: 1px solid var(--v-line); border-radius: 9px; padding: 10px 12px; font-size: 13px; }
#view-calculator .disclaimer, #view-calculator .disclaimer * { color: #854f0b; }
#view-calculator .disclaimer { background: #faeeda; border-radius: 9px; padding: 11px 14px; font-size: 12.5px; }
#view-calculator .empty { text-align: center; color: var(--v-body); padding: 30px 20px; }
#view-calculator .empty-icon { color: var(--v-gold); }
#view-calculator .loading { text-align: center; color: var(--v-body); padding: 24px; }
#view-calculator .spinner { border-color: rgba(216,169,63,.25); border-top-color: var(--v-gold); }
#view-calculator .muted { color: var(--v-body); }

@media (max-width: 900px) {
  #view-calculator .layout { grid-template-columns: 1fr; }
  #view-calculator .grid-2, #view-calculator .grid-2.three { grid-template-columns: 1fr; }
}

/* ---- live Leaflet location map (report Comparables tab) ---- */
.rep-map-live { height: 300px; border: 1px solid var(--v-line); border-radius: 12px; overflow: hidden; }
.rep-map-live .leaflet-container { height: 100%; width: 100%; font-family: var(--font-body); background: #e7eaef; }
.map-pin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.45); box-sizing: border-box; }
.map-pin.subj { width: 18px; height: 18px; background: var(--v-gold); }
.map-pin.comp { width: 14px; height: 14px; background: var(--v-navy); }
.leaflet-popup-content { font-size: 13px; color: var(--v-ink); }
.leaflet-popup-content b { font-family: var(--font-body); }
@media print { .rep-map-live { display: none !important; } }

/* IFRS 13 hierarchy level badges (report IAS 40 tab) */
.rep-hier-lvl { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; display: inline-block; }
.rep-hier-lvl.l1 { color: #185fa5; background: #e6f1fb; }
.rep-hier-lvl.l2 { color: #3b6d11; background: #eaf3de; }
.rep-hier-lvl.l3 { color: #854f0b; background: #faeeda; }

/* honest comparable-source badges */
.rep-src.ai { color: #534ab7; background: #eeedfe; }
.rep-src.model { color: #5f5e5a; background: #f1efe8; }

/* Settings → Data Sources panel */
.ds-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f2f5; }
.ds-name { display: block; font-size: 14px; font-weight: 600; color: var(--v-ink); }
.ds-role { display: block; font-size: 12px; color: var(--v-body); margin-top: 2px; }
.ds-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ds-lvl { font-family: var(--v-mono); font-size: 11px; color: #9aa3b4; }
.ds-status { font-size: 11.5px; font-weight: 600; padding: 3px 11px; border-radius: 999px; }
.ds-status.live { color: var(--v-green); background: rgba(47,170,106,.12); }
.ds-status.fallback { color: #854f0b; background: #faeeda; }
.ds-hint { font-size: 11.5px; color: #9aa3b4; margin: 6px 0 2px; }
.ds-hint code { font-family: var(--v-mono); background: #f1f3f6; padding: 1px 6px; border-radius: 4px; color: var(--v-ink); }
