/* ===== Report Page Styles - Professional Dark Blue/Gray ===== */

:root {
    --report-primary: #1e3a5f;      /* Dark blue */
    --report-secondary: #2d5a87;    /* Medium blue */
    --report-accent: #3b82f6;       /* Bright blue for accents */
    --report-dark: #0f172a;         /* Near black */
    --report-gray-900: #1e293b;
    --report-gray-700: #334155;
    --report-gray-500: #64748b;
    --report-gray-300: #cbd5e1;
    --report-gray-100: #f1f5f9;
    --report-white: #ffffff;
    --report-good: #059669;         /* Green */
    --report-warning: #d97706;      /* Amber */
    --report-danger: #dc2626;       /* Red */
}

.report-main {
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 60px;
    background: var(--report-gray-100);
}

.report-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */

.nav-report {
    background: var(--report-dark);
    border-bottom: 1px solid var(--report-gray-700);
}

.nav-report .logo-plain,
.nav-report .logo-finance {
    color: var(--report-white);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.nav-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background: #1da851;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 100;
    margin-top: 4px;
    overflow: hidden;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--report-dark);
    cursor: pointer;
}

.dropdown-menu button:hover {
    background: var(--report-gray-100);
}

/* ===== Report Header ===== */

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 2px solid var(--report-gray-300);
    margin-bottom: 20px;
}

.report-meta h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--report-dark);
    margin-bottom: 4px;
}

.report-period {
    color: var(--report-gray-500);
    font-size: 16px;
}

.report-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--report-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--report-white);
    font-weight: 500;
}

.badge-icon {
    font-size: 18px;
}

/* ===== Health Strip (Traffic Light) ===== */

.health-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 16px;
    gap: 20px;
}

.health-strip.safe {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
}

.health-strip.tight {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
}

.health-strip.danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
}

.health-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
}

.health-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.health-strip.safe .health-icon {
    background: #10b981;
    color: white;
}

.health-strip.tight .health-icon {
    background: #f59e0b;
    color: white;
}

.health-strip.danger .health-icon {
    background: #ef4444;
    color: white;
}

.health-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.health-status {
    font-size: 18px;
    font-weight: 700;
}

.health-strip.safe .health-status {
    color: #059669;
}

.health-strip.tight .health-status {
    color: #d97706;
}

.health-strip.danger .health-status {
    color: #dc2626;
}

.health-reason {
    font-size: 14px;
    color: var(--report-gray-600);
}

.health-metrics {
    display: flex;
    gap: 32px;
}

.health-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.health-metric-label {
    font-size: 12px;
    color: var(--report-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.health-metric-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--report-dark);
}

@media (max-width: 768px) {
    .health-strip {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .health-indicator {
        flex-direction: column;
    }

    .health-metrics {
        width: 100%;
        justify-content: space-around;
    }

    .health-metric {
        align-items: center;
    }
}

/* ===== Owner Summary Box (WhatsApp-ready) ===== */

.owner-summary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
    color: white;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.copy-summary-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-summary-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.copy-summary-btn svg {
    stroke: white;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.summary-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.summary-icon.good {
    color: #4ade80;
}

.summary-icon.warning {
    color: #fbbf24;
}

.summary-icon.danger {
    color: #f87171;
}

.summary-text {
    flex: 1;
}

/* Story of the Month */
.story-of-month {
    background: var(--report-gray-900);
    border-left: 4px solid var(--report-accent);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 12px;
}

.story-of-month p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--report-gray-300);
    font-style: italic;
}

/* Wins Celebration */
.wins-celebration {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 12px;
}

.wins-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #047857;
    margin-bottom: 10px;
}

.wins-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.win-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #065f46;
}

.win-badge::before {
    content: "\\2713";
    font-weight: 700;
    color: #10b981;
}

@media (max-width: 640px) {
    .owner-summary {
        padding: 16px 20px;
    }

    .summary-line {
        font-size: 14px;
    }
}

/* ===== Report Sections ===== */

.report-section {
    background: var(--report-white);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s ease;
}

.report-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.report-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--report-dark);
    margin-bottom: 6px;
}

.section-subtitle {
    color: var(--report-gray-500);
    font-size: 13px;
    margin-bottom: 20px;
}

/* ===== Hero Section (Did You Make a Profit?) ===== */

.hero-section {
    background: linear-gradient(135deg, var(--report-primary) 0%, var(--report-secondary) 100%);
    color: var(--report-white);
    text-align: center;
    padding: 40px 28px;
}

/* Compact hero for tighter layout */
.hero-section.hero-compact {
    padding: 16px 20px;
}

.hero-section.hero-compact h2 {
    font-size: 16px;
    margin-bottom: 8px;
}

.hero-section.hero-compact .hero-answer {
    margin-bottom: 12px;
}

.hero-section.hero-compact .hero-status {
    padding: 6px 14px;
    font-size: 13px;
    margin-bottom: 10px;
}

.hero-section.hero-compact .hero-amount {
    margin-bottom: 8px;
}

.hero-section.hero-compact .hero-amount .amount {
    font-size: 32px;
}

.hero-section.hero-compact .hero-amount .currency {
    font-size: 16px;
}

.hero-section.hero-compact .hero-explanation {
    font-size: 13px;
    margin-bottom: 0;
    line-height: 1.4;
}

.hero-section.hero-compact .why-matters {
    display: none; /* Hide the why-matters box in compact mode */
}

.hero-section h2 {
    color: var(--report-white);
    font-size: 22px;
    margin-bottom: 20px;
}

.hero-answer {
    margin-bottom: 24px;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-status.good {
    background: rgba(5, 150, 105, 0.2);
    color: #6ee7b7;
}

.hero-status.warning {
    background: rgba(217, 119, 6, 0.2);
    color: #fcd34d;
}

.hero-status.danger {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

.status-icon {
    font-size: 18px;
}

.hero-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.hero-amount .currency {
    font-size: 24px;
    opacity: 0.8;
}

.hero-amount .amount {
    font-size: 52px;
    font-weight: 700;
}

.hero-explanation {
    font-size: 16px;
    opacity: 0.9;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.benchmark-note {
    font-size: 13px;
    opacity: 0.75;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.benchmark-note:empty {
    display: none;
}

.hero-section .why-matters {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.hero-section .why-matters strong {
    color: var(--report-white);
}

/* ===== Why This Matters Box ===== */

.why-matters {
    background: var(--report-gray-100);
    border: 1px solid var(--report-gray-300);
    border-left: 4px solid var(--report-secondary);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--report-gray-700);
    line-height: 1.5;
    margin-top: 16px;
}

.why-matters strong {
    color: var(--report-dark);
}

/* ===== 5 Key Metrics ===== */

.key-metrics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* Margin Gap Alert */
.margin-gap-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 10px;
}

.margin-gap-alert .alert-icon {
    flex-shrink: 0;
    color: #b45309;
}

.margin-gap-alert p {
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
    margin: 0;
}

.key-metric {
    background: var(--report-gray-100);
    border-radius: 8px;
    padding: 14px;
    border: 1px solid #e2e8f0;
}

.metric-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--report-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.metric-header .tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--report-gray-400);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    cursor: help;
    margin-left: auto;
    position: relative;
}

.metric-header .tooltip:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--report-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    white-space: normal;
    width: 220px;
    text-align: left;
    z-index: 100;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.metric-header .tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--report-dark);
    margin-bottom: -4px;
    z-index: 101;
}

.metric-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.metric-status.good {
    background: var(--report-good);
}

.metric-status.warning {
    background: var(--report-warning);
}

.metric-status.danger {
    background: var(--report-danger);
}

.metric-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--report-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--report-dark);
    margin-bottom: 4px;
}

.metric-change {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
}

.metric-change.positive {
    color: var(--report-good);
}

.metric-change.negative {
    color: var(--report-danger);
}

.metric-change.neutral {
    color: var(--report-gray-500);
}

.metric-why {
    font-size: 11px;
    color: var(--report-gray-500);
    line-height: 1.4;
}

/* ===== Comparison Chart ===== */

.chart-container {
    background: var(--report-gray-100);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--report-gray-300);
}

/* ===== Cash Flow Story ===== */

.cash-flow-story {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--report-gray-100);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    min-width: 140px;
}

.flow-label-top {
    font-size: 11px;
    color: var(--report-gray-500);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flow-days {
    font-size: 28px;
    font-weight: 700;
    color: var(--report-dark);
}

.flow-arrow {
    font-size: 14px;
    color: var(--report-gray-500);
    font-weight: 500;
    text-transform: uppercase;
}

.cash-cycle-result {
    margin-bottom: 20px;
}

.cycle-summary {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 10px;
}

.cycle-summary.good {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.cycle-summary.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.cycle-summary.danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.cycle-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--report-dark);
    white-space: nowrap;
}

.cycle-text strong {
    display: block;
    color: var(--report-dark);
    margin-bottom: 4px;
    font-size: 14px;
}

.cycle-text p {
    color: var(--report-gray-700);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* ===== Actions Section ===== */

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

.action-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--report-gray-300);
}

.action-item.priority-1 {
    background: #fef2f2;
    border-color: #fecaca;
}

.action-item.priority-2 {
    background: #fffbeb;
    border-color: #fde68a;
}

.action-item.priority-3 {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.action-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.priority-1 .action-number {
    background: var(--report-danger);
    color: white;
}

.priority-2 .action-number {
    background: var(--report-warning);
    color: white;
}

.priority-3 .action-number {
    background: var(--report-good);
    color: white;
}

/* Main action highlight */
.action-item.main-action {
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* Cash impact badge */
.cash-impact-badge {
    display: inline-block;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 10px;
    vertical-align: middle;
}

/* Inaction warning */
.inaction-warning {
    margin-top: 20px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.inaction-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.inaction-text {
    font-size: 14px;
    font-weight: 500;
    color: #991b1b;
}

/* Book a Call CTA */
.book-call-cta {
    margin-top: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.cta-button {
    background: white;
    color: #1e3a5f;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: #f0f4f8;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .book-call-cta {
        flex-direction: column;
        text-align: center;
    }
}

.action-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--report-dark);
    margin-bottom: 6px;
}

.action-content p {
    font-size: 13px;
    color: var(--report-gray-700);
    line-height: 1.5;
    margin-bottom: 10px;
}

.action-result {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--report-gray-700);
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}


/* ===== Bills Check Section ===== */

.bills-check {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.bills-item {
    padding: 16px 20px;
    border-radius: 10px;
}

.bills-item.good {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-left: 4px solid var(--report-good);
}

.bills-item.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid var(--report-warning);
}

.bills-item.danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--report-danger);
}

.bills-content strong {
    display: block;
    color: var(--report-dark);
    margin-bottom: 4px;
}

.bills-content p {
    color: var(--report-gray-700);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* ===== Cash Flow Forecast ===== */

.forecast-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.forecast-month {
    text-align: center;
}

.forecast-bar-container {
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 8px;
}

.forecast-bar {
    width: 40px;
    background: var(--report-gray-300);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.forecast-month.good .forecast-bar {
    background: var(--report-good);
}

.forecast-month.warning .forecast-bar {
    background: var(--report-warning);
}

.forecast-month.danger .forecast-bar {
    background: var(--report-danger);
}

.forecast-bar.negative {
    background: var(--report-danger);
}

.forecast-month.current .forecast-bar {
    outline: 3px solid var(--report-primary);
    outline-offset: 2px;
}

.forecast-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--report-dark);
    margin-bottom: 4px;
}

.forecast-value.negative {
    color: var(--report-danger);
}

.forecast-label {
    font-size: 12px;
    color: var(--report-gray-500);
}

.forecast-month.current .forecast-label {
    font-weight: 600;
    color: var(--report-primary);
}

.forecast-insight {
    margin-bottom: 20px;
}

.insight-box {
    padding: 16px 20px;
    border-radius: 10px;
}

.insight-box.good {
    background: #ecfdf5;
    border-left: 4px solid var(--report-good);
}

.insight-box.warning {
    background: #fffbeb;
    border-left: 4px solid var(--report-warning);
}

.insight-box.danger {
    background: #fef2f2;
    border-left: 4px solid var(--report-danger);
}

.insight-box.neutral {
    background: var(--report-gray-100);
    border-left: 4px solid var(--report-gray-500);
}

.insight-box strong {
    display: block;
    color: var(--report-dark);
    margin-bottom: 4px;
}

.insight-box p {
    color: var(--report-gray-700);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

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

/* ===== Benchmark Section ===== */

.benchmark-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.benchmark-item {
    padding: 20px;
    background: var(--report-gray-100);
    border-radius: 12px;
    border: 1px solid var(--report-gray-300);
}

.benchmark-item.good {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.benchmark-item.warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.benchmark-item.danger {
    border-color: #fecaca;
    background: #fef2f2;
}

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

.benchmark-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--report-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.benchmark-status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.benchmark-item.good .benchmark-status-icon {
    background: var(--report-good);
    color: white;
}

.benchmark-item.warning .benchmark-status-icon {
    background: var(--report-warning);
    color: white;
}

.benchmark-item.danger .benchmark-status-icon {
    background: var(--report-danger);
    color: white;
}

.benchmark-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--report-dark);
    margin-bottom: 12px;
}

.benchmark-bar {
    position: relative;
    height: 8px;
    background: var(--report-gray-300);
    border-radius: 4px;
    margin-bottom: 8px;
}

.benchmark-range {
    position: absolute;
    height: 100%;
    background: var(--report-gray-300);
    border-radius: 4px;
}

.benchmark-ideal {
    position: absolute;
    width: 2px;
    height: 16px;
    top: -4px;
    background: var(--report-primary);
    transform: translateX(-50%);
}

.benchmark-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    top: -4px;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.benchmark-marker.good {
    background: var(--report-good);
}

.benchmark-marker.warning {
    background: var(--report-warning);
}

.benchmark-marker.danger {
    background: var(--report-danger);
}

.benchmark-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--report-gray-500);
}

.benchmark-typical {
    font-weight: 500;
}

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

/* ===== VAT Section ===== */

.vat-summary {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.vat-item {
    padding: 20px;
    background: var(--report-gray-100);
    border-radius: 10px;
    text-align: center;
}

.vat-item.result {
    background: var(--report-primary);
    color: white;
}

.vat-item.result.payable {
    background: #dc2626;
}

.vat-item.result.refund {
    background: #059669;
}

.vat-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--report-gray-500);
    margin-bottom: 8px;
}

.vat-item.result .vat-label {
    color: rgba(255, 255, 255, 0.8);
}

.vat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--report-dark);
    margin-bottom: 4px;
}

.vat-item.result .vat-value {
    color: white;
}

.vat-item small {
    font-size: 12px;
    color: var(--report-gray-500);
}

.vat-item.result small {
    color: rgba(255, 255, 255, 0.7);
}

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

/* ===== Meeting Summary ===== */

.summary-section {
    background: var(--report-dark);
    color: var(--report-white);
}

.summary-section h2 {
    color: var(--report-white);
}

.summary-section .section-subtitle {
    color: var(--report-gray-300);
}

.meeting-summary blockquote {
    background: var(--report-gray-900);
    border-left: 4px solid var(--report-accent);
    padding: 24px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--report-gray-300);
    margin: 0;
    font-style: italic;
}

/* Summary Talking Points */
.summary-talking-points {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.talking-point {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.talking-point.strength {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.talking-point.risk {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.point-label {
    font-weight: 600;
    margin-right: 6px;
}

.talking-point.strength .point-label {
    color: #10b981;
}

/* Go Deeper Box */
.go-deeper-box {
    background: var(--report-gray-900);
    border: 1px solid var(--report-gray-300);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.go-deeper-box h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--report-gray-100);
}

.go-deeper-box > p {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: var(--report-gray-400);
}

.go-deeper-box ul {
    margin: 0;
    padding-left: 20px;
}

.go-deeper-box li {
    font-size: 14px;
    color: var(--report-gray-300);
    margin-bottom: 8px;
    line-height: 1.5;
}

.go-deeper-box li:last-child {
    margin-bottom: 0;
}

.talking-point.risk .point-label {
    color: #ef4444;
}

.point-text {
    color: var(--report-gray-300);
}

@media (max-width: 768px) {
    .summary-talking-points {
        flex-direction: column;
    }
}

/* ===== Report Footer ===== */

.report-footer {
    padding: 32px 0;
    border-top: 1px solid var(--report-gray-300);
    margin-top: 12px;
}

.footer-content {
    text-align: center;
}

.disclaimer {
    font-size: 12px;
    color: var(--report-gray-500);
    max-width: 600px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

.footer-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--report-gray-500);
}

.footer-branding strong {
    color: var(--report-primary);
}

.footer-date {
    color: var(--report-gray-500);
}

.footer-date::before {
    content: "•";
    margin-right: 8px;
}

/* ===== Print Styles ===== */

/* ===== PDF Export Mode ===== */
.pdf-export-mode {
    background: white !important;
}

.pdf-export-mode .nav-report,
.pdf-export-mode .story-of-month,
.pdf-export-mode .scenario-builder,
.pdf-export-mode .report-actions,
.pdf-export-mode .sample-banner,
.pdf-export-mode .modal,
.pdf-export-mode .tooltip,
.pdf-export-mode #investorSummary {
    display: none !important;
}

.pdf-export-mode .report-main {
    padding-top: 0;
    background: white;
}

.pdf-export-mode .report-container {
    max-width: 100%;
    padding: 0;
}

.pdf-export-mode .report-section {
    box-shadow: none;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
    page-break-inside: avoid;
}

.pdf-export-mode .hero-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color: white !important;
    padding: 24px !important;
    border: none;
}

.pdf-export-mode .hero-section * {
    color: white !important;
}

.pdf-export-mode .hero-status {
    background: rgba(255, 255, 255, 0.2) !important;
}

.pdf-export-mode .key-metrics {
    gap: 12px;
}

.pdf-export-mode .key-metric {
    padding: 16px;
}

.pdf-export-mode .action-card {
    page-break-inside: avoid;
}

.pdf-export-mode .meeting-summary {
    page-break-inside: avoid;
}

.pdf-export-mode h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

.pdf-export-mode .section-subtitle {
    font-size: 13px;
    margin-bottom: 16px;
}

/* Add company header for PDF */
.pdf-header {
    display: none;
    text-align: center;
    padding: 20px;
    border-bottom: 2px solid #1e3a5f;
    margin-bottom: 20px;
}

.pdf-export-mode .pdf-header {
    display: block;
}

.pdf-header h1 {
    font-size: 24px;
    color: #1e3a5f;
    margin-bottom: 4px;
}

.pdf-header .pdf-period {
    font-size: 14px;
    color: #64748b;
}

.pdf-header .pdf-generated {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
}

@media print {
    .nav-report,
    .story-of-month,
    .scenario-builder,
    .report-actions,
    .sample-banner,
    .modal {
        display: none !important;
    }

    .report-main {
        padding-top: 0;
        background: white;
    }

    .report-container {
        max-width: 100%;
    }

    .report-section {
        box-shadow: none;
        break-inside: avoid;
        border: 1px solid #ddd;
    }

    .hero-section {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: 16px 20px !important;
    }

    .hero-section h2 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .hero-section .hero-answer {
        margin-bottom: 10px !important;
    }

    .hero-section .hero-status {
        padding: 5px 12px !important;
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }

    .hero-section .hero-amount .amount {
        font-size: 28px !important;
    }

    .hero-section .hero-amount .currency {
        font-size: 14px !important;
    }

    .hero-section .hero-explanation {
        font-size: 12px !important;
        margin-bottom: 0 !important;
    }

    .action-list {
        break-inside: avoid;
    }
}

/* ===== Responsive ===== */

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

@media (max-width: 768px) {
    .report-header {
        flex-direction: column;
        gap: 16px;
    }

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

    /* 5th metric spans full width on mobile */
    .key-metrics .key-metric:nth-child(5) {
        grid-column: 1 / -1;
    }

    .metric-title {
        white-space: normal;
        font-size: 11px;
    }

    .cash-flow-story {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .hero-amount .amount {
        font-size: 42px;
    }

    .cycle-summary {
        flex-direction: column;
        text-align: center;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-actions .btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .nav-actions .btn svg {
        display: none;
    }
}

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

    .action-item {
        flex-direction: column;
    }

    .action-number {
        align-self: flex-start;
    }
}

/* ===== Email Modal ===== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--report-white);
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    margin: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--report-gray-300);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--report-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--report-gray-500);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--report-dark);
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    margin: 0 0 16px;
    color: var(--report-gray-700);
    font-size: 14px;
}

.modal-body .form-group {
    margin: 0;
}

.modal-body label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--report-dark);
    margin-bottom: 8px;
}

.modal-body input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--report-gray-300);
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}

.modal-body input:focus {
    outline: none;
    border-color: var(--report-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--report-gray-300);
    background: var(--report-gray-100);
    border-radius: 0 0 12px 12px;
}

.modal-status {
    padding: 0 24px 16px;
    font-size: 14px;
    text-align: center;
}

.modal-status.success {
    color: var(--report-good);
}

.modal-status.error {
    color: var(--report-danger);
}

.modal-status.loading {
    color: var(--report-gray-500);
}

/* ===== Alerts Section ===== */

.alerts-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    color: white;
}

.alerts-section h2 {
    color: white;
}

.alerts-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.alerts-container {
    display: grid;
    gap: 24px;
}

.active-alerts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    border-left: 4px solid;
}

.alert-item.warning {
    border-left-color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
}

.alert-item.danger {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-item.warning .alert-icon {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.alert-item.danger .alert-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
}

.alert-content p {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
}

.alert-action {
    flex-shrink: 0;
}

.alert-action .btn {
    padding: 8px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alert-config {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
}

.alert-config h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.alert-settings {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.alert-setting {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
}

.alert-setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.alert-setting label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.alert-setting input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.alert-threshold {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.alert-threshold input[type="number"] {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    text-align: center;
}

.alert-threshold input[type="number"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.alert-config .btn {
    background: white;
    color: #1e3a5f;
}

.alert-config .btn:hover {
    background: #f0f4f8;
}

.alerts-section .why-matters {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.alerts-section .why-matters strong {
    color: white;
}

.no-alerts {
    text-align: center;
    padding: 24px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.no-alerts svg {
    color: #10b981;
    margin-bottom: 8px;
}

.no-alerts p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .alert-setting-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .alert-item {
        flex-direction: column;
        text-align: center;
    }

    .alert-action {
        width: 100%;
    }

    .alert-action .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Loan Pressure Tag ===== */

.loan-pressure-tag {
    border-left: 2px solid #64748b;
    padding-left: 12px;
    margin-left: 8px;
}

.loan-pressure-tag.pressure-low .health-metric-value {
    color: #10b981;
}

.loan-pressure-tag.pressure-medium .health-metric-value {
    color: #f59e0b;
}

.loan-pressure-tag.pressure-high .health-metric-value {
    color: #ef4444;
    font-weight: 700;
}

/* Sleep Test badge */
.sleep-test .health-metric-value {
    font-weight: 600;
}

.sleep-test.sleep-good .health-metric-value {
    color: #10b981;
}

.sleep-test.sleep-tight .health-metric-value {
    color: #f59e0b;
}

.sleep-test.sleep-danger .health-metric-value {
    color: #ef4444;
    font-weight: 700;
}

/* ===== Hero YTD Badge ===== */

.hero-ytd-badge {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.hero-ytd-badge.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.hero-ytd-badge.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* ===== YTD Summary Section ===== */

.ytd-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
}

.ytd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.ytd-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e0f2fe;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ytd-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--report-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ytd-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--report-dark);
    margin-bottom: 8px;
}

.ytd-value.negative-value {
    color: var(--report-danger);
}

.ytd-comp {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.ytd-comp.positive {
    background: #ecfdf5;
    color: #059669;
}

.ytd-comp.negative {
    background: #fef2f2;
    color: #dc2626;
}

.ytd-comp.neutral {
    background: var(--report-gray-100);
    color: var(--report-gray-600);
}

.ytd-insight {
    background: white;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 14px;
    color: var(--report-gray-700);
    line-height: 1.6;
    border-left: 4px solid #0ea5e9;
    margin-bottom: 20px;
}

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

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

/* ===== Scenario Analysis Section ===== */
.scenario-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
}

.scenario-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.scenario-controls {
    background: var(--report-white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.scenario-slider {
    margin-bottom: 20px;
}

.scenario-slider label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--report-gray-700);
    margin-bottom: 8px;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-row input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--report-gray-300);
    border-radius: 3px;
    outline: none;
}

.slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #0ea5e9;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-value {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
    color: var(--report-gray-900);
}

.scenario-results {
    background: var(--report-white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.scenario-results h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--report-gray-900);
    margin-bottom: 16px;
}

.scenario-comparison {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scenario-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--report-gray-100);
}

.scenario-metric:last-of-type {
    border-bottom: none;
}

.scenario-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--report-gray-700);
}

.scenario-values {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-value {
    font-size: 14px;
    color: var(--report-gray-500);
}

.arrow {
    color: var(--report-gray-400);
    font-size: 16px;
}

.new-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--report-gray-900);
}

.new-value.positive {
    color: var(--report-good);
}

.new-value.negative {
    color: var(--report-danger);
}

.change-value {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 8px;
}

.change-value.positive {
    background: #dcfce7;
    color: #166534;
}

.change-value.negative {
    background: #fee2e2;
    color: #991b1b;
}

.scenario-insight {
    margin-top: 16px;
    padding: 12px;
    background: #f0f9ff;
    border-radius: 8px;
    font-size: 14px;
    color: var(--report-gray-700);
    line-height: 1.5;
}

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

/* ===== Cash Bridge Section ===== */

.cash-bridge-section {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 1px solid #fde047;
}

.cash-bridge {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.bridge-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.bridge-item.bridge-start {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
    border: none;
}

.bridge-item.bridge-start .bridge-label {
    color: rgba(255, 255, 255, 0.8);
}

.bridge-item.bridge-start .bridge-value {
    color: white;
    font-size: 24px;
}

.bridge-item.bridge-start .bridge-note {
    color: rgba(255, 255, 255, 0.6);
}

.bridge-item.bridge-result {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fca5a5;
}

.bridge-item.bridge-result.positive-cash {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #6ee7b7;
}

.bridge-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    font-weight: 500;
    color: var(--report-gray-700);
}

.bridge-label > span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bridge-hint {
    font-size: 11px;
    font-weight: 400;
    color: var(--report-gray-500);
    background: var(--report-gray-100);
    padding: 2px 8px;
    border-radius: 4px;
}

.bridge-value {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.bridge-value.positive {
    color: var(--report-good);
}

.bridge-value.negative {
    color: var(--report-danger);
}

.bridge-note {
    font-size: 12px;
    color: var(--report-gray-500);
}

/* Cash Bridge Story Layout */
.cash-bridge-story {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bridge-step {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--report-gray-200);
}

.bridge-step-header {
    font-size: 15px;
    font-weight: 700;
    color: var(--report-dark);
    margin-bottom: 12px;
}

.bridge-step-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bridge-step-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--report-gray-700);
}

.bridge-step-line span {
    flex: 1;
}

.bridge-step-line strong {
    font-size: 16px;
    font-weight: 700;
}

.bridge-step-line strong.positive {
    color: var(--report-good);
}

.bridge-step-line strong.negative {
    color: var(--report-danger);
}

.bridge-step-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--report-gray-300);
    font-size: 14px;
    font-weight: 600;
    color: var(--report-dark);
}

.bridge-step-subtotal strong {
    font-size: 16px;
}

.bridge-step-note {
    font-size: 12px;
    color: var(--report-gray-500);
    margin-top: 10px;
    font-style: italic;
}

/* Step 1: Profit */
.bridge-step-profit {
    background: rgba(59, 130, 246, 0.06);
    border-color: #93c5fd;
}

.bridge-step-profit .bridge-step-header {
    color: #2563eb;
}

/* Step 2: Cash tied up */
.bridge-step-tiedup {
    background: rgba(249, 115, 22, 0.06);
    border-color: #fdba74;
}

.bridge-step-tiedup .bridge-step-header {
    color: #ea580c;
}

/* Step 3: Big cash movements */
.bridge-step-bigmoves {
    background: rgba(100, 116, 139, 0.06);
    border-color: #94a3b8;
}

.bridge-step-bigmoves .bridge-step-header {
    color: #475569;
}

/* Step 4: Final reconciliation */
.bridge-step-final {
    background: var(--report-gray-50);
    border: 2px solid var(--report-dark);
}

.bridge-step-final .bridge-step-header {
    font-size: 16px;
}

.bridge-final-content {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.bridge-final-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--report-dark);
    font-size: 16px;
    font-weight: 700;
    color: var(--report-dark);
}

.bridge-final-total strong {
    font-size: 20px;
}

.bridge-step-explanation {
    font-size: 14px;
    color: var(--report-gray-700);
    line-height: 1.6;
}

/* Cash Warning */
.bridge-warning {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    margin-top: 16px;
}

.bridge-warning-severe {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
}

.bridge-warning-critical {
    background: rgba(220, 38, 38, 0.15);
    border: 3px solid #dc2626;
}

.bridge-warning-icon {
    width: 40px;
    height: 40px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.bridge-warning-critical .bridge-warning-icon {
    background: #dc2626;
    animation: pulse 1s infinite;
}

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

.bridge-warning-content {
    flex: 1;
}

.bridge-warning-title {
    font-size: 16px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 6px;
}

.bridge-warning-text {
    font-size: 14px;
    color: var(--report-gray-700);
    line-height: 1.5;
}

@media (max-width: 640px) {
    .bridge-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .bridge-value {
        align-self: flex-end;
    }

    .bridge-item.bridge-start {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bridge-item.bridge-start .bridge-value {
        align-self: center;
    }
}

/* ===== Blur/Lock Overlay for Non-Signed-Up Users ===== */

.locked-content {
    position: relative;
}

.locked-content .blur-content {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    border-radius: 12px;
    z-index: 10;
    text-align: center;
    padding: 24px;
}

.locked-overlay .lock-icon {
    width: 48px;
    height: 48px;
    background: var(--report-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.locked-overlay .lock-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.locked-overlay h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--report-dark);
    margin: 0 0 8px 0;
}

.locked-overlay p {
    font-size: 14px;
    color: var(--report-gray-500);
    margin: 0 0 16px 0;
    max-width: 280px;
}

.locked-overlay .btn-signup {
    background: var(--report-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.locked-overlay .btn-signup:hover {
    background: var(--report-secondary);
}

/* Blur specific metrics */
.key-metric.locked {
    position: relative;
}

.key-metric.locked .metric-value,
.key-metric.locked .metric-change,
.key-metric.locked .metric-why {
    filter: blur(8px);
    user-select: none;
}

.key-metric.locked .metric-lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 58, 95, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 5;
    cursor: pointer;
    transition: background 0.2s;
}

.key-metric.locked .metric-lock-overlay:hover {
    background: var(--report-secondary);
}

/* Blur action items */
.action-item.locked {
    position: relative;
}

.action-item.locked .action-content {
    filter: blur(8px);
    user-select: none;
}

.action-item.locked .action-lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 58, 95, 0.95);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    z-index: 5;
    text-align: center;
}

.action-item.locked .action-lock-overlay a {
    color: #93c5fd;
    text-decoration: underline;
}

/* Blur benchmark items */
.benchmark-item.locked {
    position: relative;
}

.benchmark-item.locked > *:not(.benchmark-lock-overlay) {
    filter: blur(6px);
    user-select: none;
}

.benchmark-item.locked .benchmark-lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 58, 95, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    z-index: 5;
}

/* Section-level blur for forecast */
.section-locked {
    position: relative;
    min-height: 200px;
}

.section-locked > *:not(.section-lock-overlay) {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

.section-lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 32px 48px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    text-align: center;
    z-index: 10;
}

.section-lock-overlay .lock-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--report-primary), var(--report-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.section-lock-overlay .lock-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.section-lock-overlay h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--report-dark);
    margin: 0 0 8px 0;
}

.section-lock-overlay p {
    font-size: 14px;
    color: var(--report-gray-500);
    margin: 0 0 20px 0;
}

.section-lock-overlay .btn-signup {
    display: inline-block;
    background: var(--report-primary);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.section-lock-overlay .btn-signup:hover {
    background: var(--report-secondary);
    transform: translateY(-1px);
}

/* ===== Blur Strategy for Non-Signup Users ===== */

.blurred-section {
    position: relative;
    min-height: 150px;
}

.blurred-section > *:not(.blur-signup-overlay) {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
}

.blur-signup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.blur-overlay-content {
    background: white;
    padding: 24px 36px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.blur-overlay-content h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--report-gray-900);
}

.blur-overlay-content p {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: var(--report-gray-500);
}

.blur-overlay-content .btn-signup {
    display: inline-block;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blur-overlay-content .btn-signup:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

/* ===== Peek Blur - Show Sneak Peek Then Blur ===== */

.peek-blurred {
    position: relative;
}

.peek-blurred > *:not(.peek-blur-overlay) {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.peek-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 30%, rgba(255,255,255,0.95) 100%);
    z-index: 10;
    border-radius: 8px;
}

.peek-blur-content {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.peek-lock {
    font-size: 14px;
}

.peek-unlock {
    font-size: 13px;
    font-weight: 600;
    color: var(--report-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.peek-unlock:hover {
    color: var(--report-primary-dark);
    text-decoration: underline;
}
