.stat-card {
            background: white;
            border-radius: 8px;
            padding: 1rem 1.25rem;
            border: 1px solid #e9ecef;
            transition: all 0.2s;
            text-align: center;
            height: 100%;
        }
        .stat-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
            border-color: #c0d4e0;
        }
        .stat-card .stat-value {
            font-size: 1.8rem;
            font-weight: 700;
            color: #1a3a5c;
            font-family: 'Cambria Math', 'Latin Modern Math', serif;
            line-height: 1.3;
        }
        .stat-card .stat-label {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: #6c757d;
            font-weight: 600;
            margin-top: 0.25rem;
        }
        .stat-card.highlight-primary .stat-value { color: #0d6efd; }
        .stat-card.highlight-success .stat-value { color: #198754; }
        .stat-card.highlight-danger .stat-value { color: #dc3545; }
        .stat-card.highlight-warning .stat-value { color: #ff8c00; }
        .stat-card.highlight-purple .stat-value { color: #6f42c1; }
        .stat-card.highlight-teal .stat-value { color: #20c997; }
        .chart-container canvas {
            width: 100% !important;
            height: auto !important;
            max-height: 320px;
        }
        .data-input-area textarea {
            font-family: 'Courier New', monospace;
            font-size: 0.95rem;
            resize: vertical;
            min-height: 100px;
        }
        .input-hint {
            font-size: 0.85rem;
            color: #6c757d;
        }
        .preset-btns .btn {
            font-size: 0.8rem;
            padding: 0.3rem 0.8rem;
            margin: 0.2rem 0.2rem;
            border-radius: 20px;
        }
        .stat-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 0.75rem;
            margin: 1rem 0;
        }
        .math-box .formula {
            font-size: 1.3rem;
            font-family: 'Cambria Math', 'Latin Modern Math', STIXGeneral, serif;
            text-align: center;
            margin: 0.5rem 0;
        }
        .comparison-table th {
            background-color: #f1f4f8;
        }
        .comparison-table td, .comparison-table th {
            padding: 0.75rem 1rem;
            border: 1px solid #dee2e6;
        }
        .feature-list li {
            margin-bottom: 0.5rem;
        }
        .case-study-box {
            background: #f0f7ff;
            border-radius: 10px;
            padding: 1.5rem;
            border-left: 5px solid #0d6efd;
            margin: 1.5rem 0;
        }
        .privacy-badge {
            background: #e8f5e9;
            border: 1px solid #a5d6a7;
            color: #2e7d32;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            font-size: 0.9rem;
        }
        .empty-state {
            text-align: center;
            padding: 2rem 1rem;
            color: #6c757d;
        }
        .empty-state i {
            font-size: 3rem;
            opacity: 0.3;
            margin-bottom: 0.5rem;
        }
        .legend-tip {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
            font-size: 0.85rem;
            margin-top: 0.5rem;
        }
        .legend-tip .dot {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            display: inline-block;
            margin-right: 0.3rem;
        }
        .legend-tip .dot.min { background: #dc3545; }
        .legend-tip .dot.max { background: #198754; }
        .legend-tip .dot.mid { background: #ff8c00; border: 2px solid #ff8c00; width: 10px; height: 10px; }
        .faq-accordion .accordion-button:not(.collapsed) {
            background: #f1f4f8;
            color: #1a3a5c;
        }
        @media (max-width: 576px) {
            .stat-grid { grid-template-columns: repeat(2, 1fr); }
            .stat-card .stat-value { font-size: 1.4rem; }
        }