        :root {
            --bg-primary: #05051E;
            --bg-secondary: #141432;
            --bg-tertiary: #1F1F40;
            --text-primary: #FFFFFF;
            --text-secondary: #A0A0B8;
            --accent-cyan: #00E0FF;
            --accent-pink: #FF3D71;
            --border-color: #2a2a4a;
            --btn-green: #4CAF50;
            --btn-orange: #FF9800;
        }

        body { 
            font-family: 'Poppins', sans-serif; 
            background-color: var(--bg-primary); 
            color: white; 
            padding-top: 80px; 
            padding-bottom: 100px; 
            overflow-x: hidden; 
        }
        
        /* === ANIMATIONS === */
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes popIn {
            0% { opacity: 0; transform: scale(0.8); }
            100% { opacity: 1; transform: scale(1); }
        }
        .animate-enter { animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
        .section { display: none; opacity: 0; } 
        .section.active { display: block; animation: fadeUp 0.4s ease-out forwards; } 
        button:active, .category-card:active, .game-card:active, .menu-item:active, .btn-action:active, .support-card:active { transform: scale(0.95); transition: transform 0.1s; }

        /* === HEADER === */
        .app-header { 
            position: fixed; top: 0; left: 0; width: 100%; height: 75px; 
            background-color: var(--bg-primary); 
            display: flex; justify-content: space-between; align-items: center; 
            padding: 0 1.2rem; z-index: 1000;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        }
        .user-info { display: flex; align-items: center; gap: 0.75rem; }
        .user-avatar { 
            width: 50px; height: 50px; border-radius: 50%; 
            background-color: var(--accent-cyan); color: var(--bg-primary); 
            display: flex; justify-content: center; align-items: center; 
            font-weight: 700; font-size: 1.2rem; text-transform: uppercase; 
            box-shadow: 0 0 10px rgba(0, 224, 255, 0.3);
            background-size: cover;
            background-position: center;
        }
        .welcome-text h2 { font-size: 0.9rem; color: var(--text-secondary); margin: 0; font-weight: 400; }
        .welcome-text p { font-size: 1.1rem; color: var(--text-primary); margin: 0; font-weight: 600; }
        
        .wallet-button { 
            display: flex; align-items: center; gap: 0.6rem; 
            background-color: rgba(255,255,255,0.05); 
            border: 1px solid rgba(0, 224, 255, 0.3);
            padding: 0.4rem 0.5rem 0.4rem 1rem; border-radius: 50px; 
            text-decoration: none; color: var(--text-primary); transition: all 0.3s;
        }
        .wallet-text { font-weight: 600; font-size: 1rem; }
        .wallet-plus { 
            background-color: var(--accent-cyan); color: var(--bg-primary); 
            border-radius: 50%; width: 24px; height: 24px; 
            display: inline-flex; justify-content: center; align-items: center; 
            font-weight: bold; font-size: 1rem;
        }

        /* === HAMBURGER MENU & THEME PANEL === */
        /* ── Hamburger icon button (image 5 style) ── */
        .hamburger-menu {
            width: 42px;
            height: 42px;
            background: rgba(0,224,255,0.1);
            border: 1.5px solid rgba(0,224,255,0.25);
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            padding: 0;
            margin-right: 0.4rem;
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s;
            flex-shrink: 0;
        }
        .hamburger-menu:active { background: rgba(0,224,255,0.2); }
        .hbline {
            height: 2.5px;
            border-radius: 2px;
            background: var(--accent-cyan);
            transition: width 0.2s;
        }
        .hbline-1 { width: 22px; }
        .hbline-2 { width: 16px; align-self: flex-start; margin-left: 10px; }
        .hbline-3 { width: 10px; align-self: flex-start; margin-left: 10px; }

        /* ── New theme modal overlay ── */
        /* ── Theme Panel (Bottom Sheet) ── */
        .theme-panel-overlay {
            position: fixed; top:0; left:0;
            width:100%; height:100%;
            background: rgba(0,0,0,0.7);
            backdrop-filter: blur(6px);
            z-index: 2000;
            display: none;
            align-items: flex-end;
            justify-content: center;
        }
        .theme-panel {
            background: #0d1526;
            border-radius: 28px 28px 0 0;
            padding: 0 0 40px;
            width: 100%;
            max-width: 520px;
            border-top: 1px solid rgba(255,255,255,0.08);
            position: relative;
            animation: tpSlideUp 0.35s cubic-bezier(0.175,0.885,0.32,1.1) forwards;
            max-height: 70vh; overflow-y: auto;
        }
        @keyframes tpSlideUp {
            from { opacity:0; transform:translateY(100%); }
            to   { opacity:1; transform:translateY(0); }
        }
        .tp-handle {
            width:40px; height:4px; border-radius:2px;
            background:rgba(255,255,255,0.15);
            margin:14px auto 0;
        }
        .theme-panel-title {
            color: #fff; font-size:1.1rem; font-weight:700;
            padding:18px 20px 14px; letter-spacing:0.3px;
        }
        .theme-close-btn {
            position: absolute; top:14px; right:16px;
            background: rgba(255,255,255,0.08);
            border: none; border-radius:50%;
            color: rgba(255,255,255,0.6); font-size:1rem;
            cursor: pointer; width:32px; height:32px;
            display:flex; align-items:center; justify-content:center;
        }
        .theme-cards-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            padding: 0 14px 8px;
            overflow-x: visible;
        }
        .theme-card {
            border-radius: 16px;
            border: 2px solid rgba(255,255,255,0.08);
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            gap: 10px; cursor: pointer;
            transition: border-color 0.2s, transform 0.15s;
            padding: 20px 10px;
            position: relative; overflow: hidden;
        }
        .theme-card:active { transform: scale(0.96); }
        .theme-card.active {
            border-color: var(--accent-cyan);
            box-shadow: 0 0 16px rgba(0,230,255,0.2);
        }
        .theme-card-icon { font-size: 1.8rem; }
        .theme-card-name {
            font-size: 0.78rem; font-weight: 700;
            color: #fff; text-align: center;
        }

        /* ── Custom color picker section ── */
        .theme-custom-section {
            display: none;
            margin-top: 20px;
            padding: 18px;
            background: rgba(255,255,255,0.04);
            border-radius: 14px;
            border: 1px solid rgba(255,255,255,0.08);
        }
        .theme-custom-section.show { display: block; }
        .tcs-title { color:#fff; font-weight:700; font-size:1rem; margin-bottom:4px; }
        .tcs-sub   { color:rgba(255,255,255,0.5); font-size:0.8rem; margin-bottom:16px; }
        .color-wheel-wrap {
            display: flex;
            justify-content: center;
            margin-bottom: 16px;
        }
        #colorWheelCanvas { border-radius: 50%; cursor: crosshair; touch-action: none; }
        .color-slider-row {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 18px;
        }
        #colorPreviewCircle {
            width: 44px; height: 44px;
            border-radius: 50%;
            border: 3px solid rgba(255,255,255,0.2);
            flex-shrink: 0;
        }
        #brightnessSlider {
            flex: 1;
            -webkit-appearance: none;
            height: 6px;
            border-radius: 3px;
            outline: none;
            cursor: pointer;
        }
        #brightnessSlider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 20px; height: 20px;
            border-radius: 50%;
            background: #fff;
            border: 2px solid rgba(0,0,0,0.3);
            box-shadow: 0 2px 6px rgba(0,0,0,0.4);
        }
        .tcs-btns { display:flex; gap:10px; }
        .tcs-cancel {
            flex:1; padding:12px; border-radius:12px;
            border: 1.5px solid rgba(255,255,255,0.2);
            background:transparent; color:rgba(255,255,255,0.6);
            font-size:0.9rem; font-weight:600; cursor:pointer;
        }
        .tcs-apply {
            flex:1; padding:12px; border-radius:12px;
            border:none; background:var(--accent-cyan);
            color:#05051E; font-size:0.9rem; font-weight:700;
            cursor:pointer; box-shadow:0 4px 14px rgba(0,224,255,0.3);
            transition:transform 0.12s;
        }
        .tcs-apply:active { transform:scale(0.96); }
        /* === WALLET & WITHDRAW STYLES === */
        .wallet-card {
            background: linear-gradient(135deg, #7F00FF, #00C6FF);
            border-radius: 20px; padding: 25px 20px; color: white; margin-bottom: 25px;
            box-shadow: 0 10px 25px rgba(0, 100, 255, 0.3); position: relative; overflow: hidden;
        }
        .wallet-card::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%); pointer-events: none; }
        .wallet-label { font-size: 0.8rem; text-transform: uppercase; opacity: 0.8; letter-spacing: 0.5px; margin-bottom: 5px; }
        .wallet-balance { font-size: 2.5rem; font-weight: 700; margin-bottom: 15px; line-height: 1.1; }
        .wallet-divider { height: 1px; background-color: rgba(255,255,255,0.2); margin-bottom: 15px; }
        .wallet-details { display: flex; justify-content: space-between; }
        .wallet-sub-value { font-size: 1.2rem; font-weight: 600; }
        .wallet-actions { display: flex; gap: 15px; margin-bottom: 30px; }
        .btn-action { flex: 1; border: none; border-radius: 12px; padding: 14px; font-weight: 600; color: white; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.95rem; box-shadow: 0 4px 10px rgba(0,0,0,0.3); cursor: pointer; }
        .btn-add { background-color: var(--btn-green); }
        .btn-withdraw { background-color: var(--btn-orange); }

        /* === ADD MONEY PAGE SPECIFIC STYLES === */
        .am-input-group { 
            background-color: var(--bg-secondary); 
            border: 1px solid var(--border-color); 
            border-radius: 12px; 
            display: flex; align-items: center; 
            padding: 15px; margin-bottom: 25px; 
        }
        .am-currency-symbol { 
            font-size: 1.5rem; color: var(--accent-cyan); 
            font-weight: 600; margin-right: 15px; 
        }
        .am-input { 
            background: transparent; border: none; color: white; 
            width: 100%; font-size: 1.1rem; outline: none; 
        }
        .am-input::placeholder { color: #6c757d; font-size: 1rem; }
        
        .btn-cyan-block { 
            width: 100%; background-color: var(--accent-cyan); color: #000; 
            font-weight: 700; padding: 16px; border-radius: 12px; border: none; 
            font-size: 1.1rem; margin-bottom: 30px; cursor: pointer;
        }
        
        .instruction-card { 
            background-color: var(--bg-secondary); border-radius: 16px; 
            padding: 20px; border: 1px solid var(--border-color); 
        }
        .instruction-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; color: white; }
        .instruction-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
        .instruction-item:last-child { margin-bottom: 0; }
        .instruction-icon { 
            font-size: 1.2rem; color: var(--accent-cyan); 
            width: 25px; text-align: center; flex-shrink: 0; margin-top: 2px; 
        }
        .instruction-text { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }

        /* === COIN PACKAGES STYLES === */
        .zapupi-header { text-align: center; margin-bottom: 28px; }
        .zapupi-header h2 { font-size: 1.6rem; font-weight: 700; color: white; margin-bottom: 4px; }
        .zapupi-header p { font-size: 0.9rem; color: var(--text-secondary); }
        .coin-packages-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
        .coin-package-card {
            background: #fff; border-radius: 18px; padding: 22px 15px;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
            border: 2px solid transparent; position: relative; overflow: hidden;
        }
        .coin-package-card:active { transform: scale(0.95); }
        .coin-package-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,224,255,0.2); }
        .coin-package-card.featured { border-color: var(--accent-cyan); }
        .coin-package-card.featured::after {
            content: 'BEST VALUE'; position: absolute; top: 8px; right: -22px;
            background: var(--accent-cyan); color: #000; font-size: 0.55rem; font-weight: 700;
            padding: 3px 30px; transform: rotate(45deg); letter-spacing: 0.5px;
        }
        .pkg-amount { font-size: 2.2rem; font-weight: 800; color: #111; margin-bottom: 4px; }
        .pkg-coins { font-size: 1rem; font-weight: 600; color: #00b8cc; }
        .zapupi-how { background: #fff; border-radius: 16px; padding: 20px; border: 1px solid var(--border-color); }
        .zapupi-how h3 { font-size: 1rem; font-weight: 700; color: white; margin-bottom: 18px; }
        .zapupi-how-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
        .zapupi-how-item:last-child { margin-bottom: 0; }
        .zapupi-how-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
        .zapupi-how-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }

        /* === ZAP PAYMENT PAGE === */
        /* === ZAP UPI PAYMENT PAGE — REDESIGNED === */
        /* ── ZapUPI Payment Page ── */
        .zap-page {
            min-height: 100vh;
            background: #f0f2f5;
            display: flex; align-items: flex-start; justify-content: center;
            padding: 0;
        }
        .zap-card {
            background: #fff; width: 100%; max-width: 480px;
            min-height: 100vh;
            animation: popIn 0.35s;
            display: flex; flex-direction: column;
        }
        /* Green header — like original ZapUPI */
        .zap-card-header {
            background: #00897B;
            padding: 20px 20px 18px;
            display: flex; align-items: center; gap: 16px;
        }
        .zap-card-logo {
            width: 52px; height: 52px; border-radius: 50%;
            background: rgba(255,255,255,0.2); overflow: hidden;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0; font-size: 1.3rem; font-weight: 800; color: white;
        }
        .zap-card-logo img { width: 100%; height: 100%; object-fit: contain; }
        .zap-card-info { color: white; flex: 1; }
        .zap-card-info .paying-to-label { display: none; }
        .zap-card-info h4 {
            font-size: 1.1rem; font-weight: 700; margin: 0 0 3px; color: white;
            display: flex; align-items: center; gap: 8px;
        }
        .verified-badge {
            font-size: 0.68rem; background: rgba(255,255,255,0.25); color: white;
            padding: 2px 7px; border-radius: 20px; font-weight: 600;
        }
        .zap-card-info .txn-id { font-size: 0.72rem; color: rgba(255,255,255,0.75); margin: 0; font-family: monospace; }
        .zap-card-info .zap-amount { font-size: 1.8rem; font-weight: 800; margin: 4px 0 0; color: white; }

        /* White QR body */
        .zap-card-body {
            background: #fff;
            flex: 1; display: flex; flex-direction: column;
            padding: 0;
        }
        .zap-qr-section {
            background: #fff;
            padding: 24px 20px 16px;
            text-align: center;
        }
        .zap-qr-section-label {
            font-size: 0.85rem; color: #666; margin-bottom: 18px;
        }
        .zap-qr-wrap {
            width: 100%; background: #fff;
            display: flex; justify-content: center; align-items: center;
            margin-bottom: 20px; min-height: 200px;
        }
        .zap-qr-wrap img { width: 240px; height: 240px; display: block; border: 1px solid #eee; border-radius: 8px; }
        .zap-qr-loader {
            width: 40px; height: 40px; border: 3px solid #e0e0e0;
            border-top-color: #00897B; border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        /* Timer */
        .zap-timer-row {
            font-size: 0.9rem; color: #555; margin-bottom: 12px;
        }
        .zap-timer-row span {
            font-size: 1.15rem; font-weight: 700; color: #333;
        }

        /* Animated progress bar dots */
        .zap-bar {
            display: flex; justify-content: center; gap: 6px; margin-bottom: 14px;
        }
        .zap-bar span {
            width: 32px; height: 6px; border-radius: 3px;
            background: #e0e0e0;
            animation: zapBarAnim 1.6s infinite ease-in-out;
        }
        .zap-bar span:nth-child(1){animation-delay:0s}
        .zap-bar span:nth-child(2){animation-delay:0.2s}
        .zap-bar span:nth-child(3){animation-delay:0.4s}
        .zap-bar span:nth-child(4){animation-delay:0.6s}
        .zap-bar span:nth-child(5){animation-delay:0.8s}
        @keyframes zapBarAnim{
            0%,100%{ background:#e0e0e0; }
            50%{ background:#00c853; }
        }
        .zap-status-msg {
            font-size: 0.85rem; color: #888; text-align: center; margin-bottom: 6px;
        }

        /* Action buttons */
        .zap-actions { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
        .zap-dl-btn {
            width: 100%; background: #00c853; color: white; border: none;
            border-radius: 8px; padding: 16px; font-size: 1rem; font-weight: 700;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center; gap: 8px;
            transition: all 0.15s;
        }
        .zap-dl-btn:active { transform: scale(0.97); }
        .zap-manual-btn {
            width: 100%; background: transparent; color: #ff9800;
            border: 1.5px solid #ff9800;
            border-radius: 14px; padding: 14px; font-size: 0.95rem; font-weight: 700;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center; gap: 8px;
            transition: all 0.15s;
        }
        .zap-manual-btn:active { transform: scale(0.97); }

        /* Footer info */
        .zap-footer {
            text-align: center; font-size: 0.78rem; color: #444;
            padding: 12px 16px 20px;
        }
        .zap-footer b { color: #666; }

        /* === ZAP PAYMENT PAGE === */

        /* === PREPARING PAGE STYLES === */
        .preparing-container { height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
        .countdown-circle {
            position: relative; width: 120px; height: 120px; margin-bottom: 40px;
            display: flex; justify-content: center; align-items: center;
        }
        .countdown-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
        .countdown-circle-bg { fill: none; stroke: var(--bg-secondary); stroke-width: 8; }
        .countdown-circle-progress { 
            fill: none; stroke: var(--accent-cyan); stroke-width: 8; stroke-linecap: round;
            stroke-dasharray: 283; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear;
        }
        .countdown-number { font-size: 3rem; font-weight: 700; color: white; z-index: 10; }
        .countdown-ripple {
            position: absolute; width: 100%; height: 100%; border-radius: 50%;
            border: 2px solid var(--accent-cyan); animation: ripple 1.5s infinite; opacity: 0;
        }
        @keyframes ripple { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.5); opacity: 0; } }

        /* === PAYMENT QR PAGE STYLES === */
        .payment-qr-card {
            background-color: #000; border-radius: 20px; padding: 20px; margin-top: 20px;
            border: 1px solid #333; position: relative;
        }
        .close-qr-btn {
            position: absolute; top: -10px; right: -10px; width: 30px; height: 30px;
            background-color: #ff3d3d; color: white; border-radius: 50%; border: none;
            display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 14px; z-index: 10;
        }
        .pay-header { display: flex; gap: 15px; align-items: center; margin-bottom: 25px; background: #1a1a1a; padding: 10px; border-radius: 10px; }
        .upi-logo-box { width: 60px; height: 60px; background: white; border-radius: 8px; display: flex; justify-content: center; align-items: center; padding: 5px; }
        .upi-logo-box img { width: 100%; object-fit: contain; }
        .pay-info h4 { margin: 0; font-size: 1.1rem; color: white; font-weight: 700; }
        .pay-info span { font-size: 0.8rem; color: #ffbf00; display: flex; align-items: center; gap: 5px; }
        .qr-container { background: white; padding: 15px; border-radius: 10px; margin-bottom: 20px; text-align: center; }
        .qr-image { width: 100%; max-width: 250px; display: block; margin: 0 auto; }
        .qr-timer { color: #ffbf00; font-weight: 600; text-align: center; margin-bottom: 10px; font-size: 0.95rem; }
        
        .payment-loader { display: flex; justify-content: center; gap: 5px; margin-bottom: 20px; }
        .payment-loader span {
            width: 25px; height: 4px; background-color: #333; border-radius: 2px;
            animation: loaderBar 1.5s infinite ease-in-out;
        }
        .payment-loader span:nth-child(1) { animation-delay: 0.0s; }
        .payment-loader span:nth-child(2) { animation-delay: 0.2s; }
        .payment-loader span:nth-child(3) { animation-delay: 0.4s; }
        .payment-loader span:nth-child(4) { animation-delay: 0.6s; }
        .payment-loader span:nth-child(5) { animation-delay: 0.8s; }
        @keyframes loaderBar { 0%, 100% { background-color: #333; } 50% { background-color: white; } }

        .btn-paytm { background: white; color: black; width: 100%; padding: 12px; border-radius: 8px; font-weight: 700; border: none; margin-bottom: 10px; display: flex; justify-content: center; align-items: center; gap: 10px; }
        .btn-download-qr { background: transparent; border: 1px solid var(--accent-cyan); color: white; width: 100%; padding: 12px; border-radius: 8px; font-weight: 600; }
        .payment-details-footer { margin-top: 25px; padding-top: 15px; border-top: 1px solid #333; }
        .detail-row { display: flex; justify-content: space-between; font-size: 0.95rem; margin-bottom: 8px; }
        .detail-row span:first-child { color: var(--text-secondary); }
        .detail-row span:last-child { color: white; font-weight: 600; font-family: monospace; }
        
        /* NEW: Payment Verification Styles */
        .btn-verify-payment { width: 100%; background-color: #28a745; color: white; padding: 12px; border-radius: 8px; font-weight: 700; border: none; margin-top: 15px; text-transform: uppercase; letter-spacing: 0.5px; }
        .verification-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 9999; display: flex; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(5px); }
        .verification-card { background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 20px; padding: 25px; width: 100%; max-width: 350px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: popIn 0.3s; }
        .verification-card h4 { color: white; font-weight: 600; margin-bottom: 20px; text-align: center; }
        .verification-card label { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 8px; display: block; }

        /* === REFERRAL PAGE STYLES === */
        .referral-card-main { background-color: var(--bg-secondary); border-radius: 16px; padding: 25px 20px; text-align: center; margin-bottom: 25px; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
        .referral-title { font-size: 0.8rem; letter-spacing: 1px; color: var(--text-secondary); margin-bottom: 15px; text-transform: uppercase; }
        .referral-code-box { border: 2px solid var(--accent-cyan); border-radius: 50px; padding: 10px 30px; display: inline-block; font-size: 1.6rem; font-weight: 700; color: white; margin-bottom: 25px; background: rgba(0, 224, 255, 0.05); }
        .referral-actions { display: flex; gap: 15px; justify-content: center; }
        .btn-ref-copy { background: transparent; border: 1px solid var(--accent-cyan); color: var(--accent-cyan); border-radius: 50px; padding: 10px 25px; font-weight: 600; flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }
        .btn-ref-share { background: var(--accent-cyan); border: none; color: var(--bg-primary); border-radius: 50px; padding: 10px 25px; font-weight: 700; flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }
        .referral-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 30px; }
        .ref-stat-card { background-color: var(--bg-secondary); border-radius: 16px; padding: 20px 10px; text-align: center; border: 1px solid #252545; }
        .ref-stat-val { font-size: 1.4rem; font-weight: 700; color: var(--accent-cyan); display: block; margin-bottom: 5px; }
        .ref-stat-label { font-size: 0.8rem; color: var(--text-secondary); }
        .recent-ref-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; }
        .empty-ref-state { text-align: center; padding: 40px 20px; color: var(--text-secondary); }

        /* === CUSTOMER SUPPORT GRID STYLES === */
        .support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 10px; margin-top: 10px; }
        .support-card {
            background-color: #151530; border-radius: 16px; padding: 25px 15px;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            text-align: center; cursor: pointer; border: 1px solid #2a2a4a;
            height: 160px; transition: transform 0.2s;
        }
        .support-card:hover { border-color: var(--accent-cyan); }
        .support-icon { font-size: 2.8rem; margin-bottom: 15px; }
        .support-name { font-size: 1rem; font-weight: 500; color: white; }
        .icon-whatsapp { color: #25D366; } .icon-telegram { color: #0088cc; } .icon-instagram { color: #E1306C; } .icon-youtube { color: #FF0000; } .icon-email { color: #FFB300; } .icon-website { color: #5C5CFF; }

        /* === WITHDRAW PAGE STYLES === */
        .withdraw-balance-card { background-color: #1C1C3A; border-radius: 16px; padding: 20px; margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #2a2a4a; }
        .wb-left { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 0.9rem; }
        .wb-icon { color: var(--accent-cyan); font-size: 1.2rem; }
        .wb-amount { font-size: 1.2rem; font-weight: 600; color: white; }
        .custom-input { background-color: #151530; border: 1px solid #2a2a4a; color: white; padding: 15px; border-radius: 12px; font-size: 1rem; width: 100%; }
        .custom-input::placeholder { color: #565676; }
        .custom-input:focus { background-color: #151530; border-color: var(--accent-cyan); box-shadow: none; color: white; }

        /* Profile Styles */
        .profile-new-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
        .profile-new-avatar { width: 70px; height: 70px; border-radius: 50%; background-color: var(--accent-cyan); color: var(--bg-primary); display: flex; justify-content: center; align-items: center; font-size: 1.8rem; font-weight: 700; text-transform: uppercase; background-size: cover; background-position: center; }
        .profile-new-info h3 { margin: 0; font-size: 1.2rem; font-weight: 600; }
        .profile-new-info p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }
        .profile-edit-btn i { color: var(--text-secondary); font-size: 1.2rem; cursor: pointer; }
        .profile-stats-card { background-color: var(--bg-secondary); border-radius: 16px; padding: 20px; margin-bottom: 25px; display: flex; justify-content: space-between; text-align: center; }
        .p-stat-item { flex: 1; }
        .p-stat-icon { font-size: 1.5rem; color: var(--accent-cyan); margin-bottom: 5px; }
        .p-stat-val { display: block; font-size: 1.2rem; font-weight: 600; color: white; line-height: 1.2; }
        .p-stat-label { font-size: 0.75rem; color: var(--text-secondary); }
        .profile-menu-card { background-color: var(--bg-secondary); border-radius: 16px; padding: 10px 0; overflow: hidden; }
        .p-menu-item { display: flex; align-items: center; padding: 15px 20px; text-decoration: none; color: white; transition: background 0.2s; }
        .p-menu-item:hover { color: white; }
        .p-menu-item:active { background-color: rgba(255,255,255,0.05); }
        .p-menu-icon { width: 30px; font-size: 1.1rem; color: var(--text-secondary); }
        .p-menu-text { flex-grow: 1; font-size: 0.95rem; font-weight: 500; color: white; }
        .p-menu-arrow { color: var(--text-secondary); font-size: 0.8rem; }
        .menu-divider { height: 1px; background-color: var(--border-color); margin: 5px 20px; }
        .text-cyan { color: var(--accent-cyan) !important; }
        .text-red { color: var(--accent-pink) !important; }

        /* Support Chat Styles (updated) */
        .chat-layout { 
            height: calc(100vh - 160px); 
            display: flex; 
            flex-direction: column; 
            position: relative; 
            background: var(--bg-primary);
        }
        .chat-messages-container { 
            flex-grow: 1; 
            overflow-y: auto; 
            padding: 20px 15px 90px; 
            display: flex; 
            flex-direction: column; 
            gap: 12px; 
            scroll-behavior: smooth;
        }
        .message-row { 
            display: flex; 
            align-items: flex-start; 
            gap: 10px; 
            max-width: 100%; 
            animation: fadeUp 0.3s ease-out;
        }
        .message-row.user { 
            flex-direction: row-reverse; 
        }
        .chat-admin-avatar { 
            width: 36px; 
            height: 36px; 
            background: linear-gradient(135deg, var(--accent-cyan), #00b4d8); 
            border-radius: 50%; 
            display: flex; 
            justify-content: center; 
            align-items: center; 
            color: black; 
            font-size: 0.9rem; 
            flex-shrink: 0; 
            box-shadow: 0 4px 10px rgba(0, 224, 255, 0.3);
        }
        .chat-bubble { 
            max-width: 78%; 
            padding: 12px 16px; 
            border-radius: 18px; 
            font-size: 0.95rem; 
            line-height: 1.5; 
            position: relative; 
            word-wrap: break-word;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        .chat-bubble.admin { 
            background-color: var(--bg-tertiary); 
            color: white; 
            border-bottom-left-radius: 4px; 
            border: 1px solid rgba(255,255,255,0.05);
        }
        .chat-bubble.user { 
            background: linear-gradient(135deg, var(--accent-cyan), #00b4d8); 
            color: black; 
            border-bottom-right-radius: 4px; 
            font-weight: 500;
        }
        .chat-input-area { 
            position: fixed; 
            bottom: 0; 
            left: 0; 
            width: 100%; 
            background-color: var(--bg-primary); 
            border-top: 1px solid var(--border-color); 
            padding: 12px 15px 20px; 
            z-index: 1002; 
            display: flex; 
            flex-direction: column;
            gap: 10px; 
            align-items: center; 
            box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
        }
        .image-upload-container {
            display: flex;
            width: 100%;
            gap: 10px;
            align-items: center;
        }
        .chat-input-field { 
            flex: 1; 
            background-color: var(--bg-secondary); 
            border: 2px solid transparent; 
            color: white; 
            padding: 12px 18px; 
            border-radius: 25px; 
            outline: none; 
            font-size: 1rem; 
            transition: all 0.3s;
            min-width: 0; /* prevent flex overflow */
        }
        .chat-input-field:focus { 
            border-color: var(--accent-cyan); 
            box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.1);
        }
        .chat-send-btn { 
            width: 50px; 
            height: 50px; 
            background: linear-gradient(135deg, var(--accent-cyan), #00b4d8); 
            border-radius: 50%; 
            border: none; 
            color: var(--bg-primary); 
            font-size: 1.2rem; 
            display: flex; 
            justify-content: center; 
            align-items: center; 
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            box-shadow: 0 4px 15px rgba(0, 224, 255, 0.3);
            flex-shrink: 0;
        }
        .chat-send-btn:active {
            transform: scale(0.95);
        }
        .chat-image-btn { 
            width: 50px; 
            height: 50px; 
            background-color: var(--bg-secondary); 
            border-radius: 50%; 
            border: 2px solid var(--accent-cyan); 
            color: var(--accent-cyan); 
            font-size: 1.2rem; 
            display: flex; 
            justify-content: center; 
            align-items: center; 
            cursor: pointer; 
            transition: all 0.3s; 
            flex-shrink: 0;
        }
        .chat-image-btn:active { transform: scale(0.95); }
        .chat-image-preview { max-width: 150px; border-radius: 10px; margin-top: 5px; border: 2px solid var(--accent-cyan); }
        .image-preview-container { position: relative; display: inline-block; }
        .remove-image-btn { position: absolute; top: -8px; right: -8px; background: #ff3d3d; color: white; border-radius: 50%; width: 24px; height: 24px; border: none; font-size: 12px; cursor: pointer; }
        #imagePreviewContainer {
            width: 100%;
            text-align: center;
        }

        /* === HOME & OTHER STYLES === */
        .swiper { 
            width: 94%;
            margin: 0 auto 1.5rem auto;
            border-radius: 16px; 
            background-color: var(--bg-secondary); 
            aspect-ratio: 2 / 1;
            overflow: hidden; 
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
        }
        .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
        .swiper-pagination-bullet-active { background-color: var(--accent-cyan) !important; width: 20px; border-radius: 4px; }
        
        /* Announcement slider */
        .announcement-slider {
            width: 100%;
            background: linear-gradient(90deg, var(--accent-pink), var(--accent-cyan));
            color: white;
            padding: 12px 15px;
            text-align: center;
            font-weight: 600;
            font-size: 1rem;
            border-radius: 0;
            margin-bottom: 15px;
            cursor: pointer;
            transition: background 0.3s;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .announcement-slider a {
            color: white;
            text-decoration: none;
            display: block;
        }
        .announcement-slider a:hover {
            text-decoration: underline;
        }
        .announcement-slider span {
            margin-right: 10px;
        }
        .announcement-slider .btn {
            background: rgba(255,255,255,0.2);
            border: 1px solid white;
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            margin-left: 10px;
        }

        /* Promo banner (static text) - removed default text */
        .promo-banner {
            width: 100%;
            background: linear-gradient(135deg, #4F46E5, #7C3AED);
            color: white;
            padding: 15px;
            text-align: center;
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 15px;
            border-radius: 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            display: none; /* Hidden by default */
        }
        .promo-banner a {
            color: white;
            text-decoration: none;
        }
        .promo-banner a:hover {
            text-decoration: underline;
        }
        .promo-banner .btn {
            background: rgba(255,255,255,0.2);
            border: 1px solid white;
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            margin-left: 10px;
        }
        
        .section-header {
            text-align: center;
            margin-bottom: 1.5rem;
        }

        .contest-categories { 
            display: grid; 
            grid-template-columns: repeat(3, 1fr); 
            gap: 15px; 
            margin-bottom: 2rem; 
            padding: 0 5px;
        }
        .category-card { 
            background-color: #171738; 
            border-radius: 22px; 
            padding: 25px 10px; 
            text-align: center; 
            cursor: pointer; 
            box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
            transition: transform 0.2s;
        }
        .category-card .icon-circle { 
            width: 50px; height: 50px; 
            border-radius: 50%; 
            border: 2px solid var(--accent-pink); 
            display: flex; justify-content: center; align-items: center; 
            margin: 0 auto 10px auto; 
            color: var(--accent-pink); 
            font-size: 1.2rem; 
            background: rgba(255, 61, 113, 0.1); 
        }
        .category-card span { 
            display: block; 
            font-size: 0.8rem; 
            font-weight: 600; 
            color: #fff; 
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding-bottom: 1rem; padding-left: 5px; padding-right: 5px; }
        .game-card { 
            width: 100%; 
            border-radius: 18px; 
            overflow: hidden; 
            cursor: pointer; 
            text-align: center; 
            background-color: #11112b;
            padding-bottom: 12px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            transition: transform 0.2s;
        }
        .game-card:active { transform: scale(0.98); }
        .game-card img { 
            width: 100%; 
            aspect-ratio: 1/1; 
            object-fit: cover; 
            border-radius: 18px;
            margin-bottom: 8px;
            display: block;
        }
        .game-card .game-title { 
            font-size: 0.75rem; 
            color: #A0A0B8; 
            font-weight: 700; 
            text-transform: uppercase; 
            padding: 0 5px;
        }

        .privacy-content h2 { font-size: 1.5rem; margin-bottom: 0.5rem; color: white; }
        .privacy-content h4 { color: white; margin-top: 1.5rem; margin-bottom: 1rem; font-size: 1.1rem; }
        .privacy-content p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
        .privacy-content ul { padding-left: 20px; color: var(--text-secondary); margin-bottom: 1rem; }
        .privacy-content li { margin-bottom: 10px; font-size: 0.9rem; line-height: 1.6; }
        .privacy-content strong { color: white; font-weight: 600; }

        .tournament-card { 
            background-color: #151530;
            border-radius: 16px; 
            overflow: hidden; 
            margin-bottom: 20px; 
            border: 1px solid #2a2a4a;
            padding: 0;
            box-shadow: 0 8px 20px rgba(0,0,0,0.4);
            cursor: pointer;
            transition: transform 0.2s;
        }
        .tournament-card:active { transform: scale(0.98); }
        .t-banner-img {
            width: 100%;
            height: auto;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            display: block;
        }
        .t-content-body {
            padding: 15px;
        }
        .t-header-row {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 5px;
        }
        .t-title-text {
            font-size: 1rem;
            font-weight: 600;
            color: white;
            margin: 0;
            line-height: 1.2;
        }
        .t-date-row {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #A0A0B8;
            font-size: 0.8rem;
            margin-bottom: 15px;
        }
        .t-stats-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        .t-stat-box {
            text-align: center;
        }
        .t-stat-label {
            display: block;
            font-size: 0.65rem;
            text-transform: uppercase;
            color: #7d7d9e;
            margin-bottom: 2px;
            letter-spacing: 0.5px;
        }
        .t-stat-value {
            font-size: 1rem;
            font-weight: 700;
            color: var(--accent-cyan);
        }
        .t-progress-area {
            margin-bottom: 5px;
        }
        .t-progress-track {
            width: 100%;
            height: 6px;
            background-color: #2a2a4a;
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 6px;
        }
        .t-progress-bar {
            height: 100%;
            background-color: var(--accent-cyan);
            border-radius: 10px;
            width: 0%;
            transition: width 0.5s ease;
        }
        .t-slots-text {
            font-size: 0.75rem;
            color: #7d7d9e;
        }
        
        .tournament-tabs { 
            display: flex; 
            justify-content: space-around; 
            background-color: transparent; 
            padding: 0; 
            margin-bottom: 20px; 
            border-bottom: 1px solid #2a2a4a;
        } 
        .tab-item { 
            color: var(--text-secondary); 
            background: none; 
            border: none; 
            padding: 10px 15px; 
            font-weight: 500; 
            font-size: 0.9rem;
            position: relative;
            cursor: pointer; 
            text-transform: uppercase;
        } 
        .tab-item.active { 
            color: white; 
            font-weight: 600;
        }
        .tab-item.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: var(--accent-cyan);
            border-radius: 3px 3px 0 0;
        }

        .bottom-nav-container { position: fixed; bottom: 0; left: 0; width: 100%; height: 80px; z-index: 1000; pointer-events: none; }
        .bottom-nav-bar { pointer-events: auto; position: absolute; bottom: 0; left: 0; width: 100%; height: 65px; background-color: var(--bg-secondary); display: flex; justify-content: space-around; align-items: center; border-top-left-radius: 20px; border-top-right-radius: 20px; box-shadow: 0 -5px 25px rgba(0,0,0,0.2); }
        .nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #565676; background: none; border: none; height: 100%; cursor: pointer; }
        .nav-item.active { color: white; } .nav-item.active i { color: var(--accent-cyan); }
        .nav-item i { font-size: 1.8rem; margin-bottom: 2px; }
        
        .nav-fab-wrapper { pointer-events: auto; position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 75px; height: 75px; background-color: var(--bg-primary); border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 1002; padding: 8px; }
        .nav-fab { width: 100%; height: 100%; background: linear-gradient(135deg, #1e1e40, #0a0a1a); border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 5px 15px rgba(0,0,0,0.6); color: #fff; font-size: 2rem; border: 2px solid #2a2a4a; cursor: pointer; }
        .nav-fab.active { color: var(--accent-cyan); border-color: var(--accent-cyan); box-shadow: 0 0 20px rgba(0, 224, 255, 0.4); transform: translateY(-5px); }
        
        #globalLoaderEl { background: var(--bg-primary); display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; justify-content: center; align-items: center; }
        .fancy-spinner { width: 4rem; height: 4rem; border-radius: 50%; border: 4px solid var(--bg-secondary); border-top-color: var(--accent-cyan); animation: spin 0.8s linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }
        
        .custom-card { background-color: var(--bg-secondary); border-radius: 16px; border: none; }
        .form-control { background-color: var(--input-bg, #0d0d26); border: 1px solid var(--border-color, #2a2a4a); color: var(--text-primary, white); border-radius: 10px; padding: 14px; }

        .md-container {
            background-color: var(--bg-primary);
            min-height: 100vh;
            padding-bottom: 90px;
            position: relative;
            z-index: 2000;
        }

        .md-header-overlay {
            position: absolute; top: 0; left: 0; width: 100%; height: 60px;
            display: flex; align-items: center; padding: 0 15px;
            z-index: 10;
            background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
        }
        .md-back-btn { color: white; font-size: 1.5rem; background: none; border: none; }
        .md-banner {
            width: 100%; height: 260px; object-fit: cover;
            mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0));
            -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 80%, rgba(0,0,0,0));
        }
        .md-title-overlay {
            margin-top: -60px; padding: 0 20px; position: relative; z-index: 5;
            text-align: center;
        }
        .md-game-logo { width: 100%; max-width: 250px; margin-bottom: 5px; filter: drop-shadow(0 0 10px rgba(0,0,0,0.8)); }
        .md-match-title { font-size: 1.4rem; font-weight: 700; color: white; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

        .md-meta-grid {
            display: flex; justify-content: space-around;
            padding: 10px 15px; border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        .md-meta-item { text-align: center; }
        .md-meta-label { font-size: 0.7rem; color: #7d7d9e; text-transform: uppercase; margin-bottom: 2px; }
        .md-meta-val { font-size: 0.95rem; color: white; font-weight: 600; display: flex; align-items: center; gap: 5px; justify-content: center; }

        .md-time-card {
            background: #141432; border-radius: 12px; margin: 15px; padding: 12px;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            border: 1px solid #2a2a4a; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }
        .md-time-text { color: white; font-weight: 500; font-size: 0.95rem; }
        .md-time-icon { color: var(--accent-cyan); }

        .md-stats-grid {
            display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
            padding: 0 15px; margin-bottom: 15px;
        }
        .md-stat-card {
            background: #151530; border-radius: 12px; padding: 15px 5px;
            text-align: center; border: 1px solid #2a2a4a;
        }
        .md-stat-card h5 { color: #7d7d9e; font-size: 0.7rem; margin-bottom: 5px; text-transform: uppercase; }
        .md-stat-card span { font-size: 1.1rem; font-weight: 700; color: var(--accent-cyan); }

        .md-room-card {
            background: #151530; border-radius: 12px; margin: 0 15px 20px 15px;
            border: 1px solid #2a2a4a; display: flex; overflow: hidden;
        }
        .md-room-col { flex: 1; padding: 15px; text-align: center; border-right: 1px solid #2a2a4a; }
        .md-room-col:last-child { border-right: none; }
        .md-room-label { font-size: 0.65rem; color: #7d7d9e; margin-bottom: 5px; text-transform: uppercase; }
        .md-room-val { font-size: 1rem; color: #565676; font-weight: 600; letter-spacing: 0.5px; }

        .md-tabs { display: flex; border-bottom: 1px solid #2a2a4a; margin-bottom: 15px; }
        .md-tab {
            flex: 1; text-align: center; padding: 12px;
            background: none; border: none; color: #7d7d9e;
            font-size: 0.85rem; font-weight: 600; letter-spacing: 1px;
            position: relative;
        }
        .md-tab.active { color: var(--accent-pink); }
        .md-tab.active::after {
            content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
            width: 40px; height: 3px; background-color: var(--accent-pink); border-radius: 3px 3px 0 0;
        }

        .md-content-box { padding: 0 20px; }
        .md-section-title { font-size: 1rem; color: white; font-weight: 600; margin-bottom: 10px; text-transform: uppercase; }
        .md-text-block { color: #A0A0B8; font-size: 0.85rem; line-height: 1.6; margin-bottom: 20px; }
        .md-text-block ul { padding-left: 20px; margin-top: 5px; }
        .md-text-block li { margin-bottom: 8px; }

        .md-fixed-footer {
            position: fixed; bottom: 0; left: 0; width: 100%;
            background: #05051E; padding: 15px 20px;
            box-shadow: 0 -10px 30px rgba(0,0,0,0.5); z-index: 2001;
            border-top: 1px solid #2a2a4a;
        }
        .btn-join-match {
            width: 100%; background: linear-gradient(90deg, #FF3D71, #A0153E);
            color: white; border: none; border-radius: 50px; padding: 14px;
            font-size: 1.1rem; font-weight: 700; text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 5px 20px rgba(255, 61, 113, 0.4);
            cursor: pointer;
        }

        .slot-list-header { display: flex; justify-content: space-between; padding: 15px 20px; background-color: #0d0d26; color: #A0A0B8; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }
        .slot-list-scroll { 
            height: calc(100vh - 140px);
            overflow-y: auto; 
            padding-bottom: 120px;
        }
        .slot-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #1F1F40; cursor: pointer; }
        .slot-number { color: white; font-weight: 600; }
        .slot-checkbox { width: 24px; height: 24px; border: 2px solid #565676; border-radius: 4px; display: flex; justify-content: center; align-items: center; transition: all 0.2s; }
        .slot-row.active .slot-checkbox { background-color: var(--accent-cyan); border-color: var(--accent-cyan); color: #05051E; }
        .slot-row.active .slot-checkbox::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 14px; }
        .slot-row.disabled { opacity: 0.5; pointer-events: none; }
        .slot-row.disabled .slot-checkbox { background-color: #333; border-color: #333; }
        
        .slot-footer {
            position: fixed; bottom: 0; left: 0; width: 100%; height: 80px;
            background-color: #05051E; border-top: 1px solid #2a2a4a;
            display: flex; justify-content: space-between; align-items: center;
            padding: 0 20px; z-index: 2002;
        }
        .slot-footer-info span { display: block; font-size: 0.7rem; color: #7d7d9e; text-transform: uppercase; margin-bottom: 2px; }
        .slot-footer-info strong { display: block; font-size: 1.4rem; color: white; font-weight: 700; }
        .btn-slot-next { background-color: var(--accent-cyan); color: #000; font-weight: 700; padding: 10px 30px; border-radius: 50px; border: none; font-size: 1rem; cursor: pointer; }

        #playerDetailsFormContainer {
            padding-bottom: 160px;
        }
        .details-card { background-color: #151530; border-radius: 12px; padding: 20px; margin: 20px; border: 1px solid #2a2a4a; }
        .details-title { color: white; font-size: 0.95rem; margin-bottom: 20px; font-weight: 600; }
        .details-input-box { margin-bottom: 20px; }
        .details-label { color: #A0A0B8; font-size: 0.8rem; margin-bottom: 8px; display: block; }
        .details-input { width: 100%; background: transparent; border: none; border-bottom: 1px solid #565676; color: white; padding: 8px 0; font-size: 1rem; border-radius: 0; }
        .details-input:focus { outline: none; border-bottom-color: var(--accent-cyan); }
        
        .details-footer {
            position: fixed; bottom: 0; left: 0; width: 100%;
            background-color: #05051E; border-top: 1px solid #2a2a4a;
            padding: 15px 20px; z-index: 2002;
        }
        .details-total-text { font-size: 0.9rem; color: #A0A0B8; margin-bottom: 10px; font-weight: 500; }
        .details-total-text strong { color: white; font-size: 1.1rem; margin-left: 5px; }
        .btn-details-confirm { width: 100%; background-color: #2e2e4d; color: white; font-weight: 700; padding: 14px; border-radius: 50px; border: none; font-size: 1rem; letter-spacing: 0.5px; transition: 0.3s; cursor: pointer; }
        .btn-details-confirm.ready { background-color: var(--btn-green); }

        .btn-view-result {
            width: 100%; background: #FFD700; color: #000;
            border: none; border-radius: 50px; padding: 14px;
            font-size: 1rem; font-weight: 800; text-transform: uppercase;
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); margin-top: 10px;
            cursor: pointer;
        }

        .tab-content-area { display: none; padding: 15px 5px; }
        .tab-content-area.active { display: block; animation: fadeUp 0.3s ease; }

        .prize-row { display: flex; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.05); align-items: center; }
        .prize-rank { display: flex; align-items: center; gap: 10px; font-weight: 600; color: white; }
        .prize-icon { color: #FFD700; font-size: 1.1rem; }
        .prize-amount { color: var(--accent-cyan); font-weight: 700; }

        .participant-row { padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.05); color: #A0A0B8; display: flex; gap: 15px; }
        .participant-index { width: 25px; color: #565676; font-family: monospace; }
        .participant-name { color: white; font-weight: 500; }

        /* ── Match Result ── */
        .result-meta { text-align:center; color:#7d7d9e; font-size:0.8rem; margin:15px 0; }
        .mr-header-card {
            margin:14px 14px 0;
            background:linear-gradient(135deg,#1a1a2e,#16213e);
            border-radius:16px; padding:18px 20px;
            border:1px solid rgba(255,255,255,0.08);
        }
        .mr-match-title {
            font-size:1.1rem; font-weight:700; color: white;
            text-align:center; margin-bottom:4px;
        }
        .mr-match-sub {
            font-size:0.78rem; color: var(--text-secondary); text-align:center; margin-bottom:16px;
        }
        .mr-stats-row {
            display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px;
        }
        .mr-stat {
            text-align:center;
        }
        .mr-stat-label {
            font-size:0.6rem; color: var(--text-secondary); letter-spacing:1px;
            text-transform:uppercase; margin-bottom:4px;
        }
        .mr-stat-val {
            font-size:1.3rem; font-weight:800;
        }
        .mr-table-section {
            margin:14px 14px 20px;
            background:rgba(255,255,255,0.02);
            border-radius:14px;
            border:1px solid rgba(255,255,255,0.06);
            overflow:hidden;
        }
        .mr-table-head {
            display:grid; grid-template-columns:0.7fr 3fr 1fr 1fr;
            padding:10px 14px;
            background:rgba(255,255,255,0.05);
            font-size:0.65rem; font-weight:700;
            text-transform:uppercase; letter-spacing:0.5px;
            color:#6b7280;
        }
        .mr-row {
            display:grid; grid-template-columns:0.7fr 3fr 1fr 1fr;
            padding:14px 14px; align-items:center;
            border-bottom:1px solid rgba(255,255,255,0.04);
            transition:background 0.15s;
        }
        .mr-row:last-child { border-bottom:none; }
        .mr-row:hover { background:rgba(255,255,255,0.03); }
        .mr-rank {
            font-family:monospace; font-weight:700; font-size:0.9rem;
        }
        .mr-rank.r1 { color:#f59e0b; }
        .mr-rank.r2 { color:#9ca3af; }
        .mr-rank.r3 { color:#cd7f32; }
        .mr-rank.rn { color:#4b5563; }
        .mr-pname { color: white; font-weight:600; font-size:0.88rem; }
        .mr-kills { color:#94a3b8; text-align:center; font-size:0.85rem; }
        .mr-won { text-align:right; font-weight:700; font-size:0.9rem; color:#10b981; }
        .mr-won.zero { color:#4b5563; }

        /* Notification Settings Styles */
        .notification-settings-card {
            background-color: var(--bg-secondary);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
            border: 1px solid var(--border-color);
        }
        .notification-toggle {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .notification-toggle:last-child {
            border-bottom: none;
        }
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
        }
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
        }
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        input:checked + .toggle-slider {
            background-color: var(--accent-cyan);
        }
        input:checked + .toggle-slider:before {
            transform: translateX(24px);
        }
        .notification-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: #FF3D71;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: bold;
        }

        /* Room Details Styles for Users */
        .room-details-section {
            background: linear-gradient(135deg, #0a0a1a, #1a1a3a);
            border-radius: 16px;
            padding: 20px;
            margin: 20px 15px;
            border: 1px solid var(--accent-cyan);
            box-shadow: 0 0 20px rgba(0, 224, 255, 0.2);
        }
        .room-details-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }
        .room-details-header i {
            color: var(--accent-cyan);
            font-size: 1.5rem;
        }
        .room-details-header h4 {
            margin: 0;
            color: white;
            font-size: 1.2rem;
        }
        .room-details-body {
            display: grid;
            gap: 15px;
        }
        .room-detail-row {
            display: flex;
            align-items: center;
            gap: 15px;
            background: rgba(0, 0, 0, 0.3);
            padding: 15px;
            border-radius: 12px;
            border: 1px solid #2a2a4a;
        }
        .room-label {
            font-weight: 600;
            color: var(--text-secondary);
            min-width: 100px;
        }
        .room-value {
            flex: 1;
            font-family: monospace;
            font-size: 1.1rem;
            color: white;
            padding: 8px 12px;
            background: rgba(0, 224, 255, 0.1);
            border-radius: 8px;
            border: 1px solid rgba(0, 224, 255, 0.3);
        }
        .room-copy-btn {
            background: var(--accent-cyan);
            color: black;
            border: none;
            border-radius: 8px;
            padding: 8px 15px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.3s;
        }
        .room-copy-btn:hover {
            background: #00b4d8;
            transform: translateY(-2px);
        }
        .room-copy-btn:active {
            transform: scale(0.95);
        }
        
        /* Room Details Button Style */
        .btn-room-details {
            width: 100%;
            background: linear-gradient(90deg, #00E0FF, #0091EA);
            color: black;
            border: none;
            border-radius: 50px;
            padding: 14px;
            font-size: 1.1rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 5px 20px rgba(0, 224, 255, 0.4);
            cursor: pointer;
            margin-top: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        /* Room Details Modal */
        .room-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.85);
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            backdrop-filter: blur(5px);
        }
        .room-modal-card {
            background-color: var(--bg-secondary);
            border: 1px solid var(--accent-cyan);
            border-radius: 20px;
            padding: 25px;
            width: 100%;
            max-width: 400px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            animation: popIn 0.3s;
        }
        .room-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--border-color);
        }
        .room-modal-title {
            color: white;
            font-size: 1.3rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .room-modal-close {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Profile Edit Modal */
        /* ── Profile Edit Modal ── */
        .profile-edit-modal {
            position: fixed; top:0; left:0;
            width:100%; height:100%;
            background: rgba(0,0,0,0.85);
            z-index: 9999;
            display: none;
            align-items: flex-end;
            justify-content: center;
            backdrop-filter: blur(8px);
        }
        .profile-edit-card {
            background: var(--bg-secondary);
            border-radius: 28px 28px 0 0;
            padding: 28px 22px 36px;
            width: 100%;
            max-width: 480px;
            animation: slideUpModal 0.35s cubic-bezier(0.175,0.885,0.32,1.1) forwards;
        }
        @keyframes slideUpModal {
            from { transform:translateY(100%); opacity:0; }
            to   { transform:translateY(0);    opacity:1; }
        }
        .pem-handle {
            width:40px; height:4px; border-radius:2px;
            background:rgba(255,255,255,0.2);
            margin:0 auto 22px;
        }
        .pem-title {
            text-align:center; font-size:1.15rem; font-weight:700;
            color:var(--text-primary); margin-bottom:24px; letter-spacing:0.3px;
        }
        .pem-avatar-wrap {
            display:flex; flex-direction:column; align-items:center;
            gap:8px; margin-bottom:24px;
        }
        .pem-avatar-ring {
            position:relative; width:90px; height:90px;
            border-radius:50%;
            border:3px solid var(--accent-cyan);
            cursor:pointer; overflow:hidden;
        }
        .pem-avatar-ring img {
            width:100%; height:100%; object-fit:cover;
        }
        .pem-cam-badge {
            position:absolute; bottom:2px; right:2px;
            width:28px; height:28px; border-radius:50%;
            background: #fff; display:flex; align-items:center;
            justify-content:center; font-size:0.85rem; color:#333;
            box-shadow:0 2px 6px rgba(0,0,0,0.3);
        }
        .pem-changes-left {
            font-size:0.8rem; color:var(--accent-cyan); font-weight:600;
        }
        .pem-field {
            position:relative; margin-bottom:14px;
        }
        .pem-field-icon {
            position:absolute; left:14px; top:50%; transform:translateY(-50%);
            color:var(--accent-cyan); font-size:1rem;
        }
        .pem-input {
            width:100%; padding:14px 14px 14px 44px;
            background:var(--bg-tertiary);
            border:1.5px solid var(--border-color);
            border-radius:14px; color:var(--text-primary);
            font-size:0.95rem; outline:none; transition:border-color 0.2s;
        }
        .pem-input:focus { border-color:var(--accent-cyan); }
        .pem-input::placeholder { color:var(--text-secondary); }
        .pem-btn-save {
            width:100%; padding:16px; margin-top:8px;
            background:var(--accent-cyan);
            border:none; border-radius:50px;
            color:#000; font-size:1rem; font-weight:800;
            letter-spacing:1px; cursor:pointer;
            transition:opacity 0.2s;
        }
        .pem-btn-save:active { opacity:0.8; }
        .pem-btn-cancel {
            width:100%; padding:13px; margin-top:10px;
            background:var(--bg-tertiary);
            border:1.5px solid var(--border-color);
            border-radius:50px; color:var(--text-secondary);
            font-size:0.9rem; font-weight:600; cursor:pointer;
        }
        /* Support header online status */
        .support-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 15px;
            background: var(--bg-secondary);
            border-bottom: 1px solid var(--border-color);
        }
        .support-header h2 {
            font-size: 1.2rem;
            font-weight: 600;
            margin: 0;
            color: var(--text-primary);
        }
        .support-status {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.9rem;
        }
        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: gray;
        }
        .status-dot.online {
            background: #28a745;
            box-shadow: 0 0 10px #28a745;
        }
        .status-dot.offline {
            background: #dc3545;
        }

        /* Promotions grid (unused but kept) */
        .promo-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 15px;
            padding: 15px;
        }
        .promo-card {
            background-color: var(--bg-secondary);
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            transition: transform 0.2s;
            cursor: pointer;
        }
        .promo-card:active { transform: scale(0.98); }
        .promo-card img {
            width: 100%;
            aspect-ratio: 1/1;
            object-fit: cover;
            display: block;
        }
        .promo-card .promo-title {
            padding: 10px;
            font-size: 0.9rem;
            font-weight: 500;
            color: white;
            text-align: center;
        }

        /* === PROMOTIONS PAGE === */
        .promos-page-header {
            text-align: center;
            padding: 20px 20px 10px;
            font-size: 1.3rem;
            font-weight: 700;
            color: white;
            letter-spacing: 0.5px;
        }
        .promo-ticker-bar {
            background: linear-gradient(90deg, #FFD700, #FF8C00);
            color: #000;
            font-size: 0.85rem;
            font-weight: 700;
            padding: 9px 0;
            margin: 0 0 16px;
            overflow: hidden;
            white-space: nowrap;
            position: relative;
            width: 100%;
        }
        .promo-ticker-bar .ticker-inner {
            display: inline-block;
            white-space: nowrap;
            animation: tickerScroll 18s linear infinite;
            padding-left: 100%;
        }
        @keyframes tickerScroll {
            0%   { transform: translateX(0); }
            100% { transform: translateX(-100%); }
        }
        .promo-youtube-card {
            margin: 0 16px 16px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            display: flex;
            align-items: center;
            padding: 14px 16px;
            gap: 14px;
        }
        .promo-yt-logo {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: #ff0000;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            color: white;
            flex-shrink: 0;
            overflow: hidden;
        }
        .promo-yt-logo img {
            width: 100%; height: 100%;
            object-fit: cover; border-radius: 50%;
        }
        .promo-yt-info { flex: 1; }
        .promo-yt-info .label { font-size: 0.7rem; color: var(--text-secondary); }
        .promo-yt-info .name { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
        .promo-yt-sub-btn {
            background: #ff0000;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 8px 16px;
            font-size: 0.8rem;
            font-weight: 700;
            cursor: pointer;
            text-decoration: none;
            white-space: nowrap;
        }
        .promo-latest-header {
            padding: 6px 16px 10px;
            font-size: 0.95rem;
            color: var(--text-secondary);
            font-weight: 600;
        }
        .promo-offers-grid {
            padding: 0 16px;
            display: flex;
            flex-direction: column;
            gap: 14px;
            padding-bottom: 20px;
        }
        .promo-offer-card {
            border-radius: 16px;
            overflow: hidden;
            position: relative;
        }
        .promo-offer-card img {
            width: 100%;
            display: block;
            border-radius: 16px;
        }
        .promo-offer-caption {
            padding: 10px 4px 2px;
            font-size: 0.85rem;
            color: var(--text-secondary);
            font-weight: 500;
        }
        .promo-info-yellow-box {
            margin: 0 16px 16px;
            background: linear-gradient(135deg, #FFD700, #FF8C00);
            border-radius: 14px;
            padding: 14px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
        }
        .promo-info-yellow-box .piy-icon { font-size: 1.6rem; }
        .piy-text { flex: 1; }
        .piy-text .piy-title { font-size: 0.95rem; font-weight: 700; color: #000; }
        .piy-text .piy-sub { font-size: 0.75rem; color: rgba(0,0,0,0.7); }
        .piy-arrow { color: rgba(0,0,0,0.6); font-size: 1rem; }

        /* === LEADERBOARD PAGE === */
        .lb-page {
            padding: 0 0 80px;
        }
        .lb-filter-bar {
            display: flex;
            gap: 8px;
            padding: 16px 16px 8px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        .lb-filter-bar::-webkit-scrollbar { display: none; }
        .lb-filter-btn {
            flex-shrink: 0;
            padding: 7px 16px;
            border-radius: 20px;
            border: 1.5px solid var(--border-color);
            background: transparent;
            color: var(--text-secondary);
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .lb-filter-btn.active {
            background: #7C3AED;
            border-color: #7C3AED;
            color: white;
        }
        .lb-podium {
            display: flex;
            justify-content: center;
            align-items: flex-end;
            gap: 0;
            padding: 20px 16px 10px;
            background: linear-gradient(180deg, #1a1a3e 0%, var(--bg-primary) 100%);
            margin: 0 0 8px;
        }
        .lb-podium-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1;
            position: relative;
        }
        .lb-podium-item.first {
            order: 2;
            margin-bottom: 0;
        }
        .lb-podium-item.second {
            order: 1;
            padding-top: 30px;
        }
        .lb-podium-item.third {
            order: 3;
            padding-top: 30px;
        }
        .lb-crown {
            font-size: 1.4rem;
            margin-bottom: 4px;
        }
        .lb-avatar-ring {
            width: 68px;
            height: 68px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            font-weight: 800;
            color: white;
            position: relative;
            background: #1a1a3e;
        }
        .lb-podium-item.first .lb-avatar-ring {
            width: 82px;
            height: 82px;
            font-size: 1.5rem;
            border: 3px solid #FFD700;
            box-shadow: 0 0 20px rgba(255,215,0,0.4);
        }
        .lb-podium-item.second .lb-avatar-ring {
            border: 2.5px solid #C0C0C0;
            box-shadow: 0 0 12px rgba(192,192,192,0.3);
        }
        .lb-podium-item.third .lb-avatar-ring {
            border: 2.5px solid #CD7F32;
            box-shadow: 0 0 12px rgba(205,127,50,0.3);
        }
        .lb-rank-badge {
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.65rem;
            font-weight: 800;
        }
        .lb-podium-item.first .lb-rank-badge { background: #FFD700; color: #000; }
        .lb-podium-item.second .lb-rank-badge { background: #C0C0C0; color: #000; }
        .lb-podium-item.third .lb-rank-badge { background: #CD7F32; color: #000; }
        .lb-player-name {
            font-size: 0.75rem;
            font-weight: 700;
            color: white;
            margin-top: 14px;
            text-align: center;
            max-width: 80px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .lb-player-prize {
            font-size: 0.7rem;
            color: var(--accent-cyan);
            font-weight: 600;
        }
        .lb-list {
            padding: 0 16px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .lb-list-item {
            background: #fff;
            border-radius: 14px;
            display: flex;
            align-items: center;
            padding: 14px 16px;
            gap: 14px;
            border: 1px solid var(--border-color);
        }
        .lb-list-item.rank-1 { background: linear-gradient(90deg, rgba(255,215,0,0.15), var(--bg-secondary)); border-color: rgba(255,215,0,0.3); }
        .lb-list-item.rank-2 { background: linear-gradient(90deg, rgba(192,192,192,0.1), var(--bg-secondary)); }
        .lb-list-item.rank-3 { background: linear-gradient(90deg, rgba(205,127,50,0.1), var(--bg-secondary)); }
        .lb-list-rank {
            font-size: 0.9rem;
            font-weight: 800;
            width: 28px;
            text-align: center;
            color: var(--text-secondary);
        }
        .lb-list-rank.r1 { color: #FFD700; }
        .lb-list-rank.r2 { color: #C0C0C0; }
        .lb-list-rank.r3 { color: #CD7F32; }
        .lb-list-av {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, #7C3AED, #00E0FF);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 1rem;
            color: white;
            flex-shrink: 0;
        }
        .lb-list-info { flex: 1; }
        .lb-list-name { font-size: 0.95rem; font-weight: 700; color: white; }
        .lb-list-sub { font-size: 0.75rem; color: var(--text-secondary); }
        .lb-list-prize { font-size: 1rem; font-weight: 800; color: var(--accent-cyan); }
        .lb-empty { text-align: center; padding: 60px 20px; color: var(--text-secondary); }

        /* === ADMIN PANEL === */
        .admin-panel-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.8);
            z-index: 5000;
            display: none;
            overflow-y: auto;
        }
        .admin-panel-overlay.open { display: block; }
        .admin-panel-container {
            max-width: 500px;
            margin: 0 auto;
            padding: 20px 16px 100px;
            min-height: 100vh;
        }
        .admin-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 0 20px;
        }
        .admin-panel-title {
            font-size: 1.3rem;
            font-weight: 800;
            color: white;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .admin-panel-title i { color: var(--accent-cyan); }
        .admin-close-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255,255,255,0.1);
            border: none;
            color: white;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .admin-card {
            background: #141432;
            border: 1px solid #2a2a4a;
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 16px;
        }
        .admin-card-title {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--accent-cyan);
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .admin-input {
            width: 100%;
            background: rgba(255,255,255,0.05);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 10px 14px;
            color: white;
            font-size: 0.9rem;
            margin-bottom: 10px;
            box-sizing: border-box;
        }
        .admin-input:focus { outline: none; border-color: var(--accent-cyan); }
        .admin-btn {
            width: 100%;
            padding: 11px;
            border-radius: 10px;
            border: none;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            margin-top: 4px;
        }
        .admin-btn-primary { background: var(--accent-cyan); color: #000; }
        .admin-btn-danger { background: var(--accent-pink); color: white; }
        .admin-btn-success { background: #4CAF50; color: white; }
        .admin-lb-player-list { margin-top: 12px; }
        .admin-lb-player-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 12px;
            background: rgba(255,255,255,0.04);
            border-radius: 10px;
            margin-bottom: 8px;
            gap: 10px;
        }
        .admin-lb-player-info { flex: 1; }
        .admin-lb-player-name { font-size: 0.9rem; font-weight: 600; color: white; }
        .admin-lb-player-prize { font-size: 0.75rem; color: var(--accent-cyan); }
        .admin-lb-remove {
            background: rgba(255,61,113,0.2);
            border: none;
            color: var(--accent-pink);
            border-radius: 8px;
            padding: 6px 10px;
            font-size: 0.75rem;
            cursor: pointer;
        }
        .admin-trigger-btn {
            position: fixed;
            bottom: 110px;
            right: 16px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: linear-gradient(135deg, #7C3AED, var(--accent-cyan));
            color: white;
            border: none;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            cursor: pointer;
            z-index: 1500;
            box-shadow: 0 4px 20px rgba(124,58,237,0.5);
        }
        .admin-trigger-btn.visible { display: flex; }
        .admin-row { display: flex; gap: 8px; }
        .admin-row .admin-input { flex: 1; margin-bottom: 0; }
        .admin-row .admin-btn { width: auto; padding: 10px 14px; margin-top: 0; }
        .admin-status-msg {
            font-size: 0.8rem;
            padding: 6px 10px;
            border-radius: 8px;
            margin-top: 8px;
            display: none;
        }
        .admin-status-msg.success { background: rgba(76,175,80,0.2); color: #4CAF50; display: block; }
        .admin-status-msg.error { background: rgba(255,61,113,0.2); color: var(--accent-pink); display: block; }
    @keyframes pulseBlock {
        0%,100% { transform: scale(1); opacity:1; }
        50%      { transform: scale(1.1); opacity:0.7; }
    }
                    @keyframes zrcFadeIn  { from{opacity:0} to{opacity:1} }
                    @keyframes zrcSlideUp { from{opacity:0;transform:translateY(28px) scale(0.9)} to{opacity:1;transform:translateY(0) scale(1)} }
                    @keyframes zrcDrawC   { 0%{stroke-dasharray:239;stroke-dashoffset:239} 100%{stroke-dashoffset:0} }
                    @keyframes zrcDrawCk  { 0%{stroke-dasharray:65;stroke-dashoffset:65;opacity:0} 30%{opacity:1} 100%{stroke-dashoffset:0} }
                    @keyframes zrcDrawX1  { 0%{stroke-dasharray:40;stroke-dashoffset:40} 100%{stroke-dashoffset:0} }
                    @keyframes zrcDrawX2  { 0%{stroke-dasharray:40;stroke-dashoffset:40;opacity:0} 35%{opacity:1} 100%{stroke-dashoffset:0} }
                    #zapResultOverlay { animation: zrcFadeIn 0.2s ease forwards; }
                    .zrc-bg-circle { animation: zrcDrawC  0.55s ease forwards; }
                    .zrc-check     { animation: zrcDrawCk 0.4s ease 0.5s forwards; }
                    .zrc-cross1    { animation: zrcDrawX1 0.32s ease 0.5s forwards; }
                    .zrc-cross2    { animation: zrcDrawX2 0.32s ease 0.65s forwards; }
                    #zapResCard {
                        background: ${cardBg};
                        border-radius: 28px;
                        padding: 2rem 1.8rem 1.8rem;
                        text-align: center;
                        width: 88%;
                        max-width: 340px;
                        box-shadow: 0 25px 60px rgba(0,0,0,0.5);
                        animation: zrcSlideUp 0.35s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
                    }
                    .zrc-icon-wrap { margin-bottom:0.8rem; display:flex; justify-content:center; }
                    .zrc-title { font-size:1.45rem; font-weight:800; color:${titleColor}; margin-bottom:0.5rem; line-height:1.2; }
                    .zrc-msg   { font-size:0.88rem; color:${msgColor}; line-height:1.6; margin-bottom:1.5rem; }
                    .zrc-btn {
                        width:100%; padding:15px; border:none; border-radius:14px;
                        font-size:1rem; font-weight:700; color:white;
                        background:${btnColor}; cursor:pointer;
                        box-shadow:0 6px 20px rgba(0,0,0,0.22);
                        transition:transform 0.12s, opacity 0.12s;
                    }
                    .zrc-btn:active { transform:scale(0.96); opacity:0.9; }
                    .zrc-sup {
                        width:100%; padding:12px; margin-top:10px;
                        border:1.5px solid #e2e8f0; border-radius:14px;
                        font-size:0.85rem; font-weight:600; color:#64748b;
                        background:transparent; cursor:pointer;
                    }
                    .zrc-sup:active { background:#f1f5f9; }
                    @keyframes zapCfPop { from{opacity:0;transform:scale(0.85)} to{opacity:1;transform:scale(1)} }
                    #zapCfCard {
                        background: ${bgSec};
                        border: 1.5px solid rgba(${accentRgb},0.3);
                        border-radius: 24px;
                        padding: 2rem 1.8rem;
                        width: 86%; max-width: 320px;
                        text-align: center;
                        box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(${accentRgb},0.08);
                        animation: zapCfPop 0.28s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
                    }
                    .zapCf-emoji { font-size:2.4rem; margin-bottom:0.7rem; display:block; }
                    .zapCf-title { font-size:1.1rem; font-weight:700; color:${txtPrim}; margin-bottom:0.5rem; }
                    .zapCf-msg   { font-size:0.86rem; color:${txtSec}; line-height:1.55; margin-bottom:1.5rem; }
                    .zapCf-btns  { display:flex; gap:10px; }
                    .zapCf-no {
                        flex:1; padding:13px;
                        border:1.5px solid rgba(${accentRgb},0.4); border-radius:12px;
                        background:transparent; color:${accent};
                        font-size:0.92rem; font-weight:600; cursor:pointer;
                        transition:background 0.18s;
                    }
                    .zapCf-no:active { background:rgba(${accentRgb},0.1); }
                    .zapCf-yes {
                        flex:1; padding:13px; border:none; border-radius:12px;
                        background:${accent}; color:${bgPrim};
                        font-size:0.92rem; font-weight:700; cursor:pointer;
                        box-shadow:0 4px 14px rgba(${accentRgb},0.35);
                        transition:transform 0.12s;
                    }
                    .zapCf-yes:active { transform:scale(0.95); }
        
        /* ── Light theme universal fixes ── */
        body.light-theme .card, body.light-theme .custom-card { background-color: var(--bg-secondary) !important; color: var(--text-primary) !important; }
        body.light-theme .text-white { color: var(--text-primary) !important; }
        body.light-theme h1, body.light-theme h2, body.light-theme h3, body.light-theme h4, body.light-theme h5, body.light-theme h6 { color: var(--text-primary) !important; }
        body.light-theme p, body.light-theme span, body.light-theme label, body.light-theme div { color: inherit; }
        body.light-theme .form-control, body.light-theme .form-select, body.light-theme select { background-color: var(--bg-tertiary) !important; color: var(--text-primary) !important; border-color: var(--border-color) !important; }
        body.light-theme .form-control::placeholder { color: var(--text-secondary) !important; }
        body.light-theme .modal-content { background-color: var(--bg-secondary) !important; color: var(--text-primary) !important; }
        body.light-theme .list-group-item { background-color: var(--bg-secondary) !important; color: var(--text-primary) !important; }
        body.light-theme .nav-bar { background: var(--bg-secondary) !important; }
        body.light-theme .header { background: var(--bg-primary) !important; }
        body.light-theme .section-header h2, body.light-theme .section-header p { color: var(--text-primary) !important; }
        body.light-theme .menu-item-label { color: var(--text-primary) !important; }
        body.light-theme .alert-danger { color: #dc3545 !important; }
        body.light-theme .alert-success { color: #198754 !important; }
        /* CSS variable-based universal approach */
        .card-body, .card { color: var(--text-primary); }
        h1,h2,h3,h4,h5,h6 { color: var(--text-primary); }
        .form-control { background-color: var(--bg-secondary); color: var(--text-primary); border-color: var(--border-color); }
        .form-control::placeholder { color: var(--text-secondary); opacity: 1; }
        select option { background-color: var(--bg-secondary); color: var(--text-primary); }

