/* NSV Advisors — DSCR & Mixed-Use Deal Calculator
   Institutional Navy / Slate / Emerald Fintech Theme — Mobile-First */

:root {
  --navy-950: #071226;
  --navy-900: #0b1b34;
  --navy-800: #12294d;
  --navy-700: #1b3a68;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --canvas: #f3f6fa;
  --white: #ffffff;

  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;

  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-50: #f0fdfa;

  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;

  --rose-700: #be123c;
  --rose-600: #dc2626;
  --rose-100: #fee2e2;
  --rose-50: #fef2f2;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 20px -4px rgba(11, 27, 52, 0.08), 0 2px 6px -2px rgba(11, 27, 52, 0.04);
  --shadow-dark: 0 12px 28px -8px rgba(7, 18, 38, 0.35);
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--slate-900);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
}

button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--emerald-500);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.brand-text h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.brand-text p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 13px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-emerald {
  background: var(--emerald-600);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.btn-emerald:hover {
  background: var(--emerald-700);
}

.btn-navy {
  background: var(--navy-900);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-800);
}

.btn-outline {
  background: var(--white);
  border-color: var(--slate-300);
  color: var(--slate-900);
}

.btn-outline:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

/* Tab Nav */
.tab-bar-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.tab-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 0;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 9px 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.tab-btn:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.tab-btn[aria-selected="true"] {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(11, 27, 52, 0.22);
}

.tab-btn-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.tab-btn-sub {
  font-size: 11px;
  opacity: 0.78;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .tab-btn {
    flex-direction: row;
    gap: 8px;
    padding: 11px 14px;
  }
  .tab-btn-title {
    font-size: 14px;
  }
  .tab-btn-sub {
    font-size: 12px;
  }
}

/* Mobile Quick Live Strip */
.mobile-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin: 14px 0 0;
}

.mobile-kpi-cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-kpi-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-weight: 600;
}

.mobile-kpi-val {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 960px) {
  .mobile-kpi-strip {
    display: none;
  }
}

/* Main Workspace Layout */
.main-workspace {
  padding: 16px 0 40px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

@media (min-width: 960px) {
  .calc-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 22px;
  }
  .results-col {
    position: sticky;
    top: 76px;
  }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
  min-width: 0;
}

@media (min-width: 640px) {
  .card {
    padding: 22px;
  }
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.015em;
}

.card-subtitle {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--slate-500);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.pill-emerald { background: var(--emerald-100); color: var(--emerald-700); }
.pill-teal { background: var(--teal-50); color: var(--teal-700); border: 1px solid #99f6e4; }
.pill-amber { background: var(--amber-100); color: var(--amber-700); }
.pill-danger { background: var(--rose-100); color: var(--rose-700); }
.pill-slate { background: var(--slate-100); color: var(--slate-700); }
.pill-navy { background: var(--navy-900); color: var(--white); }

/* Form Controls */
.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.field-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 440px) {
  .field-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-700);
}

.field-hint {
  font-size: 11.5px;
  color: var(--slate-500);
  font-weight: 500;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix, .input-suffix {
  position: absolute;
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
}

.input-prefix { left: 12px; }
.input-suffix { right: 12px; }

.input-control, .select-control {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  color: var(--slate-900);
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-control.has-prefix { padding-left: 26px; }
.input-control.has-suffix { padding-right: 34px; }

.input-control:focus, .select-control:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(27, 58, 104, 0.12);
  outline: none;
}

/* Segmented Controls */
.seg-group {
  display: flex;
  background: var(--slate-100);
  padding: 3px;
  border-radius: 10px;
  gap: 3px;
  border: 1px solid var(--slate-200);
}

.seg-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 8px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--slate-600);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
  text-align: center;
  line-height: 1.2;
}

.seg-btn:hover {
  color: var(--slate-900);
}

.seg-btn.active {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.seg-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-700);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
}

.chip:hover {
  background: var(--slate-100);
  border-color: var(--slate-300);
}

.chip.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

/* Range Sliders */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--slate-200);
  outline: none;
  margin: 6px 0 2px;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 3px solid var(--white);
  box-shadow: 0 1px 5px rgba(11, 27, 52, 0.35);
  cursor: pointer;
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 3px solid var(--white);
  box-shadow: 0 1px 5px rgba(11, 27, 52, 0.35);
  cursor: pointer;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--slate-400);
  font-weight: 500;
}

/* Toggle Switch */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
}

.toggle-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-700);
}

.toggle-sub {
  font-size: 11px;
  color: var(--slate-500);
}

.switch-input {
  width: 40px;
  height: 22px;
  accent-color: var(--navy-900);
  cursor: pointer;
  flex-shrink: 0;
}

/* Split Ratio Bars (Mixed-Use Sq Ft & Rent) */
.split-meter {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
}

.split-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.split-bar-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--slate-200);
  overflow: hidden;
  display: flex;
}

.split-bar-res {
  background: var(--emerald-500);
  height: 100%;
  transition: width 0.2s ease;
}

.split-bar-comm {
  background: var(--navy-700);
  height: 100%;
  transition: width 0.2s ease;
}

.split-bar-comm.fail {
  background: var(--rose-600);
}

.split-threshold-mark {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--slate-900);
  z-index: 2;
}

/* DSCR Gauge Card */
.gauge-hero {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

@media (max-width: 440px) {
  .gauge-hero {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }
}

.gauge-svg-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.72;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.gauge-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.gauge-center {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  text-align: center;
}

.gauge-number {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--navy-900);
}

.gauge-caption {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-top: 2px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-tile {
  padding: 10px 11px;
  border-radius: 10px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  min-width: 0;
}

.metric-tile-label {
  font-size: 11px;
  color: var(--slate-500);
  font-weight: 600;
}

.metric-tile-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-900);
  margin-top: 2px;
  letter-spacing: -0.02em;
}

.metric-tile-value.pos { color: var(--emerald-700); }
.metric-tile-value.neg { color: var(--rose-600); }

.metric-tile-sub {
  font-size: 11px;
  color: var(--slate-500);
  margin-top: 1px;
}

/* PITIA Breakdown */
.pitia-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--slate-200);
  margin: 14px 0 12px;
  gap: 2px;
}

.seg-pi { background: var(--navy-800); }
.seg-tax { background: var(--emerald-500); }
.seg-ins { background: #3b82f6; }
.seg-hoa { background: var(--amber-600); }

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
}

.breakdown-row.total {
  padding-top: 9px;
  margin-top: 2px;
  border-top: 1.5px solid var(--slate-200);
  font-weight: 800;
  font-size: 14.5px;
  color: var(--navy-900);
}

.breakdown-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-700);
  font-weight: 500;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.breakdown-val {
  font-weight: 700;
  color: var(--slate-900);
}

/* Smart Max Loan Solver Card (Dark Institutional) */
.solver-card {
  background: linear-gradient(145deg, var(--navy-950) 0%, var(--navy-900) 58%, #103258 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-dark);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.solver-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.solver-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #6ee7b7;
  font-weight: 700;
}

.solver-amount {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 4px 0 2px;
}

.solver-sub {
  font-size: 13px;
  color: #cbd5e1;
}

.solver-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.solver-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
}

.solver-box-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.solver-box-val {
  font-size: 16px;
  font-weight: 800;
  margin-top: 2px;
}

.solver-detail {
  font-size: 12.5px;
  color: #e2e8f0;
  line-height: 1.45;
  margin: 0 0 12px;
}

/* Eligibility Checker Pills */
.elig-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

@media (min-width: 520px) {
  .elig-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.elig-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
}

.elig-item.pass {
  background: var(--emerald-50);
  border-color: #a7f3d0;
}

.elig-item.fail {
  background: var(--rose-50);
  border-color: #fecaca;
}

.elig-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.elig-item.pass .elig-icon {
  background: var(--emerald-600);
  color: var(--white);
}

.elig-item.fail .elig-icon {
  background: var(--rose-600);
  color: var(--white);
}

.elig-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.25;
}

.elig-val {
  font-size: 11.5px;
  color: var(--slate-600);
  margin-top: 2px;
}

/* Guardrail Alerts */
.alerts-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.alert-box {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.4;
  border: 1px solid transparent;
}

.alert-box strong {
  display: block;
  margin-bottom: 2px;
}

.alert-amber {
  background: var(--amber-50);
  border-color: #fde68a;
  color: #92400e;
}

.alert-danger {
  background: var(--rose-50);
  border-color: #fecaca;
  color: #991b1b;
}

/* 3-Option LTV Comparison Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.comp-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  font-weight: 700;
  padding: 8px 8px;
  border-bottom: 1.5px solid var(--slate-200);
  white-space: nowrap;
}

.comp-table th.num, .comp-table td.num {
  text-align: right;
}

.comp-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--slate-100);
  font-weight: 600;
  white-space: nowrap;
}

.comp-table tbody tr {
  cursor: pointer;
  transition: background 0.12s ease;
}

.comp-table tbody tr:hover {
  background: var(--slate-50);
}

.comp-table tbody tr.selected-row {
  background: var(--emerald-50);
}

.comp-table tbody tr.selected-row td:first-child {
  color: var(--emerald-700);
  font-weight: 800;
}

/* Bank Statement DTI Cards */
.dti-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 480px) {
  .dti-compare {
    grid-template-columns: minmax(0, 1fr);
  }
}

.dti-card {
  border-radius: var(--radius-md);
  border: 1.5px solid var(--slate-200);
  padding: 16px;
  background: var(--slate-50);
}

.dti-card.featured {
  background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  border-color: var(--navy-700);
}

.dti-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dti-loan {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.dti-price {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
  color: var(--emerald-700);
}

.dti-card.featured .dti-price {
  color: #6ee7b7;
}

.dti-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
}

.dti-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* CTA Send Deal Card */
.cta-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: var(--radius-lg);
  padding: 18px;
}

.cta-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--navy-900);
}

.cta-sub {
  margin: 4px 0 14px;
  font-size: 13px;
  color: var(--slate-600);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cta-buttons .btn {
  flex: 1 1 130px;
}

/* Footer / Disclaimer */
.site-footer {
  border-top: 1px solid var(--slate-200);
  background: var(--white);
  padding: 20px 0 28px;
  color: var(--slate-500);
  font-size: 12px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--slate-700);
  font-weight: 600;
}

.disclaimer {
  margin: 0;
  line-height: 1.55;
  color: var(--slate-500);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(7, 18, 38, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Print-Only Deal Sheet Header */
.print-banner {
  display: none;
}

@media print {
  body {
    background: #ffffff;
    font-size: 12px;
  }
  .site-header, .tab-bar-wrap, .mobile-kpi-strip, .cta-card, .toast, .no-print, .chip-row, .range-slider, .range-scale {
    display: none !important;
  }
  .print-banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #0b1b34;
    padding-bottom: 10px;
    margin-bottom: 16px;
  }
  .main-workspace {
    padding: 0;
  }
  .calc-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .results-col {
    position: static;
  }
  .card, .solver-card {
    box-shadow: none;
    break-inside: avoid;
    padding: 12px;
  }
  .solver-card {
    background: #0b1b34 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .site-footer {
    border-top: 1px solid #cbd5e1;
    padding: 10px 0 0;
    margin-top: 14px;
  }
}
