/* --- CSS Styles (No changes needed here) --- */
        :root {
            --primary-bg: #1A1A0A; /* Deep dark yellow */
            --secondary-bg: #2E2A1A; /* Rich dark yellow-gray */
            --card-bg: #1E293B;
            --text-primary: #F8FAFC; /* Pure white for primary text */
            --text-secondary: #94A3B8; /* Muted gray for secondary text */
            --accent-color: #FFD700; /* Bright yellow accent */
            --accent-gradient: linear-gradient(135deg, #FFD700, #FFA500);
            --accent-gradient-2: linear-gradient(135deg, #FF6B6B, #FF8E53);
            --primary-button-bg: #FFD700; /* Yellow for primary actions */
            --border-color: #334155; /* Border color */
            --bottom-nav-bg: rgba(26, 31, 46, 0.95);
            --success-color: #00FF88; /* Bright green for success */
            --danger-color: #FF4757; /* Bright red for danger/errors */
            --warning-color: #FFA726; /* Orange for warnings */
            --info-color: #FFD700; /* Yellow for info */
            --glass-bg: rgba(255, 255, 255, 0.05);
            --glass-border: rgba(255, 255, 255, 0.1);
            --shadow-primary: 0 8px 32px rgba(0, 0, 0, 0.3);
            --shadow-secondary: 0 4px 16px rgba(0, 0, 0, 0.2);
        }
        /* ... (Rest of the CSS styles remain exactly the same) ... */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { font-size: 16px; }
        body { 
            font-family: 'Poppins', sans-serif; 
            background: linear-gradient(135deg, var(--primary-bg) 0%, #2E2A1A 50%, #1A1A0A 100%);
            background-attachment: fixed;
            color: var(--text-primary); 
            padding-top: 80px; 
            padding-bottom: 70px; 
            min-height: 100vh; 
            overscroll-behavior-y: contain;
            position: relative;
        }
        
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
            pointer-events: none;
            z-index: -1;
        }
        a { color: var(--accent-color); text-decoration: none; } a:hover { color: #FBBF24; }
        .main-content { padding: 15px; } .section { display: none; animation: fadeIn 0.3s ease-in-out; } .section.active { display: block; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        .section-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; color: var(--text-primary); } .custom-card { background-color: var(--card-bg); border-radius: 10px; padding: 15px; margin-bottom: 15px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); border: 1px solid var(--border-color); } .btn-custom { border-radius: 6px; font-size: 0.9rem; font-weight: 500; padding: 8px 15px; border: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: background-color 0.2s ease, filter 0.2s ease; } .btn-custom-primary { background-color: var(--primary-button-bg); color: var(--text-primary); } .btn-custom-primary:hover { background-color: #FFA500; } .btn-custom-secondary { background-color: var(--secondary-bg); color: var(--text-primary); border: 1px solid var(--border-color); } .btn-custom-secondary:hover { background-color: #334155; } .btn-custom-accent { background: var(--accent-gradient); color: var(--primary-bg); font-weight: 600; } .btn-custom-accent:hover { filter: brightness(1.1); } .btn-custom-link { background: none; border: none; color: var(--primary-button-bg); font-size: 0.9rem; font-weight: 500; padding: 0; cursor: pointer; } .text-accent { color: var(--accent-color); } .text-success { color: var(--success-color); } .text-danger { color: var(--danger-color); } .text-warning { color: var(--warning-color); } .form-control { background-color: var(--primary-bg); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 6px; } .form-control:focus { background-color: var(--primary-bg); border-color: var(--accent-color); color: var(--text-primary); box-shadow: 0 0 0 0.2rem rgba(250, 204, 21, 0.25); } .form-control::placeholder { color: var(--text-secondary); opacity: 0.7; } .form-label { color: var(--text-secondary); font-size: 0.9rem; } .alert { border-radius: 6px; font-size: 0.9rem; } .list-group-item { background-color: var(--card-bg); color: var(--text-primary); border: none; border-bottom: 1px solid var(--border-color); padding: 15px; font-size: 0.95rem; transition: background-color 0.2s ease; } .list-group-item:hover { background-color: rgba(255, 255, 255, 0.05); } .list-group-item:last-child { border-bottom: none; } .list-group-item i:first-child { color: var(--accent-color); margin-right: 15px; font-size: 1.1rem; width: 20px; text-align: center; } .list-group-item .bi-chevron-right { color: var(--text-secondary); font-size: 0.9rem; } #globalLoaderEl { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center; z-index: 9999; display: none; } .spinner-border { color: var(--accent-color); width: 3rem; height: 3rem; } .placeholder-glow .placeholder { background-color: rgba(51, 65, 85, 0.5); animation: placeholder-glow 2s ease-in-out infinite; } .placeholder { background-color: rgba(51, 65, 85, 0.5); border-radius: 4px; } @keyframes placeholder-glow { 0% { background-color: rgba(51, 65, 85, 0.5); } 50% { background-color: rgba(51, 65, 85, 0.7); } 100% { background-color: rgba(51, 65, 85, 0.5); } } .interactive-list-item { cursor: pointer; } .referral-code { font-family: monospace; letter-spacing: 1px; user-select: all; } .app-header { position: fixed; top: 0; left: 0; width: 100%; height: 60px; background-color: var(--secondary-bg); display: flex; align-items: center; justify-content: space-between; padding: 0 15px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); z-index: 1000; border-bottom: 1px solid var(--border-color); } .header-left { display: flex; align-items: center; gap: 10px; } .header-logo { width: 40px; height: 40px; border-radius: 50%; background-color: #fff; object-fit: cover; border: 1px solid var(--accent-color); } .header-title { font-size: 0.9rem; font-weight: 500; line-height: 1.2; } .header-title span { font-size: 0.75rem; color: var(--text-secondary); display: block; } .header-back-button { background: none; border: none; color: var(--text-primary); font-size: 1.4rem; margin-right: 5px; display: none; padding: 5px; } .header-right { display: flex; align-items: center; gap: 15px; } .notification-icon { font-size: 1.3rem; color: var(--text-primary); position: relative; background: none; border: none; padding: 0; } .notification-badge { position: absolute; top: -3px; right: -5px; background-color: var(--danger-color); color: white; font-size: 0.6rem; width: 15px; height: 15px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; } .wallet-chip { background: var(--accent-gradient); color: var(--primary-bg); padding: 5px 12px; border-radius: 20px; display: flex; align-items: center; font-size: 0.85rem; font-weight: 700; border: none; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); cursor: pointer; } .wallet-chip i { margin-right: 5px; font-size: 0.9rem; } .header-game-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-left: 10px; display: none; } .bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; height: 65px; background-color: var(--bottom-nav-bg); display: flex; justify-content: space-around; align-items: stretch; box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); z-index: 1000; border-top: 1px solid var(--border-color); } .nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-secondary); text-decoration: none; flex-grow: 1; padding: 8px 0; transition: color 0.2s ease, background-color 0.2s ease; border: none; background: none; cursor: pointer; font-size: 0.7rem; } .nav-item i { font-size: 1.4rem; margin-bottom: 4px; line-height: 1; } .nav-item span { font-size: 0.7rem; font-weight: 500; line-height: 1; } .nav-item.active { color: var(--accent-color); background-color: rgba(250, 204, 21, 0.1); } .swiper-container#promotionSliderEl { width: 100%; height: 200px; border-radius: 10px; margin-bottom: 25px; --swiper-pagination-color: var(--accent-color); --swiper-pagination-bullet-inactive-color: var(--text-secondary); --swiper-pagination-bullet-size: 8px; } .swiper-slide { background-color: var(--secondary-bg); border-radius: 10px; } .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; } .game-card { text-align: center; background-color: var(--card-bg); border-radius: 8px; overflow: hidden; padding: 0; border: 1px solid var(--border-color); cursor: pointer; transition: transform 0.2s ease; } .game-card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); } .game-card img { width: 100%; height: 130px; object-fit: cover; display: block; } .game-card span { display: block; padding: 10px 5px; font-weight: 500; font-size: 0.9rem; color: var(--text-primary); } .tournament-tabs { display: flex; justify-content: space-around; background-color: var(--secondary-bg); padding: 5px; border-radius: 8px; margin-bottom: 15px; } .tab-item { color: var(--text-secondary); background: none; border: none; padding: 8px 10px; font-size: 0.85rem; font-weight: 600; border-radius: 6px; flex-grow: 1; text-align: center; cursor: pointer; transition: background-color 0.2s, color 0.2s; } .tab-item.active { background-color: var(--primary-button-bg); color: var(--text-primary); } .tab-item i { margin-right: 5px; } .tournament-card { background-color: var(--card-bg); border-radius: 12px; margin-bottom: 15px; padding: 15px; border: 1px solid var(--border-color); } .tournament-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 5px; } .tournament-card-tags span { background-color: var(--primary-bg); color: var(--text-secondary); font-size: 0.7rem; font-weight: 500; padding: 3px 8px; border-radius: 4px; display: inline-block; border: 1px solid var(--border-color); margin-right: 4px; margin-bottom: 4px; } .tournament-card-timer { background-color: rgba(255, 255, 255, 0.1); color: var(--text-primary); font-size: 0.75rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; } .tournament-card-title { font-size: 1rem; font-weight: 600; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; color: var(--text-primary); } .tournament-card-title i { color: var(--accent-color); } .tournament-card-info { display: flex; justify-content: space-between; align-items: stretch; border-top: 1px dashed var(--border-color); border-bottom: 1px dashed var(--border-color); padding: 10px 0; margin: 10px 0; font-size: 0.8rem; } .info-item { text-align: center; flex: 1; padding: 0 5px; } .info-item span { display: block; color: var(--text-secondary); font-size: 0.7rem; margin-bottom: 2px; } .info-item strong { color: var(--text-primary); font-weight: 600; font-size: 0.9rem; } .info-item .prize-icon { color: var(--accent-color); font-size: 1.2rem; } .tournament-card-spots { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 15px; } .tournament-card-spots span { font-weight: 600; } .progress { height: 6px; background-color: var(--primary-bg); border-radius: 3px; overflow: hidden; } .progress-bar { background-color: var(--warning-color); transition: width 0.3s ease; } .tournament-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; } .tournament-card-actions .btn-sm { padding: 8px 10px; font-size: 0.85rem; width: 100%; } .tournament-card-actions .btn-join { background: var(--accent-gradient); color: var(--primary-bg); font-weight: 600; grid-column: 2 / 3; } .tournament-card-actions .btn-details { background-color: var(--secondary-bg); border: 1px solid var(--border-color); grid-column: 1 / 2; } .tournament-card-actions .btn-joined { background-color: var(--success-color); color: var(--text-primary); opacity: 0.8; grid-column: 2 / 3; } .tournament-card-actions .btn-disabled { background-color: var(--secondary-bg); opacity: 0.6; cursor: not-allowed; grid-column: 2 / 3; } .btn-idpass { background: var(--accent-gradient); color: var(--primary-bg); border: none; font-weight: 600; } .wallet-card { background: linear-gradient(145deg, var(--secondary-bg), var(--primary-bg)); border-radius: 10px; padding: 20px; border: 1px solid var(--border-color); } .wallet-card h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 25px; } .balance-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px dashed var(--border-color); } .balance-item:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; } .balance-item-label { font-size: 0.95rem; color: var(--text-secondary); } .balance-item-value { font-size: 1.1rem; font-weight: 600; } .balance-item-action { min-width: 100px; text-align: right; } .balance-item-action .btn-custom-link { font-size: 0.85rem; color: var(--accent-color); padding: 5px; } .balance-item-action .btn-withdraw { background-color: var(--primary-button-bg); color: #fff; font-size: 0.8rem; padding: 5px 12px; border-radius: 5px; border: none; } #recentTransactionsListEl .custom-card { background-color: var(--secondary-bg); } #earnings-section .custom-card { text-align: center; } #earnings-section .display-4 { font-size: 3rem; } #earnings-section p strong { color: var(--text-primary); } .profile-header-card { background: linear-gradient(145deg, var(--secondary-bg), var(--primary-bg)); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 20px; border: 1px solid var(--border-color); } .profile-avatar { width: 70px; height: 70px; border-radius: 50%; margin-bottom: 10px; border: 2px solid var(--accent-color); object-fit: cover; background-color: var(--primary-bg); } .profile-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 2px; } .profile-email { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 15px; word-break: break-all; } .profile-stats { display: flex; justify-content: space-around; width: 100%; border-top: 1px solid var(--border-color); padding-top: 15px; } .stat-item { text-align: center; flex: 1; } .stat-item strong { display: block; font-size: 1rem; font-weight: 600; } .stat-item span { font-size: 0.75rem; color: var(--text-secondary); } .profile-links .list-group { border-radius: 10px; overflow: hidden; border: 1px solid var(--border-color); } .profile-links .form-switch .form-check-input { background-color: var(--secondary-bg); border-color: var(--border-color); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.25%29'/%3e%3c/svg%3e"); } .profile-links .form-switch .form-check-input:checked { background-color: var(--accent-color); border-color: var(--accent-color); background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e"); } #login-section { margin-top: 5vh; } #login-section .card { background-color: var(--card-bg); border: 1px solid var(--border-color); } #login-section .btn-primary { background-color: var(--primary-button-bg); border: none; } #login-section .btn-link { background: none; border: none; color: var(--accent-color); text-decoration: none; font-size: 0.9em; padding: 5px 0; } #login-section .btn-link:hover { text-decoration: underline; } #login-section .btn-success { background-color: var(--success-color); border: none; } #login-section .btn-danger { background-color: var(--danger-color); border: none; } #login-section .form-divider { text-align: center; margin: 20px 0; position: relative; color: var(--text-secondary); } #login-section .form-divider::before, #login-section .form-divider::after { content: ""; position: absolute; top: 50%; width: 40%; height: 1px; background-color: var(--border-color); } #login-section .form-divider::before { left: 0; } #login-section .form-divider::after { right: 0; } #login-section .form-divider span { background-color: var(--card-bg); padding: 0 10px; position: relative; z-index: 1; font-size: 0.8rem; font-weight: 500; } #login-section .card-title { color: var(--text-primary); } #googleSignInBtnMainEl { display: none; } .modal-content { background-color: var(--secondary-bg); color: var(--text-primary); border: 1px solid var(--border-color); } .modal-header { border-bottom-color: var(--border-color); } .modal-footer { border-top-color: var(--border-color); } .btn-close-white { filter: invert(1) grayscale(100%) brightness(200%); } .modal-body .phonepe-number { color: var(--warning-color); font-weight: bold; user-select: text; } #matchDetailsModalBodyEl pre { background-color: var(--primary-bg); padding: 10px; border-radius: 5px; border: 1px solid var(--border-color); color: var(--text-secondary); font-size: 0.85rem; white-space: pre-wrap; word-wrap: break-word; } #policyModalBodyEl { line-height: 1.6; font-size: 0.95rem; white-space: pre-wrap; } #idPasswordModalEl .copy-btn { padding: 2px 6px; font-size: 0.8rem; margin-left: 8px; vertical-align: middle; } #policyModalBodyEl .copy-btn, #policyModalBodyEl #shareReferralBtn { padding: 4px 10px; font-size: 0.9rem; } #policyModalBodyEl #shareReferralBtn i, #policyModalBodyEl .copy-btn i { margin-right: 5px; } #securityWarning { background-color: var(--danger-color); color: white; padding: 10px 15px; text-align: center; font-size: 0.9rem; position: sticky; top: 60px; z-index: 999; border-bottom: 1px solid #a51d1d; } #securityWarning a { color: #ffdddd; text-decoration: underline; }         #securityWarning button { background: none; border: 1px solid white; color: white; padding: 2px 8px; margin-left: 15px; font-size: 0.8rem; border-radius: 4px; cursor: pointer; }
        .btn-group .btn-check:checked + .btn-outline-primary { background-color: var(--primary-button-bg); border-color: var(--primary-button-bg); color: var(--text-primary); }
        .btn-group .btn-outline-primary { border-color: var(--border-color); color: var(--text-secondary); }
        .btn-group .btn-outline-primary:hover { background-color: var(--secondary-bg); border-color: var(--border-color); color: var(--text-primary); }
        .badge { font-size: 0.75rem; padding: 0.5em 0.75em; }
        .display-6 { font-size: 2rem; font-weight: 700; }
        .qr-code-container { background: transparent; padding: 0; border-radius: 10px; display: inline-block; }
        .upi-id-display { font-family: monospace; font-weight: 600; }
        .withdrawal-method-section { display: none; }
        .withdrawal-method-section.show { display: block; }
        #upiIdTextEl { font-size: 1.1rem; }

        /* Professional Login Styles */
        .user-login-container { 
            max-width: 420px; 
            margin: 8vh auto; 
            background: linear-gradient(135deg, var(--secondary-bg) 0%, #2A2519 100%); 
            padding: 3rem 2.5rem; 
            border-radius: 16px; 
            border: 1px solid var(--border-color); 
            box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(250, 204, 21, 0.1);
            position: relative;
            overflow: hidden;
        }
        .user-login-container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent-color), #F59E0B); }
        .user-login-header { text-align: center; margin-bottom: 2rem; }
        .user-login-header h2 { color: var(--text-primary); font-weight: 700; font-size: 1.8rem; margin-bottom: 0.5rem; }
        .user-login-header p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }
        .user-icon { width: 60px; height: 60px; background: linear-gradient(135deg, var(--accent-color), #F59E0B); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 1.5rem; color: #000; }
        .form-floating { margin-bottom: 1.2rem; }
        .form-floating > .form-control { background-color: rgba(31, 41, 55, 0.8); border: 1px solid var(--border-color); color: var(--text-primary); padding: 1rem 0.75rem; border-radius: 8px; }
        .form-floating > .form-control { padding: 0.875rem 0.75rem; line-height: 1.5; height: 3rem; }
        .form-floating > .form-control:focus { background-color: rgba(31, 41, 55, 0.9); border-color: var(--accent-color); box-shadow: 0 0 0 0.2rem rgba(250, 204, 21, 0.25); color: var(--text-primary); }
        .form-floating > label { color: var(--text-secondary); top: 0; height: auto; padding: 0.875rem 0.75rem; background-color: transparent !important; backdrop-filter: none !important; display: block; }
        .form-floating > label::after { display: none !important; content: none !important; }
        .form-floating > .form-control:focus ~ label,
        .form-floating > .form-control:not(:placeholder-shown) { padding-top: 0.875rem; padding-bottom: 0.875rem; height: 3rem; }
        .user-login-btn { background: linear-gradient(135deg, var(--accent-color) 0%, #F59E0B 100%); border: none; color: #000; font-weight: 600; padding: 0.875rem 2rem; border-radius: 8px; font-size: 1rem; transition: all 0.3s ease; width: 100%; margin-top: 0.5rem; }
        .user-login-btn:hover { background: linear-gradient(135deg, #F59E0B 0%, var(--accent-color) 100%); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(250, 204, 21, 0.3); color: #000; }
        .user-login-actions { text-align: center; margin-top: 1rem; }
        .user-login-actions .btn-custom-link { color: var(--accent-color); display: inline-block !important; margin: 0 auto; text-align: center; }
        .user-login-actions a { display: inline-block; margin-top: 0.25rem; }

        /* Stronger centering rules scoped to login section */
        #login-section .form-floating > .form-control,
        #login-section .form-floating > .form-control:focus,
        #login-section .form-floating > .form-control:not(:placeholder-shown) {
            padding-top: 0.875rem !important;
            padding-bottom: 0.875rem !important;
            height: 3rem !important;
            line-height: 1.4 !important;
        }
        /* Autofill case */
        #login-section .form-floating > .form-control:-webkit-autofill {
            padding-top: 0.875rem !important;
            padding-bottom: 0.875rem !important;
            height: 3rem !important;
            line-height: 1.4 !important;
            -webkit-text-fill-color: var(--text-primary);
            -webkit-box-shadow: 0 0 0px 1000px rgba(31, 41, 55, 0.9) inset;
            transition: background-color 5000s ease-in-out 0s;
        }
        #login-section .form-floating > label {
            padding: 0.875rem 0.75rem !important;
            top: 0;
            height: auto;
            display: block;
        }
        #login-section .form-floating > .form-control:focus ~ label,
        #login-section .form-floating > .form-control:not(:placeholder-shown) ~ label {
            transform: scale(.85) translateY(-.6rem) translateX(.15rem);
        }

        /* Modern Header Styles */
        .app-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 80px;
            background: rgba(26, 31, 46, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--glass-border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            z-index: 1000;
            box-shadow: var(--shadow-primary);
        }
        .header-left {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .header-logo {
            width: 45px;
            height: 45px;
            border-radius: 12px;
            object-fit: contain;
            flex-shrink: 0;
        }
        .header-title {
            display: flex;
            flex-direction: column;
            line-height: 1.2;
        }
        .header-title div {
            display: block;
        }
        .header-title div:first-child {
            font-size: 0.75rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .header-title div:last-child {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-primary);
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Enhanced Card Styles */
        .custom-card { 
            background: var(--glass-bg); 
            border: 1px solid var(--glass-border); 
            border-radius: 16px; 
            padding: 20px; 
            margin-bottom: 20px; 
            box-shadow: var(--shadow-secondary); 
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }
        .custom-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-primary);
            border-color: var(--accent-color);
        }

        /* Compact Ticket Transaction Cards - slim, clear; all text visible */
        .ticket-txn-card {
            padding: 10px 14px !important;
            margin-bottom: 6px !important;
            border-radius: 10px;
            min-height: auto;
            overflow: visible;
        }
        .ticket-txn-card:hover {
            transform: none;
        }
        .ticket-txn-card .d-flex.justify-content-between {
            min-width: 0;
            flex-wrap: nowrap;
        }
        .ticket-txn-card .d-flex.flex-grow-1 {
            min-width: 0;
            overflow: hidden;
        }
        .ticket-txn-card .txn-icon {
            font-size: 1rem;
            width: 24px;
            text-align: center;
            flex-shrink: 0;
        }
        .ticket-txn-card .txn-title {
            font-size: 0.8rem;
            font-weight: 600;
            line-height: 1.3;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            word-break: break-word;
        }
        .ticket-txn-card .txn-meta {
            font-size: 0.7rem;
            color: var(--text-secondary);
            margin-top: 2px;
            line-height: 1.35;
            word-break: break-word;
            overflow-wrap: break-word;
        }
        .ticket-txn-card .txn-amount {
            font-size: 0.85rem;
            font-weight: 600;
            flex-shrink: 0;
            white-space: nowrap;
            margin-left: 8px;
        }
        .ticket-transactions-list .custom-card:last-child {
            margin-bottom: 8px;
        }
        .ticket-transactions-list {
            overflow-x: visible;
        }
        @media (max-width: 576px) {
            .ticket-txn-card {
                padding: 10px 12px 10px 10px !important;
            }
        }

        /* Enhanced Game Cards */
        .game-card {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            overflow: hidden;
            padding: 0;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }
        .game-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-primary);
            border-color: var(--accent-color);
        }
        .game-card img {
            width: 100%;
            height: 140px;
            object-fit: cover;
            display: block;
        }
        .game-card span {
            display: block;
            padding: 15px;
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text-primary);
            text-align: center;
        }

        /* Enhanced Tournament Cards */
        .tournament-card {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            margin-bottom: 20px;
            padding: 20px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        .tournament-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-primary);
            border-color: var(--accent-color);
        }
        .tournament-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--accent-gradient);
        }
        .tournament-card-info {
            display: flex;
            justify-content: space-between;
            align-items: stretch;
            border-top: 1px dashed var(--border-color);
            border-bottom: 1px dashed var(--border-color);
            padding: 15px 0;
            margin: 15px 0;
            gap: 10px;
        }
        .info-item {
            flex: 1;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0 8px;
        }
        .info-item span {
            display: block;
            color: var(--text-secondary);
            font-size: 0.7rem;
            margin-bottom: 6px;
            font-weight: 500;
        }
        .info-item strong {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            color: var(--text-primary);
            font-weight: 600;
            font-size: 0.85rem;
            line-height: 1.2;
        }
        .info-item .prize-icon {
            font-size: 1rem;
        }

        /* Enhanced Bottom Navigation - Compact Design */
        .bottom-nav { 
            position: fixed; 
            bottom: 0; 
            left: 0; 
            width: 100%; 
            height: 72px; 
            background: rgba(30, 35, 48, 0.98);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            display: flex; 
            justify-content: space-evenly; 
            align-items: stretch;
            gap: 4px;
            box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25); 
            z-index: 1000; 
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding: 10px 8px 12px;
        }
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            color: #94a3b8;
            text-decoration: none;
            flex: 1;
            min-width: 0;
            max-width: 88px;
            min-height: 50px;
            padding: 8px 6px;
            transition: color 0.25s ease, transform 0.2s ease;
            border: none;
            background: transparent;
            cursor: pointer;
            font-size: 0.625rem;
            border-radius: 14px;
            position: relative;
        }
        .nav-item i {
            font-size: 1.35rem;
            line-height: 1;
            transition: transform 0.2s ease;
            position: relative;
            z-index: 1;
        }
        .nav-item span {
            font-size: 0.625rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            line-height: 1.1;
            white-space: nowrap;
            position: relative;
            z-index: 1;
        }
        .nav-item.active {
            color: #1a1a0a;
            background: linear-gradient(180deg, #FFD700 0%, #F59E0B 100%);
            box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
        }
        .nav-item.active i {
            transform: scale(1.08);
        }
        .nav-item.active span {
            font-weight: 700;
        }
        .nav-item:not(.active):hover {
            color: #f8fafc;
            background: rgba(255, 255, 255, 0.06);
        }
        .nav-item:not(.active):active {
            transform: scale(0.98);
        }

        /* History Section Tab Improvements */
        .history-tabs-wrapper {
            margin-bottom: 15px;
        }
        
        .tab-container {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            padding: 15px 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 
                0 2px 10px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            margin: 0 auto;
            max-width: 400px;
        }
        
        .tab-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, 
                rgba(0, 212, 255, 0.03) 0%, 
                rgba(255, 255, 255, 0.02) 50%, 
                rgba(0, 212, 255, 0.03) 100%);
            border-radius: 15px;
            z-index: -1;
        }
        
        .tab-button {
            border-radius: 12px;
            margin: 0;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 700;
            padding: 12px 20px;
            border: none;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            color: var(--text-secondary);
            background: transparent;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            text-align: center;
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            flex: 1;
            min-width: 120px;
            max-width: 160px;
        }
        .tab-button.active {
            color: #000;
            background: linear-gradient(135deg, #FFD700, #FFA500);
            box-shadow: none;
            transform: none;
        }
        .tab-button:hover:not(.active) {
            color: var(--accent-color);
            background: rgba(0, 212, 255, 0.1);
            transform: none;
            box-shadow: none;
        }
        .tab-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #FFD700, #FFA500);
            opacity: 0;
            transition: all 0.3s ease;
            border-radius: 12px;
            z-index: -1;
        }
        .tab-button:hover::before {
            opacity: 0;
        }
        .tab-button.active::before {
            opacity: 1;
        }
        
        /* History Content Styling */
        .history-section .tab-content {
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.12) 0%, 
                rgba(255, 255, 255, 0.08) 100%);
            border-radius: 20px;
            padding: 30px;
            border: 2px solid rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 
                0 15px 50px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
            position: relative;
            overflow: hidden;
        }
        .history-section .tab-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, 
                rgba(0, 212, 255, 0.05) 0%, 
                transparent 50%, 
                rgba(0, 212, 255, 0.05) 100%);
            border-radius: 20px;
            z-index: -1;
        }
        .history-section .form-select {
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.1) 0%, 
                rgba(255, 255, 255, 0.05) 100%);
            border: 2px solid rgba(255, 255, 255, 0.2);
            color: var(--text-primary);
            border-radius: 12px;
            padding: 12px 16px;
            font-size: 14px;
            font-weight: 600;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }
        .history-section .form-select:focus {
            border-color: var(--accent-color);
            box-shadow: 
                0 0 0 0.3rem rgba(0, 212, 255, 0.25),
                0 4px 15px rgba(0, 212, 255, 0.2);
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.15) 0%, 
                rgba(255, 255, 255, 0.08) 100%);
            transform: translateY(-2px);
        }
        .history-section .form-select:hover {
            border-color: rgba(255, 215, 0, 0.5);
            transform: translateY(-1px);
            box-shadow: 0 2px 10px rgba(255, 215, 0, 0.1);
        }
        
        /* Tab Hover Effects */
        .tab-button:hover {
            color: var(--accent-color) !important;
        }
        
        /* Active Tab Animation - Disabled */
        .tab-button.active {
            animation: none;
        }
        
        @keyframes tabPulse {
            0%, 100% { 
                box-shadow: 
                    0 3px 10px rgba(0, 212, 255, 0.3),
                    0 0 0 1px rgba(255, 255, 255, 0.2);
            }
            50% { 
                box-shadow: 
                    0 4px 15px rgba(0, 212, 255, 0.4),
                    0 0 0 1px rgba(255, 255, 255, 0.3);
            }
        }
        
        
        /* Tab Icons */
        .tab-button i {
            font-size: 14px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-block;
        }
        .tab-button.active i {
            animation: none;
        }
        .tab-button:hover i {
            transform: none;
            color: var(--accent-color);
        }
        
        @keyframes iconBounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0) scale(1); }
            40% { transform: translateY(-4px) scale(1.1); }
            60% { transform: translateY(-2px) scale(1.05); }
        }
        
        @keyframes iconRotate {
            0% { transform: rotate(0deg); }
            50% { transform: rotate(10deg); }
            100% { transform: rotate(0deg); }
        }
        
        /* Tab Container Animation */
        .tab-container {
            animation: containerFloat 4s ease-in-out infinite;
        }
        
        @keyframes containerFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-2px); }
        }
        
        /* Enhanced Tab Text */
        .history-section .nav-link {
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }
        .history-section .nav-link.active {
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }
        
        /* Tab Loading State */
        .history-section .nav-link.loading {
            position: relative;
            overflow: hidden;
        }
        .history-section .nav-link.loading::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent, 
                rgba(255, 255, 255, 0.4), 
                transparent);
            animation: shimmer 1.5s infinite;
        }
        
        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }
        
        /* History Header Styling */
        .history-header {
            text-align: center;
            margin-bottom: 30px;
        }
        .history-header .section-title {
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: 2.2rem;
            font-weight: 800;
            margin-bottom: 8px;
        }
        .history-header .section-title i {
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: 2.4rem;
        }
        .history-header p {
            color: var(--text-secondary);
            font-size: 1rem;
            font-weight: 500;
        }
        
        /* History Tabs Wrapper */
        .history-tabs-wrapper {
            position: relative;
            margin-bottom: 30px;
        }
        
        /* Tab Indicator */
        .tab-indicator {
            position: absolute;
            bottom: -2px;
            left: 50%;
            width: 0;
            height: 3px;
            background: var(--accent-gradient);
            border-radius: 2px;
            transform: translateX(-50%);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .tab-button.active .tab-indicator {
            width: 80%;
        }
        .tab-button:hover .tab-indicator {
            width: 60%;
            background: linear-gradient(90deg, 
                rgba(0, 212, 255, 0.7), 
                rgba(0, 212, 255, 0.3));
        }
        
        /* Enhanced Tab Structure */
        .tab-button span {
            font-weight: 600;
            font-size: 11px;
            letter-spacing: 0.8px;
        }
        
        /* Tab Hover Glow Effect - Disabled */
        .tab-button::after {
            display: none;
        }
        .tab-button:hover::after {
            display: none;
        }
        .tab-button.active::after {
            display: none;
        }
        
        /* Tab Container Enhanced */
        .tab-container {
            position: relative;
            overflow: visible;
        }
        .tab-container::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(0, 212, 255, 0.3) 50%, 
                transparent 100%);
            border-radius: 1px;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .tab-container {
                padding: 12px 15px;
                gap: 15px;
                max-width: 350px;
            }
            .tab-button {
                padding: 10px 16px;
                font-size: 12px;
                min-width: 100px;
                max-width: 140px;
            }
            .tab-button span {
                font-size: 10px;
            }
            .tab-button i {
                font-size: 12px;
            }
        }
        
        @media (max-width: 480px) {
            .tab-container {
                padding: 10px 12px;
                gap: 12px;
                max-width: 300px;
            }
            .tab-button {
                padding: 8px 12px;
                font-size: 11px;
                min-width: 80px;
                max-width: 120px;
            }
            .tab-button span {
                font-size: 9px;
            }
            .tab-button i {
                font-size: 11px;
            }
        }

        /* Navigation Pulse Effect - subtle on active tab */
        .nav-item.active {
            animation: navPulse 2.5s ease-in-out infinite;
        }
        @keyframes navPulse {
            0%, 100% { box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35); }
            50% { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5); }
        }

        /* Navigation Icon - slight scale on active */
        .nav-item.active i {
            transform: scale(1.08);
        }

        /* Enhanced Navigation Background */
        .bottom-nav::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(180deg, 
                rgba(0, 212, 255, 0.05) 0%, 
                rgba(0, 212, 255, 0.02) 50%, 
                transparent 100%);
            pointer-events: none;
        }

        /* Navigation Item hover */
        .nav-item:not(.active):hover {
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
        }

        /* Enhanced Buttons */
        .btn-custom {
            border-radius: 12px;
            font-size: 0.9rem;
            font-weight: 600;
            padding: 12px 20px;
            border: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        .btn-custom::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }
        .btn-custom:hover::before {
            left: 100%;
        }
        .btn-custom-accent {
            background: var(--accent-gradient);
            color: #000;
            font-weight: 700;
        }
        .btn-custom-accent:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
        }

        /* Enhanced Wallet Section */
        .wallet-card {
            background: linear-gradient(135deg, var(--secondary-bg) 0%, #2A2519 100%);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 25px;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-primary);
        }
        .wallet-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--accent-gradient);
        }
        .total-balance-display {
            background: var(--glass-bg) !important;
            border: 1px solid var(--glass-border) !important;
            border-radius: 16px !important;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        .total-balance-display h1 {
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Enhanced Profile Section */
        .profile-header-card {
            background: linear-gradient(135deg, var(--secondary-bg) 0%, #2A2519 100%);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 30px;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-primary);
        }
        .profile-header-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--accent-gradient);
        }
        .profile-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 3px solid var(--accent-color);
            object-fit: cover;
            background-color: var(--primary-bg);
            box-shadow: var(--shadow-secondary);
        }

        /* Enhanced Animations */
        .section {
            animation: slideInUp 0.6s ease-out;
        }
        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .custom-card {
            animation: fadeInScale 0.4s ease-out;
        }
        @keyframes fadeInScale {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* Smooth scroll behavior */
        html {
            scroll-behavior: smooth;
        }

        /* Enhanced focus states */
        .form-control:focus, .btn:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
        }
/* Tournament Details Title */
    #tdTitleEl {
        font-size: 1.5rem;
        font-weight: 700;
        background: linear-gradient(135deg, #FFC107, #FF9800);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 0;
        text-align: center;
        padding: 10px 20px;
        border-radius: 10px;
        background-color: rgba(255, 193, 7, 0.1);
    }
    
    /* Tournament Details custom tabs */
    .td-tabs { 
        display:flex; 
        gap:15px; 
        align-items:center; 
        justify-content:center; 
        margin: 20px 0; 
    }
    .td-tab { 
        appearance:none; 
        border: 2px solid transparent;
        background: transparent; 
        color: rgba(255,255,255,0.6); 
        padding: 12px 25px; 
        border-radius: 12px; 
        font-weight: 600; 
        font-size: 0.95rem; 
        transition: all 0.3s ease; 
        position: relative;
        overflow: hidden;
    }
    .td-tab::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 152, 0, 0.3));
        transition: left 0.3s ease;
    }
    .td-tab:hover { 
        color: #fff;
        border-color: rgba(255, 193, 7, 0.5);
        box-shadow: 0 4px 20px rgba(255, 193, 7, 0.2);
    }
    .td-tab:hover::before {
        left: 100%;
    }
    .td-tab.active { 
        background: linear-gradient(135deg, #FFC107, #FF9800);
        border-color: #FFC107;
        color: #000;
        box-shadow: 0 4px 20px rgba(255, 193, 7, 0.4);
        transform: scale(1.05);
    }
    .td-tab.active i,
    .td-tab.active .bi {
        color: #1a1a1a !important;
    }
    .td-tab.active::before {
        display: none;
    }
    .td-tab-content { position: relative; }
    .td-pane { display:none; }
    .td-pane.active { display:block; animation: td-fade .18s ease-out; }
    @keyframes td-fade { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: translateY(0);} }
    #tdResultsEl { overflow-x: visible; }
    
    /* Tournament Player Cards */
    #tdPlayersListEl .card {
        cursor: pointer;
        border-radius: 12px !important;
    }
    #tdPlayersListEl .card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2) !important;
        border-left-width: 6px !important;
    }
    #tdPlayersListEl .badge {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
