/* ═══════════════════════════════════════════════════════════════
   MBA Financial Analysis — "Financial Terminal Noir"
   Aesthetic: Bloomberg terminal meets luxury investment prospectus
   ═══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────────────────── */
:root {
    /* Base palette */
    --bg-deep:       #0B0E17;
    --bg-surface:    #141722;
    --bg-elevated:   #1A1E2C;
    --bg-hover:      #242836;
    --border:        #1E2333;
    --border-light:  #2A2E3D;

    /* School brand colors */
    --booth-primary:   #800000;
    --booth-light:     #A52A2A;
    --booth-glow:      rgba(128, 0, 0, 0.15);
    --kellogg-primary: #4E2A84;
    --kellogg-light:   #7B52AB;
    --kellogg-glow:    rgba(78, 42, 132, 0.15);

    /* Loan accent colors */
    --us-loan:         #3B82F6;
    --us-loan-light:   #60A5FA;
    --india-loan:      #F59E0B;
    --india-loan-light:#FBBF24;

    /* Semantic */
    --positive:  #10B981;
    --negative:  #EF4444;
    --neutral:   #6B7280;

    /* Text */
    --text-primary:   #E2E4EA;
    --text-secondary: #8B8FA3;
    --text-muted:     #555A70;
    --text-inverse:   #0B0E17;

    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-heading: 'Sora', sans-serif;
    --font-body:    'DM Sans', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Shape */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET & BASE ──────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-deep);
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 48px 48px;
    line-height: 1.5;
    min-height: 100vh;
}

.mono {
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* ── HEADER ────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.header-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
}

.header-glow--maroon {
    top: -200px;
    left: 10%;
    background: var(--booth-primary);
}

.header-glow--purple {
    top: -200px;
    right: 10%;
    background: var(--kellogg-primary);
}

.header-inner {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.brand-subtitle {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: var(--space-xs);
}

/* Tabs */
.tab-nav {
    display: flex;
    gap: var(--space-sm);
    background: var(--bg-surface);
    padding: 4px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.tab-btn {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    white-space: nowrap;
}

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

.tab-btn.active {
    color: var(--text-primary);
    background: var(--bg-elevated);
    box-shadow:
        0 1px 3px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.tab-icon {
    font-size: 0.7em;
    margin-right: 4px;
    opacity: 0.6;
}

/* ── MAIN CONTENT ──────────────────────────────────────────────── */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.tab-panel {
    display: none;
    animation: fadeSlideIn 0.4s var(--ease-out);
}

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

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

/* ── SECTION LABELS ────────────────────────────────────────────── */
.section-label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
}

.section-label:first-child {
    margin-top: 0;
}

.section-note {
    font-weight: 400;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

/* ── PANELS (generic card wrapper) ─────────────────────────────── */
.panel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.panel--table {
    padding: 0;
    overflow: hidden;
}

.panel-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
    font-style: italic;
}

/* ── PROGRAM CARDS (Tuition) ───────────────────────────────────── */
.program-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.program-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s var(--ease-out);
}

.program-card:hover {
    border-color: var(--border-light);
}

.card-accent {
    height: 3px;
}

.program-card--booth .card-accent {
    background: linear-gradient(90deg, var(--booth-primary), var(--booth-light));
}

.program-card--kellogg .card-accent {
    background: linear-gradient(90deg, var(--kellogg-primary), var(--kellogg-light));
}

.card-body {
    padding: var(--space-lg);
}

.card-header {
    margin-bottom: var(--space-lg);
}

.school-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.school-badge--booth {
    background: var(--booth-glow);
    color: var(--booth-light);
    border: 1px solid rgba(128, 0, 0, 0.3);
}

.school-badge--kellogg {
    background: var(--kellogg-glow);
    color: var(--kellogg-light);
    border: 1px solid rgba(78, 42, 132, 0.3);
}

.program-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.school-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Tuition Table */
.tuition-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-lg);
}

.tuition-table tr {
    border-bottom: 1px solid var(--border);
}

.tuition-table tr:last-child {
    border-bottom: none;
}

.tuition-total-row {
    border-top: 2px solid var(--border-light) !important;
}

.tuition-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: var(--space-sm) 0;
}

.tuition-amount {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
    padding: var(--space-sm) 0;
}

.tuition-amount--total {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Living Block (inside program card) */
.living-block {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
}

.living-block .input-label {
    margin-bottom: var(--space-sm);
}

.living-block .slider-row {
    margin-bottom: var(--space-xs);
}

/* Scholarship Block */
.scholarship-block {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.input-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-sm);
}

.currency-input {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 var(--space-sm);
    transition: border-color 0.2s;
}

.currency-input:focus-within {
    border-color: var(--text-muted);
}

.currency-input--sm {
    display: inline-flex;
}

.currency-symbol {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    user-select: none;
}

.num-input {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    background: transparent;
    border: none;
    padding: var(--space-sm) var(--space-xs);
    width: 100%;
    outline: none;
    text-align: right;
    -moz-appearance: textfield;
}

.num-input::-webkit-outer-spin-button,
.num-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.num-input--lg {
    font-size: 1.05rem;
    font-weight: 600;
    padding: var(--space-sm) var(--space-sm);
}

.computed-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
}

.computed-row--highlight {
    border-top: 1px solid var(--border);
    padding-top: var(--space-sm);
    margin-top: var(--space-sm);
}

.computed-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.computed-value {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.computed-row--highlight .computed-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--positive);
}

/* ── SLIDERS ───────────────────────────────────────────────────── */
.slider-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md) var(--space-xl);
}

.slider-row {
    margin-bottom: var(--space-md);
}

.slider-computed {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
    text-align: right;
}

.slider-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    margin-bottom: var(--space-sm);
}

.slider-control {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.slider-value {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 var(--space-sm);
    min-width: 90px;
    flex-shrink: 0;
}

.slider-value .num-input {
    width: 60px;
    font-size: 0.82rem;
    padding: 6px 2px;
}

.slider-value .unit {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    user-select: none;
}

/* Custom Range Slider */
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-hover);
    outline: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-primary);
    border: 2px solid var(--bg-deep);
    cursor: grab;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
    transition: transform 0.15s var(--ease-out), box-shadow 0.15s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-primary);
    border: 2px solid var(--bg-deep);
    cursor: grab;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Slider color variants */
.slider--us::-webkit-slider-thumb {
    background: var(--us-loan);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.slider--india::-webkit-slider-thumb {
    background: var(--india-loan);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.slider--green::-webkit-slider-thumb {
    background: var(--positive);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.slider--us::-moz-range-thumb {
    background: var(--us-loan);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.slider--india::-moz-range-thumb {
    background: var(--india-loan);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.slider--green::-moz-range-thumb {
    background: var(--positive);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* ── LIVING SUMMARY ────────────────────────────────────────────── */
.living-summary {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.summary-pill {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.summary-pill--booth {
    border-color: rgba(128, 0, 0, 0.25);
}

.summary-pill--kellogg {
    border-color: rgba(78, 42, 132, 0.25);
}

.pill-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pill-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ── SUMMARY CARDS ─────────────────────────────────────────────── */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.2s var(--ease-out), border-color 0.2s;
}

.summary-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-light);
}

.summary-card--booth {
    border-top: 3px solid var(--booth-primary);
}

.summary-card--kellogg {
    border-top: 3px solid var(--kellogg-primary);
}

.summary-card--diff {
    border-top: 3px solid var(--neutral);
}

.summary-card--time {
    border-top: 3px solid var(--us-loan);
}

.summary-card--paid {
    border-top: 3px solid var(--india-loan);
}

.summary-card--interest {
    border-top: 3px solid var(--negative);
}

.card-kicker {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.card-figure {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.card-detail {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* ── LOAN PANELS ───────────────────────────────────────────────── */
.loan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.loan-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}

.loan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* US loan header — stars & stripes feel */
.loan-header--us {
    background:
        linear-gradient(135deg, rgba(11, 38, 91, 0.4) 0%, rgba(187, 19, 62, 0.15) 50%, rgba(59, 130, 246, 0.05) 100%);
    position: relative;
    overflow: hidden;
}


.loan-header--us .loan-title {
    color: #dce5f5;
}

/* Indian loan header — saffron & green */
.loan-header--india {
    background:
        linear-gradient(135deg, rgba(255, 136, 17, 0.3) 0%, rgba(19, 136, 8, 0.15) 50%, rgba(245, 158, 11, 0.05) 100%);
    position: relative;
    overflow: hidden;
}


.loan-header--india .loan-title {
    color: #f5e6d0;
}

.loan-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.loan-provider {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.loan-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.loan-badge--green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--positive);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.loan-badge--amber {
    background: rgba(245, 158, 11, 0.12);
    color: var(--india-loan);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.loan-badge--us-provider {
    background: rgba(11, 38, 91, 0.4);
    color: #93b4e8;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.loan-badge--india-provider {
    background: rgba(255, 153, 51, 0.12);
    color: #f0a050;
    border: 1px solid rgba(255, 153, 51, 0.3);
}

.loan-badges {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.loan-sliders {
    padding: var(--space-lg);
}

.loan-sliders .slider-grid {
    grid-template-columns: 1fr;
}

.inline-inputs {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
}

.inline-input-group {
    flex: 1;
    min-width: 120px;
}

.inline-input-group .slider-label {
    margin-bottom: var(--space-xs);
    font-size: 0.65rem;
}

.static-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 0;
}

/* Loan Results */
.loan-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    overflow: visible;
}

.loan-result-block {
    padding: var(--space-md) var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.loan-result-block--booth .result-content {
    border-right: 1px solid var(--border);
    padding-right: var(--space-lg);
    margin-right: calc(-1 * var(--space-lg));
}

/* Vertical divider between Booth and Kellogg — only spans content */

.result-school {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.loan-result-block--booth .result-school {
    color: var(--booth-light);
}

.loan-result-block--kellogg .result-school {
    color: var(--kellogg-light);
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.result-row .mono {
    color: var(--text-primary);
    font-size: 0.82rem;
}

.result-details {
    /* Don't stretch — let totals handle the spacing */
}

.result-totals {
    border-top: 2px solid var(--border-light);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
}

/* Ensure the school header + details stay at the top, not stretch */
.loan-result-block h4.result-school {
    flex-shrink: 0;
}

.result-row--total {
    font-weight: 600;
    padding: 3px 0;
}

.result-row--total span:first-child {
    color: var(--text-primary);
}

.result-row--total .mono {
    font-size: 0.9rem;
    color: var(--positive);
}

.result-row--small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.result-row--small .mono {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* Tooltip icon with CSS popup */
.tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border-light);
    color: var(--text-muted);
    font-size: 0.55rem;
    font-weight: 700;
    font-style: normal;
    cursor: help;
    vertical-align: middle;
    margin-left: 4px;
    flex-shrink: 0;
}

.tooltip-wrap .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 8px);
    right: -8px;
    width: 280px;
    background: var(--bg-deep);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.5;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 50;
    pointer-events: none;
    transition: opacity 0.15s, visibility 0.15s;
}

.tooltip-wrap .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 14px;
    border: 6px solid transparent;
    border-top-color: var(--border-light);
}

.tooltip-wrap:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ── CHART CONTAINERS ──────────────────────────────────────────── */
.chart-container {
    position: relative;
    width: 100%;
    height: 340px;
}

.chart-container--lg {
    height: 420px;
}

.chart-container--sm {
    height: 260px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-insight {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--india-loan);
}

/* Breakeven result — prominent callout */
.breakeven-result {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(245, 158, 11, 0.06));
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-align: center;
}

.breakeven-result-rate {
    font-family: var(--font-mono);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--india-loan-light);
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

.breakeven-result-label {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.breakeven-result-detail {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.breakeven-result-detail strong {
    color: var(--text-primary);
}

.breakeven-result-tags {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.breakeven-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-deep);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .breakeven-result-rate {
        font-size: 1.8rem;
    }
}

/* ── CONFIG BAR (Tab 2) ────────────────────────────────────────── */
.config-bar {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.toggle-label {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.toggle-btns {
    display: flex;
    gap: 2px;
    background: var(--bg-deep);
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.toggle-btn {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}

.toggle-btn:hover {
    color: var(--text-primary);
}

.toggle-btn.active {
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.toggle-btn--booth.active {
    background: var(--booth-primary);
}

.toggle-btn--kellogg.active {
    background: var(--kellogg-primary);
}

.toggle-btn--us.active {
    background: rgba(59, 130, 246, 0.25);
    color: var(--us-loan-light);
}

.toggle-btn--india.active {
    background: rgba(245, 158, 11, 0.25);
    color: var(--india-loan-light);
}

/* ── CASH FLOW TABLE ───────────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
}

.cashflow-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.cashflow-table th {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: var(--space-md) var(--space-lg);
    text-align: right;
    background: var(--bg-elevated);
    border-bottom: 2px solid var(--border-light);
    position: sticky;
    top: 0;
}

.cashflow-table th:first-child {
    text-align: left;
}

.cashflow-table td {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-lg);
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.cashflow-table td:first-child {
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-secondary);
}

.cashflow-table tbody tr:hover {
    background: var(--bg-hover);
}

.cashflow-table tbody tr:last-child td {
    font-weight: 600;
    border-top: 2px solid var(--border-light);
}

/* ── FOOTER ────────────────────────────────────────────────────── */
.site-footer {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    color: var(--text-muted);
    font-size: 0.72rem;
    border-top: 1px solid var(--border);
    margin-top: var(--space-2xl);
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .loan-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html { font-size: 14px; }

    .main-content {
        padding: var(--space-md);
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .slider-grid {
        grid-template-columns: 1fr;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .living-summary {
        flex-direction: column;
    }

    .loan-results-grid {
        grid-template-columns: 1fr;
    }

    .loan-result-block--booth {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .config-bar {
        flex-direction: column;
        gap: var(--space-md);
    }

    .chart-container { height: 280px; }
    .chart-container--lg { height: 340px; }
    .chart-container--sm { height: 220px; }

    .card-figure { font-size: 1.3rem; }

    .inline-inputs {
        flex-direction: column;
    }
}

/* ── PRINT ─────────────────────────────────────────────────────── */
@media print {
    body {
        background: white;
        color: #111;
        background-image: none;
    }

    .site-header {
        position: static;
        background: white;
        border-bottom: 2px solid #111;
    }

    .header-glow { display: none; }
    .tab-nav { display: none; }
    .tab-panel { display: block !important; }

    .panel, .program-card, .loan-panel, .summary-card {
        background: white;
        border-color: #ccc;
        break-inside: avoid;
    }

    .slider { display: none; }

    .mono, .computed-value, .pill-value, .card-figure,
    .tuition-amount, .result-row .mono, .cashflow-table td {
        color: #111;
    }

    .section-label, .card-kicker, .school-badge,
    .slider-label, .computed-label, .pill-label {
        color: #555;
    }
}

/* ── SCROLLBAR ─────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ── FOCUS STYLES ──────────────────────────────────────────────── */
.slider:focus-visible {
    outline: 2px solid var(--us-loan);
    outline-offset: 2px;
}

.num-input:focus-visible {
    outline: none;
}

.tab-btn:focus-visible,
.toggle-btn:focus-visible {
    outline: 2px solid var(--us-loan);
    outline-offset: 2px;
}

/* ── UTILITY ───────────────────────────────────────────────────── */
/* ── COST OF ATTENDANCE ROW (inside program card) ──────────────── */
.cost-of-attendance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
}

.coa-label-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.coa-label {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.coa-duration {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.coa-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--positive);
}

/* ── GRAND TOTAL BANNER ────────────────────────────────────────── */
.grand-total-banner {
    margin-top: var(--space-lg);
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.grand-total-cell {
    display: grid;
    grid-template-rows: 1fr auto auto;
    align-items: center;
    justify-items: center;
    gap: 2px;
    padding: var(--space-lg) var(--space-md);
}

.grand-total-cell-value {
    align-self: end;
}

.grand-total-cell--booth {
    background: linear-gradient(135deg, var(--booth-glow), transparent);
    align-self: stretch;
}

.grand-total-cell--kellogg {
    background: linear-gradient(135deg, var(--kellogg-glow), transparent);
    align-self: stretch;
}

.grand-total-cell--result {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
    align-self: stretch;
}

.grand-total-cell-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.grand-total-cell-value--result {
    font-size: 1.8rem;
    color: var(--positive);
}

.grand-total-op-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-sm);
}

.grand-total-op {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--text-muted);
    font-weight: 300;
}

.grand-total-subtitle {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.grand-total-banner--with-details {
    grid-template-rows: auto auto;
    row-gap: 0;
}

/* Continuous border between value row and detail row */
.grand-total-banner--with-details::after {
    content: '';
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid var(--border);
    pointer-events: none;
    z-index: 1;
    align-self: start;
}

.grand-total-detail-cell {
    grid-row: 2;
    font-family: var(--font-body);
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    margin-top: 1px;
}

.grand-total-detail-cell--booth {
    grid-column: 1;
    background: linear-gradient(135deg, var(--booth-glow), transparent);
}

.grand-total-detail-cell--kellogg {
    grid-column: 3;
    background: linear-gradient(135deg, var(--kellogg-glow), transparent);
}

.grand-total-detail-cell--result {
    grid-column: 5;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
}

@media (max-width: 768px) {
    .grand-total-banner { grid-template-columns: 1fr auto 1fr; }
    .grand-total-cell { padding: var(--space-md) var(--space-sm); }
    .grand-total-cell-value { font-size: 1.2rem; }
    .grand-total-cell-value--result { font-size: 1.2rem; }
    .grand-total-op { font-size: 1.4rem; }
    .grand-total-op-cell:nth-child(4),
    .grand-total-cell--result {
        grid-column: 1 / -1;
    }
    .grand-total-op-cell:nth-child(4) { padding: var(--space-xs) 0; }
}

/* ── PROGRAM TOGGLE (breakeven) ─────────────────────────────────── */
.program-toggle-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.program-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
}

.program-btn:hover {
    border-color: var(--border-light);
    background: var(--bg-elevated);
    transform: translateY(-1px);
}

.program-btn--booth.program-btn--active {
    border-color: var(--booth-primary);
    background: linear-gradient(135deg, var(--booth-glow), transparent);
    box-shadow: 0 0 20px rgba(128, 0, 0, 0.1);
}

.program-btn--kellogg.program-btn--active {
    border-color: var(--kellogg-primary);
    background: linear-gradient(135deg, var(--kellogg-glow), transparent);
    box-shadow: 0 0 20px rgba(78, 42, 132, 0.1);
}

.program-btn-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.program-btn--active .program-btn-label {
    color: var(--text-primary);
}

/* ── YEAR TOGGLE (big buttons) ──────────────────────────────────── */
.year-toggle-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.year-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
}

.year-btn:hover {
    border-color: var(--border-light);
    background: var(--bg-elevated);
    transform: translateY(-1px);
}

.year-btn--active {
    border-color: var(--us-loan);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02));
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.year-btn-label {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.year-btn--active .year-btn-label {
    color: var(--us-loan-light);
}

.year-btn-sub {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.year-btn--active .year-btn-sub {
    color: var(--text-secondary);
}

/* Scope zone: visual border linking year buttons to affected sections */
.year-scope-zone {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.02) 0%, transparent 15%);
    position: relative;
}

.year-scope-zone::before {
    content: 'Affected by year selection';
    position: absolute;
    top: -9px;
    left: var(--space-lg);
    background: var(--bg-deep);
    padding: 0 var(--space-sm);
    font-family: var(--font-heading);
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .year-btn {
        padding: var(--space-md);
    }
    .year-btn-label {
        font-size: 1.1rem;
    }
    .year-scope-zone {
        padding: var(--space-md);
    }
}

/* ── METHODOLOGY NOTES ──────────────────────────────────────────── */
.methodology {
    margin-top: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-secondary);
    overflow: hidden;
}

.methodology summary {
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.methodology summary::-webkit-details-marker { display: none; }

.methodology summary::before {
    content: '\25B6';
    font-size: 0.55rem;
    transition: transform 0.2s var(--ease-out);
}

.methodology[open] summary::before {
    transform: rotate(90deg);
}

.methodology-body {
    padding: 0 var(--space-md) var(--space-md);
    border-top: 1px solid var(--border);
}

.methodology-body p {
    margin-top: var(--space-sm);
}

.methodology-body code {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: var(--bg-deep);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--text-primary);
}

.methodology-body ul,
.methodology-body ol {
    margin: var(--space-sm) 0;
    padding-left: var(--space-lg);
}

.methodology-body li {
    margin-bottom: 2px;
}

/* ── LOAN SUMMARY BOX ──────────────────────────────────────────── */
.loan-summary-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.loan-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

.loan-summary-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.loan-summary-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ── BUDGET FLOW ROWS ──────────────────────────────────────────── */
.budget-flow {
    display: flex;
    flex-direction: column;
}

.budget-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.budget-row:last-child {
    border-bottom: none;
}

.budget-row .mono {
    font-size: 0.88rem;
    color: var(--text-primary);
}

.budget-row--header {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.88rem;
}

.budget-row--header .mono {
    font-size: 1rem;
}

.budget-row--sub {
    padding-left: var(--space-md);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.budget-row--sub .mono {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.budget-row--result {
    border-top: 2px solid var(--border-light);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-xs);
    padding-top: var(--space-sm);
}

.budget-row--result .mono {
    font-size: 1rem;
    color: var(--positive);
}

/* Affordability verdict */
.budget-row--affordable .mono { color: var(--positive); }
.budget-row--shortfall { color: var(--negative); }
.budget-row--shortfall .mono { color: var(--negative); }

/* ── BUDGET TOTAL (computed summary rows) ──────────────────────── */
.budget-total {
    margin-top: var(--space-md);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border);
}

.budget-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.budget-total-row .mono {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
}

.budget-total-row--highlight {
    border-top: 1px solid var(--border);
    margin-top: var(--space-xs);
    padding-top: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.budget-total-row--highlight .mono {
    font-size: 1rem;
    font-weight: 700;
    color: var(--positive);
}

.budget-total-row--big {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.88rem;
}

.budget-total-row--big .mono {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Verdict colors inside budget-total */
.budget-total-row.budget-row--affordable .mono { color: var(--positive); }
.budget-total-row.budget-row--shortfall { color: var(--negative); }
.budget-total-row.budget-row--shortfall .mono { color: var(--negative); }

/* ── COMPACT SELECTOR (Tab 2 columns) ──────────────────────────── */
.selector-bar {
    display: grid;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.selector-bar--2col { grid-template-columns: 1fr 1fr; }
.selector-bar--3col { grid-template-columns: 1fr 1fr 1fr; }

.selector-btn {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s var(--ease-out);
}

.selector-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-light);
}

.selector-btn.active {
    color: var(--text-primary);
    border-color: var(--us-loan);
    background: rgba(59, 130, 246, 0.08);
    font-weight: 600;
}

.selector-btn--us.active {
    border-color: var(--us-loan);
    background: linear-gradient(135deg, rgba(11, 38, 91, 0.3), rgba(59, 130, 246, 0.05));
    color: #dce5f5;
}

.selector-btn--india.active {
    border-color: var(--india-loan);
    background: linear-gradient(135deg, rgba(255, 136, 17, 0.2), rgba(245, 158, 11, 0.05));
    color: #f5e6d0;
}

/* ── BALANCE SHEET ──────────────────────────────────────────────── */
.balance-sheet {
    display: flex;
    flex-direction: column;
}

.bs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.bs-row:last-child { border-bottom: none; }

.bs-row .mono {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
}

.bs-row--income {
    font-weight: 600;
    color: var(--text-primary);
}

.bs-row--income .mono {
    font-size: 1rem;
    font-weight: 700;
}

.bs-row--sub {
    padding-left: var(--space-md);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.bs-row--sub .mono {
    font-size: 0.8rem;
    color: var(--negative);
    font-weight: 400;
}

.bs-row--net {
    border-top: 2px solid var(--border-light);
    margin-top: 2px;
    padding-top: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.bs-row--net .mono {
    font-size: 1rem;
    font-weight: 700;
    color: var(--positive);
}

.bs-row--expense .mono {
    color: var(--negative);
}

.bs-row--bottom {
    border-top: 2px solid var(--border-light);
    margin-top: 2px;
    padding-top: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.88rem;
}

.bs-row--bottom .mono {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--positive);
}

/* Inline toggle for monthly/yearly */
.toggle-btns--inline {
    display: inline-flex;
    gap: 2px;
    background: var(--bg-deep);
    padding: 2px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-left: var(--space-md);
    vertical-align: middle;
}

.toggle-btns--inline .toggle-btn {
    font-size: 0.62rem;
    padding: 2px 8px;
}

/* ── HOUSEHOLD BALANCE SHEET TABLE ──────────────────────────────── */
.hh-bs-panel {
    padding: 0;
    overflow: hidden;
}

.hh-bs-table {
    width: 100%;
    border-collapse: collapse;
}

.hh-bs-table th {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: var(--space-md) var(--space-lg);
    text-align: right;
}

.hh-bs-label-col {
    text-align: left !important;
    width: 30%;
}

.hh-bs-col--booth {
    color: var(--booth-light);
    background: linear-gradient(180deg, var(--booth-glow), transparent);
}

.hh-bs-col--kellogg {
    color: var(--kellogg-light);
    background: linear-gradient(180deg, var(--kellogg-glow), transparent);
}

.hh-bs-col--total {
    color: var(--positive);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.06), transparent);
}

.hh-bs-table td {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-lg);
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.hh-bs-table td:first-child {
    font-family: var(--font-body);
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.hh-bs-table tr.hh-bs-sub td {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-left: var(--space-xl);
}

.hh-bs-table tr.hh-bs-sub td:first-child {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.hh-bs-table tr.hh-bs-sub td:not(:first-child) {
    color: var(--negative);
    font-size: 0.75rem;
}

.hh-bs-table tr.hh-bs-net td {
    font-weight: 600;
    font-size: 0.9rem;
    border-top: 2px solid var(--border-light);
    padding-top: var(--space-md);
}

.hh-bs-table tr.hh-bs-net td:not(:first-child) {
    color: var(--positive);
}

.hh-bs-table tr.hh-bs-net td:first-child {
    color: var(--text-primary);
    font-weight: 600;
}

.hh-bs-table tr.hh-bs-expense td:not(:first-child) {
    color: var(--negative);
}

.hh-bs-table tr.hh-bs-bottom td {
    font-weight: 700;
    font-size: 0.95rem;
    border-top: 2px solid var(--border-light);
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

.hh-bs-table tr.hh-bs-bottom td:first-child {
    color: var(--text-primary);
}

.hh-bs-table tbody tr:hover {
    background: var(--bg-hover);
}

/* ── DUAL SPLIT LAYOUT (Tab 2) ──────────────────────────────────── */
.dual-split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    margin-bottom: var(--space-lg);
}

.dual-split-col {
    padding: 0 var(--space-lg);
}

.dual-split-col:first-child {
    padding-left: 0;
}

.dual-split-col:last-child {
    padding-right: 0;
}

.dual-split-divider {
    width: 1px;
    background: var(--border);
    margin: var(--space-xl) 0;
}

@media (max-width: 1024px) {
    .dual-split {
        grid-template-columns: 1fr;
    }
    .dual-split-col {
        padding: 0;
    }
    .dual-split-divider {
        width: 100%;
        height: 1px;
        margin: var(--space-lg) 0;
    }
}

.text-positive { color: var(--positive); }
.text-negative { color: var(--negative); }
.text-muted { color: var(--text-muted); }

.fx-status {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--positive);
    letter-spacing: 0;
    text-transform: none;
}
