:root {
    --bg-primary: #121212;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-muted: #b0b0b0;
    --accent-start: #FF1744;
    --accent-end: #FF6E40;
    --tooltip-shadow: rgba(255, 23, 68, 0.4);
    --bg: #0a0a0a;
    --surface: #111111;
    --border: #1a1a1a;
    --accent: #00d4ff;
    --text: #ffffff;
    --text-muted: #888888;
    --glass-background: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-accent: rgba(0, 212, 255, 0.5);
}

.h2 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.light-theme {
    --bg-primary: #F5F5F5;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-muted: #555555;
    --accent-start: #D32F2F;
    --accent-end: #F06292;
    --tooltip-shadow: rgba(211, 47, 47, 0.3);
    --bg: #ffffff;
    --surface: #f5f5f5;
    --border: #e0e0e0;
    --accent: #0066cc;
    --text: #1a1a1a;
    --text-muted: #666666;
    --glass-background: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(200, 200, 200, 0.3);
    --glow-shadow: 0 0 15px rgba(211, 47, 47, 0.2);
    --shadow-accent: rgba(211, 47, 47, 0.5);
}

#stats {
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 16px;
}

.stats-grid::-webkit-scrollbar {
    display: none;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    min-height: 220px;
    width: 260px;
    flex: 0 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-shadow);
    border-color: var(--accent);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: left 0.4s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    margin: 16px 0;
    text-shadow: 0 0 4px var(--shadow-accent);
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
}

.body {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 8px 0;
}

.stat-detail {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 8px 0 0;
    line-height: 1.4;
}

.light-theme .stat-card {
    box-shadow: 0 4px 12px var(--tooltip-shadow);
}

@media (max-width: 768px) {
    .stat-card {
        width: 220px;
        min-height: 200px;
        padding: 20px;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .body {
        font-size: 1rem;
    }

    .stat-detail {
        font-size: 0.85rem;
    }
}