        :root {
            --bg-dark: #050510;
            --bg-panel: #13132a;
            --primary-blue: #00f2ff;
            --primary-purple: #bd00ff;
            --primary-red: #ff0000;
            --text-main: #ffffff;
            --text-muted: #a0a0b0;
        }

        /* --- GLOBAL RESET --- */
        * { 
            margin: 0; padding: 0; box-sizing: border-box; 
            font-family: 'Poppins', sans-serif; 
            user-select: none; 
            -webkit-tap-highlight-color: transparent;
            outline: none;
        }

        body {
            background-color: var(--bg-dark);
            color: var(--text-main);
            height: 100vh;
            width: 100vw;
            overflow: hidden;
            position: relative;
        }

        /* --- BACKGROUND ANIMATION --- */
        .animated-bg {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
            background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e);
            background-size: 400% 400%;
            animation: gradientBG 15s ease infinite;
        }
        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        .particle {
            position: absolute; width: 5px; height: 5px; background: rgba(255,255,255,0.5);
            border-radius: 50%; animation: floatUp 10s linear infinite;
        }
        @keyframes floatUp {
            0% { transform: translateY(100vh); opacity: 0; }
            50% { opacity: 0.8; }
            100% { transform: translateY(-10vh); opacity: 0; }
        }

        /* --- LAYOUT CONTAINER --- */
        .app-container {
            width: 100%; max-width: 450px; height: 100%; margin: 0 auto;
            background: rgba(10, 10, 25, 0.95);
            position: relative; display: flex; flex-direction: column;
            box-shadow: 0 0 30px rgba(0,0,0,0.8);
        }

        /* --- TYPOGRAPHY --- */
        .gamer-font { font-family: 'Orbitron', sans-serif; letter-spacing: 1px; }
        .glow-text {
            text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
            background: linear-gradient(to bottom, #fff, var(--primary-blue));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        }

        /* --- AFTER (New Code) --- */
.auth-view {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 100; padding: 30px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: rgba(10, 10, 25, 0.98); /* Dark Blue Theme Color */
    transition: transform 0.4s ease-in-out;
}
        .auth-view.hidden { transform: translateX(100%); }
        .auth-view.active { transform: translateX(0); }

        .auth-card {
            width: 100%; position: relative;
            background: linear-gradient(160deg, #1a1a2e 0%, #16213e 100%);
            padding: 2px;
            border-radius: 20px;
        }
        .auth-card-inner {
            background: var(--bg-dark); border-radius: 18px; padding: 30px 20px;
            display: flex; flex-direction: column; gap: 15px;
        }
        
        .neon-accent {
            position: absolute; width: 60px; height: 60px;
            border: 2px solid transparent; border-radius: 10px;
            pointer-events: none;
        }
        .top-left { top: -2px; left: -2px; border-top-color: var(--primary-blue); border-left-color: var(--primary-blue); }
        .bottom-right { bottom: -2px; right: -2px; border-bottom-color: var(--primary-purple); border-right-color: var(--primary-purple); }

        .input-box { width: 100%; position: relative; }
        .input-box input {
            width: 100%; padding: 14px; background: #232336; border: 1px solid #333;
            border-radius: 8px; color: white; outline: none; font-size: 0.9rem;
            transition: 0.3s;
        }
        .input-box input:focus { border-color: var(--primary-blue); box-shadow: 0 0 8px rgba(0, 242, 255, 0.2); }
        
        .btn-action {
            width: 100%; padding: 15px; border-radius: 8px; border: none; margin-top: 10px;
            background: linear-gradient(90deg, #bd00ff, #00f2ff);
            color: white; font-family: 'Orbitron'; font-weight: bold; font-size: 1rem;
            cursor: pointer; box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
        }
        
        .toggle-link { text-align: center; margin-top: 15px; font-size: 0.85rem; color: #ccc; }
        .toggle-link span { color: var(--primary-blue); cursor: pointer; font-weight: 600; }

        /* --- APP MAIN INTERFACE --- */
        .app-view {
            flex: 1; overflow-y: auto; display: none; padding-bottom: 80px;
        }
        .app-view.active { display: block; animation: fadeIn 0.3s ease; }
        @keyframes fadeIn { from{opacity:0;} to{opacity:1;} }

        /* Header */
        .top-header {
            padding: 15px 20px; display: flex; justify-content: space-between; align-items: center;
            background: rgba(19, 19, 42, 0.9); backdrop-filter: blur(10px);
            position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        .user-profile { display: flex; align-items: center; gap: 10px; }
        .avatar-circle {
            width: 42px; height: 42px; background: var(--primary-blue); border-radius: 50%;
            display: flex; justify-content: center; align-items: center; color: #000; font-weight: bold;
        }
        .currency-badge {
            background: #ff4757; color: white; padding: 6px 14px; border-radius: 20px;
            display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem;
            cursor: pointer;
        }

        /* Home - Carousel */
.carousel-container {
    margin: 20px;
    width: calc(100% - 40px);
    aspect-ratio: 16 / 9;
    border-radius: 12px; 
    overflow: hidden; 
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
    border: 1px solid #333;
}

/* Wrapper jo slide karega */
.carousel-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out; /* Smooth Slide Effect */
}

/* Individual Slide */
.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

/* Dots Container */
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

/* Dot Style */
.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Active Dot Style (Moving Effect) */
.dot.active {
    background-color: #00f2ff; /* Blue Color */
    width: 20px; /* Thoda lamba hoga */
    border-radius: 4px;
}
        .carousel-overlay {
            width: 100%; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0.8), transparent);
            position: absolute; top:0; left:0;
        }
        .carousel-text {
            position: relative; z-index: 2; padding: 20px;
        }
        .carousel-text h2 {
            font-family: 'Orbitron'; font-style: italic; font-size: 1.5rem; line-height: 1;
            text-shadow: 0 0 10px var(--primary-purple); margin-bottom: 5px;
        }
        .info-box {
            position: absolute; right: 10px; top: 10px; bottom: 10px; width: 130px;
            background: rgba(0,0,0,0.6); border: 1px solid var(--primary-purple); border-radius: 8px;
            padding: 8px; display: flex; flex-direction: column; justify-content: center;
            font-size: 0.55rem; color: #ddd; gap: 4px; backdrop-filter: blur(2px);
        }

        /* Home - Contest Grid */
        .section-title { padding: 0 20px; font-size: 1.1rem; margin-bottom: 2px; font-weight: 600; }
        .section-sub { padding: 0 20px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 15px; }

        .contest-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding: 0 20px 20px; }
        .contest-btn {
            background: #1a1a2e; border: 1px solid #2d2d44; border-radius: 12px;
            height: 100px; display: flex; flex-direction: column; justify-content: center; align-items: center;
            cursor: pointer; transition: 0.2s;
        }
        .contest-btn:active { transform: scale(0.95); }
        .contest-icon {
            width: 35px; height: 35px; background: #ffcc00; border-radius: 50%;
            display: flex; justify-content: center; align-items: center; color: black; margin-bottom: 8px;
        }
        .contest-label { font-size: 0.75rem; font-weight: bold; letter-spacing: 0.5px; }

        /* Home - Exclusive Grid */
        .exclusive-grid { 
            display: grid; 
            grid-template-columns: 1fr 1fr 1fr; 
            gap: 8px; 
            padding: 0 15px; 
        }
        .exclusive-card {
            background: #000; border-radius: 12px; overflow: hidden; height: 180px;
            display: flex; flex-direction: column; position: relative; border: 1px solid #333;
            cursor: pointer;
        }
        .exclusive-img { 
            width: 100%; height: 100%; object-fit: cover; 
            opacity: 1; 
        }
        .card-text { display: none; }
        .join-btn-strip {
            position: absolute; bottom: 0; width: 100%; height: 45px;
            background: #ff0000; color: white; display: flex; justify-content: center; align-items: center;
            font-family: 'Orbitron'; font-weight: bold; font-size: 0.9rem; text-transform: uppercase;
        }

        /* Promotion Tab */
        .marquee-container {
            background: #00f2ff;
            color: #000000; 
            padding: 8px 0; overflow: hidden; white-space: nowrap;
            position: relative; box-shadow: 0 2px 10px rgba(0,0,0,0.5);
            min-height: 35px; 
        }
        .marquee-text {
            display: inline-block; padding-left: 100%;
            animation: marquee 15s linear infinite;
            font-size: 0.9rem; font-weight: bold; font-family: 'Orbitron'; letter-spacing: 1px;
        }
        @keyframes marquee { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }

        /* --- PROMOTION TAB STYLES --- */

/* Top Slider Container (Same as Home) */
.promo-slider-container {
    margin: 20px; /* Chipakna band karne ke liye margin */
    width: calc(100% - 40px);
    aspect-ratio: 16 / 9; /* YouTube Thumbnail Size */
    border-radius: 12px; /* Rounded Corners */
    overflow: hidden; 
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
    border: 1px solid #333;
}

.promo-slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.promo-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

/* Dots for Promo Slider */
.promo-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

/* Grid Items (Niche wale banners) */
.promo-item {
    margin: 15px 20px;
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* YouTube Thumbnail Ratio for Grid Items */
.promo-banner-container {
    width: 100%;
    aspect-ratio: 16 / 9; /* 16:9 Ratio */
    overflow: hidden;
}

.promo-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-details {
    padding: 12px 15px;
}

/* Title Styling (White & Single Line) */
.promo-title {
    color: white; /* White Text */
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    font-family: 'Poppins', sans-serif;
}

/* Description Styling (Grey & Small) */
.promo-desc {
    font-size: 0.8rem;
    color: #aaa;
}
        .promo-details p { font-size: 0.8rem; color: #ccc; margin-bottom: 10px; }

        /* --- LEADERBOARD STYLES (FIXED & CLEAN) --- */
        .lb-container { padding: 20px 15px; }
        
        .lb-header-box {
            background: rgba(19, 19, 42, 0.8); border: 1px solid var(--primary-blue);
            border-radius: 12px; padding: 15px; text-align: center; margin-bottom: 20px;
            box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
        }
        .lb-title {
            font-family: 'Orbitron'; font-size: 1.4rem; color: var(--primary-blue);
            text-transform: uppercase; letter-spacing: 1px; font-weight: bold;
            text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
        }

        .lb-table-head {
            display: flex; justify-content: space-between; padding: 0 15px 10px;
            color: #888; font-size: 0.75rem; font-weight: bold; text-transform: uppercase;
        }

        .lb-list { display: flex; flex-direction: column; gap: 10px; }

        .lb-card {
            display: flex; 
            align-items: center; /* Vertical Center */
            justify-content: space-between;
            gap: 10px; /* Elements ke beech gap */
            background: linear-gradient(90deg, #8e2de2, #4a00e0);
            padding: 10px 15px; border-radius: 12px; color: white;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
            border: 1px solid rgba(255,255,255,0.1);
        }
        
        /* Rank 1 Special Style */
        .lb-card.rank-1 { 
            background: linear-gradient(90deg, #aa076b, #61045f); 
            border: 2px solid gold; 
            padding: 12px 15px;
        } 

        .lb-rank {
            font-family: 'Orbitron'; font-weight: bold; font-size: 1.1rem; 
            min-width: 35px; /* Fixed width taaki mix na ho */
            text-align: center;
        }
        
        /* Container for Name & Crown */
        .lb-name-group {
            flex: 1; /* Ye baki bachi jagah lega */
            display: flex; 
            flex-direction: column; /* Upar Niche karne ke liye */
            justify-content: center;
            overflow: hidden;
            padding: 0 5px;
        }
        
        .crown-icon { 
            color: gold; font-size: 0.9rem; margin-bottom: 2px;
        }

        .lb-name { 
            font-weight: 500; font-size: 0.95rem; 
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
        }
        
        .lb-win { 
            min-width: 80px; /* Money ke liye fixed jagah */
            text-align: right;
            font-weight: bold; font-size: 1rem; color: #ffcc00;
            display: flex; align-items: center; justify-content: flex-end; gap: 5px;
        }

        /* --- JOINED / ROOM STYLES --- */
        .special-notice-box {
            background: rgba(255, 204, 0, 0.1); border: 1px solid #ffcc00;
            border-radius: 8px; padding: 15px; margin: 0 20px 20px;
            color: #ffcc00; font-size: 0.9rem;
        }
        .notice-title { font-weight: bold; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
        #md-notice-text { color: #ffffff; }

        .details-card {
            background: #1a1a2e; border-radius: 12px; padding: 20px; margin: 0 20px 20px;
            border: 1px solid rgba(255,255,255,0.05);
        }
        .dc-title { font-weight: bold; font-size: 1rem; color: white; margin-bottom: 15px; }
        .dc-row { margin-bottom: 10px; font-size: 0.9rem; color: #ccc; }
        .dc-row i { width: 20px; color: var(--primary-blue); }

        .room-box {
            background: #232336; border-radius: 8px; padding: 15px; margin-top: 10px;
            display: flex; justify-content: space-between; align-items: center;
            border: 1px solid #333;
        }
        .room-text { font-family: 'Orbitron'; font-size: 1.1rem; color: white; }
        .room-label { font-size: 0.7rem; color: #aaa; text-transform: uppercase; }
        .copy-btn-small {
            background: var(--primary-blue); color: black; border: none;
            padding: 5px 12px; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 0.8rem;
        }

        /* --- WALLET STYLES --- */
        .wallet-card-container { padding: 20px; }
        .wallet-card {
            background: linear-gradient(90deg, #2575fc, #bd00ff);
            border-radius: 15px; padding: 25px; text-align: center; color: white;
            box-shadow: 0 10px 20px rgba(0,0,0,0.5);
            margin-bottom: 20px;
        }
        .wallet-balance-big { font-size: 2.5rem; font-family: 'Orbitron'; margin: 10px 0; font-weight: bold; }
        .wallet-sub { font-size: 0.8rem; opacity: 0.9; }

        .wallet-actions { display: flex; gap: 15px; padding: 0 20px; }
        .action-btn {
            flex: 1; padding: 12px; border: none; border-radius: 8px; font-weight: bold;
            color: white; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px;
        }
        .btn-green { background: #2ecc71; box-shadow: 0 4px 0 #27ae60; }
        .btn-red { background: #ff4757; box-shadow: 0 4px 0 #e84118; }
        .btn-green:active, .btn-red:active { transform: translateY(4px); box-shadow: none; }

        .transaction-list { padding: 20px; }
        .trans-empty { text-align: center; color: #666; margin-top: 50px; }

        .trans-card {
            background: #13132a; /* Dark Blue Panel */
            border: 1px solid #333;
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }
        .trans-left { display: flex; flex-direction: column; gap: 5px; }
        .trans-title { font-size: 0.9rem; font-weight: 600; color: white; line-height: 1.2; }
        .trans-sub { font-size: 0.75rem; color: #aaa; }
        .trans-right { text-align: right; display: flex; flex-direction: column; gap: 2px; }
        .trans-amount { font-size: 1rem; font-weight: bold; }
        .trans-status { font-size: 0.7rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }
        
        .status-pending { color: #f1c40f; } /* Yellow */
        .status-approved, .status-success { color: #2ecc71; } /* Green */
        .status-rejected, .status-failed { color: #ff4757; } /* Red */
        .amount-green { color: #2ecc71; }
        .amount-red { color: #ff4757; }

        .view-all-btn {
            width: 100%; padding: 14px; background: transparent; 
            border: 1px solid var(--primary-blue); color: var(--primary-blue);
            border-radius: 10px; font-weight: bold; margin-top: 15px;
            cursor: pointer; font-family: 'Poppins'; transition: 0.3s;
        }
        .view-all-btn:active { background: rgba(0, 242, 255, 0.1); transform: scale(0.98); }

        /* --- MODAL / POPUP STYLES --- */
        .popup-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.85); z-index: 200; backdrop-filter: blur(5px);
            display: none; justify-content: center; align-items: center;
        }
        .popup-overlay.active { display: flex; animation: popIn 0.2s ease; }
        @keyframes popIn { from{transform:scale(0.9); opacity:0;} to{transform:scale(1); opacity:1;} }
        
        .popup-box {
            width: 90%; max-width: 350px; background: #13132a; border: 1px solid var(--primary-blue);
            border-radius: 15px; padding: 20px; position: relative;
        }
        .popup-header { text-align: center; margin-bottom: 20px; font-weight: bold; font-size: 1.1rem; }
        .close-popup { position: absolute; right: 15px; top: 15px; color: #aaa; cursor: pointer; }
        
        .method-btn {
            width: 100%; padding: 15px; background: #1f1f35; border: 1px solid #333;
            border-radius: 10px; margin-bottom: 10px; display: flex; align-items: center; gap: 15px;
            color: white; cursor: pointer; transition: 0.2s;
        }
        .method-btn:hover { border-color: var(--primary-blue); background: #252540; }
        .method-icon { font-size: 1.2rem; color: var(--primary-blue); }

        /* --- AFTER (New Code) --- */
.manual-view {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 210;
    background: rgba(10, 10, 25, 0.98); /* Dark Blue Theme Color */
    display: none; flex-direction: column;
    padding: 20px; overflow-y: auto;
}
        .manual-view.active { display: flex; }
        
        .qr-frame {
            width: 220px; /* Thoda bada kar diya scan ke liye */
            height: 220px; /* EXACT SQUARE (Height = Width) */
            margin: 0 auto 20px; border: 2px solid white; border-radius: 10px;
            overflow: hidden; background: #fff; /* Background white rakha taaki QR saaf dikhe */
            display: flex; justify-content: center; align-items: center;
        }
        .qr-img { 
            width: 100%; 
            height: 100%; 
            object-fit: contain; /* Pura QR dikhega, side se katega nahi */ 
            padding: 5px; /* Thoda gap border se */
        }
        
        .upi-box {
            background: #1f1f35; padding: 10px; border-radius: 8px; display: flex; justify-content: space-between;
            align-items: center; margin-bottom: 20px; border: 1px solid #333;
        }
        .copy-btn { background: var(--primary-blue); color: #000; border: none; padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; cursor: pointer; }

        .form-group { margin-bottom: 15px; }
        .form-label { display: block; margin-bottom: 5px; color: #aaa; font-size: 0.9rem; }
        .file-upload-wrapper {
            background: #232336; border: 1px dashed #555; padding: 15px; border-radius: 8px; text-align: center;
        }

        /* --- FAKE GATEWAY STYLES --- */
        .gateway-view {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 220;
            background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center;
            backdrop-filter: blur(5px);
        }
        .gateway-view.active { display: flex; }
        .gateway-card {
            width: 90%; max-width: 340px; background: #000; padding: 0;
            border-radius: 12px; border: none; text-align: center;
            position: relative; overflow: hidden;
            box-shadow: 0 10px 40px rgba(0,0,0,0.8);
        }
        .close-gateway {
            position: absolute; top: 10px; right: 10px; width: 24px; height: 24px;
            background: #ff0000; color: white; border-radius: 50%;
            display: flex; justify-content: center; align-items: center; font-size: 0.8rem;
            font-weight: bold; cursor: pointer; z-index: 10;
        }
        .gateway-header {
            background: #333; padding: 15px 20px; display: flex; align-items: center; gap: 15px;
        }
        .upi-logo {
            width: 45px; height: 45px; background: white; border-radius: 8px; padding: 5px; object-fit: contain;
        }
        .payee-info { text-align: left; }
        .payee-info div:nth-child(1) { color: #aaa; font-size: 0.7rem; font-style: italic; }
        .payee-name { color: white; font-weight: bold; font-size: 1rem; display: flex; align-items: center; gap: 5px; }
        .verified-badge { color: #ffcc00; font-size: 0.9rem; }
        .verified-text { color: #ffcc00; font-size: 0.65rem; font-style: italic; }
        .qr-container {
            background: white; padding: 10px; width: 200px; height: 200px; margin: 0 auto;
        }
        .gateway-qr { width: 100%; height: 100%; }
        .timer-text { color: #ffcc00; font-size: 0.9rem; margin-top: 15px; }
        .loader-blocks {
            display: flex; justify-content: center; gap: 5px; margin: 10px 0 20px;
        }
        .loader-blocks span {
            width: 10px; height: 10px; background: #333; display: inline-block;
            animation: blink 1.5s infinite;
        }
        .loader-blocks span:nth-child(2) { animation-delay: 0.2s; }
        .loader-blocks span:nth-child(3) { animation-delay: 0.4s; }
        .loader-blocks span:nth-child(4) { animation-delay: 0.6s; }
        .loader-blocks span:nth-child(5) { animation-delay: 0.8s; }
        @keyframes blink {
            0%, 100% { background: #333; }
            50% { background: #fff; }
        }
        .paytm-btn {
            width: 80%; padding: 10px; background: white; border-radius: 6px; border: none;
            color: black; font-weight: bold; font-size: 1rem; margin-bottom: 10px; cursor: pointer;
        }
        .download-btn {
            width: 80%; padding: 10px; background: transparent; border-radius: 6px;
            border: 1px solid #3d4a6b; color: white; font-size: 0.9rem; margin-bottom: 20px; cursor: pointer;
            box-shadow: 0 0 10px rgba(61, 74, 107, 0.5);
        }
        .gateway-footer {
            padding: 15px 20px; text-align: left; font-size: 0.85rem; color: white;
        }
        .gateway-footer .row {
            display: flex; justify-content: space-between; margin-bottom: 8px;
        }
        .gateway-footer .row span:nth-child(2) { font-weight: bold; }

        /* --- WITHDRAW SCREEN STYLES --- */
        .neon-header {
            text-align: center; font-family: 'Orbitron'; font-size: 1.5rem; color: #00f2ff;
            text-shadow: 0 0 15px #00f2ff; margin: 20px 0; letter-spacing: 1px;
        }
        .withdraw-card {
            background: #13132a; border-radius: 15px; padding: 25px 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5); text-align: center;
        }
        .green-bal { color: #2ecc71; font-size: 2.2rem; font-weight: bold; margin: 5px 0 15px; font-family: 'Orbitron'; }
        .limit-text { color: #888; font-size: 0.75rem; margin-bottom: 20px; border-top: 1px solid #333; padding-top: 15px; }
        
        .method-toggle { display: flex; gap: 10px; margin-bottom: 20px; }
        .toggle-btn {
            flex: 1; padding: 12px; border-radius: 8px; border: 1px solid #333;
            background: #1f1f35; color: #aaa; font-weight: bold; cursor: pointer; transition: 0.3s;
        }
        .toggle-btn.active {
            background: linear-gradient(90deg, #8e2de2, #4a00e0);
            color: white; border: none; box-shadow: 0 0 10px rgba(74, 0, 224, 0.5);
        }

        /* --- PROFILE SCREEN STYLES --- */
        .profile-container { padding: 20px; }
        
        .user-card {
            background: #13132a; border-radius: 16px; padding: 20px;
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: 25px; border: 1px solid rgba(255,255,255,0.05);
        }
        .user-info-left { display: flex; align-items: center; gap: 15px; }
        .profile-avatar-big {
            width: 60px; height: 60px; border-radius: 50%;
            background: #ff0055; color: white; font-size: 1.4rem; font-weight: bold;
            display: flex; justify-content: center; align-items: center;
        }
        .user-text h3 { font-size: 1.1rem; color: white; margin-bottom: 2px; }
        .user-text p { font-size: 0.85rem; color: #888; display: flex; align-items: center; gap: 8px; }
        .edit-link { color: #00f2ff; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 0.9rem; }

        .menu-list { display: flex; flex-direction: column; gap: 12px; }
        .menu-item {
            background: #13132a; border-radius: 12px; padding: 18px 20px;
            display: flex; align-items: center; justify-content: space-between;
            cursor: pointer; transition: 0.2s; border: 1px solid rgba(255,255,255,0.05);
        }
        .menu-item:active { transform: scale(0.98); background: #1a1a35; }
        .menu-left { display: flex; align-items: center; gap: 15px; font-size: 1rem; font-weight: 500; }
        .menu-icon { color: #00f2ff; width: 20px; text-align: center; font-size: 1.1rem; } 
        .arrow-icon { color: #666; font-size: 0.8rem; }

        .logout-btn-large {
            width: 100%; padding: 16px; border-radius: 12px; border: none;
            background: #ff4757; color: white; font-family: 'Poppins';
            font-weight: bold; font-size: 1.1rem; margin-top: 30px;
            cursor: pointer; box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
        }

        /* --- REFERRAL SCREEN STYLES --- */
        .referral-container { padding: 20px; text-align: center; }
        .referral-card {
            background: linear-gradient(160deg, #1a1a2e 0%, #16213e 100%);
            border-radius: 15px; padding: 25px; border: 1px solid rgba(255,255,255,0.1);
            margin-bottom: 20px;
        }
        .referral-box {
            background: #0f0f1a; border: 2px dashed #00f2ff; border-radius: 8px;
            padding: 10px 20px; color: #00f2ff; font-family: 'Orbitron'; font-size: 1.5rem;
            margin: 15px auto; width: fit-content; letter-spacing: 2px;
            user-select: text !important;
            -webkit-user-select: text !important;
        }
        .ref-btn-row { display: flex; gap: 10px; margin-top: 20px; }
        .ref-stat-row { display: flex; gap: 15px; margin-top: 15px; }
        .stat-card {
            flex: 1; background: #13132a; padding: 20px; border-radius: 12px; text-align: center;
            border: 1px solid rgba(255,255,255,0.05);
        }
        .stat-val { font-size: 1.5rem; font-weight: bold; color: #00f2ff; margin-bottom: 5px; }
        .stat-label { font-size: 0.75rem; color: #aaa; }

        .ref-list-item {
            background: #1f1f35; padding: 12px; border-radius: 8px; margin-bottom: 8px;
            display: flex; justify-content: space-between; align-items: center; border: 1px solid #333;
        }

        /* --- CUSTOMER SUPPORT STYLES --- */
        .support-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            padding: 20px;
        }
        .support-card {
            background: #1a1a2e;
            padding: 25px 15px;
            border-radius: 12px;
            text-align: center;
            border: 1px solid rgba(255,255,255,0.05);
            cursor: pointer;
            transition: 0.3s;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }
        .support-card:active { transform: scale(0.98); background: #232336; }
        .support-icon { font-size: 2rem; margin-bottom: 5px; }
        .support-text { font-weight: bold; font-size: 0.9rem; color: white; }

        /* --- ANNOUNCEMENTS STYLES --- */
        .announcement-empty {
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            height: 60vh; text-align: center; padding: 20px;
        }
        .bell-icon-off {
            font-size: 4rem; color: #bd00ff; margin-bottom: 20px;
            text-shadow: 0 0 20px rgba(189, 0, 255, 0.5);
        }
        .announcement-list { padding: 20px; display: flex; flex-direction: column; gap: 15px; }
        .announcement-card {
            background: #13132a; border-radius: 12px; padding: 20px;
            border-left: 4px solid var(--primary-blue);
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }
        .announcement-date { font-size: 0.7rem; color: #888; margin-bottom: 5px; }
        .announcement-title { font-weight: bold; font-size: 1.1rem; color: white; margin-bottom: 5px; }
        .announcement-body { font-size: 0.9rem; color: #ccc; line-height: 1.4; }

        /* --- AFTER (New Code) --- */
.match-view-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 25, 0.98); /* Dark Blue Theme Color */
    z-index: 300; overflow-y: auto;
    display: none; flex-direction: column;
}
        .match-view-container.active { display: flex; }

        .match-banner {
            width: 100%; aspect-ratio: 16/9; background: #000; position: relative;
        }
        .match-banner img { width: 100%; height: 100%; object-fit: cover; }
        
        .match-header-info { padding: 20px; }
        .match-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 5px; color: white; }
        .match-time { color: #aaa; font-size: 0.85rem; }

        .info-grid {
            display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 0 20px 20px;
        }
        .info-box-item {
            background: #1a1a2e; border-radius: 8px; padding: 10px;
            text-align: left; border: 1px solid rgba(255,255,255,0.05);
        }
        .ib-label { font-size: 0.65rem; color: #aaa; text-transform: uppercase; margin-bottom: 4px; }
        .ib-value { font-size: 0.95rem; font-weight: bold; color: white; }
        .val-gold { color: #ffcc00; }

        .detail-section { padding: 0 20px 20px; }
        .detail-header { font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: white; }
        
        .prize-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
        .prize-table th, .prize-table td {
            border: 1px solid #333; padding: 12px; text-align: center; font-size: 0.9rem; color: #ccc;
        }
        .prize-table th { background: #13132a; color: white; }

        .rules-box {
            background: #1a1a2e; padding: 15px; border-radius: 8px; font-size: 0.85rem;
            color: #aaa; line-height: 1.6; border: 1px solid rgba(255,255,255,0.05);
        }
        .rules-box ul { padding-left: 20px; }
        .rules-box li { margin-bottom: 8px; }

        /* Sticky Footer Button */
        .sticky-footer {
            position: fixed; bottom: 0; left: 0; width: 100%;
            padding: 15px 20px; background: rgba(10, 10, 25, 0.95);
            border-top: 1px solid #333; z-index: 310;
        }
        .sticky-btn {
            width: 100%; padding: 15px; border-radius: 8px; border: none;
            font-family: 'Orbitron'; font-weight: bold; font-size: 1rem;
            color: white; cursor: pointer; text-transform: uppercase;
        }
        .btn-status-red { background: #ff4757; cursor: not-allowed; opacity: 0.9; }
        .btn-status-green { background: #2ecc71; box-shadow: 0 0 15px rgba(46, 204, 113, 0.4); }
        .btn-status-blue { background: #00f2ff; color:black; box-shadow: 0 0 15px rgba(0, 242, 255, 0.4); }

        /* Join Modal */
        .join-form-header {
            text-align: center; color: #00f2ff; font-family: 'Orbitron'; font-size: 1.2rem;
            margin-bottom: 20px; text-shadow: 0 0 10px rgba(0,242,255,0.5);
        }

        /* --- CATEGORY MATCHES VIEW --- */
        .category-view {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 210;
            background: var(--bg-dark); display: none; flex-direction: column;
        }
        .category-view.active { display: flex; }

        .category-header {
            padding: 15px 20px; background: rgba(19, 19, 42, 0.9);
            display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05);
        }

        .tab-bar {
            display: flex; justify-content: space-around; background: #0f0f1a; border-bottom: 1px solid #222;
        }
        .tab-btn {
            flex: 1; text-align: center; padding: 15px 0; color: #888; font-weight: 500; font-size: 0.9rem; cursor: pointer;
            border-bottom: 2px solid transparent;
        }
        .tab-btn.active { color: #00f2ff; border-bottom: 2px solid #00f2ff; text-shadow: 0 0 10px rgba(0,242,255,0.3); }

        .match-list-container { flex: 1; overflow-y: auto; padding: 15px; }

        .match-card-large {
            background: #13132a; border-radius: 12px; overflow: hidden; margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.5); cursor: pointer;
        }
        .mc-banner {
            width: 100%; height: 180px; position: relative;
        }
        .mc-banner img { width: 100%; height: 100%; object-fit: cover; }
        .mc-details { padding: 15px; position: relative; }
        .mc-title { font-family: 'Orbitron'; font-size: 1.2rem; margin-bottom: 5px; }
        .mc-meta { font-size: 0.8rem; color: #aaa; margin-bottom: 10px; display:flex; justify-content:space-between; }
        
        .mc-stats-grid {
            display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 10px;
            background: #0f0f1a; padding: 10px; border-radius: 8px;
        }
        .mc-stat { text-align: center; }
        .mc-stat span:first-child { display: block; font-size: 0.65rem; color: #888; text-transform: uppercase; }
        .mc-stat span:last-child { font-weight: bold; font-size: 0.9rem; color: #ffcc00; }
        
        .mc-action {
            margin-top: 15px; background: #2ecc71; text-align: center; padding: 10px;
            border-radius: 8px; font-weight: bold; color: white; font-family: 'Orbitron';
        }

        /* --- SUCCESS JOIN PAGE --- */
        .success-view {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 400;
            background: var(--bg-dark); display: none; flex-direction: column; justify-content: center; align-items: center;
            text-align: center; padding: 30px;
        }
        .success-view.active { display: flex; animation: fadeIn 0.4s ease; }
        .success-glow-text {
            color: #00f2ff; font-family: 'Orbitron'; font-size: 1.8rem; margin: 20px 0 10px;
            text-shadow: 0 0 15px #00f2ff;
        }

        /* --- BACK BUTTON OVERLAY --- */
        .back-btn-overlay {
            position: absolute; top: 15px; left: 15px; z-index: 20; 
            background: rgba(0,0,0,0.7); padding: 5px 12px; border-radius: 20px;
            color: white; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center;
            border: 1px solid rgba(255,255,255,0.2);
        }

        /* Bottom Nav */
        .nav-bar {
            position: absolute; bottom: 0; width: 100%; height: 65px;
            background: #0f0f1a; border-top: 1px solid #222;
            display: flex; justify-content: space-around; align-items: center;
            z-index: 90;
        }
        .nav-item {
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            color: #555; font-size: 0.7rem; gap: 4px; width: 20%; height: 100%; cursor: pointer;
        }
        .nav-item i { font-size: 1.3rem; transition: 0.2s; }
        .nav-item.active { color: var(--primary-blue); }
        .nav-item.active i { transform: translateY(-3px); text-shadow: 0 0 10px var(--primary-blue); }

        /* --- NEW MATCH RESULTS PAGE STYLES --- */
        .result-banner-container {
            position: relative; width: 100%; height: 180px; 
            border-radius: 8px; overflow: hidden; margin-top: 15px;
            border: 1px solid #333;
        }
        .res-banner { width: 100%; height: 100%; object-fit: cover; }
        .res-banner-overlay {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
        }
        .res-match-info {
            position: absolute; bottom: 10px; left: 10px; width: 100%;
        }
        .res-match-info h2 {
            font-size: 1.3rem; margin: 0; line-height: 1.2; text-transform: uppercase;
        }

        /* Badges and Tags */
        .res-badge {
            background: #f1f1f1; color: #333; padding: 4px 8px; 
            border-radius: 4px; font-size: 0.75rem; border: 1px solid #ccc;
        }
        .res-tag {
            background: white; color: #333; padding: 4px 8px; 
            border-radius: 4px; font-size: 0.75rem; border: 1px solid #ccc; font-weight: bold;
        }

        /* Winner Section Styles */
        .winner-section { margin-top: 15px; border-radius: 6px; overflow: hidden; border: 1px solid #ddd; }
        .full-result-section { margin-top: 20px; border-radius: 6px; overflow: hidden; border: 1px solid #ddd; padding-bottom: 50px; }

        .winner-header {
            background: #2ecc71; /* Green */
            color: white; text-align: center; padding: 8px;
            font-weight: 500; font-size: 0.95rem;
        }

        .res-table-head {
            display: flex; padding: 10px 15px; font-size: 0.8rem; 
            background: #333; color: white; font-weight: bold;
        }

        /* Result Rows (White theme inside the table as per screenshot) */
        .res-row {
            display: flex; align-items: center; padding: 12px 15px;
            font-size: 0.9rem; color: #333; background: #fff;
            border-bottom: 1px solid #eee;
        }
        .res-row:last-child { border-bottom: none; }

        .res-rank { width: 30px; font-weight: bold; color: #555; }
        .res-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; font-weight: 500; }
        .res-kills { width: 50px; text-align: center; color: #555; }
        .res-win { width: 60px; text-align: right; color: #333; font-weight: bold; }

    
