.stats-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    align-items: end;
}

.stats-filters .form-row {
    margin: 0;
}

.stats-filters label {
    min-height: 24px;
    margin-bottom: 8px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.stat-card {
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    transition: 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(91, 140, 255, 0.22);
    background: linear-gradient(180deg, rgba(91, 140, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.stat-card h2 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text);
}

.stat-big {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin: 6px 0 8px;
    line-height: 1;
}

.stats-section {
    margin-top: 28px;
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.stats-section h2 {
    margin-bottom: 14px;
    font-size: 1.2rem;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.stats-table th,
.stats-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.stats-table th {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
    font-weight: 700;
}

.stats-table td {
    color: var(--muted);
}

.stats-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.stats-table tbody tr:hover {
    background: rgba(91, 140, 255, 0.08);
}

.stats-table td:nth-child(2) {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 980px) {
    .stats-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .stats-filters,
    .stats-cards {
        grid-template-columns: 1fr;
    }

    .stats-filters {
        padding: 16px;
    }

    .stats-section {
        padding: 18px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-big {
        font-size: 1.7rem;
    }
}