/**
 * Achievement Panel - Dark Midnight Purple/Gold Theme
 * Matching RanksUltimate Panel design with cs-wallpaper.jpg background
 */

:root {
    --primary: #deb77c;
    --primary-dark: #c09e6c;
    --primary-light: #edc98f;
    --secondary: #1a1f26;
    --accent: #ffe189;
    --accent-red: #e04040;
    --background: #192128;
    --background-light: #1e2830;
    --surface: #1a2028;
    --surface-light: #222a34;
    --text-primary: #fff0d5;
    --text-secondary: #f5deb3;
    --text-muted: #f0b04a;
    --border: #2a3040;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: rgba(0, 0, 0, 0.5);
    --glow: rgba(222, 155, 53, 0.3);
    --border-top: linear-gradient(to right, rgb(175, 126, 3) 0%, rgb(255, 237, 172) 50%, rgb(175, 126, 3) 100%);
    --header: rgba(33, 29, 23, 0.8);
    --gradient-1: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    --gradient-2: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    --modal: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    --gradient-blur: radial-gradient(circle at 30% 70%, rgba(222, 155, 53, 0.05) 0%, transparent 50%),
                     radial-gradient(circle at 70% 30%, rgba(240, 176, 74, 0.03) 0%, transparent 50%),
                     radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    --font-primary: 'Rajdhani', sans-serif;
    --font-display: 'Teko', sans-serif;
    --glass-bg: rgba(23, 26, 33, 0.25);
    --glass-bg-light: rgba(42, 71, 94, 0.35);
    --glass-border: rgba(255, 255, 255, 0.10);
    --gradient-primary: linear-gradient(135deg, #ffd18c 0%, #ffb43b 100%);

    /* Category colors */
    --cat-combat: #ef4444;
    --cat-aerial: #3b82f6;
    --cat-weapons: #f59e0b;
    --cat-explosives: #f97316;
    --cat-objective: #10b981;
    --cat-survival: #6366f1;
    --cat-milestones: #a855f7;
    --cat-meta: #eab308;
}

/* ====== SCROLLBAR ====== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(15, 18, 22, 0.9); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #dea651 0%, #c6944a 100%);
    border-radius: 5px;
    border: 2px solid rgba(2, 0, 8, 0.9);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #eeb862 0%, #dea651 100%);
    box-shadow: 0 0 10px rgba(222, 155, 53, 0.6);
}
::-webkit-scrollbar-corner { background: rgba(15, 18, 22, 0.9); }
* { scrollbar-width: thin; scrollbar-color: #dea651 rgba(15, 18, 22, 0.9); }

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

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    color: #c7d5e0;
    background-color: #192128;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    width: 100%; height: 100%;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(100, 92, 72, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(68, 65, 52, 0.25) 0%, transparent 50%),
        linear-gradient(180deg, #282619 0%, #1e1536 100%);
    background-attachment: scroll;
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    width: 100%; height: 100%;
    background-image: url(../images/cs-wallpaper.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: -1;
    opacity: 0.06;
}

/* ====== PARTICLES ====== */
#particles-container {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 0; overflow: hidden;
}
.particle {
    position: absolute; border-radius: 50%;
    pointer-events: none; opacity: 0;
    animation: particleFloat linear infinite;
}
.particle--dust {
    width: 2px; height: 2px;
    background: rgba(222, 155, 53, 0.4);
    box-shadow: 0 0 6px rgba(222, 155, 53, 0.3);
}
.particle--glow {
    width: 4px; height: 4px;
    background: radial-gradient(circle, rgba(255, 225, 137, 0.8) 0%, rgba(222, 155, 53, 0.4) 50%, transparent 70%);
}
.particle--spark {
    width: 3px; height: 3px;
    background: rgba(255, 240, 213, 0.6);
    box-shadow: 0 0 10px rgba(255, 225, 137, 0.5);
}
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) translateX(0) scale(0.5); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20vh) translateX(var(--drift, 50px)) scale(1); }
}
@media (max-width: 768px) {
    .particle { display: none; }
    .particle:nth-child(-n+15) { display: block; }
}
.back-btn {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    color: #c7d5e0;
    font-family: var(--font-primary);
    font-weight: 600; font-size: 0.85rem;
    text-decoration: none; border-radius: 4px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}
.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    border-color: rgba(255, 255, 255, 0.15);
}
.back-btn i { font-size: 0.8rem; }
.server-badge {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    color: #8b929a;
    font-family: var(--font-primary);
    font-size: 0.82rem; font-weight: 500;
    letter-spacing: 0.3px;
}
.server-badge i {
    color: var(--primary);
    font-size: 0.7rem;
}

/* ====== MAIN CONTAINER ====== */
.main-container {
    position: relative; z-index: 1;
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ====== HERO SECTION ====== */
.hero-section {
    text-align: center;
    padding: 2.5rem 0 1.5rem;
}
.section-badge {
    display: inline-flex;
    align-items: center; gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: linear-gradient(135deg, rgba(222, 155, 53, 0.15), rgba(240, 176, 74, 0.1));
    border: 1px solid rgba(222, 155, 53, 0.3);
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.85rem; font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-badge i { font-size: 0.8rem; }
.page-title {
    font-family: var(--font-display);
    font-size: 2.8rem; font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.text-gradient {
    background: linear-gradient(135deg, #ffd18c 0%, #ffb43b 50%, #dea651 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem; font-weight: 500;
}

/* ====== STATS CARDS ====== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    display: flex; align-items: center; gap: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
}

/* Individual stat card colors */
.stat-card-players { border-color: rgba(59, 130, 246, 0.25); }
.stat-card-players:hover { box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.5); }
.stat-card-players .stat-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.15));
    color: #60a5fa;
}
.stat-card-players .stat-value { color: #93bbfd; }

.stat-card-unlocked { border-color: rgba(16, 185, 129, 0.25); }
.stat-card-unlocked:hover { box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.5); }
.stat-card-unlocked .stat-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.15));
    color: #34d399;
}
.stat-card-unlocked .stat-value { color: #6ee7b7; }

.stat-card-missions { border-color: rgba(168, 85, 247, 0.25); }
.stat-card-missions:hover { box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15); border-color: rgba(168, 85, 247, 0.5); }
.stat-card-missions .stat-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(192, 132, 252, 0.15));
    color: #c084fc;
}
.stat-card-missions .stat-value { color: #d8b4fe; }

.stat-card-rarest { border-color: rgba(245, 158, 11, 0.25); }
.stat-card-rarest:hover { box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.5); }
.stat-card-rarest .stat-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.15));
    color: #fbbf24;
}
.stat-card-rarest .stat-value { color: #fcd34d; }

.stat-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(222, 155, 53, 0.2), rgba(240, 176, 74, 0.15));
    border-radius: 10px;
    font-size: 1.3rem;
    color: var(--accent);
}
.stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem; font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}
.stat-label {
    font-size: 0.8rem; font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
}

/* ====== CONTROLS ====== */
.controls-section {
    margin-bottom: 1.5rem;
}
.search-wrapper {
    position: relative;
    margin-bottom: 1rem;
}
.search-icon {
    position: absolute;
    left: 1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}
.search-input {
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 2.8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem; font-weight: 500;
    outline: none;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}
.search-input::placeholder { color: rgba(222, 155, 53, 0.4); }
.search-input:focus {
    border-color: rgba(222, 155, 53, 0.5);
    box-shadow: 0 0 0 3px rgba(222, 155, 53, 0.1);
}
.search-clear {
    position: absolute;
    right: 0.8rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--text-muted);
    cursor: pointer; font-size: 0.9rem;
    padding: 0.3rem;
    transition: color 0.2s;
}
.search-clear:hover { color: var(--accent); }
.controls-row {
    display: flex; gap: 1rem;
    flex-wrap: wrap;
}
.filter-group {
    display: flex; flex-direction: column; gap: 0.3rem;
    flex: 1; min-width: 160px;
}
.filter-label {
    font-size: 0.75rem; font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.filter-select {
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem; font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23f0b04a'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2.5rem;
}
.filter-select option {
    background: #1a2028;
    color: var(--text-primary);
}
.filter-select:focus {
    border-color: rgba(222, 155, 53, 0.5);
    box-shadow: 0 0 0 3px rgba(222, 155, 53, 0.1);
}

/* ====== LEADERBOARD TABLE ====== */
.table-container {
    margin-bottom: 2rem;
}
.table-glass {
    background: linear-gradient(135deg, rgba(222, 155, 53, 0.08) 0%, transparent 40%, transparent 60%, rgba(240, 176, 74, 0.08) 100%),
                linear-gradient(135deg, rgba(200, 200, 210, 0.10) 0%, rgba(180, 180, 190, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.table-glass::before {
    content: '';
    display: block; height: 2px;
    background: linear-gradient(90deg, transparent, #de9b35, #f0b04a, #de9b35, transparent);
}
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}
.leaderboard-table thead {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}
.leaderboard-table th {
    padding: 0.9rem 1rem;
    font-family: var(--font-display);
    font-size: 0.9rem; font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    white-space: nowrap;
    user-select: none;
}
.leaderboard-table th.sortable {
    cursor: pointer;
    transition: color 0.2s;
}
.leaderboard-table th.sortable:hover {
    color: var(--text-primary);
}
.leaderboard-table th.sortable::after {
    content: ' \f0dc';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    opacity: 0.4;
    margin-left: 0.3rem;
}
.leaderboard-table th.sort-asc::after { content: ' \f0de'; opacity: 1; }
.leaderboard-table th.sort-desc::after { content: ' \f0dd'; opacity: 1; }

.leaderboard-table td {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}
.leaderboard-table tbody tr {
    transition: all 0.2s ease;
    cursor: pointer;
}
.leaderboard-table tbody tr:hover {
    background: rgba(222, 155, 53, 0.08);
}
.leaderboard-table tbody tr:last-child td {
    border-bottom: none;
}

/* Rank column */
.col-rank { width: 60px; text-align: center; }
.rank-badge {
    display: inline-flex;
    align-items: center; justify-content: center;
    min-width: 32px; height: 28px;
    padding: 0 0.4rem;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 700;
    color: var(--text-muted);
    background: rgba(222, 155, 53, 0.08);
    border: 1px solid rgba(222, 155, 53, 0.15);
}

/* Trophy for top 3 */
.rank-trophy {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
    position: relative;
}
.rank-trophy-gold {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.2), rgba(255, 180, 0, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.5);
    color: #ffd700;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.25), inset 0 0 8px rgba(255, 215, 0, 0.1);
    animation: trophyGlow 2s ease-in-out infinite alternate;
}
.rank-trophy-silver {
    background: linear-gradient(145deg, rgba(192, 192, 192, 0.2), rgba(170, 170, 180, 0.1));
    border: 2px solid rgba(192, 192, 192, 0.45);
    color: #c0c0c0;
    box-shadow: 0 0 12px rgba(192, 192, 192, 0.15);
}
.rank-trophy-bronze {
    background: linear-gradient(145deg, rgba(205, 127, 50, 0.2), rgba(180, 110, 40, 0.1));
    border: 2px solid rgba(205, 127, 50, 0.45);
    color: #cd7f32;
    box-shadow: 0 0 12px rgba(205, 127, 50, 0.15);
}
@keyframes trophyGlow {
    0% { box-shadow: 0 0 16px rgba(255, 215, 0, 0.25), inset 0 0 8px rgba(255, 215, 0, 0.1); }
    100% { box-shadow: 0 0 22px rgba(255, 215, 0, 0.4), inset 0 0 12px rgba(255, 215, 0, 0.15); }
}

/* Top 3 row highlights */
.rank-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.06) 0%, transparent 60%) !important;
}
.rank-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.04) 0%, transparent 60%) !important;
}
.rank-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.04) 0%, transparent 60%) !important;
}

/* Player column */
.col-player { min-width: 280px; }
.player-cell {
    display: flex; align-items: center; gap: 0.75rem;
}
.player-avatar {
    width: 40px; height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}
.avatar-default {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: rgba(222, 155, 53, 0.5);
    background: linear-gradient(135deg, rgba(222, 155, 53, 0.12), rgba(240, 176, 74, 0.08));
}
.avatar-fallback {
    background: linear-gradient(135deg, rgba(222, 155, 53, 0.12), rgba(240, 176, 74, 0.08)) !important;
}
.player-info { flex: 1; min-width: 0; }
.player-name-row {
    display: flex; align-items: center; gap: 0.4rem;
}
.player-flag {
    width: 18px; height: 13px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}
.player-name {
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
tr:hover .player-name { color: var(--accent); }
.player-steam-row {
    display: flex; align-items: center; gap: 0.5rem;
    margin-top: 0.15rem;
}
.player-steam {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}
.player-profile-link {
    font-size: 0.7rem;
    color: rgba(96, 165, 250, 0.7);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.player-profile-link:hover {
    color: #60a5fa;
}
.player-profile-link i {
    font-size: 0.6rem;
    margin-right: 0.15rem;
}
.emulated-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 3px;
    color: #ef4444;
    font-weight: 600;
    flex-shrink: 0;
}

/* Unlocked / Progress columns */
.col-unlocked { width: 100px; text-align: center; }
.col-progress { width: 200px; }
.col-last { width: 200px; }

.unlocked-cell {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 0.3rem;
}
.unlocked-count { color: var(--accent); }
.unlocked-total { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }

/* Progress bar (merged with percent) */
.progress-merged {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.progress-bar-wrapper {
    flex: 1;
    background: rgba(222, 155, 53, 0.08);
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
    border: 1px solid rgba(222, 155, 53, 0.1);
}
.progress-bar-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #c09e6c, #deb77c, #ffe189);
    transition: width 0.6s ease;
    position: relative;
}
.progress-bar-fill.complete {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.pct-cell {
    font-family: var(--font-display);
    font-size: 0.9rem; font-weight: 600;
    color: var(--text-muted);
    min-width: 38px;
    text-align: right;
    white-space: nowrap;
}
.pct-cell.pct-high { color: var(--success); }
.pct-cell.pct-mid { color: var(--accent); }

/* Last unlock with mission info */
.last-unlock-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.last-unlock-icon {
    width: 28px; height: 28px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}
.last-unlock-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.last-unlock-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.7;
}
.last-unlock-cell {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Loading */
.loading-row {
    text-align: center;
    padding: 3rem 1rem !important;
    color: var(--text-muted);
}
.loading-spinner {
    display: inline-block;
    width: 24px; height: 24px;
    border: 3px solid rgba(222, 155, 53, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}
.no-results i {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

/* ====== PAGINATION ====== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}
.page-btn {
    display: inline-flex;
    align-items: center; justify-content: center;
    min-width: 38px; height: 38px;
    padding: 0 0.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.95rem; font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.page-btn:hover {
    background: rgba(222, 155, 53, 0.15);
    border-color: rgba(222, 155, 53, 0.4);
    color: var(--accent);
}
.page-btn.active {
    background: linear-gradient(135deg, rgba(222, 155, 53, 0.25), rgba(240, 176, 74, 0.2));
    border-color: rgba(222, 155, 53, 0.5);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(222, 155, 53, 0.15);
}
.page-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}
.page-ellipsis {
    color: var(--text-muted);
    padding: 0 0.3rem;
    user-select: none;
}

/* ====== FOOTER ====== */
.footer {
    position: relative; z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
    text-align: center;
}
.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.footer-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}
.footer-sep { color: rgba(222, 155, 53, 0.3); }

/* ====== PLAYER PAGE ====== */

/* Profile header */
.profile-header {
    background: linear-gradient(135deg, rgba(222, 155, 53, 0.08) 0%, transparent 40%, transparent 60%, rgba(240, 176, 74, 0.08) 100%),
                linear-gradient(135deg, rgba(200, 200, 210, 0.10) 0%, rgba(180, 180, 190, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}
.profile-header::before {
    content: '';
    display: block; height: 3px;
    position: absolute; top: 0; left: 0; right: 0;
    background: linear-gradient(90deg, transparent, #c09e6c, #deb77c, #ffe189, #deb77c, #c09e6c, transparent);
}
.profile-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.profile-avatar {
    width: 100px; height: 100px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(222, 155, 53, 0.2), rgba(240, 176, 74, 0.15));
    border: 2px solid rgba(222, 155, 53, 0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    flex-shrink: 0;
    overflow: hidden;
}
.profile-info { flex: 1; }
.profile-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.profile-name-row .player-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}
.profile-name {
    font-family: var(--font-display);
    font-size: 2rem; font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    line-height: 1.2;
}
.profile-steam-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.25rem;
    font-size: 0.85rem;
}
.profile-steam-row .player-steam {
    color: var(--text-muted);
}
.profile-steam-row .player-profile-link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
.profile-steam-row .player-profile-link:hover {
    color: var(--text-primary);
}
.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}
.profile-meta-item {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.profile-meta-item i { color: var(--accent); font-size: 0.8rem; }
.profile-stats {
    display: flex; gap: 1.5rem;
}
.profile-stat {
    text-align: center;
    padding: 0.8rem 1.5rem;
    background: rgba(222, 155, 53, 0.07);
    border: 1px solid rgba(222, 155, 53, 0.15);
    border-radius: 10px;
    min-width: 100px;
}
.profile-stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem; font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.profile-stat-label {
    font-size: 0.7rem; font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.3rem;
}

/* Overall progress bar on profile */
.profile-progress {
    margin-top: 1.5rem;
}
.profile-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}
.profile-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(222, 155, 53, 0.08);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(222, 155, 53, 0.1);
}
.profile-progress-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #c09e6c, #deb77c, #ffe189);
    transition: width 0.8s ease;
}
.profile-progress-fill.complete {
    background: linear-gradient(90deg, #10b981, #34d399);
}

/* Category filter tabs */
.category-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.category-tab {
    display: inline-flex;
    align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem; font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.category-tab:hover {
    border-color: rgba(222, 155, 53, 0.4);
    color: var(--accent);
}
.category-tab.active {
    background: linear-gradient(135deg, rgba(222, 155, 53, 0.2), rgba(240, 176, 74, 0.15));
    border-color: rgba(222, 155, 53, 0.5);
    color: var(--accent);
}
.category-tab i { font-size: 0.8rem; }
.category-tab .tab-count {
    padding: 0.1rem 0.4rem;
    background: rgba(222, 155, 53, 0.15);
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.2rem;
}

/* Achievement grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.achievement-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.achievement-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    border-radius: 3px 0 0 3px;
}
.achievement-card.cat-combat::before { background: var(--cat-combat); }
.achievement-card.cat-aerial::before { background: var(--cat-aerial); }
.achievement-card.cat-weapons::before { background: var(--cat-weapons); }
.achievement-card.cat-explosives::before { background: var(--cat-explosives); }
.achievement-card.cat-objective::before { background: var(--cat-objective); }
.achievement-card.cat-survival::before { background: var(--cat-survival); }
.achievement-card.cat-milestones::before { background: var(--cat-milestones); }
.achievement-card.cat-meta::before { background: var(--cat-meta); }

.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(222, 155, 53, 0.12);
    border-color: rgba(222, 155, 53, 0.3);
}
.achievement-card.locked {
    opacity: 0.55;
}
.achievement-card.locked:hover {
    opacity: 0.75;
}
.achievement-card.unlocked {
    border-color: rgba(16, 185, 129, 0.3);
}
.achievement-card.unlocked:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.1);
}

.achievement-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.8rem;
}
.achievement-icon {
    width: 52px; height: 52px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.achievement-icon img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.achievement-icon .icon-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    border-radius: 10px;
}
.locked .achievement-icon { filter: grayscale(1) brightness(0.5); }

.achievement-info { flex: 1; min-width: 0; }
.achievement-name {
    font-family: var(--font-display);
    font-size: 1.15rem; font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.achievement-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    line-height: 1.4;
}
.achievement-status-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}
.unlocked .achievement-status-icon { color: var(--success); }
.locked .achievement-status-icon { color: rgba(222, 155, 53, 0.25); }

.achievement-card-footer {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.achievement-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(222, 155, 53, 0.08);
    border-radius: 3px;
    overflow: hidden;
}
.achievement-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #c09e6c, #deb77c);
    transition: width 0.6s ease;
}
.unlocked .achievement-progress-fill {
    background: linear-gradient(90deg, #10b981, #34d399);
}
.achievement-progress-text {
    font-family: var(--font-display);
    font-size: 0.85rem; font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}
.unlocked .achievement-progress-text { color: var(--success); }

.achievement-unlock-date {
    font-size: 0.75rem;
    color: rgba(16, 185, 129, 0.7);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.achievement-unlock-date i { font-size: 0.65rem; }

.achievement-reward {
    display: inline-flex;
    align-items: center; gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 0.4rem;
}
.achievement-reward i { font-size: 0.65rem; }

/* Back button on player page */
.player-back-btn {
    display: inline-flex;
    align-items: center; gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(222, 155, 53, 0.1);
    border: 1px solid rgba(222, 155, 53, 0.2);
    border-radius: 8px;
    color: var(--accent);
    font-family: var(--font-primary);
    font-size: 0.9rem; font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}
.player-back-btn:hover {
    background: rgba(222, 155, 53, 0.2);
    transform: translateX(-4px);
    border-color: rgba(222, 155, 53, 0.4);
}
.player-back-btn i { transition: transform 0.3s ease; }
.player-back-btn:hover i { transform: translateX(-4px); }

/* Category summary on player page */
.category-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.8rem;
    margin: 4rem auto;
}
.category-summary-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.category-summary-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
}
.category-summary-card.cat-combat::before { background: var(--cat-combat); }
.category-summary-card.cat-aerial::before { background: var(--cat-aerial); }
.category-summary-card.cat-weapons::before { background: var(--cat-weapons); }
.category-summary-card.cat-explosives::before { background: var(--cat-explosives); }
.category-summary-card.cat-objective::before { background: var(--cat-objective); }
.category-summary-card.cat-survival::before { background: var(--cat-survival); }
.category-summary-card.cat-milestones::before { background: var(--cat-milestones); }
.category-summary-card.cat-meta::before { background: var(--cat-meta); }

.category-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(222, 155, 53, 0.1);
}
.category-summary-icon {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.category-summary-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.category-summary-count {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

/* ============================================
   SBLOCK HEADER OVERRIDES
   ============================================ */

.d-block {
    display: block;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
    overflow: visible;
}

.header.scrolled {
    background: rgba(15, 15, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100vw;
    padding: 1rem 2.5rem;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 500;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    transition: transform 0.3s ease;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    fill: #ffffff;
}

.logo:hover .logo-icon {
    transform: scale(1.05) rotate(-5deg);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
}

.logo-accent {
    color: #8b5cf6;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 500;
    flex-shrink: 0;
}

.nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    list-style: none;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav-link i {
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.nav-link:hover i,
.nav-link.active i {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.discord-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: #5865f2;
    color: #ffffff;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    text-decoration: none;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.discord-icon {
    width: 20px;
    height: 20px;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#canvas {
    display: block;
    width: 100%;
    height: 20px;
    position: absolute;
    bottom: -20px;
    left: 0;
    z-index: 300;
    pointer-events: none;
}

.main-container {
    min-height: calc(100vh - 120px);
    padding: 7.5rem 0 2rem;
}

@media (max-width: 1024px) {
    .header-container {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .nav-link {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .header-actions {
        display: flex !important;
        flex-shrink: 0;
        z-index: 500;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 0;
        background: rgba(20, 20, 20, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0 1.5rem;
        transition: max-height 0.4s ease, padding 0.4s ease, box-shadow 0.3s ease;
        box-shadow: none;
        z-index: 299;
        display: block;
        overflow: hidden;
        border-radius: 0 0 16px 16px;
        border: 1px solid rgba(139, 92, 246, 0.15);
        border-top: none;
    }

    .nav.active {
        max-height: 500px;
        padding: 1.5rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.1);
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav.active .nav-list li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav.active .nav-list li:nth-child(1) { transition-delay: 0.05s; }
    .nav.active .nav-list li:nth-child(2) { transition-delay: 0.1s; }
    .nav.active .nav-list li:nth-child(3) { transition-delay: 0.15s; }
    .nav.active .nav-list li:nth-child(4) { transition-delay: 0.2s; }
    .nav.active .nav-list li:nth-child(5) { transition-delay: 0.25s; }
    .nav.active .nav-list li:nth-child(6) { transition-delay: 0.3s; }
    .nav.active .nav-list li:nth-child(7) { transition-delay: 0.35s; }

    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 0.5rem;
        width: 100%;
        display: flex;
        color: #9ca3af;
        border-radius: 8px;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(139, 92, 246, 0.15);
        color: #ffffff;
    }

    .nav-link i {
        color: #a78bfa;
        opacity: 0.7;
    }

    .nav-link:hover i,
    .nav-link.active i {
        color: #8b5cf6;
        opacity: 1;
    }

    .nav-link::after {
        display: none;
    }

    .discord-btn .discord-text {
        display: none;
    }

    .discord-btn {
        padding: 0.5rem;
        border-radius: 8px;
    }

    .mobile-toggle {
        display: flex !important;
    }

    .main-container {
        padding-top: 7rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .main-container {
        padding-top: 6.5rem;
    }
}

.category-summary-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1200px) {
    .stats-section { grid-template-columns: repeat(2, 1fr); }
    .achievements-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 768px) {
    .header-content { padding: 0.7rem 1rem; gap: 1rem; }
    .header-title { font-size: 1.2rem; }
    .back-btn span { display: none; }
    .server-badge span { display: none; }
    .stats-section { grid-template-columns: 1fr 1fr; }
    .page-title { font-size: 2rem; }
    .controls-row { flex-direction: column; }
    .profile-content { flex-direction: column; text-align: center; }
    .profile-stats { justify-content: center; }
    .profile-meta { justify-content: center; }
    .achievements-grid { grid-template-columns: 1fr; }
    .category-summary { grid-template-columns: repeat(2, 1fr); }

    /* Hide some columns on mobile */
    .col-last { display: none; }
    .col-progress { width: 120px; }
}
@media (max-width: 576px) {
    .stats-section { grid-template-columns: 1fr; }
    .page-title { font-size: 1.6rem; }
    .category-summary { grid-template-columns: 1fr 1fr; }
    .profile-stats { flex-direction: column; gap: 0.5rem; }
}
