/* ==========================================================================
   LUDOBAZZI - ROYAL GAMING DESIGN SYSTEM (DARK EMERALD & NAVY ATMOSPHERE)
   Theme: Aligned with Login & Register Pages
   Palette: Royal Dark Navy (#06101E), Emerald Green (#19B86A), Neon Green (#00FF87), Golden Yellow (#FFC857)
   Solid tactile colors, 3D button physics, responsive mobile-first gaming layout.
   ========================================================================== */

:root {
    --bg-main: #06101E;                 /* Royal Dark Navy Base (from auth.css) */
    --card-bg: rgba(10, 24, 34, 0.88);  /* Deep Royal Navy Glass Card */
    --surface-alt: #0B1C2A;             /* Subdued dark navy surface */
    
    /* Core Brand Colors */
    --primary: #19B86A;                 /* Vibrant Emerald Green */
    --primary-depth: #12884E;           /* 3D Button Under-bevel */
    --primary-light: rgba(25, 184, 106, 0.2); /* Emerald glow tint */
    
    --neon: #00FF87;                    /* High-voltage Neon Green Highlight */
    
    --accent: #FFC857;                  /* Golden Yellow */
    --accent-depth: #D49D26;            /* 3D Button Under-bevel */
    --accent-light: rgba(255, 200, 87, 0.2); /* Gold glow tint */
    
    --navy: #06101E;                    /* Royal Dark Navy */
    --navy-depth: #030810;
    --navy-light: #0E2230;
    
    --text-main: #FFFFFF;               /* 100% High-visibility White Text */
    --text-muted: #CBD5E1;              /* Light Silver Slate for Subtitles & Meta */
    --text-dim: #94A3B8;                /* Dimmed Silver for secondary hints */
    
    --danger: #EF4444;                  /* Coral Red */
    --danger-depth: #B91C1C;
    --danger-light: rgba(239, 68, 68, 0.2);
    
    --blue: #38BDF8;                    /* Electric Sky Blue */
    --blue-light: rgba(56, 189, 248, 0.2);
    
    --border-color: rgba(25, 184, 106, 0.4);  /* Site Emerald Green Border (from auth.css) */
    --border-subtle: rgba(255, 255, 255, 0.1);
    
    /* Elevation Shadows */
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 16px rgba(25, 184, 106, 0.12);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 255, 135, 0.16);
    --shadow-gaming: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 135, 0.2);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    position: relative;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #06101E;
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* High-Performance Dedicated GPU Layer for Background (Zero Scroll Repaints) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #06101E;
    background-image: 
        linear-gradient(180deg, rgba(6, 16, 30, 0.22) 0%, rgba(6, 16, 30, 0.6) 45%, rgba(4, 10, 18, 0.98) 100%),
        url('../images/auth_bg.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
    z-index: -1;
    transform: translateZ(0);
    will-change: transform;
}

/* ==========================================================================
   APP SHELL / LAYOUT
   ========================================================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

/* DESKTOP SIDEBAR */
.sidebar {
    width: 280px;
    background-color: rgba(6, 16, 30, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-main);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    border-right: 1.5px solid var(--border-color);
    z-index: 200;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 255, 135, 0.1);
}

.sidebar-brand {
    padding: 24px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1.5px solid var(--border-color);
    text-decoration: none;
    color: var(--text-main);
}

.brand-badge {
    width: 44px;
    height: 44px;
    background: #0B1C2A;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    box-shadow: 0 4px 0 var(--navy-depth), 0 0 12px rgba(255, 200, 87, 0.3);
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.brand-subtitle {
    font-size: 11px;
    font-weight: 800;
    color: var(--neon);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 255, 135, 0.5);
}

/* Sidebar User Status Card */
.sidebar-user-card {
    margin: 18px 16px 8px 16px;
    padding: 14px 16px;
    background: rgba(10, 24, 34, 0.95);
    border: 1.5px solid var(--border-color);
    color: #FFFFFF;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 255, 135, 0.15);
}

.sidebar-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-avatar img, .drawer-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 800;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-level {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Sidebar Navigation Items */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 16px 14px;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.sidebar-nav a i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: var(--text-dim);
    transition: color 0.15s;
}

.sidebar-nav a:hover {
    color: var(--text-main);
    background-color: var(--surface-alt);
}

.sidebar-nav a:hover i {
    color: var(--primary);
}

.sidebar-nav a.active {
    background-color: var(--primary-light);
    color: var(--primary-depth);
    font-weight: 800;
    border-color: rgba(25, 184, 106, 0.2);
}

.sidebar-nav a.active i {
    color: var(--primary);
}

.sidebar-pill-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-green { background: var(--primary); color: #fff; }
.badge-yellow { background: var(--accent); color: var(--navy); }

.sidebar-footer {
    padding: 18px 16px;
    border-top: 1px solid var(--border-color);
}

.sidebar-trust-box {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

/* MAIN CONTENT AREA */
.main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: clip;
}

/* TOPBAR */
.topbar {
    background-color: rgba(6, 16, 30, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0 24px;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    z-index: 990;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    transition: left 0.25s ease;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.topbar-mobile-logo {
    display: none;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    flex-shrink: 0;
}

.topbar-mobile-logo .mini-badge {
    width: 36px;
    height: 36px;
    background: var(--navy);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 18px;
    box-shadow: 0 3px 0 var(--navy-depth);
}

.topbar-mobile-logo .logo-name {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--text-main);
}

.live-indicator-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F1F5F9;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(25, 184, 106, 0.25);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(25, 184, 106, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(25, 184, 106, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 184, 106, 0); }
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* GAMING WALLET PILL */
.wallet-pill {
    background: var(--navy);
    color: #FFFFFF;
    padding: 5px 8px 5px 12px;
    border-radius: 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 0 var(--navy-depth);
    transition: transform 0.15s ease;
    border: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.wallet-pill:hover {
    transform: translateY(-1px);
}

.wallet-coin {
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 2px 0 var(--accent-depth);
}

.wallet-bal {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #FFFFFF;
    white-space: nowrap;
}

.wallet-add-chip {
    background: var(--primary);
    color: #FFFFFF;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 2px 0 var(--primary-depth);
    transition: transform 0.1s ease;
}

.wallet-pill:hover .wallet-add-chip {
    transform: scale(1.1);
}

.topbar-auth-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-topbar-login {
    background: var(--accent);
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    padding: 7px 14px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 3px 0 var(--accent-depth);
    transition: all 0.1s ease;
    white-space: nowrap;
}

.btn-topbar-login:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--accent-depth);
}

.btn-topbar-register {
    background: var(--primary);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 14px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 3px 0 var(--primary-depth);
    transition: all 0.1s ease;
    white-space: nowrap;
}

.btn-topbar-register:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--primary-depth);
}

/* PAGE BODY CONTAINER */
.page-body {
    padding: 24px;
    padding-top: 84px; /* 64px fixed header + 20px spacing */
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: clip;
}

/* ==========================================================================
   TACTILE 3D GAMING BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: none;
    padding: 13px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    text-align: center;
    letter-spacing: 0.3px;
    min-width: 0;
}

/* Primary Green 3D Button */
.btn-primary { 
    background-color: var(--primary); 
    color: #FFFFFF; 
    box-shadow: 0 4px 0 var(--primary-depth), 0 6px 12px rgba(25, 184, 106, 0.2);
}

.btn-primary:hover {
    filter: brightness(1.03);
}

.btn-primary:active { 
    transform: translateY(3px); 
    box-shadow: 0 1px 0 var(--primary-depth), 0 2px 4px rgba(25, 184, 106, 0.2);
}

/* Accent Yellow 3D Button */
.btn-accent { 
    background-color: var(--accent); 
    color: var(--navy); 
    box-shadow: 0 4px 0 var(--accent-depth), 0 6px 12px rgba(255, 200, 87, 0.25);
}

.btn-accent:hover {
    filter: brightness(1.03);
}

.btn-accent:active { 
    transform: translateY(3px); 
    box-shadow: 0 1px 0 var(--accent-depth), 0 2px 4px rgba(255, 200, 87, 0.25);
}

/* Dark Navy 3D Button */
.btn-navy {
    background-color: var(--navy);
    color: #FFFFFF;
    box-shadow: 0 4px 0 var(--navy-depth), 0 6px 12px rgba(16, 28, 44, 0.2);
}

.btn-navy:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--navy-depth);
}

/* Danger Red 3D Button */
.btn-danger { 
    background-color: var(--danger); 
    color: #FFFFFF; 
    box-shadow: 0 4px 0 var(--danger-depth), 0 6px 12px rgba(239, 68, 68, 0.2);
}

.btn-danger:active { 
    transform: translateY(3px); 
    box-shadow: 0 1px 0 var(--danger-depth);
}

/* Ghost / Outline Button */
.btn-outline {
    background: rgba(10, 24, 34, 0.85);
    color: #FFFFFF;
    border: 1.5px solid var(--border-color);
    box-shadow: 0 3px 0 var(--navy-depth);
}

.btn-outline:hover {
    background: rgba(25, 184, 106, 0.15);
    border-color: var(--neon);
    color: #FFFFFF;
}

.btn-outline:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--navy-depth);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   CARDS & CONTAINERS (MATCHING LOGIN/REGISTER GLASS AESTHETIC)
   ========================================================================== */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 22px;
    padding: 22px;
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
    color: #FFFFFF;
}

/* Section Titles with Badges */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-title {
    font-size: 18px;
    font-weight: 900;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   BOTTOM NAV (Mobile Dock)
   ========================================================================== */
.bottom-nav { display: none; }

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { 
        margin-left: 0; 
        width: 100%; 
        max-width: 100vw;
    }
    
    .topbar {
        position: fixed;
        top: 0;
        left: 0 !important;
        right: 0 !important;
        height: 56px !important;
        padding: 0 12px !important;
        gap: 8px;
        box-sizing: border-box;
        background-color: rgba(6, 16, 30, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1.5px solid var(--border-color);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 255, 135, 0.12);
        z-index: 990;
    }

    .topbar-left {
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .drawer-hamburger-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
        margin: 0;
        background: rgba(10, 24, 34, 0.85);
        border: 1.5px solid var(--border-color);
        color: var(--neon);
    }
    
    .topbar-mobile-logo {
        display: flex;
        gap: 6px;
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }

    .topbar-mobile-logo .mini-badge {
        width: 32px;
        height: 32px;
        font-size: 14px;
        border-radius: 8px;
        flex-shrink: 0;
        background: #0B1C2A;
        border: 1px solid var(--border-color);
        color: var(--accent);
    }

    .topbar-mobile-logo .logo-name {
        font-size: 14.5px;
        letter-spacing: 0.4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        color: #FFFFFF;
    }

    .topbar-right {
        gap: 6px;
        flex-shrink: 0;
    }

    .topbar-notif-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin: 0;
        background: rgba(10, 24, 34, 0.85);
        border: 1.5px solid var(--border-color);
        color: var(--neon);
    }

    .wallet-pill {
        padding: 4px 6px 4px 10px;
        gap: 6px;
        border-radius: 20px;
        background: rgba(10, 24, 34, 0.95);
        border: 1.5px solid rgba(255, 200, 87, 0.45);
        box-shadow: 0 3px 0 var(--navy-depth), 0 0 10px rgba(255, 200, 87, 0.2);
    }

    .wallet-coin {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .wallet-bal {
        font-size: 12.5px;
        font-weight: 800;
        white-space: nowrap;
        color: #FFFFFF;
    }

    .wallet-add-chip {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    
    .live-indicator-pill {
        display: none;
    }
    
    .topbar-auth-btns {
        display: none;
    }
    
    .page-body {
        padding: 12px;
        padding-top: 68px; /* 56px fixed header + 12px spacing */
        padding-bottom: 95px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: clip;
    }
    
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(6, 16, 30, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        justify-content: space-around;
        align-items: center;
        padding: 6px 6px;
        border-top: 1.5px solid var(--border-color);
        z-index: 500;
        box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 255, 135, 0.15);
        padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
        width: 100%;
        box-sizing: border-box;
    }

    .bottom-nav-item {
        color: var(--text-dim);
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 5px 8px;
        border-radius: 12px;
        transition: all 0.15s ease;
        position: relative;
        flex: 1;
        text-align: center;
    }

    .bottom-nav-item i {
        font-size: 19px;
        transition: transform 0.15s ease;
    }

    .bottom-nav-item .label {
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.2px;
    }

    .bottom-nav-item.active {
        color: var(--neon);
    }

    .bottom-nav-item.active i {
        transform: translateY(-2px);
        color: var(--neon);
        filter: drop-shadow(0 0 8px rgba(0, 255, 135, 0.65));
    }

    .bottom-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        width: 18px;
        height: 3px;
        background: var(--neon);
        border-radius: 4px;
        box-shadow: 0 0 8px var(--neon);
    }
}

@media (max-width: 375px) {
    .topbar {
        padding: 6px 8px;
        gap: 6px;
    }
    .topbar-left {
        gap: 6px;
    }
    .drawer-hamburger-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .topbar-mobile-logo .mini-badge {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    .topbar-mobile-logo .logo-name {
        font-size: 13px;
        letter-spacing: 0;
        max-width: 75px;
    }
    .topbar-right {
        gap: 5px;
    }
    .topbar-notif-btn {
        width: 33px;
        height: 33px;
        font-size: 13px;
    }
    .wallet-pill {
        padding: 3px 5px 3px 8px;
        gap: 5px;
    }
    .wallet-coin {
        width: 18px;
        height: 18px;
        font-size: 9.5px;
    }
    .wallet-bal {
        font-size: 11.5px;
    }
    .wallet-add-chip {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
}

/* ==========================================================================
   INPUTS & FORMS - 100% VISIBLE CRISP WHITE TEXT & EMERALD GLOW
   ========================================================================== */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

label, .field-label {
    display: block !important;
    margin-bottom: 7px !important;
    color: #A7F3D0 !important;
    font-weight: 800 !important;
    font-size: 12.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
}

.input-box,
input[type="text"]:not(.auth-input):not(.input-container input):not(.casino-input):not(.cp-amount-input):not(.clean-input),
input[type="number"]:not(.auth-input):not(.input-container input):not(.casino-input):not(.cp-amount-input):not(.clean-input),
input[type="password"]:not(.auth-input):not(.input-container input):not(.casino-input):not(.cp-amount-input):not(.clean-input),
input[type="tel"]:not(.auth-input):not(.input-container input):not(.casino-input):not(.cp-amount-input):not(.clean-input),
input[type="email"]:not(.auth-input):not(.input-container input):not(.casino-input):not(.cp-amount-input):not(.clean-input),
input[type="search"]:not(.auth-input):not(.input-container input):not(.casino-input):not(.cp-amount-input):not(.clean-input),
textarea,
select,
.form-control,
.gaming-form-control {
    width: 100% !important;
    padding: 13px 16px !important;
    background-color: rgba(6, 20, 28, 0.85) !important;
    border: 1.5px solid rgba(25, 184, 106, 0.45) !important;
    color: #FFFFFF !important; /* CRITICAL: 100% VISIBLE PURE WHITE TEXT */
    border-radius: 14px !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    caret-color: #00FF87 !important;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s !important;
    display: block !important;
}

.input-box:hover,
input:not(.auth-input):not(.input-container input):not(.casino-input):not(.cp-amount-input):not(.clean-input):hover,
textarea:hover,
select:hover {
    border-color: rgba(0, 255, 135, 0.6) !important;
    background-color: rgba(8, 28, 36, 0.9) !important;
}

.input-box:focus,
input:not(.auth-input):not(.input-container input):not(.casino-input):not(.cp-amount-input):not(.clean-input):focus,
textarea:focus,
select:focus,
.form-control:focus,
.gaming-form-control:focus {
    outline: none !important;
    border-color: #00FF87 !important;
    box-shadow: 0 0 16px rgba(0, 255, 135, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    background-color: rgba(10, 32, 42, 0.96) !important;
    color: #FFFFFF !important;
}

.input-box::placeholder,
input:not(.auth-input):not(.input-container input):not(.casino-input):not(.cp-amount-input):not(.clean-input)::placeholder,
textarea::placeholder {
    color: rgba(148, 163, 184, 0.7) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

select option {
    background-color: #0A1822 !important;
    color: #FFFFFF !important;
    padding: 10px !important;
}

.alert {
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.alert.error {
    background-color: rgba(239, 68, 68, 0.22);
    color: #FCA5A5;
    border: 1.5px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
}

.alert.success {
    background-color: rgba(16, 185, 129, 0.22);
    color: #86EFAC;
    border: 1.5px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

/* Universal Table Styles for Dark Royal Gaming Theme */
table {
    width: 100%;
    border-collapse: collapse;
    color: #FFFFFF;
}

th {
    background: rgba(6, 20, 28, 0.9);
    color: #A7F3D0;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 12px 14px;
    border-bottom: 1.5px solid var(--border-color);
}

td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #E2E8F0;
    font-size: 13.5px;
}

tr:hover td {
    background: rgba(25, 184, 106, 0.06);
}

/* Utility Helpers */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted) !important; }
.text-accent { color: var(--accent) !important; }
.text-primary { color: var(--primary) !important; }
.text-neon { color: var(--neon) !important; }
.text-navy { color: #FFFFFF !important; } /* Force contrast on dark theme */
.font-black { font-weight: 900; }

/* ==========================================================================
   GLOBAL GAMING MODAL & TOAST SYSTEM (ULTRA-MODERN 3D GAMING APP STYLE)
   ========================================================================== */
.gaming-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(3, 7, 18, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gaming-modal-backdrop.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gaming-modal-card {
    width: 100%;
    max-width: 360px;
    background: linear-gradient(165deg, #131E3A 0%, #0B1325 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    padding: 28px 22px 24px 22px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.75), 0 0 40px rgba(99, 102, 241, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    text-align: center;
    position: relative;
    box-sizing: border-box;
    color: #FFFFFF;
    transform: scale(0.82) translateY(14px);
    transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gaming-modal-backdrop.active .gaming-modal-card {
    transform: scale(1) translateY(0);
}

.gaming-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.gaming-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    transform: rotate(90deg);
}

.gaming-modal-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    position: relative;
    animation: modalPulse 2s infinite alternate;
}

@keyframes modalPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

.gaming-modal-icon-wrap.icon-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.45) 100%);
    color: #10B981;
    border: 2px solid rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 28px rgba(16, 185, 129, 0.45);
}

.gaming-modal-icon-wrap.icon-danger,
.gaming-modal-icon-wrap.icon-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(185, 28, 28, 0.45) 100%);
    color: #EF4444;
    border: 2px solid rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 28px rgba(239, 68, 68, 0.45);
}

.gaming-modal-icon-wrap.icon-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.45) 100%);
    color: #F59E0B;
    border: 2px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.45);
}

.gaming-modal-icon-wrap.icon-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(29, 78, 216, 0.45) 100%);
    color: #60A5FA;
    border: 2px solid rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 28px rgba(59, 130, 246, 0.45);
}

.gaming-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    letter-spacing: -0.3px;
}

.gaming-modal-message {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #94A3B8;
    line-height: 1.55;
    margin: 0 0 22px 0;
    word-break: break-word;
}

/* Modal Actions Layout (Single or Dual Buttons) */
.gaming-modal-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.gaming-modal-actions.single-btn .gaming-modal-btn-cancel {
    display: none !important;
}

.gaming-modal-actions.single-btn .gaming-modal-btn-confirm,
.gaming-modal-actions.single-btn .gaming-modal-btn {
    width: 100%;
}

.gaming-modal-btn-cancel {
    flex: 1;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    color: #E2E8F0;
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gaming-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.gaming-modal-btn-cancel:active {
    transform: translateY(1px);
}

.gaming-modal-btn-confirm,
.gaming-modal-btn {
    flex: 1;
    height: 48px;
    border-radius: 999px;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: #FFFFFF;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4), 0 3px 0 #047857;
    transition: all 0.2s ease;
}

.gaming-modal-btn-confirm.btn-danger,
.gaming-modal-btn.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45), 0 3px 0 #991B1B !important;
}

.gaming-modal-btn-confirm.btn-warning,
.gaming-modal-btn.btn-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45), 0 3px 0 #B45309 !important;
}

.gaming-modal-btn-confirm.btn-info,
.gaming-modal-btn.btn-info {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.45), 0 3px 0 #1D4ED8 !important;
}

.gaming-modal-btn-confirm:hover,
.gaming-modal-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.gaming-modal-btn-confirm:active,
.gaming-modal-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Quick Floating Toast */
.gaming-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-35px);
    background: #101C2C;
    color: #FFFFFF;
    border: 1.5px solid rgba(25, 184, 106, 0.6);
    border-radius: 999px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 255, 135, 0.25);
    z-index: 1000000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    max-width: 90vw;
}

.gaming-toast.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.gaming-toast-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #10B981;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

/* ==========================================================================
/* ==========================================================================
   NON-INTRUSIVE CIRCULAR GAMING PAGE LOADER WITH CENTER LOGO (DUBAIWIN STYLE)
   ========================================================================== */
/* Floating Overlay (Screen softly dimmed, underlying page remains visible) */
.page-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000000;
    background: rgba(3, 10, 18, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease-in-out;
}

.page-loader-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Container */
.page-loader-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.9) translateY(6px);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.page-loader-overlay.active .page-loader-circle-container {
    transform: scale(1) translateY(0);
}

/* Circular Wrapper */
.page-loader-circle-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 16, 26, 0.75) 0%, rgba(6, 16, 26, 0.4) 60%, transparent 74%);
}

/* SVG Spinner and Animation */
.page-loader-svg-spinner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: loaderCircleSpin 1.15s linear infinite;
    pointer-events: none;
}

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

/* Subtle background track ring */
.svg-spinner-track {
    fill: none;
    stroke: rgba(255, 200, 87, 0.14);
    stroke-width: 2.5;
}

/* Glowing golden spinning arc (covers ~260 degrees) */
.svg-spinner-arc {
    fill: none;
    stroke: #FFC857;
    stroke-width: 3.2;
    stroke-dasharray: 254 98;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 68px 68px;
    filter: drop-shadow(0 0 6px rgba(255, 200, 87, 0.8));
}

/* Glowing bead/dot at the leading tip */
.svg-spinner-head-dot {
    fill: #FFE082;
    filter: drop-shadow(0 0 8px #FFC857);
}

/* Logo in the center of the spinning circle */
.page-loader-logo-center {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 50px;
    pointer-events: none;
}

.page-loader-circle-logo {
    max-width: 82px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 12px rgba(25, 184, 106, 0.4));
    animation: logoBreathingGlow 2s ease-in-out infinite alternate;
}

@keyframes logoBreathingGlow {
    0% { transform: scale(0.97); filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 8px rgba(0, 255, 135, 0.3)); }
    100% { transform: scale(1.03); filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(0, 255, 135, 0.65)); }
}

/* Status Label */
.page-loader-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: #FFC857;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-top: 14px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 8px rgba(255, 200, 87, 0.4);
}

.loader-dot-pulse {
    animation: loaderDotBlink 1.4s infinite;
}
.loader-dot-pulse:nth-child(2) { animation-delay: 0.2s; }
.loader-dot-pulse:nth-child(3) { animation-delay: 0.4s; }

@keyframes loaderDotBlink {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}


