/**
 * Rank System Panel - Modern Dark Midnight Purple Theme
 * Sleek, responsive design with gradients and smooth animations
 */

:root {
    --primary: #deb77c;
    --primary-dark: #c09e6c;
    --primary-light: #edc98f;
    --secondary: #0f0a1a;
    --accent: #ffe189;
    --background: #020008;
    --background-light: #060212;
    --surface: #0a051a;
    --surface-light: #0f0a20;
    --text-primary: #fff0d5;
    --text-secondary: #f5deb3;
    --text-muted: #f0b04a;
    --border: #1a0f2e;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: rgba(2, 0, 8, 0.9);
    --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, 52, 0.9);
    --gradient-1: linear-gradient(to right, rgb(119, 114, 128) 0%, rgb(48, 33, 102) 175%);
    --gradient-2: linear-gradient(45deg, rgba(29, 13, 55, 0.7) 0%, rgba(57, 53, 65, 0.9) 50%, rgba(37, 25, 65, 0.7) 100%);
    --modal: linear-gradient(45deg, rgba(25, 14, 60, 0.7) 0%, rgba(54, 50, 44, 0.75) 50%, rgba(25, 14, 60, 0.7) 100%);
    --gradient-blur: radial-gradient(circle at 30% 70%, rgba(35, 16, 68, 0.4) 0%, transparent 50%), 
                     radial-gradient(circle at 70% 30%, rgba(42, 28, 74, 0.3) 0%, transparent 50%),
                     radial-gradient(circle at 50% 50%, rgba(42, 35, 61, 0.2) 0%, transparent 70%);
    --font-primary: 'Rajdhani', sans-serif;
    --color-light: #c7d5e0;
    --color-dark: #171a21;
    --font-display: 'Teko', sans-serif;
    --color-gray-light: #67707b;
    --color-primary: #ffe189;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2.5rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --radius-sm: 3px;
    --radius-md: 5px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;
    --color-gray-lighter: #8f98a0;
    --color-gray: #3d4450;
    --color-secondary: #e5b265;
    --glass-bg: rgba(23, 26, 33, 0.25);
    --glass-bg-light: rgba(42, 71, 94, 0.35);
    --glass-border: rgba(255, 207, 136, 0.2);
    --gradient-primary: linear-gradient(135deg, #ffd18c 0%, #ffb43b 100%);
}

/* ====== CUSTOM SCROLLBAR - Orange Gaming Style ====== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(8, 5, 0, 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);
    transition: all 0.3s ease;
}

::-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-thumb:active {
    background: #eeb862;
}

::-webkit-scrollbar-corner {
    background: rgba(8, 5, 0, 0.9);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #dea651 rgba(2, 0, 8, 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-image:                 radial-gradient(ellipse at 20% 0%, rgba(100, 93, 72, 0.4) 0%, transparent 50%), 
                radial-gradient(ellipse at 80% 100%, rgba(68, 64, 52, 0.25) 0%, transparent 50%), 
                linear-gradient(180deg, #192128 0%, #152536 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Removed animation - keeping only transitions */
}

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

/* Removed fadeIn animation - animations disabled, keeping only transitions */

/* ========================================
   BACKGROUND PARTICLE EFFECT
   ======================================== */
#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);
    }
}

/* Reduce particles on mobile for performance */
@media (max-width: 768px) {
    .particle {
        display: none;
    }
    .particle:nth-child(-n+15) {
        display: block;
    }
}


/* Header */
.header {
    background: linear-gradient(180deg, rgba(33, 29, 23, 0.8) 0%, rgba(27, 40, 56, 0.6) 100%);
    position: sticky;
    top: 0;
    z-index: 900;
    overflow: visible;
    backdrop-filter: blur(20px)!important;
    -webkit-backdrop-filter: blur(20px)!important;
}

.header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #de9b35 20%, #f0b04a 50%, #de9b35 80%, transparent 100%);
}

/* Removed headerGlow animation - reduces constant repainting */

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.85rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #d5c38b 30%, 
        #ffe19f 50%, 
        #cfbd87 70%, 
        #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 0 10px rgba(175, 160, 114, 0.25),
        0 0 20px rgba(250, 215, 139, 0.15);
    position: relative;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
}

.header-title:hover {
    filter: brightness(1.15);
}

/* Server Dropdown */
.server-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, rgba(14, 14, 14, 0.98), rgba(14, 14, 14, 0.95));
    border: 1px solid rgba(222, 155, 53, 0.3);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 400px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(222, 155, 53, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.server-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.server-dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
}

.header-title-container {
    position: relative;
}
/* Server Connect Button */
.server-connect-btn {
    position: absolute;
    right: 0;
    margin-right: -4em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    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: 8px;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-left: 1rem;
}

.server-connect-btn:hover {
    background: linear-gradient(135deg, rgba(222, 155, 53, 0.25), rgba(240, 176, 74, 0.15));
    border-color: rgba(222, 155, 53, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(222, 155, 53, 0.3);
}

.server-connect-btn i {
    color: white;
    font-size: 1.3rem;
}

.server-connect-btn:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

.server-dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.server-dropdown-item:hover {
    background: linear-gradient(90deg, rgba(222, 155, 53, 0.15), transparent);
    color: var(--text-primary);
}

.server-dropdown-item:hover::before {
    opacity: 1;
}

.server-dropdown-item.active {
    color: var(--accent);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), transparent);
}

.server-dropdown-item.active::before {
    opacity: 1;
    background: var(--accent);
}

.server-dropdown-item i {
    color: var(--primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.server-dropdown-item:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

.server-dropdown-item.active i {
    color: var(--accent);
}

/* Removed titleShine animation - reduces constant background-position changes */

.header-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 2rem);
    height: 200%;
    background: radial-gradient(ellipse at center, 
        rgba(175, 160, 114, 0.05) 0%, 
        transparent 70%);
    /* Removed blur filter - heavy GPU cost */
    z-index: -1;
}

/* Removed titleGlow animation - reduces constant scaling */

.header-title i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #d5c38b 30%, 
        #ffe19f 50%, 
        #cfbd87 70%, 
        #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Removed iconShine and iconPulse animations - reduces constant animation overhead */

.back-btn,
.profile-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(88, 101, 242, 0.2);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 5px;
    letter-spacing: 1px;
    border: 1px solid rgba(88, 101, 242, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.profile-container {
    background: rgba(222, 155, 53, 0.15);
    border: 1px solid rgba(222, 155, 53, 0.3);
}

.back-btn:hover,
.profile-container:hover {
    background: rgba(88, 101, 242, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.3);
    border-color: rgba(88, 101, 242, 0.6);
}

.profile-container:hover {
    background: rgba(222, 155, 53, 0.25);
    border-color: rgba(222, 155, 53, 0.5);
    box-shadow: 0 6px 20px rgba(242, 165, 88, 0.2);
}

.back-btn:active {
    transform: translateX(-3px) scale(0.98);
}

.back-btn i {
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-3px);
}

.profile-icon {
    font-size: 1rem;
    background: linear-gradient(135deg, 
        #fde3b5 0%, 
        #fada8b 50%, 
        #fdeab5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.profile-container:hover .profile-icon {
    transform: scale(1.1);
}

.profile-name {
    font-weight: 600;
    color: var(--text-se);
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

#profile-action-icon {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Red color for logout icon */
#profile-action-icon.fa-sign-out-alt {
    color: #ef4444;
}

.profile-container:hover #profile-action-icon.fa-sign-out-alt {
    color: #dc2626;
}

/* Orange color for login icon */
#profile-action-icon.fa-sign-in-alt {
    color: #fb923c;
}

.profile-container:hover #profile-action-icon.fa-sign-in-alt {
    color: #f97316;
}

.profile-container:hover #profile-action-icon {
    transform: scale(1.1);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    transform: scale(1.1);
    color: #dc2626;
}

.logout-btn i {
    font-size: 10px;
}

/* Orange style for login button */
.logout-btn.login {
    background: rgba(251, 146, 60, 0.1);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.logout-btn.login:hover {
    background: rgba(251, 146, 60, 0.2);
    border-color: rgba(251, 146, 60, 0.4);
    color: #f97316;
}

/* Main Container */
.main-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
}

.main-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(222, 155, 53, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(240, 176, 74, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 1rem 0 3rem 0;
    /* Removed animation - keeping only transitions */
}

/* Removed slideDown animation */

.stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    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;
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 160px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* Removed animation - keeping only transitions */
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Removed fadeInUp animation and stagger delays */

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

/* Total Players Card - Blue Theme */
#stat-total-players {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

#stat-total-players::before {
    background: linear-gradient(90deg, transparent, rgba(53, 143, 222, 0.8), transparent);
}

#stat-total-players:hover {
    border-color: rgba(53, 157, 222, 0.4);
    box-shadow: 0 8px 32px rgba(53, 163, 222, 0.15);
}

#stat-total-players .stat-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(96, 165, 250, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

/* Online Players Card - Green Theme */
#stat-online-players {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.02) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

#stat-online-players::before {
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.8), transparent);
}

#stat-online-players:hover {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.15);
}

#stat-online-players .stat-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(74, 222, 128, 0.15) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* Steam Players Card - Steam Blue Theme */
#stat-steam-players {
    background: linear-gradient(135deg, rgba(102, 192, 244, 0.08) 0%, rgba(102, 192, 244, 0.02) 100%);
    border: 1px solid rgba(102, 192, 244, 0.2);
}

#stat-steam-players::before {
    background: linear-gradient(90deg, transparent, rgba(102, 192, 244, 0.8), transparent);
}

#stat-steam-players:hover {
    border-color: rgba(102, 192, 244, 0.4);
    box-shadow: 0 8px 32px rgba(102, 192, 244, 0.15);
}

#stat-steam-players .stat-icon {
    background: linear-gradient(135deg, rgba(102, 192, 244, 0.25) 0%, rgba(102, 192, 244, 0.15) 100%);
    border: 1px solid rgba(102, 192, 244, 0.3);
    color: #66c0f4;
}

/* New Players Card - Red Theme */
#stat-new-players {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.02) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

#stat-new-players::before {
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.8), transparent);
}

#stat-new-players:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.15);
}

#stat-new-players .stat-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(248, 113, 113, 0.15) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Average Skill Card - Gold Theme */
#stat-avg-skill {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

#stat-avg-skill::before {
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.8), transparent);
}

#stat-avg-skill:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15);
}

#stat-avg-skill .stat-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(251, 191, 36, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

/* Stat card pseudo-elements and hover styles are now handled individually for each card */


.stat-content {
    z-index: 1;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-gray-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top:0.75em;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    /* Removed animation - keeping only transitions */
}

/* Removed fadeInSlide animation */

.sidebar-container {
    display: none;
}
/* All select fields in one horizontal row */
.sidebar-selects-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
}

.sidebar-selects-row .sidebar-section {
    flex: 1 1 0;
    min-width: 100px;
    display: flex;
    flex-direction: column;
}

.sidebar-selects-row .sidebar-section h3 {
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Inline filter items (range sliders under select inputs) */
.filter-item.inline-filter {
    margin-top: 1.25rem;
}

.filter-item.inline-filter h3 {
    margin-bottom: 0.25rem;
}

.filter-item.inline-filter.reset-item {
    padding-top: 0.75rem;
}

.filter-item.inline-filter.reset-item .reset-filters-btn {
    width: 100%;
}

/* Invisible spacer to maintain column height alignment */
.filter-item.inline-filter.filter-spacer {
    visibility: hidden;
    min-height: 60px;
    margin-top: 0.75rem;
}

/* Mobile-only legacy stacked filters */
.mobile-stats-filters {
    display: none;
}

.mobile-stats-filters .stats-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 0.9rem 1.1rem;
}

.sidebar-section i{
    font-size: 0.7rem;
    color: var(--color-primary);
}

.range-values i {
    color: var(--color-gray);
}

.sidebar-selects-row .filter-item {
    flex: 1 1 0;
    min-width: 70px;
}

.sidebar-selects-row .filter-item.sort {
    flex: 1 1 0;
    min-width: 70px;
}

/* Stats filters in one horizontal row */
.sidebar-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.sidebar-filters-row .filter-item {
    flex: 1 1 auto;
    min-width: 100px;
}

.sidebar-filters-row .filter-item.sort {
    flex: 0 1 auto;
    min-width: 80px;
}

/* Legacy grid layout - kept for backwards compatibility */
.sidebar-row-1 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.sidebar-row-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.sidebar-section.advanced-sorting {
    flex: 1 1 auto;
}

.sidebar-section.stats-section {
    flex: 1 1 auto;
}

.sidebar-section.reset-section {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

/* Advanced Sorting Grid */
.advanced-sorting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Filter Row Horizontal */
.filter-row-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.sidebar,
.table-container {
    transition: all 0.3s ease;
}


.table-container:hover {
        border-color: rgba(222, 155, 53, 0.25);
}
.table-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(222, 155, 53, 0.8), rgba(240, 176, 74, 0.8), transparent);
}

.table-separator {
    border-top: 1px solid rgba(255,255, 255, 0.1);
    margin: 2em 0;
}

.sidebar-section {
    margin-bottom: 0;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-gray-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box input:hover {
    border-color: rgba(222, 155, 53, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(222, 155, 53, 0.15), 0 0 20px rgba(222, 155, 53, 0.1);
}

.icon-btn {
    padding: 0.75rem;
    background: linear-gradient(135deg, #de9b35 0%, #f0b04a 100%);
    border: 1px solid rgba(240, 176, 74, 0.5);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: linear-gradient(135deg, #f0b04a 0%, #f5c678 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(222, 155, 53, 0.4);
    color: #171a21;
}

.sidebar-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 0.8rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.sidebar-select {
    cursor: pointer;
    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 fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

#flags-input {
    cursor: text;
}

h1, h2, h3, h4, h5, h6, p, div { 
    cursor: default;
}

.sidebar-select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-select:active {
    transform: translateY(0);
}

.sidebar-select option {
    background: var(--color-dark);
    color: var(--color-white);
}

.sidebar-select option:hover,
.sidebar-select option:checked {
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent);
}

.sidebar-select optgroup {
    background: rgb(82, 82, 82);
}

.admin-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #8666bc 0%, #5a2cc7 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.admin-btn.individual {
    background:  rgba(44, 88, 199, 0.1);
}

.admin-btn:hover {
    transform: translateY(-2px);
}

.admin-btn.danger {
    background: rgba(199, 44, 44, 0.1);
}

/* Active state for admin toggle buttons */
.admin-btn.active {
    outline: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(222, 155, 53, 0.15), 0 6px 20px rgba(222, 155, 53, 0.5);
    filter: saturate(1.1);
}

.admin-btn.active.danger {
    outline: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(250, 139, 139, 0.15), 0 6px 20px rgba(250, 139, 139, 0.5);
    filter: saturate(1.1);
}

/* Action column buttons styling */
.col-action { width: 60px; text-align: center; }
.action-btn.manipulate, .action-btn.reset { background: linear-gradient(135deg, #3a61ed 0%, #5c88f6 100%); }
.action-btn.manipulate:hover, .action-btn.reset:hover { background: linear-gradient(135deg, #5c92f6 0%, #8b9cfa 100%); }
.action-btn.remove { background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%); }
.action-btn.remove:hover { background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%); }

/* Manipulate/Reset/Remove toggle states (row highlight if mode active) */
tbody tr.manipulate-mode { box-shadow: inset 4px 0 0 #de9b35; }
tbody tr.reset-mode { box-shadow: inset 4px 0 0 #f59e0b; }
tbody tr.remove-mode { box-shadow: inset 4px 0 0 var(--danger); }

/* Modal specific minor additions */
#manipulate-stats-fields { 
    display: flex;
    flex-direction: column;
    gap: 0.75rem; 
}
.manip-group { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 0.5rem 1rem;
}
.manip-group h4 {
    display: none;
    grid-column: 1 / -1;
    margin: 0 0 0.5rem 0;
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.manip-field { 
    font-size: 0.75rem; 
    display: flex;  
    flex-direction: column; 
    gap: 0.25rem; 
    color: var(--text-secondary);
}
.manip-field input { 
    flex: 1 1 40%;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(222, 155, 53, 0.3);
    border-radius: 8px;
    background: rgba(15, 10, 26, 0.5);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.3s 
ease, box-shadow 0.3s 
ease;
}
.manip-field input:focus { 
    outline: none; 
    border-color: rgba(222, 155, 53, 0.5); 
}

/* Players Per Page select special styling when custom revealed */
#items-per-page-custom { margin-top:0.5rem; }

/* Stats Filter Section */
.stats-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: flex-end;
    margin-top: 1em;
}

.stats-filter-grid .filter-row {
    flex: 1 1 100%;
}

.stats-filter-grid .filter-item {
    flex: 1 1 auto;
    min-width: 100px;
}

.stats-filter-grid .filter-item h3 {
    margin-bottom: 0;
}

.stats-filter-grid .filter-item.reset-item {
    flex: 0 0 auto;
    min-width: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height:60px;
    margin-left: 1em;
}

.stats-filter-grid .filter-item.reset-item .reset-filters-btn {
    white-space: nowrap;
    margin-bottom: auto;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
    align-items: flex-end;
}

.filter-row .filter-item {
    flex: 1 1 auto;
    min-width: 80px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    position: relative;
    padding: 0 0.5rem;
}

.filter-item::before {
    display: none;
}

.filter-item label {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(222, 155, 53, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    padding-left: 2px;
}

.filter-row .filter-item.sort label {
    font-size: 0.7rem;
    padding: 0.25rem 0;
}


.range-container {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 0.5rem;
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: rgba(222, 155, 53, 0.9);
    border-radius: 50%;
    cursor: grab;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.15s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: rgba(222, 155, 53, 1);
    border-color: rgba(255, 255, 255, 0.5);
}

.range-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.range-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: rgba(222, 155, 53, 0.9);
    border-radius: 50%;
    cursor: grab;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.15s ease;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: rgba(222, 155, 53, 1);
}

.range-slider::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.range-slider:focus {
    background: rgba(222, 155, 53, 0.15);
}

.range-slider::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    border: none;
}

.range-values {
    font-size: 0.85rem;
    color: rgba(255, 240, 213, 0.7);
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.range-values::before,
.range-values::after {
    display:none;
    content: '';
    width: 8px;
    height: 1px;
    background: rgba(222, 155, 53, 0.4);
}

/* Dual-thumb slider styles - Modern Pill Design */
.dual-thumb-slider {
    position: relative;
    width: 100%;
    height: 28px;
    padding: 0 8px;
}

.dual-track {
    position: absolute;
    top: 50%;
    left: 8px;
    right: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.dual-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 4px,
        rgba(255, 255, 255, 0.03) 4px,
        rgba(255, 255, 255, 0.03) 5px
    );
}

.dual-range {
    position: absolute;
    top: -1px;
    height: calc(100% + 2px);
    background: linear-gradient(180deg, 
        rgba(217, 176, 115, 0.7) 0%,
        rgba(219, 179, 120, 0.5) 50%,
        rgba(219, 179, 120, 0.7) 100%);
    border-radius: 10px;
    transition: background 0.2s ease;
    pointer-events: none;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 8px rgba(222, 155, 53, 0.3);
}

.dual-thumb {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    background: linear-gradient(145deg, 
        rgba(255, 245, 225, 0.95) 0%,
        rgba(214, 180, 116, 0.9) 100%);
    border-radius: 50%;
    cursor: grab;
    border: none;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(221, 174, 105, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translate(-50%, -50%);
    z-index: 3;
    user-select: none;
}

.dual-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: rgba(175, 140, 95, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dual-thumb:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(216, 174, 111, 0.8),
        0 0 20px rgba(220, 175, 106, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.dual-thumb.dragging {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.6),
        0 0 0 3px rgba(222, 155, 53, 1),
        0 0 25px rgba(222, 155, 53, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.dual-thumb-max {
    z-index: 4;
}

.reset-filters-btn {
    padding: 0.65rem 1.25rem;
    height: fit-content;
    margin-top: auto;
    background: linear-gradient(145deg, 
        rgba(239, 68, 68, 0.2) 0%,
        rgba(200, 50, 50, 0.25) 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 20px;
    color: rgba(255, 130, 130, 0.95)!important;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    box-shadow: 
        0 2px 8px rgba(239, 68, 68, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.reset-filters-btn::before {
    display: none;
}

.reset-filters-btn:hover {
    background: linear-gradient(145deg, 
        rgba(239, 68, 68, 0.35) 0%,
        rgba(200, 50, 50, 0.4) 100%);
    border-color: rgba(239, 68, 68, 0.7);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.reset-filters-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.reset-filters-btn i {
    font-size: 0.8rem;
    color: inherit!important;
}

/* Responsive adjustments for filter grid */
@media (max-width: 1200px) {
    .filter-row {
        gap: 0.75rem;
    }
}

.quick-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid #333;
    /* Removed backdrop-filter - extremely expensive */
    position: relative;
}

.quick-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    border-radius: inherit;
    z-index: -1;
}

.quick-stat span:first-child {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.quick-stat span:last-child {
    color: var(--accent);
    font-weight: 600;
}

/* Main Content */
.main-content {
    min-height: 500px;
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.table-container {
    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: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--spacing-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Ensure pseudo-element glow stays behind content but above background */
.sidebar > *,
.table-container > * {
    position: relative;
    z-index: 1;
}

/* Removed particleFloat animation - heavy blur + transform causes lag */

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    position: relative;
}


.table-header h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 
        0 0 10px rgba(250, 206, 139, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
}

.table-header h2:hover {
    color: var(--accent);
    text-shadow: 
        0 0 15px rgba(217, 168, 95, 0.3),
        0 0 30px rgba(228, 175, 95, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.table-header h2 i {
    vertical-align: bottom;
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(250, 209, 139, 0.15));
    transition: all 0.3s ease;
}

.table-header h2:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

.refresh-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #de9b35 0%, #f0b04a 100%);
    border: 1px solid rgba(240, 176, 74, 0.5);
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #f0b04a 0%, #f5c678 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(222, 155, 53, 0.4);
    color: #171a21;
}

.table-wrapper {
    overflow: visible;
    /* Display all content without any scrolling container */
    max-height: none;
    border-radius: 16px;
    position: relative;

    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.15);
    border-radius: var(--radius-xl);
}

/* Show scrollbar only when needed (more than 15 items per page) */
.table-wrapper.no-scroll {
    overflow: visible;
}


.table-wrapper::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -2px;
    right: -2px;
    height: 6px;
    border-radius: 0 0 16px 16px;
    /* Removed blur filter - heavy GPU cost */
}

/* Removed borderPulse animations - constant filter repainting */

.players-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1rem;
    overflow: hidden;
    border-radius: 8px;
}

.players-table thead {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);

    /* Mild glow for player names (follows inline color) */
    .players-table .player-name {
        text-shadow: 0 0 6px currentColor;
    }

    /* Slightly stronger on hover */
    .players-table .player-name:hover {
        text-shadow: 0 0 8px currentColor, 0 0 14px currentColor;
    }
    border-radius: 12px 12px 0 0;
    z-index: 10;

}


.players-table th {
    padding: var(--spacing-sm) 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.players-table th .header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.4rem;
    font-size: 0.85rem;
    color: var(--color-primary);
}

.players-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.players-table th.sortable::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #f0b04a, #de9b35, #f0b04a);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(222, 155, 53, 0.8);
}

.players-table th.sortable::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(222, 155, 53, 0.3), 
        transparent);
    transition: left 0.6s ease;
}

.players-table th.sortable:hover {
    background: 
        radial-gradient(circle at center, rgba(222, 155, 53, 0.4) 0%, rgba(196, 135, 42, 0.2) 100%);
    color: #ffffff;
    text-shadow: 
        0 0 15px rgba(222, 155, 53, 1),
        0 0 30px rgba(196, 135, 42, 0.8);
    transform: translateY(-2px);
    
}

/* Avoid vertical shift on hover for the weapon header specifically,
   since it acts as a hover target for the dropdown. */
.players-table th.col-weapon.sortable:hover {
    transform: none; /* prevent slight 1-2px lift that causes jitter */
}

.players-table th.sortable:hover::before {
    width: 100%;
}

.players-table th.sortable:hover::after {
    left: 100%;
}

.players-table th.sortable i {
    margin-left: 0.25rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.players-table th.sortable i:nth-of-type(2),
.weapon-header i {
    font-size:0.65rem!important;
    vertical-align: middle;
}

.players-table th.sortable:hover i {
    opacity: 1;
    transform: scale(1.2);
}

.players-table tbody tr {
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s ease, transform 0.2s ease;
    position: relative;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Removed animation - keeping only transitions */
}

/* Removed fadeInRow animation */


.players-table tbody tr:hover::before {
    opacity: 1;
}

.players-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.01);
}

.players-table tbody tr:hover {
    background: rgba(222, 155, 53, 0.08) !important;
}

.players-table td {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: default;
    height: 50px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

td div.col { display: inline-block; vertical-align: middle;}

/* Enhanced Stats Styling */
.players-table td p.stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}


.players-table td p.stats:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(59, 130, 246, 0.6);
}

.players-table td p.stats:hover::before {
    left: 100%;
}

.players-table td p.stats i { 
    font-size: 0.75rem;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

/* Deaths Stats - Red Theme */
.players-table td.col-deaths p.stats {
    background: rgba(239, 68, 68, 0.125);
    color: rgb(239, 68, 68);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.players-table td.col-deaths p.stats:hover {
    box-shadow: 
        0 4px 15px rgba(244, 67, 54, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(244, 67, 54, 1);
}

/* Headshot Stats - Gold/Orange Theme */
.players-table td.col-hs p.stats {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.players-table td.col-hs p.stats:hover {
    box-shadow: 
        0 4px 15px rgba(255, 193, 7, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 193, 7, 1);
}

/* Weapon Stats - Gray/Silver Theme */
.players-table td.col-weapon p.stats {
    background: rgba(234, 234, 234, 0.125);
    color: rgb(232, 232, 232);
    border: 1px solid rgba(230, 230, 230, 0.25);
}

.players-table td.col-weapon p.stats:hover {
    box-shadow: 
        0 4px 15px rgba(158, 158, 158, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Kills Stats - Green Theme (if needed) */
.players-table td.col-kills p.stats {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.players-table td.col-kills p.stats:hover {
    box-shadow: 
        0 4px 15px rgba(76, 175, 80, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(110, 255, 115, 0.8);
}

.loading-cell {
    text-align: center;
    padding: 3rem !important;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Column-Specific Styling */

/* Rank Column */
.col-rank {
    width: 50px!important;
    text-align: center;
    font-weight: 700;
    color: var(--text-secondary);
}

.col-rank.rank-top {
    font-size: 1.1rem;
}

.col-rank.rank-1{
    color: #ffd700;
}

.col-rank.rank-2 {
    color: #c0c0c0;
}

.col-rank.rank-3 {
    color: #cd7f32;
}

/* Removed bounce animations on top ranks - reduces constant repainting */

/* XP Column */
.col-xp {
    width: 120px;
}

/* Name Column */
.col-name {
    min-width: 320px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-header-column {
    display: flex;
    flex-direction: row;
}

.player-header-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-flag {
    height:20px;
    padding-right: 0;
    transition: all 0.3s ease;
    display: inline-block;
}

.player-flag:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.player-name {
    flex: 1;
}

.player-steam-link {
    color: var(--color-gray-lighter);
    font-size: 0.75rem;
}

.player-steam-link a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.player-steam-link a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.player-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.player-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;

}

.player-avatar img:hover {
    transform: scale(1.1);
}

.player-new {
    padding-left: 0.5rem;
}
.player-steam img {
    vertical-align: top;
}

.player-new img {
    width: 40px;
}

.player-steam {
    height:12px;
}
.player-steam img {
    width: 12px;
}
.player-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.3s ease;
    max-width: 280px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.player-name:hover {
    overflow: visible;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(222, 155, 53, 0.5);
}
/* Kills Column */
.col-kills {
    text-align: center;
    color: var(--success);
    font-weight: 600;
}

td.col-skill {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Deaths Column */
.col-deaths {
    text-align: center;
    color: var(--danger);
    font-weight: 600;
}

/* K.D. Ratio Column */
.col-kdr {
    text-align: center;
    color: var(--text-primary);
    font-weight: 700;
}

/* Headshot % Column */
td.col-hs,
.hs-container { text-align: center; display: flex; align-items: center; justify-content: center;}
.hs-circle { display: inline-block; vertical-align: middle; margin-left: 6px; margin-top: 5px;}
/* .hs-svg filter removed - heavy GPU cost with drop-shadow */
.hs-bg { stroke: rgba(255,255,255,0.12); }
.hs-fg { stroke: #f59e0b; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-linecap: round; }
.hs-label { fill: #fff; font-weight: 800; font-size: 10px; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }
.hs-count { color: var(--text-secondary); font-weight: 600; }



.skill-badge {
    display: flex;
    padding:1px 0 1px 0;
    align-items: center;
    justify-content: space-between;
    border: 1px solid;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    line-height: 1.3;
    height: 25px;
    width: 65px;
}

.skill-badge:hover {
    transform: translate3d(0, -1px, 0) scale(1.04);
}

.skill-level {
    width: 25px;
    text-align: center;
    color: #222;
    font-weight: 900;
}

.skill-range {
    text-align: center;
    background: rgba(255,255,255,0.9);
    width: 35px;
    height:100%;
    font-weight: 400;
    font-size: 1rem;
    color: #222;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.number-container {
    background-image: url('../images/xp-border.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 85px;
    text-align:center;
    font-size: 0.85rem;
    font-weight: 900;
    height: 2rem;
    display:flex;
    align-items: center;
    justify-content: center;
    font-family: Tahoma, sans-serif;
    font-style: italic;
    transition: all 0.3s ease;
}

.number-container:hover {
    transform: scale(1.05);
    filter: brightness(1.15);
}

.number-container .number {
    margin-left: 0.5em;
    cursor: default;
}

/* Rank Badge Column */
.col-rank-badge {
    text-align: center;
}

.col-hs {

}

/* Weapon Column */
.col-weapon { text-align: center; }
.weapon-icon { height: 20px;  vertical-align: middle; }
.weapon-kills {color: var(--text-secondary); font-weight: 600; }

/* Weapon header dropdown */
.weapon-header { 
    position: relative; 
    display: inline-block;
}

.weapon-header-icon { 
    filter: brightness(1.2);
    height: 35px; 
    vertical-align: middle;
    transition: all 0.3s ease;
}


.weapon-dropdown { 
    position: fixed; 
    top: 0; 
    left: 0; 
    transform: translate(-50%, -8px) scale(0.98);
background: linear-gradient(135deg, rgba(222, 155, 53, 0.04) 0%, transparent 40%, transparent 60%, rgba(139, 92, 246, 0.04) 100%), linear-gradient(135deg, rgba(30, 30, 35, 0.92) 0%, rgba(20, 20, 25, 0.95) 100%);
    backdrop-filter: blur(20px)!important;
    -webkit-backdrop-filter: blur(20px)!important;
    border: 1px solid rgba(222, 155, 53, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(222, 155, 53, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 12px; 
    padding: 1rem; 
    min-width: 300px; 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 0.5rem;
    z-index: 9999;
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none;
    transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);


}

.weapon-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 6px solid rgba(255, 240, 213, 0.15);
}

.weapon-dropdown::after {
    display: none;
}

.weapon-dropdown[aria-hidden="false"] { 
    opacity: 1; 
    visibility: visible; 
    pointer-events: auto; 
    transform: translate(-50%, 0) scale(1);
}

.weapon-item { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-direction: column;
    gap: 0.2rem; 
    padding: 0.4rem 0.25rem; 
    border: 1px solid transparent; 
    background: transparent;
    color: rgba(255, 240, 213, 0.7); 
    border-radius: 8px; 
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.weapon-item::before {
    display: none;
}

.weapon-item:hover { 
    background: rgba(222, 155, 53, 0.1);
    border-color: rgba(222, 155, 53, 0.2);
    color: var(--text-primary);
}

.weapon-item:active {
    transform: scale(0.97);
    background: rgba(222, 155, 53, 0.15);
}

.weapon-item img { 
    filter: brightness(1.5);
    height: 28px;
    transition: all 0.2s ease;
    opacity: 0.85;
}

.weapon-item:hover img {
    filter: brightness(1.1) saturate(1);
    opacity: 1;
    transform: scale(1.05);
}

.weapon-item span { 
    font-size: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.weapon-item:hover span {
    opacity: 1;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 7rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.rank-badge:hover {
    transform: translate3d(0, -2px, 0) scale(1.08);
    filter: 
        drop-shadow(0 6px 20px rgba(222, 155, 53, 0.35))
        brightness(1.1);
}

/* Rank badge with no image configured in INI */
.rank-badge.no-image {
    background-image: none !important;
    opacity: 0.5;
}

/* Actions Column */
.col-actions {
    position: relative;
    width: 0;
    text-align: center;
    z-index: 5;
    padding: 0;
    visibility: hidden;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.4s;
    white-space: nowrap;
}

.col-actions.show {
    width: 60px;
    visibility: visible;
    padding: 0 0.5rem;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s;
}

/* Action buttons inside the column - no fade/scale animations */
.action-btn i {
    margin-right: 0.5em;
}


/* Use inset box-shadow instead of pseudo-elements to avoid layout shifts */
tbody tr.offline {
    box-shadow: inset 4px 0 0 rgb(229, 69, 69);
}

tbody tr.online {
    box-shadow: inset 4px 0 0 rgb(81, 190, 38);
}

tr.top-player::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, 
            rgba(255, 215, 0, 0.1) 0%, 
            transparent 30%, 
            transparent 70%, 
            rgba(255, 215, 0, 0.05) 100%);
    pointer-events: none;
    /* Removed animation - keeping only transitions */
}

tr.top-player:nth-child(2)::after {
    background: 
        linear-gradient(90deg, 
            rgba(217, 215, 255, 0.15) 0%, 
            transparent 30%, 
            transparent 70%, 
            rgba(221, 220, 255, 0.075) 100%);
}

tr.top-player:nth-child(3)::after {
    background: 
        linear-gradient(90deg, 
            rgba(183, 61, 0, 0.15) 0%, 
            transparent 30%, 
            transparent 70%, 
            rgba(197, 66, 0, 0.075) 100%);
}

/* Removed bounce animation */

/* Removed floatingGradients animation - constant transform/opacity changes cause lag */

/* Removed pulseGlow animation - constant opacity changes */

/* Removed tableGlow animation - heavy box-shadow calculations */

/* Removed borderPulse animation - constant filter blur changes */

.action-btns {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    position: absolute;
    top:0;
    height: 100%;
    width: 100%;
    padding: 0.5rem 0.25rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    color: white;
    z-index: -1;
}

.action-btn.delete {
    background: var(--danger);
}

.action-btn.delete:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* Utility */
.hidden { display: none !important; }

/* (Removed) Right action rail overlay styles were deleted as the UI now uses inline per-row action buttons. */

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(222, 155, 53, 0.2);
}

/* Table footer container holding pagination (left) and search (right) */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.table-footer .pagination {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    flex: 1 1 auto;
    justify-content: flex-start;
}

.table-footer .table-search {
    flex: 0 1 320px;
    max-width: 100%;
}

.table-footer .table-search input {
    background: rgba(0,0,0,0.45);
}

@media (max-width: 900px) {
    .table-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .table-footer .pagination {
        justify-content: center;
    }
    .table-footer .table-search {
        flex: 1 1 100%;
    }
}

.page-btn {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-gray-lighter);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 30px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    position: relative;
}

.page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 0%, rgba(222, 155, 53, 0.1) 0%, transparent 70%);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-btn:hover:not(.active):not(:disabled) {
    background: rgba(220, 164, 80, 0.15);
    border-color: rgba(219, 164, 80, 0.4);
    color: var(--color-primary);
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 4px 15px rgba(222, 155, 53, 0.2);
}

.page-btn:hover:not(.active):not(:disabled)::before {
    opacity: 1;
}

.page-btn.active {
    background: linear-gradient(135deg, #dda550 0%, #f1ba60 100%);
    border-color: rgba(240, 176, 74, 0.5);
    color: #171a21;
    font-weight: 600;
    box-shadow: 
        0 4px 20px rgba(222, 155, 53, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0 1rem;
}

/* Modal - Minimalistic Transparent Design */
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 0, 8, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(20, 20, 20, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 240, 213, 0.08);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(222, 155, 53, 0.7), 
        transparent);
}

.modal-content::after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0px;
    background: linear-gradient(135deg, rgba(255, 206, 101, 0.1) 0%, transparent 50%);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.2);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.3px;
}

.modal-header h3 i {
    color: rgba(223, 164, 75, 0.8);
    font-size: 1rem;
}

.close {
    font-size: 1.5rem;
    color: rgba(255, 240, 213, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.form-group:last-child {
    margin-bottom: 0;
}
.form-group {
    margin-top:1em;
}
.form-group label {
    display: block;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(222, 155, 53, 0.4);
    background: rgba(0, 0, 0, 0.4);
}

.warning-text {
    color: var(--warning);
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning);
    border-radius: 6px;
    margin: 0.75rem 0 1rem 0;
}

/* Manipulate Stats Grid - with labels */
.manipulate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5em 1em;
    margin-top: 1rem;
}

.manipulate-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

@media (max-width: 768px) {
    .manipulate-grid {
        grid-template-columns: 1fr;
    }
}

.manipulate-field label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.manipulate-field input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.manipulate-field input:focus {
    outline: none;
    border-color: rgba(222, 155, 53, 0.35);
    background: rgba(0, 0, 0, 0.35);
}

.manipulate-field input:read-only {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(17, 24, 39, 0.3);
    border-left: 3px solid #666;
}

/* Reset Stats Checkbox List - matches manipulate grid */
.checkbox-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
    margin-top: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
        background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.checkbox-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #de9b35;
    margin: 0;
}

.checkbox-item label {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
}

@media (max-width: 768px) {
    .checkbox-list {
        grid-template-columns: 1fr;
    }
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.15);
}

.btn {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-primary {
    background: rgba(221, 163, 75, 0.9);
    color: #fff;
    font-weight: 600;
}

.btn-primary:hover {
    background: rgba(222, 155, 53, 1);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Player Name Links */
.player-name {
    transition: all 0.3s ease;
}

.player-name:hover {
    text-shadow: 0 0 8px currentColor;
    transform: translateX(2px);
}

/* Removed fadeIn and slideUp animations */

/* ========================================
   BURGER MENU FOR RESPONSIVE HEADER
   ======================================== */

/* Burger Menu Button - Hidden by default */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    margin: 0.75rem auto;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
    transition: all 0.3s ease;
}

.burger-menu:focus {
    outline: none;
}

.burger-line {
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform-origin: center;
    box-shadow: 0 0 10px rgba(222, 155, 53, 0.5);
}

/* Burger Menu Animation - Active State */
.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Mobile Menu Container */
.mobile-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 60px);
    border-right: 1px solid rgba(250, 211, 139, 0.2);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 150;
    overflow-y: auto;
    padding: 0;

    background: linear-gradient(135deg, rgba(222, 155, 53, 0.04) 0%, transparent 40%, transparent 60%, rgba(139, 92, 246, 0.04) 100%), linear-gradient(135deg, rgba(200, 200, 210, 0.06) 0%, rgba(180, 180, 190, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    backdrop-filter: blur(20px)!important;
    -webkit-backdrop-filter: blur(20px)!important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.mobile-menu.active {
    left: 0;
}

/* Mobile Menu Header with Title */
.mobile-menu-header {
    padding: 1.5rem 0 1rem 0;
    background: linear-gradient(135deg, 
        rgba(222, 155, 53, 0.15) 0%, 
        rgba(196, 135, 42, 0.12) 100%);
    border-bottom: 1px solid rgba(222, 155, 53, 0.2);
    position: relative;
    overflow: visible;
}

.mobile-menu-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 50%, 
        rgba(222, 155, 53, 0.1) 0%, 
        transparent 70%);
    pointer-events: none;
}

.mobile-menu-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #d5c38b 30%, 
        #ffe19f 50%, 
        #cfbd87 70%, 
        #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    cursor: pointer;
    /* Removed animation - keeping only transitions */
}

.mobile-menu-title:hover {
    opacity: 0.8;
}

/* Mobile Server Dropdown */
.mobile-server-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.mobile-server-dropdown.active {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
}

.mobile-server-dropdown-item {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: #e0e0e0;
    transition: all 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid rgba(222, 155, 53, 0.1);
}

.mobile-server-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-server-dropdown-item:hover {
    background: rgba(222, 155, 53, 0.15);
    color: #ffffff;
}

.mobile-server-dropdown-item.active {
    background: linear-gradient(90deg, 
        rgba(196, 135, 42, 0.3) 0%, 
        rgba(222, 155, 53, 0.2) 100%);
    color: #ffffff;
    font-weight: 600;
}

.mobile-server-dropdown-item i {
    color: #e8b564;
    font-size: 1rem;
}

.mobile-server-dropdown-item.active i {
    color: #f59e0b;
}

.mobile-menu-title i {
    font-size: 1.3rem;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #d5c38b 30%, 
        #ffe19f 50%, 
        #cfbd87 70%, 
        #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    /* Removed animation - keeping only transitions */
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    /* Removed backdrop-filter - extremely expensive on full-screen overlay */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 140;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Items */
.mobile-menu-item {
    padding: 0.65rem 1rem;
    margin: 0.25rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-item:first-of-type {
    margin-top: 0.5rem;
}

.mobile-menu-item:hover {
    background: rgba(222, 155, 53, 0.1);
    transform: translateX(5px);
}

.mobile-menu-item a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.mobile-menu-item a i {
    font-size: 0.8rem;
    color: var(--primary);
    min-width: 20px;
    text-align: center;
}

.mobile-menu-item:hover a {
    color: var(--accent);
}

.mobile-menu-item:hover a i {
    transform: scale(1.1);
}

/* Mobile Menu Divider */
.mobile-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(222, 155, 53, 0.3), 
        transparent);
    margin: 0.5rem 1rem;
}

/* Mobile Sidebar Content */
.mobile-sidebar-content {
    display: none;
    padding: 0 1rem 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.mobile-sidebar-content.active {
    display: grid;
}

/* Hide inline filters in mobile sidebar - show only selects */
.mobile-sidebar-content .inline-filter,
.mobile-sidebar-content .filter-spacer {
    display: none !important;
}

/* Mobile stats filters block styling */
.mobile-sidebar-content .mobile-stats-filters {
    display: block !important;
    grid-column: span 2;
    margin-top: 0.5rem;
}

/* Cloned desktop filters for mobile */
.mobile-sidebar-content .mobile-cloned-filters {
    display: block;
    grid-column: span 2;
    margin-top: 0.5rem;
}

.mobile-sidebar-content .mobile-cloned-filters .stats-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    column-gap: 1.5rem;
}

.mobile-sidebar-content .filter-row,
.mobile-sidebar-content .sidebar-filters-row,
.mobile-sidebar-content .sidebar-selects-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1.5rem;
    grid-column: span 2;
}

.mobile-sidebar-content .sidebar-section {
    margin-bottom: 0.5rem;
}

/* Make sections with range sliders span full width */
.mobile-sidebar-content .sidebar-section:has(.stats-filter-grid),
.mobile-sidebar-content .sidebar-section:has(.range-container),
.mobile-sidebar-content .mobile-menu-divider {
    grid-column: span 2;
}

.mobile-sidebar-content .stats-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0;
    column-gap: 1.5rem;
}

.mobile-sidebar-content .stats-filter-grid .filter-item {
    min-width: 0;
}

.mobile-sidebar-content .stats-filter-grid .filter-item.reset-item {
    grid-column: span 2;
    height: auto;
    margin-left: 0;
}

.mobile-sidebar-content .sidebar-section h3 {
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
    padding-left: 2px;
    color: var(--color-gray-light);
}

.mobile-sidebar-content .sidebar-section i {
    font-size: 0.6rem;
    color: var(--color-primary);
}

/* Match filter item h3 styling to select input h3 styling */
.mobile-sidebar-content .mobile-cloned-filters .filter-item h3 {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
    padding-left: 2px;
    color: var(--color-gray-light);
}

.mobile-sidebar-content .mobile-cloned-filters .filter-item i {
    font-size: 0.65rem;
    color: var(--color-primary);
}

.mobile-sidebar-content .range-values {
    font-size: 0.6rem;
}
.mobile-sidebar-content .filter-item {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
}

.mobile-sidebar-content .dual-thumb {
    width: 15px;
    height:15px;
}
.mobile-sidebar-content .sidebar-select,
.mobile-sidebar-content .sidebar-input {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #fff;
    font-size: 0.6rem;
    font-family: var(--font-primary);
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    margin-bottom: 0;
}

.mobile-sidebar-content .sidebar-select:focus,
.mobile-sidebar-content .sidebar-input:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
}

.mobile-sidebar-content .sidebar-input {
    cursor: text;
    background-image: none;
}

.mobile-sidebar-content .filter-item label {
    font-size: 0.6rem;
    margin-bottom: 0.2rem;
}

.reset-filters-btn {
    margin-top: 0.5rem;
    width: 100%;
}

@media (max-width: 1600px) {
    .main-container {
        padding: 2rem 3rem;
    }
    .server-connect-btn,
    .header-title-container {
        display:none!important;
    }
    
    /* Show burger menu */
    .burger-menu {
        display: flex;
    }

    /* Hide desktop menu items and title */
    .header-content .back-btn,
    .header-content .profile-container,
    .header-content .header-title {
        display: none;
    }

    /* Adjust header for burger menu only */
    .header-content {
        justify-content: center;
    }
}
/* Responsive Design */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 280px 1fr;
    }
    
    /* Sidebar rows stack vertically on smaller screens */
    .sidebar-row-1 {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .sidebar-section.advanced-sorting {
        grid-column: span 2;
    }
    
    .sidebar-row-2 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .sidebar-section.reset-section {
        grid-column: 1;
        justify-content: center;
    }
    
    /* Show burger menu */
    .burger-menu {
        display: flex;
    }

    /* Hide desktop menu items and title */
    .header-content .back-btn,
    .header-content .profile-container,
    .header-content .header-title {
        display: none;
    }

    /* Adjust header for burger menu only */
    .header-content {
        justify-content: center;
    }
}



/* Hide mobile-only elements on desktop */
.mobile-only {
    display: none !important;
}

/* Custom Page Input Modal - Uses default modal styling */

/* Dots button styling */
.page-btn.dots-btn {
    color: var(--text-muted);
    font-weight: bold;
}

.page-btn.dots-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Removed shake animation */

/* Custom Page Modal - Error state for input */
.form-group input.error {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    /* Removed animation - keeping only transitions */
}

/* =================================
   COLLAPSIBLE ADMIN SIDEBAR
   ================================= */

/* Duplicate admin toggle button CSS removed */

/* Duplicate admin panel CSS removed */

/* removed duplicate admin-panel scrollbar styles (enhanced version kept below) */

/* Admin Panel Header */
/* removed duplicate admin-panel-header (enhanced header kept below) */


/* removed duplicate admin-close-btn (not used or redefined later) */

/* Admin Panel Content */
/* removed duplicate admin-panel content/section styles (enhanced versions kept) */
/* removed duplicate generic .admin-btn block (enhanced button styles kept below) */

/* Enhanced Admin Panel Features */

/* Modern Admin Toggle Button */
.admin-toggle-btn {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgb(215, 166, 92) 0%,rgb(229, 178, 97) 100%);
    color: white;
    padding: 1.2rem 0.5rem;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    cursor: pointer;
    box-shadow: 
        -6px 0 20px rgba(222, 155, 53, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    /* Keep toggle animation in perfect sync with the panel */
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    writing-mode: vertical-lr;
    text-orientation: mixed;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    /* Removed backdrop-filter - extremely expensive */
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    /* Ensure scaling does not nudge the button away from the panel edge */
    transform-origin: right center;
    z-index: 999;
}

.admin-toggle-btn:hover {
    /* Avoid horizontal nudge so it remains glued to the panel edge */
    transform: translateY(-50%) scale(1.05);
    box-shadow: 
        -8px 0 25px rgba(222, 155, 53, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #f0b04a 0%, #de9b35 100%);
}

.admin-toggle-text {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.admin-toggle-icon {
    font-size: 1rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.admin-toggle-btn.active {
    right: 380px;
}

.admin-toggle-btn.active .admin-toggle-icon {
    transform: rotate(180deg) scale(1.1);
}

/* Enhanced Admin Panel - Modern Minimalistic Design */
.admin-panel {
    position: fixed;
    font-family: var(--font-display);
    top: 0;
    right: -380px;
    width: 380px;
    height: calc(100vh);
    background: linear-gradient(135deg, rgba(222, 155, 53, 0.04) 0%, transparent 40%, transparent 60%, rgba(92, 143, 246, 0.04) 100%), linear-gradient(135deg, rgba(30, 30, 35, 0.7) 0%, rgba(20, 20, 25, 0.75) 100%);
    backdrop-filter: blur(20px)!important;
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 203, 119, 0.4);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.range-edit-btn {
    background: var(--color-gray-lighter);
    padding: 0.1em 0.25em;
    border: 1px solid #333;
    color: white;
    border-radius: 0.5em;
    transition: all 0.3s 
    cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.range-edit-btn:hover {
    cursor: pointer;
    transform: translateY(-1px) scale(1.02);
}

.admin-panel.active {
    right: 0;
}

.admin-panel::-webkit-scrollbar {
    width: 6px;
}

.admin-panel::-webkit-scrollbar-track {
    background: transparent;
}

.admin-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.admin-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Admin Panel Header - Clean & Minimal */
.admin-panel-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(218, 170, 99, 0.15) 0%, rgba(191, 148, 84, 0.12) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px)!important;
    -webkit-backdrop-filter: blur(10px)!important;
    box-shadow: 0 2px 10px rgba(222, 155, 53, 0.1);
}

.admin-panel-header:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #de9b35 20%, #f0b04a 50%, #de9b35 80%, transparent 100%);
}
.admin-panel-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.75rem;
    text-shadow: 0 0 10px rgba(175, 160, 114, 0.25), 0 0 20px rgba(250, 215, 139, 0.15);
    letter-spacing: 0.5px;
}

.admin-panel-header h3 i {
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 1;
}

/* Admin Panel Content */
.admin-panel-content {
    padding: 2rem;
}

/* Admin Sections - Transparent Glass Cards */
.admin-section {
    margin-bottom: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.admin-section:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.admin-section:last-child {
    margin-bottom: 0;
}

.admin-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-section h4 i {
    font-size: 1rem;
}

/* Section color accents via left border */
.admin-section:nth-child(1) { border: 1px solid rgba(59, 130, 246, 0.3); border-top: 2px solid rgba(59, 130, 246, 0.8); }
.admin-section:nth-child(1) h4 { color: rgba(147, 197, 253, 0.8); }
.admin-section:nth-child(1) h4 i { color: #3b82f6; }
.admin-section:nth-child(1)::before {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0px;
    background: linear-gradient(135deg, rgba(101, 170, 255, 0.1) 0%, transparent 50%);
}

.admin-section:nth-child(2) { border: 1px solid rgba(156, 59, 246, 0.3); border-top: 2px solid rgba(168, 85, 247, 0.6); }
.admin-section:nth-child(2) h4 { color: rgba(192, 132, 252, 0.8); }
.admin-section:nth-child(2) h4 i { color: #a855f7; }
.admin-section:nth-child(2)::before {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0px;
    background: linear-gradient(135deg, rgba(152, 101, 255, 0.1) 0%, transparent 50%);
}

.admin-section:nth-child(3) { border: 1px solid rgba(246, 59, 59, 0.2); border-top: 2px solid rgba(239, 68, 68, 0.6); }
.admin-section:nth-child(3) h4 { color: rgba(252, 165, 165, 0.8); }
.admin-section:nth-child(3) h4 i { color: #ef4444; }
.admin-section:nth-child(3)::before {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0px;
    background: linear-gradient(135deg, rgba(255, 101, 101, 0.1) 0%, transparent 50%);
}

.admin-section:nth-child(4) { border: 1px solid rgba(87, 246, 59, 0.2);border-top: 2px solid rgba(34, 197, 94, 0.6); }
.admin-section:nth-child(4) h4 { color: rgba(134, 239, 172, 0.8); }
.admin-section:nth-child(4) h4 i { color: #22c55e; }
.admin-section:nth-child(4)::before {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0px;
    background: linear-gradient(135deg, rgba(114, 255, 101, 0.1) 0%, transparent 50%);
}

/* Admin Buttons - Clean Minimal Style */
.admin-btn {
    width: 100%;
    padding: 1rem 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    text-align: left;
    font-family: var(--font-display);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}
.admin-btn:hover {
    color:var(--accent);
    background: rgba(255, 194, 95, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.admin-btn:active {
    transform: translateX(4px) scale(0.98);
}

.admin-btn:last-child {
    margin-bottom: 0;
}

.admin-btn i {
    font-size: 0.85rem;
    width: 1.25rem;
    text-align: center;
    transition: opacity 0.25s ease;
    color: #a060fa;
}

.admin-btn:hover i {
    opacity: 1;
}

.admin-section:nth-child(2) .admin-btn {
    border: 1px solid rgba(125, 59, 246, 0.3);
    border-left: 2px solid rgba(121, 59, 246, 0.8);
    background:  rgba(101, 44, 199, 0.1);
}

.admin-section:nth-child(4) .admin-btn {
    border: 1px solid rgba(59, 246, 78, 0.3);
    border-left: 2px solid rgba(62, 246, 59, 0.8);
    background:  rgba(62, 199, 44, 0.1);
}

.admin-section:nth-child(2) .admin-btn:hover,
.admin-section:nth-child(4) .admin-btn:hover {
    background: rgba(255, 194, 95, 0.1);
}

/* Button Variants */
.admin-btn.individual {
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-left: 2px solid rgba(59, 130, 246, 0.8);
}
.admin-btn.individual i { color: #60a5fa; }
.admin-btn.individual:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.admin-btn.danger {
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 2px solid rgba(246, 59, 59, 0.8);
}
.admin-btn.danger i { color: #f87171; }
.admin-btn.danger:hover {
    border-color: rgba(239, 68, 68, 0.3);
}

.admin-btn.check {
    border-left: 2px solid rgba(34, 197, 94, 0.5);
}
.admin-btn.check i { color: #4ade80; }
.admin-btn.check:hover {    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.3);
}

.admin-btn.active {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.4);
}


/* Enhanced Modal Styling - Minimalistic */
/* Modal base styles are defined above */

.modal-content {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-header {
    background: transparent;
}

/* Enhanced Modal Content Styles */
.loading-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.loading-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: rgba(222, 155, 53, 0.7);
}

.backup-sections {
    display: grid;
    gap: 1.5rem;
}

.backup-section {
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.backup-section:hover {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.1);
}

.backup-section h4 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.backup-section h4 i {
    color: rgba(222, 155, 53, 0.7);
}

.backup-section p {
    margin-bottom: 1.25rem;
    color: rgba(255, 240, 213, 0.6);
    font-size: 0.85rem;
    line-height: 1.5;
}

.form-file-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.form-file-input:hover {
    border-color: rgba(222, 155, 53, 0.4);
    background: rgba(0, 0, 0, 0.3);
}

.form-file-input:focus {
    outline: none;
    border-color: rgba(222, 155, 53, 0.5);
}

/* System Stats Styling */
.stats-grid-modal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.stat-item {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    text-align: center;
}

.stat-item-value {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(222, 155, 53, 0.9);
    margin-bottom: 0.35rem;
}

.stat-item-label {
    font-size: 0.75rem;
    color: rgba(255, 240, 213, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Health Check Styling */
.health-check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.875rem;
    margin-bottom: 0.4rem;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.health-check-item:hover {
    background: rgba(0, 0, 0, 0.25);
}

.health-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.health-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.health-status.good {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.health-status.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.health-status.error {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Success/Error Messages */
.success-message, .error-message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.success-message i, .error-message i {
    font-size: 1.2rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width 0.3s ease;
    /* Removed animation - keeping only transitions */
}

/* Removed progressPulse animation */

/* Enhanced Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    max-width: 400px;
}

.notification {
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* Removed backdrop-filter - extremely expensive */
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    /* Removed animation - keeping only transitions */
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

.notification:hover {
    transform: translateX(-5px) scale(1.02);
}

.notification.success {
    background: rgba(16, 96, 46, 0.5);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.notification.error {
    background: rgba(131, 38, 38, 0.5);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.notification.warning {
    background: rgba(145, 94, 7, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.notification.info {
    background: rgba(21, 47, 90, 0.5);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.notification-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.notification-message {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Removed notificationSlide animation */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Removed backdrop-filter - extremely expensive performance cost */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    background: 
        linear-gradient(135deg, rgba(15, 10, 26, 0.98) 0%, rgba(18, 12, 44, 0.95) 100%);
    padding: 2rem 3rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid rgba(222, 155, 53, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.loading-spinner {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    /* Removed animation - keeping only transitions */
}

.loading-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.loading-subtext {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Removed spin animation */

/* Enhanced Button States */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    /* Removed animation - keeping only transitions */
}

/* Removed btnSpin animation */

/* Tooltip System */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 118%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Enhanced Stats Cards in Modal */
.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.modal-stat-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
}

.modal-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(222, 155, 53, 0.3), transparent);
}

.modal-stat-card:hover {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.1);
}

.modal-stat-icon {
    font-size: 1.25rem;
    color: rgba(222, 155, 53, 0.7);
    margin-bottom: 0.5rem;
}

.modal-stat-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.modal-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-panel {
        width: 270px;
        right: -270px;
    }
    
    .admin-toggle-btn.active {
        right: 270px;
    }
    
    .admin-panel-content {
        padding: 1.5rem 1rem;
    }
    
    .admin-section {
        padding: 1.25rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .admin-toggle-btn {
               padding: 0.5rem 0.25rem;
        /* Match the panel transition exactly */
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .admin-toggle-text {
        font-size: 0.7rem;
    }
    
    .admin-panel-header h3 {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .admin-section h4::after {
        display: none;
    }
    

    .mobile-menu-item {
        padding: 0.55rem 0.9rem;
        margin: 0.2rem 0.6rem;
    }

    .mobile-menu-item a {
        font-size: 0.7rem;
    }
}


@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        max-height: 95vh;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 0.75rem 0.875rem;
    }
    
    
    .modal-body {
        padding: 0.875rem;
    }
    
    .modal-footer {
        padding: 0.75rem 0.875rem;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
    }
    
    .form-columns {
        gap: 0.75rem;
    }
    
    .form-column h4 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .form-column input {
        padding: 0.5rem 0.65rem;
        font-size: 0.8rem;
    }
    
    .manip-field input {
        padding: 0.45rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .large-modal .modal-content {
        max-height: 100vh;
    }
}

/* Index Page Responsive Design */
@media (max-width: 1200px) {
    .stats-section {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .content-wrapper {
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    
    .mobile-menu {
        width: 350px!important;
    }
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        margin: 1rem 0 2.5rem 0;
    }
    
    .stat-card {
        padding: 1.25rem 1rem;
    }
    .stat-card {
        padding: 1rem 0.875rem;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    .stat-value {
        font-size: 1.5rem;
    }
    .content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .sidebar-container {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .table-container {
        flex: 1 1 100%;
    }
}

@media (max-width: 1600px) {
    /* Hide desktop sidebar, show in mobile menu */
    .sidebar-container {
        display: none;
    }
    
    .mobile-sidebar-content {
        display: grid;
    }
    
    .mobile-menu {
        width: 500px;
        overflow-y: auto;
    }

    .stats-section {
        grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
    }
}

@media (max-width: 1300px) {
    .col-name {
        min-width: 250px!important;
    }
    .player-name {
        max-width: 150px!important;
    }
}

@media (max-width: 1200px) {
    .player-new img,
    .player-steam img {
        display:none;
    }

    .col-name {
        min-width: 200px!important;
    }
    .player-name {
        max-width: 100px!important;
    }

    .stats-section {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .mobile-menu {
        width: 400px;
    }

    .stat-card {
        padding: 1rem 0.875rem;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .stat-icon {
        font-size: 1.75rem;
        margin-bottom: 0;
    }
    
    .stat-content {
        text-align: left;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}


@media (max-width: 576px) {
    .modal-content {
        width: 98%;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 0.875rem 1rem;
    }
    
    
    .modal-close {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
    
    .modal-footer .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        flex: 1 1 100%;
    }
    
    .form-columns {
        gap: 1rem;
    }
    
    .form-column h4 {
        font-size: 0.95rem;
    }
    
    .form-column input {
        flex: 1 1 100%;
        font-size: 0.85rem;
        padding: 0.6rem 0.75rem;
    }
    
    .manip-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .manip-field {
        font-size: 0.8rem;
    }
    
    .modal-stat-card {
        padding: 1rem 0.75rem;
    }
    
    .modal-stat-value {
        font-size: 1.25rem;
    }
    
    .modal-stat-label {
        font-size: 0.75rem;
    }
    .player-name {
        max-width: 150px;
    }
    .stat-card {
        padding: 0.875rem 0.75rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .sidebar {
        padding: 1rem 0.875rem;
        border-radius: 12px;
    }
    
    .sidebar-section {
        margin-bottom: 0.875rem;
    }
    
    .sidebar-section h3 {
        font-size: 0.8rem;
        margin-bottom: 0.625rem;
    }
    
    .search-box input,
    .sidebar-select,
    .sidebar-input {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .search-btn {
        padding: 0.625rem 0.875rem;
    }
    
    .table-container {
        border-radius: 10px;
    }
    
    .table-header {
        margin-bottom: 0.875rem;
    }
    
    .table-controls {
        gap: 0.625rem;
    }
    
    .sort-btn,
    .weapon-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }

    
    .players-table th,
    .players-table td {
        padding: 0.625rem 0.375rem;
    }
    
    /* Stack table cells on very small screens */
    .players-table {
        display: flex;
    }

    .players-table thead {
        max-width: 20%;
    }

    .players-table thead tr {
        display: flex;
        flex-direction: column;
    }

    .players-table thead th {
        display: flex;
        flex-direction: column;
    }

    .players-table td {
        display: flex;
        flex-direction: column;
    }
    
    .pagination {
        gap: 0.375rem;
    }
    
    .page-btn {
        min-width: 32px;
        height: 32px;
        padding: 0.375rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 0.75rem 0.625rem;
    }
    
    .stat-icon {
        font-size: 1.35rem;
    }
    
    
    .sidebar {
        padding: 0.875rem 0.75rem;
    }
}

/* Insert Player Modal Styles */
.large-modal .modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.insert-player-form {
    padding: 1rem 0;
}

.form-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-column h4 {
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 2px solid rgba(222, 155, 53, 0.3);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-column h4 i {
    color: #de9b35;
}


.form-column label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.form-column { display: flex; flex-wrap: wrap; gap: 1em; }
.form-column input {
    flex: 1 1 40%;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-column input#new-player-name {
    flex: 1 1 100%;
}

.form-column input:focus {
    outline: none;
    border-color: rgba(222, 155, 53, 0.6);
    box-shadow: 0 0 0 2px rgba(222, 155, 53, 0.2);
}

.form-column input:required {
    border-left: 3px solid #de9b35;
}

.form-advanced-section {
    border-top: 1px solid rgba(222, 155, 53, 0.2);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.form-advanced-section h4 {
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-advanced-section h4 i {
    color: #de9b35;
}

.advanced-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-text {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-secondary {
    background: rgba(107, 114, 128, 0.2);
    border: 1px solid rgba(107, 114, 128, 0.5);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: rgba(107, 114, 128, 0.3);
    border-color: rgba(107, 114, 128, 0.7);
}

/* ==========================================================
   Anti-blur for hover transforms
   ----------------------------------------------------------
   When elements animate with transform/opacity, Windows can
   soften fonts due to layer promotion. Pre-promote common
   hover targets and stabilize rasterization so text stays
   crisp while still allowing the animations.
   ========================================================== */

/* Pre-promote frequently animated components */
.back-btn,
.refresh-btn,
.reset-top-btn,
.reset-filters-btn,
.page-btn,
.stat-card,
.quick-stat,
.admin-btn,
.admin-section,
.rank-badge,
.skill-badge,
.weapon-item,
.notification,
.modal-stat-card,
.players-table th.sortable,
.players-table tbody tr,
.players-table td p.stats,
.player-name {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure header labels and icons remain crisp during hover */
.players-table th.sortable span,
.players-table th.sortable i,
.players-table td,
.players-table td p.stats,
.admin-btn,
.page-btn {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Provide a stable base transform for elements that scale */
.stat-card,
.action-btn,
.admin-btn,
.page-btn,
.rank-badge,
.skill-badge,
.players-table td p.stats,
.player-name {
    transform: translate3d(0, 0, 0);
}

/* ==========================================================
   RESPONSIVE TABLE - MOBILE VIEW
   ----------------------------------------------------------
   Modern glassmorphism player cards with horizontal stats grid
   Unique design with prominent player header and floating elements
   ========================================================== */

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 1100px) {
    .table-wrapper {
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    .table-wrapper.no-scroll {
        overflow-y: visible !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    /* === LAYOUT RESETS === */
    .main-container {
        padding: 0.75rem;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar-container {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .main-content {
        flex: 1 1 100%;
    }
    
    .sidebar-row-1,
    .sidebar-row-2 {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .sidebar-section.advanced-sorting,
    .sidebar-section.reset-section {
        grid-column: 1;
    }
    
    .header-content {
        padding: 0.5rem 0;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .header-title {
        font-size: 1.15rem;
    }
    
    /* === STATS SECTION === */
    .stats-section {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        min-height: 150px;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-icon {
        font-size: 1.25rem;
        margin-bottom: 0;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    /* === TABLE CONTAINER === */
    .table-container {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .table-header {
        flex-direction: column;
        gap: 0.75rem;
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .table-header h2 {
        font-size: 1.3rem;
    }
    
    .table-header div {
        margin: 0 auto !important;
    }
    
    .table-controls {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .sort-group,
    .weapon-sort {
        flex-direction: column;
        gap: 0.375rem;
        width: 100%;
    }
    
    .sort-label {
        font-size: 0.8rem;
    }
    
    .sort-btn,
    .weapon-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
    
    /* === TABLE WRAPPER === */
    .table-wrapper {
        max-height: none !important;
        overflow-y: visible !important;
        border-radius: 12px;
        border: none;
    }
    
    .table-wrapper.no-scroll {
        overflow-y: visible !important;
    }
    
    .table-wrapper::before,
    .table-wrapper::after {
        display: none;
    }
    
    /* === PAGINATION === */
    .pagination {
        flex-wrap: wrap;
        gap: 0.375rem;
        justify-content: center;
    }
    
    .page-btn {
        min-width: 34px;
        height: 34px;
        padding: 0.375rem;
        font-size: 0.8rem;
        border-radius: 10px;
    }
    
    /* === ADMIN PANEL === */
    .admin-panel {
        right: -85%;
    }
    
    .admin-toggle-btn {
        gap: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    
    .admin-toggle-text {
        font-size: 0.7rem;
    }
    
    .admin-panel-header {
        padding: 0.875rem;
    }

    .admin-panel-header h3 {
        font-size: 1rem;
    }

    .admin-panel-header h3 i{
        font-size: 1.1rem;
    }
    
    .admin-section h4 {
        font-size: 0.75rem;
    }

    .admin-section h4 i {
        font-size: 0.8rem;
    }
    
    .admin-btn {
        padding: 0.75rem 0.75rem;
        font-size: 0.65rem;
    }
    
    .admin-btn i {
        font-size: 0.75rem;
    }
    
    .admin-panel-content {
        padding: 1.5rem;
    }
    
    .admin-section {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    /* === MODALS === */
    .modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        padding: 0;
    }
    
    .modal-header {
        padding: 0.875rem 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.875rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .large-modal .modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .form-columns,
    .advanced-fields-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ============================================================
   MOBILE CARD TRANSFORMATION (≤768px)
   Unique glassmorphism design with stats grid layout
   ============================================================ */
@media (max-width: 768px) {
    /* Hide table headers */
    .players-table thead {
        display: none;
    }
    
    /* Transform table to block layout */
    .players-table,
    .players-table tbody,
    .players-table tr,
    .players-table td {
        display: block;
        width: 100%;
    }
    
    .stat-content {
        text-align: center;
    }

    .players-table {
        font-size: 0.875rem;
    }
    .table-separator {
        margin: 0.5rem 0 2rem 0;
    }
    /* ====== PLAYER CARD ====== */
    .players-table tbody tr {
        position: relative;
        margin-bottom: 1.25rem;
        padding: 0;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        overflow: hidden;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    
    .players-table tbody tr:last-child {
        margin-bottom: 0;
    }
    
    /* Card hover/active states */
    .players-table tbody tr:active {
        transform: scale(0.98);
    }
    
    /* Online/Offline status - top accent bar */
    .players-table tbody tr::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, 
            rgba(100, 100, 100, 0.3) 0%, 
            rgba(150, 150, 150, 0.5) 50%, 
            rgba(100, 100, 100, 0.3) 100%);
    }
    
    .players-table tbody tr.online::before {
        background: linear-gradient(90deg, 
            rgba(34, 197, 94, 0.4) 0%, 
            rgba(74, 222, 128, 0.9) 50%, 
            rgba(34, 197, 94, 0.4) 100%);
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
    }
    
    .players-table tbody tr.offline::before {
        background: linear-gradient(90deg, 
            rgba(239, 68, 68, 0.4) 0%, 
            rgba(248, 113, 113, 0.9) 50%, 
            rgba(239, 68, 68, 0.4) 100%);
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    }
    
    /* ====== CELLS - DEFAULT HIDDEN ====== */
    .players-table td {
        display: none;
        padding: 0 !important;
        border: none;
        height: auto;
        min-height: 0;
    }
    
    .players-table td::before {
        display: none;
    }
    
    /* ====== RANK POSITION - Floating badge ====== */
    .players-table td.col-rank {
        display: flex;
        position: absolute;
        top: 20px;
        left: 15px;
        width: auto;
        height: auto;
        z-index: 10;
    }
    
    .players-table td.col-rank .col {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        height: 36px;
        padding: 0 0.5rem;
        background: linear-gradient(135deg, 
            rgba(222, 166, 81, 0.9) 0%, 
            rgba(180, 130, 50, 0.95) 100%);
        border-radius: 10px;
        font-size: 0.9rem;
        font-weight: 800;
        color: #000;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
        box-shadow: 
            0 4px 15px rgba(222, 166, 81, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    
    /* Top 3 rank special styling */
    .players-table td.col-rank.rank-1 .col {
        background: linear-gradient(135deg, #ffd700 0%, #ffec80 50%, #daa520 100%);
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    }
    
    .players-table td.col-rank.rank-2 .col {
        background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 50%, #a8a8a8 100%);
        box-shadow: 0 4px 20px rgba(192, 192, 192, 0.4);
    }
    
    .players-table td.col-rank.rank-3 .col {
        background: linear-gradient(135deg, #cd7f32 0%, #daa06d 50%, #b8860b 100%);
        box-shadow: 0 4px 20px rgba(205, 127, 50, 0.4);
    }
    
    /* ====== PLAYER NAME - Hero section ====== */
    .players-table td.col-name {
        display: flex;
        justify-content: center;
        padding: 1rem 1rem 0.875rem 60px !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        height:65px;
        min-height:65px;
    }
    
    .player-info {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.625rem;
        text-transform: none;
    }
    
    .player-avatar {
        flex-shrink: 0;
    }
    
    .player-flag {
        flex-shrink: 0;
        height: 18px;
        border-radius: 2px;
    }
    
    .player-name {
        flex: 1;
        min-width: 0;
        font-size: 1rem;
        font-weight: 700;
        color: #fff;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: none !important;
    }
    
    .player-steam,
    .player-new {
        flex-shrink: 0;
    }
    
    .player-steam img,
    .player-new img {
        display: block;
        width: 12px;
        height: 12px;
        opacity: 0.8;
    }

    .player-new img {
        width: 35px!important;
    }
    
    /* ====== XP - Hidden on mobile ====== */
    .players-table td.col-xp {
        display: none;
    }
    
    /* ====== STATS GRID - 3x2 Layout ====== */
    .players-table td.col-kills,
    .players-table td.col-deaths,
    .players-table td.col-hs,
    .players-table td.col-weapon,
    .players-table td.col-skill,
    .players-table td.col-rank-badge {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        padding: 0.75rem 0.5rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        width: 50%;
        float: left;
        box-sizing: border-box;
        min-height: 65px;
        height: 65px;
    }

    .players-table td.col-hs,
    .players-table td.col-weapon {
        background: rgba(255, 255, 255, 0.02)!important;
    }


    /* Right column - no right border */
    .players-table td.col-deaths,
    .players-table td.col-weapon,
    .players-table td.col-rank-badge {
        border-right: none;
    }
    
    /* Bottom row - no bottom border */
    .players-table td.col-skill,
    .players-table td.col-rank-badge {
        border-bottom: none;
    }
    
    /* Skill starts new row */
    .players-table td.col-skill {
        clear: left;
    }
    
    /* Stats cell labels */
    .players-table td.col-kills::before,
    .players-table td.col-deaths::before,
    .players-table td.col-hs::before,
    .players-table td.col-weapon::before,
    .players-table td.col-skill::before,
    .players-table td.col-rank-badge::before {
        display: block;
        font-size: 0.7rem;
        font-family: var(--font-display);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: 0.25rem;
        padding: 0;
        height: auto;
        min-width: 0;
        
    }
    
    .players-table td.col-kills::before { content: "KILLS"; color: rgba(74, 222, 128, 0.8); }
    .players-table td.col-deaths::before { content: "DEATHS"; color: rgba(248, 113, 113, 0.8); }
    .players-table td.col-hs::before { content: "HEADSHOTS"; color: rgba(251, 191, 36, 0.8); }
    .players-table td.col-weapon::before { content: var(--weapon-label, "WEAPON"); color: rgba(200, 200, 200, 0.7); }
    .players-table td.col-skill::before { content: "SKILL"; color: rgba(150, 105, 255, 0.8); }
    .players-table td.col-rank-badge::before { content: "RANK"; color: rgba(36, 161, 251, 0.8); }
    
    /* Stats values */
    .players-table td.col-kills p.stats,
    .players-table td.col-deaths p.stats,
    .players-table td.col-hs p.stats {
        margin: 0;
        padding: 0;
        background:transparent;
        font-size: 1rem;
        font-weight: 800;
        border: none;
    }
    
    .players-table td.col-kills p.stats { color: #4ade80; }
    .players-table td.col-deaths p.stats { color: #f87171; }
    .players-table td.col-hs p.stats { color: #fbbf24; }
    
    /* Weapon display */
    .players-table td.col-weapon p.stats {
        margin: 0;
        padding: 0.25rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: #e0e0e0;
        background: transparent;
        border: none;
    }
    
    /* Skill display */
    .skill-badge {
        margin-top:0.25em;
        font-size: 0.85rem;
        font-weight: 700;
        height: 20px;
        width: 50px;
    }

    .skill-range {
        font-size: 0.8rem;
    }
    
    /* Rank badge display */
    .players-table td.col-rank-badge .rank-badge {
        width: auto;
        min-width: 70px;
    }

    .container {
        padding: 2rem 0 2.5rem 0!important;
    }
    
    /* Clear float after the grid */
    .players-table td.col-rank-badge::after {
        content: '';
        display: table;
        clear: both;
    }
    
    /* ====== ACTIONS - Full width row below stats ====== */
    .players-table tbody tr td.col-actions {
        position: relative;
        display: block !important;
        width: 100% !important;
        clear: both;
        padding: 0 !important;
        overflow: hidden;
        /* Override desktop column behavior */
        visibility: visible !important;
        white-space: normal;
        background: rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        transition: none !important;
    }
    
    .players-table tbody tr td.col-actions > .action-btns {
        display: flex;
        flex-direction: row;
        width: 100%;
        height: 50px;
        gap: 0;

        /* Animate the inner wrapper (more reliable than animating table/card heights) */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.2s ease,
                    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .players-table tbody tr td.col-actions.show > .action-btns {
        max-height: 60px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    /* Hiding state - animate back to 0 */
    .players-table tbody tr td.col-actions.hiding > .action-btns {
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
    }
    
    .players-table tbody tr td.col-actions .action-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: white;
        border: none;
        cursor: pointer;
        transition: filter 0.2s ease;
        /* Override base desktop .action-btn (absolute + z-index:-1) so buttons are clickable on mobile */
        position: relative;
        z-index: 2;
        pointer-events: auto;
    }
    
    .players-table td.col-actions .action-btn:not(:last-child) {
        border-right: 1px solid rgba(0, 0, 0, 0.3);
    }
    
    .players-table td.col-actions .action-btn.manipulate,
    .players-table td.col-actions .action-btn.reset {
        background: linear-gradient(180deg, #4f6ef7 0%, #3b5ce6 100%);
    }
    
    .players-table td.col-actions .action-btn.remove {
        background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    }
    
    .players-table td.col-actions .action-btn:active {
        filter: brightness(0.85);
    }
    
    .players-table td.col-actions .action-btn i {
        font-size: 1rem;
    }
    
    /* Loading cell */
    .loading-cell {
        padding: 2.5rem 1rem !important;
        text-align: center;
    }
    
    /* Number container adjustments */
    .number-container {
        width: auto;
        height: auto;
    }
}

/* ============================================================
   SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
    .main-container {
        padding: 0.5rem 1rem;
    }
    
    .table-container {
        border-radius: 12px;
    }
    .players-table td.col-rank {
        top: 20px;
        left: 5px;
    }
    
    /* Smaller cards */
    .players-table tbody tr {
        border-radius: 12px;
    }
    
    
    .players-table td.col-rank .col {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border-radius: 8px;
    }
    
    /* Smaller player header */
    .players-table td.col-name {
        padding: 0.875rem 0.875rem 0.75rem 52px !important;
    }
    
    .player-name {
        font-size: 0.9rem;
    }
    
    .player-flag {
        height: 16px;
    }
    
    /* Compact stats grid */
    .players-table td.col-kills,
    .players-table td.col-deaths,
    .players-table td.col-hs,
    .players-table td.col-weapon {
        padding: 0.625rem 0.375rem !important;
        min-height: 60px;
    }
    
    .players-table td.col-kills::before,
    .players-table td.col-deaths::before,
    .players-table td.col-hs::before,
    .players-table td.col-weapon::before {
        font-size: 0.55rem;
    }
    
    .players-table td.col-kills p.stats,
    .players-table td.col-deaths p.stats,
    .players-table td.col-hs p.stats {
        font-size: 0.9rem;
    }
    
    .players-table td.col-weapon p.stats {
        font-size: 0.7rem;
    }
    
    /* Compact Skill & Rank Badge row */
    .players-table td.col-skill,
    .players-table td.col-rank-badge {
        padding: 0.5rem 0.375rem !important;
        min-height: 60px;
    }
    
    
    
    /* Actions */
    .players-table tbody tr td.col-actions .action-btns {
        height: 46px;
    }

    .players-table tbody tr td.col-actions.show > .action-btns {
        max-height: 50px;
    }
    
    .players-table td.col-actions .action-btn {
        font-size: 0.7rem;
        gap: 0.375rem;
    }
    
    .players-table td.col-actions .action-btn i {
        font-size: 0.9rem;
    }
    
    /* Pagination */
    .page-btn {
        min-width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    
    
    .stat-label {
        font-size: 0.55rem;
    }
    
    .mobile-menu {
        width: 280px !important;
    }
}

/* ============================================================
   EXTRA SMALL (≤380px)
   ============================================================ */
@media (max-width: 380px) {
    /* Hide flag on tiny screens */
    
    .player-flag img {
        height: 14px;
    }
    .player-name {
        font-size: 0.85rem;
    }
    
    /* Even more compact stats */
    .players-table td.col-kills,
    .players-table td.col-deaths,
    .players-table td.col-hs,
    .players-table td.col-weapon,
    .players-table td.col-skill,
    .players-table td.col-rank {
        min-height: 55px;
        padding: 0.5rem 0.25rem !important;
    }

    .players-table td.col-rank {
        top: 13px;

    }
    
    .players-table td.col-kills p.stats,
    .players-table td.col-deaths p.stats,
    .players-table td.col-hs p.stats {
        font-size: 0.85rem;
    }
    

}

/* ============================================
   PAGE HEADER SECTION STYLES
   ============================================ */

.container {
    display:flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5em var(--spacing-lg) 4em var(--spacing-lg);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: clamp(0.35rem, 1vw, var(--spacing-sm)) clamp(0.8rem, 2vw, var(--spacing-lg));
    background: rgba(232, 169, 74, 0.1);
    border: 1px solid rgba(232, 169, 74, 0.3);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    font-weight: 500;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: clamp(0.5px, 0.3vw, 1px);
    margin-bottom: clamp(var(--spacing-md), 3vw, var(--spacing-lg));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-badge.purple {
    background: rgba(222, 155, 53, 0.1);
    border: 1px solid rgba(222, 155, 53, 0.3);
    color: var(--color-primary);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: clamp(0.95rem, 2.7vw, 1.125rem);
    color: var(--color-gray-lighter);
    max-width: min(640px, 90vw);
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive tweaks for badge/subtitle */
@media (max-width: 768px) {
    .section-badge {
        padding: 0.4rem 0.9rem;
        letter-spacing: 0.5px;
    }
    .page-subtitle {
        text-align: center;
    }
    .table-wrapper {
        background: transparent!important;
    }
    /* Hide inline filters and show legacy stacked filters on mobile */
    .sidebar-selects-row .inline-filter,
    .sidebar-selects-row .filter-spacer {
        display: none !important;
    }
    /* Mobile menu: place selects 2 per row */
    .sidebar-selects-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(200px, 1fr));
        gap: 0.85rem 1rem;
    }
    .mobile-stats-filters {
        display: block;
        margin-top: 1rem;
    }
    .mobile-stats-filters .stats-filter-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 0.85rem 1rem;
    }
}

@media (max-width: 640px) {
    .sidebar-selects-row {
        grid-template-columns: 1fr;
    }
    .mobile-stats-filters .stats-filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-badge {
        gap: 0.35rem;
        padding: 0.35rem 0.75rem;
    }
    .page-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
    }
}