/* Modern Stats Page Styles */
.stats-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.stats-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin: 0 0 1rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.stats-page > p {
    text-align: center;
    color: #64748b;
    font-size: 1.15rem;
    margin-bottom: 3rem;
}

/* Section Headers */
.stats-page h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 4rem 0 2rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0 4rem;
}

/* Stats Cards */
.stats-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
    border-color: #cbd5e1;
}

.stats-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.stats-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0;
    line-height: 1.2;
}

.stats-label {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Chart Cards */
.stats-card canvas {
    border-radius: 12px;
    background: #f8fafc;
    padding: 1rem;
}

.proxy-stats-description {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.proxy-stats-description p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0.75rem 0;
}

.proxy-stats-description p strong {
    color: #1e293b;
    font-weight: 700;
}

.proxy-stats-description p:last-child {
    margin-top: 1.5rem;
    font-style: italic;
    color: #64748b;
    font-size: 0.9rem;
}

/* Tables */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.stats-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 1rem;
}

.stats-table tbody tr {
    transition: background-color 0.2s ease;
}

.stats-table tbody tr:hover {
    background-color: #f8fafc;
}

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

.stats-table td:first-child {
    font-weight: 600;
    color: #1e293b;
}

.stats-table td:nth-child(2) {
    font-weight: 600;
    color: #667eea;
}

.stats-table td:nth-child(3) {
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-page {
        padding: 1.5rem 1rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-card {
        padding: 2rem 1.5rem;
    }

    .stats-table {
        font-size: 0.9rem;
    }

    .stats-table th,
    .stats-table td {
        padding: 0.75rem 1rem;
    }

    .stats-page h2 {
        margin: 3rem 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-card {
        padding: 1.5rem 1rem;
    }

    .stats-value {
        font-size: 2rem;
    }

    .stats-table {
        font-size: 0.85rem;
    }

    .stats-table th,
    .stats-table td {
        padding: 0.5rem 0.75rem;
    }
}

