:root {
            /* Default: Light Theme */
            --bg-base: #f1f5f9;
            --bg-sidebar: rgba(255, 255, 255, 0.82);
            --bg-card: rgba(255, 255, 255, 0.7);
            --bg-surface: rgba(255, 255, 255, 0.65);
            --border-color: rgba(99, 102, 241, 0.08);
            --text-primary: #0f172a;
            --text-secondary: #475569;
            
            --accent-cyan: #0ea5e9;
            --accent-purple: #8b5cf6;
            --accent-green: #10b981;
            --accent-red: #ef4444;
            --accent-orange: #f59e0b;
            --accent-teal: #0d9488;
            
            --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.08);
            --shadow-box: 0 10px 30px -5px rgba(0, 0, 0, 0.03), 0 5px 15px -3px rgba(0, 0, 0, 0.02);
            --shadow-primary: 0 10px 40px 0 rgba(0, 0, 0, 0.04);
            
            --bg-body-gradient: radial-gradient(circle at 5% 5%, rgba(99, 102, 241, 0.06) 0%, transparent 35%), radial-gradient(circle at 95% 95%, rgba(236, 72, 153, 0.06) 0%, transparent 35%), radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.04) 0%, transparent 50%), #f1f5f9;
            --bg-navbar: rgba(255, 255, 255, 0.85);
            --bg-stat-box: rgba(99, 102, 241, 0.04);
            --bg-input: #ffffff;
            --bg-badge-trial: #ecfdf5;
            --text-badge-trial: #10b981;
            --bg-sidebar-hover: rgba(99, 102, 241, 0.05);
            --bg-sidebar-active: rgba(99, 102, 241, 0.1);
            --text-sidebar-active: #4f46e5;
            
            --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

            /* Themed glows & borders - Light Mode */
            --glow-perf: 0 10px 30px -5px rgba(139, 92, 246, 0.08), 0 0 20px rgba(139, 92, 246, 0.04);
            --glow-ai: 0 10px 30px -5px rgba(6, 182, 212, 0.08), 0 0 20px rgba(6, 182, 212, 0.04);
            --glow-rank: 0 10px 30px -5px rgba(245, 158, 11, 0.08), 0 0 20px rgba(245, 158, 11, 0.04);
            --glow-streak: 0 10px 30px -5px rgba(16, 185, 129, 0.08), 0 0 20px rgba(16, 185, 129, 0.04);
            --glow-pvp: 0 10px 30px -5px rgba(239, 68, 68, 0.08), 0 0 20px rgba(239, 68, 68, 0.04);
            --glow-weak: 0 10px 30px -5px rgba(13, 148, 136, 0.08), 0 0 20px rgba(13, 148, 136, 0.04);
            --glow-recent: 0 10px 30px -5px rgba(99, 102, 241, 0.08), 0 0 20px rgba(99, 102, 241, 0.04);
            --glow-rankings: 0 10px 30px -5px rgba(124, 58, 237, 0.08), 0 0 20px rgba(124, 58, 237, 0.04);
            --glow-competitions: 0 10px 30px -5px rgba(219, 39, 119, 0.08), 0 0 20px rgba(219, 39, 119, 0.04);

            --border-perf: rgba(139, 92, 246, 0.12);
            --border-ai: rgba(6, 182, 212, 0.12);
            --border-rank: rgba(245, 158, 11, 0.12);
            --border-streak: rgba(16, 185, 129, 0.12);
            --border-pvp: rgba(239, 68, 68, 0.12);
            --border-weak: rgba(13, 148, 136, 0.12);
            --border-recent: rgba(99, 102, 241, 0.12);
            --border-rankings: rgba(124, 58, 237, 0.12);
            --border-competitions: rgba(219, 39, 119, 0.12);
            --bg-banner-complete: rgba(255, 255, 255, 0.95);
            --border-banner-complete: rgba(139, 92, 246, 0.15);
        }

        [data-theme="dark"] {
            /* Dark Theme */
            --bg-base: #030712;
            --bg-sidebar: rgba(11, 17, 30, 0.85);
            --bg-card: rgba(17, 24, 39, 0.45);
            --bg-surface: rgba(17, 24, 39, 0.5);
            --border-color: rgba(139, 92, 246, 0.1);
            --text-primary: #f9fafb;
            --text-secondary: #9ca3af;
            
            --accent-cyan: #06b6d4;
            --accent-purple: #8b5cf6;
            --accent-green: #10b981;
            --accent-red: #ef4444;
            --accent-orange: #f59e0b;
            --accent-teal: #0d9488;
            
            --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);
            --shadow-box: 0 15px 35px -5px rgba(0, 0, 0, 0.6);
            --shadow-primary: 0 20px 50px 0 rgba(0, 0, 0, 0.7);
            
            --bg-body-gradient: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 40%), radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.15) 0%, transparent 40%), radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%), #030712;
            --bg-navbar: rgba(11, 17, 30, 0.85);
            --bg-stat-box: rgba(255, 255, 255, 0.02);
            --bg-input: rgba(17, 24, 39, 0.6);
            --bg-badge-trial: rgba(16, 185, 129, 0.1);
            --text-badge-trial: #10b981;
            --bg-sidebar-hover: rgba(255, 255, 255, 0.04);
            --bg-sidebar-active: rgba(139, 92, 246, 0.16);
            --text-sidebar-active: #c084fc;

            /* Themed glows & borders - Dark Mode */
            --glow-perf: 0 15px 35px -5px rgba(139, 92, 246, 0.22), 0 0 25px rgba(139, 92, 246, 0.1);
            --glow-ai: 0 15px 35px -5px rgba(6, 182, 212, 0.22), 0 0 25px rgba(6, 182, 212, 0.1);
            --glow-rank: 0 15px 35px -5px rgba(245, 158, 11, 0.22), 0 0 25px rgba(245, 158, 11, 0.1);
            --glow-streak: 0 15px 35px -5px rgba(16, 185, 129, 0.22), 0 0 25px rgba(16, 185, 129, 0.1);
            --glow-pvp: 0 15px 35px -5px rgba(239, 68, 68, 0.22), 0 0 25px rgba(239, 68, 68, 0.15);
            --glow-weak: 0 15px 35px -5px rgba(13, 148, 136, 0.22), 0 0 25px rgba(13, 148, 136, 0.1);
            --glow-recent: 0 15px 35px -5px rgba(99, 102, 241, 0.22), 0 0 25px rgba(99, 102, 241, 0.1);
            --glow-rankings: 0 15px 35px -5px rgba(124, 58, 237, 0.22), 0 0 25px rgba(124, 58, 237, 0.1);
            --glow-competitions: 0 15px 35px -5px rgba(219, 39, 119, 0.22), 0 0 25px rgba(219, 39, 119, 0.1);

            --border-perf: rgba(139, 92, 246, 0.25);
            --border-ai: rgba(6, 182, 212, 0.25);
            --border-rank: rgba(245, 158, 11, 0.25);
            --border-streak: rgba(16, 185, 129, 0.25);
            --border-pvp: rgba(239, 68, 68, 0.25);
            --border-weak: rgba(13, 148, 136, 0.25);
            --border-recent: rgba(99, 102, 241, 0.25);
            --border-rankings: rgba(124, 58, 237, 0.25);
            --border-competitions: rgba(219, 39, 119, 0.25);
            --bg-banner-complete: rgba(15, 23, 42, 0.85);
            --border-banner-complete: rgba(255, 255, 255, 0.08);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Inter', sans-serif;
        }

        body {
            background: var(--bg-body-gradient);
            color: var(--text-primary);
            min-height: 100vh;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            transition: background 0.3s ease, color 0.3s ease;
        }

        h1, h2, h3, h4, .nav-logo {
            font-family: 'Outfit', sans-serif;
            font-weight: 700;
        }

        /* Loading Overlay */
        #global-loader {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: var(--bg-base);
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            gap: 20px;
            transition: opacity 0.5s ease;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(255, 255, 255, 0.1);
            border-top: 4px solid var(--accent-cyan);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        /* Glassmorphic Cards & Panels */
        .glass-panel {
            background: var(--bg-surface);
            border: 1px solid var(--border-color);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 20px;
            box-shadow: var(--shadow-box);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                        box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                        border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .glass-panel:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-primary);
        }

        /* Specific Color Themed Cards */
        .panel-perf {
            border-color: var(--border-perf) !important;
            background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(139, 92, 246, 0.03) 100%) !important;
        }
        .panel-perf:hover {
            box-shadow: var(--glow-perf) !important;
            border-color: var(--accent-purple) !important;
        }

        .panel-ai-score {
            border-color: var(--border-ai) !important;
            background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(6, 182, 212, 0.03) 100%) !important;
        }
        .panel-ai-score:hover {
            box-shadow: var(--glow-ai) !important;
            border-color: var(--accent-cyan) !important;
        }

        .panel-rank {
            border-color: var(--border-rank) !important;
            background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(245, 158, 11, 0.03) 100%) !important;
        }
        .panel-rank:hover {
            box-shadow: var(--glow-rank) !important;
            border-color: var(--accent-orange) !important;
        }

        .panel-streak {
            border-color: var(--border-streak) !important;
            background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(16, 185, 129, 0.03) 100%) !important;
        }
        .panel-streak:hover {
            box-shadow: var(--glow-streak) !important;
            border-color: var(--accent-green) !important;
        }

        .panel-pvp {
            border-color: var(--border-pvp) !important;
            background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(239, 68, 68, 0.03) 100%) !important;
        }
        .panel-pvp:hover {
            box-shadow: var(--glow-pvp) !important;
            border-color: var(--accent-red) !important;
        }

        /* Golden Metallic Premium Wallet Card */
        .panel-wallet {
            border: 1px solid rgba(245, 158, 11, 0.3) !important;
            background: linear-gradient(135deg, #ea580c 0%, #f59e0b 50%, #d97706 100%) !important;
            color: #ffffff !important;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(245, 158, 11, 0.25) !important;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }
        .panel-wallet::before {
            content: '';
            position: absolute;
            top: -20%; left: -20%;
            width: 140%; height: 140%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
            z-index: 1;
            pointer-events: none;
        }
        .panel-wallet:hover {
            transform: translateY(-4px) scale(1.01) !important;
            box-shadow: 0 15px 35px rgba(245, 158, 11, 0.45) !important;
            border-color: rgba(255, 255, 255, 0.6) !important;
        }
        .panel-wallet .coin-balance-title, .panel-wallet .coin-balance-val {
            color: #ffffff !important;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        .panel-wallet .coin-topup-btn {
            background: rgba(255, 255, 255, 0.2) !important;
            border: 1px solid rgba(255, 255, 255, 0.4) !important;
            color: #ffffff !important;
            backdrop-filter: blur(5px);
            font-weight: 700;
        }
        .panel-wallet .coin-topup-btn:hover {
            background: #ffffff !important;
            color: #ea580c !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .panel-weak {
            border-color: var(--border-weak) !important;
            background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(13, 148, 136, 0.03) 100%) !important;
        }
        .panel-weak:hover {
            box-shadow: var(--glow-weak) !important;
            border-color: var(--accent-teal) !important;
        }

        .panel-recent {
            border-color: var(--border-recent) !important;
            background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(99, 102, 241, 0.03) 100%) !important;
        }
        .panel-recent:hover {
            box-shadow: var(--glow-recent) !important;
            border-color: var(--accent-purple) !important;
        }

        .panel-rankings {
            border-color: var(--border-rankings) !important;
            background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(124, 58, 237, 0.03) 100%) !important;
        }
        .panel-rankings:hover {
            box-shadow: var(--glow-rankings) !important;
            border-color: var(--accent-purple) !important;
        }

        .panel-competitions {
            border-color: var(--border-competitions) !important;
            background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(219, 39, 119, 0.03) 100%) !important;
        }
        .panel-competitions:hover {
            box-shadow: var(--glow-competitions) !important;
            border-color: #db2777 !important;
        }

        /* Auth Screen Styling */
        .auth-container {
            display: flex;
            min-height: 100vh;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .auth-card {
            width: 100%;
            max-width: 480px;
            padding: 40px;
            position: relative;
            overflow: hidden;
        }

        .auth-card::before {
            content: '';
            position: absolute;
            top: -50%; left: -50%;
            width: 200%; height: 200%;
            background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
            z-index: -1;
        }

        .auth-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .auth-title {
            font-size: 2.2rem;
            background: linear-gradient(135deg, #ffffff, var(--accent-cyan));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 5px;
        }

        .auth-subtitle {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .input-group {
            margin-bottom: 20px;
        }

        .input-label {
            display: block;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .input-field {
            width: 100%;
            background: var(--bg-input);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            padding: 12px 16px;
            border-radius: 10px;
            font-size: 0.95rem;
            outline: none;
            transition: var(--transition);
        }

        .input-field:focus {
            border-color: var(--accent-cyan);
            box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
            color: #ffffff;
            border: none;
            padding: 14px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
        }

        .btn:hover {
            transform: translateY(-2px);
            opacity: 0.95;
            box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
        }

        .btn-secondary {
            background: var(--bg-stat-box);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            box-shadow: none;
        }

        .btn-secondary:hover {
            background: var(--border-color);
            color: var(--text-primary);
            box-shadow: none;
        }

        .auth-footer {
            margin-top: 25px;
            text-align: center;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .auth-link {
            color: var(--accent-cyan);
            text-decoration: none;
            font-weight: 600;
        }

        .auth-link:hover {
            text-decoration: underline;
        }

        /* App Layout Redesign */
        .app-wrapper {
            display: none;
            flex: 1;
            flex-direction: row;
            background: var(--bg-base);
            min-height: 100vh;
        }

        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-width: 0; /* Prevents flex children from stretching */
            background: var(--bg-base);
        }

        /* Sidebar Redesign */
        .sidebar {
            width: 280px;
            background: var(--bg-sidebar);
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            height: 100vh;
            position: sticky;
            top: 0;
            z-index: 101;
            transition: var(--transition);
            flex-shrink: 0;
        }

        .sidebar-brand {
            padding: 24px;
            display: flex;
            align-items: center;
            gap: 12px;
            border-bottom: 1px solid var(--border-color);
        }

        .sidebar-logo-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Outfit', sans-serif;
            font-weight: 800;
            font-size: 1.25rem;
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
        }

        .sidebar-logo-text {
            font-family: 'Outfit', sans-serif;
            font-size: 1.35rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-purple) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .sidebar-menu {
            flex: 1;
            padding: 24px 16px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            overflow-y: auto;
        }

        .sidebar-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: 12px;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.92rem;
            font-weight: 500;
            transition: var(--transition);
            cursor: pointer;
        }

        .sidebar-item:hover {
            color: var(--text-primary);
            background: var(--bg-sidebar-hover);
        }

        .sidebar-item.active {
            color: var(--text-sidebar-active);
            background: var(--bg-sidebar-active);
            font-weight: 600;
        }

        .sidebar-item-icon {
            font-size: 1.15rem;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 20px;
        }

        /* Sidebar AI Assistant Card */
        .sidebar-ai-card {
            margin: 16px;
            padding: 16px;
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
            border: 1px solid rgba(139, 92, 246, 0.15);
            border-radius: 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            transition: var(--transition);
            position: relative;
        }

        .sidebar-ai-card:hover {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
            transform: translateY(-2px);
            border-color: rgba(139, 92, 246, 0.25);
            box-shadow: var(--shadow-glow);
        }

        .ai-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            font-size: 1.15rem;
            box-shadow: 0 4px 10px rgba(139, 92, 246, 0.25);
        }

        .ai-details {
            display: flex;
            flex-direction: column;
            flex: 1;
            min-width: 0;
        }

        .ai-title {
            font-size: 0.82rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .ai-subtitle {
            font-size: 0.72rem;
            color: var(--text-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ai-arrow {
            font-size: 0.65rem;
            color: var(--text-secondary);
            margin-left: auto;
        }

        /* Top Header Navbar Redesign */
        .navbar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 40px;
            background: var(--bg-sidebar);
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(10px);
            transition: background 0.3s ease, border 0.3s ease;
        }

        .header-title-container h2 {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .header-title-container p {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .nav-user {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .nav-brand {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .nav-logo {
            font-size: 1.5rem;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .nav-menu {
            display: flex;
            gap: 20px;
        }

        .nav-item {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            transition: var(--transition);
        }

        .nav-item:hover, .nav-item.active {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.05);
        }

        .nav-user {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        /* Notifications Styling */
        .notification-container {
            position: relative;
            display: flex;
            align-items: center;
        }

        .notification-bell-btn {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            font-size: 1.1rem;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            position: relative;
            transition: var(--transition);
        }

        .notification-bell-btn:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #ffffff;
            transform: scale(1.05);
        }

        .notification-badge {
            position: absolute;
            top: -2px;
            right: -2px;
            background: var(--accent-red);
            color: #ffffff;
            font-size: 0.65rem;
            font-weight: 700;
            min-width: 16px;
            height: 16px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
            box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
            border: 2px solid var(--bg-base);
        }

        .notification-dropdown-menu {
            display: none;
            position: absolute;
            top: 45px;
            right: 0;
            width: 340px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            box-shadow: var(--shadow-glow);
            z-index: 1200;
            backdrop-filter: blur(20px);
            animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            overflow: hidden;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .notif-header {
            padding: 14px 18px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .notif-header h4 {
            font-weight: 700;
            color: var(--text-primary);
            font-size: 0.95rem;
            margin: 0;
        }

        .notif-mark-read-all {
            font-size: 0.72rem;
            color: var(--accent-cyan);
            cursor: pointer;
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
        }

        .notif-mark-read-all:hover {
            color: var(--accent-purple);
        }

        .notif-list {
            max-height: 280px;
            overflow-y: auto;
        }

        .notif-item {
            padding: 14px 18px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            gap: 4px;
            cursor: pointer;
            transition: var(--transition);
            background: rgba(255, 255, 255, 0.01);
            text-align: left;
        }

        .notif-item:last-child {
            border-bottom: none;
        }

        .notif-item:hover {
            background: rgba(255, 255, 255, 0.03);
        }

        .notif-item.unread {
            background: rgba(6, 182, 212, 0.03);
            border-left: 3px solid var(--accent-cyan);
        }

        .notif-item-title {
            font-size: 0.82rem;
            font-weight: 700;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .notif-item-body {
            font-size: 0.78rem;
            color: var(--text-secondary);
            line-height: 1.35;
        }

        .notif-item-time {
            font-size: 0.65rem;
            color: var(--text-secondary);
            margin-top: 4px;
        }

        .notif-empty {
            padding: 30px 20px;
            text-align: center;
            color: var(--text-secondary);
            font-size: 0.82rem;
        }

        .avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.95rem;
            border: 2px solid var(--border-color);
        }

        .btn-logout {
            background: none;
            border: none;
            color: var(--accent-red);
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            padding: 5px 10px;
            border-radius: 6px;
            transition: var(--transition);
        }

        .btn-logout:hover {
            background: rgba(239, 68, 68, 0.1);
        }

        /* Main Workspace Content */
        .workspace {
            flex: 1;
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
            padding: 30px 20px;
        }

        .dashboard-section {
            display: none;
            animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .dashboard-section.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10deg); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Dashboard Overview Grid */
        .grid-3 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 25px;
            margin-bottom: 30px;
        }

        /* Profile Details Card */
        .profile-card {
            padding: 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .profile-avatar {
            width: 100px;
            height: 100px;
            font-size: 2.5rem;
            margin-bottom: 15px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
            display: flex;
            align-items: center;
            justify-content: center;
            border: 3px solid rgba(255, 255, 255, 0.1);
            box-shadow: var(--shadow-glow);
        }

        .profile-name {
            font-size: 1.5rem;
            margin-bottom: 5px;
        }

        .profile-meta {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .stats-grid-compact {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            width: 100%;
        }

        .stat-box-mini {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--border-color);
            padding: 14px;
            border-radius: 12px;
        }

        .stat-box-mini-num {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--accent-cyan);
        }

        .stat-box-mini-lbl {
            font-size: 0.7rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            margin-top: 2px;
        }

        /* Analytics Diagnostic Card */
        .analytics-card {
            padding: 30px;
        }

        .card-header-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 12px;
        }

        .card-title {
            font-size: 1.15rem;
            color: var(--text-primary);
        }

        .weakness-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .weakness-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(255, 255, 255, 0.015);
            border: 1px solid var(--border-color);
            padding: 10px 14px;
            border-radius: 8px;
        }

        .weakness-subj {
            font-size: 0.85rem;
            font-weight: 600;
        }

        .weakness-metric {
            font-size: 0.8rem;
            color: var(--accent-red);
            font-weight: 700;
        }

        /* Mock Test Cards Grid */
        .exams-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 25px;
        }

        .exam-card {
            padding: 24px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%;
        }

        .exam-badge-row {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
        }

        .exam-tag {
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            padding: 3px 8px;
            border-radius: 4px;
            background: rgba(6, 182, 212, 0.1);
            color: var(--accent-cyan);
            border: 1px solid rgba(6, 182, 212, 0.2);
        }

        .exam-title-text {
            font-size: 1.25rem;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .exam-org-text {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 15px;
        }

        .exam-desc-block {
            background: rgba(255, 255, 255, 0.01);
            border-radius: 8px;
            padding: 10px;
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 20px;
        }

        /* PvP Arena & Matchmaking */
        .pvp-header-box {
            text-align: center;
            max-width: 600px;
            margin: 0 auto 40px;
        }

        .pvp-title {
            font-size: 2.2rem;
            background: linear-gradient(135deg, var(--text-primary), var(--accent-purple));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 10px;
        }

        .subjects-selector-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .subject-pvp-card {
            padding: 24px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .subject-pvp-card:hover {
            transform: translateY(-4px);
            border-color: var(--accent-cyan);
            box-shadow: var(--shadow-glow);
        }

        .subj-pvp-title {
            font-size: 1.1rem;
            margin-bottom: 15px;
        }

        /* Matchmaking Status */
        .matching-lobby {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 60px 40px;
        }

        .radar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            border: 2px solid rgba(6, 182, 212, 0.1);
            position: relative;
            margin-bottom: 30px;
            animation: radarGlow 2s infinite ease-in-out;
        }

        .radar::after {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            border: 2px solid var(--accent-cyan);
            border-radius: 50%;
            animation: radarPulse 1.5s infinite linear;
        }

        @keyframes radarPulse {
            0% { transform: scale(0.6); opacity: 1; }
            100% { transform: scale(1.4); opacity: 0; }
        }

        @keyframes radarGlow {
            0%, 100% { box-shadow: 0 0 10px rgba(6, 182, 212, 0.1); }
            50% { box-shadow: 0 0 30px rgba(6, 182, 212, 0.3); }
        }

        /* Active Test Arena Layout */
        .test-arena-wrapper {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: var(--bg-base);
            z-index: 1000;
            flex-direction: column;
        }

        .test-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 30px;
            border-bottom: 1px solid var(--border-color);
            background: rgba(3, 7, 18, 0.95);
        }

        .timer-box {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--accent-orange);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .test-container {
            display: flex;
            flex: 1;
            overflow: hidden;
        }

        .test-sidebar {
            width: 300px;
            border-right: 1px solid var(--border-color);
            background: rgba(17, 24, 39, 0.4);
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            padding: 20px;
        }

        .test-main {
            flex: 1;
            padding: 40px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .section-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 10px;
        }

        .section-tab-btn {
            background: none;
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
        }

        .section-tab-btn.active {
            background: var(--accent-cyan);
            color: #ffffff;
            border-color: transparent;
        }

        .question-nav-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
        }

        .q-nav-btn {
            aspect-ratio: 1;
            border: 1px solid var(--border-color);
            background: rgba(255, 255, 255, 0.02);
            color: var(--text-secondary);
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .q-nav-btn.active {
            border-color: var(--accent-cyan);
            color: var(--text-primary);
            box-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
        }

        .q-nav-btn.answered {
            background: var(--accent-green);
            color: #ffffff;
            border-color: transparent;
        }

        .q-nav-btn.bookmarked {
            background: var(--accent-purple);
            color: #ffffff;
            border-color: transparent;
        }

        .q-text-body {
            font-size: 1.15rem;
            line-height: 1.6;
            color: var(--text-primary);
            margin-bottom: 30px;
        }

        /* Options Stack */
        .options-stack {
            display: flex;
            flex-direction: column;
            gap: 14px;
            margin-bottom: 40px;
        }

        .option-item {
            background: var(--bg-card);
            border: 1.5px solid var(--border-color);
            padding: 16px 22px;
            border-radius: 14px;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            align-items: center;
            gap: 16px;
            position: relative;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
        }

        .option-item:hover {
            border-color: var(--accent-cyan);
            background: rgba(6, 182, 212, 0.03);
            transform: translateX(6px);
            box-shadow: 0 4px 12px rgba(6, 182, 212, 0.08);
        }

        .option-item.selected {
            border-color: var(--accent-purple);
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.15), inset 0 0 10px rgba(139, 92, 246, 0.05);
            transform: translateX(10px);
        }

        .option-idx {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.85rem;
            transition: all 0.25s ease;
        }

        .option-item.selected .option-idx {
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
            color: #ffffff;
            border-color: transparent;
            transform: scale(1.1);
            box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
        }

        /* Mobile Drawer & Backdrop layout */
        .drawer-backdrop {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(3, 7, 18, 0.6);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            z-index: 1040;
            opacity: 0;
            transition: opacity 0.35s ease;
        }
        .drawer-backdrop.active {
            display: block;
            opacity: 1;
        }
        .drawer-trigger {
            display: none !important;
        }
        .close-drawer-btn {
            display: none !important;
        }

        /* Descriptive Layout */
        .descriptive-editor-box {
            display: none;
            flex-direction: column;
            gap: 20px;
            margin-bottom: 40px;
        }

        .desc-textarea {
            width: 100%;
            height: 250px;
            background: var(--bg-input);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            padding: 20px;
            border-radius: 12px;
            font-size: 1rem;
            line-height: 1.5;
            outline: none;
            resize: none;
            transition: var(--transition);
        }

        .desc-textarea:focus {
            border-color: var(--accent-cyan);
        }

        .file-upload-zone {
            border: 2px dashed var(--border-color);
            border-radius: 12px;
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            background: rgba(255, 255, 255, 0.01);
        }

        .file-upload-zone:hover {
            border-color: var(--accent-cyan);
            background: rgba(6, 182, 212, 0.02);
        }

        /* PvP Arena Live Header */
        .pvp-scores-header {
            display: none;
            width: 100%;
            max-width: 600px;
            margin: 0 auto;
            flex-direction: column;
            gap: 10px;
        }

        .pvp-scores-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.95rem;
            font-weight: 600;
        }

        .progress-bar-container {
            width: 100%;
            height: 8px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            overflow: hidden;
            position: relative;
        }

        .progress-bar-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
            border-radius: 10px;
            transition: width 0.5s ease;
        }

        /* Results / Scorecard View */
        .modal-backdrop {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.85);
            backdrop-filter: blur(10px);
            z-index: 1100;
            justify-content: center;
            align-items: center;
            padding: 20px;
            overflow-y: auto;
        }

        .scorecard-panel {
            width: 100%;
            max-width: 650px;
            padding: 40px;
            text-align: center;
        }

        .score-circle {
            width: 140px;
            height: 140px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin: 0 auto 30px;
            box-shadow: var(--shadow-glow);
        }

        .score-num {
            font-size: 2.5rem;
            font-weight: 800;
            line-height: 1;
        }

        .score-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            font-weight: 600;
            opacity: 0.8;
            margin-top: 4px;
        }

        .results-summary-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-bottom: 30px;
        }

        .summary-pill {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--border-color);
            padding: 15px;
            border-radius: 12px;
        }

        .summary-val {
            font-size: 1.4rem;
            font-weight: 700;
        }

        .val-correct { color: var(--accent-green); }
        .val-incorrect { color: var(--accent-red); }
        .val-unattempted { color: var(--text-secondary); }

        .summary-lbl {
            font-size: 0.7rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            margin-top: 4px;
            font-weight: 600;
        }

        /* Direct Chat Layout */
        .chat-tabs-header {
            display: flex;
            gap: 6px;
            margin-bottom: 15px;
            background: rgba(0, 0, 0, 0.04);
            padding: 4px;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            width: 100%;
        }
        [data-theme="dark"] .chat-tabs-header {
            background: rgba(0, 0, 0, 0.25);
        }

        .chat-tab-btn {
            flex: 1;
            border: 1px solid transparent;
            font-family: 'Outfit', sans-serif;
            font-weight: 700;
            font-size: 0.78rem;
            padding: 8px 12px;
            cursor: pointer;
            border-radius: 8px;
            transition: all 0.25s ease;
            text-align: center;
            background: none;
            color: var(--text-secondary);
        }
        .chat-tab-btn:hover {
            color: var(--text-primary);
        }
        .chat-tab-btn.active.friends {
            color: #ffffff !important;
            background: linear-gradient(135deg, #0891b2, #06b6d4) !important;
            box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3) !important;
            border-color: transparent !important;
        }
        .chat-tab-btn.active.discovery {
            color: #ffffff !important;
            background: linear-gradient(135deg, #7c3aed, #8b5cf6) !important;
            box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3) !important;
            border-color: transparent !important;
        }
        .chat-tab-btn.active.groups {
            color: #ffffff !important;
            background: linear-gradient(135deg, #db2777, #ec4899) !important;
            box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3) !important;
            border-color: transparent !important;
        }

        .chat-layout {
            display: flex;
            height: calc(100vh - 180px);
            gap: 20px;
        }

        .chat-sidebar {
            width: 280px;
            overflow-y: auto;
            padding: 15px;
        }

        .chat-feed-box {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            overflow: hidden;
            padding: 20px;
        }

        .friend-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            border-radius: 10px;
            cursor: pointer;
            transition: var(--transition);
            margin-bottom: 8px;
            border: 1px solid transparent;
        }

        .friend-item:hover, .friend-item.active {
            background: rgba(255, 255, 255, 0.03);
            border-color: var(--border-color);
        }

        .friend-name {
            font-weight: 600;
            font-size: 0.9rem;
        }

        .messages-scroll-area {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
            display: flex;
            flex-direction: column;
            gap: 14px;
            margin-bottom: 20px;
            border: 1px solid var(--border-color);
            background: rgba(255, 255, 255, 0.01);
            border-radius: 12px;
        }

        .msg-bubble {
            max-width: 60%;
            padding: 12px 16px;
            border-radius: 14px;
            font-size: 0.9rem;
            line-height: 1.4;
            position: relative;
        }

        .msg-bubble.sent {
            align-self: flex-end;
            background: var(--accent-cyan);
            color: #ffffff;
            border-bottom-right-radius: 2px;
        }

        .msg-bubble.received {
            align-self: flex-start;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            border-bottom-left-radius: 2px;
        }

        .msg-actions {
            display: none;
            position: absolute;
            top: -20px;
            right: 0;
            background: var(--bg-base);
            border: 1px solid var(--border-color);
            border-radius: 4px;
            padding: 2px 5px;
            font-size: 0.7rem;
            cursor: pointer;
            color: var(--accent-red);
        }

        .msg-bubble.sent:hover .msg-actions {
            display: block;
        }

        .chat-input-row {
            display: flex;
            gap: 12px;
        }

        .chat-input-field {
            flex: 1;
            background: var(--bg-input);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            padding: 14px 18px;
            border-radius: 10px;
            font-size: 0.95rem;
            outline: none;
        }

        .chat-input-field:focus {
            border-color: var(--accent-cyan);
        }

        .btn-send {
            width: 100px;
        }

        /* Profile Completion Prompt & Modal Styling */
        .dashboard-floating-alerts {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 380px;
            max-width: calc(100% - 48px);
            display: flex;
            flex-direction: column;
            gap: 16px;
            z-index: 9999;
            pointer-events: none; /* Let clicks pass through empty space */
        }

        .dashboard-floating-alerts .profile-complete-banner {
            pointer-events: auto; /* Enable clicks on floating card elements */
            background: var(--bg-banner-complete);
            backdrop-filter: blur(16px) saturate(180%);
            -webkit-backdrop-filter: blur(16px) saturate(180%);
            border: 1px solid var(--border-banner-complete);
            border-radius: 16px;
            padding: 18px 20px;
            margin-bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 12px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.15), var(--shadow-glow);
            width: 100%;
            animation: alert-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        [data-theme="light"] .profile-complete-banner .btn-secondary {
            background: #64748b !important;
            color: #ffffff !important;
            border: none !important;
        }
        [data-theme="light"] .profile-complete-banner .btn-secondary:hover {
            background: #475569 !important;
            color: #ffffff !important;
        }

        @keyframes alert-slide-in {
            from {
                transform: translateY(30px) scale(0.95);
                opacity: 0;
            }
            to {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }

        /* Fallback for banners outside floating stack */
        .profile-complete-banner {
            grid-column: span 3;
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            box-shadow: var(--shadow-glow);
            width: 100%;
        }

        .profile-complete-content {
            text-align: left;
        }

        .dashboard-floating-alerts .profile-complete-content h3 {
            font-size: 1.08rem;
            color: var(--text-primary);
            margin-bottom: 4px;
            font-weight: 700;
        }

        .profile-complete-content h3 {
            font-size: 1.25rem;
            color: var(--text-primary);
            margin-bottom: 6px;
        }

        .dashboard-floating-alerts .profile-complete-content p {
            font-size: 0.8rem;
            color: var(--text-secondary);
            line-height: 1.4;
        }

        .profile-complete-content p {
            font-size: 0.88rem;
            color: var(--text-secondary);
            line-height: 1.4;
        }

        .dashboard-floating-alerts .profile-complete-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            width: 100%;
            flex-shrink: 0;
        }

        .dashboard-floating-alerts .profile-complete-actions .btn {
            padding: 8px 16px;
            font-size: 0.78rem;
            flex: 1;
            text-align: center;
            justify-content: center;
            width: auto;
        }

        .profile-complete-actions {
            display: flex;
            gap: 12px;
            flex-shrink: 0;
        }


        /* Guest Restriction Banner Styling */
        .guest-warning-banner {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
            border: 1px solid rgba(245, 158, 11, 0.25);
            border-radius: 20px;
            padding: 20px 25px;
            margin-bottom: 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            box-shadow: 0 8px 32px 0 rgba(239, 68, 68, 0.08);
            width: 100%;
            animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        .guest-warning-content {
            text-align: left;
        }

        .guest-warning-content h3 {
            font-size: 1.2rem;
            color: var(--text-primary);
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: 'Outfit', sans-serif;
            font-weight: 600;
        }

        .guest-warning-content p {
            font-size: 0.88rem;
            color: var(--text-secondary);
            line-height: 1.45;
        }

        .guest-warning-actions {
            display: flex;
            gap: 12px;
            flex-shrink: 0;
        }

        .profile-modal-content {
            width: 100%;
            max-width: 500px;
            padding: 35px;
            text-align: left;
            max-height: 90vh;
            overflow-y: auto;
        }

        /* Responsive Utilities */
        @media (max-width: 768px) {
            .navbar {
                padding: 15px;
                flex-direction: column;
                gap: 15px;
            }
            .grid-3 {
                grid-template-columns: 1fr;
            }
            .chat-layout {
                flex-direction: column;
                height: auto;
            }
            .chat-sidebar {
                width: 100%;
                max-height: 180px;
            }
            .test-container {
                position: relative;
            }
            .test-sidebar {
                position: fixed;
                top: 0;
                right: 0;
                bottom: 0;
                width: 320px;
                max-width: 85%;
                height: 100vh;
                z-index: 1050;
                background: rgba(11, 15, 25, 0.98);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                border-left: 1px solid var(--border-color);
                border-right: none;
                border-top: none;
                transform: translateX(100%);
                transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
                box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
                display: flex;
                flex-direction: column;
            }
            .test-sidebar.open {
                transform: translateX(0);
            }
            .test-main {
                padding: 24px 20px;
            }
            .drawer-trigger {
                display: inline-flex !important;
                align-items: center;
                gap: 8px;
                width: auto !important;
                padding: 8px 16px !important;
                font-size: 0.85rem !important;
                background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
                border: none;
                box-shadow: 0 4px 10px rgba(6, 182, 212, 0.2);
            }
            .close-drawer-btn {
                display: block !important;
                width: 100% !important;
                margin-bottom: 20px !important;
                padding: 10px !important;
                font-size: 0.85rem !important;
                font-weight: 600;
                border: 1px solid var(--border-color);
                background: rgba(255, 255, 255, 0.03);
                color: var(--text-primary);
                border-radius: 10px;
                cursor: pointer;
            }
            .close-drawer-btn:hover {
                background: rgba(255, 255, 255, 0.08);
            }
        }

        /* Exam Details Modal Styling */
        .exam-details-panel {
            width: 100%;
            max-width: 850px;
            padding: 35px;
            display: flex;
            flex-direction: column;
            gap: 25px;
            position: relative;
            max-height: 90vh;
            overflow-y: auto;
        }

        .btn-close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            font-size: 1.5rem;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .btn-close-modal:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
            transform: scale(1.1);
        }

        .exam-det-header {
            display: flex;
            gap: 20px;
            align-items: center;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 20px;
        }

        .exam-det-logo {
            width: 80px;
            height: 80px;
            font-size: 2.2rem;
            border-radius: 16px;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            border: 2px solid var(--border-color);
            box-shadow: var(--shadow-glow);
            flex-shrink: 0;
        }

        .exam-det-title-area {
            display: flex;
            flex-direction: column;
            gap: 6px;
            text-align: left;
        }

        .exam-det-badge-row {
            display: flex;
            gap: 8px;
        }

        .exam-det-title {
            font-size: 1.6rem;
            color: var(--text-primary);
            font-weight: 800;
        }

        .exam-det-post {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .exam-det-stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
        }

        .det-stat-box {
            background: var(--bg-stat-box);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 12px 16px;
            display: flex;
            flex-direction: column;
            gap: 4px;
            text-align: left;
        }

        .det-stat-lbl {
            font-size: 0.7rem;
            text-transform: uppercase;
            color: var(--text-secondary);
            font-weight: 600;
            letter-spacing: 0.05em;
        }

        .det-stat-val {
            font-size: 0.95rem;
            color: var(--text-primary);
            font-weight: 700;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .exam-det-tabs {
            display: flex;
            gap: 8px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 1px;
            overflow-x: auto;
        }

        .det-tab-btn {
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            color: var(--text-secondary);
            padding: 10px 16px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            white-space: nowrap;
        }

        .det-tab-btn:hover {
            color: var(--text-primary);
        }

        .det-tab-btn.active {
            color: var(--accent-cyan);
            border-bottom-color: var(--accent-cyan);
        }

        .exam-det-pane {
            min-height: 250px;
            font-size: 0.95rem;
            line-height: 1.6;
            color: var(--text-primary);
            overflow-y: auto;
            max-height: 400px;
            padding-right: 10px;
            text-align: left;
        }

        .exam-det-pane h3 {
            font-size: 1.15rem;
            margin-top: 20px;
            margin-bottom: 10px;
            color: var(--text-primary);
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 5px;
        }

        .exam-det-pane h3:first-of-type {
            margin-top: 0;
        }

        .exam-det-pane p {
            margin-bottom: 12px;
            color: var(--text-secondary);
        }

        .exam-det-pane ul, .exam-det-pane ol {
            margin-left: 20px;
            margin-bottom: 16px;
            color: var(--text-secondary);
        }

        .exam-det-pane li {
            margin-bottom: 6px;
        }

        /* Glassmorphic formatted table styling */
        .exam-det-pane table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: var(--bg-stat-box);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid var(--border-color);
        }

        .exam-det-pane th, .exam-det-pane td {
            padding: 12px 16px;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }

        .exam-det-pane th {
            background: rgba(255, 255, 255, 0.03);
            color: var(--text-primary);
            font-weight: 600;
        }

        .exam-det-pane tr:last-child td {
            border-bottom: none;
        }

        .exam-det-pane tr:hover td {
            background: rgba(255, 255, 255, 0.01);
        }

        .det-action-card {
            background: rgba(255, 255, 255, 0.01);
            border: 1px dashed var(--border-color);
            border-radius: 12px;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            transition: var(--transition);
        }

        .det-action-card:hover {
            border-color: var(--accent-cyan);
            background: rgba(6, 182, 212, 0.02);
        }

        .det-action-info {
            text-align: left;
        }

        .det-action-info h4 {
            font-size: 1.1rem;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .det-action-info p {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 0;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .exam-details-panel {
                padding: 20px;
            }
            .exam-det-header {
                flex-direction: column;
                text-align: center;
            }
            .exam-det-stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .det-action-card {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
        }

        /* --- Landing Page Styling Classes --- */
        .exam-item-card {
            background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 255, 255, 0.01) 100%);
            border: 1px solid var(--border-color);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-radius: 24px;
            padding: 26px;
            box-shadow: var(--shadow-box), 0 10px 30px -10px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            cursor: pointer;
            height: 100%;
            position: relative;
            overflow: hidden;
        }
        .exam-item-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            border-radius: 24px;
            padding: 1.5px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 60%, rgba(255, 255, 255, 0.02) 100%);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
            transition: all 0.4s ease;
        }
        .exam-item-card:hover {
            transform: translateY(-8px) scale(1.015);
            border-color: rgba(6, 182, 212, 0.3);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 0 25px rgba(6, 182, 212, 0.12);
        }
        .exam-item-card:hover::before {
            background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
        }

        .badge-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 14px;
        }

        .badge-cat {
            font-size: 0.7rem;
            color: var(--accent-cyan);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            background: rgba(6, 182, 212, 0.08);
            padding: 4px 10px;
            border-radius: 8px;
            border: 1px solid rgba(6, 182, 212, 0.15);
        }

        .badge-vac {
            font-size: 0.7rem;
            color: var(--accent-green);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            background: rgba(16, 185, 129, 0.08);
            padding: 4px 10px;
            border-radius: 8px;
            border: 1px solid rgba(16, 185, 129, 0.15);
        }

        .badge-target {
            font-size: 0.7rem;
            color: var(--accent-purple);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            background: rgba(139, 92, 246, 0.08);
            padding: 4px 10px;
            border-radius: 8px;
            border: 1px solid rgba(139, 92, 246, 0.15);
        }

        .exam-explore-link {
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--accent-cyan);
            margin-top: 15px;
            display: flex;
            align-items: center;
            gap: 4px;
            transition: all 0.3s ease;
        }
        .exam-item-card:hover .exam-explore-link {
            color: var(--accent-purple);
        }

        .card-title-text {
            font-size: 1.35rem;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: 8px;
            line-height: 1.3;
            font-family: 'Outfit', sans-serif;
            transition: color 0.3s ease;
        }
        .exam-item-card:hover .card-title-text {
            color: var(--accent-cyan);
        }

        .card-org {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 18px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .recruitment-row {
            background: rgba(255, 255, 255, 0.015);
            border-radius: 14px;
            padding: 10px 14px;
            margin-bottom: 16px;
            border: 1px solid var(--border-color);
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
        }
        .recruitment-row-col {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 2px;
        }
        .recruitment-row-col-lbl {
            font-size: 0.62rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.04em;
            font-weight: 500;
        }
        .recruitment-row-col-val {
            font-size: 0.78rem;
            color: var(--text-primary);
            font-weight: 700;
        }

        .stat-grid-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            border-top: 1px solid var(--border-color);
            padding-top: 16px;
            text-align: center;
        }
        .stat-grid-row-cell {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }
        .stat-grid-row-num {
            font-size: 1.05rem;
            font-weight: 800;
            color: var(--text-primary);
            font-family: 'Outfit', sans-serif;
        }
        .stat-grid-row-lbl {
            font-size: 0.68rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 600;
        }

        .pills-container {
            display: flex;
            flex-wrap: nowrap;
            overflow-x: auto;
            gap: 10px;
            flex: 1;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding: 4px 0;
            width: 100%;
        }
        .pills-container::-webkit-scrollbar {
            display: none;
        }

        .category-pill {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--border-color);
            padding: 8px 16px;
            border-radius: 30px;
            color: var(--text-secondary);
            font-size: 0.88rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        .category-pill span {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-secondary);
            padding: 2px 8px;
            border-radius: 20px;
            font-size: 0.72rem;
            font-weight: 700;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
        }
        .category-pill:hover {
            background: rgba(255, 255, 255, 0.06);
            color: var(--text-primary);
            transform: translateY(-2px) scale(1.03);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }
        .category-pill.active {
            background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-purple) 100%);
            color: #ffffff;
            border-color: transparent;
            box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
            transform: translateY(-2px);
        }
        .category-pill.active span {
            background: rgba(255, 255, 255, 0.2);
            color: #ffffff;
            border-color: transparent;
        }

        /* Upgrade details styling classes */
        .det-stat-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            margin-bottom: 35px;
        }
        .det-stat-card {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
            border: 1px solid var(--border-color);
            padding: 18px 20px;
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        .det-stat-card:hover {
            transform: translateY(-3px);
            border-color: rgba(6, 182, 212, 0.2);
            background: rgba(6, 182, 212, 0.02);
            box-shadow: var(--shadow-box);
        }
        .det-stat-card::before {
            content: '';
            position: absolute;
            left: 0; top: 0; bottom: 0;
            width: 4px;
            background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
            opacity: 0.6;
        }
        .det-stat-lbl {
            font-size: 0.72rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 700;
        }
        .det-stat-val {
            font-size: 1.15rem;
            font-weight: 800;
            color: var(--text-primary);
            font-family: 'Outfit', sans-serif;
        }

        /* Mock test details cards */
        .mock-test-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }
        .mock-test-card {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 28px;
            min-height: 270px;
            border-radius: 20px;
            background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 255, 255, 0.01) 100%);
            border: 1px solid var(--border-color);
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-box);
        }
        .mock-test-card:hover {
            transform: translateY(-6px);
            border-color: rgba(139, 92, 246, 0.3);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 0 0 25px rgba(139, 92, 246, 0.1);
        }
        .mock-test-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 14px;
        }
        .mock-test-title {
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: 10px;
            font-family: 'Outfit', sans-serif;
            line-height: 1.35;
            transition: color 0.3s ease;
        }
        .mock-test-card:hover .mock-test-title {
            color: var(--accent-purple);
        }
        .mock-test-desc {
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.45;
            margin-bottom: 18px;
        }
        .mock-test-stats-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.82rem;
            color: var(--text-secondary);
            margin-bottom: 18px;
            border-top: 1px solid var(--border-color);
            padding-top: 14px;
            font-weight: 600;
        }

        .control-panel {
            max-width: 1200px;
            margin: 0 auto 30px;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 20px;
            position: sticky;
            top: 82px;
            z-index: 99;
            background: var(--bg-base);
            padding-top: 15px;
            padding-bottom: 15px;
            transition: all 0.3s ease;
        }

        @media (max-width: 768px) {
            .control-panel {
                top: 50px;
                padding-top: 10px;
                padding-bottom: 10px;
                gap: 12px;
            }
        }

        .search-box-row {
            position: relative;
        }

        .search-icon-svg {
            position: absolute;
            left: 24px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            pointer-events: none;
            width: 20px;
            height: 20px;
        }

        .search-field {
            width: 100%;
            background: var(--bg-input);
            border: 1px solid var(--border-color);
            padding: 18px 24px 18px 58px;
            border-radius: 50px;
            color: var(--text-primary);
            font-size: 1.1rem;
            outline: none;
            box-shadow: var(--shadow-primary);
            transition: all 0.3s ease;
        }
        .search-field:focus {
            border-color: var(--accent-teal);
            box-shadow: 0 0 0 5px rgba(6, 182, 212, 0.15);
        }

        .filter-sort-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding-bottom: 20px;
        }

        .sort-select {
            background: var(--bg-input);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            padding: 10px 16px;
            border-radius: 12px;
            font-size: 0.85rem;
            font-weight: 500;
            outline: none;
            cursor: pointer;
        }

        /* PvP Selection & Lobby Styling */
        .pvp-setup-card {
            padding: 25px;
            margin-bottom: 25px;
        }

        .pvp-section-title {
            font-size: 1.15rem;
            color: var(--text-primary);
            margin-bottom: 15px;
            font-family: 'Outfit', sans-serif;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .chips-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 5px;
        }

        .subject-chip {
            background: var(--bg-stat-box);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            padding: 10px 20px;
            border-radius: 50px;
            font-size: 0.88rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            user-select: none;
        }

        .subject-chip:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.15);
            color: var(--text-primary);
        }

        .subject-chip.active {
            background: rgba(6, 182, 212, 0.15);
            border-color: var(--accent-cyan);
            color: var(--accent-cyan);
            box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
        }

        .topics-subject-group {
            background: var(--bg-stat-box);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 18px;
            margin-bottom: 15px;
        }

        .topics-group-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 8px;
        }

        .topics-group-title {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .select-all-btn {
            background: none;
            border: none;
            color: var(--accent-cyan);
            font-size: 0.78rem;
            font-weight: 600;
            cursor: pointer;
            outline: none;
        }

        .select-all-btn:hover {
            text-decoration: underline;
        }

        .topics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 12px;
        }

        .topic-checkbox-label {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.85rem;
            color: var(--text-secondary);
            cursor: pointer;
            transition: var(--transition);
            padding: 6px 10px;
            border-radius: 8px;
            background: var(--bg-stat-box);
            border: 1px solid transparent;
        }

        .topic-checkbox-label:hover {
            color: var(--text-primary);
            background: var(--bg-sidebar-hover);
        }

        .topic-checkbox-label input[type="checkbox"] {
            accent-color: var(--accent-cyan);
            cursor: pointer;
        }

        .pvp-split-grid {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 25px;
            margin-bottom: 30px;
        }

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

        .challenge-player-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            border-radius: 12px;
            background: var(--bg-stat-box);
            border: 1px solid var(--border-color);
            margin-bottom: 10px;
        }

        .challenge-player-name {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .challenge-player-state {
            font-size: 0.72rem;
            color: var(--text-secondary);
        }

        .pvp-challenge-card {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
            border: 1px solid rgba(139, 92, 246, 0.2);
            padding: 15px;
            border-radius: 14px;
            margin-bottom: 12px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .pvp-lobby-panel {
            background: linear-gradient(135deg, rgba(31, 41, 55, 0.7) 0%, rgba(17, 24, 39, 0.9) 100%);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 35px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 20px;
            box-shadow: var(--shadow-glow);
            width: 100%;
            margin-bottom: 25px;
        }

        .vs-container {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 30px;
            margin: 20px 0;
        }

        .vs-player-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            font-weight: 700;
            background: var(--bg-stat-box);
            border: 2px solid var(--border-color);
            color: var(--text-primary);
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }

        .vs-player-avatar.host {
            border-color: var(--accent-cyan);
            box-shadow: 0 0 20px rgba(6,182,212,0.3);
        }

        .vs-player-avatar.opponent {
            border-color: var(--accent-purple);
            box-shadow: 0 0 20px rgba(139,92,246,0.3);
        }

        .vs-divider {
            font-family: 'Outfit';
            font-size: 1.8rem;
            font-weight: 800;
            font-style: italic;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        /* Auto-suggest Multi-select Target Exams Styling */
        .suggestion-item {
            padding: 10px 14px;
            font-size: 0.85rem;
            color: var(--text-primary);
            cursor: pointer;
            transition: background 0.2s ease;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
            text-align: left;
        }
        .suggestion-item:hover {
            background: rgba(6, 182, 212, 0.1);
            color: var(--accent-cyan);
        }
        .suggestion-item:last-child {
            border-bottom: none;
        }
        .exam-tag-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(6, 182, 212, 0.15);
            color: var(--accent-cyan);
            border: 1px solid rgba(6, 182, 212, 0.3);
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 500;
            margin: 2px 0;
        }
        .exam-tag-pill-remove {
            cursor: pointer;
            font-weight: 700;
            color: var(--text-secondary);
            transition: color 0.2s ease;
        }
        .exam-tag-pill-remove:hover {
            color: var(--accent-red);
        }

        /* Toast Notification System */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.toast-card {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 16px !important;
    padding: 14px 18px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    width: 380px !important;
    max-width: 100% !important;
    pointer-events: auto !important;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast-card.fade-out {
    opacity: 0 !important;
    transform: translateY(-20px) scale(0.95) !important;
}

.toast-icon {
    font-size: 1.3rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    flex-shrink: 0 !important;
}

.toast-message {
    font-size: 0.84rem !important;
    font-weight: 500 !important;
    color: #f3f4f6 !important;
    line-height: 1.45 !important;
    font-family: 'Outfit', sans-serif !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.toast-message strong {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.toast-success {
    border-left: 4px solid var(--accent-green) !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15), 0 0 15px rgba(16, 185, 129, 0.05) !important;
}

.toast-error {
    border-left: 4px solid var(--accent-red) !important;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15), 0 0 15px rgba(239, 68, 68, 0.05) !important;
}

.toast-info {
    border-left: 4px solid var(--accent-cyan) !important;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15), 0 0 15px rgba(6, 182, 212, 0.05) !important;
}

.toast-cta-btn {
    background: linear-gradient(135deg, #8b5cf6, #6366f1) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    padding: 6px 14px !important;
    border-radius: 30px !important;
    border: none !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-left: 8px !important;
    white-space: nowrap !important;
}
.toast-cta-btn:hover {
    transform: translateY(-1px) scale(1.03) !important;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5) !important;
    background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
}
.toast-cta-btn:active {
    transform: translateY(0) scale(0.98) !important;
}

        /* -------------------------------------------------------------
         * Redesigned Dashboard Specific Styling
         * ------------------------------------------------------------- */
        .dashboard-grid-top {
            display: grid;
            grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
            gap: 24px;
            margin-bottom: 24px;
        }

        .dashboard-grid-bottom {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
            gap: 24px;
            margin-bottom: 24px;
        }

        @media (max-width: 1200px) {
            .dashboard-grid-top {
                grid-template-columns: 1fr;
            }
        }

        /* Card Header row with View All link */
        .card-header-row-custom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .card-header-link {
            font-size: 0.78rem;
            color: var(--accent-purple);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
        }

        .card-header-link:hover {
            opacity: 0.8;
            text-decoration: underline;
        }

        /* Gauge layout inside Overall Performance Card */
        .overall-perf-container {
            display: flex;
            gap: 24px;
            padding: 10px 0;
        }

        .perf-left-gauge {
            width: 45%;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .gauge-canvas-container {
            width: 100%;
            max-width: 160px;
            aspect-ratio: 1;
            position: relative;
        }

        .doughnut-center-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            pointer-events: none;
        }

        .doughnut-center-text .percentage {
            font-family: 'Outfit', sans-serif;
            font-size: 1.6rem;
            font-weight: 800;
            color: var(--text-primary);
            line-height: 1.1;
        }

        .doughnut-center-text .label {
            font-size: 0.72rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-top: 2px;
        }

        .perf-right-stats {
            width: 55%;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        .perf-stat-box {
            background: var(--bg-stat-box);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 12px 14px;
            transition: var(--transition);
        }

        .perf-stat-box:hover {
            border-color: rgba(139, 92, 246, 0.2);
            transform: translateY(-2px);
        }

        .perf-stat-val {
            font-family: 'Outfit', sans-serif;
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 2px;
        }

        .perf-stat-lbl {
            font-size: 0.72rem;
            color: var(--text-secondary);
            font-weight: 500;
        }

        /* AI Score Card Layout */
        .ai-score-top {
            display: flex;
            align-items: baseline;
            gap: 10px;
            margin-bottom: 4px;
        }

        .ai-score-num {
            font-family: 'Outfit', sans-serif;
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--text-primary);
        }

        .ai-score-denom {
            font-size: 1rem;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .ai-score-badge-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 16px;
        }

        .ai-score-tag {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--accent-green);
        }

        .ai-score-delta {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--accent-green);
            display: inline-flex;
            align-items: center;
            gap: 2px;
        }

        .ai-score-chart-container {
            width: 100%;
            height: 120px;
            position: relative;
            margin-top: auto;
        }

        /* Current Rank Card Layout */
        .rank-card-body {
            position: relative;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .rank-badge-svg-container {
            position: absolute;
            top: -10px;
            right: -10px;
            pointer-events: none;
        }

        .rank-num-title {
            font-family: 'Outfit', sans-serif;
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: 2px;
            line-height: 1.1;
        }

        .rank-sub {
            font-size: 0.82rem;
            color: var(--text-secondary);
            font-weight: 500;
            margin-bottom: 24px;
        }

        .rank-trophy-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--text-secondary);
        }

        .rank-trophy-text {
            color: var(--accent-orange);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .rank-progress-bar {
            width: 100%;
            height: 8px;
            background: var(--bg-stat-box);
            border: 1px solid var(--border-color);
            border-radius: 4px;
            overflow: hidden;
            margin-top: auto;
        }

        .rank-progress-fill {
            height: 100%;
            width: 72%;
            background: linear-gradient(90deg, var(--accent-orange) 0%, var(--accent-red) 100%);
            border-radius: 4px;
        }

        /* Bottom Row Cards Styling */
        .bottom-card {
            padding: 20px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 280px;
        }

        /* Weak Topics progress items */
        .weak-topic-item {
            margin-bottom: 16px;
        }

        .weak-topic-item:last-child {
            margin-bottom: 0;
        }

        .weak-topic-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 6px;
        }

        .weak-topic-progress {
            width: 100%;
            height: 8px;
            background: var(--bg-stat-box);
            border-radius: 4px;
            overflow: hidden;
        }

        .weak-topic-fill {
            height: 100%;
            border-radius: 4px;
        }

        /* Recent Test stats */
        .recent-test-title {
            font-family: 'Outfit', sans-serif;
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 16px;
        }

        .recent-test-stats-row {
            display: flex;
            gap: 12px;
            margin-bottom: auto;
        }

        .recent-test-stat-pill {
            flex: 1;
            background: var(--bg-stat-box);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 12px;
            text-align: center;
        }

        .recent-test-stat-val {
            font-family: 'Outfit', sans-serif;
            font-size: 1.15rem;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: 2px;
        }

        .recent-test-stat-lbl {
            font-size: 0.72rem;
            color: var(--text-secondary);
            font-weight: 500;
            text-transform: uppercase;
        }

        .recent-test-report-link {
            font-size: 0.8rem;
            color: var(--accent-purple);
            text-decoration: none;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 4px;
            margin-top: 20px;
            transition: var(--transition);
        }

        .recent-test-report-link:hover {
            color: var(--accent-cyan);
            transform: translateX(2px);
        }

        /* Live Leaderboard list styling */
        .leaderboard-list-container {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 1;
        }

        .leaderboard-row-item {
            display: flex;
            align-items: center;
            padding: 8px 12px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.01);
            border: 1px solid transparent;
            transition: var(--transition);
        }

        .leaderboard-row-item.current-user-highlight {
            background: var(--bg-sidebar-active);
            border-color: rgba(139, 92, 246, 0.15);
        }

        .lead-rank-idx {
            font-family: 'Outfit', sans-serif;
            font-size: 0.9rem;
            font-weight: 700;
            width: 20px;
            color: var(--text-secondary);
        }

        .current-user-highlight .lead-rank-idx {
            color: var(--text-sidebar-active);
        }

        .lead-avatar {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
            color: #ffffff;
            font-family: 'Outfit', sans-serif;
            font-weight: 700;
            font-size: 0.78rem;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 10px;
            border: 1px solid var(--border-color);
        }

        .lead-username {
            font-size: 0.82rem;
            font-weight: 600;
            color: var(--text-primary);
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .current-user-highlight .lead-username {
            color: var(--text-sidebar-active);
            font-weight: 700;
        }

        .lead-score {
            font-family: 'Outfit', sans-serif;
            font-size: 0.88rem;
            font-weight: 700;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .current-user-highlight .lead-score {
            color: var(--text-sidebar-active);
        }

        .lead-diamond-icon {
            font-size: 0.7rem;
        }

        /* Upcoming Battle Card Styling */
        .battle-subject-title {
            font-family: 'Outfit', sans-serif;
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 6px;
        }

        .battle-prize-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 10px;
            border-radius: 20px;
            background: rgba(245, 158, 11, 0.08);
            border: 1px solid rgba(245, 158, 11, 0.15);
            font-size: 0.72rem;
            font-weight: 700;
            color: var(--accent-orange);
            margin-bottom: 16px;
        }

        .battle-countdown-row {
            display: flex;
            gap: 6px;
            justify-content: center;
            margin-bottom: auto;
        }

        .countdown-block {
            flex: 1;
            background: var(--bg-stat-box);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 8px 4px;
            text-align: center;
        }

        .countdown-digits {
            font-family: 'Outfit', sans-serif;
            font-size: 1.1rem;
            font-weight: 800;
            color: var(--text-primary);
            line-height: 1.1;
        }

        .countdown-lbl {
            font-size: 0.58rem;
            color: var(--text-secondary);
            font-weight: 600;
            text-transform: uppercase;
            margin-top: 2px;
            letter-spacing: 0.5px;
        }

        .battle-join-btn {
            background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
            box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
            padding: 10px;
            font-size: 0.88rem;
            font-weight: 700;
            border-radius: 10px;
            border: none;
            color: #ffffff;
            cursor: pointer;
            width: 100%;
            margin-top: 16px;
            transition: var(--transition);
        }

        .battle-join-btn:hover {
            transform: translateY(-2px);
            opacity: 0.95;
            box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
        }

        .battle-join-btn:disabled {
            background: var(--bg-stat-box);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            box-shadow: none;
            cursor: not-allowed;
            transform: none;
        }

        /* =================================================================
         * Advanced Dashboard Enhancements CSS Modules
         * ================================================================= */
         
        /* Prep Streaks & Weekly Consistency Dashboard */
        .streak-box {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
            border: 1px solid rgba(245, 158, 11, 0.15);
            border-radius: 14px;
            padding: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }
        .streak-icon {
            font-size: 1.8rem;
            filter: drop-shadow(0 2px 5px rgba(245, 158, 11, 0.3));
        }
        .streak-count {
            font-family: 'Outfit', sans-serif;
            font-size: 1.4rem;
            font-weight: 800;
            color: var(--text-primary);
            line-height: 1.1;
        }
        .streak-lbl {
            font-size: 0.72rem;
            color: var(--text-secondary);
            font-weight: 500;
            text-transform: uppercase;
        }
        .consistency-grid {
            display: flex;
            justify-content: space-between;
            gap: 6px;
            margin-top: 10px;
        }
        .consistency-day {
            flex: 1;
            background: var(--bg-stat-box);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 8px 0;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--text-secondary);
            transition: var(--transition);
        }
        .consistency-day.active {
            background: rgba(16, 185, 129, 0.1);
            border-color: var(--accent-green);
            color: var(--accent-green);
        }
        .consistency-day.active .check-dot {
            background: var(--accent-green);
            box-shadow: 0 0 8px var(--accent-green);
            animation: pulse-dot-green 2s infinite;
        }
        .check-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--border-color);
            transition: var(--transition);
        }

        @keyframes pulse-dot-green {
            0% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
            }
            70% {
                box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
            }
        }

        /* PvP Combat Arena Panel Layout */
        .dashboard-grid-middle {
            display: grid;
            grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
            gap: 24px;
            margin-bottom: 24px;
        }
        @media (max-width: 1200px) {
            .dashboard-grid-middle {
                grid-template-columns: 1fr;
            }
        }
        .pvp-stats-container {
            display: flex;
            gap: 20px;
            align-items: center;
            margin-bottom: 20px;
        }
        @media (max-width: 600px) {
            .pvp-stats-container {
                flex-direction: column;
                align-items: stretch;
            }
        }
        .pvp-gauge-wrapper {
            width: 140px;
            height: 140px;
            position: relative;
            flex-shrink: 0;
            margin: 0 auto;
        }
        .pvp-doughnut-text {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            pointer-events: none;
        }
        .pvp-doughnut-text .val {
            font-family: 'Outfit', sans-serif;
            font-size: 1.4rem;
            font-weight: 800;
            color: var(--text-primary);
            line-height: 1;
        }
        .pvp-doughnut-text .lbl {
            font-size: 0.65rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .pvp-stat-grid {
            flex: 1;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            width: 100%;
        }

        /* Combat Badge Cabinet styling */
        .badge-cabinet-title {
            font-size: 0.72rem;
            font-weight: 700;
            color: var(--text-secondary);
            text-transform: uppercase;
            margin-bottom: 10px;
            letter-spacing: 0.5px;
            border-top: 1px solid var(--border-color);
            padding-top: 12px;
        }
        .badge-cabinet {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }
        .combat-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 12px;
            background: var(--bg-stat-box);
            border: 1px solid var(--border-color);
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-secondary);
            opacity: 0.35;
            filter: grayscale(1);
            transition: var(--transition);
            position: relative;
            cursor: help;
        }
        .combat-badge.unlocked {
            opacity: 1;
            filter: none;
            color: var(--text-primary);
            background: rgba(139, 92, 246, 0.05);
            border-color: rgba(139, 92, 246, 0.25);
            box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
        }
        .combat-badge.unlocked.badge-sniper {
            background: rgba(16, 185, 129, 0.05);
            border-color: rgba(16, 185, 129, 0.25);
            box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
        }
        .combat-badge.unlocked.badge-speed {
            background: rgba(6, 182, 212, 0.05);
            border-color: rgba(6, 182, 212, 0.25);
            box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
        }
        .combat-badge.unlocked.badge-boiled {
            background: rgba(245, 158, 11, 0.05);
            border-color: rgba(245, 158, 11, 0.25);
            box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
        }
        .combat-badge .tooltip-text {
            visibility: hidden;
            width: 180px;
            background-color: #1f2937;
            color: #fff;
            text-align: center;
            border-radius: 6px;
            padding: 8px;
            position: absolute;
            z-index: 100;
            bottom: 125%;
            left: 50%;
            margin-left: -90px;
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 0.7rem;
            line-height: 1.3;
            box-shadow: 0 4px 15px rgba(0,0,0,0.25);
            pointer-events: none;
        }
        .combat-badge:hover .tooltip-text {
            visibility: visible;
            opacity: 1;
        }

        /* Wallet Coin & Combat logs Card */
        .pvp-wallet-card {
            border: 1px solid rgba(255, 255, 255, 0.3) !important;
            background: linear-gradient(135deg, #ea580c 0%, #f59e0b 50%, #d97706 100%) !important;
            box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2) !important;
            border-radius: 14px;
            padding: 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            position: relative;
            overflow: hidden;
            transition: var(--transition);
        }
        .pvp-wallet-card::before {
            content: '';
            position: absolute;
            top: -20%; left: -20%;
            width: 140%; height: 140%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
            z-index: 1;
            pointer-events: none;
        }
        .pvp-wallet-card:hover {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35) !important;
            border-color: rgba(255, 255, 255, 0.6) !important;
        }
        .coin-balance-title {
            font-size: 0.75rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.8) !important;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }
        .coin-balance-val {
            font-family: 'Outfit', sans-serif;
            font-size: 1.6rem;
            font-weight: 800;
            color: #ffffff !important;
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 4px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.15);
        }
        .coin-topup-btn {
            background: rgba(255, 255, 255, 0.2);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.4);
            border-radius: 8px;
            padding: 6px 12px;
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }
        .coin-topup-btn:hover {
            background: #ffffff !important;
            color: #ea580c !important;
            transform: translateY(-2px);
            box-shadow: 0 6px 14px rgba(245, 158, 11, 0.4);
        }
        .combat-log-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 180px;
            overflow-y: auto;
            padding-right: 4px;
        }
        .combat-log-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 12px;
            border-radius: 10px;
            background: var(--bg-stat-box);
            border: 1px solid var(--border-color);
            font-size: 0.78rem;
        }
        .combat-log-meta {
            display: flex;
            flex-direction: column;
            gap: 2px;
            flex: 1;
            min-width: 0;
        }
        .combat-log-opp {
            font-weight: 600;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .combat-log-sub {
            font-size: 0.68rem;
            color: var(--text-secondary);
        }
        .combat-log-result {
            font-family: 'Outfit', sans-serif;
            font-weight: 700;
            font-size: 0.78rem;
            padding: 3px 8px;
            border-radius: 6px;
            white-space: nowrap;
        }
        .result-victory {
            background: rgba(16, 185, 129, 0.1);
            color: var(--accent-green);
        }
        .result-defeat {
            background: rgba(239, 68, 68, 0.1);
            color: var(--accent-red);
        }
        .result-draw {
            background: rgba(156, 163, 175, 0.1);
            color: var(--text-secondary);
        }

        /* Pacing Diagnostic Quadrants legend list */
        .pacing-quadrants-legend {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
            margin-top: 12px;
            font-size: 0.68rem;
            font-weight: 600;
        }
        .pacing-legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--text-secondary);
        }
        .legend-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }

        
        /* 1. Slide-out AI Assistant Chat Drawer */
        .ai-chat-drawer {
            position: fixed;
            top: 0;
            right: -420px;
            width: 400px;
            height: 100%;
            background: var(--bg-sidebar);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-left: 1px solid var(--border-color);
            box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
            z-index: 9999;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
        }

        .ai-chat-drawer.drawer-active {
            right: 0;
        }

        .drawer-header {
            padding: 20px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(6, 182, 212, 0.02) 100%);
        }

        .drawer-header h3 {
            font-family: 'Outfit', sans-serif;
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .drawer-close-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 1.5rem;
            cursor: pointer;
            line-height: 1;
            transition: var(--transition);
        }

        .drawer-close-btn:hover {
            color: var(--accent-red);
            transform: scale(1.1);
        }

        .chat-history-container {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .chat-bubble {
            max-width: 85%;
            padding: 12px 16px;
            border-radius: 16px;
            font-size: 0.85rem;
            line-height: 1.45;
            word-wrap: break-word;
        }

        .bubble-assistant {
            background: var(--bg-stat-box);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            align-self: flex-start;
            border-bottom-left-radius: 4px;
        }

        .bubble-user {
            background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
            color: #ffffff;
            align-self: flex-end;
            border-bottom-right-radius: 4px;
            box-shadow: 0 4px 10px rgba(139, 92, 246, 0.15);
        }

        .chat-input-bar {
            padding: 16px 20px;
            border-top: 1px solid var(--border-color);
            display: flex;
            gap: 10px;
            background: var(--bg-sidebar);
        }

        .chat-input-field {
            flex: 1;
            background: var(--bg-base);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 10px 16px;
            color: var(--text-primary);
            font-size: 0.85rem;
            outline: none;
            transition: var(--transition);
        }

        .chat-input-field:focus {
            border-color: var(--accent-purple);
            box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
        }

        .chat-send-btn {
            background: var(--accent-purple);
            border: none;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .chat-send-btn:hover {
            background: var(--accent-cyan);
            transform: scale(1.05);
        }

        /* 2. Charts Layout (Doughnut + Radar side-by-side) */
        .overall-perf-charts-row {
            display: flex;
            gap: 20px;
            align-items: center;
            width: 100%;
            margin-bottom: 20px;
        }

        .chart-gauge-wrapper {
            width: 45%;
            display: flex;
            justify-content: center;
            position: relative;
        }

        .chart-radar-wrapper {
            width: 55%;
            height: 160px;
            position: relative;
        }

        @media (max-width: 600px) {
            .overall-perf-charts-row {
                flex-direction: column;
            }
            .chart-gauge-wrapper, .chart-radar-wrapper {
                width: 100%;
            }
        }

        /* 3. Pacing Diagnostics Scatter Chart Container */
        .pacing-scatter-container {
            width: 100%;
            height: 140px;
            position: relative;
            margin-top: 10px;
        }

        /* 4. Recommendations Carousel */
        .recommendations-carousel {
            display: flex;
            gap: 16px;
            overflow-x: auto;
            padding-bottom: 12px;
            scrollbar-width: thin;
            scrollbar-color: var(--border-color) transparent;
            scroll-snap-type: x mandatory;
        }

        .recommendations-carousel::-webkit-scrollbar {
            height: 6px;
        }

        .recommendations-carousel::-webkit-scrollbar-thumb {
            background: var(--border-color);
            border-radius: 4px;
        }

        .reco-card {
            flex: 0 0 260px;
            background: var(--bg-stat-box);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            scroll-snap-align: start;
            transition: var(--transition);
        }

        .reco-card:hover {
            border-color: rgba(139, 92, 246, 0.25);
            transform: translateY(-2px);
        }

        .reco-fit-badge {
            align-self: flex-start;
            font-size: 0.7rem;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 12px;
            text-transform: uppercase;
        }

        /* 5. Direct Matchmaking Status Sidebar Card */
        .quick-match-sidebar-card {
            margin: 15px 15px 5px 15px;
            padding: 14px;
            border-radius: 12px;
            border: 1px dashed rgba(139, 92, 246, 0.25);
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(6, 182, 212, 0.02) 100%);
            display: flex;
            flex-direction: column;
            gap: 10px;
            transition: var(--transition);
        }

        .quick-match-sidebar-card:hover {
            border-color: var(--accent-purple);
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
        }

        .queue-status-indicator {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .queue-dot-pulse {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--accent-cyan);
            position: relative;
        }

        .queue-dot-pulse::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: var(--accent-cyan);
            animation: ringPulse 1.5s infinite ease-in-out;
        }

        @keyframes ringPulse {
            0% { transform: scale(1); opacity: 0.8; }
            100% { transform: scale(2.8); opacity: 0; }
        }

        .queue-btn-shortcut {
            background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
            color: #ffffff;
            border: none;
            border-radius: 8px;
            padding: 6px 12px;
            font-size: 0.72rem;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
            text-align: center;
        }

        .queue-btn-shortcut:hover {
            opacity: 0.95;
            transform: translateY(-1px);
        }

        /* -------------------------------------------------------------
         * Responsive Navigation Drawer & Viewport Overrides
         * ------------------------------------------------------------- */
        .sidebar-toggle-btn {
            display: flex; /* Always display it */
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: var(--transition);
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .sidebar-toggle-btn:hover {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-primary);
        }
        .sidebar-toggle-btn svg {
            color: inherit;
        }

        .sidebar-close-btn {
            display: none;
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 6px;
            border-radius: 6px;
            transition: var(--transition);
            align-items: center;
            justify-content: center;
        }
        .sidebar-close-btn:hover {
            color: var(--text-primary);
            background: rgba(255, 255, 255, 0.05);
        }

        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 1199;
            transition: all 0.3s ease;
        }
        .sidebar-overlay.active {
            display: block;
        }

        /* Desktop Collapse styles (>= 1024px) */
        @media (min-width: 1024px) {
            /* Smooth transitions for sidebar width and properties */
            .sidebar {
                transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border 0.3s ease !important;
                overflow-x: hidden !important;
            }
            
            .sidebar-collapsed .sidebar {
                width: 76px !important;
            }
            
            /* Center elements when collapsed */
            .sidebar-collapsed .sidebar-brand {
                padding: 24px 0 !important;
                justify-content: center !important;
            }
            .sidebar-collapsed .sidebar-brand > div {
                justify-content: center !important;
                width: 100% !important;
                gap: 0 !important;
            }
            .sidebar-collapsed .sidebar-logo-text {
                display: none !important;
            }
            
            /* Sidebar Menu Items */
            .sidebar-collapsed .sidebar-item-text {
                display: none !important;
            }
            .sidebar-collapsed .sidebar-item {
                padding: 12px 0 !important;
                justify-content: center !important;
                border-radius: 12px !important;
                width: 44px !important;
                margin: 0 auto !important;
            }
            .sidebar-collapsed .sidebar-item-icon {
                font-size: 1.25rem !important;
                width: auto !important;
                margin: 0 !important;
            }
            
            /* Quick queue card compact version */
            .sidebar-collapsed #sidebar-quick-queue-card {
                padding: 10px 4px !important;
                text-align: center !important;
                margin: 10px 8px !important;
            }
            .sidebar-collapsed #sidebar-quick-queue-card .queue-status-indicator span:last-child,
            .sidebar-collapsed #sidebar-quick-queue-card #quick-queue-timer-text {
                display: none !important;
            }
            .sidebar-collapsed #sidebar-quick-queue-card .queue-btn-shortcut {
                padding: 4px 6px !important;
                font-size: 0.6rem !important;
                width: 100% !important;
            }
            
            /* AI Card compact version */
            .sidebar-collapsed .sidebar-ai-card {
                padding: 10px 0 !important;
                justify-content: center !important;
                margin: 16px 8px !important;
            }
            .sidebar-collapsed .sidebar-ai-card .ai-details,
            .sidebar-collapsed .sidebar-ai-card .ai-arrow {
                display: none !important;
            }
            
            /* Close button should be hidden on desktop collapses */
            .sidebar-collapsed .sidebar-close-btn {
                display: none !important;
            }
        }

        @media (max-width: 1024px) {
            .sidebar-close-btn {
                display: flex;
            }
            .sidebar {
                position: fixed !important;
                top: 0 !important;
                left: -280px !important;
                bottom: 0 !important;
                height: 100vh !important;
                z-index: 1200 !important;
                width: 280px !important;
                transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
                background: var(--bg-sidebar) !important;
                border-right: 1px solid var(--border-color) !important;
                overflow-x: hidden !important;
            }
            .sidebar.open {
                transform: translateX(280px) !important;
                box-shadow: 0 0 50px rgba(0, 0, 0, 0.6) !important;
            }

            /* Hide full username/logout from top header */
            .nav-user > div:last-of-type span {
                display: none !important;
            }
            .nav-user .btn-logout {
                display: none !important;
            }
            .mobile-only-logout {
                display: flex !important;
            }
        }

        @media (max-width: 768px) {
            .navbar-header {
                padding: 15px 20px !important;
            }
            .header-title-container p {
                display: none !important;
            }
            .header-title-container h2 {
                font-size: 1.15rem !important;
            }
            
            /* Compact wallet balance */
            #wallet-chip {
                padding: 5px 10px !important;
                font-size: 0.75rem !important;
            }

            /* Compact trial badge */
            #trial-badge-container {
                padding: 6px 10px !important;
            }
            #trial-badge-container span:first-child {
                display: none !important; /* hide "Premium Trial" text */
            }

            /* Banner Responsiveness to avoid horizontal overflow */
            .profile-complete-banner, .guest-warning-banner {
                flex-direction: column !important;
                align-items: stretch !important;
                gap: 15px !important;
                padding: 20px !important;
            }
            .profile-complete-actions, .guest-warning-actions {
                flex-direction: row !important;
                justify-content: flex-start !important;
                width: 100% !important;
                flex-shrink: 1 !important;
            }
            .profile-complete-actions .btn, .guest-warning-actions .btn {
                flex: 1 !important;
                text-align: center !important;
                justify-content: center !important;
            }
        }

        @media (max-width: 576px) {
            .dashboard-floating-alerts {
                bottom: 16px !important;
                right: 16px !important;
                left: 16px !important;
                width: auto !important;
                max-width: none !important;
                gap: 12px !important;
            }
            .dashboard-floating-alerts .profile-complete-banner {
                padding: 16px !important;
            }
        }

        /* Narrow viewports header and layout adjustments */
        @media (max-width: 600px) {
            .header-title-container {
                display: none !important; /* Hide title text on mobile to make space for user controls */
            }
            .nav-user {
                gap: 8px !important;
                width: auto !important;
            }
        }

        @media (max-width: 480px) {
            .workspace {
                padding: 15px 10px !important; /* Smaller margins on mobile */
            }
            .glass-panel {
                padding: 16px !important; /* Compact layout in cards */
            }
            .overall-perf-charts-row {
                gap: 10px !important;
            }
            
            /* Compact stats matrix grid */
            .perf-right-stats {
                grid-template-columns: 1fr 1fr !important;
                gap: 10px !important;
                margin-top: 10px !important;
            }
            .perf-stat-box {
                padding: 8px 10px !important;
                border-radius: 10px !important;
            }
            .perf-stat-val {
                font-size: 1rem !important;
            }
            .perf-stat-lbl {
                font-size: 0.65rem !important;
            }

            /* Live Ticker compact style & shrink safe config */
            .live-activity-ticker-container {
                padding: 10px 12px !important;
                margin-bottom: 16px !important;
            }
            .ticker-prefix span:last-child {
                display: none !important; /* Hide "LIVE India Feed" text, pulsing dot remains */
            }
            .ticker-content-wrapper {
                margin-left: 6px !important;
                min-width: 0 !important; /* allow flex shrink */
            }
            #live-activity-ticker-text {
                font-size: 0.78rem !important;
                min-width: 0 !important;
            }
            .ticker-action-badge {
                font-size: 0.65rem !important;
                padding: 3px 8px !important;
            }
            
            /* Wallet and notification badge spacing */
            #wallet-chip {
                padding: 4px 8px !important;
            }
            #trial-badge-container {
                display: none !important; /* Hide trial badge on extremely small viewports to save space */
            }
        }

        /* Study Buddies list & action styling */
        .buddy-row-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 12px;
            border-radius: 12px;
            background: var(--bg-stat-box);
            border: 1px solid var(--border-color);
            transition: var(--transition);
            font-size: 0.8rem;
            width: 100%;
        }
        .buddy-row-item:hover {
            border-color: rgba(139, 92, 246, 0.25);
            transform: translateX(2px);
        }
        .buddy-meta {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            min-width: 0;
        }
        .buddy-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 0.85rem;
            color: #ffffff;
            font-family: 'Outfit';
            flex-shrink: 0;
        }
        .buddy-info {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }
        .buddy-name {
            font-weight: 700;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .buddy-location {
            font-size: 0.65rem;
            color: var(--text-secondary);
        }
        .buddy-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }
        .buddy-btn {
            padding: 5px 8px;
            font-size: 0.65rem;
            font-weight: 700;
            border-radius: 6px;
            cursor: pointer;
            border: 1px solid transparent;
            display: inline-flex;
            align-items: center;
            gap: 3px;
            font-family: 'Outfit';
            transition: var(--transition);
        }
        .buddy-btn:hover {
            transform: translateY(-1px);
        }
        .buddy-btn-chat {
            background: rgba(139, 92, 246, 0.08);
            color: var(--accent-purple);
            border-color: rgba(139, 92, 246, 0.2);
        }
        .buddy-btn-challenge {
            background: rgba(6, 182, 212, 0.08);
            color: var(--accent-cyan);
            border-color: rgba(6, 182, 212, 0.2);
        }
        .buddy-btn-accept {
            background: rgba(16, 185, 129, 0.08);
            color: var(--accent-green);
            border-color: rgba(16, 185, 129, 0.2);
        }
        .buddy-btn-decline {
            background: rgba(239, 68, 68, 0.08);
            color: var(--accent-red);
            border-color: rgba(239, 68, 68, 0.2);
        }
        .buddy-btn-add {
            background: rgba(139, 92, 246, 0.1);
            color: var(--accent-purple);
            border-color: rgba(139, 92, 246, 0.3);
        }

        /* Practice Generator active state button overlays */
        .practice-q-btn, .practice-t-btn {
            border: 1px solid var(--border-color);
            transition: var(--transition);
        }
        .practice-q-btn.active, .practice-t-btn.active {
            background: var(--bg-card) !important;
            color: var(--accent-cyan) !important;
            border-color: var(--accent-cyan) !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        }

        /* Exams Explorer responsiveness and styles */
        @media (max-width: 768px) {
            .search-field {
                padding: 14px 18px 14px 48px;
                font-size: 0.95rem;
            }
            .search-icon-svg {
                left: 18px;
                width: 18px;
                height: 18px;
            }
        }
        @media (max-width: 480px) {
            .exams-grid {
                grid-template-columns: 1fr !important;
                gap: 16px !important;
            }
            .exam-item-card {
                padding: 18px !important;
                border-radius: 16px !important;
            }
            .card-title-text {
                font-size: 1.15rem !important;
            }
            .recruitment-row {
                padding: 8px 10px !important;
                gap: 6px !important;
            }
            .recruitment-row-col-val {
                font-size: 0.72rem !important;
            }
        }

        /* PvP Battleground Redesign Styles */
        .pvp-stats-grid {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 20px;
            margin-bottom: 24px;
        }
        .pvp-stats-bar-card, .pvp-badges-cabinet-card {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
        }
        .pvp-stats-row {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 12px;
            width: 100%;
        }
        .pvp-stat-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px;
            border-radius: 12px;
            background: var(--bg-stat-box);
            border: 1px solid var(--border-color);
            transition: var(--transition);
        }
        .pvp-stat-item:hover {
            transform: translateY(-2px);
            border-color: rgba(139, 92, 246, 0.2);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        .pvp-stat-icon {
            font-size: 1.4rem;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border-radius: 8px;
            background: rgba(255,255,255,0.02);
            flex-shrink: 0;
        }
        .pvp-stat-details {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }
        .pvp-stat-val {
            font-family: 'Outfit', sans-serif;
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--text-primary);
            line-height: 1.1;
        }
        .pvp-stat-lbl {
            font-size: 0.68rem;
            color: var(--text-secondary);
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-top: 2px;
        }
        .pvp-badges-row {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            height: 100%;
            align-items: center;
        }
        .pvp-badges-row .combat-badge {
            flex: 1;
            min-width: 110px;
            justify-content: center;
            height: 48px;
            padding: 0 10px;
        }

        /* PvP Redesign Responsiveness */
        @media (max-width: 1200px) {
            .pvp-stats-grid {
                grid-template-columns: 1fr;
            }
        }
        @media (max-width: 900px) {
            .pvp-stats-row {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        @media (max-width: 600px) {
            .pvp-stats-row {
                grid-template-columns: repeat(2, 1fr);
            }
            .pvp-badges-row .combat-badge {
                flex: none;
                width: 100%;
            }
        }
        @media (max-width: 400px) {
            .pvp-stats-row {
                grid-template-columns: 1fr;
            }
        }

        /* Global Battles Redesign Styles */
        .global-stats-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            width: 100%;
        }
        .global-card-badge {
            font-size: 0.7rem;
            text-transform: uppercase;
            font-weight: 800;
            padding: 3px 8px;
            border-radius: 6px;
            letter-spacing: 0.5px;
        }
        .global-card-info-item {
            font-size: 0.78rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 0;
            border-bottom: 1px dashed rgba(255,255,255,0.04);
        }
        .global-card-info-item:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }
        .global-card-info-item span:first-child {
            color: var(--text-secondary);
            font-weight: 500;
        }
        .global-card-info-item span:last-child {
            color: var(--text-primary);
            font-weight: 700;
        }
        .light-info-box {
            background: #ffffff !important;
            border: 1px solid var(--border-color) !important;
            color: #111827 !important;
            backdrop-filter: none !important;
        }
        .light-info-box .global-card-info-item {
            border-bottom: 1px dashed rgba(0, 0, 0, 0.08) !important;
        }
        .light-info-box .global-card-info-item:last-child {
            border-bottom: none !important;
        }
        .light-info-box .global-card-info-item span:first-child {
            color: #4b5563 !important;
        }
        .light-info-box .global-card-info-item span:last-child {
            color: #111827 !important;
        }
        .comp-redesign-tabs {
            display: flex;
            background: var(--bg-stat-box);
            padding: 4px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
        }
        .comp-tab-btn {
            flex: 1;
            background: none;
            border: none;
            padding: 8px 12px;
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--text-secondary);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: 'Outfit';
            text-align: center;
        }
        .comp-tab-btn:hover {
            color: var(--text-primary);
        }
        .comp-tab-btn.active {
            background: var(--bg-card);
            color: var(--accent-cyan);
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        .global-timer-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: rgba(245,158,11,0.06);
            border: 1px solid rgba(245,158,11,0.2);
            color: var(--accent-orange);
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 700;
            font-family: 'Outfit', sans-serif;
            margin-top: 10px;
        }
        .global-timer-badge.live {
            background: rgba(16,185,129,0.06);
            border-color: rgba(16,185,129,0.2);
            color: var(--accent-green);
        }

        /* Global Battles Redesign Responsiveness */
        @media (max-width: 900px) {
            .global-stats-row {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (max-width: 480px) {
            .global-stats-row {
                grid-template-columns: 1fr;
            }
        }

        /* Error Screen & Access Denied Redesign */
        .error-screen-container {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 80vh;
            padding: 20px;
            box-sizing: border-box;
        }
        .error-card-panel {
            max-width: 480px;
            width: 100%;
            padding: 40px;
            text-align: center;
            border-radius: 24px;
            box-shadow: var(--shadow-primary);
            animation: errorSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }
        @keyframes errorSlideIn {
            from { opacity: 0; transform: translateY(20px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        .error-icon-glow {
            font-size: 4rem;
            margin-bottom: 20px;
            display: inline-block;
            filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.4));
            animation: errorPulse 2s infinite ease-in-out;
        }
        .error-icon-shield {
            font-size: 4rem;
            margin-bottom: 20px;
            display: inline-block;
            filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.4));
            animation: shieldPulse 2.5s infinite ease-in-out;
        }
        @keyframes errorPulse {
            0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.4)); }
            50% { transform: scale(1.06); filter: drop-shadow(0 0 25px rgba(239, 68, 68, 0.7)); }
        }
        @keyframes shieldPulse {
            0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.4)); }
            50% { transform: scale(1.06); filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.7)); }
        }

        @media (max-width: 480px) {
            .dashboard-floating-alerts {
                bottom: 12px;
                right: 12px;
                width: calc(100% - 24px);
                max-width: none;
            }
        }