:root {
    --bg-dark: #0a192f;
    --bg-dark-secondary: #223d5f;
    --accent-teal: #64ffda;
    --accent-blue: #1e90ff;
    --darker: #0f172a;

    /* Inherited from SPTLB Network */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --primary-ultralight: #e0e7ff;

    --danger: #ef4444;
    --danger-dark: #dc2626;

    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;

    --dark: #1e293b;
    --darker: #0f172a;
    --dark-medium: #334155;

    --light: #f8fafc;
    --lighter: #ffffff;

    --text-light: #ccd6f6;
    --text-muted: #8892b0;
    --text-white: #f8fafc;

    --gray: #94a3b8;
    --gray-light: #e2e8f0;
    --gray-dark: #64748b;
    --gray-ultradark: #475569;

    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-purple: #8b5cf6;

    --bg-darker: #0f172a;
    --bg-card: #1e293b;
    --bg-card-light: #334155;

    --border: #2d3748;
    --border-light: #4a5568;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 20px 40px rgba(139, 92, 246, 0.3);

    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --neon-gradient: linear-gradient(90deg, #8B5CF6, #3B82F6, #06B6D4);

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    --glow-primary: 0 0 30px rgba(139, 92, 246, 0.5);
    --glow-success: 0 0 30px rgba(16, 185, 129, 0.5);
    --glow-danger: 0 0 30px rgba(239, 68, 68, 0.5);
    --glow-neon: 0 0 40px rgba(59, 130, 246, 0.3);
}

@font-face {
    font-family: 'Bender Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Bender Regular'), url('/media/font/Bender/Jovanny Lemonad - Bender.woff') format('woff');
}

@font-face {
    font-family: 'Bender Bold';
    font-style: normal;
    font-weight: normal;
    src: local('Bender Regular'), url('/media/font/Bender/Jovanny Lemonad - Bender-Bold.woff') format('woff');
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 100, 100, 0.4) rgba(0, 0, 0, 0.1);
}

.snowflake {
    position: fixed;
    background-color: #ccc;
    user-select: none;
    z-index: 999;
    pointer-events: none;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    left: 0px;
    top: 0px;
}

.snow-crust {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background: linear-gradient(to top,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.7) 100%);
    clip-path: polygon(0% 100%, 5% 70%, 15% 90%, 25% 60%,
            35% 80%, 45% 50%, 55% 70%, 65% 40%,
            75% 60%, 85% 30%, 95% 50%, 100% 100%);
    pointer-events: none;
    z-index: 10;
}

.snow-corners0 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.8) 0%,
            transparent 100%);
    clip-path: polygon(0% 0%, 15% 100%, 25% 40%, 35% 80%,
            45% 30%, 55% 70%, 65% 20%, 75% 60%,
            85% 10%, 95% 50%, 100% 0%);
}

.snow-corners1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 14px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.7) 0%,
            transparent 100%);
    clip-path: polygon(0% 0%, 5% 50%, 15% 10%, 25% 60%,
            35% 30%, 45% 80%, 55% 40%, 65% 90%,
            75% 50%, 85% 100%, 100% 0%);
}

.snow-corners-transparent {
    position: absolute;
    opacity: 0.5;
    top: 0;
    left: 0;
    width: 90%;
    height: 14px;
    justify-self: anchor-center;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7) 0%, transparent 100%);
    clip-path: polygon(0% 0%, 5% 50%, 15% 10%, 25% 60%, 35% 30%, 45% 80%, 55% 40%, 65% 90%, 75% 50%, 85% 100%, 100% 0%);
}

.snow-corners2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.6) 0%,
            transparent 100%);
    clip-path: polygon(0% 0%, 10% 100%, 20% 30%, 30% 70%,
            40% 20%, 60% 40%, 70% 80%, 80% 30%,
            90% 100%, 100% 0%);
}

.snow-corners3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.5) 0%,
            transparent 100%);
    clip-path: polygon(0% 0%, 20% 60%, 40% 20%, 60% 80%,
            80% 40%, 100% 0%);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 100, 100, 0.4);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 100, 100, 0.6);
}

html {
    scrollbar-gutter: stable;
}

@media (hover: hover) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-thumb {
        background: #8892b0;
    }

    :hover::-webkit-scrollbar-thumb {
        background: #8892b0;
    }
}

body {
    font-family: "Noto Sans", sans-serif;
    background-image:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(114, 68, 239, 0.1) 0%, transparent 20%);
    background-color: var(--darker);
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
}

h1 {
    text-align: center;
    color: var(--accent-blue);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow:
        0 0 1px rgba(100, 255, 218, 0.4),
        0 0 3px rgba(100, 255, 218, 0.2);
}

/* Is player logged in */
.auth-status {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 5;
    font-family: 'Segoe UI', system-ui, sans-serif;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.auth-status.show {
    opacity: 1;
    transform: translateY(0);
}

.auth-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--darker);
    border: 1px solid var(--gray-ultradark);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.auth-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray);
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.auth-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Dot Statuses */
.auth-status.authenticated .auth-dot {
    background: var(--success);
    animation: pulse-success 2s infinite;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.auth-status.authenticated .auth-text {
    color: var(--success);
    font-weight: 600;
}

.auth-status.not-authenticated .auth-dot {
    background: var(--danger);
    animation: pulse-danger 2s infinite;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.auth-status.not-authenticated .auth-text {
    color: var(--danger);
}

.auth-status.error .auth-dot {
    background: var(--accent);
    animation: pulse-warning 2s infinite;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.auth-status.error .auth-text {
    color: var(--accent);
}

.auth-status.checking .auth-dot {
    background: var(--primary);
    animation: pulse-checking 1.5s infinite;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.auth-status.checking .auth-text {
    color: var(--primary-light);
}

@keyframes pulse-success {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px var(--success);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 12px var(--success);
    }
}

@keyframes pulse-danger {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px var(--danger);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 12px var(--danger);
    }
}

@keyframes pulse-warning {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px var(--accent);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 12px var(--accent);
    }
}

/* Leaderboard notifications */
#emptyLeaderboardNotification {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(5px);
    color: var(--accent-teal);
    padding: 20px;
    z-index: 1000;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    border-top: 1px solid var(--accent-teal);
    box-shadow: 0 -4px 12px rgba(100, 255, 218, 0.1);
}

#leaderboardTable tbody {
    opacity: 1;
    transition: opacity 0.3s ease;
}

#leaderboardTable tbody.hidden {
    opacity: 0;
    pointer-events: none;
}

#seasonTimer {
    display: none;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 1px 0px 1px rgb(255 255 255 / 70%);
    color: #f0f0f0;
    background: #ffffff0e;
    border: 1px solid var(--gray-ultradark);
    padding: 5px 10px;
    border-radius: 4px;
    position: fixed;
    top: calc(var(--top-stats-height, 70px));
    right: 20px;
    z-index: 5;
    backdrop-filter: blur(30px);
    user-select: none;
}

#timerDisplay {
    color: #abc1ff;
    font-weight: 700;
    padding: 0 3px;
    border-radius: 2px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: calc(var(--top-stats-height, 70px));
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    max-width: 1200px;
    background-color: rgba(57, 89, 131, 0.205);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: 600;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.navbar-logo {
    height: 45px;
    margin: 10px 0 0;
    width: auto;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.navbar-logo:hover {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.navbar-links-container {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    justify-content: center;
    flex-wrap: wrap;
    margin: 10px 0 0;
}

.navbar-link {
    font-family: 'Noto Sans';
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    position: relative;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: max-content;
}

.navbar-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.navbar-link.active {
    background: linear-gradient(145deg,
            rgba(100, 255, 218, 0.3),
            rgba(100, 255, 218, 0.2));
    border: 1px solid rgba(100, 255, 218, 0.4);
    color: var(--accent-teal);
    font-weight: 700;
}

.navbar-link--login {
    background: rgba(100, 255, 219, 0.25);
    border: 1px solid rgba(100, 255, 219, 0.3);
    font-weight: 700;
    position: relative;
}

.navbar-link--login:hover {
    background: rgba(100, 255, 219, 0.35);
    border: 1px solid rgba(100, 255, 219, 0.5);
}

/* SPTLB Network notifications */
#networkNotifies {
    position: absolute;
    top: -12px;
    right: -13px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.336);
    z-index: 10;
}

/* Season Selector */
.season-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
}

.season-selector label {
    font-size: 1rem;
    color: var(--accent-teal);
    font-weight: 500;
}

.custom-dropdown {
    position: relative;
    z-index: 100;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
    padding-right: 40px;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.7));
    border: 1px solid var(--accent-teal);
    color: var(--text-light);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-toggle:hover {
    cursor: pointer;
    background: linear-gradient(145deg, rgba(23, 42, 69, 0.9), rgba(23, 42, 69, 0.7));
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.2);
}

.dropdown-toggle[aria-expanded="true"] {
    border-radius: 8px 8px 0 0;
    background: linear-gradient(145deg, rgba(23, 42, 69, 0.95), rgba(23, 42, 69, 0.8));
}

.dropdown-selected {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(145deg, rgba(10, 25, 47, 0.98), rgba(10, 25, 47, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(23, 42, 69, 0.3);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--accent-teal);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

.dropdown-item {
    padding: 10px 16px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item:hover {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-teal);
}

.dropdown-item.selected {
    background: rgba(100, 255, 218, 0.15);
    color: var(--accent-teal);
    font-weight: 500;
}

/* Other navbar selectors */
.navbar-compact-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.compact-dropdown {
    position: relative;
}

.compact-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(145deg,
            rgba(57, 89, 131, 0.25),
            rgba(57, 89, 131, 0.15));
    border: 1px solid rgba(100, 255, 218, 0.25);
    border-radius: 12px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100px;
    justify-content: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.compact-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(100, 255, 218, 0.1),
            transparent);
    transition: left 0.6s ease;
}

.compact-toggle:hover::before {
    left: 100%;
}

.compact-toggle:hover {
    background: linear-gradient(145deg,
            rgba(57, 89, 131, 0.35),
            rgba(57, 89, 131, 0.25));
    border-color: rgba(100, 255, 218, 0.4);
    box-shadow:
        0 4px 15px rgba(100, 255, 218, 0.15),
        0 0 0 1px rgba(100, 255, 218, 0.1);
    color: var(--accent-teal);
}

.compact-toggle[aria-expanded="true"] {
    background: linear-gradient(145deg,
            rgba(57, 89, 131, 0.4),
            rgba(57, 89, 131, 0.3));
    border-color: rgba(100, 255, 218, 0.5);
    border-radius: 12px 12px 0 0;
    color: var(--accent-teal);
}

.compact-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.compact-text {
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
    margin-left: 4px;
}

.compact-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.compact-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: linear-gradient(145deg,
            rgba(10, 25, 47, 0.98),
            rgba(10, 25, 47, 0.95));
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(100, 255, 218, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.compact-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.compact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.compact-item:last-child {
    border-bottom: none;
}

.compact-item:hover {
    background: linear-gradient(90deg,
            rgba(100, 255, 218, 0.1),
            transparent);
    color: var(--accent-teal);
    padding-left: 18px;
}

.compact-item:active {
    background: rgba(100, 255, 218, 0.15);
}

.item-icon {
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.compact-item:hover .item-icon {
    opacity: 1;
}

.compact-dropdown:nth-child(1) .compact-toggle {
    border-color: rgba(66, 153, 225, 0.3);
}

.compact-dropdown:nth-child(1) .compact-toggle:hover,
.compact-dropdown:nth-child(1) .compact-toggle[aria-expanded="true"] {
    border-color: rgba(66, 153, 225, 0.5);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.15);
}

.compact-dropdown:nth-child(2) .compact-toggle {
    border-color: rgba(72, 187, 120, 0.3);
}

.compact-dropdown:nth-child(2) .compact-toggle:hover,
.compact-dropdown:nth-child(2) .compact-toggle[aria-expanded="true"] {
    border-color: rgba(72, 187, 120, 0.5);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.15);
}

.compact-dropdown:nth-child(3) .compact-toggle {
    border-color: rgba(159, 122, 234, 0.3);
}

.compact-dropdown:nth-child(3) .compact-toggle:hover,
.compact-dropdown:nth-child(3) .compact-toggle[aria-expanded="true"] {
    border-color: rgba(159, 122, 234, 0.5);
    box-shadow: 0 4px 15px rgba(159, 122, 234, 0.15);
}

.compact-login-btn {
    background: rgba(100, 255, 219, 0.25);
    border: 1px solid rgba(100, 255, 219, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100px;
    justify-content: center;
    backdrop-filter: blur(10px);
    position: relative;
}

.compact-login-btn:hover {
    background: rgba(100, 255, 219, 0.35);
    border: 1px solid rgba(100, 255, 219, 0.5);
    box-shadow: 0 4px 15px rgba(100, 255, 219, 0.2);
}

.login-icon {
    font-size: 1rem;
}

.compact-menu.show .compact-item {
    animation: slideIn 0.3s ease-out backwards;
}

/* Leaderboard Controls */
.leaderboard-controls {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-container {
    display: flex;
    gap: 12px;
    width: 100%;
    position: relative;
}

.controls-toolset {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid var(--text-muted);
    position: relative;
}

.auto-update-control {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-light);
    font-weight: 500;
}

.auto-update-control label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.auto-update-control label:hover {
    background: rgba(100, 255, 218, 0.05);
}

#updateInterval {
    padding: 6px 10px;
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--text-muted);
    border-radius: 6px;
    color: var(--text-light);
}

#timeToUpdate {
    font-size: 14px;
    color: var(--text-muted);
    padding: 6px 12px;
    background: rgba(136, 146, 176, 0.1);
    border-radius: 8px;
    border: 1px solid var(--text-muted);
    transition: all 0.3s ease;
    font-weight: 600;
}

#playerSearch {
    flex-grow: 1;
    padding: 16px 16px 16px 25px;
    font-size: 16px;
    background: linear-gradient(145deg, var(--bg-dark-secondary), var(--darker));
    border: 2px solid var(--text-muted);
    border-radius: 16px;
    color: var(--text-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    font-weight: 500;
}

#playerSearch:hover {
    cursor: pointer;
}

#playerSearch:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow:
        0 0 0 4px rgba(100, 255, 218, 0.15),
        var(--shadow-lg);
    background: linear-gradient(145deg, var(--bg-dark-secondary), var(--bg-dark));
}

#playerSearch::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
    font-weight: 400;
}

.search-indicator {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    right: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.3s ease;
}

.search-active .search-indicator {
    background: var(--accent-teal);
    box-shadow: 0 0 8px var(--accent-teal);
}

.search-highlight {
    background: linear-gradient(90deg, rgba(100, 255, 218, 0.1), transparent) !important;
    border-left: 3px solid var(--accent-teal) !important;
    transition: all 0.3s ease !important;
}

.searching-by-id .search-highlight {
    border-left-color: var(--accent-blue) !important;
    background: linear-gradient(90deg, rgba(30, 144, 255, 0.1), transparent) !important;
}

.search-type-toggle {
    display: flex;
    background: var(--bg-dark-secondary);
    border-radius: 12px;
    padding: 4px;
    border: 2px solid var(--text-muted);
    width: 190px;
    gap: 5px;
}

.search-type-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-type-btn.active {
    background: var(--accent-teal);
    color: var(--darker);
    box-shadow: var(--shadow-sm);
}

.searching-by-id #playerSearch::placeholder {
    color: var(--accent-blue);
    opacity: 0.8;
}

.searching-by-id .search-indicator {
    background: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
}

#clearSearch {
    padding: 12px 24px;
    background: linear-gradient(145deg, var(--gray-ultradark), var(--dark-medium));
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    color: var(--text-light);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#clearSearch:hover {
    cursor: pointer;
    border-color: var(--accent-teal);
    color: var(--accent-teal);
    box-shadow: 0 6px 20px rgba(100, 255, 218, 0.2);
}

/* Leader board */
.teamtag {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.teamtag:hover {
    cursor: pointer;
}

.lb-row-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

table {
    background-color: rgb(57 89 131 / 29%);
    width: 100%;
    max-width: 95%;
    margin: auto;
    margin-bottom: 60px;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

th,
td {
    padding: 10px 20px;
    border-bottom: none;
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

th {
    text-align: center;
    background-color: rgba(23, 42, 69, 0.329);
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85em;
    backdrop-filter: blur(15px);
    -webkit-font-smoothing: antialiased;
    position: sticky;
    top: 0;
}

th:hover {
    background-color: rgba(30, 144, 255, 0.6);
}

tr {
    transition: all 200ms ease-in-out;
}

tr:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

td {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-align: center;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Play status on leaderboard for heartbeats */
.player-status-lb {
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    text-align: center;
    min-width: 120px;
    border: 2px solid;
    font-weight: 600;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

@keyframes pulseBorder {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.01);
    }
}

.status-blink {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    animation: blink 2s infinite;
    flex-shrink: 0;
}

.status-blink::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: inherit;
    filter: blur(4px);
    opacity: 0.7;
    animation: blinkGlow 2s infinite;
}

@keyframes blinkGlow {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.3);
    }
}

@keyframes blink {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Online */
.player-status-lb-online {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: #10b981;
}

/* In menu */
.player-status-lb-menu {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-color: #3b82f6;
}

/* In stash */
.player-status-lb-stash {
    background: #1640f928;
    color: #899fff;
    border-color: #1640f9;
}

/* In hideout */
.player-status-lb-hideout {
    background: rgba(245, 249, 22, 0.2);
    color: #f7ff87;
    border-color: #eaf916;
}

/* IN raid */
.player-status-lb-raid {
    background: rgba(249, 115, 22, 0.2);
    color: #ffa362;
    border-color: #f97316;
}

/* In Transit */
.player-status-lb-transit {
    background: rgba(249, 215, 22, 0.2);
    color: #fff384;
    border-color: #fff387;
}

/* Finished raid */
.player-status-lb-finished {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border-color: #a855f7;
}

/* Offline */
.player-status-lb-offline {
    background: rgba(75, 85, 99, 0.2);
    color: #4b5563;
    border-color: #4b5563;
}

/* Blink for online */
#blink {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    animation: blink 2s infinite;
}

/* Online */
.player-status-lb-online #blink {
    background: linear-gradient(135deg, #6affa3 0%, #00e676 100%);
    box-shadow: 0 0 12px rgba(106, 255, 163, 0.6);
}

/* In menu */
.player-status-lb-menu #blink {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

/* In stash */
.player-status-lb-stash #blink {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

/* In hideout */
.player-status-lb-hideout #blink {
    background: linear-gradient(135deg, #fb923c 0%, rgba(232, 251, 60, 0.6) 100%);
    box-shadow: 0 0 12px rgba(232, 251, 60, 0.6);
}

/* In raid */
.player-status-lb-raid #blink {
    background: linear-gradient(135deg, #eefb3c 0%, #f97316 100%);
    box-shadow: 0 0 12px rgba(251, 146, 60, 0.6);
}

/* In transit */
.player-status-lb-transit #blink {
    background: linear-gradient(135deg, #eefb3c 0%, #f97316 100%);
    box-shadow: 0 0 12px rgba(251, 146, 60, 0.6);
}

/* Raid end */
.player-status-lb-finished #blink {
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.6);
}


td:nth-child(2) {
    font-size: 1em;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-font-smoothing: antialiased;
}

td:nth-child(3) {
    font-weight: 600;
    color: white;
    position: relative;
}

td:nth-child(3)::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 3px;
    background: var(--accent-teal);
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

td:nth-child(3):hover {
    cursor: pointer;
}

td:nth-child(3):hover::before {
    opacity: 1;
}

button,
.main-button {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

button:hover,
.main-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.player-name {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 300ms ease-in-out;
    cursor: pointer;
    border-radius: 4px;
    height: 55px;
}

.player-name i {
    display: flex;
    position: static;
    flex-direction: column;
    margin-left: 5px;
}

.player-name:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.player-mode {
    background: rgba(255, 255, 255, 0.096);
    color: white;
    font-family: monospace;
    border: 1px solid #ffffff3b;
    border-radius: 5px;
    width: fit-content;
    font-size: 1rem;
    font-weight: 600;
    padding: 2px;
    text-transform: uppercase;
    display: flex;
}

.FIKA {
    color: #55c3ff;
}

.REALISM {
    color: #ffb7a1;
}

.WTT {
    color: #ffa1a1;
}

.lb-profile-picture {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(132, 210, 255, 0.8);
    object-fit: cover;
    box-shadow:
        0 2px 4px rgba(132, 210, 255, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-name:hover .lb-profile-picture {
    border-color: #84d2ff;
    transform: scale(1.08);
    box-shadow:
        0 6px 25px rgba(132, 210, 255, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

/* Styling scorings by color */
.bad {
    color: #da6879;
    font-weight: bold;
}

.average {
    color: #f6d25d;
    font-weight: bold;
}

.good {
    color: #6fdf60;
    font-weight: bold;
}

.lts {
    color: #3da3cc;
    font-weight: bold;
}

.impressive {
    color: #ca60df;
    font-weight: bold;
}

/* Styling rank number */
.rank.gold {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rank.silver {
    color: #c0c0c0;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.4);
}

.rank.bronze {
    color: #cd7f32;
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.4);
}

/* Styling names */
.gold-name,
.silver-name,
.bronze-name {
    position: relative;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.gold-name {
    font-size: 1.5rem;
    font-family: "Archivo Black", sans-serif;
    color: transparent !important;
    font-weight: 800;
    background-size: 300%;
    animation: shine 5s linear infinite, lights 5s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(-60deg, #00a6ff, #8300e0, #e823a1, #f3d910, #ffffff, #ffa5d8, #ffffff, #f3d910, #e823a1, #8300e0, #00a6ff);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes shine-reversed {
    to {
        background-position: -200% center;
    }
}

@keyframes lights {
    0% {
        color: hsl(230, 40%, 80%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.2),
            0 0 0.125em hsla(320, 100%, 60%, 0.3),
            -1em -0.125em 0.5em hsla(40, 100%, 60%, 0),
            1em 0.125em 0.5em hsla(200, 100%, 60%, 0);
    }

    30% {
        color: hsl(230, 80%, 90%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.5),
            0 0 0.125em hsla(320, 100%, 60%, 0.5),
            -0.5em -0.125em 0.25em hsla(40, 100%, 60%, 0.2),
            0.5em 0.125em 0.25em hsla(200, 100%, 60%, 0.4);
    }

    40% {
        color: hsl(230, 100%, 95%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.5),
            0 0 0.125em hsla(320, 100%, 90%, 0.5),
            -0.25em -0.125em 0.125em hsla(40, 100%, 60%, 0.2),
            0.25em 0.125em 0.125em hsla(200, 100%, 60%, 0.4);
    }

    70% {
        color: hsl(230, 80%, 90%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.5),
            0 0 0.125em hsla(320, 100%, 60%, 0.5),
            0.5em -0.125em 0.25em hsla(40, 100%, 60%, 0.2),
            -0.5em 0.125em 0.25em hsla(200, 100%, 60%, 0.4);
    }

    100% {
        color: hsl(230, 40%, 80%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.2),
            0 0 0.125em hsla(320, 100%, 60%, 0.3),
            1em -0.125em 0.5em hsla(40, 100%, 60%, 0),
            -1em 0.125em 0.5em hsla(200, 100%, 60%, 0);
    }

}

.silver-name {
    font-size: 1.5rem;
    color: transparent !important;
    font-weight: bold;
    background-size: 300%;
    animation: shine 5s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(-60deg, #97d7d7, #d3d3ff, #e9f0d0, #5232c7, #6e0ea5, #7659fc, #4014a5, #7a4bb8, #e9f0d0, #d3d3ff, #97d7d7);
}

.bronze-name {
    background-image: linear-gradient(-60deg, #c7a432, #ffce46, #fcec59, #a53614, #b8964b, #d7a197);
    -webkit-background-clip: text;
    color: transparent !important;
    background-size: 300%;
    background-clip: text;
    font-style: normal;
    font-size: 1.3em;
}

.promo-name {
    color: transparent !important;
    font-weight: bold !important;
    font-size: 1.1em !important;
    background-size: 200%;
    animation: shine 5s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(-60deg, var(--accent-blue), var(--accent-teal), var(--primary-ultralight), var(--accent-blue));
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.4), 0 0 30px rgba(100, 255, 218, 0.3);
}

.account-icon {
    height: 22px;
}

.gradient-tp-text {
    background: linear-gradient(135deg, #ff6666, #b30000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-radius: 5px;
    text-shadow: 2px 2px 5px #00000080;
}

.player-name-gold {
    font-family: 'Bender Bold', sans-serif;
    font-weight: bolder;
    font-size: 1.1rem;
    color: transparent;
    background: linear-gradient(45deg,
            #ffd700 0%,
            #ffec8b 25%,
            #fffacd 50%,
            #ffec8b 75%,
            #ffd700 100%);
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow:
        1px 1px 1px rgba(120, 90, 0, 0.3),
        0 0 1px rgba(255, 215, 0, 0.5);
    border-radius: 6px;
    padding: 4px 8px;
    display: inline-block;
    letter-spacing: 1px;
}

.player-name-gold.only-name {
    position: relative;
}

.player-name-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 6px;
    border: 1px solid gold;
    background: linear-gradient(135deg,
            rgba(255, 215, 0, 0.15) 0%,
            rgba(255, 251, 0, 0.30) 50%,
            rgba(255, 215, 0, 0.15) 100%);
    z-index: -1;
    box-shadow:
        inset 0 0 15px rgba(255, 215, 0, 0.4),
        inset 0 -1px 0 rgba(120, 90, 0, 0.3);
}

.badge-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge-premium .fa-bolt {
    font-size: 1.2em;
    background: linear-gradient(135deg, #8a2be2, #da70d6, #9370db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Stats bar */
.top-stats-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(57, 89, 131, 0.205);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 2;
    box-sizing: border-box;
    font-size: 0.96rem;
    min-width: 1000px;
}

.stats-line {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-grow: 1;
    /* temporary solution to stats not being centered */
    margin-left: 10px;
    margin-right: 10px;
}

.stats-item {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.stats-item:hover {
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.stats-item strong {
    color: #64ffda;
    font-weight: 600;
}

.stats-item span {
    color: rgba(255, 255, 255, 0.9);
}

.live-data-label {
    color: rgba(255, 255, 255, 0.7);
    background-color: #ffffff10;
    font-weight: 500;
    padding: 6px 20px;
    border-radius: 10px;
    cursor: default;
    position: relative;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.live-data-label:hover {
    color: rgba(100, 255, 218, 0.8);
}

.player-stats {
    display: flex;
    gap: 16px;
    padding-left: 5px;
    position: relative;
    justify-content: left;
    flex-wrap: wrap;
}

.player-count strong {
    color: #ffa64d;
}

.online-count strong {
    color: #66ff66;
}

.stats-item.player-count,
.stats-item.online-count {
    background: rgba(255, 255, 255, 0.03);
}

#serverStatus {
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    white-space: nowrap;
}

#serverStatus::before {
    content: "";
    display: inline-block;
    background-color: #8f8f8f;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* If server is online */
#serverStatus.server-online {
    color: #6fdf60;
}

#serverStatus.server-online::before {
    background-color: #6fdf60;
    animation: blink-online 2s infinite;
}

/* If server is offline */
#serverStatus.server-offline {
    color: #ff6a6a;
}

#serverStatus.server-offline::before {
    background-color: #ff6a6a;
    animation: blink-offline 2s infinite;
}

/* If server is under maintenance */
#serverStatus.server-maintenance {
    color: #F47730;
}

#serverStatus.server-maintenance::before {
    background-color: #F47730;
    animation: blink-maintain 2s infinite;
}

@keyframes blink-online {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(106, 255, 163, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(106, 255, 163, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(106, 255, 163, 0);
    }
}

@keyframes blink-maintain {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 #F47730;
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(106, 255, 163, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(106, 255, 163, 0);
    }
}

@keyframes blink-offline {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 #ff6a6a;
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(106, 255, 163, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(106, 255, 163, 0);
    }
}

/* API Status styles */
.server-tooltip {
    position: fixed;
    background: rgba(70, 70, 90, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    width: 180px;
    text-align: center;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.2s ease-out;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.server-tooltip::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent rgba(70, 70, 90, 0.7);
}

[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: '?';
    display: inline-block;
    margin-left: 5px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: inherit;
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.modal li {
    color: var(--text-light);
    margin: 8px 0;
    padding-left: 15px;
    position: relative;
}

.modal p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: linear-gradient(135deg,
            rgba(10, 25, 47, 0.98),
            rgba(15, 30, 55, 0.98));
    margin: 5% auto;
    padding: 30px;
    border: 1px solid var(--accent-teal);
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 75vh;
    overflow-y: auto;
    color: var(--text-light);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(100, 255, 218, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    transform: translateY(-50px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-content h2 {
    color: #96c0ff;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(150, 192, 255, 0.3);
    position: relative;
    margin: 0.5rem;
}

.close {
    color: var(--accent-teal);
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.close:hover {
    color: var(--accent-blue);
    background: rgba(100, 255, 218, 0.1);
    transform: rotate(90deg);
}

.modal-content {
    animation: fadeIn 0.3s ease;
}

.modal img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 6px;
    border: 1px solid rgb(119, 255, 223);
}

/* Mods Modal */
.mods-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0;
}

.mods-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mods-section.banned-mods {
    background: radial-gradient(800px 300px at top left, hsla(0, 100%, 72%, 0.25), hsl(210, 30%, 12%, 0.9));
    border: 1px solid rgba(255, 106, 106, 0.2);
}

.mods-section.bad-mods {
    background: radial-gradient(800px 300px at top left, hsla(20, 90%, 57%, 0.25), hsl(210, 30%, 12%, 0.9));
    border: 1px solid rgba(244, 119, 48, 0.2);
}

.mods-section.good-mods {
    background: radial-gradient(800px 300px at top left, hsl(148, 100%, 72%, 0.25), hsl(210, 30%, 12%, 0.9));
    border: 1px solid rgba(106, 255, 163, 0.2);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}

.section-icon {
    font-size: 1.3rem;
}

.mods-count {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.mods-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.mod-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mod-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.banned-mods .mod-item {
    border: 1px solid #ef4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05), transparent);
}

.bad-mods .mod-item {
    border: 1px solid #f59e0b;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05), transparent);
}

.good-mods .mod-item {
    border: 1px solid #10b981;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05), transparent);
}

.mod-name {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0;
    word-break: break-word;
}

@keyframes modItemAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mod-item {
    animation: modItemAppear 0.4s ease forwards;
}

.mods-list:empty::after {
    content: 'No mods found';
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 20px;
    grid-column: 1 / -1;
}

/* Banned Mods Modal */
.banned-mods-container {
    width: 100%;
}

.banned-mods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mods-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ban-mod-name {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
    flex: 1;
}

/* Settings Modal */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
}

.setting-item {
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.02));
    padding: 20px;
    border-left: 4px solid var(--accent-teal);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.setting-label {
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.setting-label:hover {
    color: var(--accent-teal);
}

.setting-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    padding-left: 34px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.setting-item:hover .setting-description {
    color: var(--text-light);
}

/* Setting checkboxes (and other checkboxes) */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-teal);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

input[type="checkbox"]:checked {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
}

input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--darker);
    font-weight: bold;
    font-size: 12px;
}

input[type="checkbox"]:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.4);
}

input[type="checkbox"]:checked:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal.active .modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.player-compare-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.player-input {
    flex: 1 1 45%;
    background-color: #243447;
    padding: 0.55rem;
    border-radius: 8px;
}

/* Widget for watch list */
.draggable-widget {
    position: fixed;
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(2, 12, 27, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    overflow: hidden;
}

.widget-header {
    padding: 12px 16px;
    background: rgba(34, 61, 95, 0.8);
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-header h3 {
    margin: 0;
    font-size: 15px;
}

.close-widget {
    background: none;
    border: none;
    color: var(--accent-teal);
    font-size: 18px;
    cursor: pointer;
    padding: 0 6px;
    transition: color 0.2s ease;
}

.close-widget:hover {
    color: var(--accent-blue);
}

/* Main content */
.widget-content {
    padding: 16px;
}

.player-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.player-input-group {
    flex: 1;
    min-width: 140px;
}

.player-input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    color: var(--text-muted);
}

.player-id-input {
    width: 250px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(100, 255, 218, 0.2);
    color: var(--text-light);
    border-radius: 5px;
    font-size: 13px;
    outline: none;
    transition: border 0.2s ease;
}

.player-id-input:focus {
    border-color: var(--accent-teal);
}

.player-stats-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.not-found {
    color: #ff5555;
    font-size: 13px;
    margin: 0;
}

.modal-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.save-btn {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
    color: var(--darker);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.save-btn:hover {
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.4);
}

/* Announcement */
.announcement-wrapper {
    margin: 25px auto;
    max-width: 900px;
    background: linear-gradient(135deg,
            rgba(57, 89, 131, 0.25),
            rgba(30, 41, 59, 0.35));
    backdrop-filter: blur(20px) saturate(180%);
    border-left: 5px solid var(--primary);
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 40px rgba(99, 102, 241, 0.15);
    display: flex;
    gap: 25px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement-wrapper:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 60px rgba(99, 102, 241, 0.25);
}

.announcement-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
}

.announcement-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(99, 102, 241, 0.05),
            transparent);
    animation: shimmer 8s infinite linear;
    pointer-events: none;
}

.announcement-icon {
    flex-shrink: 0;
    position: relative;
    padding: 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.celebration-icon {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.5s ease;
}

.announcement-content {
    text-align: left;
    color: var(--text-light);
    width: 100%;
    position: relative;
    z-index: 2;
}

.announcement-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.announcement-title {
    font-weight: 800;
    font-size: 1.5rem;
    margin: 10px 0 10px 0;
    color: var(--text-white);
    line-height: 1.3;
    background: linear-gradient(135deg, #ffffff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}

.announcement-text {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 25px;
    font-weight: 400;
}

.announcement-link {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(100, 255, 218, 0.1);
}

.announcement-link:hover {
    color: white;
    background: rgba(100, 255, 218, 0.2);
    text-decoration: none;
    padding: 2px 8px;
}

.announcement-link::after {
    content: " ↗";
    display: inline-block;
    font-size: 0.9em;
    margin-left: 2px;
    transition: transform 0.3s ease;
}

.announcement-signature {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.signature-line {
    font-style: italic;
    opacity: 0.8;
}

.signature-name {
    font-weight: 700;
    color: var(--text-white);
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signature-title {
    font-size: 0.85rem;
    opacity: 0.6;
    letter-spacing: 0.5px;
}

/* Previous winners */
.winners-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    min-width: 900px;
    perspective: 1000px;
}

.winner-card {
    width: 310px;
    background: linear-gradient(145deg, rgba(23, 42, 69, 0.7), rgba(23, 42, 69, 0.4));
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    position: relative;
    overflow: hidden;
    animation: cardAppear 0.4s ease forwards;
    animation-delay: calc(0.1 * 0.15s);
    transform-style: preserve-3d;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(-10deg) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
    }
}

.winner-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(100, 255, 218, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* first place */
.winner-card:nth-child(2)::before {
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 215, 0, 0.2),
            transparent);
}

.winner-card:first-child,
.winner-card:last-child {
    background: linear-gradient(145deg,
            rgba(36, 62, 83, 0.7),
            rgba(36, 62, 83, 0.4));
    transform: scale(0.95) translateY(-10px);
    opacity: 0.95;
    padding: 22px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    z-index: 5;
}

.winner-card:first-child::after {
    background: linear-gradient(90deg,
            rgba(192, 192, 192, 0.3),
            rgba(192, 192, 192, 0.6),
            rgba(192, 192, 192, 0.3));
}

.winner-card:last-child::after {
    background: linear-gradient(90deg,
            rgba(205, 127, 50, 0.3),
            rgba(205, 127, 50, 0.6),
            rgba(205, 127, 50, 0.3));
}

.winner-card:first-child:hover,
.winner-card:last-child:hover {
    transform: scale(0.98) translateY(-15px);
    opacity: 1;
}

.winner-name {
    font-weight: 800;
    margin-bottom: 8px;
    font-size: 1.2em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.winner-card:nth-child(2) .winner-name {
    color: gold;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.winner-rank {
    color: var(--accent-teal);
    margin: 5px 0;
    font-weight: 800;
    font-size: 1.4em;
    letter-spacing: 1px;
    position: relative;
}

.winner-card:nth-child(2) .winner-rank {
    color: gold;
    font-size: 1.6em;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.winner-skill,
.winner-stats {
    margin: 12px 0;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--accent-teal);
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    place-self: center;
    padding: 10px 15px;
    background: linear-gradient(145deg,
            rgba(10, 25, 47, 0.4),
            rgba(10, 25, 47, 0.2));
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 1st place card styling */
.winner-card:nth-child(2) .winner-skill,
.winner-card:nth-child(2) .winner-stats {
    background: linear-gradient(145deg,
            rgba(30, 58, 107, 0.5),
            rgba(30, 58, 107, 0.3));
    color: var(--text-light);
    border: 1px solid gold;
}

.winner-stats span:last-child,
.winner-skill span:last-child {
    color: var(--accent-blue);
    font-weight: 700;
    text-shadow: 0 0 6px rgba(30, 144, 255, 0.4);
    font-size: 1.1em;
}

#winners h2 {
    text-align: center;
    font-size: 1.6em;
    margin-bottom: 30px;
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(100, 255, 218, 0.3);
    position: relative;
    padding-bottom: 15px;
}

/* Welcome screen styles */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--darker) 0%, #1a365d 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.paragraph-welcome {
    text-align: center;
    color: var(--text-muted);
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modal-content-welcome {
    position: relative;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(74, 159, 245, 0.2);
    border-radius: 24px;
    padding: 40px;
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header-welcome {
    text-align: center;
    margin-bottom: 40px;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header-welcome h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card-welcome {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    place-content: center;
    text-align-last: center;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.feature-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: rgba(74, 159, 245, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.feature-header i {
    color: var(--accent-blue);
    font-size: 1.5rem;
    width: 30px;
}

.feature-header h3 {
    margin: 0;
    color: var(--text-light);
    font-size: 1.2rem;
}

.feature-item p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.action-section {
    text-align: center;
    margin-bottom: 20px;
}

.action-btn {
    position: relative;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--accent-blue), #3a7bc8);
    color: white;
    box-shadow: 0 8px 25px rgba(74, 159, 245, 0.4);
    margin-bottom: 20px;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(74, 159, 245, 0.6);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover .btn-glow {
    left: 100%;
}

.secondary-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 24px;
        margin: 20px;
        width: calc(100% - 40px);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .modal-header h1 {
        font-size: 2.2rem;
    }

    .logo-section {
        flex-direction: column;
        text-align: center;
    }

    .secondary-actions {
        flex-direction: column;
        align-items: center;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* SPT profile (full screen) */
#playerProfileModal {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
}

#playerProfileModal.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

#playerProfileModal.closing {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9) translateY(-10px);
}

.profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.profile-modal-content {
    position: relative;
    border: 1px solid #ffffff21;
    padding: 25px;
    transition: all 300ms ease-in-out;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    color: #fff;
    display: grid;
    gap: 20px;
    grid-template-columns: 0.65fr 1fr 0.65fr;
}

.close-profile-button {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1;
    width: 50px;
    height: 40px;
    font-size: 20px;
}

.profile-section {
    background: linear-gradient(145deg, #ffffff08, #ffffff12);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #ffffff30;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    margin-bottom: 18px;
    backdrop-filter: blur(12px) saturate(130%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: fadeIn 0.4s ease-in-out;
}

.profile-section:hover {
    border: 1px solid #ffffff49;
}

.profile-section:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.profile-section h3 {
    color: #ffffffa6;
    font-size: 17px;
    margin: 5px 0 15px 0;
}

.user-main-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
    position: relative;
    padding: 20px;
}

.profile-header {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.name-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

/* Main PMC/SCAV stats on the profile*/
.player-overview {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    padding: 10px;
    background: linear-gradient(145deg, #ffffff0a, #ffffff12);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.player-overview-side {
    align-self: center;
    font-weight: 700;
    padding: 10px 15px;
    background: linear-gradient(145deg, #ffffff15, #ffffff0d);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 60px;
    position: relative;
    overflow: hidden;
}

.player-overview-scav {
    color: #ffa66b;
    background: linear-gradient(145deg, rgba(255, 166, 107, 0.15), rgba(255, 174, 107, 0.08));
}

.player-overview-pmc {
    color: #4ecdc4;
    background: linear-gradient(145deg, rgba(78, 205, 196, 0.15), rgba(78, 205, 196, 0.08));
}

/* Showcases */
.player-showcase {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
}

.showcase-mini {
    width: 100%;
}

.showcase-mini-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.showcase-items-mini {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 12px;
    height: 70px;
}

.showcase-item-mini {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: visible;
    transition: all 0.3s ease;
    cursor: help;
    animation: itemFloat 3s ease-in-out infinite;
}

.showcase-item-mini:nth-child(1) {
    animation-delay: 0s;
}

.showcase-item-mini:nth-child(2) {
    animation-delay: 0.2s;
}

.showcase-item-mini:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes itemFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.item-mini-icon {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.showcase-item-mini:hover .item-mini-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.item-mini-icon img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.item-mini-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.showcase-item-mini[data-rarity="common"] .item-mini-glow {
    background: linear-gradient(135deg, rgba(200, 200, 200, 0.1), rgba(150, 150, 150, 0.1));
    box-shadow: inset 0 0 10px rgba(200, 200, 200, 0.1);
}

.showcase-item-mini[data-rarity="uncommon"] .item-mini-glow {
    background: linear-gradient(135deg, rgba(100, 255, 100, 0.1), rgba(50, 200, 50, 0.1));
    box-shadow: inset 0 0 10px rgba(100, 255, 100, 0.1);
}

.showcase-item-mini[data-rarity="rare"] .item-mini-glow {
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.2), rgba(50, 100, 200, 0.2));
    box-shadow: inset 0 0 15px rgba(100, 150, 255, 0.2);
}

.showcase-item-mini[data-rarity="epic"] .item-mini-glow {
    background: linear-gradient(135deg, rgba(180, 80, 255, 0.25), rgba(140, 40, 200, 0.25));
    box-shadow: inset 0 0 20px rgba(180, 80, 255, 0.25);
}

.showcase-item-mini[data-rarity="legendary"] .item-mini-glow {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
    box-shadow: inset 0 0 25px rgba(255, 215, 0, 0.3);
}

.showcase-item-mini:hover .item-mini-glow {
    opacity: 0.5;
}

.item-mini-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgb(31 31 31);
    border: 1px solid #ffffff1a;
    border-radius: 6px;
    padding: 8px 12px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    text-align: center;
}

.showcase-item-mini:hover .item-mini-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.item-mini-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--border);
}

.item-mini-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
    line-height: 1.2;
    word-break: break-word;
}

.item-mini-price {
    display: block;
    font-size: 11px;
    color: var(--accent-teal);
    font-weight: bold;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    color: #bfebff;
    text-shadow: 0 0 3px rgba(191, 235, 255, 0.4);
    margin-bottom: 5px;
    transition: all ease-in-out 200ms;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.stat-item:hover .stat-value {
    color: #b7e8ff;
    text-shadow: 0 0 15px rgba(190, 233, 253, 0.2);
}

.stat-name {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-main-card .pfp {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-row: 1 / span 2;
    align-self: start;
}

.user-main-card .name {
    font-size: 1.2em;
    color: #dadada;
    font-weight: bold;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 5px;
    width: 220px;
}

.user-main-card .aboutMe {
    grid-column: 1 / -1;
    font-size: 15px;
    backdrop-filter: blur(5px);
    border-radius: 10px;
    border: 1px solid #ffffff1a;
    max-width: fit-content;
    font-weight: 600;
    color: #cdcdcd;
    padding: 5px 10px;
    margin: 25px 0px 0px;
}

.user-main-card .badges {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 8px;
    background-color: #ffffff05;
    border: 1px solid #ffffff21;
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 8px;
}

.pmc-side-wrapper {
    width: 150px;
    height: 150px;
    position: absolute;
    top: 0px;
    right: 0px;
    display: inline-grid;
}

.pmc-side-wrapper img {
    width: 150px;
    height: 150px;
}

.pmc-level {
    position: relative;
    bottom: 40px;
    font-family: monospace;
    background-color: #ffffff14;
    justify-self: center;
    padding: 5px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #ffffff1a;
}

.user-main-card .registerDate {
    font-size: 12px;
    color: #cdcdcd;
    position: absolute;
    top: 10px;
    right: 10px;
}

#main-profile-loader {
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

#main-profile-loader.fade-out {
    opacity: 0;
}

/* Player full height preview */
.playermodel {
    position: relative;
    overflow: hidden;
    text-align: center;
}

.playermodel-stats {
    display: flex;
    gap: 25px;
    margin-top: 10px;
    justify-content: center;
}

.playermodel-stats div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.playermodel-image {
    position: relative;
    width: 100%;
    max-width: 600px;
    min-height: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.playermodel-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 700px;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.player-energy img,
.player-health img {
    opacity: 0.9;
}

.player-hydration img {
    width: 20px;
    opacity: 0.9;
}

.player-hydration,
.player-energy,
.player-health {
    font-family: 'Bender Regular', sans-serif;
    font-size: 18px;
}

.player-hydration .current {
    color: #7ec8ff;
    font-weight: 600;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(30, 144, 255, 0.4);
}

.player-energy .current {
    color: #f4e6b3;
    font-weight: 600;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(244, 230, 179, 0.4);
}

.player-health .current {
    color: hsla(72, 73%, 50%, 1);
    font-weight: 600;
    font-size: 2rem;
    text-shadow: 0 0 10px hsla(72, 73%, 50%, 0.4);
}

.max {
    color: #777;
    font-size: 18px;
    margin-left: 2px;
    margin-top: 9px;
}

.playermodel h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
}

/* Online Status */
.player-status {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: #cdcdcd;
}

.raid-details {
    display: flex;
    flex-direction: column;
    min-width: 120px;
    font-size: 0.85em;
    margin-top: 5px;
    padding: 6px 12px;
    color: #f3f3f3;
    width: fit-content;
    border-top: 2px solid #ffa05b;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    border-bottom: 2px solid #ffa05b;
    border-radius: 5px;
    backdrop-filter: blur(5px);
    background: linear-gradient(180deg, rgba(71, 62, 62, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.raid-details span {
    margin: 2px 8px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-online {
    background-color: rgb(106, 255, 163);
    box-shadow: 0 0 8px rgb(106, 255, 163);
}

.status-inraid {
    background-color: rgb(245, 255, 106);
    box-shadow: 0 0 8px rgb(245, 255, 106);
}

.status-offline {
    background-color: rgb(121, 121, 121);
}

.user-achievements {
    grid-area: achievements;
    height: fit-content;
}

.raid-block {
    grid-area: raid-block;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.raid-summary {
    display: block;
    text-align: center;
}

.last-raids {
    max-height: 950px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border: 1px solid #ffffff1a;
    gap: 5px;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 20px;
}

.raid-time {
    transition: all 0.2s ease;
}

/* Recent stats for raid */
.recent-raids-stats {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-stats-header {
    text-align: center;
    margin-bottom: 15px;
}

.recent-stats-header h3 {
    font-size: 1.1rem;
    color: #bfebff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recent-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.recent-stats-grid .stat-card {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.recent-stats-grid .stat-label {
    font-size: 0.8rem;
}

.recent-stats-grid .stat-value {
    font-size: 1.2rem;
}

/* Hits Sheet */
.body-parts-main {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 20px;
}

.stats-body-hits {
    margin-left: 20px;
}

.avg-headshots {
    display: flex;
    align-items: center;
    text-align: center;
    font-weight: bold;
    font-size: 1.15rem;
    background: linear-gradient(90deg, #d8d8d8, #a5a5a5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hits-past-raids {
    border: 1px solid #ffffff1a;
    border-radius: 10px;
    padding: 15px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hits-wrapper {
    display: flex;
    flex-direction: column;
}

.hits-avg-headshots {
    display: flex;
    align-items: center;
}

.body-svg {
    fill: #cdcdcd5e;
    width: 70px;
}

.hit-perc {
    color: #c0c0c0;
    font-size: smaller;
    font-family: sans-serif;
}

.weapon-icon-fav {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    width: 100%;
    height: auto;
    margin-top: 10px;
    place-self: center;
    rotate: 9deg;
}

/* Weapons List & Achievements & Maps Stats */
.weapon-stats-container {
    max-height: 460px;
    overflow-y: scroll;
    padding-right: 5px;
}

.weapon-gold {
    background: radial-gradient(350px 200px at top right,
            rgba(255, 215, 0, 0.4) 30%,
            rgba(218, 165, 32, 0.3) 60%,
            rgba(255, 253, 253, 0.05));
    box-shadow: inset 0px 0px 55px rgba(255, 215, 0, 0.3);
    background-clip: padding-box;
}

.weapon-silver {
    background: radial-gradient(350px 200px at top right,
            rgba(192, 192, 192, 0.5) 30%,
            rgba(169, 169, 169, 0.3) 60%,
            rgba(255, 253, 253, 0.05));
    box-shadow: inset 0px 0px 55px rgba(192, 192, 192, 0.3);
    background-clip: padding-box;
}

.weapon-bronze {
    background: radial-gradient(350px 200px at top right,
            rgba(205, 127, 50, 0.45) 30%,
            rgba(139, 69, 19, 0.35) 60%,
            rgba(255, 253, 253, 0.05));
    box-shadow: inset 0px 0px 55px rgba(205, 127, 50, 0.25);
    background-clip: padding-box;
}

.weapon-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weapon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    overflow: hidden;
    transition: all 300ms ease-in-out;
}

.weapon-item:hover {
    box-shadow: inset 0px 0px 35px rgba(255, 255, 255, 0.05)
}

.weapon-infos {
    display: flex;
    gap: 15px;
    font-size: 14px;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}

.weapon-icon {
    width: 270px;
    height: 84px;
    display: flex;
}

.weapon-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: rotate(5deg);
}

/* Player Info for profile */
.player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #84d2ff;
    margin-bottom: 15px;
    object-fit: cover;
}

.player-discord {
    background: rgba(255, 255, 255, 0.096);
    border: 1px solid #ffffff3b;
    gap: 5px;
    border-radius: 5px;
    width: fit-content;
    font-size: 0.85rem;
    padding: 3px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.player-discord i {
    color: #7289da;
}

.badge {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.062);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff21;
    transition: transform 0.2s;
    font-size: 0.9em;
    will-change: transform;
}

.badge-lb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    font-size: 0.9em;
    place-self: center;
}

.badge-lb.tooltip {
    position: relative;
    cursor: pointer;
}

.badge-lb.tooltip em {
    font-size: 25px;
}

.badge:hover {
    transform: scale(1.1);
}

.boost-container {
    display: flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 16px;
    transition: all 0.3s ease;
    font-size: 0.9em;
    backdrop-filter: blur(5px);
    justify-self: center;
    background-color: #ffffff0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.boost-container em {
    margin-left: 5px;
    margin-top: 5px;
}

.boost-value {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.prestige-icon {
    width: 32px;
    height: 32px;
    vertical-align: inherit;
}

.profile-modal-content {
    animation: profileModalFade 0.25s ease-out forwards;
}

/* Animations */
@keyframes profileModalFade {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Friend List for profile */
.friends-container {
    max-height: 320px;
    overflow: overlay;
}

.friend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    gap: 12px;
    cursor: pointer;
}

.friend-item:hover {
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.friend-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(132, 210, 255, 0.7);
    object-fit: cover;
    flex-shrink: 0;
}

.friend-info {
    flex-grow: 1;
    min-width: 0;
}

.friend-name {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.friend-status {
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 70px;
}

.no-friends {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 16px;
    font-size: 15px;
}

/* Private Profile Styles */
.private-profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px) brightness(0.4);
    background: linear-gradient(45deg, rgba(255, 0, 0, 0.1), rgba(139, 0, 0, 0.2));
}

.private-profile-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid #ff4757;
    border-radius: 16px;
    padding: 35px;
    width: 380px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.private-profile-content h3 {
    color: #ff6b6b;
    margin: 20px 0;
    font-size: 24px;
    text-shadow:
        0 0 10px rgba(255, 107, 107, 0.5),
        0 0 20px rgba(255, 107, 107, 0.3);
}

.private-profile-content p {
    color: #b0b0c0;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 16px;
}

.ban-details {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1) 0%, rgba(255, 107, 107, 0.15) 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid rgba(255, 71, 87, 0.3);
    position: relative;
}

.ban-details::before {
    content: '⚠️';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 10px;
    font-size: 18px;
}

.ban-details p {
    margin: 12px 0;
    font-size: 14px;
}

.ban-details strong {
    color: #ff6b6b;
    font-weight: 600;
}

.ban-icon {
    width: 220px;
    height: 140px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 2px solid rgba(255, 71, 86, 0.096);
}

.banned {
    filter: blur(5px);
}

/* Profile loader container */
.shimmer-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(99, 102, 241, 0.04) 20%,
            rgba(139, 92, 246, 0.05) 40%,
            rgba(30, 144, 255, 0.08) 80%,
            transparent 100%);
    animation: loading-shimmer 1s ease-in-out infinite;
    z-index: 1;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.loader-dots {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    overflow: hidden;
    padding: 3rem;
    border-radius: 12px;
}

.dots-container {
    z-index: 2;
    display: flex;
    gap: 5px;
    margin-bottom: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary, #6366f1);
    animation: dotPulse 0.7s ease-in-out infinite;
    box-shadow: 0 0 12px var(--primary-light);
}

.dot:nth-child(1) {
    animation-delay: -0.16s;
    background: var(--accent-teal, #64ffda);
}

.dot:nth-child(2) {
    animation-delay: -0.8s;
    background: var(--primary, #6366f1);
}

.dot:nth-child(3) {
    background: var(--accent-purple, #8b5cf6);
}

.dot:nth-child(4) {
    animation-delay: 0.8s;
    background: var(--accent-blue, #1e90ff);
}

@keyframes dotPulse {

    0%,
    80%,
    100% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.dots-text {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
}

.loader-glass {
    height: 600px;
    background: rgba(255, 255, 255, 0.048);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    display: flex;
    place-content: center;
    animation: fadeIn 0.3s ease-out;
}

.loader-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.loader-icon {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

.loader-glass h3 {
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lock-icon {
    font-size: 50px;
    color: #84d2ff;
    opacity: 0.8;
}

.private-profile-hint {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.85em;
    font-style: italic;
}

.hidden {
    display: none;
}

/* Last Raids History */
.last-raid-feed {
    position: relative;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    height: fit-content;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: clip
}

.last-raid-feed:hover {
    cursor: pointer;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.last-raid-feed:hover .last-raid-full-background {
    opacity: 0.35;
}

.last-raid-feed:hover .last-raid-full-background img {
    filter: blur(1px) brightness(0.8);
    transform: scale(1.05);
}

.last-raid-feed:hover .section-title::after {
    width: 120px;
}

.error-raid-load {
    padding: 50px;
    color: #ff4444;
    align-self: center;
    font-weight: bold;
}

.last-raid-full-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.25;
    transition: opacity 0.5s ease;
}


.last-raid-full-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(2px) brightness(0.7);
    transition: all 0.5s ease;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #84d2ff;
    margin: 0 0 20px 0;
    font-size: 1.3em;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #84d2ff, transparent);
    transition: width 0.4s ease;
}

.lb-coins {
    font-weight: 700;
    color: #f59e0b;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    animation: pulseGold 2s infinite;
}

@keyframes pulseGold {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, #c2e8ff, transparent);
}

.last-raid-map {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.last-raid-map:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.last-raid-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.raid-result {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2em;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid currentColor;
}

.raid-result i {
    transition: transform 0.3s ease;
}

.raid-meta {
    display: block;
    font-size: 0.95em;
    margin-top: 12px;
    opacity: 0.9;
    line-height: 1.6;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.raid-profit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2em;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
}

.good {
    margin: 5px;
    color: #10b981;
}

.bad {
    margin: 5px;
    color: #ff6a6a;
}

.cross-profile-indicator {
    margin-left: 25px;
}

.cross-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    border-radius: 20px;
    font-size: 12px;
    color: #ffc107;
    font-weight: 500;
}

.cross-profile-badge.unknown {
    background: rgba(108, 117, 125, 0.2);
    border-color: rgba(108, 117, 125, 0.5);
    color: #6c757d;
}

.cross-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffc107;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cross-profile-link:hover {
    color: #ffd54f;
    text-decoration: underline;
}

.cross-profile-avatar {
    border: 1px solid #ffffff27;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.last-raid-feed.cross-profile {
    border-left: 4px solid #ffc107;
    opacity: 0.9;
}

.raid-killer {
    font-weight: 700;
    color: #ff6a6a;
    text-shadow: 0 0 8px rgba(255, 106, 106, 0.4);
    position: relative;
}

.raid-killer::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #ff6a6a, transparent);
    transform: scaleX(1);
}

.stats-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.stat-block {
    background: rgb(255 255 255 / 2%);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgb(255 255 255 / 10%);
}

.pmc-block {
    border-top: 3px solid #84d2ff;
}

.scav-block {
    border-top: 3px solid #ff9e64;
}

.scav {
    color: #ff9e64 !important;
}

.raid-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
    animation: slideInUp 0.8s ease;
}

.raid-stat-block {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    padding: 8px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.raid-stat-block:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.raid-stat-block:hover .profile-stat-value {
    color: #84d2ff;
    transform: scale(1.1);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.11);
}

.profile-stat-label {
    color: #b0b0c0;
    font-size: 0.9em;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-stat-value {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Survived */
.survived {
    color: #6affa3;
}

.survived-bg {
    background: radial-gradient(800px 300px at top left, hsl(148, 100%, 72%, 0.25), hsl(210, 30%, 12%, 0.9));
    border: 1px solid rgba(106, 255, 163, 0.2);
}

/* Died */
.died {
    color: #ff6a6a;
}

.died-bg {
    background: radial-gradient(800px 300px at top left, hsla(0, 100%, 72%, 0.25), hsl(210, 30%, 12%, 0.9));
    border: 1px solid rgba(255, 106, 106, 0.2);
}

/* Runner */
.run-through {
    color: #fffafa;
}

.run-through-bg {
    background: radial-gradient(800px 300px at top left, hsla(0, 0%, 100%, 0.2), hsl(210, 30%, 12%, 0.9));
    border: 1px solid rgba(255, 250, 250, 0.2);
}

/* Transit */
.transit {
    color: #F47730;
}

.transit-bg {
    background: radial-gradient(800px 300px at top left, hsla(20, 90%, 57%, 0.25), hsl(210, 30%, 12%, 0.9));
    border: 1px solid rgba(244, 119, 48, 0.2);
}

/* Disconnected */
.disconnected {
    color: #ff6a6a;
}

.disconnected-bg {
    background: radial-gradient(800px 300px at top left, hsla(0, 100%, 72%, 0.25), hsl(210, 30%, 12%, 0.9));
    border: 1px solid rgba(255, 106, 106, 0.2);
}

@media (max-width: 768px) {
    .profile-grid-layout {
        grid-template-columns: 1fr;
    }

    .profile-main-card {
        grid-column: 1;
    }

    .raid-stats-grid {
        grid-template-columns: 1fr;
    }
}

.raid-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.raid-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.raid-overview {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 15px;
}

.raid-visual-section {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.raid-status-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.raid-info-fullwidth {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 10px;
}

.raid-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.meta-item i {
    font-size: 1.1em;
    opacity: 0.8;
}

.map-hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px;
    text-align: center;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 0 10px 10px;
}

.last-raid-map:hover .map-hover-info {
    opacity: 1;
}

.last-raid-feed.expanded .raid-stats-grid {
    display: grid;
}

.last-raid-feed:not(.expanded) .raid-stats-grid {
    display: none;
}

.map-faction {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.pmc-faction {
    background: rgba(132, 210, 255, 0.2);
    color: #84d2ff;
    border: 1px solid rgba(132, 210, 255, 0.3);
}

.scav-faction {
    background: rgba(255, 158, 100, 0.2);
    color: #ff9e64;
    border: 1px solid rgba(255, 158, 100, 0.3);
}

.map-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a0a0c0;
    font-size: 0.9em;
}

.map-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-details {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}

.map-faction {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.pmc-faction {
    background: rgba(132, 210, 255, 0.2);
    color: #84d2ff;
    border: 1px solid rgba(132, 210, 255, 0.3);
}

.scav-faction {
    background: rgba(255, 158, 100, 0.2);
    color: #ff9e64;
    border: 1px solid rgba(255, 158, 100, 0.3);
}

.map-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a0a0c0;
    font-size: 0.9em;
}

.raid-score-section {
    display: flex;
    gap: 15px;
    align-items: center;
}

.lc-points {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-success {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.badge-danger {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.badge-warning {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge-purple {
    background-color: rgba(111, 66, 193, 0.15);
    color: #6f42c1;
    border: 1px solid rgba(111, 66, 193, 0.3);
}

.badge-gpu {
    background-color: rgba(0, 123, 255, 0.15);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.badge-bitcoin {
    background-color: rgba(255, 193, 7, 0.2);
    color: #f7931a;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.badge-ledx {
    background-color: rgba(220, 53, 69, 0.2);
    color: #ff6b8b;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

.badge-info {
    background-color: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.badge-gold {
    background-color: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.score-diff {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid;
}

.raid-overview-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    width: 100%;
}

.raid-text-content {
    display: flex;
    flex-direction: column;
}

.last-raid-map.survived-border {
    border: 2px solid #6affa3;
    box-shadow: 0 0 20px rgba(106, 255, 163, 0.3);
}

.last-raid-map.died-border {
    border: 2px solid #ff6a6a;
    box-shadow: 0 0 20px rgba(255, 106, 106, 0.3);
}

.last-raid-map.run-through-border {
    border: 2px solid #fffafa;
    box-shadow: 0 0 20px rgba(255, 250, 250, 0.3);
}

.last-raid-map.transit-border {
    border: 2px solid #F47730;
    box-shadow: 0 0 20px rgba(244, 119, 48, 0.3);
}

.last-raid-map.disconnected-border {
    border: 2px solid #ff6a6a;
    box-shadow: 0 0 20px rgba(255, 106, 106, 0.3);
}

/* Stats by Map */
.maps-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    padding: 10px;
    gap: 20px;
}

.map-stat-card {
    background: linear-gradient(145deg, #ffffff08, #ffffff12);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #ffffff20;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(15px) saturate(130%);
    transition: all 0.3s ease;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.map-stat-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: #ffffff40;
}

.map-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ffffff20;
    position: relative;
}

.map-image {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    overflow: hidden;
    margin-right: 18px;
    border: 2px solid #ffffff40;
    background: var(--gray-dark);
    transition: all 0.3s ease;
    position: relative;
}

.map-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-stat-card:hover .map-image::after {
    opacity: 1;
}

.map-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.map-stat-card:hover .map-image img {
    transform: scale(1.1);
}

.map-info {
    flex: 1;
}

.map-name {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 6px 0;
    background: linear-gradient(135deg, var(--text-light), var(--gray-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.map-raids-count {
    font-size: 0.95em;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.map-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.map-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.map-stat-label {
    font-size: 0.85em;
    color: var(--text-muted);
    font-weight: 500;
}

.map-stat-value {
    font-size: 1em;
    font-weight: 700;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.stat-positive {
    color: var(--success) !important;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.stat-negative {
    color: var(--danger) !important;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.favourite-map {
    background: linear-gradient(145deg,
            rgba(255, 215, 0, 0.05),
            rgba(255, 153, 0, 0.03),
            rgba(255, 51, 102, 0.02));
    position: relative;
}

.favourite-badge {
    position: relative;
    bottom: 12px;
    align-items: center;
    gap: 4px;
    background: linear-gradient(45deg, #ffd700, #ff9900);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.no-stats-message {
    text-align: center;
    padding: 60px 40px;
    border-radius: 20px;
    border: 1px dashed #ffffff30;
}

.no-stats-message h3 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.no-stats-message p {
    color: var(--text-muted);
    font-size: 1rem;
}

.progress-stat {
    flex-direction: column;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.progress-bar-container {
    width: 100%;
}

.progress-bar {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-fill {
    height: 100%;
    border-radius: 8px;
    position: relative;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(90deg,
            var(--progress-color-start),
            var(--progress-color-end));
    box-shadow: 0 0 10px var(--progress-glow);
}

.time-progress.low {
    --progress-color-start: #ef4444;
    --progress-color-end: #f87171;
    --progress-glow: rgba(239, 68, 68, 0.3);
}

.time-progress.medium {
    --progress-color-start: #f59e0b;
    --progress-color-end: #fbbf24;
    --progress-glow: rgba(245, 158, 11, 0.3);
}

.time-progress.good {
    --progress-color-start: #10b981;
    --progress-color-end: #34d399;
    --progress-glow: rgba(16, 185, 129, 0.3);
}

.time-progress.excellent {
    --progress-color-start: #8b5cf6;
    --progress-color-end: #a78bfa;
    --progress-glow: rgba(139, 92, 246, 0.3);
}

.survival-progress.low {
    --progress-color-start: #ef4444;
    --progress-color-end: #f87171;
    --progress-glow: rgba(239, 68, 68, 0.3);
}

.survival-progress.medium {
    --progress-color-start: #f59e0b;
    --progress-color-end: #fbbf24;
    --progress-glow: rgba(245, 158, 11, 0.3);
}

.survival-progress.high {
    --progress-color-start: #10b981;
    --progress-color-end: #34d399;
    --progress-glow: rgba(16, 185, 129, 0.3);
}

.kills-progress.low {
    --progress-color-start: #ef4444;
    --progress-color-end: #f87171;
    --progress-glow: rgba(239, 68, 68, 0.3);
}

.kills-progress.medium {
    --progress-color-start: #f59e0b;
    --progress-color-end: #fbbf24;
    --progress-glow: rgba(245, 158, 11, 0.3);
}

.kills-progress.high {
    --progress-color-start: #8b5cf6;
    --progress-color-end: #a78bfa;
    --progress-glow: rgba(139, 92, 246, 0.3);
}

.progress-fill {
    position: relative;
}

/* Quests Progression */
.quests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px;
    margin-top: 20px;
    max-height: 500px;
    overflow: hidden;
    overflow-y: scroll;
}

.quest-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quest-card:hover {
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(100, 255, 218, 0.1);
}

.quest-card.completed {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), rgba(255, 255, 255, 0.05));
}

.quest-card.in-progress {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.1), rgba(255, 255, 255, 0.05));
}

.quest-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.quest-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.quest-card:hover .quest-image {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.quest-info {
    flex: 1;
}

.quest-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
    line-height: 1.3;
}

.quest-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
}

.quest-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-in-progress {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.quest-card.not-accepted {
    border-color: rgba(148, 163, 184, 0.3);
    background: linear-gradient(145deg, rgba(148, 163, 184, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0.8;
}

.status-not-accepted {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.quest-timeline {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.timeline-label {
    color: var(--text-muted);
}

.timeline-value {
    color: var(--text-light);
    font-weight: 500;
}

.timeline-value.time-ago {
    color: var(--accent-teal);
    font-size: 0.8rem;
}

.quests-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quests-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.sort-btn {
    padding: 10px 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.sort-btn:hover {
    background: linear-gradient(145deg, rgba(100, 255, 218, 0.1), rgba(255, 255, 255, 0.05));
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sort-btn.active {
    background: linear-gradient(145deg, rgba(100, 255, 218, 0.2), rgba(100, 255, 218, 0.1));
    border-color: rgba(100, 255, 218, 0.4);
    color: var(--accent-teal);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
}

.quests-search {
    flex: 1;
    min-width: 200px;
}

.search-input {
    width: -webkit-fill-available;
    padding: 10px 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(100, 255, 218, 0.4);
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.quest-counter {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-left: auto;
}

.quest-counter span {
    color: var(--accent-teal);
    font-weight: 600;
}

.quests-grid {
    transition: all 0.3s ease-in-out;
}

.quests-grid.updating {
    opacity: 0.6;
}

.quest-card.hidden {
    display: none;
}

/* Hideout Modules */
.hideout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 10px;
    overflow-y: scroll;
    max-height: 250px;
}

.hideout-module {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    box-shadow: var(--shadow-sm);
}

.hideout-module.built {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.hideout-module.built:hover {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: var(--shadow-md);
}

.hideout-module.not-built {
    border-color: rgba(148, 163, 184, 0.25);
    opacity: 0.6;
}

.hideout-module.not-built:hover {
    opacity: 0.8;
}

.module-info {
    flex: 1;
    text-align: left;
    padding-left: 15px;
    min-width: 0;
}

.module-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.module-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0;
}

.module-status.built {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.module-status.not-built {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.module-image {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    transition: all 0.3s ease;
    min-width: 50px;
    max-width: 50px;
    min-height: 50px;
    max-height: 50px;
}

.module-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
    padding: 3px;
    box-sizing: border-box;
}

.hideout-module:hover .module-image img {
    transform: scale(1.1);
}

.hideout-module:hover .module-image {
    border-color: rgba(255, 255, 255, 0.2);
}

.module-level {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(145deg, var(--accent-teal), var(--accent-blue));
    color: var(--darker);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 8px;
    border: 2px solid var(--darker);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    min-width: 20px;
    text-align: center;
    z-index: 2;
}

.module-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.hideout-module.not-built .module-image {
    filter: grayscale(0.8);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .hideout-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 10px;
        padding: 5px;
    }

    .hideout-module {
        padding: 12px;
        min-height: 60px;
    }

    .module-image {
        width: 45px;
        height: 45px;
    }

    .module-name {
        font-size: 0.9rem;
    }
}

/* Badge tooltips */
.badge.tooltip {
    position: relative;
    cursor: pointer;
    z-index: 5;
}

.badge.tooltip em {
    font-size: 25px;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: max-content;
    max-width: 300px;
    background: rgb(31 31 31);
    border: 1px solid #ffffff1a;
    color: #fff;
    text-align: center;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.8em;
    position: absolute;
    z-index: 10;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.achievement-block {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: #ffffff00;
    border-radius: 10px;
    margin-top: 75px;
}

.achievement-content {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.achievement-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.achievement-icon img {
    width: 85px;
    height: 90px;
    border-radius: 8px;
}

.achievement-time {
    font-size: 0.8rem;
    color: #cdcdcd;
    margin-top: 0.25rem;
}

.achievement-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.achievement-title {
    font-weight: bold;
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.achievement-percentage {
    text-align: center;
    color: #cdcdcd;
    font-size: 12px;
    margin-top: auto;
}

.Rare {
    background: linear-gradient(90deg, #9c83ab, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.Rare img {
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.2));
}

.Common {
    background: linear-gradient(90deg, #d8d8d8, #a5a5a5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.Legendary {
    background: linear-gradient(90deg, #fff56d, #d49331);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(227, 241, 99, 0.3);
}

.Legendary img {
    filter: drop-shadow(0 0 15px rgba(227, 241, 99, 0.2));
}

.achievement-description {
    margin-block: auto;
    font-size: 0.9rem;
    color: #ccc;
}

/* Profile Battlepass */
.raids-modal-body {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
    transition: all 300ms ease-in-out;
}

.raids-modal-content {
    position: absolute;
    display: none;
    top: 50%;
    left: 100%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    height: 80vh;
    background-color: #1e1e2d;
    border-radius: 8px;
    overflow: hidden;
    flex-direction: column;
    overflow-y: scroll;
    transition: all 300ms ease-in-out;
    border: 1px solid #ffffff1a;
}

.raids-stats-container p {
    text-align: center;
    font-weight: 600;
}

/* Player Rank */
.rank-display {
    position: absolute;
    top: 90px;
    right: 30px;
    top: 70px;
    right: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.5s ease-out;
}

.rank-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.circular-progress {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(var(--progress-color, #4285f4) calc(var(--progress, 0) * 3.6deg),
            rgba(255, 255, 255, 0.1) 0deg);
    padding: 4px;
}

.circular-progress::before {
    content: '';
    position: absolute;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    z-index: 1;
}

.rank-name {
    font-family: 'Bender Regular', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    padding: 4px 12px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2),
            rgba(130, 174, 255, 0.3));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    white-space: nowrap;
    min-width: 120px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* BattlePass Level */
.bp-wrapper {
    position: relative;
    z-index: 2;
}

.rank-background {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 110px;
    height: 110px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    opacity: 0.9;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    left: 20px;
}

.level-info {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    background: linear-gradient(145deg, #ffffff0a, #ffffff15);
    border-radius: 12px;
    padding: 8px 16px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin-left: 120px;
}

.level-info::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(146, 255, 240, 0.05), transparent);
    animation: shimmer 8s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.level-label {
    color: rgba(255, 255, 255, 0.7);
}

.level-value {
    font-weight: 800;
    color: #92fff0;
    text-shadow: 0 0 10px rgba(146, 255, 240, 0.5);
    font-size: 2rem;
}

.level-value-wp {
    font-weight: bold;
    color: #deff92;
}

.exp-bar-container {
    padding-left: 120px;
    margin: 15px 0;
}

.exp-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.exp-progress {
    height: 100%;
    background: linear-gradient(90deg,
            #8ad0f0,
            #90ff9f,
            #8ad0f0);
    background-size: 200% 100%;
    border-radius: 8px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: gradientShift 2s ease infinite;
    box-shadow: 0 0 10px rgba(138, 208, 240, 0.4);
}

.exp-progress.max-level {
    background: linear-gradient(90deg,
            #ffd700,
            #fff8a9,
            #ffd700);
    background-size: 200% 100%;
    animation: goldenGlow 1.5s ease infinite;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

@keyframes goldenGlow {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }

    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    }

    100% {
        background-position: 0% 50%;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
}

.exp-progress-wp {
    height: 100%;
    background: linear-gradient(90deg,
            #f0c48a,
            #f8ff90,
            #f0c48a);
    background-size: 200% 100%;
    border-radius: 8px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: gradientShift 2s ease infinite;
    box-shadow: 0 0 10px rgba(240, 196, 138, 0.4);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.exp-numbers {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.exp-remaining {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.remaining-value {
    color: #91dcff;
    font-weight: bold;
}

.remaining-value-wp {
    color: #ebff91;
    font-weight: bold;
}

.hof-player-trader-info {
    padding: 15px;
    border: 1px solid rgb(255 255 255 / 10%);
    backdrop-filter: blur(10px);
    height: fit-content;
    align-self: flex-start;
    background: rgb(255 255 255 / 4%);
    border-radius: 8px;
}

.trader-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    overflow-y: scroll;
    max-height: 300px;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: #555 #2a2a2a;
}

.trader-grid::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.trader-grid::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.trader-grid::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.trader-grid::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.trader-card {
    background: rgba(255, 255, 255, 0.068);
    border: 1px solid #ffffff1a;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: transform 0.2s;
}

.trader-image-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 8px;
    border: 3px solid #7f7f7f44;
    border-radius: 10px;
}

.trader-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10%;

}

.trader-lock {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10%;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    font-size: 24px;
}

.trader-card[data-unlocked="false"] .trader-image {
    filter: brightness(0.5);
}

.trader-name {
    font-weight: bold;
    margin-bottom: 4px;
    color: #fff;
}

.trader-standing {
    font-size: 12px;
    color: #aaa;
}

.weapon-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weapon-name {
    font-size: 1.1em;
    margin-top: 15px;
    font-weight: bold;
    color: #fff;
}

.weapon-mastery {
    display: flex;
    justify-content: space-between;
    color: #a0a0a0;
}

.mastery-level {
    color: #84d2ff;
}

.weapon-extra-stats {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgb(255 255 255 / 10%);
    display: block;
    text-align: center;
}

.extra-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.stattrack-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.stattrack-message {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.stattrack-message a {
    text-decoration: wavy;
    transition: all 300ms ease-in-out;
    color: rgb(192, 201, 252);
}

.stattrack-disabled {
    filter: blur(10px);
    opacity: 0.8;
    pointer-events: none;
    user-select: none;
}

.hof-player-fav-weapon {
    position: relative;
}

/* Notifications of last raid */
#notifications-container-r {
    top: calc(var(--top-stats-height-variant, 70px));
    position: fixed;
    right: 0;
    width: 300px;
}

.player-notification-r {
    position: absolute;
    right: 10px;
    width: 320px;
    padding: 12px;
    border-radius: 6px;
    color: white;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border-left: 4px solid;
    animation: slideInLastRaid 0.3s forwards;
    backdrop-filter: blur(5px);
    font-family: 'Segoe UI', system-ui, sans-serif;
    overflow: hidden;
}

.player-notification-private-background {
    background: rgba(20, 20, 25, 0.116);
}

.notification-header-r {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* To change left border */
.border-died {
    border-left: 4px solid #f87171;
}

.border-survived {
    border-left: 4px solid #4ade80;
}

.border-transit {
    border-left: 4px solid #fbbf24;
}

.notification-content-r {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-avatar-r {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.notification-text-r {
    display: flex;
    flex-direction: column;
}

.notification-name-r {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.notification-info-r {
    font-size: 13px;
    color: #a0a0c0;
    display: block;
    line-height: 1.2;
}

.raid-overview-notify {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

.raid-result-r {
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.raid-result-r em,
.raid-result-r i {
    font-size: 20px;
}

.raid-result-r.survived {
    color: #4ade80;
}

.raid-result-r.died {
    color: #f87171;
}

.raid-result-r.disconnected {
    color: #f87171;
}

.raid-result-r.transit {
    color: #fbbf24;
}

.raid-meta-notify {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.notification-last-raid-streak-common {
    text-transform: uppercase;
    background-image: linear-gradient(-225deg,
            #79fbff,
            #6a6cfc,
            #79fbff);
    background-size: 200% auto;
    text-align: center;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
}

.notification-last-raid-streak {
    text-transform: uppercase;
    background-image: linear-gradient(-225deg,
            #79fbff,
            #6a6cfc,
            #79fbff);
    background-size: 200% auto;
    text-align: center;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textclip 3s linear infinite;
    display: inline-block;
    font-size: 19px;
    font-weight: 700;
}

.notification-last-raid-profit {
    text-transform: uppercase;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
    background-image: linear-gradient(90deg,
            #fbff00 0%,
            #f8ff92 25%,
            #fbff00 50%,
            #efff95 75%,
            #fbff00 100%);
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textclip 3s linear infinite;
    display: inline-block;
    will-change: background-position;
    backface-visibility: hidden;
}

.last-raid-lost-profit {
    text-transform: uppercase;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
    background-image: linear-gradient(90deg,
            #ff0000 0%,
            #ff9292 25%,
            #ff5c40 50%,
            #ff9595 75%,
            #ff0000 100%);
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: none;
    display: inline-block;
    backface-visibility: hidden;
}

@keyframes textclip {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

.notification-ban {
    color: #da6879;
    display: inline-block;
    font-size: 19px;
    font-weight: 700;
    text-align: center;
}

.ban-text {
    display: block;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #ffcccc;
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.164);
    border-left: 3px solid #ff3333;
    border-radius: 0 4px 4px 0;
}

.ban-issued {
    display: block;
    font-family: 'Arial', sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #ff9999;
    margin-top: 6px;
    padding: 6px 10px;
    background: rgba(139, 0, 0, 0.3);
    border: 1px solid #ff4d4d;
    border-radius: 4px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.4);
}

@keyframes slideInLastRaid {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* New player notification */
.new-player-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.new-player-avatar {
    border: 2px solid var(--accent-teal) !important;
    box-shadow:
        0 0 20px rgba(100, 255, 218, 0.4),
        inset 0 0 20px rgba(100, 255, 218, 0.1) !important;
}

.new-player-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #64ffda, #1e90ff);
    color: var(--darker);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(100, 255, 218, 0.5);
}

.new-player-name {
    background: linear-gradient(135deg, #64ffda, #1e90ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700 !important;
    font-size: 16px !important;
}

.new-player-subtitle {
    color: var(--text-light) !important;
    font-weight: 500;
    font-size: 14px !important;
}

.new-player-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.new-player-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.new-player-stat i {
    color: var(--accent-teal);
    font-size: 14px;
}

.new-player-stat:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateX(4px);
}

/* Season End Screen */
#seasonOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    z-index: 1000;
    overflow-y: auto;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #533d7b);
    background-size: 400% 400%;
}

.floating-player-name {
    animation: gentleFloat 6s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) translateY(0px);
    }

    50% {
        transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) translateY(-3px);
    }
}

#memoryOverlay {
    backdrop-filter: blur(5px);
}

@keyframes glowPulse {
    from {
        box-shadow: 0 0 30px rgba(134, 200, 255, 0.3);
    }

    to {
        box-shadow: 0 0 40px rgba(0, 0, 0, 0);
    }
}

@keyframes glowPulseTextRepeat {
    from {
        text-shadow: 5px 5px 10px rgba(255, 67, 67, 0.897);
    }

    to {
        text-shadow: 0 0 40px rgba(0, 0, 0, 0);
    }
}

@keyframes glowPulseText {
    from {
        text-shadow: 0 0 30px rgba(134, 200, 255, 0.3);
    }

    to {
        text-shadow: 0 0 30px rgba(0, 0, 0, 0);
    }
}

@keyframes glowPulseTextLast {
    from {
        color: #ff8484;
    }
}

.video-background,
.video-background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: opacity 2s ease-in-out;
    opacity: 0;
}

.video-background video,
.video-background-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
}

.season-end-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.season-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.season-header h1 {
    font-size: 2.3rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent-teal);
    animation: fadeInDown 2s ease-in-out forwards,
        glowPulseText 5s ease-in-out forwards 7.5s,
        glowPulseTextRepeat 2s ease-in-out forwards 8.5s,
        glowPulseTextLast 5s ease-in-out forwards 8.9s;
}

.season-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 10px;
    text-shadow:
        0 0 1px rgba(100, 255, 218, 0.4),
        0 0 3px rgba(100, 255, 218, 0.2);
    animation: fadeInUp 2s ease-in-out forwards,
        glowPulseText 5s ease-in-out forwards 7.6s;
}

.season-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.stats-block {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-block.general-stats {
    opacity: 0;
    animation: fadeInLeft 1s ease-in-out forwards 1s,
        glowPulse 5s ease-in-out forwards 7.9s;
}

.stats-block.top-players {
    opacity: 0;
    animation: fadeInRight 1s ease-in-out forwards 3s,
        glowPulse 5s ease-in-out forwards 8.3s;
    background: radial-gradient(650px 440px at top right, hsl(178deg 69% 52% / 22%), #fffdfd03);
}

.stats-block h2 {
    color: #8afbff;
    margin-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.player-card {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.06) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.player-card.top-kd {
    background: linear-gradient(135deg,
            rgba(239, 68, 68, 0.1) 0%,
            rgba(255, 255, 255, 0.02) 100%);
}

.player-card.top-kills {
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.1) 0%,
            rgba(255, 255, 255, 0.02) 100%);
}

.player-card.top-survivor {
    background: linear-gradient(135deg,
            rgba(16, 185, 129, 0.1) 0%,
            rgba(255, 255, 255, 0.02) 100%);
}

.player-title {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-se-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 10px 0;
    background: linear-gradient(45deg, #fff, var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.player-stats-se {
    display: flex;
    justify-content: space-between;
    color: #24fb97;
    font-weight: bold;
}

.player-additional {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 5px;
}

.additional-stats {
    background: rgba(255, 255, 255, 0.027);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.additional-stats h3 {
    color: #8afbff;
    margin-top: 0;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.fact-card {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.01) 100%);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.fact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.fact-text {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.season-countdown {
    text-align: center;
    margin-top: 40px;
}

.season-countdown p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .season-stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Footer */
.modern-footer {
    background-color: rgba(57, 89, 131, 0.205);
    ;
    color: #f0f0f0;
    padding: 2.5rem 0;
    font-family: 'Inter', -apple-system, sans-serif;
    border-top: #6db6ff solid 1px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
}

.logo-slogan {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
}

.slogan {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 300;
    margin: 0;
}

.curve_underline {
    position: relative;
    display: inline;
    padding-bottom: 2px;
}

.curve_underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), #ff9ff3);
    background-size: 100% 100%;
    border-radius: 3px;
}

.license-info {
    font-size: 0.8rem;
    opacity: 0.7;
}

.license-info a {
    color: #58a6ff;
    text-decoration: none;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Toasts / Notification pop ups */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.toast {
    min-width: 250px;
    max-width: 90%;
    padding: 12px 24px;
    background-color: #333;
    color: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: toastSlideIn 0.3s ease-out forwards;
    opacity: 0;
}

.toast.success {
    background: radial-gradient(650px 240px at top left, hsla(178, 69%, 52%, 0.856), #fffdfd03);
    backdrop-filter: blur(5px);
}

.toast.error {
    background: radial-gradient(650px 240px at top left, hsla(0, 58%, 47%, 0.89), #fffdfd03);
    backdrop-filter: blur(5px);
}

.toast.warning {
    background: radial-gradient(650px 240px at top left, #f47830ee, #fffdfd03);
    backdrop-filter: blur(5px);
}

.toast.info {
    background: radial-gradient(650px 240px at top left, #1867a8, #2195f3be);
    backdrop-filter: blur(5px);
}

@keyframes toastSlideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.toast-close {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        padding: 10px;

        max-width: 100%;
    }

    .navbar-links-container,
    .navbar-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .leaderboard-controls {
        padding: 10px;
    }

    .search-container,
    .controls-toolset {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    table,
    th,
    td {
        font-size: 0.8rem;
        padding: 3px 6px;
    }

    .team-members {
        gap: 20px;
    }

    .other-members {
        gap: 20px;
    }

    .member-avatar,
    .main-member .member-avatar {
        width: 100px;
        height: 100px;
    }

    .modal-content {
        width: 95%;
    }

    .winner-card {
        width: 100%;
        max-width: 320px;
    }

    .season-stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-grid-layout {
        grid-template-columns: 1fr;
    }

    .popup-content h1 {
        font-size: 1.5rem;
    }

    .popup-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 15px;
    }

    .stats-item,
    .live-data-label,
    .player-stats,
    .leaderboard-notification {
        display: none;
    }

    .winner-card {
        display: none;
    }

    .rank-icon {
        width: 60px;
        height: 60px;
    }
}

/* Admins */
#admins-container {
    position: fixed;
    top: calc(var(--top-stats-height, 70px));
    left: 10px;
    z-index: 10;
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 280px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    user-select: none;
    transform: translateY(0);
    transition: all 0.3s ease;
    min-height: 60px;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#admins-container.collapsed {
    max-height: 60px;
}

#admins-container.collapsed .content-wrapper {
    opacity: 0;
    pointer-events: none;
}

#admins-container .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    cursor: pointer;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#admins-container:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

#admins-container .header h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.toggle-btn i {
    font-size: 15px;
    transition: transform 0.3s ease;
}

#admins-container.collapsed .toggle-btn i {
    transform: rotate(-90deg);
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    transition: opacity 0.3s ease;
    opacity: 1;
    max-height: 300px;
}

.content-wrapper::-webkit-scrollbar {
    width: 4px;
}

.content-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.content-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.admin-dropdown {
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.dropdown-header {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #94a3b8;
    font-size: 13px;
    transition: all 0.2s ease;
}

.dropdown-header:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.dropdown-header i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown-header.active i {
    transform: rotate(180deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dropdown-content.expanded {
    max-height: 500px;
}

.admin-status {
    padding: 10px 14px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.admin-status:hover {
    background: rgba(255, 255, 255, 0.08);
}

.admin-status.online {
    color: #a5f3fc;
    border: 1px solid #22d3ee5c;
}

.admin-status.offline {
    color: #94a3b8;
}

.admin-status.offline::before {
    background: linear-gradient(to bottom, #64748b, #475569);
}

.admin-status .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.admin-status .username {
    font-weight: 500;
}

.admin-status .role-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.admin-status.admin .role-badge {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
}

.admin-status.moderator .role-badge {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.admin-status .status-info {
    font-size: 11px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.admin-status.online .status-dot {
    background: #22d3ee;
    box-shadow: 0 0 6px rgba(34, 211, 238, 0.5);
}

.admin-status.offline .status-dot {
    background: #64748b;
}

.admin-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 12px 0;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.61);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

/* Universal use */
.loading-overlay-other {
    position: absolute;
    width: 150px;
    height: 50px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    gap: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 15;
}

.loading-overlay-other p {
    font-size: 13px;
}

.loading-overlay-other.active {
    opacity: 1;
    pointer-events: all;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #a78bfa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-message {
    color: #f87171;
    font-size: 13px;
    text-align: center;
    padding: 10px;
}

.left-column,
.center-column,
.right-column {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 1200px) {
    .profile-modal-content {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .left-column,
    .center-column,
    .right-column {
        flex: 1 1 48%;
    }
}

@media (max-width: 768px) {
    .profile-modal-content {
        display: flex;
        flex-direction: column;
    }

    .left-column,
    .center-column,
    .right-column {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Comment Section */
/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-btn {
    color: var(--text-light);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    min-width: 100px;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.15));
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-glow);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.page-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-indicator {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.page-indicator:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.page-indicator.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: var(--primary-light);
    box-shadow: var(--shadow-glow);
}

.page-indicator.ellipsis {
    background: transparent;
    border: none;
    cursor: default;
    width: 20px;
}

.page-indicator.ellipsis:hover {
    transform: none;
    background: transparent;
}

.page-transition {
    animation:
        pageTransition 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        smoothScroll 0.3s ease;
}

.comment-form {
    border-radius: 16px;
}

.comment-input {
    width: 96%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-light, #e2e8f0);
    font-size: 1rem;
    resize: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    backdrop-filter: blur(5px);
}

.comment-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.comment-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.comment-input:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.comment-submit {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.comment-submit:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.15));
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.comment-submit:active {
    transform: translateY(0);
}

.comment-submit:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-left: 0;
    opacity: 1;
}

.comment:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.02) !important;
    margin-left: 0 !important;
    opacity: 1 !important;
    z-index: 100 !important;
    box-shadow: var(--shadow-lg);
}

.comment-header {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid rgb(159 159 159 / 50%);
}

.user-info {
    flex-grow: 1;
    display: inline-flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.user-name {
    font-weight: 600;
    color: #bfebff;
    font-size: 1.1rem;
}

.comment-date {
    font-size: 0.85rem;
    color: #94a3b8;
}

.comment-content {
    color: #e0e0e0;
    line-height: 1.6;
    margin-left: 75px;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 25px 0;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-comments {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.no-comments i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.8;
}

.no-comments p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.no-comments span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Loading Comment States */
.comment-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* For new comments */
@keyframes commentSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment.new-comment {
    animation: commentSlideIn 0.4s ease-out;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.comments-header h3 {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

#comments-count {
    color: var(--gray);
    font-weight: 700;
}

.pagination-info {
    color: var(--text-light);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pre loader */
.loader-container-pre {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--darker) 0%, var(--bg-dark) 50%, var(--bg-dark-secondary) 100%);
    z-index: 2;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.loader-container-pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(100, 255, 218, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 144, 255, 0.1) 0%, transparent 50%);
    animation: gradientPulse 8s ease-in-out infinite;
}

.loader-container-pre.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px) scale(0.98);
}

@keyframes gradientPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

.logo-pre {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: transparent;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-blue) 50%, #5232c7 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: 3px;
    text-shadow: 0 4px 20px rgba(100, 255, 218, 0.3);
    animation: logoGradient 3s ease infinite, logoFloat 4s ease-in-out infinite;
}

@keyframes logoGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.loader-pre {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, rgba(80, 112, 255, 0.15), rgba(80, 112, 255, 0.05));
    border-radius: 50%;
    position: relative;
    animation: skLinRotate 1.2s ease-in-out infinite alternate;
}

.loader-pre:after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--accent-teal);
}

@keyframes skLinRotate {

    95%,
    100% {
        transform: rotate(840deg)
    }
}

.progress-container-pre {
    width: 380px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-top: 2.5rem;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-container-pre::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%);
    animation: load-shimmer 1s infinite;
}

@keyframes load-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-bar-pre {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
            var(--accent-teal) 0%,
            var(--accent-blue) 50%,
            var(--accent-teal) 100%);
    background-size: 200% 100%;
    border-radius: 8px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: progressGradient 2s ease infinite;
    position: relative;
    z-index: 2;
}

@keyframes progressGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.status-text-pre {
    margin-top: 1.8rem;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    max-width: 400px;
    animation: textFade 2s ease-in-out infinite;
}

@keyframes textFade {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

.error-container-pre {
    position: absolute;
    display: none;
    text-align: center;
    max-width: 500px;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 16px;
    margin-top: 2.5rem;
    backdrop-filter: blur(20px);
    animation: errorPulse 2s ease-in-out infinite;
}

@keyframes errorPulse {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(255, 107, 107, 0.1);
    }

    50% {
        box-shadow: 0 12px 40px rgba(255, 107, 107, 0.2);
    }
}

.error-container-pre.visible {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

.error-title-pre {
    color: #ff6b6b;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.error-message-pre {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.retry-button-pre {
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

@keyframes celebrate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.complete .progress-bar-pre {
    animation: celebrate 0.5s ease-in-out 3;
}

/* TEAMS */
.team-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.team-modal-container.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.team-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.97);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.team-modal-content {
    position: relative;
    overflow: scroll;
    width: 100%;
    height: 100%;
    margin: auto;
    z-index: 1;
    padding: 35px 40px;
    transform: translateY(25px);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-modal-container.active .team-modal-content {
    transform: translateY(0) scale(1);
}

.team-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.team-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: rotate(90deg);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* Team Header */
.team-modal-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.25);
}

.team-modal-title-wrapper {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.team-modal-title {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg,
            var(--primary) 0%,
            var(--accent-purple) 50%,
            var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.1;
}

.team-modal-tag {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    font-size: 3.2rem;
    display: inline-block;
    margin-left: 15px;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.team-modal-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Stats Grid */
.team-modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.team-modal-stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(145deg,
            rgba(30, 41, 59, 0.8),
            rgba(15, 23, 42, 0.6));
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.team-modal-stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--primary),
            var(--accent-purple));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.team-modal-stat-item:hover::before {
    left: 100%;
}

.team-modal-stat-item:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-lg);
}

.team-modal-stat-icon {
    width: 60px;
    height: 60px;
    font-size: 30px;
    border-radius: 14px;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.15),
            rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    flex-shrink: 0;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.team-modal-stat-content {
    flex: 1;
}

.team-modal-stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-modal-stat-value {
    color: var(--primary-light);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

/* Players Section */
.team-modal-players-section {
    height: calc(100% - 250px);
    display: flex;
    flex-direction: column;
}

.team-modal-players-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    overflow-y: auto;
    padding: 5px 15px 20px 5px;
}

/* Player Cards */
.player-card-team {
    isolation: isolate;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border-radius: 20px;
    padding: 25px 20px 20px 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 320px;
    max-height: fit-content;
}

.player-card-team:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2), 0 0 0 1px rgba(99, 102, 241, 0.3);
}

.player-image-team {
    width: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    transition: all 0.5s ease;
    max-height: 500px;
}

.player-card-team:hover .player-image-team {
    transform: scale(1.08);
    filter: drop-shadow(0 15px 30px rgba(99, 102, 241, 0.3));
}

.player-name-team {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

.player-card-team:hover .player-name-team {
    color: var(--primary-light);
}

.player-level-team {
    color: var(--accent-teal);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 15px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(100, 255, 218, 0.3);
}

.player-wins-team {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 15px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Animation for player cards */
@keyframes playerCardEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.player-card-team {
    animation: playerCardEnter 0.5s ease forwards;
    opacity: 0;
}

.team-player-stats-wrapper {
    position: absolute;
    right: 10px;
}