.stats-page {
    max-width: 940px;
    margin: 0 auto;
    padding: 7rem 1.5rem 5rem;
}

.stats-header {
    margin-bottom: 2.5rem;
}

.stats-title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 800;
    color: var(--zx-white);
}

.stats-subtitle {
    margin-top: 0.4rem;
    color: var(--zx-text-muted);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

/* Metric cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.stats-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.1rem 1.15rem;
    background: var(--zx-card-bg);
    border: 1px solid var(--zx-border);
    border-radius: 12px;
}

.stats-card-value {
    font-size: clamp(1.25rem, 4vw, 1.6rem);
    font-weight: 800;
    color: var(--zx-white);
    line-height: 1.1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.stats-card-label {
    font-size: 0.8rem;
    color: var(--zx-text-muted);
}

/* Trend sparklines */
.stats-trends {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.stats-trend {
    padding: 1.1rem 1.15rem 0.6rem;
    background: var(--zx-card-bg);
    border: 1px solid var(--zx-border);
    border-radius: 12px;
}

.stats-trend-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.stats-trend-title {
    font-size: 0.82rem;
    color: var(--zx-gray-light);
}

.stats-trend-latest {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--zx-white);
    font-variant-numeric: tabular-nums;
}

.stats-spark {
    display: block;
    width: 100%;
    height: 44px;
}

.stats-spark polyline {
    fill: none;
    stroke: var(--zx-primary);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.stats-panel {
    background: var(--zx-card-bg);
    border: 1px solid var(--zx-border);
    border-radius: 14px;
    padding: 1.5rem;
}

.stats-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--zx-white);
    margin-bottom: 1.1rem;
}

.stats-bars {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.stats-bar-row {
    display: grid;
    grid-template-columns: 54px 1fr 84px;
    align-items: center;
    gap: 0.75rem;
}

.stats-bar-label {
    font-size: 0.82rem;
    color: var(--zx-gray-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stats-bar-track {
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.stats-bar-fill {
    display: block;
    height: 100%;
    width: calc(var(--value) * 100%);
    border-radius: 5px;
    background: linear-gradient(90deg, var(--zx-primary-dark), var(--zx-primary));
}

.stats-bar-value {
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    color: var(--zx-text-muted);
    text-align: right;
}

@media (max-width: 600px) {
    .stats-bar-row {
        grid-template-columns: 46px 1fr 66px;
        gap: 0.5rem;
    }
}
