/* Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #001530;
    --bg-nav: #001530;
    --text-primary: #ffffff;
    --text-secondary: #b0b9c5;
    --accent: #ff6b00;
    --accent-hover: #ff8124;
    --button-text: #000000;
    --border-color: #0a3665;
    --highlight-color: #00a0ff;
    --online-indicator: #30c34a;
    --glow-color: #00a0ff;
    --sidebar-width: 200px;
    --sidebar-collapsed-width: 70px;
    --sidebar-bg: rgba(0, 21, 48, 0.95);
    --sidebar-hover: rgba(0, 160, 255, 0.1);
    --submenu-bg: rgba(0, 21, 48, 0.98);
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 400;
    /* Intense blue radial glow effect covering the entire page */
    background-image: radial-gradient(circle at 50% 50%, 
        rgba(0, 160, 255, 0.4) 0%, 
        rgba(0, 160, 255, 0.3) 20%, 
        rgba(0, 160, 255, 0.2) 40%,
        rgba(0, 160, 255, 0.1) 60%,
        rgba(0, 160, 255, 0.05) 80%,
        transparent 100%);
}

body {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-width);
}

/* Desktop Top Navbar (transparent) */
.desktop-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: transparent;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.navbar-logo {
    pointer-events: all;
    margin-top: 0px;
}

.navbar-logo a {
    display: block;
    text-decoration: none;
}

.navbar-logo img {
    margin-top: 50px;
    height: 100px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 160, 255, 0.3));
    transition: all 0.3s ease;
}

.navbar-logo a:hover img {
    filter: drop-shadow(0 0 15px rgba(0, 160, 255, 0.5));
    transform: scale(1.05);
}

/* Online Counter (top right) */
.online-counter-top {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(13, 27, 42, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 160, 255, 0.2);
    border-radius: 25px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    font-size: 14px;
    color: var(--text-secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.online-counter-top .online-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.online-counter-top .online-text {
    font-weight: 500;
    color: var(--text-primary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 10px 0 10px; /* Top padding to avoid navbar logo */
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========== SIDEBAR NAVIGATION ========== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 160, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 0 50px rgba(0, 160, 255, 0.1),
        0 0 100px rgba(0, 160, 255, 0.05);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-toggle {
    position: absolute;
    top: 20px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 0, 0.3);
    z-index: 1001;
}

.sidebar-toggle:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4);
}

.sidebar-toggle i {
    color: var(--button-text);
    font-size: 14px;
    transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

/* Logo Section */
.sidebar-logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 160, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-logo a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.sidebar-logo a:hover {
    transform: scale(1.05);
}

.logo-full {
    width: 100%;
    
    transition: opacity 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 160, 255, 0.3));
}

.logo-mini {
    height: 40px;
    opacity: 0;
    position: absolute;
    transition: opacity 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 160, 255, 0.3));
}

.sidebar.collapsed .logo-full {
    opacity: 0;
}

.sidebar.collapsed .logo-mini {
    opacity: 1;
    position: static;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 0 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 160, 255, 0.3);
    border-radius: 3px;
}

.nav-item {
    position: relative;
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 160, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: var(--sidebar-hover);
    color: var(--highlight-color);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 160, 255, 0.2);
}

.nav-link i:first-child {
    font-size: 18px;
    width: 20px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.nav-link:hover i:first-child {
    color: var(--accent);
    transform: scale(1.1);
}

.nav-text {
    font-weight: 500;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
}

.submenu-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: all 0.3s ease;
}

.sidebar.collapsed .submenu-arrow {
    opacity: 0;
}

.has-submenu:hover .submenu-arrow {
    transform: rotate(90deg);
    color: var(--accent);
}

.has-submenu:hover .nav-link {
    background: var(--sidebar-hover);
    color: var(--highlight-color);
}

/* Submenus */
.submenu {
    position: fixed;
    left: var(--sidebar-width);
    top: 0;
    bottom: 0;
    width: 250px;
    background: var(--submenu-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 160, 255, 0.2);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 0 50px rgba(0, 160, 255, 0.1),
        0 0 100px rgba(0, 160, 255, 0.05);
    z-index: 1002;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
}

.submenu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

.sidebar.collapsed .submenu {
    left: var(--sidebar-collapsed-width);
}

/* Submenu Header */
.submenu-header {
    padding: 20px 25px 15px 25px;
    border-bottom: 1px solid rgba(0, 160, 255, 0.2);
    margin-bottom: 10px;
}

.submenu-header h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-align: left;
}



.submenu-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    border-radius: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 160, 255, 0.1);
}

.submenu-item:last-child {
    border-bottom: none;
}

.submenu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 160, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.submenu-item:hover::before {
    left: 100%;
}

.submenu-item:hover {
    background: var(--sidebar-hover);
    color: var(--highlight-color);
    transform: translateX(0);
    box-shadow: inset 3px 0 0 var(--accent);
}

.submenu-item i {
    font-size: 18px;
    width: 25px;
    margin-right: 15px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.submenu-item:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

/* Bottom Section */
.sidebar-bottom {
    padding: 20px;
    border-top: 1px solid rgba(0, 160, 255, 0.1);
}



/* User Section */
.user-section {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(0, 160, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 160, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(0, 160, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 160, 255, 0.2);
}

.user-section.has-submenu:hover .user-info {
    background: rgba(0, 160, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 160, 255, 0.2);
}

.user-section.has-submenu:hover .submenu-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

.user-avatar i {
    color: var(--button-text);
    font-size: 18px;
}

.user-details {
    flex: 1;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .user-details {
    opacity: 0;
}

.username {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.user-status {
    font-size: 12px;
    color: var(--online-indicator);
}

.user-submenu {
    position: absolute;
    bottom: 100%;
    top: auto;
    left: 0;
    right: 0;
    margin-bottom: 10px;
    width: auto;
    min-width: 200px;
    background: var(--submenu-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 160, 255, 0.2);
    border-radius: 12px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 160, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 1003;
}

.user-submenu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.user-submenu .submenu-item {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    margin: 2px 8px;
    border-bottom: none;
}

.user-submenu .submenu-item:hover {
    background: var(--sidebar-hover);
    color: var(--highlight-color);
    transform: translateX(0);
    box-shadow: 0 2px 10px rgba(0, 160, 255, 0.2);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.login-btn {
    background: var(--accent);
    color: var(--button-text);
    border-color: var(--accent);
}

.login-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 0, 0.3);
}

.signup-btn {
    background: transparent;
    color: var(--text-primary);
    border-color: rgba(0, 160, 255, 0.3);
}

.signup-btn:hover {
    background: rgba(0, 160, 255, 0.1);
    border-color: var(--highlight-color);
    color: var(--highlight-color);
}

.auth-btn i {
    margin-right: 8px;
    font-size: 16px;
}

.sidebar.collapsed .btn-text {
    display: none;
}

.sidebar.collapsed .auth-btn i {
    margin-right: 0;
}

/* Mobile Header */
.mobile-header {
    display: none;
    height: 60px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 160, 255, 0.2);
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 160, 255, 0.1);
    color: var(--highlight-color);
}

.mobile-logo img {
    height: 35px;
}

.mobile-user, .mobile-login {
    color: var(--text-primary);
    font-size: 20px;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-user:hover, .mobile-login:hover {
    background: rgba(0, 160, 255, 0.1);
    color: var(--highlight-color);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(0, 21, 48, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99;
    transform: translateX(-100%);
    transition: transform 0.3s;
    box-shadow: 0 0 50px rgba(0, 160, 255, 0.2);
    padding: 0 10px;
    overflow-x: hidden;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu a:hover {
    background: rgba(255, 107, 0, 0.1);
}

.mobile-menu-section {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.mobile-menu-title {
    font-weight: 600;
    color: var(--accent);
    padding: 15px 20px 5px 20px;
    font-size: 16px;
}

.mobile-menu-section a {
    padding-left: 40px;
    font-size: 16px;
}

/* Main Content - PRESERVED STYLES */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0px 0 0 0; /* Increased top padding to avoid navbar logo */
}

/* Ensure all main content has proper spacing from navbar */
body {
    padding-top: 80px; /* Global top padding for navbar */
}

/* Specific adjustments for pages with containers */
.purchase-container,
.marketplace-container,
.tournament-container,
.profile-container,
.admin-container {
    margin-top: 40px; /* Additional spacing for specific containers */
}

/* Hero Section - PRESERVED STYLES */
.hero-section {
    text-align: center;
    margin-bottom: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-content h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Action Buttons - PRESERVED STYLES */
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 0 15px;
    justify-content: center;
    margin: 5px auto 40px;
}

.action-button {
    flex: 1;
    max-width: 180px;
    min-width: 140px;
    padding: 12px 8px;
    font-size: 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.primary-button {
    background-color: var(--accent);
    color: var(--button-text);
    border: none;
    /* Intense blue rim light from the light source */
    box-shadow: 0 0 30px rgba(0, 160, 255, 0.5), 0 0 60px rgba(0, 160, 255, 0.3);
    transition: all 0.3s ease;
}

.secondary-button {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    /* Strong blue glow */
    box-shadow: 0 0 25px rgba(0, 160, 255, 0.4), 0 0 50px rgba(0, 160, 255, 0.2);
    transition: all 0.3s ease;
}

.primary-button:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 50px rgba(0, 160, 255, 0.7), 0 0 100px rgba(0, 160, 255, 0.5);
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 40px rgba(0, 160, 255, 0.6), 0 0 80px rgba(0, 160, 255, 0.4);
}

/* Chess Board - PRESERVED STYLES */
.chess-board-container {
    position: relative;
    margin: 20px auto;
    max-width: 700px;
    width: 100%;
    padding: 0 10px;
    overflow: hidden;
    
}

.chess-board-wrapper {
    margin-left: 15%;
    position: relative;
    width: 80%;
    overflow: hidden;
    background-color:rgba(255, 255, 255, 0);
}

/* Blue circular light source behind the image */
.blue-light-source {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, 
        rgba(0, 160, 255, 0.9) 0%,
        rgba(0, 160, 255, 0.7) 15%,
        rgba(0, 160, 255, 0.5) 30%,
        rgba(0, 160, 255, 0.3) 45%,
        rgba(0, 160, 255, 0.2) 60%,
        rgba(0, 160, 255, 0.1) 75%,
        transparent 100%
    );
    border-radius: 50%;
    z-index: -1;
    /* Much more intense shadow layers for dramatic spread effect */
    box-shadow: 
        0 0 100px 50px rgba(0, 160, 255, 0.6),
        0 0 200px 100px rgba(0, 160, 255, 0.4),
        0 0 400px 200px rgba(0, 160, 255, 0.3),
        0 0 600px 300px rgba(0, 160, 255, 0.25),
        0 0 800px 400px rgba(0, 160, 255, 0.2),
        0 0 1000px 500px rgba(0, 160, 255, 0.15),
        0 0 1200px 600px rgba(0, 160, 255, 0.1);
    animation: pulseBlueLight 3s ease-in-out infinite alternate;
}

/* More dramatic pulsing animation for the blue light */
@keyframes pulseBlueLight {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* Secondary atmospheric light layer for even more dramatic effect */
.blue-light-atmosphere {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1000px;
    height: 1000px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, 
        transparent 0%,
        transparent 30%,
        rgba(0, 160, 255, 0.15) 40%,
        rgba(0, 160, 255, 0.1) 60%,
        rgba(0, 160, 255, 0.05) 80%,
        transparent 100%
    );
    border-radius: 50%;
    z-index: -2;
    /* Atmospheric glow that extends beyond the main light */
    box-shadow: 
        0 0 300px 150px rgba(0, 160, 255, 0.2),
        0 0 500px 250px rgba(0, 160, 255, 0.15),
        0 0 800px 400px rgba(0, 160, 255, 0.1),
        0 0 1200px 600px rgba(0, 160, 255, 0.08);
    animation: pulseAtmosphere 5s ease-in-out infinite alternate;
}

/* Slower, more subtle animation for atmospheric layer */
@keyframes pulseAtmosphere {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

.chess-board {
    width: 80%;
    display: block;
    transform: perspective(1000px) rotateX(15deg);
    position: relative;
    z-index: 1;
    background-color:rgba(255, 255, 255, 0);
}

.board-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--glow-color);
    box-shadow: 
        0 0 10px 2px var(--glow-color),
        0 0 20px 5px rgba(0, 160, 255, 0.5);
}

/* View Mode Switcher - PRESERVED STYLES */
.view-modes {
    position: absolute;
    top: 20px;
    right: 70px;
    display: flex;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 5px;
    z-index: 10;
}

.view-mode {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-primary);
}

.view-mode.active {
    background-color: var(--accent);
    color: var(--button-text);
}

/* Feature Cards - PRESERVED STYLES */
.feature-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 60px auto 40px;
    gap: 20px;
}

.feature-card {
    background-color: rgba(0, 21, 48, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    width: calc(25% - 20px);
    min-width: 220px;
    /* Strong blue glow from the light source */
    box-shadow: 0 0 40px rgba(0, 160, 255, 0.3), 0 0 80px rgba(0, 160, 255, 0.2);
    transition: box-shadow 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 0 60px rgba(0, 160, 255, 0.5), 0 0 120px rgba(0, 160, 255, 0.3);
}

.feature-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 30px;
}

.orange-icon {
    background-color: var(--accent);
    color: var(--button-text);
    /* Intense blue rim light effect */
    box-shadow: 0 0 30px rgba(0, 160, 255, 0.6), 0 0 60px rgba(0, 160, 255, 0.4);
}

.blue-icon {
    background-color: var(--highlight-color);
    color: var(--text-primary);
    /* Very intense glow for blue icons */
    box-shadow: 0 0 40px rgba(0, 160, 255, 0.8), 0 0 80px rgba(0, 160, 255, 0.6);
}

.icon {
    font-size: 32px;
}

/* Icon images styling */
.icon-image {
    width: 78%;
    height: 78%;
    object-fit: contain;
    filter: brightness(0) invert(0); /* Makes icons white by default */
    transition: filter 0.3s ease;
}

/* Orange icon containers - make icons black */
.orange-icon .icon-image {
   /* filter: brightness(0); /* Makes icons black for orange backgrounds */
}

/* Blue icon containers - keep icons white */
.blue-icon .icon-image {
    /*filter: brightness(0) invert(1); /* Keeps icons white for blue backgrounds */
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Sponsors Carousel */
.sponsors-section {
    padding: 60px 0;
    background: rgba(13, 27, 42, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 160, 255, 0.1);
    border-bottom: 1px solid rgba(0, 160, 255, 0.1);
    margin-top: 40px;
    overflow: hidden;
}

.sponsors-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sponsors-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.sponsors-track {
    display: flex;
    animation: scroll-sponsors 30s linear infinite;
    width: calc(200px * 12); /* 6 sponsors * 2 (duplicated) * width */
}

.sponsor-banner {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    margin-top: 30px;
    margin-left: 30px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(0, 159, 252, 0.5), 0 0 40px rgba(0, 160, 255, 0.3);
}

.sponsor-banner:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 160, 255, 0.4);
    
}

.sponsor-banner img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: brightness(0.8) contrast(1.2);
    transition: all 0.3s ease;
}

.sponsor-banner:hover img {
    filter: brightness(1) contrast(1.2);
    transform: scale(1.05);
}

@keyframes scroll-sponsors {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 6 - 240px)); /* Move by half the width (6 sponsors + margins) */
    }
}

/* Pause animation on hover */
.sponsors-carousel:hover .sponsors-track {
    animation-play-state: paused;
}

/* Footer - PRESERVED STYLES */
.footer {
    background-color: transparent;
    padding: 20px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}



@media (max-width: 700px) {
    

    body {
        margin-left: 0;
        padding-top: 60px; /* Mobile header height */
    }
    
    body.sidebar-collapsed {
        margin-left: 0;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 50%;
        min-width: 100px;
        max-width: 50%;
        z-index: 1001;
        top: 60px;
        height: calc(100vh - 60px);
        border-radius: 0 15px 15px 0;
        box-shadow: 
            0 0 50px rgba(0, 160, 255, 0.2),
            0 0 100px rgba(0, 160, 255, 0.1);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    .sidebar.collapsed.mobile-open {
        transform: translateX(-100%);
    }
    
    .mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: var(--sidebar-bg);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 160, 255, 0.2);
        padding: 0 20px;
        align-items: center;
        justify-content: space-between;
        z-index: 1002;
        box-shadow: 0 2px 10px rgba(0, 160, 255, 0.1);
    }
    
    .mobile-header .mobile-menu-toggle {
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 20px;
        cursor: pointer;
        padding: 8px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .mobile-header .mobile-menu-toggle:hover {
        background: rgba(0, 160, 255, 0.1);
        color: var(--highlight-color);
    }
    
    .mobile-header .mobile-logo {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .mobile-header .mobile-logo img {
        height: 35px;
        filter: drop-shadow(0 0 10px rgba(0, 160, 255, 0.3));
    }
    
    .mobile-header .mobile-user, 
    .mobile-header .mobile-login {
        color: var(--text-primary);
        font-size: 20px;
        text-decoration: none;
        padding: 8px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .mobile-header .mobile-user:hover, 
    .mobile-header .mobile-login:hover {
        background: rgba(0, 160, 255, 0.1);
        color: var(--highlight-color);
    }
    
    .mobile-menu {
        display: none;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    /* Hide desktop navbar and online counter on mobile */
    .desktop-navbar {
        display: none;
    }
    
    .online-counter-top {
        display: none;
    }
    
    /* Adjust sidebar nav padding for mobile */
    .sidebar-nav {
        padding-top: 20px;
    }
    
    /* Mobile submenu adjustments */
    .submenu {
        left: 100%;
        width: calc(100vw - 280px);
        max-width: 350px;
        top: 60px;
        height: calc(100vh - 60px);
        border-radius: 0 15px 15px 0;
        padding-top: 20px;
    }
    
    /* User submenu specific adjustments for mobile */
    .user-submenu {
        position: fixed !important;
        bottom: 80px !important;
        left: 20px !important;
        top: auto !important;
        width: 200px !important;
        height: auto !important;
        max-height: 200px;
        border-radius: 15px !important;
        z-index: 1002 !important;
        background: var(--sidebar-bg) !important;
        backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(0, 160, 255, 0.2) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    }
    
    .sidebar.collapsed .submenu {
        left: 0;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
    }
    
    .sidebar.collapsed .user-submenu {
        left: 20px !important;
        transform: none !important;
        opacity: 0;
        visibility: hidden;
    }
    
    .sidebar.collapsed .user-submenu.show {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .sidebar.mobile-open .user-submenu.show {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Mobile overlay */
    .sidebar-overlay {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar.mobile-open + .sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }
    
    /* Reduce background glow intensity for mobile */
    html, body {
        background-image: radial-gradient(circle at 50% 50%, 
            rgba(0, 160, 255, 0.25) 0%, 
            rgba(0, 160, 255, 0.2) 20%, 
            rgba(0, 160, 255, 0.15) 40%,
            rgba(0, 160, 255, 0.08) 60%,
            rgba(0, 160, 255, 0.03) 80%,
            transparent 100%);
    }
    
    /* Reset container and content-area padding on mobile */
    .container {
        padding: 0 10px; /* Remove top padding on mobile */
    }
    
    .content-area {
        padding: 0px 0 0 0; /* Original mobile padding */
    }
    
    /* Reset specific container margins on mobile */
    .purchase-container,
    .marketplace-container,
    .tournament-container,
    .profile-container,
    .admin-container {
        margin-top: 20px; /* Reduced margin for mobile */
    }

    .hero-content h1 {
        font-size: 20px;
        padding: 0 15px;
    }

    .action-buttons {
        flex-direction: row;
        gap: 10px;
        padding: 0 15px;
        justify-content: center;
    }

    .action-button {
        flex: 1;
        max-width: 180px;
        min-width: 140px;
        padding: 12px 8px;
        font-size: 16px;
    }
    
    /* Reduce blue light effects for mobile performance */
    .blue-light-source {
        width: 400px;
        height: 400px;
        box-shadow: 
            0 0 60px 30px rgba(0, 160, 255, 0.4),
            0 0 120px 60px rgba(0, 160, 255, 0.3),
            0 0 200px 100px rgba(0, 160, 255, 0.2),
            0 0 300px 150px rgba(0, 160, 255, 0.15),
            0 0 400px 200px rgba(0, 160, 255, 0.1);
    }

    .blue-light-atmosphere {
        width: 600px;
        height: 600px;
        box-shadow: 
            0 0 150px 75px rgba(0, 160, 255, 0.15),
            0 0 250px 125px rgba(0, 160, 255, 0.1),
            0 0 350px 175px rgba(0, 160, 255, 0.08);
    }
    
    /* Reduce glow effects on mobile for better performance */
    .feature-card {
        box-shadow: 0 0 20px rgba(0, 160, 255, 0.2);
        margin: 0 15px;
        width: calc(100% - 30px);
    }

    .feature-card:hover {
        box-shadow: 0 0 30px rgba(0, 160, 255, 0.3);
    }

    .orange-icon {
        box-shadow: 0 0 15px rgba(0, 160, 255, 0.3);
    }

    .blue-icon {
        box-shadow: 0 0 20px rgba(0, 160, 255, 0.4);
    }

    /* Adjust icon images for mobile */
    .icon-image {
        width: 78%;
        height: 78%;
    }

    .primary-button {
        box-shadow: 0 0 20px rgba(0, 160, 255, 0.3);
    }

    .primary-button:hover {
        box-shadow: 0 0 30px rgba(0, 160, 255, 0.4);
    }

    .secondary-button {
        box-shadow: 0 0 15px rgba(0, 160, 255, 0.2);
    }

    .secondary-button:hover {
        box-shadow: 0 0 25px rgba(0, 160, 255, 0.3);
    }

    .feature-cards {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Mobile sponsors carousel */
    .sponsors-section {
        padding: 40px 0;
        margin-top: 20px;
    }
    
    .sponsors-title {
        font-size: 20px;
        margin-bottom: 30px;
        padding: 0 20px;
    }
    
    .sponsor-banner {
        width: 150px;
        height: 60px;
        margin: 0 10px;
    }
    
    .sponsors-track {
        width: calc(150px * 12); /* Adjusted for mobile width */
        animation-duration: 25s; /* Faster on mobile */
    }
    
    @keyframes scroll-sponsors {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-150px * 6 - 120px)); /* Adjusted for mobile */
        }
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .action-buttons {
        gap: 8px;
        padding: 0 10px;
    }

    .action-button {
        min-width: 120px;
        max-width: 160px;
        padding: 10px 6px;
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 18px;
        padding: 0 10px;
    }
    
    .sidebar {
        width: 100vw;
    }
    
    .sidebar.collapsed {
        width: 100vw;
    }
    
    /* User submenu adjustments for very small screens */
    .user-submenu {
        left: 10px !important;
        width: calc(100vw - 20px) !important;
        max-width: 250px !important;
        bottom: 70px !important;
    }
} 