/* ==========================================================================
   TPL Compare - Dark Luxe
   Color tokens per SPEC 3.3. Fonts follow site convention (Bebas Neue + DM Sans + DM Mono).
   ========================================================================== */

:root {
  --bg:        #0a0a0f;
  --surface:   #12121a;
  --surface2:  #1a1a26;
  --border:    #2a2a3d;
  --accent:    #6c63ff;
  --accent-hi: #8b85ff;
  --accent-bg: rgba(108,99,255,0.12);
  --accent-br: rgba(108,99,255,0.3);
  --gold:      #f0c040;
  --gold-bg:   rgba(240,192,64,0.1);
  --gold-br:   rgba(240,192,64,0.25);
  --green:     #34d399;
  --red:       #f87171;
  --amber:     #fbbf24;
  --text:      #e8e8f0;
  --muted:     #8888aa;
  --dim:       #55556a;
  --white:     #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV (matches site) ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 0.08em;
  color: var(--white); text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 13px; font-weight: 500;
  text-decoration: none; letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--accent) !important; color: var(--white) !important;
  padding: 9px 22px; border-radius: 5px;
  font-weight: 600 !important; font-size: 13px !important;
  letter-spacing: 0.05em !important; text-transform: uppercase;
  transition: all 0.2s !important;
}
.nav-cta:hover { background: var(--accent-hi) !important; transform: translateY(-1px); }

.hamburger {
  display: none; background: transparent; border: none;
  flex-direction: column; gap: 5px; cursor: pointer; padding: 8px;
}
.hamburger span { width: 24px; height: 2px; background: var(--text); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; top: 68px; left: 0; right: 0; bottom: 0; z-index: 99;
  background: var(--bg); border-top: 1px solid var(--border);
  display: none; flex-direction: column; padding: 40px 5%; gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text); font-size: 18px; text-decoration: none; font-weight: 500; }

/* ── HERO ── */
.cmp-hero {
  padding: 140px 5% 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.cmp-hero::before {
  content: ''; position: absolute; top: -100px; left: 50%;
  transform: translateX(-50%); width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(108,99,255,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.cmp-hero-inner {
  max-width: 1200px; margin: 0 auto; position: relative; z-index: 1;
}
.cmp-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.cmp-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--accent); }
.cmp-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 0.98; letter-spacing: 0.02em;
  color: var(--white); margin-bottom: 24px;
}
.cmp-hero h1 em { font-style: normal; color: var(--accent); }
.cmp-sub {
  font-size: 17px; line-height: 1.7;
  color: var(--muted); font-weight: 300; max-width: 720px;
}

/* ── MAIN ── */
.cmp-main {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 5% 96px;
  display: flex; flex-direction: column; gap: 32px;
}

/* ── PANELS ── */
.cmp-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 36px;
}
.cmp-panel-head {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.cmp-panel-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.cmp-panel-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px; letter-spacing: 0.03em; color: var(--white);
  line-height: 1;
}
.cmp-panel-hint {
  margin-left: auto;
  font-family: 'DM Mono', monospace;
  font-size: 11px; color: var(--muted); letter-spacing: 0.08em;
}

.cmp-section-head {
  margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 8px;
}

/* ── SELECTOR ── */
.selected-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
  min-height: 36px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-br);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px; color: var(--text); font-weight: 500;
}
.chip.lpt { background: var(--gold-bg); border-color: var(--gold-br); color: var(--gold); }
.chip button {
  background: transparent; border: none; color: inherit;
  font-size: 16px; line-height: 1; cursor: pointer; opacity: 0.6;
  padding: 0; display: flex; align-items: center;
}
.chip button:hover { opacity: 1; }
.chip-empty {
  font-size: 13px; color: var(--dim); font-style: italic;
}

.selector-controls {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 16px; align-items: center;
  margin-bottom: 18px;
}
.state-filter-wrap {
  display: flex; align-items: center; gap: 8px;
}
.state-filter-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim);
}
.state-filter {
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.state-filter:focus { outline: none; border-color: var(--accent); }

.cmp-hero-actions {
  margin-top: 24px;
}
.cmp-hero-btn {
  padding: 12px 22px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid var(--accent-br);
  border-radius: 8px;
  color: var(--accent-hi);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s;
}
.cmp-hero-btn:hover {
  background: rgba(108, 99, 255, 0.2);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* ── PERSONA QUIZ MODAL ── */
.quiz-modal {
  position: fixed; inset: 0; z-index: 1001;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.quiz-modal[hidden] { display: none; }
.quiz-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 5, 10, 0.78);
  backdrop-filter: blur(6px);
}
.quiz-modal-card {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  animation: email-modal-in 0.22s ease-out;
}
.quiz-modal-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px;
  background: transparent; border: none;
  color: var(--muted); font-size: 24px;
  cursor: pointer; line-height: 1;
}
.quiz-modal-close:hover { color: var(--text); }
.quiz-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 18px;
}
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  transition: width 0.3s;
}
.quiz-step-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
}
.quiz-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-hi);
}
.quiz-step-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--dim);
}
.quiz-q {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; letter-spacing: 0.02em;
  color: var(--text);
  margin: 0 0 20px; line-height: 1.15;
}
.quiz-options {
  display: flex; flex-direction: column; gap: 10px;
}
.quiz-option {
  padding: 14px 16px;
  background: rgba(10, 10, 15, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}
.quiz-option:hover {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.08);
  transform: translateX(2px);
}
.quiz-option.selected {
  border-color: var(--accent);
  background: rgba(108, 99, 255, 0.15);
  color: #fff;
}
.quiz-actions {
  display: flex; justify-content: space-between;
  margin-top: 22px;
}
.quiz-back-btn { font-size: 12px; padding: 8px 16px; }

.quiz-result-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: var(--muted); line-height: 1.6;
  margin: 0 0 18px;
}
.quiz-results-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.quiz-result-card {
  position: relative;
  padding: 14px 14px 14px 14px;
  background: rgba(10, 10, 15, 0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.quiz-result-card.top {
  border-color: var(--gold-br);
  background: linear-gradient(145deg, rgba(240,192,64,0.08), rgba(10,10,15,0.5));
  grid-column: 1 / -1;
  padding-top: 26px;
}
.quiz-result-badge {
  position: absolute; top: 8px; left: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  padding: 2px 6px;
  background: rgba(240,192,64,0.15);
  border: 1px solid var(--gold-br);
  border-radius: 3px;
}
.quiz-result-card .brk-logo-selector {
  height: 24px; max-width: 80px;
  object-position: left center;
}
.quiz-result-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px; letter-spacing: 0.04em;
  color: var(--text);
}
.quiz-result-cat {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim);
}
.quiz-apply-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 13px;
}
.search-wrap {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  display: flex; align-items: center; gap: 10px;
  transition: border-color 0.2s;
}
.search-wrap:focus-within { border-color: var(--accent-br); }
.search-icon { font-size: 14px; color: var(--dim); }
#brokerage-search {
  flex: 1;
  background: transparent; border: none; outline: none;
  color: var(--text); font-family: inherit; font-size: 14px;
  padding: 12px 0;
}
#brokerage-search::placeholder { color: var(--dim); }

.filter-row { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit; font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 6px;
  cursor: pointer; transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--accent-br); color: var(--text); }
.filter-btn.active {
  background: var(--accent-bg);
  border-color: var(--accent-br);
  color: var(--accent-hi);
}

.selector-list {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  max-height: 360px;
  overflow-y: auto;
}
.selector-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 12px; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.selector-row-logo {
  height: 24px; display: flex; align-items: center; justify-content: center;
}
.selector-row:last-child { border-bottom: none; }
.selector-row:hover { background: var(--surface2); }
.selector-row[aria-disabled="true"] {
  opacity: 0.45; cursor: not-allowed;
}
.selector-row-name {
  color: var(--text); font-size: 14px; font-weight: 500;
}
.selector-row-name .draft-dot {
  display: inline-block; margin-left: 8px; font-size: 10px;
  color: var(--amber); letter-spacing: 0.08em;
}
.selector-row-cat {
  font-family: 'DM Mono', monospace; font-size: 10px;
  color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase;
}
.selector-row-add {
  background: transparent;
  border: 1px solid var(--accent-br);
  color: var(--accent-hi);
  font-family: inherit; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 5px;
  cursor: pointer; transition: all 0.15s;
}
.selector-row-add:hover { background: var(--accent-bg); }
.selector-row[aria-disabled="true"] .selector-row-add {
  border-color: var(--border); color: var(--dim); cursor: not-allowed;
}
.selector-empty {
  padding: 20px; text-align: center; color: var(--dim); font-size: 14px;
}
.selector-note {
  margin-top: 14px;
  font-size: 12px; color: var(--dim); line-height: 1.6;
}

/* ── OTHER (CUSTOM BROKERAGE) PINNED CARD ── */
.selector-other {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  background: linear-gradient(135deg, rgba(240,192,64,0.08), rgba(240,192,64,0.02));
  border: 1px dashed var(--accent-br);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.selector-other:hover {
  background: linear-gradient(135deg, rgba(240,192,64,0.15), rgba(240,192,64,0.05));
  border-style: solid;
}
.selector-other-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-bg); color: var(--accent-hi);
  font-size: 22px; font-weight: 300; line-height: 1;
  flex-shrink: 0;
}
.selector-other-body {
  display: flex; flex-direction: column; gap: 2px;
}
.selector-other-title {
  color: var(--text); font-size: 14px; font-weight: 600;
}
.selector-other-sub {
  color: var(--muted); font-size: 12px; line-height: 1.4;
}

/* Custom brokerage chip variant + monogram */
.chip-monogram {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-bg); color: var(--accent-hi);
  font-family: 'Bebas Neue', sans-serif; font-size: 11px;
  letter-spacing: 0.04em;
}
.chip-edit-btn {
  background: transparent; border: none; color: var(--muted);
  cursor: pointer; padding: 0 4px; font-size: 13px; line-height: 1;
  margin-left: 4px;
}
.chip-edit-btn:hover { color: var(--accent-hi); }

/* ── CUSTOM BROKERAGE MODAL ── */
.custom-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.custom-modal[hidden] { display: none; }
.custom-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(4px);
}
.custom-modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 30px 26px;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.custom-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: transparent; border: none; color: var(--muted);
  font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.custom-modal-close:hover { color: var(--text); }
.custom-modal-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-hi);
  margin-bottom: 6px;
}
.custom-modal-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 28px;
  letter-spacing: 0.02em; color: var(--text); margin: 0 0 6px;
}
.custom-modal-sub {
  color: var(--muted); font-size: 13px; line-height: 1.55;
  margin: 0 0 22px;
}
.custom-modal-form { display: flex; flex-direction: column; gap: 14px; }
.custom-field { display: flex; flex-direction: column; gap: 5px; }
.custom-field label {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
}
.custom-field label .req { color: var(--accent-hi); }
.custom-field input[type="text"],
.custom-field input[type="number"] {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
  color: var(--text); font-family: inherit; font-size: 14px;
  transition: border-color 0.15s;
}
.custom-field input:focus {
  outline: none; border-color: var(--accent-br);
}
.custom-help {
  font-size: 11px; color: var(--dim); margin-top: 2px;
}
.custom-radio-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
}
.custom-radio {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 13px; color: var(--text);
  cursor: pointer; text-transform: none; letter-spacing: 0;
}
.custom-radio input { accent-color: var(--accent-hi); }
.custom-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.custom-modal-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 8px;
}
.btn-ghost {
  background: transparent; border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px 18px; border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: all 0.15s;
}
.btn-ghost:hover { border-color: var(--accent-br); color: var(--text); }
.custom-modal-error {
  background: rgba(220, 80, 80, 0.12);
  border: 1px solid rgba(220, 80, 80, 0.4);
  border-radius: 6px; padding: 8px 12px;
  color: #f0a0a0; font-size: 13px;
}
@media (max-width: 540px) {
  .custom-grid { grid-template-columns: 1fr; }
}

/* ── INPUTS ── */
.inputs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.input-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 20px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.input-block label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted);
}
.input-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px; line-height: 1; color: var(--accent-hi);
  letter-spacing: 0.02em;
  display: flex; align-items: baseline; gap: 4px;
}
.input-value .input-prefix { color: var(--muted); font-size: 22px; }
.input-value input {
  background: transparent; border: none; outline: none;
  color: var(--accent-hi);
  font-family: inherit; font-size: 32px; font-weight: inherit;
  letter-spacing: inherit; line-height: 1;
  width: 100%; padding: 0;
  -moz-appearance: textfield;
}
.input-value input::-webkit-outer-spin-button,
.input-value input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.input-block input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.input-block input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent-br);
}
.input-block input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent-br);
}
.input-range-meta {
  display: flex; justify-content: space-between;
  font-family: 'DM Mono', monospace; font-size: 10px;
  color: var(--dim); letter-spacing: 0.08em;
}

.checkbox-label {
  display: flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important; letter-spacing: normal !important;
  text-transform: none !important; color: var(--text) !important;
  font-weight: 500 !important;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer;
  accent-color: var(--accent);
}
.checkbox-hint {
  font-size: 11px; color: var(--dim); line-height: 1.5;
}

.input-suffix {
  font-family: 'DM Mono', monospace; font-size: 14px;
  color: var(--dim); margin-left: 4px;
}

/* ── CALC ACCORDION ── */
.calc-accordion {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(108, 99, 255, 0.03);
  overflow: hidden;
}
.calc-accordion[open] { background: rgba(108, 99, 255, 0.06); }
.calc-accordion-summary {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  color: var(--text);
  transition: background 0.2s;
}
.calc-accordion-summary::-webkit-details-marker { display: none; }
.calc-accordion-summary:hover { background: rgba(108, 99, 255, 0.08); }
.calc-accordion-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.15);
  color: var(--accent-hi);
  font-size: 14px; font-weight: 600;
  transition: transform 0.2s;
}
.calc-accordion[open] .calc-accordion-icon { transform: rotate(45deg); }
.calc-accordion-label { flex: 1; }
.calc-accordion-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.calc-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
  margin-bottom: 14px;
}
.calc-derived {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 12px 14px;
  background: rgba(10, 10, 15, 0.4);
  border: 1px dashed rgba(108, 99, 255, 0.3);
  border-radius: 8px;
}
.calc-derived-label {
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-hi);
}
.calc-derived-gci, .calc-derived-avg {
  font-family: 'DM Sans', sans-serif; font-size: 12px;
  color: var(--muted);
}
.calc-derived-gci strong, .calc-derived-avg strong {
  font-family: 'DM Mono', monospace;
  color: var(--text);
  font-weight: 500;
  margin-left: 4px;
}
.calc-apply-btn {
  margin-left: auto;
  padding: 8px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--accent-hi);
  border: none; border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.calc-apply-btn:hover { background: var(--accent); color: #fff; }

/* ── EMAIL MODAL ── */
.email-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.email-modal[hidden] { display: none; }
.email-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 5, 10, 0.72);
  backdrop-filter: blur(4px);
}
.email-modal-card {
  position: relative;
  width: 100%; max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  animation: email-modal-in 0.22s ease-out;
}
@keyframes email-modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.email-modal-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px;
  background: transparent; border: none;
  color: var(--muted); font-size: 24px;
  cursor: pointer; line-height: 1;
  transition: color 0.2s;
}
.email-modal-close:hover { color: var(--text); }
.email-modal-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-hi); margin-bottom: 10px;
}
.email-modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; letter-spacing: 0.02em;
  color: var(--text); margin: 0 0 8px; line-height: 1.1;
}
.email-modal-sub {
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  color: var(--muted); margin: 0 0 22px; line-height: 1.5;
}
.email-modal-form { display: flex; flex-direction: column; gap: 14px; }
.email-modal-field { display: flex; flex-direction: column; gap: 6px; }
.email-modal-field label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim);
}
.email-modal-field input {
  padding: 10px 12px;
  background: rgba(10, 10, 15, 0.5);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  transition: border-color 0.2s;
}
.email-modal-field input:focus {
  outline: none; border-color: var(--accent);
}
.email-modal-submit {
  margin-top: 4px;
  padding: 12px 20px;
  font-size: 13px;
}
.email-modal-submit:disabled { opacity: 0.6; cursor: wait; }
.email-modal-error {
  padding: 10px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 6px;
  color: #fca5a5;
  font-family: 'DM Sans', sans-serif; font-size: 12px;
}
.email-modal-success { text-align: center; padding: 14px 0; }
.email-modal-success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  font-size: 28px; font-weight: 600;
  margin-bottom: 14px;
}
.email-modal-success-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; letter-spacing: 0.04em;
  color: var(--text); margin-bottom: 8px;
}
.email-modal-success-body {
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  color: var(--muted); margin: 0;
}

/* ── LPT PLAN TOGGLE ── */
.lpt-plan-toggle {
  margin-top: 20px; padding: 16px 20px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-br);
  border-radius: 10px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.plan-toggle-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
}
.plan-toggle-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.plan-toggle-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 5px;
  cursor: pointer; transition: all 0.15s;
}
.plan-toggle-btn.active {
  background: var(--gold-bg);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── EMPTY STATE ── */
.cmp-empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 60px 40px;
  text-align: center;
}
.cmp-empty-icon { font-size: 40px; margin-bottom: 16px; opacity: 0.6; }
.cmp-empty h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; color: var(--white); letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.cmp-empty p { color: var(--muted); font-size: 14px; }

/* ── MATRIX ── */
.matrix-scroll {
  overflow-x: auto;
  margin: 0 -36px;
  padding: 0 36px;
}
.matrix-table {
  width: 100%;
  min-width: calc(220px + var(--col-count, 2) * 180px);
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}
.matrix-table thead th:first-child,
.matrix-table tbody td:first-child { width: 220px; }
.matrix-table thead th:not(:first-child),
.matrix-table tbody td:not(:first-child) {
  width: calc((100% - 220px) / var(--col-count, 2));
}
.matrix-table thead th, .matrix-table tbody td { word-wrap: break-word; overflow-wrap: break-word; }
.matrix-table thead th {
  background: var(--bg);
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; letter-spacing: 0.03em;
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 2;
  vertical-align: bottom;
}
.matrix-table thead th:first-child {
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500;
}
.matrix-table thead th.col-lpt {
  border-left: 2px solid var(--gold);
  color: var(--gold);
}
.matrix-table th .col-cat {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim);
  margin-top: 4px;
}
.matrix-table thead th.col-lpt .col-cat { color: rgba(240,192,64,0.6); }

.matrix-table tbody .row-group td {
  background: var(--surface2);
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  padding: 14px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.matrix-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
  line-height: 1.5;
}
.matrix-table tbody td:first-child {
  color: var(--muted);
  font-size: 12px;
  width: 220px;
}
.matrix-table tbody td.col-lpt {
  border-left: 2px solid var(--gold);
}
.matrix-table tbody td.val-total {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 0.02em;
  color: var(--white);
}
.matrix-table tbody td.val-total.positive { color: var(--green); }
.matrix-table tbody td.val-total.negative { color: var(--red); }
.matrix-table tbody td.val-pct {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; letter-spacing: 0.02em;
  color: var(--accent-hi);
}
.matrix-table tbody td .val-sub {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--dim); margin-top: 3px;
}
.matrix-table tbody td.cell-pending {
  color: var(--amber);
  font-style: italic;
  font-size: 12px;
}

.matrix-legend {
  margin-top: 20px; font-size: 12px; color: var(--dim);
  line-height: 1.6;
}

/* ── BREAKDOWN CARDS ── */
.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.breakdown-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px;
  position: relative;
  display: flex; flex-direction: column;
}
.breakdown-card.lpt {
  border-color: var(--gold-br);
  background: linear-gradient(145deg, rgba(240,192,64,0.04), var(--surface));
}
.breakdown-card.lpt::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.breakdown-header {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 14px; margin-bottom: 6px;
}
.breakdown-header .brk-logo-breakdown { flex-shrink: 0; }
.breakdown-header .breakdown-name { flex: 1; }
.breakdown-header .breakdown-plan { flex-shrink: 0; }
.breakdown-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px; letter-spacing: 0.03em; color: var(--white);
  line-height: 1;
}
.breakdown-card.lpt .breakdown-name { color: var(--gold); }
.breakdown-plan {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted);
}
.breakdown-meta {
  font-size: 12px; color: var(--dim); margin-bottom: 20px;
  padding-bottom: 18px; border-bottom: 1px dashed var(--border);
}
.breakdown-list { display: flex; flex-direction: column; gap: 10px; }
.breakdown-row {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 13px;
}
.breakdown-row-label { color: var(--muted); flex: 1; }
.breakdown-row-label .sub {
  display: block; font-family: 'DM Mono', monospace;
  font-size: 10px; color: var(--dim); margin-top: 2px;
}
.breakdown-row-val { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown-row.muted .breakdown-row-val { color: var(--dim); }
.breakdown-total {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.breakdown-total-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.breakdown-total-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.breakdown-total-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; letter-spacing: 0.02em;
  color: var(--white);
}
.breakdown-total-val.cost { color: var(--red); }
.breakdown-total-val.net  { color: var(--green); }
.breakdown-retained {
  font-family: 'DM Mono', monospace;
  font-size: 11px; color: var(--accent-hi);
  letter-spacing: 0.08em; margin-top: 2px;
}
.breakdown-note {
  margin-top: 14px; padding: 12px 14px;
  background: var(--accent-bg);
  border-left: 2px solid var(--accent);
  border-radius: 5px;
  font-size: 11px; color: var(--muted); line-height: 1.6;
}
.breakdown-note.gold {
  background: var(--gold-bg); border-left-color: var(--gold); color: var(--text);
}
.breakdown-footnote {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,0.08);
  font-family: 'DM Mono', 'SF Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.breakdown-footnote a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.breakdown-footnote a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.data-stale-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.3);
  border-radius: 3px;
}
.breakdown-citations {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.citation-badge {
  display: inline-block;
  padding: 3px 8px;
  font-family: 'DM Mono', 'SF Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 3px;
  white-space: nowrap;
}
.breakdown-card.pending .breakdown-body {
  padding: 28px 0; color: var(--amber); font-size: 13px; line-height: 1.6;
}
.breakdown-pending-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--amber); background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.3);
  padding: 4px 10px; border-radius: 4px;
  margin-bottom: 14px;
}

/* ── CAP BREAK-EVEN ── */
.breakeven-intro, .projection-note, .breakeven-note {
  font-size: 12px; color: var(--muted); line-height: 1.6;
  margin: 0 0 18px;
}
.breakeven-note { margin: 14px 0 0; font-size: 11px; color: var(--dim); }
.breakeven-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.breakeven-card {
  padding: 18px 16px;
  background: rgba(10, 10, 15, 0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 14px;
}
.breakeven-card.lpt {
  border-color: var(--gold-br);
  background: linear-gradient(145deg, rgba(240,192,64,0.04), rgba(10,10,15,0.4));
}
.breakeven-card-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.breakeven-card-head .brk-logo-breakdown {
  height: 22px; max-width: 70px;
}
.breakeven-card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; letter-spacing: 0.04em;
  color: var(--text);
  display: flex; flex-direction: column;
}
.breakeven-plan-sub {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-top: 2px;
}
.breakeven-stat {
  display: flex; flex-direction: column; gap: 2px;
}
.breakeven-stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim);
}
.breakeven-stat-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px; font-weight: 500;
  color: var(--text);
}
.breakeven-stat-sub {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 10px; color: var(--muted);
  margin-top: 2px;
}
.breakeven-progress { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.breakeven-progress-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim);
}
.breakeven-progress-pct {
  color: var(--text); font-weight: 500;
}
.breakeven-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px; overflow: hidden;
}
.breakeven-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s;
}
.breakeven-bar-fill.near { background: var(--gold); }
.breakeven-bar-fill.capped { background: #4ade80; }

/* ── 3-YEAR PROJECTION ── */
.projection-panel {
  border-color: rgba(108, 99, 255, 0.3);
  background: linear-gradient(145deg, rgba(108,99,255,0.03), var(--surface));
}
.projection-controls {
  margin-bottom: 22px;
  padding: 16px 18px;
  background: rgba(10, 10, 15, 0.35);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 16px;
  align-items: center;
}
.projection-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim);
  grid-column: 1;
}
.projection-value {
  grid-column: 3; grid-row: 1;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 0.04em;
  color: var(--accent-hi);
  display: flex; align-items: baseline; gap: 2px;
}
.projection-value span:last-child {
  font-size: 14px; color: var(--muted);
}
.projection-controls input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  -webkit-appearance: none;
  background: linear-gradient(to right, var(--accent), rgba(255,255,255,0.08));
  height: 4px; border-radius: 2px; cursor: pointer;
}
.projection-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-hi); cursor: pointer;
  box-shadow: 0 0 0 3px rgba(108,99,255,0.2);
}
.projection-controls input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-hi); cursor: pointer; border: none;
}
.projection-controls .input-range-meta {
  grid-column: 1 / -1;
}
.projection-table {
  width: 100%; border-collapse: collapse;
}
.projection-table th, .projection-table td {
  padding: 12px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.projection-table th.projection-row-header,
.projection-table td.projection-row-label {
  text-align: left;
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.projection-col-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px; letter-spacing: 0.04em;
  color: var(--text);
}
.projection-col-plan {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-top: 2px;
}
.projection-net {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  color: var(--text);
}
.projection-sub {
  font-family: 'DM Mono', monospace;
  font-size: 10px; color: var(--dim);
  margin-top: 2px;
}
.projection-total-row td {
  padding-top: 16px; padding-bottom: 16px;
  border-top: 2px solid var(--border);
  border-bottom: none;
  background: rgba(10, 10, 15, 0.35);
}
.projection-total-row .projection-row-label {
  color: var(--text);
  font-weight: 500;
}
.projection-total {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 0.02em;
  color: var(--text);
}
.projection-delta {
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 500;
  margin-top: 4px;
}
.projection-delta-pos { color: #4ade80; }
.projection-delta-neg { color: #fca5a5; }
.projection-table th.lpt-col,
.projection-table td.lpt-col {
  background: rgba(240, 192, 64, 0.04);
}
.projection-table th.lpt-col {
  border-bottom-color: var(--gold-br);
}

/* ── HYBRIDSHARE ── */
/* ── LPT EQUITY PANEL ── */
.lpt-equity-panel {
  border-color: var(--gold-br);
  background: linear-gradient(145deg, rgba(240,192,64,0.03), var(--surface));
}
.lpt-equity-panel .cmp-panel-label { color: var(--gold); }
.lpt-equity-intro {
  font-size: 14px; line-height: 1.7; color: var(--muted);
  margin-bottom: 22px; max-width: 900px;
}
.lpt-equity-this-year {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}
.lpt-equity-stat {
  background: var(--bg);
  border: 1px solid var(--gold-br);
  border-radius: 10px;
  padding: 18px 20px;
}
.lpt-equity-stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.lpt-equity-stat-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px; line-height: 1; color: var(--gold);
  letter-spacing: 0.02em; margin-bottom: 2px;
}
.lpt-equity-stat-sub {
  display: block; font-family: 'DM Mono', monospace;
  font-size: 11px; color: var(--muted); margin-top: 6px;
}
.lpt-equity-ladder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.lpt-equity-rung {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  position: relative;
  transition: all 0.15s;
}
.lpt-equity-rung.earned {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(240,192,64,0.08), var(--bg));
}
.lpt-equity-rung.earned::before {
  content: '✓';
  position: absolute; top: 8px; right: 10px;
  color: var(--gold); font-size: 14px; font-weight: 700;
}
.lpt-equity-rung.next {
  border-style: dashed;
  border-color: var(--accent-br);
}
.lpt-equity-rung-badge {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; color: var(--text); letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.lpt-equity-rung.earned .lpt-equity-rung-badge { color: var(--gold); }
.lpt-equity-rung-thresh {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; color: var(--muted);
  margin-bottom: 8px;
}
.lpt-equity-rung-shares {
  font-size: 12px; color: var(--text); line-height: 1.5;
}
.lpt-equity-rung-shares b { color: var(--text); font-weight: 600; }
.lpt-equity-extras {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 13px; color: var(--text); line-height: 1.6;
}
.lpt-equity-extras strong { color: var(--gold); }
.lpt-equity-projection {
  background: var(--bg);
  border: 1px solid var(--gold-br);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13px; color: var(--text); line-height: 1.6;
  margin-bottom: 0;
}
.lpt-equity-projection-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.lpt-equity-projection-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.lpt-equity-projection-cell { font-variant-numeric: tabular-nums; }
.lpt-equity-projection-cell .yr { color: var(--muted); font-size: 11px; }
.lpt-equity-projection-cell .val { color: var(--gold); font-family: 'Bebas Neue', sans-serif; font-size: 22px; }
.lpt-equity-projection-total {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: baseline;
}
.lpt-equity-projection-total .total-label {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.12em; color: var(--muted);
}
.lpt-equity-projection-total .total-val {
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; color: var(--gold);
}
.lpt-equity-note {
  margin-top: 16px; padding: 14px 16px;
  background: var(--gold-bg);
  border-left: 2px solid var(--gold);
  border-radius: 5px;
  font-size: 11px; color: var(--text); line-height: 1.6;
}
@media (max-width: 720px) {
  .lpt-equity-ladder { grid-template-columns: 1fr 1fr; }
  .lpt-equity-this-year { grid-template-columns: 1fr; }
  .lpt-equity-projection-grid { grid-template-columns: 1fr; }
}

.hybridshare-panel {
  border-color: var(--gold-br);
  background: linear-gradient(145deg, rgba(240,192,64,0.03), var(--surface));
}
.hybridshare-panel .cmp-panel-label { color: var(--gold); }
.hybridshare-intro {
  font-size: 14px; line-height: 1.7; color: var(--muted);
  margin-bottom: 22px; max-width: 900px;
}
.hybridshare-note {
  margin-top: 16px; padding: 14px 16px;
  background: var(--gold-bg);
  border-left: 2px solid var(--gold);
  border-radius: 5px;
  font-size: 12px; color: var(--text); line-height: 1.6;
}
.hybridshare-table {
  width: 100%; min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
}
.hybridshare-table thead th {
  background: var(--bg);
  color: var(--gold);
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 14px; text-align: left;
  border-bottom: 1px solid var(--gold-br);
  font-weight: 500;
}
.hybridshare-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text); font-variant-numeric: tabular-nums;
}
.hybridshare-table tbody td.tier-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; color: var(--gold); letter-spacing: 0.02em;
  width: 60px;
}
.hybridshare-table tbody td.pct {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; color: var(--accent-hi);
}

/* ── TPL CALLOUT ── */
.tpl-callout-panel {
  border-color: var(--gold-br);
  background: linear-gradient(145deg, #13132a, #0f0f1f);
  position: relative; overflow: hidden;
  padding: 48px 40px;
}
.tpl-callout-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.tpl-callout-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.tpl-callout-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1; letter-spacing: 0.02em;
  color: var(--white); margin-bottom: 20px;
}
.tpl-callout-title em { font-style: normal; color: var(--gold); }
.tpl-callout-body {
  font-size: 16px; line-height: 1.75; color: var(--muted);
  max-width: 780px; margin-bottom: 28px;
}
.tpl-callout-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent); color: var(--white) !important;
  padding: 14px 28px; border-radius: 6px;
  font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; display: inline-block;
  border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(108,99,255,0.25);
}
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn-gold {
  background: var(--gold); color: #1a1a26 !important;
  padding: 14px 28px; border-radius: 6px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; display: inline-block;
  border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(240,192,64,0.2);
}
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-secondary {
  border: 1px solid var(--border); color: var(--muted);
  padding: 13px 26px; border-radius: 6px;
  font-weight: 500; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; display: inline-block;
  background: transparent; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-hi); }

/* ── SHARE ── */
.cmp-share {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 24px 0; justify-content: center;
}
.share-feedback {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green);
}

/* ── FOOTER ── */
footer {
  padding: 48px 5% 64px;
  border-top: 1px solid var(--border);
  text-align: center; background: var(--bg);
}
.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; letter-spacing: 0.08em;
  color: var(--white); margin-bottom: 18px;
}
.footer-links {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-links a {
  color: var(--muted); font-size: 12px; text-decoration: none;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-hi); }
.footer-copy { color: var(--dim); font-size: 11px; letter-spacing: 0.05em; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .cmp-hero { padding: 120px 5% 40px; }
  .cmp-main { padding: 24px 5% 64px; gap: 24px; }
  .cmp-panel { padding: 24px 20px; }
  .cmp-panel-head { margin-bottom: 18px; padding-bottom: 14px; gap: 12px; }
  .cmp-panel-hint { margin-left: 0; width: 100%; }
  .inputs-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .calc-grid { grid-template-columns: 1fr 1fr; }
  .calc-derived { flex-direction: column; align-items: flex-start; gap: 10px; }
  .calc-apply-btn { margin-left: 0; width: 100%; }
  .selector-controls { grid-template-columns: 1fr; }
  .state-filter-wrap { justify-content: flex-start; }
  .filter-row { overflow-x: auto; flex-wrap: nowrap; }
  .filter-btn { flex-shrink: 0; }
  .matrix-scroll { margin: 0 -20px; padding: 0 20px; }
  .matrix-table tbody td:first-child { width: 160px; }
  .breakdown-grid { grid-template-columns: 1fr; }
  .breakeven-grid { grid-template-columns: 1fr; }
  .projection-controls { grid-template-columns: 1fr auto; }
  .projection-label { grid-column: 1; }
  .projection-value { grid-column: 2; grid-row: 1; }
  .projection-table th, .projection-table td { padding: 10px 8px; font-size: 11px; }
  .projection-total { font-size: 18px; }
  .tpl-callout-panel { padding: 32px 24px; }
}
@media (max-width: 520px) {
  .inputs-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .email-modal-card { padding: 26px 20px 22px; }
  .email-modal-title { font-size: 24px; }
  .quiz-modal-card { padding: 24px 20px 20px; }
  .quiz-q { font-size: 22px; }
  .quiz-results-list { grid-template-columns: 1fr; }
  .cmp-hero h1 { font-size: 44px; }
}

/* ── BROKERAGE LOGOS ── */
.brk-logo {
  display: block;
  object-fit: contain;
  object-position: left center;
  max-width: 100%;
  width: auto;
}
.brk-logo-chip {
  height: 18px;
  max-width: 90px;
  object-position: center;
}
.brk-logo-selector {
  height: 22px;
  max-width: 38px;
  object-position: center;
}
.brk-logo-matrix {
  height: 28px;
  max-height: 28px;
  max-width: 140px;
  margin-bottom: 8px;
}
.matrix-table thead th .col-logo-wrap {
  min-height: 28px;
  display: flex;
  align-items: center;
}
.matrix-table thead th:first-child .col-logo-wrap { display: none; }
.matrix-table thead th .col-name {
  display: block;
}
.brk-logo-breakdown {
  height: 30px;
  max-width: 150px;
}
@media (max-width: 520px) {
  .brk-logo-matrix { height: 22px; max-width: 100px; }
  .brk-logo-breakdown { height: 24px; max-width: 120px; }
}
