/* ==========================================================================
  ITRAZU  - MASTER STYLESHEET
   ========================================================================== */

/* =========================================
   1. GLOBAL STYLES & RESET
   ========================================= */
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    margin: 0;
    padding-top: 75px !important; /* Space for fixed header */
    padding-bottom: 80px;         /* Space for fixed footer */
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* =========================================
   2. NAVBAR & GLASSMORPHISM
   ========================================= */
.navbar-custom {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 70px;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--nav-shadow);
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0;
}

/* --- BRAND LOGO STYLES --- */
.brand-icon {
    width: 32px;
    height: 38px;
    background: var(--gold-grad);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 24px;
    color: #000;
    margin-right: 5px;
    box-shadow: 0 0 15px rgba(255, 184, 12, 0.3);
    transform: skew(-4deg);
    border: 1px solid rgba(255,255,255,0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
}

.brand-text .main {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    text-transform: uppercase;
}

.brand-text .sub {
    font-size: 10px;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
  margin-left: -2px;
}

/* =========================================
   3. HEADER WALLET & BALANCE
   ========================================= */
.wallet-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-glass {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 4px 16px;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
    min-width: 85px;
    position: relative;
    overflow: hidden;
}

.balance-glass .label {
    font-size: 9px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.balance-glass .amount {
    font-size: 17px;
    font-weight: 700;
    color: var(--gold);
}

.btn-deposit-adv {
    background: var(--gold-grad);
    color: #000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,0.1);
    transition: transform 0.2s;
}

.btn-deposit-adv:active {
    transform: scale(0.95);
}

/* =========================================
   4. BUTTONS & TOGGLES
   ========================================= */
.theme-toggle-btn {
    width: 36px;
    height: 36px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.theme-toggle-btn:hover {
    background: var(--border);
    color: var(--gold);
}

.btn-auth-outline {
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    padding: 6px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.btn-auth-fill {
    background: var(--gold-grad);
    color: #000;
    font-size: 13px;
    padding: 6px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    margin-left: 8px;
    white-space: nowrap;
}

/* =========================================
   5. PRELOADER
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}

.loader-logo {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.loader-logo span {
    color: var(--gold);
}

.loader-bar-bg {
    width: 160px;
    height: 3px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--gold-grad);
    animation: loadFill 2s ease-in-out forwards;
}

@keyframes loadFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* =========================================
   6. HEADER RESPONSIVE (MOBILE)
   ========================================= */
@media (max-width: 576px) {
    .navbar-custom {
        height: 60px; /* Smaller navbar on mobile */
        padding: 0 10px;
    }

    body {
        padding-top: 65px !important;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
        margin-right: 6px;
    }

    .brand-text .main {
        font-size: 18px;
    }

    .brand-text .sub {
        font-size: 9px;
    }
    
    .wallet-container {
        gap: 8px;
    }

    .balance-glass {
        padding: 2px 12px;
        min-width: auto;
    }

    .balance-glass .amount {
        font-size: 15px;
    }
    
    .btn-deposit-adv {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .btn-auth-outline, .btn-auth-fill {
        padding: 5px 12px;
        font-size: 12px;
    }
}

/* =========================================
   7. SLIDER SECTION (OWL CAROUSEL)
   ========================================= */
.slider-wrapper {
    width: 100%;
    max-width: 1400px; 
    margin: 0 auto;
    padding: clamp(5px, 2vw, 20px); 
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* Frame Container */
.advanced-frame {
    position: relative;
    overflow: hidden;
    
    /* Default (Dark Mode) Variables */
    background: var(--card-bg); 
    border-radius: clamp(10px, 3vw, 20px);
    
    /* DEFAULT (DARK): Neon Gold Glow */
    border: 1px solid rgba(255, 184, 12, 0.3);
    box-shadow: 0 0 15px rgba(255, 184, 12, 0.15);
    
    transition: all 0.3s ease;
}

/* Light Mode Slider Override */
[data-theme="light"] .advanced-frame {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.frame-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: clamp(9px, 2.9vw, 19px);
    transform: translateZ(0); 
}

/* Slider Aspect Ratios */
.owl-carousel .item {
    width: 100%;
    position: relative;
    aspect-ratio: 2.5 / 1; 
    min-height: 140px; 
}
@media (min-width: 600px) { .owl-carousel .item { aspect-ratio: 3 / 1; } }
@media (min-width: 1024px) { .owl-carousel .item { aspect-ratio: 3.5 / 1; max-height: 450px; } }

.owl-carousel .item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    display: block;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 50%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 2;
}
/* =========================================================
   PREMIUM CASINO FLOATING SPIN BUTTON
   ========================================================= */
.float-spin-btn { 
    position: fixed; 
    bottom: 100px;
    right: 20px; 
    width: 75px; 
    height: 75px; 
    z-index: 9999; 
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 50%, #ff8c00 100%);
    border: 3px solid #fff;
    border-radius: 50%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.6), inset 0 0 10px rgba(255,255,255,0.6);
    animation: float-bounce 3s ease-in-out infinite; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animated dashed outer ring */
.float-spin-btn::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 215, 0, 0.8);
    animation: rotate-dashed 10s linear infinite;
    pointer-events: none;
}

.float-spin-btn:hover { 
    transform: scale(1.1) translateY(-5px); 
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.9), inset 0 0 15px rgba(255,255,255,0.8);
}

.float-spin-btn i { 
    font-size: 28px; 
    color: #fff; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    margin-bottom: 2px;
}

.float-spin-btn span { 
    font-size: 13px; 
    font-weight: 900; 
    color: #fff; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    letter-spacing: 1px; 
}

@keyframes float-bounce { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-12px); } 
}

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

@media (max-width: 768px) {
    .float-spin-btn {
        width: 68px;
        height: 68px;
        bottom: 90px;
        right: 14px;
    }

    .float-spin-btn i {
        font-size: 24px;
    }

    .float-spin-btn span {
        font-size: 11px;
    }
}
/* =========================================
   8. GAME SECTION: VARIABLES & LAYOUT
   ========================================= */
:root {
    /* Extending Global Variables for Game Section */
    --sidebar-bg: #0f0f0f;
    --pill-bg: rgba(255,255,255,0.05);
    --pill-active-bg: linear-gradient(135deg, var(--gold) 0%, #b45309 100%);
    --shadow-game: 0 4px 15px rgba(0,0,0,0.5);
    
    /* New Vars for Sub-Category Glass Effect */
    --sub-glass-bg: rgba(255, 255, 255, 0.03);
    --sub-glass-border: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
    --sidebar-bg: #ffffff;
    --pill-bg: #ffffff;
    --pill-active-bg: var(--gold); 
    --shadow-game: 0 4px 20px rgba(0,0,0,0.06); 
    
    /* Light Mode Sub-Category Overrides */
    --sub-glass-bg: rgba(0, 0, 0, 0.03);
    --sub-glass-border: rgba(0, 0, 0, 0.05);
}

.game-section-wrapper {
    background-color: var(--bg);
    font-family: 'Segoe UI', sans-serif;
    transition: background-color 0.4s ease;
    display: flex; 
    flex-direction: column;
}

/* =========================================
   9. CATEGORY NAVIGATION (SCROLL/SIDEBAR)
   ========================================= */
.cat-scroll-container { 
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 0; 
    /* Sticky Logic: Header(70px) */
    position: sticky; 
    top: 70px; 
    z-index: 98; 
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-game);
}

.cat-scroll-box { 
    display: flex; 
    gap: 6px; 
    overflow-x: auto; 
    padding: 0 12px; 
    scrollbar-width: none; 
    align-items: center; 
}
.cat-scroll-box::-webkit-scrollbar { display: none; }

/* Category Pills */
.cat-pill { 
    flex: 0 0 auto; 
    min-width: 65px; 
    height: 65px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    background: var(--pill-bg);
    border: 1px solid var(--border); 
    border-radius: 12px; 
    cursor: pointer; 
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative; 
}

.cat-icon { 
    width: 26px; 
    height: 26px; 
    object-fit: contain; 
    margin-bottom: 5px; 
    filter: grayscale(100%) opacity(0.6); 
    transition: all 0.3s ease;
}
[data-theme="light"] .cat-icon { filter: grayscale(100%) brightness(0.9); }

.cat-title { 
    font-size: 10px; 
    font-weight: 700; 
    color: var(--text); 
    opacity: 0.7;
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

/* Category Active State */
.cat-pill.active { 
    background: var(--pill-active-bg);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 184, 12, 0.4);
    animation: pulse-gold 2s infinite;
}
.cat-pill.active .cat-icon { 
    filter: grayscale(0%) brightness(1) opacity(1) !important; 
    transform: scale(1.1);
}
.cat-pill.active .cat-title { color: #000; opacity: 1; }

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(255, 184, 12, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 184, 12, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 184, 12, 0); }
}

/* =========================================
   SUB-CATEGORY NAVIGATION (PROVIDER GRID STYLE)
   ========================================= */

/* 1. The Container - Now a Grid */
.sub-nav-container {
    position: relative; /* Not sticky, flows with content */
    background: var(--bg);
    padding: 0;
    margin-bottom: 15px;
    border-bottom: none;
}

.sub-nav-wrapper {
    display: none; /* Hidden by default */
    /* GRID LAYOUT: 2 Columns like the image */
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; /* Space between cards */
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Show Animation */
.sub-nav-wrapper.active { 
    display: grid; 
    animation: fadeIn 0.3s ease-out; 
}

/* 2. The Card (Button) */
.sub-pill {
    display: flex;
    flex-direction: row; /* Icon Left, Text Right */
    align-items: center; /* Vertical Center */
    justify-content: flex-start; /* Left Align */
    
    background: #1e1e1e; /* Dark Card Background */
    border: 1px solid #333; /* Subtle Border */
    border-radius: 6px; /* Rounded Corners */
    
    padding: 12px 15px;
    width: 100%;
    height: 55px; /* Fixed height for consistency */
    
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Hover Effect */
.sub-pill:hover {
    background: #2a2a2a; /* Slightly lighter on hover */
    border-color: #555;
}

/* 3. The Icon */
.sub-img {
    width: 24px; /* Adjust size based on your icons */
    height: 24px;
    object-fit: contain;
    margin-right: 12px; /* Space between icon and text */
    margin-bottom: 0; /* Override previous vertical style */
    filter: none; /* Keep original colors */
}

/* 4. The Text */
.sub-txt {
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0; /* Light text */
    text-transform: capitalize; /* or uppercase */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

/* 5. Active State (Selected Provider) */
.sub-pill.active {
    background: #2a2a2a;
    border-color: var(--gold); /* Highlight Border */
    box-shadow: 0 0 10px rgba(255, 184, 12, 0.1);
}

.sub-pill.active .sub-txt {
    color: var(--gold);
    font-weight: 700;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   RESPONSIVE (Desktop)
   ========================================= */
@media (min-width: 768px) {
    .sub-nav-wrapper {
        /* 4 Columns on Tablet */
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .sub-nav-wrapper {
        /* 5 or 6 Columns on Desktop */
        grid-template-columns: repeat(5, 1fr);
    }
}
/* =========================================
   10. GAMES GRID & CARDS
   ========================================= */
.game-grid-view { display: none; padding: 10px 4px; } 
.game-grid-view.show { display: block; animation: fadeInUp 0.4s ease-out; }
@keyframes fadeInUp { from{opacity:0; transform: translateY(15px);} to{opacity:1; transform: translateY(0);} }

.section-header { 
    display: flex; 
    align-items: center; 
    margin-bottom: 10px; 
    padding-left: 10px; 
    border-left: 4px solid var(--gold); 
}
.section-name { font-size: 16px; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: 0.5px; }

.g-card { 
    display: block; 
    background: var(--card-bg); 
    border-radius: 8px;
    overflow: hidden; 
    text-decoration: none; 
    position: relative; 
    border: 1px solid var(--border);
    box-shadow: var(--shadow-game);
    transition: transform 0.1s linear, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent; 
}

.g-card:active { transform: scale(0.95); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

.g-media { width: 100%; padding-top: 100%; position: relative; }

.g-img { 
    position: absolute; top: 0; left: 0; 
    width: 100%; height: 100%; 
    object-fit: cover; 
    padding: 0; 
    transition: transform 0.4s;
}

.play-overlay {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.5); opacity: 0;
    width: 30px; height: 30px;
    background: var(--gold);
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: #000; font-size: 12px;
    transition: 0.3s; z-index: 2; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.g-info { 
    position: absolute; bottom: 0; left: 0; width: 100%; 
    background: rgba(0,0,0,0.8); 
    backdrop-filter: blur(2px);
    padding: 3px 2px; text-align: center; 
}

.g-name { 
    color: #fff; font-size: 9px; font-weight: 600; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; 
}

.hot-ribbon {
    position: absolute; top: 0; right: 0;
    background: #ff3b30; color: #fff; font-size: 7px; padding: 2px 5px; 
    font-weight: 800; z-index: 5; border-bottom-left-radius: 6px;
    box-shadow: -1px 1px 3px rgba(0,0,0,0.2);
}

/* --- FORCE 4 ITEMS PER LINE & TIGHT SPACING --- */
.row.g-mobile { 
    margin-right: -2px; 
    margin-left: -2px; 
    display: flex; 
    flex-wrap: wrap; 
}

/* 4 Items Per Line (25% Width) */
.row.g-mobile > * { 
    flex: 0 0 25%; 
    max-width: 25%; 
    padding-right: 2px; 
    padding-left: 2px; 
    margin-bottom: 4px; 
}

/* =========================================
   DESKTOP MEDIA QUERY
   ========================================= */
@media (min-width: 992px) {
    .game-section-wrapper {
        flex-direction: row; 
        max-width: 1600px; 
        margin: 0 auto; 
        padding-top: 25px; 
        gap: 25px;
        background: transparent; 
        align-items: flex-start; /* Fix stretching */
    }
    
    .cat-scroll-container {
        position: sticky; 
        top: 95px; 
        width: 260px; /* Fixed Sidebar Width */
        height: calc(100vh - 110px);
        border: none; 
        border-radius: 15px; 
        padding: 15px 0; 
        overflow-y: auto;
    }
    
    .cat-scroll-box { 
        flex-direction: column; 
        align-items: stretch; 
        padding: 0 15px; 
        gap: 12px; 
    }
    
    .cat-pill { 
        flex-direction: row; 
        justify-content: flex-start; 
        padding-left: 20px; 
        height: 55px; 
        width: 100%; 
        border-radius: 10px;
    }
    
    .cat-icon { margin-bottom: 0; margin-right: 15px; width: 22px; }
    .cat-title { font-size: 13px; }
    
    /* Content Area */
    .games-wrapper { 
        flex: 1; 
        padding-right: 15px; 
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    /* Sub-Category Desktop Overrides */
    .sub-nav-container {
        position: static; /* No longer sticky */
        background: transparent;
        border-bottom: none;
        backdrop-filter: none;
        padding: 0 0 20px 0;
        margin-bottom: 0;
        z-index: 1;
    }
    
    .sub-pill {
        width: 100px;
        height: 100px;
        background: #1a1a1a; /* Darker bg on desktop */
    }
    .sub-img { width: 40px; height: 40px; }
    .sub-txt { font-size: 11px; }

    /* Hover Effects */
    .g-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.15); border-color: var(--gold); }
    .g-card:hover .g-img { transform: scale(1.08); }
    .g-card:hover .play-overlay { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
/* =========================================
   1. ACTIVE FILTER TAG (The "JILI X" Style)
   REPLACES: "DRILL-DOWN NAVIGATION"
   ========================================= */
.active-filter-container {
    display: none; /* Hidden by default */
    padding: 0 5px 15px 5px;
    animation: fadeIn 0.3s ease;
}

/* The Tag Button */
.filter-tag-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #444;
    padding: 6px 12px;
    border-radius: 4px; 
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.filter-tag-btn:hover {
    background: #333;
    border-color: #666;
    color: #fff;
}

.filter-tag-icon {
    font-size: 12px;
    color: #888; /* Muted X color */
}
/* =========================================
   11. HIGHLIGHTS & POPULAR (SWIPER)
   ========================================= */
.game-section-container {
    padding: 20px 0; 
    margin: 0 auto;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
}

/* Section Headers */
.section-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 0px;
    padding-left: 15px; 
}

.yellow-bar {
    width: 5px;
    height: 28px;
    background: var(--gold-grad);
    margin-right: 12px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 184, 12, 0.4);
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
}

/* --- TV SCREEN SLIDER --- */
.favSwiper {
    padding-bottom: 40px !important; 
    padding-left: 15px; 
    padding-right: 15px;
}

.tv-screen-slide {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    box-shadow: var(--shadow-game);
    border: 1px solid var(--border);
}

.tv-content-absolute {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
}

.tv-bg-image {
    width: 100%; height: 100%;
    object-fit: cover; opacity: 0.6;
}

.tv-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), transparent 40%, rgba(0,0,0, 0.95));
}

.league-name-display {
    position: absolute; top: 15px; left: 0; width: 100%;
    text-align: center; z-index: 10;
    font-size: 14px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 2px; color: var(--gold);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.live-tag {
    position: absolute; top: 15px; left: 15px; z-index: 10;
    background: #dc2626; color: white;
    font-size: 10px; font-weight: 700; padding: 3px 8px;
    border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.match-content-wrapper {
    position: absolute; top: 55%; left: 0; width: 100%;
    transform: translateY(-50%); z-index: 5;
    display: flex; justify-content: space-around; align-items: center;
    padding: 0 10px;
}

.team-box {
    display: flex; flex-direction: column; align-items: center;
    width: 35%; text-align: center;
}

.team-logo-glow {
    width: 45px; height: 45px; object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
    margin-bottom: 8px;
}

.team-name-styled {
    font-size: 11px; font-weight: 700; color: #fff;
    text-transform: uppercase; line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.vs-text {
    font-size: 24px; font-weight: 900; font-style: italic;
    background: linear-gradient(45deg, var(--gold), #fff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.match-footer-info {
    position: absolute; bottom: 12px; width: 100%;
    text-align: center; z-index: 10;
}

.match-time-large {
    font-size: 20px; font-weight: 800; color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.match-date-small {
    font-size: 10px; color: #cbd5e1; text-transform: uppercase;
}

/* Desktop TV Adjustments */
@media (min-width: 768px) {
    .team-logo-glow { width: 60px; height: 60px; }
    .league-name-display { font-size: 16px; top: 20px; }
    .team-name-styled { font-size: 13px; }
    .match-time-large { font-size: 24px; }
}

/* --- POPULAR GAMES SLIDER --- */
.popular-swiper { padding: 10px 15px 30px 15px; }

.game-card {
    background: var(--card-bg);
    border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border);
    position: relative; box-shadow: var(--shadow-game);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block; 
}

.game-card:hover { transform: translateY(-5px); border-color: var(--gold); }

.game-thumb-wrapper {
    position: relative; width: 100%; padding-top: 100%; /* Square */
}

.game-thumb {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

.provider-pill {
    position: absolute; top: 6px; right: 6px;
    background: rgba(0, 0, 0, 0.8); color: var(--gold);
    font-size: 8px; font-weight: 700; padding: 2px 6px;
    border-radius: 4px; border: 1px solid rgba(255, 184, 12, 0.3);
}

.game-title {
    padding: 10px 5px; font-size: 12px; font-weight: 600;
    color: var(--text); white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; text-align: center;
    background: var(--card-bg); border-top: 1px solid var(--border);
}

/* Pagination Dots */
.swiper-pagination-bullet { background: var(--text); opacity: 0.3; }
.swiper-pagination-bullet-active { background: var(--gold); opacity: 1; }

/* =========================================
   12. MOBILE NAVIGATION (FOOTER)
   ========================================= */
.mobile-nav {
    position: fixed; 
    bottom: 0; left: 0; 
    width: 100%; height: 70px; 
    
    background: var(--glass); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    
    border-top: 1px solid var(--border); 
    border-radius: 20px 20px 0 0; 
    display: flex; justify-content: space-around; 
    align-items: center; z-index: 1000; padding-bottom: 5px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-item { 
    position: relative; text-align: center; 
    color: #64748b; 
    text-decoration: none; font-size: 10px; font-weight: 600; 
    flex: 1; padding: 10px 0; text-transform: uppercase;
    transition: color 0.3s ease;
}

[data-theme="light"] .nav-item { color: #636e72; }

.nav-item i { 
    font-size: 22px; display: block; margin-bottom: 5px; transition: 0.3s;
}

.nav-item.active i { 
    color: var(--gold); 
    transform: translateY(-8px) scale(1.1); 
    filter: drop-shadow(0 4px 5px rgba(255, 184, 12, 0.4));
}
.nav-item.active { color: var(--text); }

/* --- CENTER WALLET BUTTON --- */
.nav-item.center-btn { 
    background: var(--gold-grad); 
    width: 60px; height: 60px; border-radius: 50%; 
    flex: none; display: flex; flex-direction: column; 
    justify-content: center; margin-bottom: 35px; 
    
    /* Cutout Illusion: Border matches background */
    border: 5px solid var(--bg); 
    
    box-shadow: 0 0 0 rgba(255, 184, 12, 0.4);
    animation: pulse-nav 2s infinite; 
    transition: border-color 0.3s ease;
}

.nav-item.center-btn i { 
    color: #000 !important; margin: 0; 
    font-size: 26px; transform: none !important; 
}

@keyframes pulse-nav {
    0% { box-shadow: 0 0 0 0 rgba(255, 184, 12, 0.7); transform: scale(1); }
    70% { box-shadow: 0 0 0 15px rgba(255, 184, 12, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(255, 184, 12, 0); transform: scale(1); }
}

/* =========================================
   15. USER PROFILE PAGE
   ========================================= */

.profile-wrapper { 
    padding: 30px 0; 
    min-height: 80vh; 
    animation: fadeIn 0.5s ease-out; 
}

/* --- PROFILE HEADER CARD --- */
.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-game);
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.avatar-box {
    width: 80px; height: 80px; 
    margin: 0 auto 15px auto;
    background: var(--bg);
    border-radius: 50%; 
    padding: 4px;
    border: 2px solid var(--gold);
    box-shadow: 0 0 15px rgba(255, 184, 12, 0.2);
}

.avatar-box img { 
    width: 100%; height: 100%; 
    border-radius: 50%; 
    object-fit: cover; 
}

.user-name { 
    font-size: 22px; 
    font-weight: 800; 
    color: var(--text); 
    margin: 0; 
    text-transform: uppercase; 
}

.user-tag { 
    font-size: 10px; 
    color: var(--gold); 
    font-weight: 700; 
    border: 1px solid var(--gold);
    padding: 2px 10px; 
    border-radius: 20px; 
    display: inline-block; 
    margin-top: 5px; 
    text-transform: uppercase;
}

/* --- REFERRAL BOX --- */
.ref-box {
    background: rgba(0,0,0,0.2);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 15px; 
    margin-top: 20px;
}

.ref-code { 
    font-family: monospace; 
    font-size: 18px; 
    color: var(--text); 
    font-weight: 700; 
    letter-spacing: 2px; 
    word-break: break-all; 
    margin: 5px 0 10px 0;
}

.btn-copy {
    width: 100%;
    background: var(--gold-grad);
    color: #000;
    border: none;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-copy:active { transform: scale(0.95); }

/* --- MENU LIST --- */
.menu-list { 
    background: var(--card-bg); 
    border-radius: 16px; 
    border: 1px solid var(--border); 
    overflow: hidden; 
    margin-bottom: 30px; 
    box-shadow: var(--shadow-game);
}

.menu-item {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 16px 20px; 
    border-bottom: 1px solid var(--border);
    text-decoration: none; 
    color: var(--text); 
    opacity: 0.8;
    font-weight: 600; 
    font-size: 14px;
    transition: 0.3s;
}

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

.menu-item:hover { 
    background: rgba(255, 184, 12, 0.05); 
    color: var(--gold); 
    opacity: 1; 
    padding-left: 25px; /* Slide effect */
}

.menu-item i.icon-left { 
    width: 25px; 
    color: var(--gold); 
    text-align: center;
}

.btn-logout {
    width: 100%; 
    background: rgba(231, 76, 60, 0.1); 
    color: #e74c3c; 
    border: 1px solid #e74c3c;
    padding: 12px; 
    border-radius: 10px; 
    font-weight: 800; 
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-logout:hover {
    background: #e74c3c;
    color: #fff;
}

/* =========================================
   16. WALLET PAGE
   ========================================= */

.wallet-wrapper { 
    padding: 30px 0 80px 0; 
    min-height: 80vh; 
    animation: fadeIn 0.5s ease-out; 
}

/* --- VIRTUAL CARD DESIGN --- */
.wallet-card {
    background: var(--card-bg); /* Adaptive Background */
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-game);
    margin-bottom: 30px;
}

/* Gold Shine Effect (Adaptive) */
.wallet-card::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,184,12,0.1) 0%, transparent 60%);
    animation: rotateShine 10s linear infinite;
    pointer-events: none;
}
@keyframes rotateShine { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }

.card-content { position: relative; z-index: 2; }

.balance-label { 
    font-size: 12px; 
    text-transform: uppercase; 
    color: var(--text); 
    opacity: 0.6;
    letter-spacing: 2px; 
    margin-bottom: 5px; 
}

.balance-amount { 
    font-size: 36px; 
    font-weight: 800; 
    color: var(--gold); 
    line-height: 1; 
    text-shadow: 0 0 20px rgba(255,184,12,0.2); 
}

.card-footer-info { 
    display: flex; 
    justify-content: space-between; 
    margin-top: 25px; 
    padding-top: 15px; 
    border-top: 1px solid var(--border); 
}

.info-item h6 { 
    font-size: 10px; 
    color: var(--text); 
    opacity: 0.5;
    text-transform: uppercase; 
    margin: 0; 
}

.info-item span { 
    font-size: 14px; 
    font-weight: 700; 
    color: var(--text); 
}

/* --- ACTION BUTTONS --- */
.action-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
    margin-bottom: 30px; 
}

.action-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 18px; border-radius: 12px;
    text-decoration: none; font-weight: 800; text-transform: uppercase; font-size: 14px;
    transition: 0.2s;
}

.btn-deposit { 
    background: var(--gold-grad); 
    color: #000; 
    box-shadow: 0 5px 15px rgba(255,184,12,0.2); 
}
.btn-deposit:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255,184,12,0.4); }

.btn-withdraw { 
    background: var(--card-bg); 
    border: 1px solid var(--border); 
    color: var(--text); 
}
.btn-withdraw:hover { 
    border-color: var(--gold); 
    color: var(--gold); 
    transform: translateY(-3px); 
}

/* --- QUICK LINKS --- */
.quick-links { 
    display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 30px; 
    scrollbar-width: none;
}
.quick-links::-webkit-scrollbar { display: none; }

.quick-link-item {
    background: var(--card-bg); 
    border: 1px solid var(--border); 
    border-radius: 50px;
    padding: 8px 20px; 
    white-space: nowrap; 
    color: var(--text); opacity: 0.7;
    font-size: 12px; font-weight: 600;
    text-decoration: none; 
    transition: 0.2s; 
    display: flex; align-items: center; gap: 8px;
}
.quick-link-item:hover { 
    border-color: var(--gold); 
    color: var(--text); opacity: 1;
    background: rgba(255,184,12,0.05); 
}
.quick-link-item i { color: var(--gold); }

/* --- TRANSACTION LIST --- */
.tx-item {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--card-bg); 
    border-bottom: 1px solid var(--border);
    padding: 15px; transition: 0.2s;
}
.tx-item:first-child { border-top-left-radius: 12px; border-top-right-radius: 12px; }
.tx-item:last-child { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; border-bottom: none; }
.tx-item:hover { background: var(--bg); }

.tx-left { display: flex; gap: 15px; align-items: center; }
.tx-icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.icon-dep { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.icon-wit { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }

.tx-info h5 { margin: 0; font-size: 14px; font-weight: 700; color: var(--text); text-transform: capitalize; }
.tx-info span { font-size: 11px; color: var(--text); opacity: 0.5; }

.tx-right { text-align: right; }
.tx-amount { font-size: 15px; font-weight: 700; display: block; }
.text-green { color: #2ecc71; }
.text-red { color: #e74c3c; }

.status-badge { 
    font-size: 9px; padding: 2px 6px; border-radius: 4px; 
    text-transform: uppercase; font-weight: 700; 
    background: var(--bg); color: var(--text); opacity: 0.7; border: 1px solid var(--border);
}
/* =========================================
   27. BET HISTORY PAGE (High Visibility Fix)
   ========================================= */

.history-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
    padding-bottom: 80px;
}

/* Header */
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.page-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    text-transform: uppercase;
}

.btn-sync {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
.btn-sync:hover { border-color: var(--gold); color: var(--gold); }

/* --- FILTER BAR --- */
.filter-bar {
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
    background: var(--card-bg);
    color: var(--text); /* Default Text */
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 8px;
    cursor: pointer;
    text-transform: uppercase;
}

.filter-btn.active {
    background: var(--gold);
    color: #000 !important; /* Always Black on Gold */
    border-color: var(--gold);
    box-shadow: 0 2px 10px rgba(255, 184, 12, 0.3);
}

/* --- BET CARD --- */
.bet-card {
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-game);
}

/* Card Top (Summary) */
.card-top {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.game-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

/* Meta Data (Date & Status) */
.game-meta {
    font-size: 0.75rem;
    display: flex; align-items: center;
    color: #888; /* Dark Mode Gray */
}
[data-theme="light"] .game-meta { color: #555; font-weight: 600; } /* Light Mode Darker Gray */

/* --- COLORS & BADGES --- */
.val-win { color: #00c851; }
.bg-win { background: rgba(0, 230, 118, 0.15); color: #00c851; border: 1px solid rgba(0, 230, 118, 0.3); }

.val-loss { color: #ff5252; }
.bg-loss { background: rgba(255, 82, 82, 0.15); color: #ff5252; border: 1px solid rgba(255, 82, 82, 0.3); }

.val-run { color: var(--gold); }
.bg-run { background: rgba(255, 184, 12, 0.15); color: var(--gold); border: 1px solid rgba(255, 184, 12, 0.3); }

/* Status Text inside Badge */
.status-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 800;
    margin-right: 8px;
    text-transform: uppercase;
}

/* --- EXPANDED DETAILS --- */
.card-btm {
    background: #000; /* Force Dark bg for details in Dark Mode */
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-top: 1px solid transparent;
}
[data-theme="light"] .card-btm { 
    background: #f1f3f5; /* Light Grey for Light Mode */
    border-top: 1px solid #ddd;
}

.bet-card.open .card-btm {
    max-height: 800px;
    border-top-color: var(--border);
    padding-top: 15px;
    padding-bottom: 15px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 5px;
}
.data-row:last-child { border-bottom: none; }

/* Labels (The small text like "Market", "Odds") */
.lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
    color: #888; /* Dark Mode Label */
}
[data-theme="light"] .lbl { color: #666; } /* Light Mode Label */

/* Values (The actual data) */
.val {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff; /* Dark Mode Value */
}
[data-theme="light"] .val { color: #000; } /* Light Mode Value */

/* Big Values (Odds/Runs) */
.val-big {
    font-size: 1rem;
    font-weight: 800;
    font-family: monospace;
    color: var(--gold); /* Gold works on both */
}
[data-theme="light"] .val-big { color: #d39e00; } /* Darker Gold for Light Mode */

/* Footer Info (ID/Stake) */
.footer-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.id-text { 
    font-size: 0.8rem; 
    font-family: monospace; 
    color: #aaa; 
}
[data-theme="light"] .id-text { color: #555; }

.stake-text { 
    font-size: 1rem; 
    font-weight: 700;
    color: #fff;
}
[data-theme="light"] .stake-text { color: #000; }

.toggle-icon {
    margin-left: 10px;
    font-size: 0.8rem;
    color: var(--text);
    transition: transform 0.3s;
}
.bet-card.open .toggle-icon { transform: rotate(180deg); color: var(--gold); }

.no-results {
    display: none;
    text-align: center;
    padding: 40px;
    color: var(--text);
    font-weight: 600;
}

/* Selection Badges */
.badge-base {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    display: inline-block;
    min-width: 45px;
    text-align: center;
}
.badge-yes { background: #72bbef; color: #000; } 
.badge-no  { background: #faa9ba; color: #000; }
/* =========================================
   18. DEPOSIT PAGE
   ========================================= */

.deposit-wrapper { 
    padding: 30px 0 80px 0; 
    min-height: 80vh; 
    animation: fadeUp 0.4s ease-out; 
}
@keyframes fadeUp { from {opacity:0; transform:translateY(10px);} to {opacity:1; transform:translateY(0);} }

/* Balance Box */
.balance-box {
    background: var(--card-bg);
    border: 1px solid var(--border); 
    border-left: 4px solid var(--gold);
    border-radius: 12px; 
    padding: 20px; 
    margin-bottom: 30px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    box-shadow: var(--shadow-game);
}

.bal-label { 
    color: var(--text); opacity: 0.6;
    font-size: 11px; 
    text-transform: uppercase; 
    font-weight: 700; 
    letter-spacing: 1px; 
}

.bal-val { 
    color: var(--gold); 
    font-size: 26px; 
    font-weight: 800; 
    line-height: 1.1; 
}

/* Section Headers */
.section-head { 
    color: var(--text); 
    font-size: 16px; 
    font-weight: 800; 
    margin: 30px 0 15px 0; 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 8px; 
    text-transform: uppercase; 
    display: flex; align-items: center; gap: 10px; 
}
.section-head i { color: var(--gold); }

/* Method Cards */
.method-card {
    display: block; 
    background: var(--card-bg);
    border: 1px solid var(--border); 
    border-radius: 16px;
    padding: 20px 10px; 
    text-align: center; 
    text-decoration: none;
    position: relative; 
    transition: all 0.2s ease; 
    height: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-game);
}

.method-card:active { transform: scale(0.97); }

.method-card:hover { 
    border-color: var(--gold); 
    background: var(--bg); /* Slight contrast on hover */
    box-shadow: 0 5px 15px rgba(255,184,12,0.1); 
}

.method-img { 
    width: 55px; height: 55px; 
    object-fit: contain; 
    margin-bottom: 12px; 
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5)); 
}

.method-name { 
    color: var(--text); 
    font-size: 14px; 
    font-weight: 700; 
    margin: 0; 
    line-height: 1.2; 
}

.method-sub { 
    color: var(--text); opacity: 0.6;
    font-size: 11px; 
    margin-top: 4px; 
    font-weight: 500; 
}

/* Badges */
.badge-corner { 
    position: absolute; top: 0; right: 0; 
    background: #333; color: #fff; 
    font-size: 9px; font-weight: 800; 
    padding: 4px 8px; 
    border-bottom-left-radius: 10px; 
}
.badge-bonus { background: var(--gold); color: #000; }
.badge-fast { background: #2ecc71; color: #fff; }
.badge-instant { background: var(--gold); color: #000; }
.badge-crypto { background: #f39c12; color: #fff; }

/* Agent Alert Box */
.agent-alert {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex; align-items: center;
    padding: 10px; margin-bottom: 20px;
}

/* =========================================
   19. WITHDRAW PAGE
   ========================================= */

.withdraw-wrapper { 
    padding: 30px 0 80px 0; 
    min-height: 80vh; 
    animation: fadeIn 0.4s ease-out; 
}

/* Balance Header (Specific to Withdraw) */
.balance-card-withdraw {
    background: var(--card-bg);
    border: 1px solid var(--border); 
    border-left: 4px solid var(--gold);
    border-radius: 12px; 
    padding: 20px; 
    margin-bottom: 25px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    box-shadow: var(--shadow-game);
}

.bal-title { 
    color: var(--text); opacity: 0.6;
    font-size: 11px; 
    text-transform: uppercase; 
    font-weight: 700; 
    letter-spacing: 1px; 
}

.bal-amount { 
    color: var(--gold); 
    font-size: 28px; 
    font-weight: 800; 
    line-height: 1; 
}

/* Form Container */
.form-card {
    background: var(--card-bg);
    border: 1px solid var(--border); 
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: var(--shadow-game);
    max-width: 500px; 
    margin: 0 auto;
}

.form-title { 
    font-size: 18px; 
    font-weight: 800; 
    color: var(--text); 
    text-transform: uppercase; 
    margin-bottom: 20px; 
    border-bottom: 1px solid var(--border); 
    padding-bottom: 10px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* Custom Input Styles (Overrides Bootstrap default) */
.form-label-custom { 
    font-size: 12px; 
    color: var(--text); opacity: 0.7;
    text-transform: uppercase; 
    font-weight: 700; 
    margin-bottom: 6px; 
    display: block; 
}

.form-control-custom, .form-select-custom {
    background-color: var(--bg) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    height: 50px; 
    font-weight: 600; 
    font-size: 16px;
    border-radius: 8px; 
    box-shadow: none !important;
}

.form-control-custom:focus, .form-select-custom:focus { 
    border-color: var(--gold) !important; 
    background-color: var(--bg) !important;
}

/* Remove number arrows */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Submit Button */
.btn-withdraw-submit {
    background: var(--gold); 
    color: #000;
    font-weight: 900; 
    text-transform: uppercase;
    width: 100%; 
    height: 55px; 
    border-radius: 8px;
    border: none; 
    font-size: 18px; 
    margin-top: 15px;
    transition: 0.3s; 
    cursor: pointer;
}

.btn-withdraw-submit:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(255,184,12,0.3); 
    background: var(--gold-grad);
}

/* Route Badges */
.route-badge { 
    font-size: 10px; 
    padding: 4px 8px; 
    border-radius: 4px; 
    background: var(--bg); 
    color: var(--text); opacity: 0.7;
    border: 1px solid var(--border);
}

.route-active { 
    background: rgba(46, 204, 113, 0.15); 
    color: #2ecc71; 
    border: 1px solid #2ecc71; 
    opacity: 1;
}

/* =========================================
   20. AGENT DEPOSIT PROCESS PAGE
   ========================================= */

.process-wrapper { 
    padding: 30px 0 80px 0; 
    min-height: 80vh; 
}

/* Pay Card Container */
.pay-card {
    background: var(--card-bg); 
    border: 1px solid var(--border); 
    border-radius: 16px;
    overflow: hidden; 
    box-shadow: var(--shadow-game);
    max-width: 480px; 
    margin: 0 auto;
}

.pay-header {
    background: linear-gradient(135deg, var(--card-bg), var(--bg));
    padding: 25px 20px; 
    text-align: center; 
    border-bottom: 1px solid var(--border);
}

.logo-box {
    width: 70px; height: 70px; 
    margin: 0 auto 15px auto;
    background: #fff; 
    border-radius: 50%; 
    padding: 5px;
    border: 3px solid var(--gold); 
    box-shadow: 0 0 15px rgba(255, 184, 12, 0.4);
}
.logo-box img { width: 100%; height: 100%; object-fit: contain; }

/* Copy Box */
.copy-box {
    background: var(--bg); 
    border: 1px dashed var(--border); 
    border-radius: 8px;
    padding: 12px 15px; 
    margin-top: 15px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.copy-label { 
    display: block; 
    font-size: 10px; 
    color: var(--text); opacity: 0.6;
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.copy-val { 
    font-family: monospace; 
    font-size: 18px; 
    color: var(--gold); 
    font-weight: 700; 
    letter-spacing: 1px; 
}

.btn-copy-icon { 
    background: none; 
    border: none; 
    color: var(--text); 
    opacity: 0.7; 
    transition: 0.2s; 
}
.btn-copy-icon:hover { 
    opacity: 1; 
    color: var(--gold); 
    transform: scale(1.1); 
}

/* Form Styles */
.form-group-custom { margin-bottom: 15px; }

.form-label-custom { 
    font-size: 12px; 
    color: var(--text); opacity: 0.7;
    text-transform: uppercase; 
    font-weight: 700; 
    margin-bottom: 5px; 
    display: block; 
}

.form-control-custom {
    background-color: var(--bg) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    height: 48px; 
    font-weight: 600; 
    font-size: 16px;
    border-radius: 8px; 
    box-shadow: none !important; 
    padding-left: 15px;
}

.form-control-custom::placeholder { 
    color: var(--text); opacity: 0.4; 
}

.form-control-custom:focus { 
    border-color: var(--gold) !important; 
    background-color: var(--bg) !important; 
}

/* Chrome Autofill Fix (Force background color) */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.btn-deposit-submit {
    background: var(--gold); 
    color: #000;
    font-weight: 900; 
    text-transform: uppercase;
    width: 100%; 
    height: 50px; 
    border-radius: 8px;
    border: none; 
    font-size: 16px; 
    margin-top: 20px;
    transition: 0.3s;
}
.btn-deposit-submit:hover { 
    background: var(--gold-grad); 
    transform: translateY(-2px); 
    box-shadow: 0 5px 20px rgba(255,184,12,0.4); 
}

/* =========================================
   21. SITE PROCESS PAGE (EXTRAS)
   ========================================= */

/* Bonus Alert Box */
.bonus-alert {
    background: rgba(255,184,12,0.15); 
    border: 1px solid var(--gold);
    color: var(--gold); 
    border-radius: 8px; 
    padding: 12px;
    text-align: center; 
    font-weight: bold; 
    margin-bottom: 20px; 
    font-size: 14px;
    animation: pulse 2s infinite;
}
@keyframes pulse { 
    0% {box-shadow: 0 0 0 0 rgba(255,184,12,0.4);} 
    70% {box-shadow: 0 0 0 10px rgba(255,184,12,0);} 
    100% {box-shadow: 0 0 0 0 rgba(255,184,12,0);} 
}

/* =========================================
   22. TRANSACTION LOGS (Deposit & Withdraw)
   ========================================= */

.log-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    transition: 0.3s;
    overflow: hidden;
    box-shadow: var(--shadow-game);
}
.log-card:hover {
    border-color: var(--gold);
    transform: translateX(5px);
    background: var(--bg);
}

/* Status Border Indicators */
.status-pending { border-left: 4px solid #f39c12; }
.status-approved { border-left: 4px solid #2ecc71; }
.status-rejected { border-left: 4px solid #e74c3c; }

/* Layout Grid */
.log-grid {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 15px;
    align-items: center;
}

/* Icon Box */
.icon-box {
    width: 50px; height: 50px;
    background: var(--bg);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; 
    border: 1px solid var(--border);
}
/* Specific Colors */
.icon-withdraw { color: #e74c3c; } /* Red */
.icon-deposit { color: #2ecc71; }  /* Green */

/* Info Text */
.log-info h5 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.log-meta { 
    font-size: 11px; color: var(--text); opacity: 0.6; 
    margin-top: 4px; display: flex; gap: 10px; align-items: center; 
}

/* Source Badges */
.source-badge { padding: 2px 6px; border-radius: 4px; font-size: 9px; text-transform: uppercase; font-weight: 700; }
.src-agent { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.src-site { background: rgba(52, 152, 219, 0.15); color: #3498db; }

/* Amount Section */
.log-amount { text-align: right; }
.amt-val { font-size: 18px; font-weight: 800; display: block; }
.amt-neg { color: #e74c3c; } /* Red Text */
.amt-pos { color: #2ecc71; } /* Green Text */

/* Status Text Badges */
.status-badge-log { 
    font-size: 10px; font-weight: 700; text-transform: uppercase; 
    padding: 3px 8px; border-radius: 20px; display: inline-block; margin-top: 5px; 
}
.st-pend { background: rgba(243, 156, 18, 0.2); color: #f39c12; }
.st-appr { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.st-reje { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }

/* Empty State */
.empty-state { text-align: center; padding: 50px 0; opacity: 0.5; color: var(--text); }
.empty-state i { font-size: 40px; margin-bottom: 15px; color: var(--text); }

/* =========================================
   23. DEPOSIT HISTORY (EXTRAS)
   ========================================= */

/* Copyable TrxID */
.trx-copy { 
    cursor: pointer; 
    border-bottom: 1px dashed var(--border); 
    transition: 0.2s; 
    color: var(--text); opacity: 0.8;
}
.trx-copy:hover { 
    color: var(--gold); 
    border-color: var(--gold); 
    opacity: 1;
}

/* Extra Info (e.g. Total Amount with Bonus) */
.log-extra {
    font-size: 10px; 
    color: #2ecc71; /* Always green for bonuses */
    font-weight: bold; 
    margin-top: 2px;
}

/* =========================================
   24. CHANGE PASSWORD PAGE
   ========================================= */

.security-wrapper { 
    padding: 40px 0 80px 0; 
    min-height: 80vh; 
    animation: fadeIn 0.4s ease-out; 
}

/* Security Card */
.security-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: var(--shadow-game);
    max-width: 500px; 
    margin: 0 auto;
}

.page-icon {
    width: 60px; height: 60px;
    background: rgba(255, 184, 12, 0.1);
    color: var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 24px;
    border: 1px solid var(--gold);
    box-shadow: 0 0 15px rgba(255, 184, 12, 0.2);
}

/* Back Link */
.back-link {
    display: block; 
    text-align: center; 
    margin-bottom: 20px;
    color: var(--text); opacity: 0.6;
    text-decoration: none; 
    font-size: 14px; font-weight: 600;
    transition: 0.2s;
}
.back-link:hover { 
    color: var(--gold); 
    opacity: 1; 
}

/* Specific Button Style */
.btn-save {
    width: 100%; height: 50px;
    background: var(--gold); color: #000;
    border: none; border-radius: 8px;
    font-weight: 800; text-transform: uppercase; font-size: 16px;
    margin-top: 10px; transition: 0.2s;
    cursor: pointer;
}
.btn-save:hover { 
    background: var(--gold-grad); 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(255,184,12,0.3); 
}

/* =========================================
   25. LOGIN & AUTHENTICATION PAGES
   ========================================= */

.login-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 30px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-game);
    position: relative;
    overflow: hidden;
}

/* Top Gold Line Decoration */
.login-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gold);
    box-shadow: 0 0 15px var(--gold);
}

.login-header h3 { 
    font-weight: 800; 
    color: var(--text); 
    letter-spacing: 1px; 
    margin-bottom: 5px; 
}
.login-header p { 
    color: var(--text); opacity: 0.6; 
    font-size: 14px; 
}

/* Login Input Groups */
.input-group-text {
    background: var(--bg); 
    border: 1px solid var(--border); 
    border-right: none; 
    color: var(--gold);
}

.form-control-auth {
    background: var(--bg) !important; 
    border: 1px solid var(--border) !important; 
    border-left: none !important; 
    color: var(--text) !important; 
    height: 50px;
    box-shadow: none !important;
}

.form-control-auth:focus {
    background: var(--bg) !important; 
    border-color: var(--gold) !important; 
    color: var(--text) !important;
}

/* Focus effects for the whole group */
.input-group:focus-within .input-group-text { border-color: var(--gold); }
.input-group:focus-within .form-control-auth { border-color: var(--gold); }

/* Login Button */
.btn-login {
    background: var(--gold); 
    color: #000; 
    font-weight: 800;
    width: 100%; 
    padding: 12px; 
    border-radius: 8px; 
    border: none;
    text-transform: uppercase; 
    margin-top: 20px;
    transition: all 0.3s;
}
.btn-login:hover {
    background: var(--gold-grad); 
    transform: translateY(-2px); 
    box-shadow: 0 5px 20px rgba(255, 184, 12, 0.4);
}
.btn-login:disabled { opacity: 0.7; cursor: not-allowed; }

/* Links */
.auth-links { 
    margin-top: 25px; 
    text-align: center; 
    font-size: 14px; 
    color: var(--text); opacity: 0.7; 
}
.auth-links a { 
    color: var(--gold); 
    text-decoration: none; 
    font-weight: 600; 
}
.auth-links a:hover { 
    text-decoration: underline; 
    color: var(--text); 
}

/* Password Toggle Eye */
.toggle-pass { 
    cursor: pointer; 
    color: var(--text); opacity: 0.5; 
    background: var(--bg); 
    border: 1px solid var(--border); 
    border-left: none; 
    border-radius: 0 8px 8px 0; 
    padding: 0 15px; 
    display: flex; align-items: center; 
}
.toggle-pass:hover { opacity: 1; color: var(--gold); }

/* =========================================
   26. REGISTRATION PAGE
   ========================================= */

.reg-wrapper {
    max-width: 450px;
    margin: 30px auto 80px auto;
    padding: 0 15px;
    animation: fadeIn 0.5s ease-out;
}

/* Glass Card Style */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-game);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Gold Top Border Effect */
.glass-card::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Referral Badge */
.ref-badge {
    background: rgba(255, 184, 12, 0.1);
    border-left: 3px solid var(--gold);
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Section Labels */
.section-label {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex; align-items: center;
}
.section-label::after {
    content: ''; flex: 1; height: 1px; background: var(--border); margin-left: 10px;
}

/* Input Container */
.input-box {
    position: relative;
    margin-bottom: 15px;
}

.input-box .icon {
    position: absolute;
    top: 50%; left: 15px;
    transform: translateY(-50%);
    color: var(--text); opacity: 0.5;
    transition: 0.3s;
}

/* Custom Input Field */
.custom-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 15px 12px 45px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-input:focus {
    background: var(--bg);
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(255, 184, 12, 0.2);
    outline: none;
}

.custom-input:focus + .icon { 
    color: var(--gold); opacity: 1; 
}

/* Validation Messages */
.val-msg {
    font-size: 11px;
    position: absolute;
    bottom: -18px; right: 0;
    font-weight: 700;
    height: 15px;
    line-height: 15px;
}

/* Register Button */
.btn-register {
    background: var(--gold); 
    color: #000;
    font-weight: 800;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 184, 12, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-register:hover:not(:disabled) {
    background: var(--gold-grad);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 184, 12, 0.5);
}

.btn-register:disabled {
    background: var(--border);
    color: var(--text); opacity: 0.5;
    box-shadow: none;
    cursor: not-allowed;
}

/* Eye Toggle */
.toggle-eye {
    position: absolute;
    top: 50%; right: 15px;
    transform: translateY(-50%);
    color: var(--text); opacity: 0.5;
    cursor: pointer;
}
.toggle-eye:hover { color: var(--gold); opacity: 1; }