:root {
  --primary: #0d47a1;
  --primary-light: #1976d2;
  --primary-soft: #eef6fc;
  --accent-gold: #f59e0b;
  --accent-gold-soft: #fef3c7;
  --success: #059669;
  --success-soft: #ecfdf5;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -3px rgba(15, 23, 42, 0.05);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* App Shell */
.app-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #1e88e5);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.25);
}

.badge-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon, .btn-primary-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.btn-icon:hover, .btn-primary-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-primary-outline {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: #bae0fc;
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(13, 71, 161, 0.25);
}

.tab-icon {
  font-size: 16px;
}

/* Tab Contents */
.tab-content {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}
.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card General */
.card, .section-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  margin-bottom: 24px;
}

.section-title-wrap {
  margin-bottom: 22px;
}

.section-title-wrap h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
}

.section-title-wrap p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* HERO CARD */
.hero-card {
  background: linear-gradient(135deg, #093375 0%, #0d47a1 50%, #1565c0 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.hero-content h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero-content p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin-bottom: 24px;
}

.hero-spotlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.spotlight-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.2s ease;
}

.spotlight-card.featured {
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.spotlight-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffd54f;
  margin-bottom: 4px;
}

.spotlight-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.spotlight-amount {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0 8px;
  letter-spacing: -0.02em;
}

.spotlight-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

/* Key Facts Grid */
.key-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.fact-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.fact-icon-badge.blue { background: var(--primary-soft); }
.fact-icon-badge.green { background: var(--success-soft); }
.fact-icon-badge.orange { background: var(--accent-gold-soft); }

.fact-body h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.fact-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Metrics Dashboard Grid */
.metrics-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metric-box {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.metric-box.highlight {
  background: var(--primary-soft);
  border-color: #bee3f8;
}

.m-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.m-val {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.text-primary {
  color: var(--primary) !important;
}

.m-sub {
  display: block;
  font-size: 11.5px;
  color: var(--text-dim);
}

/* Practical Step Guide */
.guide-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.guide-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.step-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-list li {
  display: flex;
  gap: 12px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.step-content p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* TAB 2: SCENARIOS */
.scenario-tabs-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.scenario-nav-btn {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scenario-nav-btn:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.scenario-nav-btn.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 4px 14px rgba(13, 71, 161, 0.12);
}

.sc-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: #e2e8f0;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.sc-badge.best {
  background: #dbeafe;
  color: var(--primary);
}

.scenario-nav-btn strong {
  font-size: 14.5px;
  color: var(--text-main);
}

.scenario-nav-btn span:last-child {
  font-size: 12px;
  color: var(--text-muted);
}

.scenario-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

/* Scenario Math Layout */
.scenario-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.scenario-header-bar h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.sc-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
}

.math-formula-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.math-box {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.math-box .m-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.math-box .m-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.math-box .m-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.math-op {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dim);
  text-align: center;
}

.math-box.total-box {
  background: linear-gradient(135deg, #0d47a1, #1976d2);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 16px rgba(13, 71, 161, 0.25);
}

.math-box.total-box .m-title {
  color: rgba(255, 255, 255, 0.85);
}

.math-box.total-box .m-amount {
  color: #ffffff;
  font-size: 22px;
}

.math-box.total-box .m-sub {
  color: rgba(255, 255, 255, 0.8);
}

.scenario-notes-box {
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.info-alert {
  display: flex;
  gap: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 18px;
}

.info-alert .alert-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.info-alert strong {
  display: block;
  font-size: 14px;
  color: #1e3a8a;
  margin-bottom: 2px;
}

.info-alert p {
  font-size: 13px;
  color: #2563eb;
  line-height: 1.45;
}

/* TAB 3: CASHFLOW */
.cashflow-comparison-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.cf-box {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cf-box.gross {
  border-top: 4px solid var(--primary);
}

.cf-box.deductions {
  border-top: 4px solid var(--danger);
  background: #fffafa;
}

.cf-box.net {
  border-top: 4px solid var(--success);
  background: #f4fdf8;
}

.cf-box span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.cf-box strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  margin: 6px 0 2px;
  color: var(--text-main);
}

.cf-box.deductions strong { color: var(--danger); }
.cf-box.net strong { color: var(--success); }

.cf-box small {
  font-size: 11.5px;
  color: var(--text-dim);
}

.cf-arrow {
  color: var(--text-dim);
  display: grid;
  place-items: center;
}

.breakdown-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.breakdown-table-wrap h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.waterfall-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wf-item {
  display: grid;
  grid-template-columns: 220px 1fr 160px;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: var(--surface-subtle);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}

.wf-item.total-row {
  background: #ecfdf5;
  font-weight: 800;
  border: 1px solid #a7f3d0;
}

.wf-name {
  font-weight: 600;
  color: var(--text-main);
}

.wf-bar-wrap {
  height: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.wf-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}
.wf-bar-fill.expense { background: #f87171; }
.wf-bar-fill.net { background: var(--success); }

.wf-val {
  text-align: right;
  font-weight: 700;
  color: var(--text-main);
}
.wf-val.negative { color: var(--danger); }
.wf-val.positive { color: var(--success); }

.notice-box.note {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.notice-box.note strong {
  color: var(--text-main);
}

/* TAB 4: SCHEDULE & CHART */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chart-header h4 {
  font-size: 16px;
  font-weight: 700;
}

.chart-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.chart-container {
  overflow: hidden;
}

.chart-container svg {
  width: 100%;
  height: auto;
  min-height: 220px;
}

.table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: right;
  min-width: 680px;
}

.clean-table th, .clean-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.clean-table th {
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.clean-table th:first-child, .clean-table td:first-child,
.clean-table th:nth-child(2), .clean-table td:nth-child(2) {
  text-align: left;
}

.clean-table tbody tr:hover {
  background: #f8fbff;
}

.clean-table tbody tr:last-child td {
  border-bottom: none;
}

/* TAB 5: CALCULATOR */
.calculator-wrapper {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.calc-form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.calc-form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calc-form-head h4 {
  font-size: 16px;
  font-weight: 700;
}

.btn-sm-secondary {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.input-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  font-family: inherit;
}

.input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
}

.input-with-affix {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.input-with-affix input {
  border: none;
  box-shadow: none !important;
}

.input-with-affix .affix {
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  background: #f8fafc;
}

.calc-results-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-results-panel h4 {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.calc-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.calc-summary-item .cs-label {
  color: var(--text-muted);
}

.calc-summary-item .cs-value {
  font-weight: 700;
  color: var(--text-main);
}

.calc-total-box {
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-top: 8px;
}

.calc-total-box span {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-total-box strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  margin: 6px 0 4px;
}

.calc-total-box small {
  font-size: 12px;
  color: var(--text-muted);
}

.badge.green {
  background: #dcfce7;
  color: var(--success);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.alert-box {
  font-size: 12.5px;
  padding: 12px;
  border-radius: 8px;
  line-height: 1.4;
}
.alert-box.warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-box.info { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* EVIDENCE SECTION */
.evidence-card {
  margin-top: 32px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.evidence-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

.evidence-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #e2e8f0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.evidence-item img:hover {
  transform: scale(1.02);
}

.ev-caption {
  padding: 14px;
}

.ev-caption strong {
  display: block;
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.ev-caption span {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* GLOSSARY */
.glossary-card {
  margin-top: 24px;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.glossary-item {
  background: var(--surface-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border);
}

.glossary-item strong {
  display: block;
  font-size: 13.5px;
  color: var(--primary);
  margin-bottom: 4px;
}

.glossary-item p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* FOOTER */
.app-footer {
  text-align: center;
  padding: 32px 0 16px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* PRIVACY MODE */
body.privacy .evidence-card {
  display: none;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .hero-spotlight-grid {
    grid-template-columns: 1fr;
  }
  .key-facts-grid {
    grid-template-columns: 1fr;
  }
  .metrics-dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-list {
    grid-template-columns: 1fr;
  }
  .scenario-tabs-nav {
    grid-template-columns: 1fr;
  }
  .math-formula-grid {
    grid-template-columns: 1fr;
  }
  .math-op {
    display: none;
  }
  .cashflow-comparison-hero {
    flex-direction: column;
  }
  .cf-arrow {
    transform: rotate(90deg);
  }
  .calculator-wrapper {
    grid-template-columns: 1fr;
  }
  .evidence-grid {
    grid-template-columns: 1fr;
  }
  .glossary-grid {
    grid-template-columns: 1fr;
  }
  .wf-item {
    grid-template-columns: 1fr auto;
  }
  .wf-bar-wrap {
    display: none;
  }
}

@media print {
  body {
    background: #ffffff;
  }
  .topbar-actions, .nav-tabs, .btn-icon, .btn-primary-outline, .calculator-wrapper, .app-footer {
    display: none !important;
  }
  .tab-content {
    display: block !important;
    margin-bottom: 24px;
  }
  .card, .section-container, .hero-card {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    break-inside: avoid;
  }
}
