/* ============================================
   EduAI Pro — Premium Calculator CSS
   ============================================ */

:root {
    --bg:           #080d1a;
    --bg2:          #0d1529;
    --panel:        rgba(17, 28, 54, 0.75);
    --panel-hover:  rgba(22, 36, 68, 0.9);
    --border:       rgba(99, 140, 255, 0.12);
    --border-glow:  rgba(139, 92, 246, 0.35);
    --text:         #eef2ff;
    --text2:        #94a3b8;
    --text3:        #64748b;

    --purple:       #8b5cf6;
    --purple-light: #a78bfa;
    --blue:         #3b82f6;
    --blue-light:   #60a5fa;
    --green:        #10b981;
    --green-light:  #34d399;
    --orange:       #f59e0b;
    --red:          #ef4444;
    --teal:         #06b6d4;

    --grad-purple: linear-gradient(135deg, #8b5cf6, #3b82f6);
    --grad-green:  linear-gradient(135deg, #10b981, #06b6d4);
    --grad-orange: linear-gradient(135deg, #f59e0b, #ef4444);

    --glass-blur:   blur(16px);
    --shadow-sm:    0 4px 16px rgba(0,0,0,0.3);
    --shadow-md:    0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow:  0 0 30px rgba(139,92,246,0.2);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font: 'Outfit', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse at 10% 20%, rgba(139,92,246,0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 80%, rgba(59,130,246,0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(16,185,129,0.04) 0%, transparent 60%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    padding: 0 0 4rem 0;
}

/* ========== BACKGROUND PARTICLES ========== */
.bg-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-particles span {
    position: absolute;
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
    opacity: 0.04;
}
.bg-particles span:nth-child(1) { width: 400px; height: 400px; background: var(--purple); top: -100px; left: -100px; animation-duration: 25s; }
.bg-particles span:nth-child(2) { width: 300px; height: 300px; background: var(--blue); bottom: -50px; right: -50px; animation-duration: 30s; animation-delay: -8s; }
.bg-particles span:nth-child(3) { width: 200px; height: 200px; background: var(--green); top: 50%; left: 60%; animation-duration: 20s; animation-delay: -5s; }
.bg-particles span:nth-child(4) { width: 150px; height: 150px; background: var(--orange); top: 30%; right: 20%; animation-duration: 28s; animation-delay: -12s; }
.bg-particles span:nth-child(5) { width: 250px; height: 250px; background: var(--teal); bottom: 30%; left: 10%; animation-duration: 22s; animation-delay: -3s; }

@keyframes float-particle {
    0%   { transform: translate(0,0) rotate(0deg); }
    33%  { transform: translate(30px, -50px) rotate(120deg); }
    66%  { transform: translate(-20px, 30px) rotate(240deg); }
    100% { transform: translate(0,0) rotate(360deg); }
}

/* ========== APP CONTAINER ========== */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
}

/* ========== HEADER ========== */
.app-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    animation: slide-down 0.7s ease-out both;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.5rem 1.25rem;
    margin-bottom: 1.5rem;
    backdrop-filter: var(--glass-blur);
}
.logo-icon { font-size: 1.5rem; animation: pulse-glow 2s ease infinite; }
.logo-text { display: flex; flex-direction: column; text-align: left; }
.logo-brand { font-size: 1rem; font-weight: 700; background: var(--grad-purple); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-tag { font-size: 0.7rem; color: var(--text3); }

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(139,92,246,0.6)); }
    50%       { filter: drop-shadow(0 0 12px rgba(139,92,246,1)); }
}

.app-title {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    background: linear-gradient(135deg, #c4b5fd, #93c5fd, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.app-subtitle {
    font-size: 1.1rem;
    color: var(--text2);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.header-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.currency-toggle {
    display: flex;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 100px;
    overflow: hidden;
    cursor: pointer;
}
.currency-opt {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--text2);
    user-select: none;
}
.currency-opt.active {
    background: var(--grad-purple);
    color: white;
    border-radius: 100px;
}
.last-updated {
    font-size: 0.8rem;
    color: var(--text3);
}

/* ========== MAIN LAYOUT ========== */
.main-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.5rem;
    align-items: start;
    animation: slide-up 0.7s ease-out 0.15s both;
}

/* ========== CONFIG PANEL ========== */
.config-panel {
    background: var(--panel);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-glow) transparent;
}

/* TAB NAVIGATION */
.tab-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 1.5rem;
}
.tab-btn {
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text2);
    background: transparent;
    border: none;
    padding: 0.55rem 0.25rem;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    line-height: 1.3;
}
.tab-btn.active {
    background: var(--grad-purple);
    color: white;
    box-shadow: 0 2px 8px rgba(139,92,246,0.4);
}
.tab-btn:hover:not(.active) {
    background: rgba(255,255,255,0.06);
    color: var(--text);
}

/* TAB CONTENT */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fade-in 0.3s ease; }

/* INPUT GROUPS */
.input-group {
    margin-bottom: 1.25rem;
}
.input-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text2);
    margin-bottom: 0.5rem;
}
.label-icon { font-size: 1rem; }

.input-group select,
.full-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
    appearance: none;
}
.input-group select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2rem; }
.input-group select:focus, .full-input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
    background: rgba(0,0,0,0.4);
}

/* SLIDER ROW */
.slider-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.range-slider {
    flex: 1;
    appearance: none;
    height: 5px;
    border-radius: 100px;
    background: rgba(255,255,255,0.1);
    outline: none;
    cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--grad-purple);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(139,92,246,0.6);
    transition: transform 0.2s;
}
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.range-slider.accent-green::-webkit-slider-thumb { background: var(--grad-green); box-shadow: 0 0 8px rgba(16,185,129,0.6); }

.number-input {
    width: 80px;
    padding: 0.5rem 0.6rem;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    text-align: right;
    outline: none;
    transition: border 0.2s;
}
.number-input.small { width: 65px; }
.number-input:focus { border-color: var(--purple); }

/* TOGGLE SWITCH */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px; height: 24px;
    cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 100px;
    transition: all 0.3s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.toggle-switch input:checked + .toggle-slider { background: var(--grad-green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* BADGES & HINTS */
.provider-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--green);
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 100px;
    padding: 0.2rem 0.6rem;
    margin-top: 0.4rem;
}
.auto-hint {
    font-size: 0.72rem;
    color: var(--text3);
    margin-top: 0.3rem;
}
.margin-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.4rem;
    color: var(--orange);
}

/* TOOLTIP */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 0.65rem;
    color: var(--text3);
    cursor: help;
    transition: all 0.2s;
}
.tooltip-icon:hover { background: var(--purple); color: white; border-color: var(--purple); }
.tooltip-popup {
    position: fixed;
    background: #1e293b;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
    max-width: 220px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
    line-height: 1.5;
}
.tooltip-popup.visible { opacity: 1; transform: translateY(0); }

/* ACTION BUTTONS */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.action-buttons-right {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

@media (max-width: 768px) {
    .action-buttons-right {
        bottom: 1rem;
        right: 1rem;
        flex-direction: column;
        justify-content: center;
    }
    .action-buttons-right button {
        width: 100% !important;
    }
}
.primary-btn, .secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}
.primary-btn {
    background: var(--grad-purple);
    color: white;
    box-shadow: 0 4px 16px rgba(139,92,246,0.4);
}
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,92,246,0.5); }
.primary-btn:active { transform: translateY(0px); }
.secondary-btn {
    background: rgba(255,255,255,0.05);
    color: var(--text2);
    border: 1px solid var(--border);
}
.secondary-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }

/* ========== RESULTS AREA ========== */
.results-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ========== KPI GRID ========== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.kpi-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--panel);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.kpi-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}
.kpi-primary {
    grid-column: span 3;
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(59,130,246,0.1));
    border-color: rgba(139,92,246,0.3);
}
.kpi-green { border-color: rgba(16,185,129,0.25); }
.kpi-orange { border-color: rgba(245,158,11,0.25); }
.kpi-blue { border-color: rgba(59,130,246,0.25); }

.kpi-icon { font-size: 2rem; flex-shrink: 0; }
.kpi-primary .kpi-icon { font-size: 2.5rem; }
.kpi-content { display: flex; flex-direction: column; gap: 0.2rem; }
.kpi-label { font-size: 0.78rem; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    transition: all 0.3s;
}
.kpi-primary .kpi-value {
    font-size: 2.2rem;
    background: var(--grad-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.kpi-green .kpi-value { color: var(--green-light); }
.kpi-orange .kpi-value { color: var(--orange); }
.kpi-blue .kpi-value { color: var(--blue-light); }
.kpi-sub { font-size: 0.75rem; color: var(--text3); }

/* ========== RESULTS TABS ========== */
.results-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.4rem;
    backdrop-filter: var(--glass-blur);
}
.rtab-btn {
    flex: 1;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text2);
    background: transparent;
    border: none;
    padding: 0.6rem 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.rtab-btn.active {
    background: var(--grad-purple);
    color: white;
    box-shadow: 0 2px 10px rgba(139,92,246,0.4);
}
.rtab-btn:hover:not(.active) { background: rgba(255,255,255,0.06); color: var(--text); }

.rtab-content { display: none; }
.rtab-content.active { display: block; animation: fade-in 0.3s ease; }

/* ========== SECTION CARDS ========== */
.section-card {
    background: var(--panel);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    transition: all 0.3s;
}
.section-card:last-child { margin-bottom: 0; }
.section-card:hover { border-color: var(--border-glow); }
.section-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.6rem;
}
.section-hint { font-size: 0.82rem; color: var(--text3); margin: -0.5rem 0 1rem; }

/* BREAKDOWN LAYOUT */
.breakdown-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.breakdown-left, .breakdown-right { display: flex; flex-direction: column; gap: 1rem; }

/* COST ROWS */
.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.88rem;
}
.cost-row:last-child { border-bottom: none; }
.cost-row span { color: var(--text2); }
.cost-row strong { color: var(--text); font-weight: 600; }
.total-row {
    background: rgba(255,255,255,0.03);
    margin: 0.5rem -0.25rem 0;
    padding: 0.6rem 0.25rem;
    border-radius: 8px;
    border-bottom: none !important;
}
.total-row span { color: var(--text); font-weight: 700; }
.total-row strong { color: var(--purple-light); font-size: 1rem; }
.highlight-row {
    background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(59,130,246,0.1));
    border: 1px solid rgba(139,92,246,0.2) !important;
}
.highlight-row strong { font-size: 1.1rem; background: var(--grad-purple); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* CHART */
.chart-card { display: flex; flex-direction: column; gap: 1rem; }
.chart-wrapper { position: relative; height: 200px; }
.bar-chart-wrapper { height: 280px; }
.line-chart-wrapper { height: 320px; }
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text2);
}
.legend-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* COMPARISON TABLE */
.table-wrapper { overflow-x: auto; }
.compare-table, .projection-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.compare-table th, .projection-table th {
    text-align: left;
    padding: 0.6rem 0.8rem;
    background: rgba(0,0,0,0.2);
    color: var(--text2);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.compare-table td, .projection-table td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    white-space: nowrap;
}
.compare-table tr:hover td, .projection-table tr:hover td {
    background: rgba(255,255,255,0.03);
}
.compare-table .best-row td { background: rgba(16,185,129,0.06); }
.provider-name { font-weight: 600; }
.badge-best { background: rgba(16,185,129,0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.3); border-radius: 100px; padding: 0.15rem 0.5rem; font-size: 0.7rem; font-weight: 700; margin-left: 0.4rem; }

/* ========== FULL REPORT ========== */
.full-report {
    background: rgba(0,0,0,0.15);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--border);
}
.report-header-branded {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-glow);
}
.report-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--grad-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}
.report-header-branded h2 { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.report-date { font-size: 0.8rem; color: var(--text3); }
.report-section { margin-bottom: 2rem; }
.report-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--purple-light); }
.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.report-summary-item {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border);
}
.report-summary-item .label { font-size: 0.75rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }
.report-summary-item .value { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-top: 0.3rem; }
.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.report-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    background: rgba(139,92,246,0.1);
    color: var(--purple-light);
    font-weight: 700;
    font-size: 0.75rem;
}
.report-table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text2);
}
.report-table .total-tr td { font-weight: 700; color: var(--text); background: rgba(255,255,255,0.03); }
.report-footer-branded {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--text3);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* ========== ANIMATIONS ========== */
@keyframes slide-down { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes slide-up   { from { opacity:0; transform:translateY(20px);  } to { opacity:1; transform:translateY(0); } }
@keyframes fade-in    { from { opacity:0; }                              to { opacity:1; } }

/* number change flash */
@keyframes value-flash {
    0%   { filter: brightness(1); }
    50%  { filter: brightness(1.5); }
    100% { filter: brightness(1); }
}
.value-updated { animation: value-flash 0.4s ease; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-glow); border-radius: 100px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
    .main-layout { grid-template-columns: 1fr; }
    .config-panel { position: static; max-height: none; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .kpi-primary { grid-column: span 2; }
    .breakdown-layout { grid-template-columns: 1fr; }
    .tab-nav { grid-template-columns: repeat(2, 1fr); }
    .results-tabs { flex-wrap: wrap; }
}
@media (max-width: 600px) {
    .app-container { padding: 1rem; }
    .app-title { font-size: 1.6rem; }
    .kpi-grid { grid-template-columns: 1fr; }
    .kpi-primary { grid-column: span 1; }
    .report-summary-grid { grid-template-columns: 1fr 1fr; }
}
