/* Auto-generated from templates/*.html */

/* ===== Shared global at-rules ===== */

@font-face {
            font-family: "Burbank Big Condensed";
            src: url("/static/fonts/burbank-black.woff2") format("woff2");
            font-weight: 900;
            font-style: normal;
            font-display: block;
        }

@font-face {
            font-family: "Inter";
            font-style: normal;
            font-weight: 400;
            font-display: block;
            src: url("/static/fonts/inter-400.woff2") format("woff2");
        }

@font-face {
            font-family: "Inter";
            font-style: normal;
            font-weight: 500;
            font-display: block;
            src: url("/static/fonts/inter-500.woff2") format("woff2");
        }

@font-face {
            font-family: "Inter";
            font-style: normal;
            font-weight: 600;
            font-display: block;
            src: url("/static/fonts/inter-600.woff2") format("woff2");
        }

@font-face {
            font-family: "Inter";
            font-style: normal;
            font-weight: 700;
            font-display: block;
            src: url("/static/fonts/inter-700.woff2") format("woff2");
        }

@keyframes spin {
            to { transform: rotate(360deg); }
        }

@keyframes pulse-live {
            0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
            50% { box-shadow: 0 0 12px 4px rgba(34, 197, 94, 0.6); }
        }

@keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

@keyframes pulse-live {
            0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
            50% { opacity: 0.85; box-shadow: 0 0 8px 2px rgba(34, 197, 94, 0.6); }
        }

@keyframes dot-pulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.2); opacity: 0.7; }
        }

@keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(1.2); }
        }

@keyframes progress {
            from { width: 0%; }
            to { width: 100%; }
        }

/* ===== Page-scoped CSS ===== */

/* ===== 404.html ===== */

html.page-404 * {
margin: 0;
            padding: 0;
            box-sizing: border-box;
}

        html.page-404 {
background: 
                linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.9) 50%, rgba(15, 52, 96, 0.85) 100%),
                linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
                url("/static/images/background.webp");
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            background-repeat: no-repeat;
            min-height: 100vh;
}

        body.page-404 {
font-family: "Inter", sans-serif;
            color: #e6e6fa;
            position: relative;
            min-height: 100vh;
}

        body.page-404::before {
content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
            pointer-events: none;
            z-index: -1;
}

        html.page-404 .navbar {
background: rgba(10, 12, 18, 0.8);
            padding: 0;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            backdrop-filter: blur(15px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

        html.page-404 .navbar-container {
max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            height: 64px;
}

        html.page-404 .nav-left {
display: flex;
            align-items: center;
            gap: 8px;
}

        html.page-404 .nav-links {
display: flex;
            align-items: center;
            gap: 4px;
}

        html.page-404 .nav-button {
background: none;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            padding: 8px 16px;
            font-size: 14px;
            font-weight: 500;
            font-family: "Inter", sans-serif;
            cursor: pointer;
            text-decoration: none;
            display: flex;
            align-items: center;
            transition: all 0.2s ease;
            border-radius: 8px;
            position: relative;
}

        html.page-404 .nav-button:hover {
color: #ffffff;
            background: rgba(255, 255, 255, 0.05);
}

        html.page-404 .nav-button.active {
color: #00d4ff;
            background: rgba(0, 212, 255, 0.08);
            font-weight: 600;
}

        html.page-404 .search-trigger {
color: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
}

        html.page-404 .search-trigger:hover {
background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
}

        /* Search Popup */
        html.page-404 .search-overlay {
position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
}

        html.page-404 .search-overlay.show {
display: flex;
            opacity: 1;
}

        html.page-404 .search-popup {
background: #1a1f2e;
            width: 90%;
            max-width: 450px;
            padding: 30px;
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transform: scale(0.9);
            transition: transform 0.3s ease;
            position: relative;
}

        html.page-404 .close-search {
position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            font-size: 24px;
            cursor: pointer;
            padding: 5px;
            line-height: 1;
            transition: color 0.2s;
            margin: 0;
            width: auto;
}

        html.page-404 .close-search:hover {
color: white;
}

        html.page-404 .search-overlay.show .search-popup {
transform: scale(1);
}

        html.page-404 .search-popup .platform-switcher {
display: flex;
            gap: 24px;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            padding: 6px 40px;
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin: 0 auto 25px;
            width: fit-content;
            min-width: 240px;
            justify-content: center;
}

        html.page-404 .search-popup .platform-btn {
width: 36px;
            height: 36px;
            border: none;
            background: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.6;
            transition: all 0.2s ease;
            padding: 0;
            margin: 0;
}

        html.page-404 .search-popup .platform-btn img {
filter: brightness(0.6) saturate(0);
            transition: all 0.2s ease;
}

        html.page-404 .search-popup .platform-btn.active {
opacity: 1;
}

        html.page-404 .search-popup .platform-btn.active img {
filter: brightness(1) saturate(1);
}

        html.page-404 .search-popup .search-input-container {
display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 0;
}

        html.page-404 .search-popup #usernameInputPopup {
flex: 1;
            padding: 15px 20px;
            background: transparent;
            border: none;
            color: #ffffff;
            font-family: "Inter", sans-serif;
            font-size: 1rem;
            outline: none;
}

        html.page-404 .search-popup .search-btn {
background: transparent;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            width: auto;
}

        html.page-404 .search-popup .search-main-btn {
width: 100%;
            margin: 0;
            padding: 16px;
            font-size: 1.1rem;
            font-family: "Burbank Big Condensed", sans-serif;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 2px;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            cursor: pointer;
}

        html.page-404 .popup-search-input {
width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 16px 20px;
            border-radius: 16px;
            color: #ffffff;
            font-size: 1.1rem;
            outline: none;
            margin-bottom: 20px;
}

        html.page-404 .popup-search-input:focus {
border-color: #00d4ff;
            background: rgba(0, 212, 255, 0.05);
}

        html.page-404 .search-popup h2 {
font-family: "Burbank Big Condensed", sans-serif !important;
            color: #fff;
            margin-bottom: 20px;
            font-size: 2rem;
            text-transform: uppercase;
}

        html.page-404 .search-popup button {
font-family: "Burbank Big Condensed", sans-serif !important;
            text-transform: uppercase;
            letter-spacing: 1px;
}

        html.page-404 .user-info {
display: flex;
            align-items: center;
            gap: 15px;
}

        html.page-404 .hamburger {
display: none;
            flex-direction: column;
            cursor: pointer;
            padding: 10px;
}

        html.page-404 .hamburger span {
width: 25px;
            height: 3px;
            background: #ffffff;
            margin: 3px 0;
            transition: 0.3s;
            border-radius: 2px;
}

        html.page-404 .hamburger.active span:nth-child(1) {
transform: rotate(-45deg) translate(-5px, 6px);
}

        html.page-404 .hamburger.active span:nth-child(2) {
opacity: 0;
}

        html.page-404 .hamburger.active span:nth-child(3) {
transform: rotate(45deg) translate(-5px, -6px);
}

        html.page-404 .mobile-menu {
display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(20px);
            flex-direction: column;
            padding: 20px 0;
}

        html.page-404 .mobile-menu.active {
display: flex;
}

        html.page-404 .mobile-menu .nav-button {
padding: 15px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

        html.page-404 .mobile-menu .nav-button:last-child {
border-bottom: none;
}

        html.page-404 .desktop-only {
display: flex;
}

        @media (max-width: 768px) {
body.page-404 {
padding-bottom: 90px !important;
}
            html.page-404 .nav-links {
display: none;
}
            html.page-404 .hamburger {
display: flex;
}
            html.page-404 .navbar-container {
padding: 0 15px;
}
            html.page-404 .desktop-only {
display: none !important;
}
            html.page-404 .bottom-nav {
display: flex;
}
            body.page-404 {
padding-bottom: 64px;
}
            html.page-404 {
background-attachment: scroll;
}
            body.page-404::before {
display: none;
}
}

        html.page-404 .bottom-nav {
display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 64px;
            background: rgba(10, 12, 18, 0.95);
            backdrop-filter: blur(20px);
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            z-index: 1000;
            justify-content: space-around;
            align-items: center;
            padding: 0 10px;
}

        html.page-404 .bottom-nav-item {
display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 10px; font-weight: 500; gap: 4px; transition: all 0.2s ease; cursor: pointer; border: none; background: none; padding: 0; width: 20%;
}

        html.page-404 .bottom-nav-item svg {
width: 22px;
            height: 22px;
            stroke-width: 2;
}

        html.page-404 .bottom-nav-item.active {
color: #00d4ff;
}

        html.page-404 .more-popup-overlay {
position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(10px);
            z-index: 3000;
            display: none;
            align-items: flex-end;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
}

        html.page-404 .more-popup-overlay.show {
display: flex;
            opacity: 1;
}

        html.page-404 .more-popup {
background: #1a1f2e;
            width: 100%;
            max-width: 500px;
            padding: 30px;
            border-radius: 24px 24px 0 0;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-bottom: none;
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

        html.page-404 .more-popup-overlay.show .more-popup {
transform: translateY(0);
}

        html.page-404 .more-option {
display: flex;
            align-items: center;
            gap: 15px;
            padding: 16px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            color: #ffffff;
            text-decoration: none;
            margin-bottom: 12px;
            font-weight: 600;
            transition: all 0.2s ease;
}

        html.page-404 .more-option:hover {
background: rgba(0, 212, 255, 0.1);
            color: #00d4ff;
}

        

        html.page-404 .error-container {
text-align: center;
            max-width: 600px;
            padding: 40px 20px 60px;
            margin-top: 64px;
}

        html.page-404 .error-code {
font-family: "Burbank Big Condensed", sans-serif;
            font-size: 8rem;
            font-weight: 900;
            color: #00d4ff;
            text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
            margin-bottom: 20px;
            line-height: 1;
}

        html.page-404 .error-title {
font-family: "Burbank Big Condensed", sans-serif;
            font-size: 3rem;
            font-weight: 900;
            color: #ffffff;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
            margin-bottom: 20px;
            text-transform: uppercase;
}

        html.page-404 .error-message {
font-size: 1.2rem;
            color: #8892b0;
            margin-bottom: 40px;
            line-height: 1.6;
}

        html.page-404 .home-button {
display: inline-block;
            padding: 15px 35px;
            font-size: 16px;
            font-weight: 900;
            font-family: "Burbank Big Condensed", sans-serif;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: white;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-decoration: none;
            border: 2px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
}

        html.page-404 .home-button:hover {
background: linear-gradient(135deg, #0099cc 0%, #007799 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

        html.page-404 .suggestions {
margin-top: 30px;
            text-align: left;
}

        html.page-404 .suggestions h3 {
color: #00d4ff;
            font-family: "Burbank Big Condensed", sans-serif;
            font-size: 1.5rem;
            margin-bottom: 15px;
            text-transform: uppercase;
}

        html.page-404 .suggestions ul {
list-style: none;
            padding: 0;
}

        html.page-404 .suggestions li {
margin-bottom: 10px;
}

        html.page-404 .suggestions a {
color: #e6e6fa;
            text-decoration: none;
            display: flex;
            align-items: center;
            padding: 10px 15px;
            background: rgba(45, 55, 72, 0.6);
            border-radius: 8px;
            transition: all 0.3s ease;
}

        html.page-404 .suggestions a:hover {
background: rgba(45, 55, 72, 0.9);
            color: #00d4ff;
            transform: translateX(5px);
}

        @media (max-width: 768px) {
body.page-404 {
padding-bottom: 90px !important;
}
            html.page-404 .error-code {
font-size: 6rem;
}

            html.page-404 .error-title {
font-size: 2.5rem;
}

            html.page-404 .error-message {
font-size: 1rem;
}

            html.page-404 .error-container {
padding: 20px 15px;
                margin-top: 15px;
}
}
    
        @media (max-width: 768px) {
body.page-404 {
padding-bottom: 90px !important;
}
            html.page-404 .bottom-nav {
display: flex;
}
            body.page-404 {
padding-bottom: 70px !important;
}
}
        
        @media (max-width: 768px) {
body.page-404 {
padding-bottom: 90px !important;
}
            html.page-404 .bottom-nav {
display: flex !important;
}
            body.page-404 {
padding-bottom: 70px !important;
}
            html.page-404 .navbar {
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
}

@media (max-width: 768px) {
body.page-404 {
padding-bottom: 90px !important;
}
            html.page-404 .navbar {
display: none !important;
}
            html.page-404 .hamburger {
display: none !important;
}
            html.page-404 .mobile-menu {
display: none !important;
}
            body.page-404 {
padding-bottom: 0 !important;
}
}

html.page-404 .error-page-wrapper {
display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    min-height: calc(100vh - 150px);
                    padding: 20px;
}

html.page-404 .error-page-wrapper {
display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    min-height: calc(100vh - 150px);
                    padding: 20px;
}

html.page-404 .navbar-container {
max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            height: 64px;
            position: relative;
}
        html.page-404 .nav-links {
position: absolute;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 4px;
}

/* ===== event_detail.html ===== */

html.page-event-detail * {
margin: 0;
            padding: 0;
            box-sizing: border-box;
}

        html.page-event-detail {
--bg-primary: #141823;
            --bg-secondary: #1a1f2e;
            --bg-card: rgba(20, 24, 35, 0.95);
            --accent: #00d4ff;
            --accent-hover: #00b8e0;
            --text-primary: #ffffff;
            --text-secondary: #e6e6fa;
            --text-muted: #8892b0;
            --gold: #ffd700;
            --silver: #c0c0c0;
            --bronze: #cd7f32;
            --live: #22c55e;
            --upcoming: #3b82f6;
            --completed: #6b7280;
            --border: rgba(255, 255, 255, 0.08);
}

        html.page-event-detail {
background: var(--bg-primary);
            min-height: 100vh;
            overflow-y: scroll;
}

        body.page-event-detail {
font-family: "Inter", sans-serif;
            color: var(--text-secondary);
            min-height: 100vh;
            overflow-x: hidden;
}

        html.page-event-detail .navbar {
background: rgba(10, 12, 18, 0.8);
            padding: 0;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1001;
            backdrop-filter: blur(15px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

        html.page-event-detail .navbar-container {
max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 64px; position: relative;
}

        html.page-event-detail .nav-left {
display: flex;
            align-items: center;
            gap: 16px;
}

        html.page-event-detail .nav-links {
position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px;
}

        html.page-event-detail .nav-right {
display: flex;
            align-items: center;
            gap: 16px;
}

        html.page-event-detail .nav-button {
background: none;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            padding: 8px 16px;
            font-size: 14px;
            font-weight: 500;
            font-family: "Inter", sans-serif;
            cursor: pointer;
            text-decoration: none;
            display: flex;
            align-items: center;
            transition: all 0.2s ease;
            border-radius: 8px;
            position: relative;
}

        html.page-event-detail .nav-button:hover {
color: #ffffff;
            background: rgba(255, 255, 255, 0.05);
}

        html.page-event-detail .nav-button.active {
color: #00d4ff;
            background: rgba(0, 212, 255, 0.08);
            font-weight: 600;
}

        html.page-event-detail .nav-button.active::after {
display: none;
}

        html.page-event-detail .search-trigger {
color: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: auto;
            height: auto;
}

        html.page-event-detail .search-trigger:hover {
background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
}

        html.page-event-detail .user-info {
display: flex;
            align-items: center;
            gap: 10px;
}

        /* Search Popup */
        html.page-event-detail .search-overlay {
position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
}

        html.page-event-detail .search-overlay.show {
display: flex;
            opacity: 1;
}

        html.page-event-detail .search-popup {
background: #1a1f2e;
            width: 90%;
            max-width: 450px;
            padding: 30px;
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transform: scale(0.9);
            transition: transform 0.3s ease;
            position: relative;
}

        html.page-event-detail .close-search {
position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            font-size: 24px;
            cursor: pointer;
            padding: 5px;
            line-height: 1;
            transition: color 0.2s;
            margin: 0;
            width: auto;
}

        html.page-event-detail .close-search:hover {
color: white;
}

        html.page-event-detail .search-overlay.show .search-popup {
transform: scale(1);
}

        html.page-event-detail .search-popup .platform-switcher {
display: flex;
            gap: 24px;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            padding: 6px 40px;
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin: 0 auto 25px;
            width: fit-content;
            min-width: 240px;
            justify-content: center;
}

        html.page-event-detail .search-popup .platform-btn {
width: 36px;
            height: 36px;
            border: none;
            background: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.6;
            transition: all 0.2s ease;
            padding: 0;
            margin: 0;
}

        html.page-event-detail .search-popup .platform-btn img {
filter: brightness(0.6) saturate(0);
            transition: all 0.2s ease;
}

        html.page-event-detail .search-popup .platform-btn.active {
opacity: 1;
}

        html.page-event-detail .search-popup .platform-btn.active img {
filter: brightness(1) saturate(1);
}

        html.page-event-detail .search-popup .search-input-container {
display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 0;
}

        html.page-event-detail .search-popup #usernameInputPopup {
flex: 1;
            padding: 15px 20px;
            background: transparent;
            border: none;
            color: #ffffff;
            font-family: "Inter", sans-serif;
            font-size: 1rem;
            outline: none;
}

        html.page-event-detail .search-popup .search-btn {
background: transparent;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            width: auto;
}

        html.page-event-detail .search-popup .search-main-btn {
width: 100%;
            margin: 0;
            padding: 16px;
            font-size: 1.1rem;
            font-family: "Burbank Big Condensed", sans-serif;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 2px;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            cursor: pointer;
}

        html.page-event-detail .popup-search-input {
width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 16px 20px;
            border-radius: 16px;
            color: #ffffff;
            font-size: 1.1rem;
            outline: none;
            margin-bottom: 20px;
}

        html.page-event-detail .popup-search-input:focus {
border-color: #00d4ff;
            background: rgba(0, 212, 255, 0.05);
}

        html.page-event-detail .search-popup h2 {
font-family: "Burbank Big Condensed", sans-serif !important;
            color: #fff;
            margin-bottom: 20px;
            font-size: 2rem;
            text-transform: uppercase;
}

        html.page-event-detail .search-popup button {
font-family: "Burbank Big Condensed", sans-serif !important;
            text-transform: uppercase;
            letter-spacing: 1px;
}

        html.page-event-detail .hamburger {
display: none;
            flex-direction: column;
            cursor: pointer;
            padding: 10px;
}

        html.page-event-detail .hamburger span {
width: 25px;
            height: 3px;
            background: #ffffff;
            margin: 3px 0;
            transition: 0.3s;
            border-radius: 2px;
}

        html.page-event-detail .mobile-menu {
display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(20px);
            flex-direction: column;
            padding: 20px 0;
}

        html.page-event-detail .mobile-menu.active {
display: flex;
}

        html.page-event-detail .bottom-nav {
display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 70px;
            background: rgba(10, 12, 18, 0.9);
            backdrop-filter: blur(20px);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 1000;
            justify-content: space-around;
            align-items: center;
            padding: 0 10px;
}

        html.page-event-detail .bottom-nav-item {
display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 10px; font-weight: 500; gap: 4px; transition: all 0.2s ease; cursor: pointer; border: none; background: none; padding: 0; width: 20%;
}

        html.page-event-detail .bottom-nav-item svg {
width: 24px;
            height: 24px;
            stroke-width: 2;
}

        html.page-event-detail .bottom-nav-item.active {
color: #00d4ff;
}

        html.page-event-detail .bottom-nav-item:hover {
color: #ffffff;
}

        /* More Popup Overlay */
        html.page-event-detail .more-popup-overlay {
position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(10px);
            z-index: 3000;
            display: none;
            align-items: flex-end;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
}

        html.page-event-detail .more-popup-overlay.show {
display: flex;
            opacity: 1;
}

        html.page-event-detail .more-popup {
background: #1a1f2e;
            width: 100%;
            max-width: 500px;
            padding: 30px;
            border-radius: 24px 24px 0 0;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-bottom: none;
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

        html.page-event-detail .more-popup-overlay.show .more-popup {
transform: translateY(0);
}

        html.page-event-detail .more-option {
display: flex;
            align-items: center;
            gap: 15px;
            padding: 16px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            color: #ffffff;
            text-decoration: none;
            margin-bottom: 12px;
            font-weight: 600;
            transition: all 0.2s ease;
}

        html.page-event-detail .more-option:hover {
background: rgba(0, 212, 255, 0.1);
            color: #00d4ff;
}

        @media (max-width: 768px) {
body.page-event-detail {
padding-bottom: 90px !important;
}
            html.page-event-detail .navbar {
display: none;
}
            html.page-event-detail .bottom-nav {
display: flex;
}
            html.page-event-detail .desktop-only {
display: none !important;
}

            /* Mobile Event Detail Adjustments */
            html.page-event-detail .event-title {
font-size: 1.8rem;
}

            html.page-event-detail .stats-row {
flex-direction: column;
                align-items: stretch;
}

            html.page-event-detail .stat-card {
min-width: 100%;
}

            html.page-event-detail .search-box input {
width: 150px;
}

            html.page-event-detail .tabs {
width: 100%;
                overflow-x: auto;
}
}

        html.page-event-detail #leaderboardContent {
min-height: 400px;
            position: relative;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
}

        html.page-event-detail .loading-overlay {
position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(20, 24, 35, 0.7);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 10;
            backdrop-filter: blur(4px);
            border-radius: 12px;
}

        html.page-event-detail .spinner {
width: 40px;
            height: 40px;
            border: 3px solid rgba(0, 212, 255, 0.1);
            border-radius: 50%;
            border-top-color: var(--accent);
            animation: spin 1s ease-in-out infinite;
            margin-bottom: 16px;
}

        

        html.page-event-detail #leaderboardContent .leaderboard-table {
min-width: 640px;
}

        html.page-event-detail .event-hero {
position: relative;
            min-height: 250px;
            background-size: cover;
            background-position: center top;
            display: flex;
            align-items: flex-end;
            padding: 32px 24px;
            margin-bottom: 0;
            margin-top: 0;
            padding-top: 96px;
}

        html.page-event-detail .event-hero::before {
content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to top, var(--bg-primary) 0%, rgba(20, 24, 35, 0.6) 50%, transparent 100%);
}

        html.page-event-detail .event-hero-content {
position: relative;
            max-width: 1400px;
            width: 100%;
            margin: 0 auto;
            z-index: 1;
}


        html.page-event-detail .event-title {
font-family: "Burbank Big Condensed", sans-serif;
            font-size: 2.5rem;
            font-weight: 900;
            color: var(--text-primary);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 8px;
            text-shadow: 1px 2px 4px rgba(0,0,0,0.5);
}

        html.page-event-detail .event-subtitle {
font-size: 0.95rem;
            color: var(--text-muted);
            margin-bottom: 12px;
            max-width: 600px;
            line-height: 1.4;
}

        html.page-event-detail .status-badge {
display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 14px;
            border-radius: 20px;
            font-family: "Inter", sans-serif;
            font-size: 0.8rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
}

        html.page-event-detail .status-badge.live {
background: rgba(34, 197, 94, 0.15);
            color: #22c55e;
            border: 1px solid rgba(34, 197, 94, 0.3);
}

        html.page-event-detail .status-badge.upcoming {
background: rgba(59, 130, 246, 0.15);
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.3);
}

        html.page-event-detail .status-badge.completed {
background: rgba(107, 114, 128, 0.15);
            color: #9ca3af;
            border: 1px solid rgba(107, 114, 128, 0.3);
}

        

        html.page-event-detail .event-meta {
display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 12px;
}

        html.page-event-detail .meta-tag {
display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 10px;
            background: rgba(255,255,255,0.08);
            border-radius: 4px;
            font-size: 0.8rem;
            color: var(--text-muted);
}

        html.page-event-detail .container {
max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
}

        html.page-event-detail .rounds-row {
display: flex;
            gap: 12px;
            overflow-x: auto;
            padding: 16px 0;
            margin-bottom: 24px;
            scrollbar-width: thin;
            scrollbar-color: var(--accent) transparent;
}

        html.page-event-detail .rounds-row::-webkit-scrollbar {
height: 6px;
}

        html.page-event-detail .rounds-row::-webkit-scrollbar-thumb {
background: rgba(0, 212, 255, 0.3);
            border-radius: 3px;
}

        html.page-event-detail .round-card {
flex: 0 0 auto;
            min-width: 95px;
            padding: 10px 14px;
            background: rgba(20, 24, 35, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
}

        html.page-event-detail .round-card:hover {
border-color: rgba(0, 212, 255, 0.3);
            transform: translateY(-2px);
            background: rgba(25, 30, 45, 0.7);
}

        html.page-event-detail .round-card.active {
border-color: rgba(0, 212, 255, 0.5);
            background: rgba(0, 212, 255, 0.08);
}

        html.page-event-detail .round-card.live {
border-color: rgba(34, 197, 94, 0.4);
}

        html.page-event-detail .round-card.upcoming {
border-color: rgba(59, 130, 246, 0.3);
}

        html.page-event-detail .round-card.completed {
opacity: 0.75;
}

        html.page-event-detail .round-number {
font-family: "Burbank Big Condensed", sans-serif;
            font-size: 1.3rem;
            color: var(--text-primary);
            margin-bottom: 4px;
            font-weight: 600;
}

        html.page-event-detail .round-date {
font-size: 0.75rem;
            color: var(--text-muted);
}

        html.page-event-detail .round-time {
font-size: 0.7rem;
            color: var(--accent);
            margin-top: 2px;
            opacity: 0.9;
}

        html.page-event-detail .round-players {
font-size: 0.7rem;
            color: #fbbf24;
            margin-top: 2px;
}

        html.page-event-detail .round-status {
font-size: 0.7rem;
            font-weight: 500;
            padding: 2px 10px;
            border-radius: 20px;
            margin-top: 6px;
            display: inline-block;
}

        html.page-event-detail .round-status.live {
background: rgba(34, 197, 94, 0.2);
            color: var(--live);
}

        html.page-event-detail .round-status.upcoming {
background: rgba(59, 130, 246, 0.2);
            color: var(--upcoming);
}

        html.page-event-detail .round-status.completed {
background: rgba(107, 114, 128, 0.2);
            color: var(--completed);
}

        html.page-event-detail .stats-row {
display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 20px;
            align-items: center;
}

        html.page-event-detail .stat-card {
background: rgba(20, 24, 35, 0.5);
            border-radius: 12px;
            padding: 14px 20px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.05);
            flex: 1;
            min-width: 140px;
            height: 64px;
            display: flex;
            flex-direction: column;
            justify-content: center;
}

        html.page-event-detail .stat-value {
font-family: "Burbank Big Condensed", sans-serif;
            font-size: 1.6rem;
            color: var(--text-primary);
            margin-bottom: 2px;
            line-height: 1;
}

        html.page-event-detail .stat-label {
font-size: 0.65rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 500;
            line-height: 1;
}

        html.page-event-detail .region-dropdown {
background: rgba(20, 24, 35, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            color: var(--text-primary);
            font-family: "Burbank Big Condensed", sans-serif;
            font-size: 1.4rem;
            font-weight: 600;
            padding: 8px 40px 8px 16px;
            cursor: pointer;
            text-align: center;
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2300d4ff' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 14px center;
            transition: all 0.25s ease;
            min-width: 150px;
            height: 64px;
            flex: 1;
}

        html.page-event-detail .region-dropdown:hover {
border-color: rgba(255, 255, 255, 0.1);
            background: rgba(25, 30, 45, 0.7);
            transform: translateY(-2px);
}

        html.page-event-detail .region-dropdown:focus {
outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

        html.page-event-detail .region-dropdown option {
background: #1a1f2e;
            color: var(--text-primary);
            padding: 12px;
            font-family: "Inter", sans-serif;
            font-size: 0.95rem;
}

        html.page-event-detail .tabs {
display: flex;
            gap: 4px;
            margin-bottom: 24px;
            background: rgba(20, 24, 35, 0.6);
            padding: 6px;
            border-radius: 12px;
            width: fit-content;
}

        html.page-event-detail .tab-btn {
background: transparent;
            border: none;
            color: var(--text-muted);
            font-family: "Inter", sans-serif;
            font-size: 0.9rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 10px 20px;
            cursor: pointer;
            transition: all 0.2s;
            border-radius: 8px;
}

        html.page-event-detail .tab-btn:hover {
color: var(--text-primary);
            background: rgba(255, 255, 255, 0.05);
}

        html.page-event-detail .tab-btn.active {
color: var(--text-primary);
            background: rgba(0, 212, 255, 0.15);
            border: 1px solid rgba(0, 212, 255, 0.3);
}

        html.page-event-detail .tab-content {
display: none;
}

        html.page-event-detail .tab-content.active {
display: block;
}

        html.page-event-detail .scoring-grid {
display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
}

        html.page-event-detail .scoring-section {
background: var(--bg-card);
            border-radius: 10px;
            padding: 20px;
            border: 1px solid var(--border);
}

        html.page-event-detail .scoring-section h3 {
color: var(--accent);
            font-family: "Burbank Big Condensed", sans-serif;
            font-size: 1.1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 16px;
}

        html.page-event-detail .scoring-row {
display: flex;
            justify-content: space-between;
            padding: 8px 12px;
            background: rgba(40, 44, 52, 0.4);
            border-radius: 6px;
            margin-bottom: 6px;
}

        html.page-event-detail .scoring-table {
width: 100%;
            border-collapse: collapse;
}

        html.page-event-detail .scoring-table th {
text-align: left;
            padding: 8px 12px;
            color: var(--text-muted);
            font-size: 0.8rem;
            text-transform: uppercase;
            border-bottom: 1px solid var(--border);
}

        html.page-event-detail .scoring-table td {
padding: 10px 12px;
            color: var(--text-secondary);
            font-size: 0.95rem;
            border-bottom: 1px solid rgba(255,255,255,0.05);
}

        html.page-event-detail .scoring-table .points-col {
text-align: right;
            color: var(--accent);
            font-weight: 600;
}

        html.page-event-detail .scoring-table tbody tr:hover {
background: rgba(255,255,255,0.03);
}

        html.page-event-detail .leaderboard-controls {
display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 16px;
}

        html.page-event-detail .search-box {
display: flex;
            align-items: center;
            gap: 12px;
            background: linear-gradient(135deg, rgba(26, 31, 46, 0.9), rgba(20, 24, 35, 0.9));
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 12px 18px;
            transition: all 0.25s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

        html.page-event-detail .search-box:hover {
border-color: rgba(255, 255, 255, 0.15);
}

        html.page-event-detail .search-box:focus-within {
border-color: rgba(0, 212, 255, 0.5);
            background: linear-gradient(135deg, rgba(30, 36, 52, 0.95), rgba(24, 28, 40, 0.95));
            box-shadow: 0 4px 16px rgba(0, 212, 255, 0.1);
}

        html.page-event-detail .search-box input {
background: none;
            border: none;
            color: var(--text-primary);
            font-size: 0.95rem;
            font-weight: 500;
            outline: none;
            width: 220px;
}

        html.page-event-detail .search-box input::placeholder {
color: #6b7280;
            font-weight: 400;
}

        html.page-event-detail .entry-count {
color: var(--text-muted);
            font-size: 0.85rem;
            font-weight: 500;
            background: rgba(40, 44, 52, 0.6);
            padding: 8px 14px;
            border-radius: 8px;
}

        html.page-event-detail .leaderboard-table {
width: 100%;
            border-collapse: collapse;
            background: rgba(20, 24, 35, 0.6);
            border-radius: 14px;
            overflow: hidden;
}

        html.page-event-detail .leaderboard-table th {
background: rgba(26, 26, 46, 0.9);
            color: var(--text-muted);
            padding: 14px 12px;
            text-align: left;
            font-family: "Inter", sans-serif;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            white-space: nowrap;
            cursor: default;
}

        html.page-event-detail .leaderboard-table th:hover {
background: rgba(26, 26, 46, 0.9);
}

        html.page-event-detail .leaderboard-table td {
padding: 12px;
            border-bottom: 1px solid var(--border);
            background: rgba(40, 44, 52, 0.6);
            transition: background 0.2s;
}

        html.page-event-detail .leaderboard-table tbody tr:hover td {
background: rgba(40, 44, 52, 0.9);
            cursor: pointer;
}

        html.page-event-detail .rank-badge {
display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 32px;
            height: 32px;
            padding: 0 8px;
            border-radius: 10px;
            font-family: "Inter", sans-serif;
            font-size: 0.85rem;
            font-weight: 600;
}

        html.page-event-detail .rank-badge.gold {
background: linear-gradient(135deg, #ffd700, #ffb800);
            color: #1a1a1a;
}

        html.page-event-detail .rank-badge.silver {
background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
            color: #1a1a1a;
}

        html.page-event-detail .rank-badge.bronze {
background: linear-gradient(135deg, #cd7f32, #b8702c);
            color: #1a1a1a;
}

        html.page-event-detail .rank-badge.default {
background: rgba(255, 255, 255, 0.08);
            color: var(--text-secondary);
}

        html.page-event-detail .search-icon {
width: 18px;
            height: 18px;
            stroke: var(--accent);
            fill: none;
            opacity: 0.7;
            flex-shrink: 0;
}

        html.page-event-detail .search-box:focus-within .search-icon {
opacity: 1;
}

        html.page-event-detail .cumulate-btn {
background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
            border: 1px solid rgba(251, 191, 36, 0.3);
            color: #fbbf24;
            font-family: "Inter", sans-serif;
            font-size: 0.85rem;
            font-weight: 600;
            padding: 10px 18px;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.25s ease;
}

        html.page-event-detail .cumulate-btn:hover {
background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.2));
            transform: translateY(-1px);
}

        html.page-event-detail .cumulate-btn.active {
background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(245, 158, 11, 0.3));
            border-color: #fbbf24;
}

        html.page-event-detail .trophy-icon {
width: 14px;
            height: 14px;
            fill: #fbbf24;
            margin-right: 4px;
}


        html.page-event-detail .player-name {
display: flex;
            align-items: center;
            gap: 8px;
}

        @media (max-width: 768px) {
html.page-event-detail .player-name {
align-items: flex-start;
}
}

        html.page-event-detail .player-names-list {
display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;
            gap: 0 4px;
}

        html.page-event-detail .player-names-list .player-link:not(:last-child)::after {
content: ",";
            margin-right: 2px;
}

        @media (max-width: 768px) {
html.page-event-detail .player-names-list {
flex-direction: column;
                align-items: flex-start;
                gap: 2px;
}
            html.page-event-detail .player-names-list .player-link:not(:last-child)::after {
content: "";
                margin-right: 0;
}
}

        html.page-event-detail .player-link {
color: #fff;
            text-decoration: none;
            transition: color 0.2s ease;
            white-space: nowrap;
}

        html.page-event-detail .player-link:hover {
color: #00d4ff;
            text-decoration: underline;
}

        html.page-event-detail .country-flag {
font-size: 1.1rem;
}

        html.page-event-detail .stat-points {
color: #00d4ff;
}

        html.page-event-detail .stat-vrs {
color: #22c55e;
            font-weight: 600;
}

        html.page-event-detail .stat-games {
color: #9ca3af;
}

        html.page-event-detail .stat-elims {
color: #f59e0b;
            font-weight: 600;
}

        html.page-event-detail .stat-best {
color: var(--text-muted);
            font-weight: 500;
}

        html.page-event-detail .vr-badge {
background: #ffd700;
            color: #1a1a1a;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.75rem;
            font-weight: 700;
}

        html.page-event-detail .pagination {
display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            margin-top: 30px;
            padding: 20px;
            background: rgba(20, 24, 35, 0.6);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.05);
}

        html.page-event-detail .page-input-container {
display: flex;
            align-items: center;
            gap: 8px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
            font-weight: 500;
}

        html.page-event-detail .page-input {
width: 50px;
            height: 36px;
            background: rgba(26, 26, 46, 0.8);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 6px;
            color: #ffffff;
            text-align: center;
            font-family: "Inter", sans-serif;
            font-weight: 600;
            outline: none;
            transition: all 0.2s ease;
}

        html.page-event-detail .page-input:focus {
border-color: var(--accent);
            box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

        /* Hide spin buttons */
        html.page-event-detail .page-input::-webkit-outer-spin-button, html.page-event-detail .page-input::-webkit-inner-spin-button {
-webkit-appearance: none;
            margin: 0;
}

        html.page-event-detail .page-btn {
background: rgba(40, 44, 52, 0.9);
            border: 1px solid var(--border);
            color: var(--text-primary);
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.2s ease;
            min-width: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
}

        html.page-event-detail .page-btn:hover:not(:disabled) {
border-color: var(--accent);
            background: rgba(0, 212, 255, 0.1);
            color: var(--accent);
            transform: translateY(-1px);
}

        html.page-event-detail .page-btn:disabled {
opacity: 0.3;
            cursor: not-allowed;
            border-color: rgba(255, 255, 255, 0.1);
}

        html.page-event-detail .player-sidebar {
position: fixed;
            top: 0;
            right: -450px;
            width: 450px;
            max-width: 100vw;
            height: 100vh;
            background: var(--bg-primary);
            border-left: 1px solid var(--border);
            z-index: 2000;
            transition: right 0.3s ease;
            overflow-y: auto;
}

        html.page-event-detail .player-sidebar.open {
right: 0;
}

        html.page-event-detail .sidebar-overlay {
position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1999;
            display: none;
}

        html.page-event-detail .sidebar-overlay.open {
display: block;
}

        html.page-event-detail .sidebar-header {
padding: 20px;
            background: var(--bg-secondary);
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
}

        html.page-event-detail .sidebar-close {
background: rgba(255, 71, 87, 0.2);
            border: none;
            color: #ff4757;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 18px;
            transition: background 0.2s;
}

        html.page-event-detail .sidebar-close:hover {
background: rgba(255, 71, 87, 0.4);
}

        html.page-event-detail .sidebar-player-name {
font-family: "Burbank Big Condensed", sans-serif;
            font-size: 1.5rem;
            color: var(--text-primary);
}

        html.page-event-detail .sidebar-content {
padding: 20px;
}

        html.page-event-detail .player-stats-grid {
display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 24px;
}

        html.page-event-detail .player-stat {
background: var(--bg-card);
            padding: 14px;
            border-radius: 8px;
            text-align: center;
            border: 1px solid var(--border);
}

        html.page-event-detail .player-stat-value {
font-family: "Burbank Big Condensed", sans-serif;
            font-size: 1.4rem;
            color: var(--accent);
}

        html.page-event-detail .player-stat-label {
font-size: 0.7rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
}

        html.page-event-detail .match-history-title {
font-family: "Burbank Big Condensed", sans-serif;
            font-size: 1.1rem;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 12px;
}

        html.page-event-detail .match-card {
background: var(--bg-card);
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 10px;
            border: 1px solid var(--border);
}

        html.page-event-detail .match-card-header {
display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
}

        html.page-event-detail .match-game-num {
font-weight: 600;
            color: var(--text-primary);
}

        html.page-event-detail .match-placement {
padding: 3px 10px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 700;
}

        html.page-event-detail .match-placement.top1 {
background: linear-gradient(135deg, #ffd700, #ff8c00);
            color: #1a1a1a;
}

        html.page-event-detail .match-placement.top5 {
background: rgba(34, 197, 94, 0.2);
            color: var(--live);
}

        html.page-event-detail .match-placement.top10 {
background: rgba(59, 130, 246, 0.2);
            color: var(--upcoming);
}

        html.page-event-detail .match-placement.default {
background: rgba(107, 114, 128, 0.2);
            color: var(--completed);
}

        html.page-event-detail .match-stats-row {
display: flex;
            gap: 16px;
            font-size: 0.85rem;
            color: var(--text-muted);
}

        html.page-event-detail .match-stats-row span strong {
color: var(--text-secondary);
}

        html.page-event-detail .loading {
text-align: center;
            padding: 60px 20px;
            color: var(--accent);
}

        html.page-event-detail .spinner {
border: 3px solid rgba(230, 230, 250, 0.2);
            border-top: 3px solid var(--accent);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 16px;
}

        

        html.page-event-detail .error-message {
background: linear-gradient(135deg, #ff4757, #ff3742);
            color: white;
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            margin: 20px 0;
}

        html.page-event-detail footer {
background: var(--bg-card);
            margin-top: 48px;
            padding: 16px;
            border-top: 1px solid var(--border);
            text-align: center;
}

        html.page-event-detail footer p {
color: var(--text-muted);
            font-size: 0.8rem;
}

        @media (max-width: 768px) {
body.page-event-detail {
padding-bottom: 90px !important;
}
            html.page-event-detail .event-title {
font-size: 2rem;
}
            html.page-event-detail .stats-row {
grid-template-columns: repeat(2, 1fr);
}
            html.page-event-detail .player-stats-grid {
grid-template-columns: repeat(2, 1fr);
}
            html.page-event-detail .player-sidebar {
width: 100%; right: -100%;
}
            html.page-event-detail .leaderboard-table {
font-size: 0.85rem;
}
            html.page-event-detail .leaderboard-table th, html.page-event-detail .leaderboard-table td {
padding: 8px 6px;
}
}

html.page-event-detail .back-link {
display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #ffffff;
            background: rgba(0, 212, 255, 0.15);
            border: 1px solid rgba(0, 212, 255, 0.3);
            padding: 10px 20px;
            border-radius: 12px;
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 24px;
            transition: all 0.2s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
        html.page-event-detail .back-link:hover {
background: rgba(0, 212, 255, 0.25);
            border-color: rgba(0, 212, 255, 0.5);
            transform: translateY(-2px);
            color: #00d4ff;
}

/* ===== events.html ===== */

html.page-events * {
margin: 0;
            padding: 0;
            box-sizing: border-box;
}

        html.page-events {
background: 
                linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.9) 50%, rgba(15, 52, 96, 0.85) 100%),
                linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
                url("/static/images/background.webp");
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            background-repeat: no-repeat;
            min-height: 100vh;
            overflow-y: scroll;
}

        body.page-events {
font-family: "Inter", sans-serif;
            color: #e6e6fa;
            position: relative;
            min-height: 100vh;
            padding-bottom: 80px; /* Space for bottom nav */
}

        body.page-events::before {
content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
            pointer-events: none;
            z-index: -1;
}

        /* Bottom Navigation Bar - Mobile Only */
        html.page-events .bottom-nav {
position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(10, 12, 18, 0.9);
            backdrop-filter: blur(20px);
            height: 70px;
            display: none; /* Hidden by default */
            justify-content: space-around;
            align-items: center;
            z-index: 1000;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding: 0 10px;
}

        @media (max-width: 768px) {
body.page-events {
padding-bottom: 90px !important;
}
            html.page-events .bottom-nav {
display: flex;
}
            html.page-events .navbar {
display: none;
}
            html.page-events {
background-attachment: scroll;
}
            body.page-events::before {
display: none;
}
}

        html.page-events .navbar {
background: rgba(10, 12, 18, 0.95);
            padding: 0;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            backdrop-filter: blur(15px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

        html.page-events .navbar-container {
max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            height: 64px;
            position: relative;
}

        html.page-events .nav-left {
display: flex;
            align-items: center;
            gap: 16px;
}

        html.page-events .nav-links {
position: absolute;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 4px;
}

        html.page-events .nav-right {
display: flex;
            align-items: center;
            gap: 16px;
}

        html.page-events .nav-button {
background: none;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            padding: 8px 16px;
            font-size: 14px;
            font-weight: 500;
            font-family: "Inter", sans-serif;
            cursor: pointer;
            text-decoration: none;
            display: flex;
            align-items: center;
            transition: all 0.2s ease;
            border-radius: 8px;
            position: relative;
}

        html.page-events .nav-button:hover {
color: #ffffff;
            background: rgba(255, 255, 255, 0.05);
}

        html.page-events .nav-button.active {
color: #00d4ff;
            background: rgba(0, 212, 255, 0.08);
            font-weight: 600;
}

        html.page-events .bottom-nav-item {
display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 10px; font-weight: 500; gap: 4px; transition: all 0.2s ease; cursor: pointer; border: none; background: none; padding: 0; width: 20%;
}

        html.page-events .bottom-nav-item svg {
width: 24px;
            height: 24px;
            stroke-width: 2;
}

        html.page-events .bottom-nav-item.active {
color: #00d4ff;
}

        html.page-events .bottom-nav-item:hover {
color: #ffffff;
}

        /* More Popup */
        html.page-events .more-popup-overlay {
position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            z-index: 2000;
            display: none;
            align-items: flex-end;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
}

        html.page-events .more-popup-overlay.show {
display: flex;
            opacity: 1;
}

        html.page-events .more-popup {
background: #1a1f2e;
            width: 100%;
            max-width: 500px;
            padding: 30px;
            border-radius: 24px 24px 0 0;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

        html.page-events .more-popup-overlay.show .more-popup {
transform: translateY(0);
}

        html.page-events .more-option {
display: flex;
            align-items: center;
            gap: 15px;
            padding: 16px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            color: #ffffff;
            text-decoration: none;
            margin-bottom: 12px;
            font-weight: 600;
            transition: all 0.2s ease;
}

        html.page-events .more-option:hover {
background: rgba(0, 212, 255, 0.1);
            color: #00d4ff;
}

        html.page-events .more-popup h2 {
font-family: "Burbank Big Condensed", sans-serif !important;
            color: #fff;
            margin-bottom: 20px;
            font-size: 1.8rem;
            text-transform: uppercase;
}

        html.page-events .search-trigger {
color: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
}

        html.page-events .search-trigger:hover {
background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
}

        /* Search Popup */
        html.page-events .search-overlay {
position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
}

        html.page-events .search-overlay.show {
display: flex;
            opacity: 1;
}

        html.page-events .search-popup {
background: #1a1f2e;
            width: 90%;
            max-width: 450px;
            padding: 30px;
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transform: scale(0.9);
            transition: transform 0.3s ease;
            position: relative;
}

        html.page-events .close-search {
position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            font-size: 24px;
            cursor: pointer;
            padding: 5px;
            line-height: 1;
            transition: color 0.2s;
            margin: 0;
            width: auto;
}

        html.page-events .close-search:hover {
color: white;
}

        html.page-events .search-overlay.show .search-popup {
transform: scale(1);
}

        html.page-events .search-popup .platform-switcher {
display: flex;
            gap: 24px;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            padding: 6px 40px;
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin: 0 auto 25px;
            width: fit-content;
            min-width: 240px;
            justify-content: center;
}

        html.page-events .search-popup .platform-btn {
width: 36px;
            height: 36px;
            border: none;
            background: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.6;
            transition: all 0.2s ease;
            padding: 0;
            margin: 0;
}

        html.page-events .search-popup .platform-btn img {
filter: brightness(0.6) saturate(0);
            transition: all 0.2s ease;
}

        html.page-events .search-popup .platform-btn.active {
opacity: 1;
}

        html.page-events .search-popup .platform-btn.active img {
filter: brightness(1) saturate(1);
}

        html.page-events .search-popup .search-input-container {
display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 0;
}

        html.page-events .search-popup #usernameInputPopup {
flex: 1;
            padding: 15px 20px;
            background: transparent;
            border: none;
            color: #ffffff;
            font-family: "Inter", sans-serif;
            font-size: 1rem;
            outline: none;
}

        html.page-events .search-popup .search-btn {
background: transparent;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            width: auto;
}

        html.page-events .search-popup .search-main-btn {
width: 100%;
            margin: 0;
            padding: 16px;
            font-size: 1.1rem;
            font-family: "Burbank Big Condensed", sans-serif;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 2px;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            cursor: pointer;
}

        html.page-events .popup-search-input {
width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 16px 20px;
            border-radius: 16px;
            color: #ffffff;
            font-size: 1.1rem;
            outline: none;
            margin-bottom: 20px;
}

        html.page-events .popup-search-input:focus {
border-color: #00d4ff;
            background: rgba(0, 212, 255, 0.05);
}

        html.page-events .search-popup h2 {
font-family: "Burbank Big Condensed", sans-serif !important;
            color: #fff;
            margin-bottom: 20px;
            font-size: 2rem;
            text-transform: uppercase;
}

        html.page-events .search-popup button {
font-family: "Burbank Big Condensed", sans-serif !important;
            text-transform: uppercase;
            letter-spacing: 1px;
}

        html.page-events .hamburger {
display: none;
            flex-direction: column;
            cursor: pointer;
            padding: 10px;
}

        html.page-events .hamburger span {
width: 25px;
            height: 3px;
            background: #ffffff;
            margin: 3px 0;
            transition: 0.3s;
            border-radius: 2px;
}

        html.page-events .mobile-menu {
display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(20px);
            flex-direction: column;
            padding: 20px 0;
}

        html.page-events .mobile-menu.active {
display: flex;
}

        html.page-events .desktop-only {
display: flex;
}

        @media (max-width: 768px) {
body.page-events {
padding-bottom: 90px !important;
}
            html.page-events .nav-links {
display: none;
}

            html.page-events .hamburger {
display: flex;
}

            html.page-events .navbar-container {
padding: 0 15px;
}

            html.page-events .desktop-only {
display: none !important;
}

            /* Mobile Event Adjustments */
            html.page-events .search-container {
flex-direction: column;
                align-items: stretch;
}

            html.page-events .header h1 {
font-size: 1.8rem;
}

            html.page-events .event-card {
flex: 0 0 220px;
}

            html.page-events .leaderboard-table th, html.page-events .leaderboard-table td {
padding: 8px;
                font-size: 0.8rem;
}

            /* Hide less important columns on small screens in event leaderboard */
            html.page-events .leaderboard-table th:nth-child(4), html.page-events .leaderboard-table td:nth-child(4), html.page-events .leaderboard-table th:nth-child(5), html.page-events .leaderboard-table td:nth-child(5) {
display: none;
}
}

        html.page-events .container {
max-width: 1400px;
            margin: 0 auto;
            padding: 20px 20px 60px;
            margin-top: 64px;
}

        html.page-events .header {
text-align: center;
            margin-bottom: 24px;
            margin-top: 20px;
}

        html.page-events .header h1 {
font-family: "Burbank Big Condensed", sans-serif !important;
            color: #ffffff;
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
            letter-spacing: 2px;
            text-transform: uppercase;
            font-stretch: condensed;
}

        html.page-events .header p {
display: block;
            color: #8892b0;
            font-size: 1.1rem;
            max-width: 800px;
            margin: 0 auto 20px;
            line-height: 1.5;
            padding: 0 15px;
}

        @media (max-width: 768px) {
html.page-events .header h1 {
font-size: 2.8rem !important;
                line-height: 1.1;
}
            html.page-events .container {
margin-top: 10px;
}
            html.page-events .header p {
font-size: 0.95rem;
}
}

        html.page-events .search-container {
background: rgba(20, 24, 35, 0.85);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 24px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: flex-end;
            gap: 16px;
}

        html.page-events .input-group {
margin-bottom: 0;
            flex: 1;
}

        html.page-events .input-group label {
display: block;
            color: #8892b0;
            font-weight: 500;
            margin-bottom: 6px;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
}

        html.page-events .custom-select-container {
position: relative;
            width: 100%;
}

        html.page-events .custom-select-trigger {
width: 100%;
            padding: 11px 14px;
            background: rgba(26, 26, 46, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            color: #ffffff;
            font-size: 0.9rem;
            font-family: "Inter", sans-serif;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.2s ease;
}

        html.page-events .custom-select-trigger:hover {
border-color: rgba(0, 212, 255, 0.3);
            background: rgba(30, 30, 50, 0.8);
}

        html.page-events .custom-select-options {
position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: #1a1f2e;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            margin-top: 8px;
            display: none;
            z-index: 100;
            max-height: 250px;
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

        html.page-events .custom-select-options.active {
display: block;
}

        html.page-events .custom-option {
padding: 10px 15px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
}

        html.page-events .custom-option:hover {
background: rgba(0, 212, 255, 0.1);
            color: #ffffff;
}

        html.page-events .custom-option.selected {
background: rgba(0, 212, 255, 0.15);
            color: #00d4ff;
            font-weight: 600;
}

        html.page-events .input-group input::placeholder {
color: #6b7280;
}

        html.page-events .load-btn {
padding: 11px 24px;
            font-size: 13px;
            font-weight: 600;
            font-family: "Inter", sans-serif;
            background: rgba(0, 212, 255, 0.15);
            color: #00d4ff;
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 12px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.2s ease;
            width: auto;
            white-space: nowrap;
}

        html.page-events .load-btn:hover {
transform: translateY(-1px);
            background: rgba(0, 212, 255, 0.25);
            border-color: rgba(0, 212, 255, 0.5);
}

        html.page-events .leaderboard-table {
width: 100%;
            border-collapse: collapse;
            margin-top: 16px;
}

        html.page-events .leaderboard-table th {
background: rgba(26, 26, 46, 0.9);
            color: #00d4ff;
            padding: 12px;
            text-align: left;
            font-family: "Burbank Big Condensed", sans-serif;
            font-size: 1rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

        html.page-events .leaderboard-table th:first-child {
width: 50px;
            text-align: center;
}

        html.page-events .leaderboard-table td {
padding: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(40, 44, 52, 0.6);
            transition: background 0.3s ease;
}

        html.page-events .leaderboard-table tr:hover td {
background: rgba(40, 44, 52, 0.9);
            cursor: pointer;
}

        html.page-events .rank-cell {
text-align: center;
            font-weight: 700;
            color: #00d4ff;
            font-family: "Burbank Big Condensed", sans-serif;
            font-size: 1.1rem;
}

        html.page-events .rank-cell.gold {
color: #ffd700;
}
        html.page-events .rank-cell.silver {
color: #c0c0c0;
}
        html.page-events .rank-cell.bronze {
color: #cd7f32;
}

        html.page-events .loading, html.page-events .spinner {
display: none !important;
}

        

        

        

        html.page-events .error {
background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
            color: white;
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            margin: 16px 0;
            box-shadow: 0 8px 24px rgba(255, 71, 87, 0.3);
}

        html.page-events .pagination {
display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            margin-top: 30px;
            padding: 20px;
            background: rgba(20, 24, 35, 0.6);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.05);
}

        html.page-events .page-input-container {
display: flex;
            align-items: center;
            gap: 8px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
            font-weight: 500;
}

        html.page-events .page-input {
width: 50px;
            height: 36px;
            background: rgba(26, 26, 46, 0.8);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 6px;
            color: #ffffff;
            text-align: center;
            font-family: "Inter", sans-serif;
            font-weight: 600;
            outline: none;
            transition: all 0.2s ease;
}

        html.page-events .page-input:focus {
border-color: #00d4ff;
            box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

        /* Hide spin buttons */
        html.page-events .page-input::-webkit-outer-spin-button, html.page-events .page-input::-webkit-inner-spin-button {
-webkit-appearance: none;
            margin: 0;
}

        html.page-events .page-btn {
background: rgba(40, 44, 52, 0.9);
            border: 1px solid rgba(0, 212, 255, 0.2);
            color: #ffffff;
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.2s ease;
            min-width: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
}

        html.page-events .page-btn:hover:not(:disabled) {
border-color: #00d4ff;
            background: rgba(0, 212, 255, 0.1);
            color: #00d4ff;
            transform: translateY(-1px);
}

        html.page-events .page-btn:disabled {
opacity: 0.3;
            cursor: not-allowed;
            border-color: rgba(255, 255, 255, 0.1);
}

        html.page-events .team-modal {
display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            padding: 20px;
}

        html.page-events .team-modal.active {
display: flex;
}

        html.page-events .team-modal-content {
background: rgba(26, 26, 46, 0.98);
            border-radius: 12px;
            padding: 24px;
            max-width: 800px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            border: 1px solid rgba(0, 212, 255, 0.2);
}

        html.page-events .close-modal {
position: absolute;
            top: 12px;
            right: 12px;
            background: rgba(255, 71, 87, 0.2);
            border: none;
            color: #ff4757;
            font-size: 20px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
}

        html.page-events .close-modal:hover {
background: rgba(255, 71, 87, 0.4);
}

        html.page-events .player-card {
background: rgba(40, 44, 52, 0.8);
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 12px;
}

        html.page-events .player-card h3 {
color: #00d4ff;
            margin-bottom: 8px;
            font-size: 1rem;
}

        html.page-events .player-card p {
color: #cbd5e0;
            margin-bottom: 4px;
            font-size: 0.9rem;
}

        html.page-events .match-card {
background: rgba(40, 44, 52, 0.6);
            padding: 10px;
            border-radius: 6px;
            margin-bottom: 8px;
}

        html.page-events .match-card h4 {
color: #00d4ff;
            font-size: 0.85rem;
            margin-bottom: 6px;
}

        html.page-events .match-stats {
display: grid;
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 8px;
}

        html.page-events .match-stat {
font-size: 0.8rem;
            color: #8892b0;
}

        html.page-events .match-stat strong {
color: #e6e6fa;
}

        html.page-events input[type="checkbox"] {
appearance: none;
            -webkit-appearance: none;
            width: 16px;
            height: 16px;
            border: 2px solid #00d4ff;
            border-radius: 3px;
            background: rgba(26, 26, 46, 0.5);
            cursor: pointer;
            transition: background-color 0.2s;
            vertical-align: middle;
            margin-right: 6px;
}

        html.page-events input[type="checkbox"]:checked {
background-color: #00d4ff;
}

        html.page-events .section-badge {
display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 14px;
            border-radius: 10px;
            font-family: "Inter", sans-serif;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
}

        html.page-events .section-badge.live {
background: rgba(34, 197, 94, 0.15);
            color: #22c55e;
            border: 1px solid rgba(34, 197, 94, 0.3);
}

        html.page-events .section-badge.upcoming {
background: rgba(59, 130, 246, 0.15);
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.3);
}

        html.page-events .section-badge.archived {
background: rgba(107, 114, 128, 0.15);
            color: #9ca3af;
            border: 1px solid rgba(107, 114, 128, 0.3);
}

        html.page-events .events-scroll-container {
display: flex;
            gap: 32px;
            overflow-x: auto;
            padding: 24px 12px 40px;
            scroll-snap-type: x mandatory;
            scrollbar-width: thin;
            scrollbar-color: rgba(0, 212, 255, 0.3) transparent;
}

        html.page-events .events-scroll-container::-webkit-scrollbar {
height: 6px;
}

        html.page-events .events-scroll-container::-webkit-scrollbar-track {
background: transparent;
}

        html.page-events .events-scroll-container::-webkit-scrollbar-thumb {
background: rgba(0, 212, 255, 0.3);
            border-radius: 3px;
}

        html.page-events .event-card {
flex: 0 0 280px;
            scroll-snap-align: start;
            background: rgba(20, 24, 35, 0.95);
            border-radius: 24px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            cursor: pointer;
            z-index: 1;
}

        html.page-events .event-card-image {
height: 160px;
            background-size: cover;
            background-position: center;
            position: relative;
            border-radius: 24px 24px 0 0;
}

        html.page-events .event-card:hover {
transform: translateY(-10px) scale(1.02);
            border-color: rgba(0, 212, 255, 0.5);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 212, 255, 0.15);
            z-index: 9999 !important;
}

        html.page-events .region-hover-overlay {
position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(10, 12, 18, 0.98);
            backdrop-filter: blur(12px);
            border-radius: 24px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.25s ease;
            z-index: 99999 !important;
            border: 1px solid rgba(0, 212, 255, 0.4);
            overflow-y: auto;
            pointer-events: none;
}

        html.page-events .event-card:hover .region-hover-overlay {
opacity: 1;
            visibility: visible;
            pointer-events: auto;
            z-index: 99999 !important;
}

        html.page-events .region-hover-item {
display: flex;
            flex-direction: column;
            padding: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            text-decoration: none;
            transition: all 0.2s ease;
            border: 1px solid rgba(255, 255, 255, 0.05);
}

        html.page-events .region-hover-item:hover {
background: rgba(0, 212, 255, 0.1);
            border-color: rgba(0, 212, 255, 0.4);
            transform: translateX(4px);
}

        html.page-events .region-hover-header {
display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
}

        html.page-events .region-hover-name {
font-family: "Burbank Big Condensed", sans-serif;
            font-size: 1.1rem;
            color: #fff;
            text-transform: uppercase;
}

        html.page-events .region-hover-status {
font-size: 0.7rem;
            font-weight: 700;
            padding: 2px 6px;
            border-radius: 4px;
            text-transform: uppercase;
}

        html.page-events .region-hover-status.live {
background: #22c55e; color: #fff;
}
        html.page-events .region-hover-status.upcoming {
background: #3b82f6; color: #fff;
}
        html.page-events .region-hover-status.completed {
background: #6b7280; color: #fff;
}

        html.page-events .region-hover-time {
font-size: 0.75rem;
            color: #8892b0;
}

        html.page-events .event-card-image {
position: relative;
            padding-top: 100%;
            background-size: cover;
            background-position: center top;
}

        html.page-events .event-card-image::after {
content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60%;
            background: linear-gradient(to top, rgba(20, 24, 35, 1) 0%, transparent 100%);
}

        html.page-events .event-status-badge {
position: absolute;
            top: 8px;
            left: 8px;
            padding: 5px 12px;
            border-radius: 10px;
            font-family: "Inter", sans-serif;
            font-size: 0.7rem;
            font-weight: 500;
            z-index: 2;
            text-transform: uppercase;
            letter-spacing: 0.3px;
}

        html.page-events .region-badge {
position: absolute;
            top: 8px;
            right: 8px;
            padding: 5px 10px;
            border-radius: 8px;
            font-family: "Inter", sans-serif;
            font-size: 0.7rem;
            font-weight: 500;
            z-index: 2;
            background: rgba(20, 24, 35, 0.85);
            color: #9ca3af;
            border: 1px solid rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(4px);
}

        html.page-events .event-status-badge.live {
background: rgba(34, 197, 94, 0.15);
            color: #22c55e;
            border: 1px solid rgba(34, 197, 94, 0.25);
}

        html.page-events .event-status-badge.upcoming {
background: rgba(59, 130, 246, 0.15);
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.25);
}

        html.page-events .event-status-badge.archived {
background: rgba(107, 114, 128, 0.15);
            color: #9ca3af;
            border: 1px solid rgba(107, 114, 128, 0.25);
}

        html.page-events .event-card-content {
padding: 12px 16px 16px;
            margin-top: -40px;
            position: relative;
            z-index: 1;
}

        html.page-events .event-card-title {
color: #ffffff;
            font-family: "Inter", sans-serif;
            font-size: 0.95rem;
            font-weight: 600;
            margin: 0 0 6px;
            line-height: 1.25;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
}

        html.page-events .event-card-info {
margin-bottom: 8px;
}

        html.page-events .event-date {
color: #9ca3af;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
}

        html.page-events .event-date::before {
content: "";
            font-size: 0.85rem;
}

        html.page-events .event-card-footer {
display: flex;
            justify-content: space-between;
            align-items: center;
}

        html.page-events .round-info {
font-family: "Burbank Big Condensed", sans-serif;
            font-size: 0.85rem;
            text-transform: uppercase;
}

        html.page-events .round-info.live {
color: #22c55e;
}

        html.page-events .round-info.upcoming {
color: #3b82f6;
}

        html.page-events .round-info.completed {
color: #6b7280;
}

        html.page-events .region-count {
color: #6b7280;
            font-size: 0.75rem;
}

        html.page-events .region-selector {
display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-bottom: 10px;
}

        html.page-events .region-btn {
display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #1e2330;
            color: #9ca3af;
            border: none;
            padding: 8px 14px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.75rem;
            font-weight: 600;
            transition: all 0.15s ease;
            position: relative;
            text-transform: uppercase;
            letter-spacing: 0.5px;
}

        html.page-events .region-btn[data-tooltip]:hover::after {
content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: #0f1218;
            color: #fff;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 0.7rem;
            white-space: nowrap;
            z-index: 1000;
            margin-bottom: 6px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

        html.page-events .region-btn:hover {
background: #2a3142;
            color: #fff;
}

        html.page-events .region-btn.active {
background: #00d4ff;
            color: #0a0c10;
}

        html.page-events .region-btn .status-dot {
width: 6px;
            height: 6px;
            border-radius: 50%;
            flex-shrink: 0;
}

        html.page-events .region-btn .status-dot.live {
background: #22c55e;
            animation: dot-pulse 1.5s infinite;
}

        html.page-events .region-btn .status-dot.upcoming {
background: #3b82f6;
}

        html.page-events .region-btn .status-dot.completed {
background: #6b7280;
}

        html.page-events .region-btn[data-tooltip]:hover::after {
content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.9);
            color: #fff;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.65rem;
            white-space: nowrap;
            margin-bottom: 4px;
            z-index: 10;
}

        html.page-events .rounds-container {
display: flex;
            flex-wrap: wrap;
            gap: 4px;
}

        html.page-events .round-btn {
padding: 5px 10px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.7rem;
            font-weight: 500;
            transition: all 0.2s;
            border: none;
}

        html.page-events .round-btn.live {
background: rgba(34, 197, 94, 0.12);
            color: #22c55e;
            border: 1px solid rgba(34, 197, 94, 0.3);
}

        html.page-events .round-btn.live:hover {
background: rgba(34, 197, 94, 0.2);
            border-color: rgba(34, 197, 94, 0.5);
}

        html.page-events .round-btn.upcoming {
background: rgba(59, 130, 246, 0.12);
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.3);
}

        html.page-events .round-btn.upcoming:hover {
background: rgba(59, 130, 246, 0.2);
            border-color: rgba(59, 130, 246, 0.5);
}

        html.page-events .round-btn.completed {
background: rgba(107, 114, 128, 0.12);
            color: #9ca3af;
            border: 1px solid rgba(107, 114, 128, 0.3);
}

        html.page-events .round-btn.completed:hover {
background: rgba(107, 114, 128, 0.2);
            border-color: rgba(107, 114, 128, 0.5);
}

        html.page-events .empty-state {
background: rgba(26, 26, 46, 0.5);
            border-radius: 10px;
            padding: 32px;
            text-align: center;
}

        html.page-events .empty-state-icon {
font-size: 2.5rem;
            margin-bottom: 8px;
            opacity: 0.5;
}

        html.page-events .empty-state p {
color: #6b7280;
            font-size: 0.9rem;
}

        html.page-events .events-section {
margin-bottom: 32px;
}

        html.page-events .section-header {
display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
}

        html.page-events .section-count {
color: #6b7280;
            font-size: 0.9rem;
}

        @media (max-width: 768px) {
body.page-events {
padding-bottom: 90px !important;
}
            html.page-events .container {
padding: 12px;
}

            html.page-events .header h1 {
font-size: 2rem;
}

            html.page-events .event-card {
flex: 0 0 220px;
}

            html.page-events .team-modal-content {
padding: 16px;
}
}

        html.page-events #scoringInfo div[style*="overflow-y: auto"]::-webkit-scrollbar {
width: 5px;
}

        html.page-events #scoringInfo div[style*="overflow-y: auto"]::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.2);
            border-radius: 3px;
}

        html.page-events #scoringInfo div[style*="overflow-y: auto"]::-webkit-scrollbar-thumb {
background: rgba(0, 212, 255, 0.4);
            border-radius: 3px;
}

/* ===== index.html ===== */

html.page-index * {
margin: 0;
            padding: 0;
            box-sizing: border-box;
}

        html.page-index {
background: 
                linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.9) 50%, rgba(15, 52, 96, 0.85) 100%),
                linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
                url("/static/images/background.webp");
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            background-repeat: no-repeat;
            min-height: 100vh;
            overflow-y: scroll;
}

        body.page-index {
font-family: "Inter", sans-serif;
            color: #e6e6fa;
            position: relative;
            min-height: 100vh;
            padding-bottom: 0;
}

        body.page-index::before {
content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
            pointer-events: none;
            z-index: -1;
}

        html.page-index .bottom-nav {
position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(10, 12, 18, 0.9);
            backdrop-filter: blur(20px);
            height: 70px;
            display: none;
            justify-content: space-around;
            align-items: center;
            z-index: 1000;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding: 0 10px;
}

        @media (max-width: 768px) {
body.page-index {
padding-bottom: 90px !important;
}
            html.page-index .bottom-nav {
display: flex;
}
            html.page-index .navbar {
display: none;
}
            html.page-index {
background-attachment: scroll;
}
            body.page-index::before {
display: none;
}
}

        html.page-index .navbar {
background: rgba(10, 12, 18, 0.95);
            padding: 0;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            backdrop-filter: blur(15px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

        html.page-index .navbar-container {
max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            height: 64px;
            position: relative;
}

        html.page-index .nav-left {
display: flex; align-items: center; gap: 16px;
}
        html.page-index .nav-links {
position: absolute;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 4px;
}
        html.page-index .nav-right {
display: flex; align-items: center; gap: 16px;
}

        html.page-index .nav-button {
background: none;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            padding: 8px 16px;
            font-size: 14px;
            font-weight: 500;
            font-family: "Inter", sans-serif;
            cursor: pointer;
            text-decoration: none;
            display: flex;
            align-items: center;
            transition: all 0.2s ease;
            border-radius: 8px;
            position: relative;
}
        html.page-index .nav-button:hover {
color: #ffffff; background: rgba(255, 255, 255, 0.05);
}
        html.page-index .nav-button.active {
color: #00d4ff; background: rgba(0, 212, 255, 0.08); font-weight: 600;
}

        html.page-index .bottom-nav-item {
display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 10px; font-weight: 500; gap: 4px; transition: all 0.2s ease; cursor: pointer; border: none; background: none; padding: 0; width: 20%;
}
        html.page-index .bottom-nav-item svg {
width: 24px; height: 24px; stroke-width: 2;
}
        html.page-index .bottom-nav-item.active {
color: #00d4ff;
}
        html.page-index .bottom-nav-item:hover {
color: #ffffff;
}

        html.page-index .search-trigger {
color: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
}

        html.page-index .search-trigger:hover {
background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
}

        /* Search Popup */
        html.page-index .search-overlay {
position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
}

        html.page-index .search-overlay.show {
display: flex;
            opacity: 1;
}

        html.page-index .search-popup {
background: #1a1f2e;
            width: 90%;
            max-width: 450px;
            padding: 30px;
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transform: scale(0.9);
            transition: transform 0.3s ease;
            position: relative;
}

        html.page-index .close-search {
position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            font-size: 24px;
            cursor: pointer;
            padding: 5px;
            line-height: 1;
            transition: color 0.2s;
            margin: 0;
            width: auto;
}

        html.page-index .close-search:hover {
color: white;
}

        html.page-index .search-overlay.show .search-popup {
transform: scale(1);
}

        /* Search Popup Content Styles */
        html.page-index .search-popup .platform-switcher {
display: flex;
            gap: 24px;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            padding: 6px 40px;
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin: 0 auto 25px;
            width: fit-content;
            min-width: 240px;
            justify-content: center;
}

        html.page-index .search-popup .platform-btn {
width: 36px;
            height: 36px;
            border: none;
            background: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.6;
            transition: all 0.2s ease;
            padding: 0;
            margin: 0;
}

        html.page-index .search-popup .platform-btn img {
filter: brightness(0.6) saturate(0);
            transition: all 0.2s ease;
}

        html.page-index .search-popup .platform-btn.active {
opacity: 1;
}

        html.page-index .search-popup .platform-btn.active img {
filter: brightness(1) saturate(1);
}

        html.page-index .search-popup .search-input-container {
display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 20px;
}

        html.page-index .search-popup #usernameInputPopup {
flex: 1;
            padding: 15px 20px;
            background: transparent;
            border: none;
            color: #ffffff;
            font-family: "Inter", sans-serif;
            font-size: 1rem;
            outline: none;
}

        html.page-index .search-popup .search-btn {
background: transparent;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            width: auto;
}

        html.page-index .search-popup h2 {
font-family: "Burbank Big Condensed", sans-serif !important;
            color: #fff;
            margin-bottom: 20px;
            font-size: 2rem;
            text-transform: uppercase;
}

        html.page-index .search-popup button {
font-family: "Burbank Big Condensed", sans-serif !important;
            text-transform: uppercase;
            letter-spacing: 1px;
}

        html.page-index .container {
max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px 60px;
            margin-top: 64px;
}

        html.page-index .header {
text-align: center;
            margin-bottom: 30px;
            margin-top: 20px;
            padding: 0 15px;
}

        html.page-index .site-heading {
font-family: "Burbank Big Condensed", sans-serif !important;
            color: #ffffff;
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
            letter-spacing: 2px;
            text-transform: uppercase;
            font-stretch: condensed;
            line-height: 1.1;
            display: block;
            width: 100%;
}

        html.page-index .welcome-content {
text-align: center;
            margin: 15px auto 25px;
            width: 100%;
            max-width: 800px;
            padding: 0 15px;
}

        @media (max-width: 768px) {
html.page-index .site-heading {
font-size: 2.8rem !important;
                line-height: 1.1;
}
            html.page-index .container {
margin-top: 10px;
                padding-left: 10px;
                padding-right: 10px;
}
            html.page-index .welcome-content {
margin: 10px auto 20px;
}
}

        html.page-index .search-container {
display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
            flex-wrap: wrap;
            align-items: center;
}

        html.page-index .search-input-container {
display: flex;
            align-items: center;
            background: rgba(45, 55, 72, 0.9);
            border-radius: 25px;
            border: 1px solid #4a5568;
            overflow: hidden;
}

        html.page-index .search-input-container:focus-within {
border-color: #4a5568;
}

        html.page-index .platform-switcher {
display: flex;
            gap: 12px;
            align-items: center;
            background: rgba(45, 55, 72, 0.9);
            padding: 8px 16px;
            border-radius: 25px;
            border: 1px solid #4a5568;
}

        html.page-index .platform-btn {
width: 32px;
            height: 32px;
            border: none;
            background: transparent;
            color: #8892b0;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.6;
            transition: opacity 0.2s ease;
}

        html.page-index .platform-btn img {
filter: brightness(0.6) saturate(0);
            transition: all 0.2s ease;
            opacity: 0.8;
}

        html.page-index .platform-btn:hover img {
filter: brightness(0.8) saturate(0);
            opacity: 0.9;
}

        html.page-index .platform-btn.active {
opacity: 1;
}

        html.page-index .platform-btn.active img {
filter: brightness(1) saturate(1);
            opacity: 1;
}

        html.page-index #usernameInput {
padding: 15px 20px;
            font-size: 16px;
            font-family: "Inter", sans-serif;
            border: none;
            outline: none;
            background: transparent;
            color: #e2e8f0;
            width: 300px;
            flex: 1;
}

        html.page-index #usernameInput::placeholder {
color: #8892b0;
}

        html.page-index #usernameInput:-webkit-autofill, html.page-index #usernameInput:-webkit-autofill:hover, html.page-index #usernameInput:-webkit-autofill:focus, html.page-index #usernameInput:-webkit-autofill:active {
-webkit-box-shadow: 0 0 0 30px rgba(45, 55, 72, 0.9) inset !important;
            -webkit-text-fill-color: #ffffff !important;
            color: #ffffff !important;
            transition: background-color 5000s ease-in-out 0s;
}

        /* Additional fallback for stubborn browsers */
        html.page-index #usernameInput:autofill {
color: #ffffff !important;
            -webkit-text-fill-color: #ffffff !important;
}

        /* Force text color in all states */
        html.page-index #usernameInput {
color: #ffffff !important;
}

        html.page-index .search-btn {
width: 50px;
            height: 50px;
            border: none;
            background: transparent;
            color: #e2e8f0;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 5px;
}



        html.page-index button {
padding: 15px 35px;
            font-size: 16px;
            font-weight: 900;
            font-family: "Burbank Big Condensed", sans-serif;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: white;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 2px;
            position: relative;
            overflow: hidden;
            border: 2px solid rgba(255, 255, 255, 0.2);
            margin: 5px;
}

        html.page-index .epic-login-btn {
display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 12px 25px;
            background: rgba(66, 66, 66, 0.9);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            color: #ffffff;
            text-decoration: none;
            font-family: "Inter", sans-serif;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            min-width: 240px;
            justify-content: center;
}

        html.page-index .epic-login-btn:hover {
background: rgba(80, 80, 80, 0.9);
            border-color: rgba(255, 255, 255, 0.4);
            color: #ffffff;
            transform: translateY(-2px);
}

        html.page-index .epic-login-btn img {
filter: brightness(0.8);
            transition: filter 0.3s ease;
}

        html.page-index .epic-login-btn:hover img {
filter: brightness(1);
}

        html.page-index .error {
background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
            color: white;
            padding: 25px;
            border-radius: 15px;
            text-align: center;
            margin: 20px 0;
            box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.1);
}

        html.page-index .section-title {
font-family: "Burbank Big Condensed", sans-serif !important;
            font-size: 2rem;
            color: #ffffff;
            text-align: center;
            text-transform: uppercase;
            margin-bottom: 30px;
            letter-spacing: 2px;
            text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
            position: relative;
}

        @media (max-width: 768px) {
html.page-index .section-title {
font-size: 1.5rem;
}
}

        html.page-index .section-title::after {
content: "";
            position: absolute;
            bottom: -6px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 2px;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            border-radius: 2px;
}

        html.page-index .content-sections {
margin-top: 60px;
}
        html.page-index .content-section {
margin-bottom: 50px;
}

        html.page-index .view-all-btn {
display: block;
            text-align: center;
            margin-top: 15px;
            padding: 12px;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: #ffffff;
            text-decoration: none;
            border-radius: 8px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.85rem;
            transition: all 0.3s ease;
}

        html.page-index .view-all-btn:hover {
transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

        

        html.page-index .upcoming-events-list {
display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
}

        html.page-index .upcoming-event-card {
background: rgba(45, 55, 72, 0.95);
            border-radius: 12px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
            cursor: pointer;
            text-decoration: none;
            position: relative;
}

        html.page-index .upcoming-event-card:hover {
transform: translateY(-5px);
            border-color: rgba(0, 212, 255, 0.3);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

        html.page-index .event-image-container {
width: 100%;
            height: 160px;
            overflow: hidden;
            position: relative;
}

        html.page-index .event-image-container img {
width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
}

        html.page-index .upcoming-event-card:hover .event-image-container img {
transform: scale(1.05);
}

        html.page-index .event-status-tag {
position: absolute;
            top: 10px;
            right: 10px;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            z-index: 2;
}

        html.page-index .status-live {
background: #ff4757;
            color: white;
            animation: pulse 1.5s infinite;
}

        html.page-index .status-upcoming {
background: #00d4ff;
            color: white;
}

        html.page-index .upcoming-event-details {
padding: 15px;
}

        html.page-index .upcoming-event-details h4 {
color: #ffffff;
            font-size: 1.1rem;
            margin-bottom: 8px;
            font-weight: 700;
            font-family: "Burbank Big Condensed", sans-serif;
            text-transform: uppercase;
}

        html.page-index .upcoming-event-time {
color: #00d4ff;
            font-size: 0.85rem;
            font-weight: 600;
}

        html.page-index .player-card-mini {
background: linear-gradient(145deg, rgba(30, 39, 62, 0.95) 0%, rgba(20, 27, 45, 0.98) 100%);
            border: 1px solid rgba(0, 212, 255, 0.2);
            border-radius: 20px;
            padding: 24px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            gap: 16px;
            text-decoration: none;
            color: inherit;
            min-height: 180px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

        html.page-index .mini-card-label {
font-size: 0.75rem;
            color: #00d4ff;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 4px;
            display: block;
}

        html.page-index .mini-card-content {
display: flex;
            align-items: center;
            gap: 16px;
            flex: 1;
}

        html.page-index .mini-card-avatar {
width: 64px;
            height: 64px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(255, 255, 255, 0.05);
            flex-shrink: 0;
}

        html.page-index .mini-card-avatar img {
width: 48px;
            height: 48px;
            object-fit: contain;
            filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
}

        html.page-index .mini-card-info {
flex: 1;
            min-width: 0;
}

        html.page-index .mini-card-name {
font-family: "Burbank Big Condensed", sans-serif;
            font-size: 1.8rem;
            color: #ffffff;
            text-transform: uppercase;
            line-height: 1;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: 300;
            letter-spacing: 0.5px;
}

        html.page-index .mini-card-tier {
font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.5);
            font-weight: 300;
            letter-spacing: 0.3px;
            text-transform: uppercase;
}

        html.page-index .mini-card-stats {
display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 8px;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
}

        html.page-index .mini-card-stat-item {
display: flex;
            flex-direction: column;
}

        html.page-index .mini-card-stat-label {
font-size: 0.65rem;
            color: rgba(255, 255, 255, 0.3);
            text-transform: uppercase;
            font-weight: 300;
            letter-spacing: 0.5px;
}

        html.page-index .mini-card-stat-value {
font-family: "Burbank Big Condensed", sans-serif;
            font-size: 1.3rem;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 300;
            letter-spacing: 0.5px;
}

        html.page-index .player-card-mini:hover {
transform: translateY(-3px);
            border-color: rgba(0, 212, 255, 0.3);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

        html.page-index .player-card-mini::before {
display: none;
}

        html.page-index .player-card-mini.rank-1 {
border-color: rgba(0, 212, 255, 0.2);
            box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
            background: linear-gradient(145deg, rgba(30, 39, 62, 0.95) 0%, rgba(20, 27, 45, 0.98) 100%);
}

        html.page-index #rankedSlot.player-card-mini {
border-color: rgba(168, 85, 247, 0.3);
            box-shadow: 0 4px 20px rgba(168, 85, 247, 0.1);
}

        html.page-index .top-player-loading {
height: 2px;
            background: rgba(255, 255, 255, 0.05);
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            overflow: hidden;
            display: block;
}

        html.page-index .top-player-loading-bar {
height: 100%;
            background: #00d4ff;
            width: 0%;
            display: block;
            opacity: 0.6;
            transition: width 5s linear;
}

        

        @media (max-width: 768px) {
body.page-index {
padding-bottom: 90px !important;
}
            html.page-index #leaderboardContent {
grid-template-columns: 1fr !important;
                max-width: 320px !important;
}
            html.page-index .search-input-container {
width: 100%;
                max-width: 400px;
}
            html.page-index #usernameInput {
width: 200px;
}
            html.page-index .search-container {
flex-direction: column; align-items: center;
}
}

        @media (max-width: 480px) {
html.page-index .navbar-container {
padding: 8px 12px;
}
            html.page-index .nav-button {
padding: 6px 10px; font-size: 12px;
}
}

/* ===== item_shop.html ===== */

html.page-item-shop * {
margin: 0;
            padding: 0;
            box-sizing: border-box;
}

        html.page-item-shop {
background: 
                linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.9) 50%, rgba(15, 52, 96, 0.85) 100%),
                linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
                url("/static/images/background.webp");
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            background-repeat: no-repeat;
            min-height: 100vh;
}

        html.page-item-shop {
--bg-primary: transparent;
            --bg-secondary: rgba(26, 26, 46, 0.8);
            --accent: #00d4ff;
            --text-primary: #ffffff;
            --text-secondary: #e6e6fa;
            --border: rgba(255, 255, 255, 0.1);
            
            /* Rarity Colors */
            --rarity-common: #bebebe;
            --rarity-uncommon: #319206;
            --rarity-rare: #0078f2;
            --rarity-epic: #8c32ea;
            --rarity-legendary: #ea8d23;
            --rarity-icon: #ff0000;
            --rarity-mythic: #eddf40;
            --rarity-exotic: #6edec9;
            --rarity-marvel: #ed1d24;
            --rarity-dc: #518ece;
            --rarity-starwars: #ffd700;
            --rarity-frozen: #99d5ff;
            --rarity-lava: #ff6000;
            --rarity-shadow: #313131;
            --rarity-slurp: #00f0ff;
            --rarity-gaming: #5340be;
}

        body.page-item-shop {
font-family: "Inter", sans-serif;
            color: var(--text-primary);
            position: relative;
            min-height: 100vh;
            padding-bottom: 80px;
}

        body.page-item-shop::before {
content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
            pointer-events: none;
            z-index: -1;
}

        /* Bottom Navigation Bar - Mobile Only */
        html.page-item-shop .bottom-nav {
position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(10, 12, 18, 0.9);
            backdrop-filter: blur(20px);
            height: 70px;
            display: none; /* Hidden by default */
            justify-content: space-around;
            align-items: center;
            z-index: 1000;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding: 0 10px;
}

        @media (max-width: 768px) {
body.page-item-shop {
padding-bottom: 90px !important;
}
            html.page-item-shop .bottom-nav {
display: flex;
}
            html.page-item-shop .navbar {
display: none;
}
            html.page-item-shop {
background-attachment: scroll;
}
            body.page-item-shop::before {
display: none;
}
}

        html.page-item-shop .navbar {
background: rgba(10, 12, 18, 0.95);
            padding: 0;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            backdrop-filter: blur(15px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

        html.page-item-shop .navbar-container {
max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            height: 64px;
            position: relative;
}

        html.page-item-shop .nav-left {
display: flex;
            align-items: center;
            gap: 16px;
}

        html.page-item-shop .nav-links {
position: absolute;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 4px;
}

        html.page-item-shop .nav-right {
display: flex;
            align-items: center;
            gap: 16px;
}

        html.page-item-shop .search-trigger {
color: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
}

        html.page-item-shop .search-trigger:hover {
background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
}

        /* Search Popup */
        html.page-item-shop .search-overlay {
position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
}

        html.page-item-shop .search-overlay.show {
display: flex;
            opacity: 1;
}

        html.page-item-shop .search-popup {
background: #1a1f2e;
            width: 90%;
            max-width: 450px;
            padding: 30px;
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transform: scale(0.9);
            transition: transform 0.3s ease;
            position: relative;
}

        html.page-item-shop .close-search {
position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            font-size: 24px;
            cursor: pointer;
            padding: 5px;
            line-height: 1;
            transition: color 0.2s;
            margin: 0;
            width: auto;
}

        html.page-item-shop .close-search:hover {
color: white;
}

        html.page-item-shop .search-overlay.show .search-popup {
transform: scale(1);
}

        html.page-item-shop .search-popup .platform-switcher {
display: flex;
            gap: 24px;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            padding: 6px 40px;
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin: 0 auto 25px;
            width: fit-content;
            min-width: 240px;
            justify-content: center;
}

        html.page-item-shop .search-popup .platform-btn {
width: 36px;
            height: 36px;
            border: none;
            background: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.6;
            transition: all 0.2s ease;
            padding: 0;
            margin: 0;
}

        html.page-item-shop .search-popup .platform-btn img {
filter: brightness(0.6) saturate(0);
            transition: all 0.2s ease;
}

        html.page-item-shop .search-popup .platform-btn.active {
opacity: 1;
}

        html.page-item-shop .search-popup .platform-btn.active img {
filter: brightness(1) saturate(1);
}

        html.page-item-shop .search-popup .search-input-container {
display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 0;
}

        html.page-item-shop .search-popup #usernameInputPopup {
flex: 1;
            padding: 15px 20px;
            background: transparent;
            border: none;
            color: #ffffff;
            font-family: "Inter", sans-serif;
            font-size: 1rem;
            outline: none;
}

        html.page-item-shop .search-popup .search-btn {
background: transparent;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            width: auto;
}

        html.page-item-shop .search-popup .search-main-btn {
width: 100%;
            margin: 0;
            padding: 16px;
            font-size: 1.1rem;
            font-family: "Burbank Big Condensed", sans-serif;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 2px;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            cursor: pointer;
}

        html.page-item-shop .popup-search-input {
width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 16px 20px;
            border-radius: 16px;
            color: #ffffff;
            font-size: 1.1rem;
            outline: none;
            margin-bottom: 20px;
}

        html.page-item-shop .popup-search-input:focus {
border-color: #00d4ff;
            background: rgba(0, 212, 255, 0.05);
}

        html.page-item-shop .search-popup h2 {
font-family: "Burbank Big Condensed", sans-serif !important;
            color: #fff;
            margin-bottom: 20px;
            font-size: 2rem;
            text-transform: uppercase;
}

        html.page-item-shop .search-popup button {
font-family: "Burbank Big Condensed", sans-serif !important;
            text-transform: uppercase;
            letter-spacing: 1px;
}

        html.page-item-shop .nav-button {
background: none;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            padding: 8px 16px;
            font-size: 14px;
            font-weight: 500;
            font-family: "Inter", sans-serif;
            cursor: pointer;
            text-decoration: none;
            display: flex;
            align-items: center;
            transition: all 0.2s ease;
            border-radius: 8px;
            white-space: nowrap;
            position: relative;
}

        html.page-item-shop .nav-button:hover {
color: #ffffff;
            background: rgba(255, 255, 255, 0.05);
}

        html.page-item-shop .nav-button.active {
color: #00d4ff;
            background: rgba(0, 212, 255, 0.08);
            font-weight: 600;
}

        html.page-item-shop .bottom-nav-item {
display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, 0.6);
            text-decoration: none;
            font-size: 11px;
            font-weight: 500;
            gap: 4px;
            transition: all 0.2s ease;
            cursor: pointer;
            border: none;
            background: none;
            padding: 0;
            width: 20%;
}

        html.page-item-shop .bottom-nav-item svg {
width: 24px;
            height: 24px;
            stroke-width: 2;
}

        html.page-item-shop .bottom-nav-item.active {
color: #00d4ff;
}

        html.page-item-shop .bottom-nav-item:hover {
color: #ffffff;
}

        /* More Popup */
        html.page-item-shop .more-popup-overlay {
position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            z-index: 2000;
            display: none;
            align-items: flex-end;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
}

        html.page-item-shop .more-popup-overlay.show {
display: flex;
            opacity: 1;
}

        html.page-item-shop .more-popup {
background: #1a1f2e;
            width: 100%;
            max-width: 500px;
            padding: 30px;
            border-radius: 24px 24px 0 0;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

        html.page-item-shop .more-popup-overlay.show .more-popup {
transform: translateY(0);
}

        html.page-item-shop .more-option {
display: flex;
            align-items: center;
            gap: 15px;
            padding: 16px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            color: #ffffff;
            text-decoration: none;
            margin-bottom: 12px;
            font-weight: 600;
            transition: all 0.2s ease;
}

        html.page-item-shop .more-option:hover {
background: rgba(0, 212, 255, 0.1);
            color: #00d4ff;
}

        html.page-item-shop .more-popup h2 {
font-family: "Burbank Big Condensed", sans-serif !important;
            color: #fff;
            margin-bottom: 20px;
            font-size: 1.8rem;
            text-transform: uppercase;
}


        /* Shop Styles */
        html.page-item-shop .container {
max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
            margin-top: 64px;
}

        html.page-item-shop .header {
text-align: center;
            margin: 40px 0;
            margin-top: 20px;
}

        html.page-item-shop .header h1 {
font-family: "Burbank Big Condensed", sans-serif !important;
            color: #ffffff;
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
            letter-spacing: 2px;
            text-transform: uppercase;
            font-stretch: condensed;
}

        html.page-item-shop .header p {
color: #8892b0;
            font-size: 1.1rem;
            max-width: 800px;
            margin: 0 auto;
            line-height: 1.6;
            padding: 0 15px;
}

        @media (max-width: 768px) {
html.page-item-shop .header h1 {
font-size: 2.8rem !important;
                line-height: 1.1;
}
            html.page-item-shop .container {
margin-top: 10px;
}
            html.page-item-shop .header p {
font-size: 0.95rem;
}
}
        
        /* Timer Styles */
        html.page-item-shop .refresh-container {
background: rgba(0, 0, 0, 0.4);
            padding: 10px 20px;
            border-radius: 10px;
            border: 1px solid rgba(0, 212, 255, 0.2);
            backdrop-filter: blur(10px);
            display: inline-block;
            margin-top: 20px;
            min-width: 240px;
}
        
        html.page-item-shop .timer-label {
font-family: "Burbank Big Condensed", sans-serif;
            font-size: 1rem;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 4px;
            display: block;
}
        
        html.page-item-shop .timer-display {
font-family: "Burbank Big Condensed", sans-serif;
            font-size: 1.8rem;
            color: #ffffff;
            line-height: 1;
            margin-bottom: 8px;
            text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}
        
        html.page-item-shop .progress-bar-container {
width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
            overflow: hidden;
}
        
        html.page-item-shop .progress-bar-fill {
height: 100%;
            background: linear-gradient(90deg, #00d4ff, #0088ff);
            width: 0%;
            transition: width 1s linear;
            box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

        html.page-item-shop .shop-section {
margin-bottom: 50px;
}

        html.page-item-shop .section-title {
font-family: "Burbank Big Condensed", sans-serif;
            font-size: 2rem;
            text-transform: uppercase;
            border-bottom: 2px solid var(--accent);
            padding-bottom: 10px;
            margin-bottom: 25px;
            color: var(--accent);
}

        html.page-item-shop .shop-grid {
display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 15px;
}

        html.page-item-shop .shop-item {
background: var(--bg-secondary);
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid var(--border);
            transition: transform 0.2s;
            position: relative;
            display: flex;
            flex-direction: column;
}

        html.page-item-shop .shop-item.hidden {
display: none;
}

        html.page-item-shop .shop-item:hover {
transform: translateY(-3px);
}

        html.page-item-shop .item-image-container {
width: 100%;
            aspect-ratio: 1;
            position: relative;
            background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.2) 100%);
}

        html.page-item-shop .item-image {
width: 100%;
            height: 100%;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
}

        html.page-item-shop .item-info {
padding: 10px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
}

        html.page-item-shop .item-name {
font-weight: 700;
            font-size: 0.95rem;
            margin-bottom: 3px;
            line-height: 1.1;
}

        html.page-item-shop .item-price {
display: flex;
            align-items: center;
            gap: 4px;
            font-weight: 700;
            color: #ffd700;
            font-size: 0.9rem;
            margin-top: auto;
}

        html.page-item-shop .vbuck-icon {
width: 20px;
            height: 20px;
}

        /* Rarity Borders */
        html.page-item-shop .rarity-common {
border-bottom: 4px solid var(--rarity-common);
}
        html.page-item-shop .rarity-uncommon {
border-bottom: 4px solid var(--rarity-uncommon);
}
        html.page-item-shop .rarity-rare {
border-bottom: 4px solid var(--rarity-rare);
}
        html.page-item-shop .rarity-epic {
border-bottom: 4px solid var(--rarity-epic);
}
        html.page-item-shop .rarity-legendary {
border-bottom: 4px solid var(--rarity-legendary);
}

        html.page-item-shop .tag {
position: absolute;
            top: 10px;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 900;
            text-transform: uppercase;
            z-index: 1;
}

        html.page-item-shop .bundle-tag {
left: 10px;
            background: var(--accent);
            color: #141823;
}

        html.page-item-shop .new-tag {
right: 10px;
            background: #ff4747;
            color: white;
}

        html.page-item-shop .search-wrapper {
position: relative;
            width: 100%;
            max-width: 500px;
            margin: 20px auto;
}

        html.page-item-shop .search-input {
width: 100%;
            padding: 12px 20px 12px 45px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(0, 212, 255, 0.2);
            border-radius: 12px;
            color: white;
            font-family: "Inter", sans-serif;
            font-size: 1rem;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
}

        html.page-item-shop .search-input:focus {
outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
            background: rgba(0, 0, 0, 0.6);
}

        html.page-item-shop .search-icon-wrapper {
position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255, 255, 255, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
}

        html.page-item-shop .search-wrapper:focus-within .search-icon-wrapper {
color: var(--accent);
            transform: translateY(-50%) scale(1.1);
}

        html.page-item-shop .search-icon {
pointer-events: none;
}

        html.page-item-shop button {
padding: 15px 35px;
            font-size: 16px;
            font-weight: 900;
            font-family: "Burbank Big Condensed", sans-serif;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: white;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 2px;
            position: relative;
            overflow: hidden;
            border: 2px solid rgba(255, 255, 255, 0.2);
            margin: 5px;
}

/* ===== leaderboard.html ===== */

html.page-leaderboard * {
margin: 0;
            padding: 0;
            box-sizing: border-box;
}

        html.page-leaderboard, body.page-leaderboard {
max-width: 100vw;
            margin: 0;
            padding: 0;
            width: 100%;
}

        html.page-leaderboard {
background: 
                linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.9) 50%, rgba(15, 52, 96, 0.85) 100%),
                linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
                url("/static/images/background.webp");
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            background-repeat: no-repeat;
            min-height: 100vh;
}

        body.page-leaderboard {
font-family: "Inter", sans-serif;
            color: #e6e6fa;
            position: relative;
            min-height: 100vh;
            padding-bottom: 80px; /* Space for bottom nav */
}

        body.page-leaderboard::before {
content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
            pointer-events: none;
            z-index: -1;
}

        /* Bottom Navigation Bar - Mobile Only */
        html.page-leaderboard .bottom-nav {
position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(10, 12, 18, 0.9);
            backdrop-filter: blur(20px);
            height: 70px;
            display: none; /* Hidden by default */
            justify-content: space-around;
            align-items: center;
            z-index: 1000;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding: 0 10px;
}

        html.page-leaderboard .navbar {
background: rgba(10, 12, 18, 0.95);
            padding: 0;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            backdrop-filter: blur(15px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

        html.page-leaderboard .container {
max-width: 1200px;
            margin: 0 auto;
            padding: 20px 20px 60px;
            margin-top: 64px;
}

        html.page-leaderboard .navbar-container {
max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            height: 64px;
            position: relative;
}

        html.page-leaderboard .nav-left {
display: flex;
            align-items: center;
            gap: 16px;
}

        html.page-leaderboard .nav-links {
position: absolute;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 4px;
}

        html.page-leaderboard .nav-right {
display: flex;
            align-items: center;
            gap: 16px;
}

        html.page-leaderboard .nav-button {
background: none;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            padding: 8px 16px;
            font-size: 14px;
            font-weight: 500;
            font-family: "Inter", sans-serif;
            cursor: pointer;
            text-decoration: none;
            display: flex;
            align-items: center;
            transition: all 0.2s ease;
            border-radius: 8px;
            position: relative;
}

        html.page-leaderboard .nav-button:hover {
color: #ffffff;
            background: rgba(255, 255, 255, 0.05);
}

        html.page-leaderboard .nav-button.active {
color: #00d4ff;
            background: rgba(0, 212, 255, 0.08);
            font-weight: 600;
}

        html.page-leaderboard .bottom-nav-item {
display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 10px; font-weight: 500; gap: 4px; transition: all 0.2s ease; cursor: pointer; border: none; background: none; padding: 0; width: 20%;
}

        html.page-leaderboard .bottom-nav-item svg {
width: 24px;
            height: 24px;
            stroke-width: 2;
}

        html.page-leaderboard .bottom-nav-item.active {
color: #00d4ff;
}

        html.page-leaderboard .bottom-nav-item:hover {
color: #ffffff;
}

        /* More Popup */
        html.page-leaderboard .more-popup-overlay {
position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            z-index: 2000;
            display: none;
            align-items: flex-end;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
}

        html.page-leaderboard .more-popup-overlay.show {
display: flex;
            opacity: 1;
}

        html.page-leaderboard .more-popup {
background: #1a1f2e;
            width: 100%;
            max-width: 500px;
            padding: 30px;
            border-radius: 24px 24px 0 0;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

        html.page-leaderboard .more-popup-overlay.show .more-popup {
transform: translateY(0);
}

        html.page-leaderboard .more-option {
display: flex;
            align-items: center;
            gap: 15px;
            padding: 16px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            color: #ffffff;
            text-decoration: none;
            margin-bottom: 12px;
            font-weight: 600;
            transition: all 0.2s ease;
}

        html.page-leaderboard .more-option:hover {
background: rgba(0, 212, 255, 0.1);
            color: #00d4ff;
}

        html.page-leaderboard .more-popup h2 {
font-family: "Burbank Big Condensed", sans-serif !important;
            color: #fff;
            margin-bottom: 20px;
            font-size: 1.8rem;
            text-transform: uppercase;
}

        html.page-leaderboard .search-trigger {
color: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
}

        html.page-leaderboard .search-trigger:hover {
background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
}

        /* Search Popup */
        html.page-leaderboard .search-overlay {
position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
}

        html.page-leaderboard .search-overlay.show {
display: flex;
            opacity: 1;
}

        html.page-leaderboard .search-popup {
background: #1a1f2e;
            width: 90%;
            max-width: 450px;
            padding: 30px;
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transform: scale(0.9);
            transition: transform 0.3s ease;
            position: relative;
}

        html.page-leaderboard .close-search {
position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            font-size: 24px;
            cursor: pointer;
            padding: 5px;
            line-height: 1;
            transition: color 0.2s;
            margin: 0;
            width: auto;
}

        html.page-leaderboard .close-search:hover {
color: white;
}

        html.page-leaderboard .search-overlay.show .search-popup {
transform: scale(1);
}

        html.page-leaderboard .search-popup .platform-switcher {
display: flex;
            gap: 24px;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            padding: 6px 40px;
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin: 0 auto 25px;
            width: fit-content;
            min-width: 240px;
            justify-content: center;
}

        html.page-leaderboard .search-popup .platform-btn {
width: 36px;
            height: 36px;
            border: none;
            background: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.6;
            transition: all 0.2s ease;
            padding: 0;
            margin: 0;
}

        html.page-leaderboard .search-popup .platform-btn img {
filter: brightness(0.6) saturate(0);
            transition: all 0.2s ease;
}

        html.page-leaderboard .search-popup .platform-btn.active {
opacity: 1;
}

        html.page-leaderboard .search-popup .platform-btn.active img {
filter: brightness(1) saturate(1);
}

        html.page-leaderboard .search-popup .search-input-container {
display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 0;
}

        html.page-leaderboard .search-popup #usernameInputPopup {
flex: 1;
            padding: 15px 20px;
            background: transparent;
            border: none;
            color: #ffffff;
            font-family: "Inter", sans-serif;
            font-size: 1rem;
            outline: none;
}

        html.page-leaderboard .search-popup .search-btn {
background: transparent;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            width: auto;
}

        html.page-leaderboard .search-popup .search-main-btn {
width: 100%;
            margin: 0;
            padding: 16px;
            font-size: 1.1rem;
            font-family: "Burbank Big Condensed", sans-serif;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 2px;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            cursor: pointer;
}

        html.page-leaderboard .popup-search-input {
width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 16px 20px;
            border-radius: 16px;
            color: #ffffff;
            font-size: 1.1rem;
            outline: none;
            margin-bottom: 20px;
}

        html.page-leaderboard .popup-search-input:focus {
border-color: #00d4ff;
            background: rgba(0, 212, 255, 0.05);
}

        html.page-leaderboard .search-popup h2 {
font-family: "Burbank Big Condensed", sans-serif !important;
            color: #fff;
            margin-bottom: 20px;
            font-size: 2rem;
            text-transform: uppercase;
}

        html.page-leaderboard .search-popup button {
font-family: "Burbank Big Condensed", sans-serif !important;
            text-transform: uppercase;
            letter-spacing: 1px;
}

        html.page-leaderboard .hamburger {
display: none;
            flex-direction: column;
            cursor: pointer;
            padding: 10px;
}

        html.page-leaderboard .hamburger span {
width: 25px;
            height: 3px;
            background: #ffffff;
            margin: 3px 0;
            transition: 0.3s;
            border-radius: 2px;
}

        html.page-leaderboard .mobile-menu {
display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(20px);
            flex-direction: column;
            padding: 20px 0;
}

        html.page-leaderboard .mobile-menu.active {
display: flex;
}

        html.page-leaderboard .desktop-only {
display: flex;
}

        @media (max-width: 768px) {
body.page-leaderboard {
padding-bottom: 90px !important;
}
            html.page-leaderboard .bottom-nav {
display: flex;
}
            html.page-leaderboard .navbar {
display: none;
}
            html.page-leaderboard {
background-attachment: scroll;
}
            body.page-leaderboard::before {
display: none;
}
            html.page-leaderboard .nav-links {
display: none;
}

            html.page-leaderboard .hamburger {
display: flex;
}

            html.page-leaderboard .navbar-container {
padding: 0 15px;
}

            html.page-leaderboard .desktop-only {
display: none !important;
}

            html.page-leaderboard .container {
padding: 10px 5px 100px;
                width: 100%;
                overflow-x: hidden;
}
            
            html.page-leaderboard .leaderboard-container {
padding: 15px 15px;
                margin: 0;
                border-radius: 8px;
                width: 100%;
                box-sizing: border-box;
                overflow-x: hidden;
}


            /* Adjust graph padding on mobile for more room */
            html.page-leaderboard .rank-chart-new {
padding: 40px 10px 80px 45px !important;
                gap: 3px !important;
                margin-left: 5px !important;
                margin-right: 5px !important;
                width: auto !important;
}

            /* Mobile friendly tooltips */
            html.page-leaderboard .rank-bar .bar-tooltip {
font-size: 10px;
                padding: 4px 6px;
                white-space: nowrap;
                min-width: 60px;
                text-align: center;
                /* Prevent horizontal scroll from tooltips */
                max-width: 85vw;
                left: 50% !important;
                transform: translate(-50%, -110%) !important;
                z-index: 10002;
}

            html.page-leaderboard .rank-bar:hover .bar-tooltip {
transform: translate(-50%, calc(-100% - 12px)) !important;
}

            /* Bronze 1 only: fully left-anchored since it's at the very edge */
            html.page-leaderboard .rank-bar[data-division="1"] .bar-tooltip {
left: 0 !important;
                transform: translate(0, calc(-100% - 12px)) !important;
}
            html.page-leaderboard .rank-bar[data-division="1"] .bar-tooltip::after {
left: 10px !important;
                transform: none !important;
}

            /* Bronze 2 & 3: closer to centered, slight left shift to avoid edge */
            html.page-leaderboard .rank-bar[data-division="2"] .bar-tooltip {
left: 50% !important;
                transform: translate(-20%, calc(-100% - 12px)) !important;
}
            html.page-leaderboard .rank-bar[data-division="2"] .bar-tooltip::after {
left: 20% !important;
                transform: none !important;
}
            html.page-leaderboard .rank-bar[data-division="3"] .bar-tooltip {
left: 50% !important;
                transform: translate(-30%, calc(-100% - 12px)) !important;
}
            html.page-leaderboard .rank-bar[data-division="3"] .bar-tooltip::after {
left: 30% !important;
                transform: none !important;
}

            /* Right-edge bars (Elite/Champ/Unreal): anchor tooltip to the right, arrow points left toward bar center */
            html.page-leaderboard .rank-bar[data-division="16"] .bar-tooltip, html.page-leaderboard .rank-bar[data-division="17"] .bar-tooltip, html.page-leaderboard .rank-bar[data-division="18"] .bar-tooltip {
left: auto !important;
                right: 0 !important;
                transform: translate(0, calc(-100% - 12px)) !important;
}
            html.page-leaderboard .rank-bar[data-division="16"] .bar-tooltip::after, html.page-leaderboard .rank-bar[data-division="17"] .bar-tooltip::after, html.page-leaderboard .rank-bar[data-division="18"] .bar-tooltip::after {
left: auto !important;
                right: 10px !important;
                transform: none !important;
}

            /* Mobile friendly pagination */
            html.page-leaderboard .pagination-container {
gap: 8px !important;
                padding: 12px !important;
                flex-wrap: wrap;
}
            html.page-leaderboard .pagination-container .nav-button {
padding: 8px 12px !important;
                font-size: 13px !important;
                flex: 1;
                min-width: 80px;
                text-align: center;
}
            html.page-leaderboard .pagination-container > div {
order: -1;
                width: 100%;
                justify-content: center;
                margin-bottom: 8px;
}
            html.page-leaderboard #rankedPageJumpInput {
width: 50px !important;
                padding: 6px !important;
                font-size: 13px !important;
}
}

        html.page-leaderboard .container {
max-width: 1200px;
            margin: 0 auto;
            padding: 20px 20px 60px;
            margin-top: 64px;
}

        html.page-leaderboard .header {
text-align: center;
            margin-bottom: 30px;
            margin-top: 20px;
}

        html.page-leaderboard .header h1 {
font-family: "Burbank Big Condensed", sans-serif !important;
            color: #ffffff;
            font-size: 3.5rem;
            font-weight: 600;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
            letter-spacing: 2px;
            text-transform: uppercase;
            font-stretch: condensed;
}

        @media (max-width: 768px) {
html.page-leaderboard .header h1 {
font-size: 2.8rem !important;
                line-height: 1.1;
}
            html.page-leaderboard .container {
margin-top: 10px;
}
            html.page-leaderboard .header p {
font-size: 0.95rem;
}
}

        html.page-leaderboard .header p {
display: block;
            color: #8892b0;
            font-size: 1.1rem;
            max-width: 800px;
            margin: 0 auto 20px;
            line-height: 1.5;
            padding: 0 15px;
}

        html.page-leaderboard .leaderboard-container {
background: rgba(45, 55, 72, 0.95);
            border-radius: 8px;
            padding: 30px;
            border: none;
            backdrop-filter: blur(10px);
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            max-width: 100%;
}

        html.page-leaderboard .leaderboard-filters {
display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 30px;
            flex-wrap: wrap;
}

        html.page-leaderboard .filter-group {
display: flex;
            align-items: center;
            gap: 10px;
}

        html.page-leaderboard .filter-group label {
color: #e6e6fa;
            font-weight: 600;
            font-size: 0.9rem;
}

        html.page-leaderboard .custom-select {
position: relative;
            display: inline-block;
}

        html.page-leaderboard .custom-select {
position: relative;
            display: inline-block;
            min-width: 140px;
}

        html.page-leaderboard .leaderboard-tabs {
display: flex;
            gap: 10px;
            margin-bottom: 20px;
            justify-content: center;
}

        html.page-leaderboard .leaderboard-tab {
background: linear-gradient(135deg, rgba(40, 44, 52, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
            border: 2px solid rgba(0, 212, 255, 0.3);
            color: #ffffff;
            padding: 15px 30px;
            font-size: 1rem;
            font-weight: 500;
            font-family: "Burbank Big Condensed", sans-serif;
            cursor: pointer;
            border-radius: 12px;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
}

        html.page-leaderboard .leaderboard-tab:hover {
border-color: rgba(0, 212, 255, 0.6);
            transform: translateY(-2px);
}

        html.page-leaderboard .leaderboard-tab.active {
background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            border-color: #00d4ff;
            color: #ffffff;
            box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

        html.page-leaderboard .ranked-mode-tabs {
display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-bottom: 25px;
            justify-content: center;
}

        html.page-leaderboard .ranked-mode-tab {
background: rgba(25, 28, 35, 0.95);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            padding: 12px 20px;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            border-radius: 10px;
            transition: all 0.2s ease;
}

        html.page-leaderboard .ranked-mode-tab:hover {
border-color: rgba(0, 212, 255, 0.5);
            color: #ffffff;
}

        html.page-leaderboard .ranked-mode-tab.active {
background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            border-color: #00d4ff;
            color: #ffffff;
}

        html.page-leaderboard .custom-select .select-button {
display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            background: linear-gradient(135deg, rgba(40, 44, 52, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
            border: 2px solid rgba(0, 212, 255, 0.3);
            border-radius: 12px;
            color: #ffffff;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            outline: none;
            min-width: 140px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            user-select: none;
}

        html.page-leaderboard .custom-select .select-button:hover {
border-color: rgba(0, 212, 255, 0.6);
            background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(30, 30, 50, 0.95) 100%);
            transform: translateY(-1px);
}

        html.page-leaderboard .custom-select .select-button.active {
border-color: #00d4ff;
            box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.3), 0 4px 20px rgba(0, 0, 0, 0.3);
            background: linear-gradient(135deg, rgba(40, 44, 52, 1) 0%, rgba(26, 26, 46, 1) 100%);
}

        html.page-leaderboard .custom-select .arrow {
color: #00d4ff;
            font-size: 0.8rem;
            transition: transform 0.3s ease;
}

        html.page-leaderboard .custom-select .arrow.rotated {
transform: rotate(180deg);
}

        html.page-leaderboard .custom-select .dropdown-options {
position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(40, 44, 52, 0.98) 100%);
            border: 2px solid rgba(0, 212, 255, 0.4);
            border-radius: 12px;
            margin-top: 4px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
}

        html.page-leaderboard .custom-select .dropdown-options.show {
opacity: 1;
            visibility: visible;
            transform: translateY(0);
}

        html.page-leaderboard .custom-select .dropdown-option {
padding: 12px 16px;
            color: #ffffff;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
            font-weight: 600;
}

        html.page-leaderboard .custom-select .dropdown-option:hover {
background: rgba(0, 212, 255, 0.1);
            color: #00d4ff;
}

        html.page-leaderboard .custom-select .dropdown-option.selected {
background: rgba(0, 212, 255, 0.2);
            color: #00d4ff;
}

        html.page-leaderboard .custom-select .dropdown-option:first-child {
border-radius: 10px 10px 0 0;
}

        html.page-leaderboard .custom-select .dropdown-option:last-child {
border-radius: 0 0 10px 10px;
}

        /* Hide original select */
        html.page-leaderboard .custom-select select {
display: none;
}

        html.page-leaderboard .section-title {
color: #00d4ff;
            font-family: "Burbank Big Condensed", sans-serif;
            font-size: 2rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-align: center;
            margin-bottom: 30px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
            position: relative;
}

        html.page-leaderboard .section-title::after {
content: "";
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            border-radius: 2px;
}

        html.page-leaderboard .leaderboard-table {
width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
}

        html.page-leaderboard .leaderboard-table th {
background: rgba(20, 22, 28, 0.95);
            color: rgba(255, 255, 255, 0.6);
            padding: 14px 16px;
            text-align: left;
            font-family: "Inter", sans-serif;
            font-size: 0.85rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            height: 55px;
            vertical-align: middle;
}

        /* Ranked specific column styling */
        html.page-leaderboard #rankedTable th:nth-child(1), html.page-leaderboard #rankedTable td:nth-child(1) {
width: 60px; text-align: center; padding-left: 8px;
}
        html.page-leaderboard #rankedTable th:nth-child(2), html.page-leaderboard #rankedTable td:nth-child(2) {
text-align: left;
}
        html.page-leaderboard #rankedTable th:nth-child(3), html.page-leaderboard #rankedTable td:nth-child(3) {
width: 180px; text-align: left; vertical-align: middle; padding-left: 0;
}
        html.page-leaderboard #rankedTable th:nth-child(4), html.page-leaderboard #rankedTable td:nth-child(4) {
width: 100px; text-align: center; vertical-align: middle;
}
        html.page-leaderboard #rankedTable th:nth-child(5), html.page-leaderboard #rankedTable td:nth-child(5) {
width: 100px; text-align: center; color: #ffd700; font-weight: bold; vertical-align: middle; padding-right: 24px;
}

        /* Mobile specific adjustments */
        @media (max-width: 768px) {
html.page-leaderboard #rankedTable th:nth-child(4), html.page-leaderboard #rankedTable td:nth-child(4), html.page-leaderboard #rankedTable th:nth-child(5), html.page-leaderboard #rankedTable td:nth-child(5) {
display: none !important;
}

            /* Make table fill container width — same as stats table */
            html.page-leaderboard #rankedTable {
width: 100%;
}

            /* Column 1: match stats table exactly */
            html.page-leaderboard #rankedTable th:nth-child(1), html.page-leaderboard #rankedTable td:nth-child(1) {
width: 50px !important;
                min-width: 50px !important;
                padding-left: 0 !important;
                padding-right: 0 !important;
                text-align: center !important;
}

            /* Column 3: match stats table col-3 padding exactly */
            html.page-leaderboard #rankedTable th:nth-child(3), html.page-leaderboard #rankedTable td:nth-child(3) {
width: auto !important;
                min-width: 0 !important;
                max-width: none !important;
                padding-left: 5px !important;
                padding-right: 10px !important;
                text-align: left !important;
                overflow: hidden !important;
}

            html.page-leaderboard .mobile-inline-stats {
display: inline-block !important;
                margin-left: 6px;
                font-weight: 700;
                font-size: 0.85rem;
}
            
            html.page-leaderboard .mobile-inline-stats.unreal {
color: #ffd700;
}
            
            html.page-leaderboard .mobile-inline-stats.progress {
color: #22c55e;
}
            
            html.page-leaderboard #rankedTable .division-cell-content {
gap: 4px !important; flex-wrap: nowrap !important;
}
            html.page-leaderboard #rankedTable .division-cell-content img {
width: 22px !important; height: 22px !important; flex-shrink: 0;
}
            /* Show rank name text, small and compact */
            html.page-leaderboard #rankedTable .division-cell-content span:not(.mobile-inline-stats) {
font-size: 0.72rem !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                max-width: 65px !important;
                display: inline !important;
}
            /* Show progress/unreal inline stats in parentheses */
            html.page-leaderboard #rankedTable .division-cell-content .mobile-inline-stats {
display: inline !important;
                font-size: 0.7rem !important;
                margin-left: 2px !important;
}
            html.page-leaderboard #rankedTable .player-name {
font-size: 0.9rem !important;
}
}

        /* Desktop only: hide inline stats */
        @media (min-width: 769px) {
html.page-leaderboard .mobile-inline-stats {
display: none;
}
}

        html.page-leaderboard #rankedTable .ranked-player-row {
display: flex;
            align-items: center;
            gap: 10px;
}

        html.page-leaderboard #rankedTable .division-cell-content {
display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 12px;
            width: 100%;
}

        html.page-leaderboard #rankedTable .progress-cell-content {
display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
}

        html.page-leaderboard .leaderboard-table th:first-child {
width: 60px;
            text-align: center;
}

        html.page-leaderboard .leaderboard-table th:last-child {
width: 100px;
            text-align: center;
}

        html.page-leaderboard .leaderboard-table td {
padding: 14px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            background: rgba(20, 22, 28, 0.7);
            transition: background 0.2s ease;
}

        html.page-leaderboard .leaderboard-table tr:hover td {
background: rgba(255, 255, 255, 0.05);
}

        html.page-leaderboard .leaderboard-table tr:nth-child(odd) td {
background: rgba(25, 28, 35, 0.7);
}

        html.page-leaderboard .leaderboard-table tr:nth-child(odd):hover td {
background: rgba(255, 255, 255, 0.05);
}

        html.page-leaderboard .rank-cell {
text-align: center;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            font-family: "Inter", sans-serif;
            font-size: 1rem;
}

        html.page-leaderboard .rank-cell.gold {
color: #ffd700;
}

        html.page-leaderboard .rank-cell.silver {
color: #c0c0c0;
}

        html.page-leaderboard .rank-cell.bronze {
color: #cd7f32;
}

        html.page-leaderboard .player-name {
font-weight: 600;
            color: #ffffff;
            cursor: pointer;
            transition: color 0.3s ease;
            text-decoration: none;
            display: inline-block;
}

        html.page-leaderboard .player-name:hover {
color: #00d4ff;
            text-decoration: none;
}

        html.page-leaderboard .wins-cell {
text-align: center;
            font-weight: 700;
            color: #00d4ff;
            font-family: "Inter", sans-serif;
            font-size: 1.1rem;
}

        html.page-leaderboard .stat-cell {
text-align: center;
            font-weight: 600;
            color: #e6e6fa;
            font-family: "Inter", sans-serif;
            font-size: 1rem;
}

        html.page-leaderboard .loading {
text-align: center;
            color: #00d4ff;
            margin: 50px 0;
}

        html.page-leaderboard .spinner {
border: 4px solid rgba(230, 230, 250, 0.2);
            border-top: 4px solid #00d4ff;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
            box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

        

        html.page-leaderboard .error {
background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
            color: white;
            padding: 25px;
            border-radius: 15px;
            text-align: center;
            margin: 20px 0;
            box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.1);
}

        html.page-leaderboard .empty-state {
text-align: center;
            color: #8892b0;
            padding: 50px;
            font-size: 1.1rem;
}

        html.page-leaderboard .rank-chart {
background: rgba(30, 35, 45, 0.8);
            border-radius: 12px;
            padding: 25px;
            border: 1px solid rgba(255, 255, 255, 0.1);
}

        html.page-leaderboard .rank-bar-container {
display: flex;
            gap: 15px;
            align-items: flex-end;
            height: 200px;
            padding: 0 10px;
}

        html.page-leaderboard .rank-bar {
flex: 1;
            min-height: 30px;
            border-radius: 8px 8px 0 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            padding: 10px 5px;
            transition: all 0.5s ease;
            position: relative;
}

        /* Rank Colors - Updated Palette */
        html.page-leaderboard .rank-bar.bronze .bar-fill {
background: #cd7f32;
}
        html.page-leaderboard .rank-bar.silver .bar-fill {
background: #c0c0c0;
}
        html.page-leaderboard .rank-bar.gold .bar-fill {
background: #ffd700;
}
        html.page-leaderboard .rank-bar.platinum .bar-fill {
background: #d0f6ff;
}
        html.page-leaderboard .rank-bar.diamond .bar-fill {
background: #7890fe;
}
        html.page-leaderboard .rank-bar.elite .bar-fill {
background: #434345;
}
        html.page-leaderboard .rank-bar.champion .bar-fill {
background: #ff4400;
}
        html.page-leaderboard .rank-bar.unreal .bar-fill {
background: #6035fc;
}
        html.page-leaderboard .rank-bar.unreal .bar-fill {
background: #6b21a8;
}

        /* Hover tooltip for bar counts */
        html.page-leaderboard .rank-bar {
cursor: pointer;
}
        html.page-leaderboard .rank-bar:hover .bar-fill {
filter: brightness(1.2);
}
        html.page-leaderboard .rank-bar .bar-tooltip {
position: absolute;
            top: 0;
            left: 50%;
            transform: translate(-50%, -110%);
            background: rgba(10, 12, 18, 0.95);
            backdrop-filter: blur(8px);
            color: #fff;
            padding: 6px 10px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 500;
            line-height: 1.3;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 10000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.1);
}
        html.page-leaderboard .rank-bar .bar-tooltip::after {
content: "";
            position: absolute;
            bottom: -6px;
            left: 50%;
            transform: translateX(-50%);
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-top: 6px solid rgba(10, 12, 18, 0.95);
}
        html.page-leaderboard .rank-bar:hover .bar-tooltip {
opacity: 1;
            transform: translate(-50%, calc(-100% - 12px));
}
        html.page-leaderboard .rank-bar:hover {
z-index: 10001 !important;
            position: relative;
}
        /* Ensure parents don't clip tooltips */
        html.page-leaderboard .rank-chart-new {
overflow: visible !important;
}
        html.page-leaderboard .rank-bar, html.page-leaderboard .bar-fill {
overflow: visible !important;
            position: relative;
}

        html.page-leaderboard .rank-chart-new {
display: flex;
            align-items: flex-end;
            justify-content: center;
            height: 300px;
            padding: 40px 20px 80px 55px;
            background: rgba(15, 18, 25, 0.95);
            border-radius: 16px;
            margin-bottom: 30px;
            gap: 4px;
            border: none;
            position: relative;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

        html.page-leaderboard .chart-grid-lines {
position: absolute;
            top: 40px;
            left: 55px;
            right: 20px;
            height: 180px;
            pointer-events: none;
            z-index: 0;
}

        html.page-leaderboard .grid-line {
position: absolute;
            width: 100%;
            height: 1px;
            background: rgba(255, 255, 255, 0.05);
}

        html.page-leaderboard .percentile-axis {
position: absolute;
            left: 8px;
            top: 40px;
            height: 180px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: flex-end;
            font-size: 11px;
            color: rgba(255, 255, 255, 0.5);
            font-weight: 500;
            width: 40px;
            padding-right: 8px;
}

        html.page-leaderboard .percentile-axis span {
line-height: 1;
}

        html.page-leaderboard .rank-chart-new .rank-bar {
flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            min-width: 0;
            height: 180px;
            justify-content: flex-end;
            z-index: 1;
            margin: 0;
            padding: 0;
            border: none;
}

        html.page-leaderboard .rank-chart-new .bar-fill {
width: 85%;
            border-radius: 4px 4px 0 0;
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            min-height: 2px;
            position: relative;
            margin: 0;
            padding: 0;
            display: block;
            border: none;
            outline: none;
}

        html.page-leaderboard .rank-chart-new .bar-fill:hover {
filter: brightness(1.2);
            transform: scaleY(1.02);
            box-shadow: 0 0 15px currentColor;
}

        html.page-leaderboard .rank-chart-new .bar-label {
position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-100%) rotate(-45deg);
            transform-origin: top right;
            white-space: nowrap;
            font-size: 10px;
            text-align: right;
            color: rgba(255, 255, 255, 0.7);
            font-weight: 500;
            width: auto;
            margin-top: 8px;
}

        @media (max-width: 768px) {
body.page-leaderboard {
padding-bottom: 90px !important;
}
            html.page-leaderboard .rank-chart-new {
height: 260px;
                padding: 15px 5px 85px 35px;
                gap: 2px;
                justify-content: center;
                overflow: visible;
}
            html.page-leaderboard .rank-chart-new .rank-bar {
flex: 1;
                min-width: 0;
                height: 160px;
}
            html.page-leaderboard .rank-chart-new .bar-fill {
width: 90%;
}
            html.page-leaderboard .rank-chart-new .bar-label {
font-size: 8px;
                width: auto;
                left: 50%;
                transform: translateX(-100%) rotate(-45deg);
                color: rgba(255, 255, 255, 0.9);
                text-overflow: clip;
                overflow: visible;
                display: block;
                text-align: right;
                transform-origin: top right;
                font-weight: 500;
                margin-top: 5px;
}
            html.page-leaderboard .percentile-axis {
font-size: 8px;
                width: 30px;
                left: 2px;
                padding-right: 4px;
                height: 160px;
                top: 15px;
}
            html.page-leaderboard .chart-grid-lines {
left: 35px;
                right: 5px;
                height: 160px;
                top: 15px;
}
}


        html.page-leaderboard .ranked-player-row {
display: flex;
            align-items: center;
            gap: 10px;
}

        html.page-leaderboard .division-badge-img-small {
width: 24px;
            height: 24px;
            object-fit: contain;
}

        html.page-leaderboard .pagination {
display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            margin-top: 30px;
            flex-wrap: wrap;
}

        html.page-leaderboard .page-jump {
display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(20, 22, 28, 0.6);
            padding: 5px 15px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.1);
}

        html.page-leaderboard .page-jump input {
width: 60px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 4px;
            color: #ffffff;
            padding: 4px 8px;
            text-align: center;
            outline: none;
            font-family: "Inter", sans-serif;
            font-size: 0.9rem;
}

        html.page-leaderboard .page-jump input:focus {
border-color: #00d4ff;
}

        html.page-leaderboard .page-jump button {
background: #00d4ff;
            color: #0a0a12;
            border: none;
            padding: 4px 12px;
            border-radius: 4px;
            font-weight: 700;
            cursor: pointer;
            text-transform: uppercase;
            font-size: 0.8rem;
            transition: all 0.2s ease;
}

        html.page-leaderboard .page-jump button:hover {
background: #0099cc;
            transform: translateY(-1px);
}

        html.page-leaderboard .pagination-info {
color: #8892b0;
            font-size: 0.9rem;
            margin-bottom: 15px;
            text-align: center;
}

        html.page-leaderboard .page-btn {
background: linear-gradient(135deg, rgba(40, 44, 52, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
            border: 2px solid rgba(0, 212, 255, 0.3);
            color: #ffffff;
            padding: 10px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            min-width: 45px;
            text-align: center;
}

        html.page-leaderboard .page-btn:hover:not(:disabled) {
border-color: #00d4ff;
            background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(30, 30, 50, 0.95) 100%);
            transform: translateY(-2px);
}

        html.page-leaderboard .page-btn.active {
background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            border-color: #00d4ff;
            color: #ffffff;
}

        html.page-leaderboard .page-btn:disabled {
opacity: 0.5;
            cursor: not-allowed;
}

        html.page-leaderboard .page-btn.dots {
border: none;
            background: none;
            cursor: default;
            color: #8892b0;
}

        @media (max-width: 768px) {
body.page-leaderboard {
padding-bottom: 90px !important;
}
            html.page-leaderboard .container {
padding: 15px;
}

            html.page-leaderboard .header h1 {
font-size: 2rem;
}

            html.page-leaderboard .leaderboard-container {
padding: 20px 15px;
}

            html.page-leaderboard .leaderboard-filters {
flex-direction: column;
                gap: 15px;
                align-items: stretch;
}

            html.page-leaderboard .filter-group {
flex-direction: column;
                align-items: flex-start;
                gap: 8px;
}

            html.page-leaderboard .filter-group label {
font-size: 0.85rem;
}

            html.page-leaderboard .custom-select {
width: 100%;
}

            html.page-leaderboard .custom-select .select-button {
width: 100%;
}

        html.page-leaderboard .leaderboard-table th, html.page-leaderboard .leaderboard-table td {
padding: 16px 20px;
            font-size: 1rem;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

        @media (max-width: 768px) {
html.page-leaderboard .leaderboard-table th, html.page-leaderboard .leaderboard-table td {
padding: 12px 10px;
                font-size: 0.85rem;
}
            html.page-leaderboard .leaderboard-table th:nth-child(1), html.page-leaderboard .leaderboard-table td:nth-child(1) {
width: 50px !important;
                min-width: 50px !important;
                padding-left: 0;
                padding-right: 0;
                text-align: center;
}
            html.page-leaderboard .leaderboard-table th:nth-child(3), html.page-leaderboard .leaderboard-table td:nth-child(3) {
width: 70px !important;
                min-width: 70px !important;
                padding-right: 10px;
                padding-left: 5px;
}
            /* Hide non-essential columns on very small screens if needed, 
               but here we just tighten them */
            html.page-leaderboard .leaderboard-table th:nth-child(4), html.page-leaderboard .leaderboard-table td:nth-child(4), html.page-leaderboard .leaderboard-table th:nth-child(5), html.page-leaderboard .leaderboard-table td:nth-child(5) {
display: none;
}
}

        html.page-leaderboard .leaderboard-table th {
background: rgba(0, 0, 0, 0.2);
            color: #8892b0;
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.8rem;
            letter-spacing: 1px;
}

        html.page-leaderboard .leaderboard-tabs {
display: flex;
            gap: 10px;
            margin-bottom: 20px;
            justify-content: center;
}

        html.page-leaderboard .leaderboard-tab {
background: linear-gradient(135deg, rgba(40, 44, 52, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
            border: 2px solid rgba(0, 212, 255, 0.3);
            color: #ffffff;
            padding: 15px 30px;
            font-size: 1rem;
            font-weight: 500;
            font-family: "Burbank Big Condensed", sans-serif;
            cursor: pointer;
            border-radius: 12px;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
}

        html.page-leaderboard .leaderboard-tab:hover {
border-color: rgba(0, 212, 255, 0.6);
            transform: translateY(-2px);
}

        html.page-leaderboard .leaderboard-tab.active {
background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            border-color: #00d4ff;
            color: #ffffff;
            box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

        html.page-leaderboard .leaderboard-container {
background: rgba(45, 55, 72, 0.95);
            border-radius: 8px;
            padding: 30px;
            border: none;
            backdrop-filter: blur(10px);
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            max-width: 100%;
}

        html.page-leaderboard .leaderboard-filters {
display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 30px;
            flex-wrap: wrap;
}

        html.page-leaderboard #statsSection, html.page-leaderboard #rankedSection {
transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
}
        
        html.page-leaderboard .fade-out {
opacity: 0 !important;
            transform: translateY(5px);
}
        
        html.page-leaderboard .fade-in {
opacity: 0 !important;
            transform: translateY(-5px);
}
}

/* ===== profile.html ===== */

html.page-profile * {
margin: 0;
            padding: 0;
            box-sizing: border-box;
}

        html.page-profile {
background: 
                linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.9) 50%, rgba(15, 52, 96, 0.85) 100%),
                linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
                url("/static/images/background.webp");
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            background-repeat: no-repeat;
            min-height: 100vh;
            overflow-y: scroll;
}

        body.page-profile {
font-family: "Inter", sans-serif;
            color: #e6e6fa;
            position: relative;
            min-height: 100vh;
}

        body.page-profile::before {
content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
            pointer-events: none;
            z-index: -1;
}



        html.page-profile .navbar {
background: rgba(10, 12, 18, 0.8);
            padding: 0;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            backdrop-filter: blur(15px);
}

        html.page-profile .navbar-container {
max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            height: 64px;
            position: relative;
}

        html.page-profile .nav-left {
display: flex;
            align-items: center;
            gap: 16px;
}

        html.page-profile .nav-links {
position: absolute;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 4px;
}

        html.page-profile .nav-right {
display: flex;
            align-items: center;
            gap: 16px;
}

        html.page-profile .nav-button {
background: none;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            padding: 8px 16px;
            font-size: 14px;
            font-weight: 500;
            font-family: "Inter", sans-serif;
            cursor: pointer;
            text-decoration: none;
            display: flex;
            align-items: center;
            transition: all 0.2s ease;
            border-radius: 8px;
            position: relative;
}

        html.page-profile .nav-button:hover {
color: #ffffff;
            background: rgba(255, 255, 255, 0.05);
}

        html.page-profile .nav-button.active {
color: #00d4ff;
            background: rgba(0, 212, 255, 0.08);
            font-weight: 600;
}

        html.page-profile .search-trigger {
color: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
}

        html.page-profile .search-trigger:hover {
background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
}

        /* Search Popup */
        html.page-profile .search-overlay {
position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
}

        html.page-profile .search-overlay.show {
display: flex;
            opacity: 1;
}

        html.page-profile .search-popup {
background: #1a1f2e;
            width: 90%;
            max-width: 450px;
            padding: 30px;
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transform: scale(0.9);
            transition: transform 0.3s ease;
            position: relative;
}

        html.page-profile .close-search {
position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.5);
            font-size: 24px;
            cursor: pointer;
            padding: 5px;
            line-height: 1;
            transition: color 0.2s;
            margin: 0;
            width: auto;
}

        html.page-profile .close-search:hover {
color: white;
}

        html.page-profile .search-overlay.show .search-popup {
transform: scale(1);
}

        html.page-profile .search-popup .platform-switcher {
display: flex;
            gap: 24px;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            padding: 6px 40px;
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin: 0 auto 25px;
            width: fit-content;
            min-width: 240px;
            justify-content: center;
}

        html.page-profile .search-popup .platform-btn {
width: 36px;
            height: 36px;
            border: none;
            background: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.6;
            transition: all 0.2s ease;
            padding: 0;
            margin: 0;
}

        html.page-profile .search-popup .platform-btn img {
filter: brightness(0.6) saturate(0);
            transition: all 0.2s ease;
}

        html.page-profile .search-popup .platform-btn.active {
opacity: 1;
}

        html.page-profile .search-popup .platform-btn.active img {
filter: brightness(1) saturate(1);
}

        html.page-profile .search-popup .search-input-container {
display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 0;
}

        html.page-profile .search-popup #usernameInputPopup {
flex: 1;
            padding: 15px 20px;
            background: transparent;
            border: none;
            color: #ffffff;
            font-family: "Inter", sans-serif;
            font-size: 1rem;
            outline: none;
}

        html.page-profile .search-popup .search-btn {
background: transparent;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            width: auto;
}

        html.page-profile .search-popup .search-main-btn {
width: 100%;
            margin: 0;
            padding: 16px;
            font-size: 1.1rem;
            font-family: "Burbank Big Condensed", sans-serif;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 2px;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            cursor: pointer;
}

        html.page-profile .popup-search-input {
width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 16px 20px;
            border-radius: 16px;
            color: #ffffff;
            font-size: 1.1rem;
            outline: none;
            margin-bottom: 20px;
}

        html.page-profile .popup-search-input:focus {
border-color: #00d4ff;
            background: rgba(0, 212, 255, 0.05);
}

        html.page-profile .search-popup h2 {
font-family: "Burbank Big Condensed", sans-serif !important;
            color: #fff;
            margin-bottom: 20px;
            font-size: 2rem;
            text-transform: uppercase;
}

        html.page-profile .search-popup button {
font-family: "Burbank Big Condensed", sans-serif !important;
            text-transform: uppercase;
            letter-spacing: 1px;
}

        html.page-profile .user-info {
display: flex;
            align-items: center;
            gap: 15px;
}

        html.page-profile .hamburger {
display: none;
            flex-direction: column;
            cursor: pointer;
            padding: 10px;
}

        html.page-profile .hamburger span {
width: 25px;
            height: 3px;
            background: #ffffff;
            margin: 3px 0;
            transition: 0.3s;
            border-radius: 2px;
}

        html.page-profile .hamburger.active span:nth-child(1) {
transform: rotate(-45deg) translate(-5px, 6px);
}

        html.page-profile .hamburger.active span:nth-child(2) {
opacity: 0;
}

        html.page-profile .hamburger.active span:nth-child(3) {
transform: rotate(45deg) translate(-5px, -6px);
}

        html.page-profile .mobile-menu {
display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(20px);
            flex-direction: column;
            padding: 20px 0;
}

        html.page-profile .mobile-menu.active {
display: flex;
}

        html.page-profile .mobile-menu .nav-button {
padding: 15px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 0;
}

        html.page-profile .mobile-menu .nav-button:last-child {
border-bottom: none;
}

        html.page-profile .desktop-only {
display: flex;
}

        @media (max-width: 768px) {
body.page-profile {
padding-bottom: 90px !important;
}
            html.page-profile {
background-attachment: scroll;
}
            body.page-profile::before {
display: none;
}
            html.page-profile .nav-links {
display: none;
}

            html.page-profile .hamburger {
display: flex;
}

            html.page-profile .navbar-container {
padding: 0 15px;
}

            html.page-profile .desktop-only {
display: none !important;
}
}

        html.page-profile .container {
max-width: 1200px;
            margin: 0 auto;
            padding: 8px 20px 60px;
            width: 100%;
            margin-top: 78px;
}

        html.page-profile .header {
text-align: center;
            margin-bottom: 30px;
            margin-top: 12px;
}

        html.page-profile .header h1 {
font-family: "Burbank Big Condensed", sans-serif !important;
            color: #ffffff;
            font-size: 3.5rem;
            font-weight: 900;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
            letter-spacing: 2px;
            text-transform: uppercase;
            font-stretch: condensed;
}

        html.page-profile .header p {
display: none;
}

        @media (max-width: 768px) {
html.page-profile .header h1 {
font-size: 3.5rem !important;
                line-height: 1.1;
}
            html.page-profile .container {
margin-top: 12px;
}
}

        html.page-profile .profile-views {
display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 15px;
            color: #8892b0;
            font-size: 0.9rem;
            font-weight: 500;
}

        html.page-profile .profile-views svg {
width: 16px;
            height: 16px;
            fill: #8892b0;
}

        html.page-profile .views-count {
color: #8892b0;
            font-weight: 600;
}

        html.page-profile .profile-stats-container {
display: flex;
            align-items: center;
            justify-content: center;
            gap: 30px;
            margin-top: 8px;
            flex-wrap: wrap;
}

        html.page-profile .profile-views, html.page-profile .battle-pass-level {
display: flex;
            align-items: center;
            gap: 8px;
            color: #8892b0;
            font-size: 0.9rem;
            font-weight: 500;
            line-height: 1.2;
            margin: 0;
            padding: 0;
            white-space: nowrap;
}

        html.page-profile .battle-pass-level svg {
width: 16px;
            height: 16px;
            fill: #8892b0;
}

        html.page-profile .bp-level-count {
color: #8892b0;
            font-weight: 600;
}

        html.page-profile .player-name {
font-family: "Burbank Big Condensed", sans-serif;
            color: #00d4ff;
            font-size: 2.4rem;
            font-weight: 700;
            margin-bottom: 10px;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
}

        html.page-profile .founder-crown {
width: 32px;
            height: 32px;
            fill: #ffd700;
            filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

        html.page-profile .account-id {
font-family: "Inter", sans-serif;
            font-size: 0.9rem;
            color: #8892b0;
            margin-top: 12px;
            font-weight: 400;
            letter-spacing: 0.5px;
}

        html.page-profile .epic-display-name {
font-family: "Inter", sans-serif;
            color: #8892b0;
            font-size: 1.1rem;
            font-weight: 500;
            margin-bottom: 15px;
            text-align: center;
}

        html.page-profile .epic-display-name strong {
color: #ffffff;
}

        html.page-profile .private-profile-banner {
display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
            border: 1px solid rgba(239, 68, 68, 0.3);
            border-radius: 8px;
            padding: 12px 20px;
            margin: 15px auto;
            max-width: 500px;
            color: #fca5a5;
            font-size: 0.9rem;
            font-family: "Inter", sans-serif;
}

        html.page-profile .private-profile-banner svg {
flex-shrink: 0;
            color: #ef4444;
}

        html.page-profile .tab-navigation {
display: flex;
            justify-content: center;
            gap: 5px;
            margin-bottom: 20px;
            background: rgba(45, 55, 72, 0.9);
            border-radius: 12px;
            padding: 8px;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
}

        html.page-profile .tab-button {
padding: 12px 24px;
            background: none;
            border: none;
            color: #8892b0;
            font-family: "Inter", sans-serif;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            border-radius: 8px;
            transition: all 0.3s ease;
            flex: 1;
            text-align: center;
}

        html.page-profile .tab-button:hover {
color: #00d4ff;
            background: rgba(0, 212, 255, 0.1);
}

        html.page-profile .tab-button.active {
background: #00d4ff;
            color: #1a1a2e;
            font-weight: 700;
}

        html.page-profile .controls-container {
display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 25px;
            flex-wrap: wrap;
            align-items: flex-start;
}

        html.page-profile .filter-controls {
display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 25px;
            flex-wrap: wrap;
            align-items: center;
}

        html.page-profile .compact-filter-container {
display: flex;
            gap: 15px;
            background: rgba(45, 55, 72, 0.9);
            padding: 12px 20px;
            border-radius: 25px;
            border: 1px solid #4a5568;
            flex-wrap: wrap;
            justify-content: center;
}

        html.page-profile .filter-section {
display: flex;
            align-items: center;
            gap: 10px;
}

        html.page-profile .filter-section label {
color: #00d4ff;
            font-weight: 700;
            font-size: 14px;
            font-family: "Inter", sans-serif;
            min-width: 60px; /* Adjust as needed */
}

        html.page-profile .button-group {
display: flex;
            gap: 8px;
}

        html.page-profile .filter-btn {
padding: 8px 12px;
            background: rgba(26, 26, 46, 0.9);
            border: 2px solid #4a5568;
            color: #8892b0;
            font-family: "Inter", sans-serif;
            font-weight: 600;
            font-size: 12px;
            cursor: pointer;
            border-radius: 20px;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            min-height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
}

        html.page-profile .filter-btn:hover {
border-color: #00d4ff;
            color: #ffffff;
            background: rgba(0, 212, 255, 0.1);
}

        html.page-profile .filter-btn.active {
background: #00d4ff;
            color: #1a1a2e;
            border-color: #00d4ff;
            font-weight: 700;
}


        html.page-profile .gamemode-filter-container, html.page-profile .variant-filter-container {
display: flex;
            gap: 15px;
            align-items: center;
            background: rgba(45, 55, 72, 0.9);
            padding: 12px 20px;
            border-radius: 25px;
            border: 1px solid #4a5568;
}

        html.page-profile .gamemode-filter-container label, html.page-profile .variant-filter-container label {
color: #00d4ff;
            font-weight: 700;
            font-size: 14px;
            font-family: "Inter", sans-serif;
            min-width: 80px;
}

        html.page-profile .gamemode-filter-group, html.page-profile .variant-filter-group {
display: flex;
            gap: 10px;
}

        html.page-profile .gamemode-filter-btn, html.page-profile .variant-filter-btn, html.page-profile .ranked-gamemode-btn, html.page-profile .ranked-variant-btn {
padding: 8px 12px;
            background: rgba(26, 26, 46, 0.9);
            border: 2px solid #4a5568;
            color: #8892b0;
            font-family: "Inter", sans-serif;
            font-weight: 600;
            font-size: 12px;
            cursor: pointer;
            border-radius: 20px;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
}

        html.page-profile .gamemode-filter-btn:hover, html.page-profile .variant-filter-btn:hover, html.page-profile .ranked-gamemode-btn:hover, html.page-profile .ranked-variant-btn:hover {
border-color: #00d4ff;
            color: #ffffff;
            background: rgba(0, 212, 255, 0.1);
}

        html.page-profile .gamemode-filter-btn.active, html.page-profile .variant-filter-btn.active, html.page-profile .ranked-gamemode-btn.active, html.page-profile .ranked-variant-btn.active {
background: #00d4ff;
            color: #1a1a2e;
            border-color: #00d4ff;
            font-weight: 700;
}

        html.page-profile .variant-filter-btn.disabled {
opacity: 0.4;
            cursor: not-allowed;
            background: rgba(26, 26, 46, 0.5);
}

        html.page-profile .variant-filter-btn.disabled:hover {
border-color: #4a5568;
            color: #8892b0;
            background: rgba(26, 26, 46, 0.5);
            transform: none;
}

        html.page-profile .input-filter-container {
display: flex;
            gap: 20px;
            align-items: center;
            background: rgba(45, 55, 72, 0.9);
            padding: 12px 20px;
            border-radius: 25px;
            border: 1px solid #4a5568;
}

        html.page-profile .input-filter-btn {
width: 40px;
            height: 40px;
            border: none;
            background: transparent;
            color: #8892b0;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.6;
            transition: opacity 0.2s ease;
}

        html.page-profile .input-filter-btn img {
filter: brightness(0.6) saturate(0);
            transition: all 0.2s ease;
            opacity: 0.8;
}

        html.page-profile .input-filter-btn:hover img {
filter: brightness(0.8) saturate(0);
            opacity: 0.9;
}

        html.page-profile .input-filter-btn.active {
opacity: 1;
            color: #ffffff;
}

        html.page-profile .input-filter-btn.active img {
filter: brightness(1) saturate(1);
            opacity: 1;
}

        html.page-profile .stats-container {
background: rgba(45, 55, 72, 0.95);
            border-radius: 8px;
            padding: 30px;
            border: none;
            backdrop-filter: blur(10px);
            width: 100%;
            margin: 0;
            box-sizing: border-box;
}

        /* Events Section Styles */
        html.page-profile .events-container {
background: transparent;
            padding: 0;
            margin-top: 20px;
            width: 100%;
}

        html.page-profile .events-filter-container {
display: flex;
            justify-content: center;
            margin-bottom: 20px;
}

        html.page-profile .events-region-filter {
display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
}

        html.page-profile .region-filter-btn {
background: #1e2330;
            border: none;
            color: #9ca3af;
            padding: 10px 18px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            transition: all 0.15s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
}

        html.page-profile .region-filter-btn:hover {
background: #2a3142;
            color: #fff;
}

        html.page-profile .region-filter-btn.active {
background: #00d4ff;
            color: #0a0c10;
}

        html.page-profile .events-table-wrapper {
overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            width: 100%;
            position: relative;
            min-height: 200px;
}

        html.page-profile .events-table-wrapper {
position: relative;
            min-height: 200px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            width: 100%;
}

        html.page-profile .events-table {
width: 100%;
            border-collapse: separate;
            border-spacing: 0 8px;
            table-layout: fixed;
}

        html.page-profile .events-table th:nth-child(1) {
width: 40%; text-align: left;
}
        html.page-profile .events-table th:nth-child(2) {
width: 12%; text-align: center;
}
        html.page-profile .events-table th:nth-child(3) {
width: 10%; text-align: center;
}
        html.page-profile .events-table th:nth-child(4) {
width: 10%; text-align: center;
}
        html.page-profile .events-table th:nth-child(5) {
width: 10%; text-align: center;
}
        html.page-profile .events-table th:nth-child(6) {
width: 10%; text-align: center;
}
        html.page-profile .events-table th:nth-child(7) {
width: 8%; text-align: center;
}
        
        html.page-profile .event-row .event-cell:nth-child(1) {
width: 40%; text-align: left;
}
        html.page-profile .event-row .event-cell:nth-child(2) {
width: 12%; text-align: center;
}
        html.page-profile .event-row .event-cell:nth-child(3) {
width: 10%; text-align: center;
}
        html.page-profile .event-row .event-cell:nth-child(4) {
width: 10%; text-align: center;
}
        html.page-profile .event-row .event-cell:nth-child(5) {
width: 10%; text-align: center;
}
        html.page-profile .event-row .event-cell:nth-child(6) {
width: 10%; text-align: center;
}
        html.page-profile .event-row .event-cell:nth-child(7) {
width: 8%; text-align: center;
}

        html.page-profile .event-row {
display: table-row;
            background: rgba(30, 35, 45, 0.8);
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            color: inherit;
}

        html.page-profile .event-row:hover {
background: rgba(40, 45, 55, 0.95);
}

        html.page-profile .event-row .event-cell {
display: table-cell;
            padding: 16px 12px;
            vertical-align: middle;
}

        html.page-profile .event-row .event-cell:first-child {
border-radius: 8px 0 0 8px;
}

        html.page-profile .event-row .event-cell:last-child {
border-radius: 0 8px 8px 0;
}

        html.page-profile .event-info-cell {
display: flex;
            align-items: center;
            gap: 14px;
}

        html.page-profile .event-thumb {
width: 48px;
            height: 48px;
            border-radius: 8px;
            background-size: cover;
            background-position: center;
            background-color: rgba(0, 212, 255, 0.15);
            flex-shrink: 0;
}

        html.page-profile .event-details {
display: flex;
            flex-direction: column;
            gap: 4px;
}

        html.page-profile .event-name {
font-weight: 600;
            font-size: 14px;
            color: #fff;
}

        html.page-profile .event-session {
font-size: 12px;
            color: #6b7280;
}

        html.page-profile .event-placement {
font-weight: 700;
            font-size: 15px;
            color: #9ca3af;
}

        html.page-profile .event-placement.top1 {
color: #ffd700;
}
        html.page-profile .event-placement.top3 {
color: #c0c0c0;
}
        html.page-profile .event-placement.top5 {
color: #cd7f32;
}
        html.page-profile .event-placement.top10 {
color: #00d4ff;
}
        html.page-profile .event-placement.top25 {
color: #22c55e;
}

        html.page-profile .event-points {
display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 700;
            font-size: 15px;
            color: #fff;
}

        html.page-profile .event-points .points-icon {
color: #a855f7;
            font-size: 14px;
}

        html.page-profile .points-value {
font-weight: 700;
            font-size: 15px;
            color: #00d4ff;
}

        html.page-profile .event-stat {
font-size: 14px;
            color: #9ca3af;
            text-align: center;
            min-width: 40px;
}

        html.page-profile .event-view-link {
color: #22c55e;
            font-size: 12px;
            text-decoration: none;
            white-space: nowrap;
}

        html.page-profile .event-view-link:hover {
text-decoration: underline;
}

        html.page-profile .events-table-header {
display: none;
}

        @media (min-width: 768px) {
html.page-profile .events-table-header {
display: table-row;
                color: #6b7280;
                font-size: 11px;
                text-transform: uppercase;
                letter-spacing: 0.5px;
}
            
            html.page-profile .events-table-header th {
padding: 8px 12px;
                font-weight: 600;
                text-align: left;
}
            
            html.page-profile .events-table-header th:nth-child(n/**/+3) {
text-align: center;
}
}

        html.page-profile .event-card-placement.top1 {
background: linear-gradient(135deg, #ffd700, #ff8c00); color: #1a1a1a;
}
        html.page-profile .event-card-placement.top3 {
background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #1a1a1a;
}
        html.page-profile .event-card-placement.top5 {
background: linear-gradient(135deg, #cd7f32, #b87333); color: #fff;
}
        html.page-profile .event-card-placement.top10 {
background: rgba(0, 212, 255, 0.9); color: #1a1a1a;
}
        html.page-profile .event-card-placement.top25 {
background: rgba(100, 200, 100, 0.9); color: #1a1a1a;
}

        html.page-profile .event-card-content {
padding: 16px;
}

        html.page-profile .event-card-name {
font-weight: 700;
            font-size: 15px;
            color: #fff;
            margin-bottom: 4px;
            line-height: 1.3;
}

        html.page-profile .event-card-session {
font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
            margin-bottom: 12px;
}

        html.page-profile .event-card-stats {
display: flex;
            gap: 16px;
            flex-wrap: wrap;
}

        html.page-profile .event-card-stat {
display: flex;
            flex-direction: column;
}

        html.page-profile .event-card-stat-value {
font-weight: 700;
            font-size: 16px;
            color: #00d4ff;
}

        html.page-profile .event-card-stat-label {
font-size: 11px;
            color: rgba(255, 255, 255, 0.5);
            text-transform: uppercase;
}

        html.page-profile .event-card-footer {
display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
}

        html.page-profile .event-card-date {
font-size: 12px;
            color: rgba(255, 255, 255, 0.5);
}

        html.page-profile .event-card-region {
background: rgba(255, 255, 255, 0.1);
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.7);
}

        html.page-profile .events-load-more {
display: flex;
            justify-content: center;
            margin-top: 24px;
}

        html.page-profile .load-more-btn {
background: rgba(40, 44, 52, 0.9);
            border: 1px solid rgba(0, 212, 255, 0.3);
            color: #00d4ff;
            padding: 12px 32px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.2s;
}

        html.page-profile .load-more-btn:hover {
background: rgba(0, 212, 255, 0.1);
            border-color: #00d4ff;
}

        html.page-profile .events-empty {
text-align: center;
            padding: 60px 20px;
            color: rgba(255, 255, 255, 0.5);
}

        html.page-profile .events-empty-icon {
font-size: 48px;
            margin-bottom: 16px;
            opacity: 0.5;
}

        html.page-profile .loading {
text-align: center;
            color: #00d4ff;
            margin: 50px 0;
}

        html.page-profile .spinner {
border: 4px solid rgba(230, 230, 250, 0.2);
            border-top: 4px solid #00d4ff;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
            box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

        

        html.page-profile .error {
background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
            color: white;
            padding: 25px;
            border-radius: 15px;
            text-align: center;
            margin: 20px 0;
            box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.1);
}

        html.page-profile .playlist-grid {
display: flex;
            flex-direction: column;
            gap: 15px;
            margin-top: 20px;
}

        html.page-profile .playlist-card {
background: rgba(40, 44, 52, 0.9);
            padding: 20px;
            border-radius: 15px;
            border: none;
            position: relative;
            overflow: visible;
            min-height: 120px;
            display: flex;
            flex-direction: column;
}

        html.page-profile .playlist-name {
color: #00d4ff;
            margin-bottom: 15px;
            font-size: 1.4rem;
            font-family: "Burbank Big Condensed", sans-serif;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            z-index: 1;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

        html.page-profile .stats-row {
display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 15px;
            margin-top: 10px;
}

        html.page-profile .stat-item {
background: rgba(26, 26, 46, 0.8);
            padding: 15px 12px;
            border-radius: 10px;
            text-align: center;
            border: none;
            position: relative;
            overflow: hidden;
            min-width: 120px;
}

        html.page-profile .stat-label {
font-size: 0.75rem;
            color: #8892b0;
            margin-bottom: 8px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            line-height: 1.2;
}

        html.page-profile .stat-value {
font-size: 1.2rem;
            font-weight: 600;
            color: #00d4ff;
            font-family: "Inter", sans-serif;
            display: block;
}



        html.page-profile .section-title {
color: #00d4ff;
            font-family: "Burbank Big Condensed", sans-serif;
            font-size: 2rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-align: center;
            margin-bottom: 30px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
            position: relative;
}

        html.page-profile .section-title::after {
content: "";
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 3px;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            border-radius: 2px;
}

        @media (max-width: 768px) {
html.page-profile .events-container {
overflow-x: visible;
}

            html.page-profile .events-table {
width: 100%;
                min-width: 800px;
}

            html.page-profile .event-row td {
padding: 16px 12px;
}

            html.page-profile .event-thumb {
width: 48px;
                height: 48px;
}

            html.page-profile .event-info-cell {
gap: 14px;
}

            html.page-profile .event-name {
font-size: 14px;
}

            html.page-profile .event-meta, html.page-profile .event-session {
font-size: 12px;
}

            html.page-profile .events-table-header {
display: table-row !important;
                font-size: 14px;
                color: #6b7280;
}
            
            html.page-profile .events-table-header th {
padding: 12px;
                white-space: nowrap;
                text-align: left;
}
}

        @media (max-width: 768px) {
body.page-profile {
padding-bottom: 90px !important;
}
            html.page-profile .container {
padding: 15px;
}

            html.page-profile .controls-container {
flex-direction: column;
                align-items: center;
}

            html.page-profile .filter-controls {
flex-direction: column;
                align-items: center;
}

            html.page-profile .compact-filter-container {
flex-direction: column;
                align-items: center;
                width: 100%;
}

            html.page-profile .filter-section {
width: 100%;
                justify-content: center;
}

            html.page-profile .button-group {
flex-wrap: wrap;
                justify-content: center;
}


            html.page-profile #inputFilter {
width: 160px;
}

            html.page-profile .player-name {
font-size: 1.8rem;
                flex-direction: column;
                gap: 8px;
}

            html.page-profile .tab-navigation {
padding: 6px;
}

            html.page-profile .tab-button {
padding: 10px 16px;
                font-size: 13px;
}

            html.page-profile .filter-btn {
padding: 6px 10px;
                font-size: 11px;
}

            html.page-profile .input-filter-container {
padding: 10px 15px;
}

            html.page-profile .input-filter-btn img {
width: 20px;
                height: 20px;
}

            html.page-profile .stats-container {
padding: 20px 15px;
}

            html.page-profile .section-title {
font-size: 1.5rem;
}

            html.page-profile .stat-item {
padding: 12px 10px;
                min-width: 100px;
}

            html.page-profile .stat-label {
font-size: 0.7rem;
}

            html.page-profile .stat-value {
font-size: 1rem;
}

            html.page-profile .playlist-name {
font-size: 1.2rem;
}
}

        @media (max-width: 480px) {
html.page-profile .header h1 {
font-size: 2.8rem !important;
}
            html.page-profile .player-name {
font-size: 2.2rem;
}

            html.page-profile .tab-button {
padding: 8px 12px;
                font-size: 12px;
}

            html.page-profile .filter-btn {
padding: 5px 8px;
                font-size: 10px;
}

            html.page-profile .stat-item {
min-width: 80px;
                padding: 10px 8px;
}
}



        html.page-profile .main-stats-row {
display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 15px;
            margin-top: 10px;
}

        html.page-profile .advanced-stats-row {
display: grid;
            grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
            gap: 10px;
            margin-top: 20px;
}

        html.page-profile .advanced-stats-row .stat-item {
padding: 10px 8px;
            min-width: 0;
}

        html.page-profile .advanced-stats-row .stat-label {
font-size: 0.65rem;
}

        html.page-profile .advanced-stats-row .stat-value {
font-size: 1rem;
}

        html.page-profile .advanced-stats-toggle {
text-align: center;
            margin-top: 35px;
            margin-bottom: 20px;
}

        html.page-profile .advanced-toggle-btn {
background: none;
            border: none;
            color: #00d4ff;
            font-family: "Inter", sans-serif;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
}

        html.page-profile .advanced-toggle-btn:hover {
color: #ffffff;
}

    /* New Styles */
    html.page-profile .playlist-header {
display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 10px;
}

    html.page-profile .playlist-header .playlist-name {
margin-bottom: 0;
        font-size: 1.6rem;
}

    html.page-profile .playlist-header .playlist-matches {
color: #8892b0;
        font-size: 0.8rem;
        font-weight: 600;
}

    /* Category Color Coding */
    html.page-profile .playlist-header.solos {
border-bottom: 2px solid rgba(255, 255, 0, 0.7); /* Yellow */
}

    html.page-profile .playlist-header.duos {
border-bottom: 2px solid rgba(0, 255, 0, 0.7); /* Green */
}

    html.page-profile .playlist-header.trios {
border-bottom: 2px solid rgba(255, 0, 255, 0.7); /* Magenta */
}

    html.page-profile .playlist-header.squads {
border-bottom: 2px solid rgba(0, 255, 255, 0.7); /* Cyan */
}

    html.page-profile .playlist-header.ltm {
border-bottom: 2px solid rgba(255, 165, 0, 0.7); /* Orange */
}

    html.page-profile .playlist-header.overall {
border-bottom: 3px solid rgba(0, 212, 255, 0.9);
}

    html.page-profile .playlist-card.overall-card {
background: rgba(40, 44, 52, 0.9);
        border: 2px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

    html.page-profile .playlist-card.overall-card .playlist-name {
font-size: 1.7rem;
        color: #00d4ff;
}

    html.page-profile .playlist-card.overall-card .stat-value {
font-size: 1.35rem;
        color: #00d4ff;
}

    html.page-profile .category-icon {
width: 20px;
        height: 20px;
        vertical-align: middle;
        margin-left: 8px;
        margin-bottom: 4px;
        opacity: 0.9;
        filter: brightness(0) saturate(100%) invert(65%) sepia(80%) saturate(500%) hue-rotate(160deg) brightness(110%);
        flex-shrink: 0;
}

    html.page-profile .playlist-card.overall-card .category-icon {
width: 24px;
        height: 24px;
        opacity: 1;
        filter: brightness(0) saturate(100%) invert(65%) sepia(80%) saturate(500%) hue-rotate(160deg) brightness(110%);
}

    html.page-profile .playlist-header-inner {
display: flex;
        align-items: center;
        justify-content: space-between;
}

    html.page-profile .playlist-name-row {
display: flex;
        align-items: center;
        gap: 0;
        flex-grow: 1;
}

    html.page-profile .category-icon {
width: 20px;
        height: 20px;
        vertical-align: middle;
        margin-left: 8px;
        margin-right: 8px;
        margin-bottom: 4px;
        opacity: 0.9;
        filter: brightness(0) saturate(100%) invert(65%) sepia(80%) saturate(500%) hue-rotate(160deg) brightness(110%);
        flex-shrink: 0;
}

    html.page-profile .playlist-card.overall-card .category-icon {
width: 24px;
        height: 24px;
        margin-right: 8px;
        opacity: 1;
        filter: brightness(0) saturate(100%) invert(65%) sepia(80%) saturate(500%) hue-rotate(160deg) brightness(110%);
}



        /* Rank Section Styles */
        html.page-profile .rank-section {
margin: 25px 0;
            background: rgba(40, 44, 52, 0.9);
            border-radius: 15px;
            padding: 20px;
            border: 2px solid rgba(0, 212, 255, 0.2);
}

        html.page-profile .rank-section-title {
color: #00d4ff;
            font-family: "Burbank Big Condensed", sans-serif;
            font-size: 1.4rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-align: center;
            margin-bottom: 20px;
            font-weight: 700;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

        /* Rank Bars Styles */
        html.page-profile .rank-bars-container {
display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
            align-items: center;
}

        html.page-profile .rank-item {
display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            background: rgba(40, 44, 52, 0.9);
            padding: 12px;
            border-radius: 10px;
            border: 2px solid rgba(0, 212, 255, 0.2);
            transition: all 0.3s ease;
            min-width: 120px;
            position: relative;
}

        html.page-profile .rank-item:hover {
border-color: rgba(0, 212, 255, 0.4);
            transform: translateY(-2px);
}

        html.page-profile .rank-icon-wrapper {
position: relative;
            width: 56px;
            height: 56px;
            display: flex;
            align-items: center;
            justify-content: center;
}

        html.page-profile .rank-progress-svg {
position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            transform: rotate(-90deg);
            pointer-events: none;
}

        html.page-profile .rank-progress-bg {
fill: none;
            stroke: rgba(255, 255, 255, 0.1);
            stroke-width: 3;
}

        html.page-profile .rank-progress-fill {
fill: none;
            stroke: #00d4ff;
            stroke-width: 3;
            stroke-linecap: round;
            transition: stroke-dashoffset 1s ease;
}

        html.page-profile .rank-image {
width: 42px;
            height: 42px;
            object-fit: contain;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
            z-index: 1;
}

        html.page-profile .rank-tooltip {
position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(-10px);
            background: rgba(10, 12, 18, 0.95);
            color: #fff;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 0.75rem;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(0, 212, 255, 0.3);
            z-index: 100;
            pointer-events: none;
}

        html.page-profile .rank-card:hover .rank-tooltip, html.page-profile .rank-item:hover .rank-tooltip {
opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(-5px);
}

        html.page-profile .rank-card {
display: flex;
            align-items: center;
            background: rgba(30, 34, 42, 0.7);
            padding: 15px 20px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
            position: relative;
}

        html.page-profile .rank-card:hover {
background: rgba(40, 44, 52, 0.9);
            border-color: rgba(0, 212, 255, 0.3);
            transform: translateY(-2px);
}

        html.page-profile .rank-label {
font-size: 0.75rem;
            color: #8892b0;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-align: center;
            line-height: 1.2;
}

        html.page-profile .rank-progress {
font-size: 0.7rem;
            color: #00d4ff;
            font-weight: 500;
            text-align: center;
}

        html.page-profile .rank-item.crown-jam-special {
border-color: #ffd700;
            background: linear-gradient(135deg, rgba(40, 44, 52, 0.9) 0%, rgba(45, 42, 30, 0.9) 100%);
            position: relative;
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
            border-width: 3px;
}

        html.page-profile .rank-item.crown-jam-special:hover {
border-color: #ffd700;
            box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
}

        html.page-profile .rank-item .ltm-badge {
position: absolute;
            top: -8px;
            right: -8px;
            background: #ffd700;
            color: #1a1a2e;
            font-family: "Burbank Big Condensed", sans-serif;
            font-weight: 900;
            font-size: 0.65rem;
            padding: 3px 8px;
            border-radius: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.4);
            z-index: 2;
}

        html.page-profile .rank-loading {
text-align: center;
            color: #8892b0;
            font-size: 0.8rem;
            padding: 20px;
}

        /* Match History Styles */
        html.page-profile .match-history-section {
margin: 25px 0;
            background: rgba(45, 55, 72, 0.95);
            border-radius: 15px;
            padding: 25px;
            border: none;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
}

        html.page-profile .match-history-section:hover {
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

        html.page-profile .mh-empty {
color: #8892b0;
            padding: 40px;
            text-align: center;
            background: rgba(30, 35, 45, 0.8);
            border-radius: 12px;
            margin-top: 10px;
}

        html.page-profile .mh-list {
display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 12px;
}

        html.page-profile .mh-row {
display: flex;
            align-items: center;
            gap: 16px;
            background: rgba(30, 35, 50, 0.85);
            border-radius: 10px;
            padding: 12px 18px;
            border: 1px solid rgba(255,255,255,0.06);
            transition: background 0.2s;
}

        html.page-profile .mh-row:hover {
background: rgba(40, 48, 65, 0.95);
}

        html.page-profile .mh-result-col {
min-width: 130px;
}

        html.page-profile .mh-badge {
display: inline-block;
            padding: 4px 12px;
            border-radius: 6px;
            font-weight: 700;
            font-size: 0.82rem;
            letter-spacing: 0.03em;
            text-transform: uppercase;
}

        html.page-profile .mh-win {
background: rgba(52, 211, 153, 0.2);
            color: #34d399;
            border: 1px solid rgba(52, 211, 153, 0.4);
}

        html.page-profile .mh-defeat {
background: rgba(239, 68, 68, 0.15);
            color: #f87171;
            border: 1px solid rgba(239, 68, 68, 0.3);
}

        html.page-profile .mh-top {
background: rgba(99, 179, 237, 0.15);
            color: #63b3ed;
            border: 1px solid rgba(99, 179, 237, 0.3);
}

        html.page-profile .mh-multi {
background: rgba(160, 174, 192, 0.12);
            color: #a0aec0;
            border: 1px solid rgba(160, 174, 192, 0.25);
}

        html.page-profile .mh-info-col {
flex: 1;
            display: flex;
            flex-direction: column;
            gap: 2px;
}

        html.page-profile .mh-gamemode {
font-size: 0.95rem;
            font-weight: 600;
            color: #e2e8f0;
}

        html.page-profile .mh-time {
font-size: 0.78rem;
            color: #718096;
}

        html.page-profile .mh-device-col {
display: flex;
            align-items: center;
}

        html.page-profile .mh-input-icon {
width: 22px;
            height: 22px;
            filter: brightness(0) saturate(100%) invert(65%) sepia(20%) saturate(400%) hue-rotate(180deg);
            opacity: 0.7;
}

        html.page-profile .mh-stat-col {
display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 60px;
}

        html.page-profile .mh-stat-val {
font-size: 1rem;
            font-weight: 700;
            color: #e2e8f0;
}

        html.page-profile .mh-stat-lbl {
font-size: 0.72rem;
            color: #718096;
            text-transform: uppercase;
            letter-spacing: 0.04em;
}

        @media (max-width: 600px) {
html.page-profile .mh-row {
flex-wrap: wrap;
                gap: 10px;
                padding: 12px 14px;
                position: relative;
}
            
            html.page-profile .mh-result-col {
min-width: unset;
                flex: 0 0 calc(100% - 32px);
                padding-right: 32px;
}
            
            html.page-profile .mh-info-col {
flex: 0 0 100%;
}
            
            html.page-profile .mh-device-col {
position: absolute;
                top: 12px;
                right: 14px;
}
            
            html.page-profile .mh-stat-col {
min-width: 50px;
                flex: 1;
                align-items: center;
                justify-content: center;
}
}

        @media (max-width: 768px) {
body.page-profile {
padding-bottom: 90px !important;
}

            html.page-profile .rank-section {
margin: 20px 0;
                padding: 15px;
}

            html.page-profile .rank-section-title {
font-size: 1.2rem;
                margin-bottom: 15px;
}

            html.page-profile .rank-bars-container {
gap: 10px;
}

            html.page-profile .rank-item {
min-width: 100px;
                padding: 10px;
}

            html.page-profile .rank-image {
width: 40px;
                height: 40px;
}
}

/* Bottom Navigation Bar - Mobile Only */
html.page-profile .bottom-nav {
position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 12, 18, 0.9);
    backdrop-filter: blur(20px);
    height: 70px;
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 10px;
}

@media (max-width: 768px) {
body.page-profile {
padding-bottom: 90px !important;
}
    html.page-profile .bottom-nav {
display: flex;
}
    html.page-profile .navbar {
display: none;
}
    body.page-profile {
padding-bottom: 70px;
}
}

html.page-profile .bottom-nav-item {
display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 10px; font-weight: 500; gap: 4px; transition: all 0.2s ease; cursor: pointer; border: none; background: none; padding: 0; width: 20%;
}

html.page-profile .bottom-nav-item svg {
width: 24px;
    height: 24px;
    stroke-width: 2;
}

html.page-profile .bottom-nav-item.active {
color: #00d4ff;
}

html.page-profile .bottom-nav-item:hover {
color: #ffffff;
}

/* More Popup */
html.page-profile .more-popup-overlay {
position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

html.page-profile .more-popup-overlay.show {
display: flex;
    opacity: 1;
}

html.page-profile .more-popup {
background: #1a1f2e;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 24px 24px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html.page-profile .more-popup-overlay.show .more-popup {
transform: translateY(0);
}

html.page-profile .more-option {
display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

html.page-profile .more-option:hover {
background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

html.page-profile .more-popup h2 {
font-family: "Burbank Big Condensed", sans-serif !important;
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-transform: uppercase;
}
        html.page-profile .stats-header-container {
display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-bottom: 25px;
            padding-bottom: 15px;
            position: relative;
}

        @media (max-width: 768px) {
html.page-profile .stats-header-container {
gap: 20px;
}
            html.page-profile #seasonalToggle {
position: static !important;
                transform: none !important;
                width: 100%;
                margin-top: 10px;
}
}
        html.page-profile .loading-spinner-container {
display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px;
            gap: 15px;
}

        html.page-profile .loading-spinner {
width: 40px;
            height: 40px;
            border: 3px solid rgba(0, 212, 255, 0.1);
            border-radius: 50%;
            border-top-color: #00d4ff;
            animation: spin 1s ease-in-out infinite;
}

        

        html.page-profile .loading-text {
color: #8892b0;
            font-size: 0.9rem;
            font-weight: 500;
}
