/* ===================================================
   SCENARIO MODERN CSS - Shared Components
   IusMedical Business Plan 2026-2030

   Uso: aggiungi classe scenario-X-page al <main>
   Es: <main class="main-content scenario-a-page">
   ================================================== */

/* ===================================================
   SCENARIO COLOR THEMES
   ================================================== */
:root {
    /* Scenario A - Amber (Minimo) */
    --scenario-a-primary: #f59e0b;
    --scenario-a-primary-light: #fbbf24;
    --scenario-a-primary-dark: #d97706;
    --scenario-a-accent: #fcd34d;
    --scenario-a-gradient-start: #1b3a50;
    --scenario-a-gradient-end: #f59e0b;

    /* Scenario B - Teal (Base/Raccomandato) */
    --scenario-b-primary: #0d9488;
    --scenario-b-primary-light: #14b8a6;
    --scenario-b-primary-dark: #0f766e;
    --scenario-b-accent: #7DD3C0;
    --scenario-b-gradient-start: #1b3a50;
    --scenario-b-gradient-end: #0d9488;

    /* Scenario C - Indigo (Stress Test) */
    --scenario-c-primary: #6366f1;
    --scenario-c-primary-light: #818cf8;
    --scenario-c-primary-dark: #4f46e5;
    --scenario-c-accent: #a5b4fc;
    --scenario-c-gradient-start: #1b3a50;
    --scenario-c-gradient-end: #6366f1;

    /* Bootstrap - Red (No VC) */
    --bootstrap-primary: #dc2626;
    --bootstrap-primary-light: #ef4444;
    --bootstrap-primary-dark: #b91c1c;
    --bootstrap-accent: #fca5a5;
    --bootstrap-gradient-start: #1b3a50;
    --bootstrap-gradient-end: #dc2626;

    /* Bootstrap 60k - Orange */
    --bootstrap60k-primary: #ea580c;
    --bootstrap60k-primary-light: #f97316;
    --bootstrap60k-primary-dark: #c2410c;
    --bootstrap60k-accent: #fdba74;
    --bootstrap60k-gradient-start: #1b3a50;
    --bootstrap60k-gradient-end: #ea580c;

    /* Shared: Narrative bias colors */
    --positive-strong: #059669;
    --positive-light: #d1fae5;
    --negative-muted: #9ca3af;
    --negative-subtle: #f3f4f6;
    --warning-color: #f59e0b;

    /* Base typography and UI */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;

    /* IusMedical brand colors */
    --primary-dark: #1b3a50;
    --primary-medium: #4A7C8C;
    --primary-light: #7DD3C0;
}

/* Scenario Class Modifiers - All unified to Scenario B (Teal) colors */
.scenario-a-page,
.scenario-b-page,
.scenario-c-page,
.bootstrap-page,
.bootstrap60k-page,
.index-page,
.confronto-page,
.simulatore-page,
.bp-page {
    --current-primary: var(--scenario-b-primary);
    --current-primary-light: var(--scenario-b-primary-light);
    --current-primary-dark: var(--scenario-b-primary-dark);
    --current-accent: var(--scenario-b-accent);
    --current-gradient-start: var(--scenario-b-gradient-start);
    --current-gradient-end: var(--scenario-b-gradient-end);
}

/* ===================================================
   BASE PAGE STYLING
   ================================================== */
.scenario-a-page,
.scenario-b-page,
.scenario-c-page,
.bootstrap-page,
.bootstrap60k-page,
.index-page,
.confronto-page,
.simulatore-page,
.bp-page {
    padding: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

/* ===================================================
   HERO BANNER
   ================================================== */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, var(--current-gradient-start) 0%, var(--current-gradient-end) 100%);
    padding: 48px 40px 56px;
    margin: 0;
    overflow: hidden;
    /* Estende l'hero fino ai bordi del contenitore */
    margin-left: -30px;
    margin-right: -30px;
    margin-top: -30px;
    width: calc(100% + 60px);
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-badge-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-badge svg {
    width: 18px;
    height: 18px;
}

.hero-badge.recommended {
    background: rgba(125, 211, 192, 0.25);
    color: #7DD3C0;
    border: 1px solid rgba(125, 211, 192, 0.4);
}

.hero-badge.equity {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge.bootstrap-badge {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.hero-badge.stress {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.hero-badge.minimo {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--current-accent, #7DD3C0);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 36px;
}

/* Hero KPI Strip */
.hero-kpi-strip {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 20px;
    background: transparent;
    border-radius: 16px;
    padding: 0;
}

.hero-kpi {
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-kpi-featured {
    text-align: left;
    background: rgba(255, 255, 255, 0.18);
    padding: 28px 24px;
}

.hero-kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

/* NARRATIVE BIAS: Featured KPI larger */
.hero-kpi-featured .hero-kpi-value {
    font-size: 2.75rem;
    color: var(--current-accent);
}

.hero-kpi-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 500;
}

.hero-kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 12px;
}

.hero-kpi-trend svg {
    width: 14px;
    height: 14px;
}

.hero-kpi-trend.positive {
    background: rgba(125, 211, 192, 0.25);
    color: #7DD3C0;
}

.hero-kpi-trend.neutral {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.hero-kpi-trend.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

/* ===================================================
   EXECUTIVE SUMMARY CARDS
   ================================================== */
.exec-summary {
    padding: 0 30px;
    margin-top: -28px;
    position: relative;
    z-index: 2;
}

.exec-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .exec-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .exec-summary-grid {
        grid-template-columns: 1fr;
    }
}

.exec-card {
    background: white;
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-width: 0;
}

.exec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.exec-card.highlight {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: rgba(5, 150, 105, 0.2);
}

.exec-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(var(--current-primary), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.exec-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--current-primary);
}

.exec-card-icon.success {
    background: rgba(5, 150, 105, 0.15);
}

.exec-card-icon.success svg {
    stroke: #059669;
}

.exec-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exec-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.exec-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===================================================
   KPI GRID SECTION
   ================================================== */
.kpi-grid-section {
    padding: 24px 30px 0;
    max-width: 1400px;
    margin: 0 auto;
}

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

@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

.kpi-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.kpi-card.highlight {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-color: rgba(13, 148, 136, 0.2);
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--current-primary, #0d9488);
}

.kpi-icon.warning {
    background: rgba(245, 158, 11, 0.1);
}

.kpi-icon.warning svg {
    stroke: #f59e0b;
}

.kpi-icon.positive {
    background: rgba(5, 150, 105, 0.1);
}

.kpi-icon.positive svg {
    stroke: #059669;
}

.kpi-content {
    flex: 1;
    min-width: 0;
}

.kpi-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 500;
}

.kpi-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.kpi-value.positive {
    color: #059669;
}

.kpi-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===================================================
   EXECUTIVE SUMMARY CARDS
   ================================================== */
.executive-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 30px 24px;
    max-width: 1400px;
    margin: 0 auto;
    /* Overlap con hero come negli scenari */
    margin-top: -28px;
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .executive-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .executive-summary {
        grid-template-columns: 1fr;
    }
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--border-light);
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.summary-card.summary-primary {
    border-left-color: var(--current-primary, #0d9488);
}

.summary-card.summary-success {
    border-left-color: #059669;
}

.summary-card.summary-info {
    border-left-color: #0284c7;
}

.summary-card.summary-warning {
    border-left-color: #f59e0b;
}

.summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--current-primary, #0d9488);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-card.summary-success .summary-icon {
    background: #059669;
}

.summary-card.summary-info .summary-icon {
    background: #0284c7;
}

.summary-card.summary-warning .summary-icon {
    background: #f59e0b;
}

.summary-icon svg {
    width: 20px;
    height: 20px;
}

.summary-content {
    flex: 1;
    min-width: 0;
}

.summary-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.summary-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===================================================
   QUICK NAVIGATION
   ================================================== */
.quick-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 30px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .quick-nav {
        padding: 16px 20px 24px;
        gap: 6px;
    }
}

.quick-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 24px;
    background: white;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .quick-nav-item {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

.quick-nav-item:hover {
    background: var(--current-primary);
    color: white;
    border-color: var(--current-primary);
    transform: translateY(-2px);
}

.quick-nav-item.active {
    background: var(--current-primary, #0d9488);
    color: white;
    border-color: var(--current-primary, #0d9488);
}

.quick-nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-nav-icon svg {
    width: 18px;
    height: 18px;
}

/* ===================================================
   SECTION STYLING
   ================================================== */
.dashboard-section {
    padding: 40px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.section-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--current-primary);
    opacity: 0.3;
    line-height: 1;
}

.section-title-group {
    flex: 1;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
}

.section-header-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-header-title h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 8px;
}

/* Section Card */
.section-card {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

/* Expandable Details */
.expandable-details {
    border: none;
}

.expandable-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--current-primary, #0d9488);
    font-size: 0.9rem;
    padding: 8px 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.expandable-details summary::before {
    content: '▶';
    font-size: 0.7rem;
    transition: transform 0.2s;
}

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

.details-content {
    padding: 16px 0 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.details-content p {
    margin-bottom: 12px;
}

.details-content p:last-child {
    margin-bottom: 0;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Chart Container Modern */
.chart-container-modern {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

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

.chart-title-bar h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-badge {
    font-size: 0.7rem;
    background: var(--current-primary, #0d9488);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.chart-legend-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    justify-content: center;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 1px solid #99f6e4;
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
}

.cta-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.cta-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0d9488;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-icon svg {
    width: 24px;
    height: 24px;
}

.cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f766e;
}

.cta-subtitle {
    font-size: 0.95rem;
    color: #134e4a;
}

.cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cta-link.primary {
    background: #0d9488;
    color: white;
}

.cta-link.secondary {
    background: white;
    color: #0f766e;
    border: 1px solid #99f6e4;
}

.cta-link svg {
    width: 16px;
    height: 16px;
}

/* Insight Banner */
.insight-banner {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 1px solid #99f6e4;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.insight-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0d9488;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.insight-banner-icon svg {
    width: 22px;
    height: 22px;
}

.insight-banner-content {
    flex: 1;
}

.insight-banner-title {
    font-weight: 600;
    color: #0f766e;
    margin-bottom: 4px;
}

.insight-banner-text {
    font-size: 0.9rem;
    color: #134e4a;
}

/* Comparison Table Container */
.comparison-table-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 24px 0;
    overflow-x: auto;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    background: white;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}

.comparison-table th:first-child {
    text-align: left;
    min-width: 180px;
}

.comparison-table td {
    padding: 10px 16px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.comparison-table td:first-child {
    text-align: left;
    color: #64748b;
}

.comparison-table .section-header td {
    background: #f1f5f9 !important;
    font-weight: 600;
    padding: 12px 16px !important;
    color: #334155;
    text-align: left;
}

.comparison-table .highlight-col {
    background: #f0fdfa;
}

/* Positive/Negative Colors */
.positive {
    color: #059669 !important;
}

.negative {
    color: #dc2626 !important;
}

/* ===================================================
   METRIC HIGHLIGHTS
   ================================================== */
.metric-highlights {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.metric-highlight {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.metric-highlight.featured {
    background: linear-gradient(135deg, var(--current-primary) 0%, var(--current-primary-dark) 100%);
    color: white;
}

.metric-highlight.featured .metric-highlight-label {
    color: rgba(255, 255, 255, 0.8);
}

.metric-highlight.featured .metric-highlight-value {
    color: white;
}

.metric-highlight.featured .metric-highlight-context {
    color: rgba(255, 255, 255, 0.7);
}

.metric-highlight-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-highlight-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.metric-highlight-value.large {
    font-size: 2.75rem;
}

.metric-highlight-context {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.metric-sparkline {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 50px;
    opacity: 0.3;
}

/* ===================================================
   CHART CARDS
   ================================================== */
.charts-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.chart-card.premium {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(var(--current-primary), 0.1);
}

.chart-card.wide {
    grid-column: 1 / -1;
}

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

.chart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
}

.chart-title svg {
    width: 20px;
    height: 20px;
    stroke: var(--current-primary);
}

.chart-badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(var(--current-primary), 0.1);
    color: var(--current-primary);
}

.chart-badge-group {
    display: flex;
    gap: 8px;
}

.chart-badge.best {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.chart-badge.base {
    background: rgba(var(--current-primary), 0.1);
    color: var(--current-primary);
}

.chart-badge.worst {
    background: rgba(156, 163, 175, 0.15);
    color: #6b7280;
}

.chart-controls {
    display: flex;
    gap: 4px;
}

.chart-control-btn {
    padding: 6px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-control-btn:hover {
    border-color: var(--current-primary);
    color: var(--current-primary);
}

.chart-control-btn.active {
    background: var(--current-primary);
    color: white;
    border-color: var(--current-primary);
}

.chart-year-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-primary);
    background: white;
    cursor: pointer;
}

/* ===================================================
   ECONOMICS GRID
   ================================================== */
.economics-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.econ-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.econ-card.ltv-cac {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

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

.econ-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.econ-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.econ-badge.excellent {
    background: rgba(5, 150, 105, 0.15);
    color: #059669;
}

.econ-badge.good {
    background: rgba(var(--current-primary), 0.1);
    color: var(--current-primary);
}

.econ-value-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.econ-segment {
    text-align: center;
}

.econ-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}

.econ-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.econ-value.large {
    font-size: 2.5rem;
    color: #059669;
}

.econ-sublabel {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.econ-context {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.econ-breakdown {
    margin-top: 12px;
}

.econ-breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}

.econ-breakdown-item:last-child {
    border-bottom: none;
}

.econ-breakdown-item .value {
    font-weight: 600;
}

.econ-breakdown-item .value.positive {
    color: #059669;
}

.econ-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.econ-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.econ-bar-label {
    width: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.econ-bar {
    flex: 1;
    height: 28px;
    background: linear-gradient(90deg, var(--current-primary) 0%, var(--current-primary-light) 100%);
    border-radius: 6px;
    width: calc(var(--width) * 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    transition: width 0.6s ease;
}

.econ-bar.secondary {
    background: linear-gradient(90deg, #94a3b8 0%, #cbd5e1 100%);
}

.econ-bar-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

/* Payback Visual */
.payback-visual {
    padding: 24px 0;
}

.payback-timeline {
    display: flex;
    align-items: stretch;
    height: 100px;
    margin-bottom: 16px;
}

.payback-segment {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px 24px;
    position: relative;
}

.payback-segment.acquisition {
    width: 20%;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 12px 0 0 12px;
}

.payback-segment.recovery {
    flex: 1;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.payback-segment.profit {
    width: 30%;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 0 12px 12px 0;
}

.payback-segment-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.payback-segment-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.payback-segment.profit .payback-segment-value {
    font-size: 1.3rem;
    color: #059669;
}

.payback-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===================================================
   CASH FLOW STATUS CARDS
   ================================================== */
.cashflow-status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.cf-status-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cf-status-card.positive {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.cf-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--current-primary), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cf-status-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--current-primary);
}

.cf-status-card.positive .cf-status-icon {
    background: rgba(5, 150, 105, 0.15);
}

.cf-status-card.positive .cf-status-icon svg {
    stroke: #059669;
}

.cf-status-icon.warning {
    background: rgba(245, 158, 11, 0.1);
}

.cf-status-icon.warning svg {
    stroke: #f59e0b;
}

.cf-status-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.cf-status-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.cf-status-card.positive .cf-status-value {
    font-size: 1.75rem;
    color: #059669;
}

.cf-status-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Break-even Card */
.break-even-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-top: 24px;
}

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

.be-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.be-date {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--current-primary) 0%, var(--current-primary-dark) 100%);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.be-visual {
    margin-bottom: 28px;
}

.be-progress-track {
    height: 32px;
    background: #f1f5f9;
    border-radius: 16px;
    position: relative;
    margin-bottom: 12px;
    overflow: visible;
}

.be-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--current-primary) 0%, var(--current-accent) 100%);
    border-radius: 16px;
    width: var(--progress);
    transition: width 1s ease;
}

.be-milestone {
    position: absolute;
    top: 50%;
    left: var(--position);
    transform: translate(-50%, -50%);
}

.be-milestone-dot {
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--current-primary);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(var(--current-primary), 0.3);
}

.be-milestone-label {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--current-primary);
    white-space: nowrap;
}

.be-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.be-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

.be-stat {
    text-align: center;
}

.be-stat.featured {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 12px;
    padding: 16px;
    margin: -16px 0;
}

.be-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.be-stat.featured .be-stat-value {
    color: #059669;
}

.be-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* EBITDA Summary */
.ebitda-summary {
    display: flex;
    justify-content: space-around;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.ebitda-item {
    text-align: center;
}

.ebitda-item.featured {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    padding: 16px 24px;
    border-radius: 12px;
}

.ebitda-year {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.ebitda-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.ebitda-value.positive {
    color: #059669;
}

.ebitda-value.negative {
    font-size: 1rem;
    color: #9ca3af;
}

.ebitda-item.featured .ebitda-value {
    font-size: 1.75rem;
}

/* ===================================================
   SENSITIVITY SIMULATOR
   ================================================== */
.sensitivity-simulator {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

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

.sim-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.sim-reset-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sim-reset-btn:hover {
    border-color: var(--current-primary);
    color: var(--current-primary);
}

.sim-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 28px;
}

.sim-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sim-control-header label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.sim-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--current-primary);
}

.sim-control input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    appearance: none;
    cursor: pointer;
}

.sim-control input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--current-primary);
    cursor: grab;
    box-shadow: 0 2px 6px rgba(var(--current-primary), 0.3);
}

.sim-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sim-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.sim-result {
    text-align: center;
}

.sim-result-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.sim-result-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Fan Chart Stats */
.fan-chart-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

.fan-stat {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
}

.fan-stat.best {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.fan-stat.base {
    background: rgba(var(--current-primary), 0.08);
}

.fan-stat.worst {
    background: #f8fafc;
}

.fan-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.fan-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.fan-stat.best .fan-stat-value {
    font-size: 1.75rem;
    color: #059669;
}

.fan-stat.base .fan-stat-value {
    color: var(--current-primary);
}

.fan-stat.worst .fan-stat-value {
    font-size: 1.25rem;
    color: #6b7280;
}

.fan-stat-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Tornado Insight */
.tornado-insight {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 20px;
    background: #f0fdfa;
    border-radius: 12px;
    margin-top: 20px;
    border-left: 4px solid var(--current-primary);
}

.tornado-insight svg {
    width: 20px;
    height: 20px;
    stroke: var(--current-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.tornado-insight p {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
}

/* ===================================================
   DATA TABLES
   ================================================== */
.data-table-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

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

.table-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.table-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.table-action-btn:hover {
    border-color: var(--current-primary);
    color: var(--current-primary);
}

.table-action-btn svg {
    width: 16px;
    height: 16px;
}

.table-wrapper {
    overflow-x: auto;
}

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

.data-table th {
    background: #f8fafc;
    padding: 14px 16px;
    text-align: right;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 2px solid #e2e8f0;
}

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

.data-table td {
    padding: 14px 16px;
    text-align: right;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}

.data-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.data-table tr:hover td {
    background: rgba(var(--current-primary), 0.03);
}

.data-table .positive {
    color: #059669;
    font-weight: 600;
}

.data-table .negative {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Milestones Timeline */
.milestones-timeline {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.timeline-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
}

.timeline-item {
    flex: 0 0 200px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    border-left: 4px solid var(--current-primary);
}

.timeline-item.success {
    border-left-color: #059669;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.timeline-milestone {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.timeline-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Founder Compensation */
.founder-comp-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.founder-comp-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.founder-comp-visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.founder-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.founder-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--current-primary) 0%, var(--current-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}

.founder-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.founder-comp-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Founder Tax Breakdown */
.founder-tax-breakdown {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.tax-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

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

.tax-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.tax-value.negative {
    color: #dc2626;
    font-size: 0.95rem;
}

.tax-row.highlight-negative {
    background: rgba(220, 38, 38, 0.05);
    margin: 0 -20px;
    padding: 12px 20px;
    border-radius: 8px;
}

.tax-row.total {
    background: linear-gradient(135deg, var(--current-primary) 0%, var(--current-primary-dark) 100%);
    margin: 12px -20px 0;
    padding: 16px 20px;
    border-radius: 0 0 12px 12px;
}

.tax-row.total .tax-label,
.tax-row.total .tax-value {
    color: white;
    font-weight: 600;
}

.tax-row.total .tax-value {
    font-size: 1.15rem;
}

.tax-row.annual {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 2px solid #e2e8f0;
    border-bottom: none;
}

.tax-row.annual .tax-value {
    color: var(--current-primary);
    font-size: 1.1rem;
}

/* Fiscal Card */
.fiscal-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-top: 24px;
}

.fiscal-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.fiscal-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    margin-top: 24px;
}

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

.fiscal-rate-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.fiscal-rate-item:hover {
    border-color: var(--current-primary);
    background: #f0fdfa;
}

.fiscal-rate-item.highlight {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: rgba(220, 38, 38, 0.2);
}

.fiscal-rate-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.fiscal-rate-item.highlight .fiscal-rate-value {
    color: #dc2626;
}

.fiscal-rate-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--current-primary);
    margin-bottom: 4px;
}

.fiscal-rate-item.highlight .fiscal-rate-label {
    color: #b91c1c;
}

.fiscal-rate-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Fiscal Benefits */
.fiscal-benefits {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 12px;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.fiscal-benefits h4 {
    color: #059669;
    margin-top: 0;
    margin-bottom: 16px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.benefit-item svg {
    width: 18px;
    height: 18px;
    stroke: #059669;
    flex-shrink: 0;
}

.benefit-item.positive {
    color: #065f46;
}

/* Fiscal Projection Table */
.fiscal-projection {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.fiscal-projection h4 {
    margin-top: 0;
}

.fiscal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.fiscal-table th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: right;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.fiscal-table td {
    padding: 14px 16px;
    text-align: right;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}

.fiscal-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.fiscal-table tr:hover td {
    background: rgba(var(--current-primary), 0.03);
}

.fiscal-table .negative {
    color: #9ca3af;
    font-style: italic;
}

.fiscal-table .tax-zero {
    color: #059669;
    font-weight: 500;
}

.fiscal-table .tax-amount {
    color: #dc2626;
}

.fiscal-table .total-tax {
    font-weight: 600;
    color: #b91c1c;
}

/* ===================================================
   COMPARISON MATRIX
   ================================================== */
.comparison-matrix {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.comparison-header {
    display: grid;
    grid-template-columns: 180px repeat(3, 1fr);
    background: #f8fafc;
}

.comparison-col {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.comparison-col.featured {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
}

.comparison-row {
    display: grid;
    grid-template-columns: 180px repeat(3, 1fr);
    border-bottom: 1px solid #f1f5f9;
}

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

.comparison-label {
    padding: 16px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: #fafafa;
}

.comparison-value {
    padding: 16px 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.comparison-value.featured {
    background: rgba(236, 253, 245, 0.5);
    font-weight: 600;
}

.comparison-value.good {
    color: #059669;
}

.comparison-value.warning {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Recommendation Card */
.recommendation-card {
    background: linear-gradient(135deg, var(--current-gradient-start) 0%, var(--current-gradient-end) 100%);
    border-radius: 16px;
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.rec-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.recommendation-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
}

.rec-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.rec-point {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.rec-point svg {
    width: 20px;
    height: 20px;
    stroke: var(--current-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.rec-point span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.rec-cta {
    display: flex;
    gap: 16px;
}

.rec-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rec-btn.primary {
    background: white;
    color: var(--current-primary);
}

.rec-btn.primary:hover {
    background: #f0fdfa;
    transform: translateY(-2px);
}

.rec-btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.rec-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ===================================================
   FOOTER
   ================================================== */
.scenario-footer {
    text-align: center;
    padding: 40px 30px;
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.scenario-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-note {
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
}

/* ===================================================
   RESPONSIVE
   ================================================== */
@media (max-width: 1200px) {
    .hero-kpi-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-kpi-featured {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 24px;
        margin-bottom: 8px;
    }

    .metric-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .economics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cashflow-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .rec-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 32px 20px 40px;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-kpi-strip {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .exec-summary {
        padding: 0 20px;
    }

    .quick-nav {
        flex-wrap: wrap;
    }

    .metric-highlights {
        grid-template-columns: 1fr;
    }

    .dashboard-section {
        padding: 24px 20px;
    }

    .charts-grid-2 {
        grid-template-columns: 1fr;
    }

    .sim-controls {
        grid-template-columns: 1fr;
    }

    .fan-chart-stats {
        grid-template-columns: 1fr;
    }

    .comparison-matrix {
        overflow-x: auto;
    }

    .comparison-header,
    .comparison-row {
        min-width: 600px;
    }

    .rec-cta {
        flex-direction: column;
    }

    .founder-comp-visual {
        grid-template-columns: 1fr;
    }

    .fiscal-rates {
        grid-template-columns: 1fr;
    }
}
