* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f6f8;
    color: #2d3436;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.header {
    background: #fff;
    padding: 24px 48px;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.4px;
}

.header .subtitle {
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
}

/* ── FILTERS ── */
.filters-bar {
    background: #fff;
    padding: 16px 48px;
    display: flex;
    gap: 28px;
    align-items: flex-end;
    border-bottom: 1px solid #e8eaed;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888;
    font-weight: 600;
}

.filter-group select {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dde0e4;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    min-width: 140px;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.filter-group select:hover {
    border-color: #aab0b8;
    background: #fff;
}

.filter-group select:focus {
    outline: none;
    border-color: #636e72;
    box-shadow: 0 0 0 3px rgba(99, 110, 114, 0.1);
}

.year-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

.year-range span {
    color: #bbb;
    font-size: 0.78rem;
    font-weight: 500;
}

/* ── MAIN ── */
.main {
    padding: 28px 48px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── STAT CARDS ── */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 20px 22px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.stat-card .stat-label {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    font-weight: 600;
    margin-bottom: 10px;
}

.stat-card .stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.stat-card .stat-detail {
    font-size: 0.72rem;
    color: #b0b0b0;
    margin-top: 6px;
}

/* ── CHART PANELS ── */
.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.chart-panel,
.chart-full {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 22px 24px;
    transition: box-shadow 0.2s ease;
}

.chart-panel:hover,
.chart-full:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.chart-panel h3,
.chart-full h3,
.table-panel h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 3px;
}

.chart-panel .chart-subtitle,
.chart-full .chart-subtitle,
.table-panel .chart-subtitle {
    font-size: 0.72rem;
    color: #aaa;
    margin-bottom: 14px;
}

/* ── TABLE ── */
.table-panel {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 22px 24px;
    overflow-x: auto;
    transition: box-shadow 0.2s ease;
}

.table-panel:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

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

.vuln-table th {
    text-align: left;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 2px solid #f0f0f0;
}

.vuln-table td {
    padding: 12px;
    font-size: 0.8rem;
    border-bottom: 1px solid #f5f5f5;
    color: #444;
}

.vuln-table tr:hover {
    background: #f8f9fb;
}

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

/* ── SEASONAL CHART ── */
#seasonal-chart {
    min-height: 320px;
    width: 100%;
}

/* ── FOOTER ── */
.footer {
    padding: 28px 48px;
    text-align: center;
    color: #c0c0c0;
    font-size: 0.7rem;
    letter-spacing: 0.2px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .header, .filters-bar, .main, .footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .filters-bar {
        flex-wrap: wrap;
        gap: 14px;
    }

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