/* ============================================================
   Bet With Net - Mobile-First Luxury Casino Stylesheet
   ============================================================ */

:root {
    --bg-dark: #0b0e14;
    --bg-card: #151a23;
    --bg-elevated: #1e2532;
    --bg-input: #12161f;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(245, 166, 35, 0.35);

    --primary-gold: #f5a623;
    --primary-gold-hover: #ffb845;
    --accent-emerald: #00e700;
    --accent-emerald-glow: rgba(0, 231, 0, 0.25);
    --accent-red: #ff3b30;
    --accent-blue: #007aff;
    --accent-purple: #af52de;

    --text-main: #f0f3f8;
    --text-muted: #8e9bb0;
    --text-dim: #5a6679;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;

    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(245, 166, 35, 0.2);
}

/* ==========================================
   Bet With Net Slide-Out Drawer Navigation
   ========================================== */
.app-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 600;
    display: none;
}
.app-drawer-overlay.active {
    display: block;
}
.app-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 290px;
    height: 100%;
    background: #0d131c;
    border-right: 1px solid var(--border-color);
    z-index: 601;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
}
.app-drawer.active {
    transform: translateX(0);
}
.drawer-header {
    background: #151f2e;
    padding: 18px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.drawer-user-card {
    padding: 16px;
    background: #111823;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}
.drawer-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #00e5ff, #007aff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}
.drawer-nav-list {
    list-style: none;
    padding: 10px 0;
    flex: 1;
}
.drawer-nav-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}
.drawer-nav-item a:hover, .drawer-nav-item.active a {
    background: #1a2536;
    color: var(--primary-gold);
    border-left: 4px solid var(--primary-gold);
}
.drawer-nav-badge {
    margin-left: auto;
    background: #00e700;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Floating Betslip Quick Bar */
.floating-betslip-btn {
    position: fixed;
    right: 16px;
    bottom: 80px;
    background: linear-gradient(135deg, #f5a623, #ff8c00);
    color: #120c02;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 150;
    text-decoration: none;
    border: 2px solid #ffffff;
    transition: transform 0.15s;
}
.floating-betslip-btn:hover {
    transform: scale(1.05);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background-color: #080c14;
    background-image: 
        linear-gradient(180deg, rgba(8, 12, 20, 0.72) 0%, rgba(10, 16, 26, 0.78) 50%, rgba(6, 9, 15, 0.85) 100%),
        url('../assets/backgrounds/casino_main_bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    position: relative;
}

.main-container, .cashier-container, .p2p-container, .auth-page-container, .game-layout {
    flex: 1 0 auto;
    width: 100%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(245, 166, 35, 0.14) 0%, transparent 60%),
        radial-gradient(circle at 85% 30%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
        radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: auto, auto, 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* Foreground Stacking Architecture (Header on Top of Content) */
#app-header-slot {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    width: 100% !important;
}
.disclaimer-banner {
    position: relative !important;
    z-index: 99998 !important;
}
.app-header {
    position: relative !important;
    z-index: 99999 !important;
    overflow: visible !important; /* CRITICAL: Never clip dropdown menus */
}
.live-ticker {
    position: relative !important;
    z-index: 10 !important;
}
.main-container, .cashier-container, .p2p-container, .auth-page-container, .game-layout, .ledger-container-wide {
    position: relative !important;
    z-index: 1 !important;
}
.luxury-casino-footer {
    position: relative !important;
    z-index: 1 !important;
}
.mobile-bottom-nav {
    position: fixed !important;
    z-index: 500 !important;
}

/* Bulletproof Fullscreen Mobile Drawer & Overlay (Pinned to Viewport Top) */
#app-drawer-root {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 0 !important;
    z-index: 99999999 !important;
    pointer-events: none !important;
}
#app-drawer-root > * {
    pointer-events: auto !important;
}
.app-drawer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(0, 0, 0, 0.78) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 99999998 !important;
    display: none;
}
.app-drawer-overlay.active {
    display: block !important;
}
.app-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 300px !important;
    max-width: 82vw !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #0d131c !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    z-index: 99999999 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.95) !important;
}
.app-drawer.active {
    transform: translateX(0) !important;
}
body.drawer-open {
    overflow: hidden !important;
    touch-action: none !important;
}

/* Auth Modal Overlay & Dialog Styles */
#auth-modal-root {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 999999999 !important;
    pointer-events: none !important;
}
#auth-modal-root:empty {
    display: none !important;
}
.auth-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(0, 0, 0, 0.82) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 1 !important;
    pointer-events: auto !important;
}
.auth-modal-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(420px, calc(100vw - 32px)) !important;
    max-height: min(92vh, 92dvh) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: #0e1624 !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 16px !important;
    z-index: 2 !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.98), 0 0 0 1px rgba(0, 231, 0, 0.3) !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    pointer-events: auto !important;
}

/* Auth Buttons in Header */
.auth-buttons-header {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-header-login {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-header-login:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
}
.btn-header-register {
    background: linear-gradient(135deg, #00e700, #00a800);
    border: none;
    color: #000;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0, 231, 0, 0.3);
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-header-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 231, 0, 0.5);
}
.header-user-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
}
.user-name-mini {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.user-vip-pill {
    background: linear-gradient(135deg, #f5a623, #ffd700);
    color: #000;
    font-size: 9px;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 10px;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #2a3447;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: #3d4a63;
}

/* Compliance / Educational Banner */
.disclaimer-banner {
    background: linear-gradient(90deg, #1b2438, #182234);
    border-bottom: 1px solid rgba(245, 166, 35, 0.3);
    padding: 6px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #ffd074;
    font-weight: 500;
}
.disclaimer-badge {
    background: rgba(245, 166, 35, 0.2);
    border: 1px solid var(--primary-gold);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

/* Top App Header */
.app-header {
    position: relative;
    top: 0;
    z-index: 500;
    background: rgba(10, 14, 22, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.brand-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f5a623, #ff4e50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.35);
}
.brand-title {
    font-size: 17px;
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff, #f5a623);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.brand-sub {
    font-size: 10px;
    color: var(--accent-emerald);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

/* Desktop Main Navigation Menu */
.desktop-nav-menu {
    display: none; /* Enabled on >= 992px */
    align-items: center;
    gap: 2px;
    background: rgba(15, 21, 33, 0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 3px 6px;
    flex-shrink: 0;
    overflow: visible !important;
}

.desktop-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    transition: all 0.18s ease;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
}

.desktop-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.desktop-nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.25), rgba(245, 166, 35, 0.1));
    border: 1px solid rgba(245, 166, 35, 0.4);
    box-shadow: 0 0 14px rgba(245, 166, 35, 0.2);
}

/* Luxury Dropdown Navigation */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 100000 !important;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    margin-top: 6px;
    left: 0;
    background: rgba(11, 16, 25, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(245, 166, 35, 0.45);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(245, 166, 35, 0.22);
    min-width: 260px;
    z-index: 100001 !important;
    animation: dropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Invisible hover bridge to prevent mouse cursor dropping hover state */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.nav-dropdown-menu.align-right {
    left: auto;
    right: 0;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    display: block !important;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 6px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(245, 166, 35, 0.12);
    color: var(--primary-gold);
    transform: translateX(3px);
}

.dropdown-item-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.desktop-nav-badge {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 8px;
}

.desktop-nav-badge.badge-hot {
    background: linear-gradient(135deg, #ff3b30, #ff9500);
    color: #ffffff;
}

.desktop-nav-link.desktop-nav-admin {
    color: #00e700;
}

.desktop-nav-link.desktop-nav-admin:hover {
    background: rgba(0, 231, 0, 0.1);
}

/* Wallet & Top Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-badge {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 3px 6px 3px 12px;
    gap: 8px;
}
.wallet-currency-select {
    background: transparent;
    border: none;
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    outline: none;
}
.wallet-balance {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-mono);
}

.btn-deposit-quick {
    background: linear-gradient(135deg, #00e700, #00b300);
    color: #0b1c0b;
    border: none;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 2px 10px var(--accent-emerald-glow);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-deposit-quick:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.btn-deposit-quick:active {
    transform: translateY(1px);
}

.btn-icon-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-icon-header:hover {
    background: var(--bg-elevated);
}

/* Live Ticker Bar */
.live-ticker {
    background: #0f131a;
    border-bottom: 1px solid var(--border-color);
    padding: 6px 16px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    font-size: 12px;
}
.live-ticker-track {
    display: inline-flex;
    gap: 24px;
    animation: tickerScroll 40s linear infinite;
}
.live-ticker-track:hover {
    animation-play-state: paused;
}
.ticker-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ticker-user {
    color: var(--text-muted);
}
.ticker-game {
    color: var(--primary-gold);
    font-weight: 600;
}
.ticker-win {
    color: var(--accent-emerald);
    font-weight: 700;
}
.ticker-mult {
    background: rgba(0, 231, 0, 0.15);
    color: var(--accent-emerald);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Main Container */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px;
}

/* Hero / Featured Carousel */
.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #1c2638, #131722);
    border: 1px solid rgba(245, 166, 35, 0.25);
    padding: 24px;
    overflow: hidden;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    max-width: 550px;
    z-index: 2;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 166, 35, 0.15);
    color: var(--primary-gold);
    border: 1px solid var(--border-gold);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.hero-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ffffff, #ffdf9e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 18px;
}
.hero-btns {
    display: flex;
    gap: 12px;
}
.btn-primary-gold {
    background: linear-gradient(135deg, #f5a623, #ff8c00);
    color: #120c02;
    border: none;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
    transition: transform 0.15s, filter 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-primary-gold:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-secondary:hover {
    background: var(--bg-elevated);
}

/* Category Filters & Search */
.controls-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.category-pills::-webkit-scrollbar {
    display: none;
}
.category-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
}
.category-pill:active {
    transform: scale(0.95);
}
.category-pill.active, .category-pill:hover {
    background: var(--bg-elevated);
    color: var(--text-main);
    border-color: var(--primary-gold);
}

.search-box {
    position: relative;
    min-width: 220px;
}
.search-box input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 12px 8px 34px;
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
}
.search-box input:focus {
    border-color: var(--primary-gold);
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

/* Game Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-gold);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 166, 35, 0.15);
}
.game-card-img-wrap {
    width: 100%;
    height: 125px;
    position: relative;
    background: #10151f;
    overflow: hidden;
}
.game-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.game-card:hover .game-card-img-wrap img {
    transform: scale(1.08);
}
.game-badge-hot {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff3b30, #ff9500);
    color: white;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.game-badge-rtp {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: var(--accent-emerald);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.game-card-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--bg-card);
}
.game-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-card-category {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.game-play-tag {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 11px;
}

/* Modal Popups (Deposit, Withdraw, Profile, VIP, Bet History, etc.) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-overlay.active {
    display: flex;
}
.modal-window {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    animation: modalPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes modalPop {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}
.modal-close-btn:hover {
    background: var(--bg-elevated);
    color: white;
}
.modal-body {
    padding: 20px;
}

/* Form Styles inside Modals */
.form-group {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.form-input, .form-select {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus {
    border-color: var(--primary-gold);
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.payment-method-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 12px;
    font-weight: 600;
}
.payment-method-card.active, .payment-method-card:hover {
    border-color: var(--primary-gold);
    background: rgba(245, 166, 35, 0.1);
    color: var(--primary-gold);
}
.payment-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

.account-info-box {
    background: rgba(245, 166, 35, 0.08);
    border: 1px dashed var(--primary-gold);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 12px;
}
.account-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.account-info-label {
    color: var(--text-muted);
}
.account-info-val {
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-mono);
}

.quick-amounts {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.btn-quick-amount {
    flex: 1;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 0;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.btn-quick-amount:hover {
    background: rgba(245, 166, 35, 0.15);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.btn-submit-action {
    width: 100%;
    background: linear-gradient(135deg, #00e700, #00b300);
    color: #0b1a0b;
    border: none;
    font-size: 14px;
    font-weight: 800;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 15px var(--accent-emerald-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, filter 0.15s;
}
.btn-submit-action:hover {
    filter: brightness(1.1);
}
.btn-submit-action:active {
    transform: scale(0.99);
}

/* Bottom Mobile App Navigation Dock */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 24, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)) 4px;
    z-index: 400;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    max-width: 74px;
    padding: 4px 2px;
    border-radius: var(--radius-sm);
    -webkit-tap-highlight-color: transparent;
}

.nav-item:active {
    transform: scale(0.92);
}

.nav-item .nav-icon {
    font-size: 19px;
    line-height: 1;
    transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item .nav-label {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.nav-item.active {
    color: var(--primary-gold);
}

.nav-item.active .nav-icon {
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 2px 8px rgba(245, 166, 35, 0.5));
}

.nav-item.active .nav-label {
    color: #ffffff;
    font-weight: 800;
}

/* Floating Center Deposit Action Button */
.nav-item-special {
    position: relative;
    top: -14px;
}

.nav-item-special .nav-icon-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f5a623 0%, #ff5e3a 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 4px 18px rgba(245, 166, 35, 0.5), 0 0 10px rgba(255, 94, 58, 0.3);
    border: 3px solid #0b0f18;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item-special:active .nav-icon-circle {
    transform: scale(0.9);
}

.nav-item-special .nav-label {
    color: var(--primary-gold);
    font-weight: 800;
    margin-top: 2px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    background: #1a2230;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-gold);
    color: white;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    font-size: 13px;
    font-weight: 600;
    animation: toastSlide 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}
.toast.success {
    border-left-color: var(--accent-emerald);
}
.toast.error {
    border-left-color: var(--accent-red);
}
@keyframes toastSlide {
    0% { transform: translateX(50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Fullscreen Game Arena Overlay */
.game-arena-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 300;
    display: none;
    flex-direction: column;
    overflow-y: auto;
}
.game-arena-overlay.active {
    display: flex;
}
.arena-header {
    background: rgba(15, 20, 29, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}
.arena-title {
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.arena-close-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.arena-close-btn:hover {
    background: var(--bg-elevated);
}
.arena-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 16px;
}

/* ============================================================
   RESPONSIVE LAYOUT ENGINE (Mobile, Tablet, Laptop, Desktop)
   Bet With Net VIP Casino & P2P Portal Architecture
   ============================================================ */

/* 1. Desktop & Laptop Breakpoint (>= 992px) */
@media (min-width: 992px) {
    body {
        padding-bottom: 0 !important; /* No bottom spacing needed on desktop */
    }

    /* Hide Mobile Bottom Nav Dock on Desktop/Laptop */
    .mobile-bottom-nav {
        display: none !important;
    }

    /* Show Desktop Navigation Bar in Header */
    .desktop-nav-menu {
        display: flex !important;
    }

    /* Hide Mobile Hamburger in Header */
    .mobile-menu-toggle {
        display: none !important;
    }

    /* App Header Spacing */
    .app-header {
        padding: 12px 28px;
        gap: 20px;
    }

    /* Main Container Padding */
    .main-container {
        padding: 24px 28px;
    }

    /* Hero Banner on Desktop */
    .hero-banner {
        padding: 36px 40px;
        min-height: 220px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-desc {
        font-size: 14px;
        max-width: 600px;
    }

    /* Games Grid on Desktop & Laptop */
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important;
        gap: 18px !important;
    }

    /* Floating Betslip on Desktop */
    .floating-betslip-btn {
        display: flex !important;
        bottom: 24px;
        right: 24px;
    }
}

/* 2. Tablet / Small Laptop Breakpoint (768px - 991px) */
@media (max-width: 991px) {
    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .desktop-nav-menu {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Hide floating betslip on mobile/tablet so it doesn't overlap content or dock */
    .floating-betslip-btn {
        display: none !important;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

/* 3. Mobile Screens Breakpoint (< 768px) */
@media (max-width: 767px) {
    .app-header {
        padding: 8px 12px;
        gap: 8px;
    }

    .brand-title {
        font-size: 15px;
    }
    .brand-sub {
        font-size: 9px;
    }
    .brand-logo-icon {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .wallet-badge {
        padding: 2px 4px 2px 8px;
        gap: 4px;
    }
    .wallet-currency-select {
        font-size: 11px;
    }
    .wallet-balance {
        font-size: 12px;
    }

    .btn-deposit-quick {
        padding: 5px 10px;
        font-size: 11px;
    }

    .btn-icon-header {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    /* Hero Banner Mobile */
    .hero-banner {
        padding: 18px 16px;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 16px;
    }
    .hero-title {
        font-size: 20px;
    }
    .hero-desc {
        font-size: 12px;
        margin-bottom: 14px;
    }
    .hero-btns {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    .hero-btns a {
        flex: 1;
        text-align: center;
        padding: 10px 8px;
        font-size: 12px;
    }

    /* Live Ticker Mobile */
    .live-ticker {
        padding: 5px 10px;
        font-size: 11px;
    }

    /* Main Container & Hero Spacing Mobile */
    .main-container {
        padding: 8px 10px 60px !important;
    }
    .hero-banner {
        margin-top: 4px !important;
        padding: 16px 14px !important;
    }
    /* Cashier & History Layout Mobile */
    .cashier-container {
        padding: 12px 10px;
    }
    .cashier-header-card {
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .cashier-balance-val {
        font-size: 22px;
    }
    .gateways-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .cashier-tabs {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }
    .cashier-tab-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* 4. Small Phones (< 480px) */
@media (max-width: 479px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .game-card-img-wrap {
        height: 105px !important;
    }

    .game-card-info {
        padding: 8px 10px !important;
    }

    .game-card-title {
        font-size: 12px !important;
    }

    .game-card-category {
        font-size: 10px !important;
    }

    .deposit-quick-text {
        display: none; /* Show only ➕ icon on tiny screens */
    }

    .btn-deposit-quick {
        padding: 5px 8px;
    }

    .brand-sub {
        display: none;
    }
}

/* ==========================================
   Luxury 4-Column Casino Footer & Live Stats
   ========================================== */
.luxury-casino-footer {
    background: linear-gradient(180deg, rgba(13, 19, 28, 0.96) 0%, #07090e 100%);
    border-top: 1px solid rgba(245, 166, 35, 0.22);
    margin-top: auto !important;
    padding: 0 0 25px 0;
    color: var(--text-main);
    position: relative;
    z-index: 10;
}

.footer-stats-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 14px;
    padding: 16px 24px;
    background: rgba(18, 25, 38, 0.9);
    border-bottom: 1px solid var(--border-color);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.footer-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.stat-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00e700;
    box-shadow: 0 0 10px #00e700;
    animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
    0% { opacity: 0.35; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.25); }
    100% { opacity: 0.35; transform: scale(0.85); }
}

.stat-label {
    color: var(--text-muted);
    font-size: 12px;
}

.stat-val {
    font-weight: 700;
    font-size: 13px;
}

.footer-main-grid {
    max-width: 1360px;
    margin: 0 auto;
    padding: 36px 24px 26px;
    display: grid;
    grid-template-columns: 1.5fr 1.1fr 1.1fr 1.2fr;
    gap: 32px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.footer-brand-desc {
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.6;
    margin: 0;
}

.footer-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.footer-col-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8.5px;
}

.footer-links li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links li a:hover {
    color: var(--primary-gold);
    transform: translateX(4px);
}

.badge-mini-hot {
    background: linear-gradient(135deg, #ff3b30, #ff9500);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-mini-p2p {
    background: linear-gradient(135deg, #00c853, #007aff);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.footer-gateways-wrap {
    max-width: 1360px;
    margin: 0 auto;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-gateways-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.footer-gateway-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gw-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.gw-badge:hover {
    border-color: var(--primary-gold);
    background: rgba(245, 166, 35, 0.08);
    transform: translateY(-1px);
}

.footer-bottom-bar {
    max-width: 1360px;
    margin: 0 auto;
    padding: 20px 24px 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-dim);
}

.footer-bottom-disclaimer {
    color: var(--text-dim);
    font-style: italic;
}

/* ==========================================
   Live Social Proof Big-Win Floating Toasts
   ========================================== */
.social-toast-container {
    position: fixed;
    bottom: 85px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.social-win-toast {
    pointer-events: auto;
    background: rgba(18, 25, 38, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 166, 35, 0.4);
    border-left: 4px solid var(--accent-emerald);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 231, 0, 0.2);
    padding: 10px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    animation: toastSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 360px;
}

.social-toast-fire {
    font-size: 16px;
}

.social-toast-text {
    line-height: 1.3;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Footer Breakpoints */
@media (max-width: 991px) {
    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 28px 18px;
    }
}

@media (max-width: 768px) {
    .luxury-casino-footer {
        padding-bottom: 95px; /* Leave clean breathing room above mobile bottom-nav */
    }
    .footer-stats-bar {
        padding: 12px 14px;
        gap: 10px;
    }
    .footer-stat-item {
        font-size: 11.5px;
    }
}

@media (max-width: 540px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .social-toast-container {
        left: 10px;
        right: 10px;
        bottom: 78px;
        max-width: none;
    }
    .social-win-toast {
        max-width: none;
        font-size: 11.5px;
        padding: 8px 12px;
    }
}

/* ==========================================
   VIP Progressive Jackpot Live Showcase
   ========================================== */
.vip-jackpot-showcase {
    background: linear-gradient(135deg, rgba(20, 27, 40, 0.92) 0%, rgba(12, 17, 26, 0.95) 100%);
    border: 1px solid rgba(245, 166, 35, 0.35);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 28px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}
.vip-jackpot-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.jackpot-glow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.jackpot-flame-icon {
    font-size: 42px;
    filter: drop-shadow(0 0 16px rgba(245, 166, 35, 0.8));
    animation: flamePulse 2s infinite ease-in-out;
}
@keyframes flamePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 24px rgba(245, 166, 35, 1)); }
}
.jackpot-label-top {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary-gold);
    text-transform: uppercase;
}
.jackpot-counter-main {
    font-size: clamp(28px, 4.5vw, 46px);
    font-weight: 900;
    font-family: var(--font-mono);
    color: #ffffff;
    text-shadow: 0 0 20px rgba(245, 166, 35, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}
.jackpot-pkr-sub {
    font-size: 12px;
    color: #00e700;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.jackpot-badge-pulse {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.2), rgba(255, 71, 87, 0.2));
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    animation: pulseGold 2s infinite;
}
@keyframes pulseGold {
    0%, 100% { box-shadow: 0 0 0 rgba(245, 166, 35, 0.3); }
    50% { box-shadow: 0 0 15px rgba(245, 166, 35, 0.6); }
}
.jackpot-tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.jackpot-tier-card {
    background: rgba(10, 14, 22, 0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: transform 0.2s, border-color 0.2s;
}
.jackpot-tier-card:hover {
    transform: translateY(-2px);
}
.tier-mini { border-color: rgba(0, 229, 255, 0.35); }
.tier-major { border-color: rgba(245, 166, 35, 0.4); }
.tier-mega { border-color: rgba(255, 71, 87, 0.45); }
.tier-name {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.tier-val {
    font-size: 20px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #ffffff;
    margin-bottom: 8px;
}
.tier-winner {
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   VIP Studios 4-Category Showcase
   ========================================== */
.vip-studios-showcase {
    margin: 32px 0;
}
.section-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-title-luxury {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-subtitle-luxury {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.btn-outline-gold {
    border: 1px solid rgba(245, 166, 35, 0.4);
    background: rgba(245, 166, 35, 0.08);
    color: var(--primary-gold);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-outline-gold:hover {
    background: var(--primary-gold);
    color: #000;
}
.studios-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.studio-highlight-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    min-height: 210px;
    display: flex;
}
.studio-highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    border-color: rgba(245, 166, 35, 0.5);
}
.studio-card-overlay {
    background: linear-gradient(180deg, rgba(8, 12, 20, 0.4) 0%, rgba(8, 12, 20, 0.95) 100%);
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.studio-badge-category {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: fit-content;
    margin-bottom: 8px;
    backdrop-filter: blur(4px);
}
.studio-card-overlay h3 {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}
.studio-card-overlay p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 14px;
}
.studio-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--primary-gold);
    font-weight: 700;
}
.btn-studio-play {
    background: var(--primary-gold);
    color: #000;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 800;
    font-size: 11px;
    transition: background 0.2s;
}
.btn-studio-play:hover {
    background: #ffffff;
}

/* ==========================================
   Live Bets Feed Real-time Table
   ========================================== */
.live-bets-feed-section {
    margin: 32px 0;
    background: rgba(14, 20, 30, 0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.live-bets-pills {
    display: flex;
    gap: 8px;
}
.live-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.live-pill.active {
    background: rgba(245, 166, 35, 0.15);
    color: var(--primary-gold);
    border-color: rgba(245, 166, 35, 0.3);
}
.live-bets-table-wrap {
    overflow-x: auto;
    margin-top: 14px;
}
.live-bets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.live-bets-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-dim);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}
.live-bets-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    white-space: nowrap;
}
.live-bets-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.td-player-user {
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.td-mult-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 11px;
}
.mult-win { background: rgba(0, 231, 0, 0.15); color: #00e700; border: 1px solid rgba(0, 231, 0, 0.3); }
.mult-loss { background: rgba(255, 71, 87, 0.15); color: #ff4757; border: 1px solid rgba(255, 71, 87, 0.3); }
.btn-verify-seed {
    border: none;
    background: transparent;
    color: var(--primary-gold);
    cursor: pointer;
    font-size: 11px;
    text-decoration: underline;
}

/* ==========================================
   Provably Fair & Cryptographic Trust Bar
   ========================================== */
.provably-fair-bar {
    background: linear-gradient(90deg, rgba(14, 24, 38, 0.95), rgba(11, 16, 26, 0.95));
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 24px 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.pf-col-info {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 800px;
}
.pf-icon {
    font-size: 34px;
    color: #00e5ff;
}
.pf-title {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}
.pf-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.45;
}
.btn-pf-verify {
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: #00e5ff;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}
.btn-pf-verify:hover {
    background: #00e5ff;
    color: #000;
}

/* Responsive adjustments for new sections */
@media (max-width: 991px) {
    .jackpot-tiers-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .studios-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .studios-showcase-grid {
        grid-template-columns: 1fr;
    }
    .provably-fair-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}




/* ============================================================
   ULTRA-RESPONSIVE MOBILE ENGINE (Zero Overflow, Visible Balance)
   ============================================================ */

/* Universal Anti-Horizontal-Overflow Guarantee */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    /* Prevent any browser default spacing above header */
    position: relative;
}

*, *::before, *::after {
    box-sizing: border-box !important;
}

/* All page main containers protect viewport without clipping header dropdowns */
.main-container, .cashier-container, .p2p-container, .ledger-container-wide, .disclaimer-banner, .live-ticker, .luxury-casino-footer, .footer-gateways-wrap, .footer-bottom-bar, .vip-jackpot-showcase, .hero-banner {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* All tables must be in scroll wrappers — universal protection */
.live-bets-table-wrap,
.ledger-table-wrap,
.table-scroll-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Game layout full-width protection */
.game-layout, .game-container, .auth-page-container {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}


/* Category Pills Horizontal Scroll Guarantee */
.category-pills, .category-pills-bar {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
    scrollbar-width: none !important;
    white-space: nowrap !important;
    padding-bottom: 4px !important;
}
.category-pills::-webkit-scrollbar, .category-pills-bar::-webkit-scrollbar {
    display: none !important;
}
.category-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* Mobile Screens Breakpoint (< 768px) */
@media (max-width: 767px) {
    /* 1. Eliminate Extra Space Above Navbar on Mobile */
    .disclaimer-banner {
        display: none !important;
    }

    /* 2. Premium Compact Mobile Navbar (54px height, crystal clear) */
    .app-header {
        height: 54px !important;
        min-height: 54px !important;
        padding: 0 12px !important;
        gap: 8px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        flex-wrap: nowrap !important;
        background: rgba(10, 15, 25, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .header-left {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
        min-width: 0 !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 19px !important;
        font-weight: 900 !important;
        padding: 0 !important;
        background: rgba(255, 255, 255, 0.07) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 9px !important;
        cursor: pointer !important;
        color: #fff !important;
        flex-shrink: 0 !important;
        transition: all 0.2s !important;
    }

    .brand-area {
        gap: 7px !important;
        display: flex !important;
        align-items: center !important;
    }

    .brand-logo-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
        box-shadow: 0 2px 8px rgba(245, 166, 35, 0.4) !important;
    }

    .brand-title {
        font-size: 13.5px !important;
        font-weight: 900 !important;
        letter-spacing: 0.3px !important;
        white-space: nowrap !important;
        color: #ffffff !important;
        background: linear-gradient(90deg, #ffffff, #f5a623) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }

    .brand-sub {
        display: none !important;
    }

    /* 3. Premium Header Actions & Responsive Auth Buttons */
    .header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    .auth-buttons-header {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .btn-header-login {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        height: 34px !important;
        padding: 0 11px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        cursor: pointer !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
        transition: all 0.2s !important;
    }

    .btn-header-register {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        height: 34px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        color: #000000 !important;
        background: linear-gradient(135deg, #00e700 0%, #00b300 100%) !important;
        border: none !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        cursor: pointer !important;
        box-shadow: 0 3px 12px rgba(0, 231, 0, 0.35) !important;
        transition: all 0.2s !important;
    }

    /* Keep Button Text Prominently Visible on Mobile */
    .auth-btn-label {
        display: inline !important;
    }

    .header-user-badge {
        padding: 3px 5px !important;
        gap: 3px !important;
        font-size: 10.5px !important;
    }

    .user-avatar-mini {
        font-size: 12px !important;
    }

    .user-name-mini {
        max-width: 55px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 10px !important;
    }

    .user-vip-pill {
        font-size: 8.5px !important;
        padding: 1px 3px !important;
    }

    /* Wallet Badge: High Contrast Pill */
    .wallet-badge {
        padding: 3px 6px !important;
        gap: 3px !important;
        background: rgba(18, 24, 34, 0.95) !important;
        border: 1px solid rgba(245, 166, 35, 0.4) !important;
        border-radius: 16px !important;
        display: flex !important;
        align-items: center !important;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.4) !important;
    }

    .wallet-currency-select {
        display: none !important;
    }

    .wallet-balance {
        font-size: 11px !important;
        font-weight: 800 !important;
        color: #00e700 !important;
        white-space: nowrap !important;
        font-family: var(--font-mono) !important;
    }

    /* Deposit Button: Green Action Pill */
    .btn-deposit-quick {
        padding: 3px 7px !important;
        font-size: 11px !important;
        border-radius: 16px !important;
        min-width: 26px !important;
        height: 26px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .deposit-quick-text {
        display: none !important;
    }

    #header-sound-btn, .desktop-3dot-btn {
        display: none !important;
    }

    /* Footer Responsive Grid */
    .luxury-casino-footer {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 24px 16px 85px !important;
    }

    .footer-gateways-wrap {
        padding: 16px 12px !important;
    }

    .footer-bottom-bar {
        padding: 14px 12px 90px !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    .jackpot-tiers-grid {
        grid-template-columns: 1fr !important;
    }

    .studios-showcase-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .hero-banner {
        padding: 16px 14px !important;
    }

    .hero-title {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .game-card-img-wrap {
        height: 115px !important;
    }

    .game-card-title {
        font-size: 12px !important;
    }
}

/* Extra Small Screens (< 380px) */
@media (max-width: 380px) {
    .brand-title {
        font-size: 11px !important;
    }
    .brand-logo-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 13px !important;
    }
    .wallet-balance {
        font-size: 10.5px !important;
    }
    .btn-header-login, .btn-header-register {
        padding: 4px 6px !important;
        font-size: 10px !important;
    }
    .app-header {
        padding: 5px 6px !important;
        gap: 4px !important;
    }
}
