@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* --- TEAL & GOLD PALETTE (CK44 Style) --- */
    --bg-dark: #002222;
    /* Deep Teal Background */
    --bg-surface: #012b2b;
    /* Slightly lighter teal for cards */
    --bg-glass: rgba(1, 43, 43, 0.85);
    --bg-glass-heavy: rgba(0, 34, 34, 0.95);
    --bg-sidebar: #001a1a;

    /* Brand Colors */
    --primary: #fdd835;
    /* Gold/Yellow */
    --primary-dim: #c6a700;
    --primary-glow: rgba(253, 216, 53, 0.3);
    --primary-gradient: linear-gradient(180deg, #fdd835 0%, #fbc02d 100%);

    --accent: #ff9800;
    /* Orange Accent */
    --accent-glow: rgba(255, 152, 0, 0.3);
    --accent-gradient: linear-gradient(180deg, #ff9800 0%, #f57c00 100%);

    --secondary: #004d40;
    /* Dark Green/Teal Secondary */
    --secondary-glow: rgba(0, 77, 64, 0.4);

    --success: #00e676;
    --danger: #ff1744;

    /* Text */
    --text-main: #ffffff;
    --text-muted: #b2dfdb;
    /* Light Teal Gray */
    --text-dim: #80cbc4;

    /* Styling */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-highlight: rgba(253, 216, 53, 0.3);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(253, 216, 53, 0.2);

    --glass-blur: blur(10px);

    /* Layout */
    --sidebar-width: 250px;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    /* Deep Teal Gradient */
    background-image: linear-gradient(135deg, #002222 0%, #001515 100%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Layout --- */
.app-layout {
    display: flex;
    min-height: 0vh;
    background: var(--bg-dark);
}

/* --- Background Orbs (Decorative) --- */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: orbFloat 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    bottom: -50px;
    right: -50px;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.5rem;
}

.text-muted {
    color: var(--text-muted);
}

.text-dim {
    color: var(--text-dim);
}

.brand-highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px var(--primary-glow);
}

/* --- Components --- */

/* Glass Card */
.card {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px -10px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    border-color: var(--border-highlight);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0.5;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #050507;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-accent {
    background: var(--accent-gradient);
    color: #050507;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-danger {
    background: rgba(255, 0, 85, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 0, 85, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 0, 85, 0.25);
    box-shadow: 0 0 20px var(--danger-glow);
    color: #fff;
    border-color: var(--danger);
}

/* Forms */
input,
select,
textarea {
    width: 100%;
    background: rgba(10, 10, 12, 0.6);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(10, 10, 12, 0.9);
    box-shadow: 0 0 0 2px rgba(0, 255, 163, 0.1);
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
}

.nav-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 700;
    letter-spacing: 1px;
    margin: 20px 0 10px 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 4px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.nav-item.active {
    background: var(--primary-glow);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    box-shadow: 0 0 15px rgba(253, 216, 53, 0.15);
    /* Subtle extra glow */
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Prevents overflow */
    position: relative;
}

/* Topbar */
.topbar {
    height: var(--header-height);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.balance-badge {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.05);
}

/* Content Area */
.content-area {
    padding: 40px;
    animation: fadeIn 0.5s ease-out;
}

/* Collapse content-area when all child view-sections are hidden */
.content-area:not(:has(.view-section:not(.hidden))) {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Action Bar */
.mobile-action-bar {
    display: none;
    /* Hidden on desktop */
}

@media (max-width: 900px) {
    .mobile-action-bar {
        display: flex;
        gap: 10px;
        padding: 10px 15px;
        background: var(--bg-glass-heavy);
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 55px;
        /* Below the header */
        z-index: 89;
        backdrop-filter: blur(10px);
    }

    .mobile-action-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px;
        border-radius: 8px;
        font-weight: 800;
        font-size: 0.9rem;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mobile-action-btn.deposit {
        background: var(--primary-gradient);
        color: #000;
        box-shadow: 0 2px 8px rgba(253, 216, 53, 0.3);
    }

    .mobile-action-btn.deposit:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(253, 216, 53, 0.4);
    }

    .mobile-action-btn.withdraw {
        background: var(--accent-gradient);
        color: #000;
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    }

    .mobile-action-btn.withdraw:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(255, 152, 0, 0.4);
    }

    .mobile-action-btn i {
        font-size: 1.1rem;
    }
}


/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.stat-value.gold {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.stat-value.green {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 255, 163, 0.3);
}

/* Game Cards */
.game-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-glow), 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: var(--primary);
}

.game-icon {
    font-size: 3rem;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.game-card-inner {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #fff;
    text-transform: uppercase;
}

.game-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Tables */
.table-container {
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    overflow-x: auto;
    /* Allow horizontal scroll */
    border: 1px solid var(--border-color);
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

tr:last-child td {
    border-bottom: none;
}

/* Mobile */
.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* Mobile specific styles start here */
.mobile-back-btn {
    display: none;
    /* Default hidden on desktop */
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        width: 80%;
        max-width: 300px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-btn {
        display: block;
        margin-right: 15px;
    }

    /* Tighter header for mobile */
    .topbar {
        padding: 0 8px;
        gap: 6px;
        height: 55px;
        /* Slightly shorter header */
    }

    .page-title {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
    }

    /* Fix Balance Badge on Mobile */
    .balance-badge {
        padding: 4px 8px;
        font-size: 0.7rem;
        white-space: nowrap;
        gap: 3px;
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .balance-badge i {
        font-size: 0.7rem;
    }

    .balance-badge span:first-child {
        display: none;
        /* Hide "Balance:" label on mobile */
    }

    /* Make Deposit/Withdraw buttons compact on mobile - icon only */
    .topbar button[onclick*="view-deposit"],
    .topbar button[onclick*="view-withdraw"] {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
        gap: 3px !important;
        border-radius: 20px !important;
        font-weight: 700 !important;
    }

    /* Hide button text on mobile, show icon only */
    .topbar .deposit-btn .btn-text,
    .topbar .withdraw-btn .btn-text {
        display: none;
    }

    /* Hide Deposit/Withdraw from topbar on mobile - they're in the action bar */
    .topbar .deposit-btn,
    .topbar .withdraw-btn {
        display: none !important;
    }

    /* Optimize profile button for mobile */
    .user-profile span {
        display: none;
        /* Hide username text on mobile */
    }

    .user-profile {
        padding: 5px !important;
        gap: 0 !important;
    }

    .user-profile i {
        display: none;
        /* Hide dropdown arrow */
    }

    /* Hide 'Overview' title on very small screens if needed to save space for balance */
    @media (max-width: 600px) {
        .page-title {
            display: none;
        }
    }

    .user-actions {
        gap: 6px;
        flex-shrink: 0;
        min-width: 0;
    }

    .content-area {
        padding: 15px;
    }

    /* Fix card height stretching on mobile */
    .card {
        height: auto !important;
    }

    /* Recharge Requests page mobile fixes */
    #view-admin-recharge .card.mb-4 {
        padding: 16px;
    }

    #view-admin-recharge h3 {
        font-size: 1.1rem;
    }

    /* Admin overview grid mobile */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Admin game settings grid mobile */
    #admin-games-container {
        grid-template-columns: 1fr !important;
    }

    /* Game Settings - Daily Bonus row: stack vertically on mobile */
    .daily-bonus-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px;
    }

    .daily-bonus-actions {
        flex-wrap: wrap;
        width: 100%;
    }

    .daily-bonus-actions .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    /* Game Settings card tighter on mobile */
    #view-admin-game-settings .card {
        padding: 16px;
    }

    #view-admin-game-settings h3 {
        font-size: 1.1rem;
    }

    /* Reports grid mobile */
    #view-admin-reports .card {
        padding: 12px;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 95;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Full-Screen Overlay for Mobile Deposit/Withdraw */
    #view-deposit,
    #view-withdraw {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #050507;
        /* Solid dark background */
        z-index: 2000;
        padding: 70px 20px 20px 20px;
        overflow-y: auto;
        display: block;
        /* Ensure it overrides flex/grid if needed */
    }

    #view-deposit.hidden,
    #view-withdraw.hidden {
        display: none !important;
    }

    /* Mobile Back Button - Icon Only */
    .mobile-back-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08);
        color: var(--text-main, #fff);
        border: 1px solid rgba(255, 255, 255, 0.15);
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
        font-size: 1rem;
        cursor: pointer;
        margin-bottom: 10px;
        transition: background 0.2s;
    }

    .mobile-back-btn:active {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Utility */
.hidden {
    display: none !important;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.text-center {
    text-align: center;
}

/* Login Specific */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    background: radial-gradient(circle at center, #1a1a20 0%, #050507 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(20, 20, 25, 0.8);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 10;
}


/* --- Layout --- */
.app-layout {
    display: block;
    min-height: 0vh;
    overflow-x: hidden;
}

/* Glass Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(5, 5, 5, 0.85);
    /* Darker glass */
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    height: 100dvh;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    width: auto;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    padding-bottom: 40px;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 28px;
    margin-bottom: 10px;
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.brand-highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px var(--primary-glow);
}

.sidebar-nav {
    flex: 1;
    padding: 10px 16px;
    overflow-y: auto;
}

/* Custom Scrollbar - Minimal */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.nav-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 800;
    margin: 20px 0 10px 12px;
    letter-spacing: 1.5px;
    opacity: 0.6;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    color: #aaa;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 4px;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    transform: translateX(2px);
}

.nav-item.active {
    background: rgba(0, 255, 163, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 255, 163, 0.15);
    box-shadow: 0 0 15px rgba(0, 255, 163, 0.05);
}

.nav-icon {
    margin-right: 14px;
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
    color: var(--primary);
}

.sidebar-footer {
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* Glass Topbar - Floating Style */
.topbar {
    height: var(--header-height);
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
    margin-bottom: 10px;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.balance-badge {
    background: rgba(255, 215, 0, 0.05);
    /* Gold tint */
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.balance-badge:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.15);
    transform: translateY(-1px);
}

/* Content Area */
.content-area {
    padding: 0 32px;
    width: 100%;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards & Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* New Grid Class for Bottom Dashboard */
.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 900px) {
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    background: var(--bg-card-hover);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -1px;
}

.stat-value.gold {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.stat-value.green {
    color: var(--primary);
    text-shadow: 0 0 25px var(--primary-glow);
}

/* Tables */
.table-container {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 20px 28px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

td {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    /* Prevent wrapping */
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Buttons - Neon Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    gap: 10px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #000;
    /* Contrast on bright green */
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-accent {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-danger {
    background: rgba(255, 0, 85, 0.1);
    color: var(--danger);
    border: 1px solid rgba(255, 0, 85, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 0, 85, 0.2);
    box-shadow: 0 0 20px var(--danger-glow);
    color: #fff;
    border-color: var(--danger);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 8px 16px;
}

.btn-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Status Badges */
.status {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status.approved,
.status.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.status.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Forms */
input,
select,
textarea {
    width: 100%;
    padding: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    margin-bottom: 16px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: rgba(0, 0, 0, 0.4);
}

option {
    background-color: #18181b;
    color: var(--text-main);
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-right {
    text-align: right;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.gap-4 {
    gap: 1rem;
}

.flex {
    display: flex;
}

/* Login */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    background: radial-gradient(circle at top, #18181b, #09090b);
}

.login-card {
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 48px;
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Admin Dashboard Cards */
.admin-card-green {
    background: linear-gradient(145deg, rgba(5, 5, 5, 0.9), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.05);
}

.admin-card-green:hover {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

.admin-card-purple {
    background: linear-gradient(145deg, rgba(5, 5, 5, 0.9), rgba(147, 51, 234, 0.05));
    border: 1px solid rgba(147, 51, 234, 0.2);
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.05);
}

.admin-card-purple:hover {
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.15);
    border-color: rgba(147, 51, 234, 0.4);
}

.admin-card-gold {
    background: linear-gradient(145deg, rgba(5, 5, 5, 0.9), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.05);
}

.admin-card-gold:hover {
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
}


/* Wallet Section Cards */
.wallet-card-green {
    background: linear-gradient(145deg, rgba(5, 5, 5, 0.95), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 30px;
}

.wallet-card-green:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.1);
}

.wallet-card-green input:focus,
.wallet-card-green select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.wallet-card-gold {
    background: linear-gradient(145deg, rgba(5, 5, 5, 0.95), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 30px;
}

.wallet-card-gold:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.1);
}

.wallet-card-gold input:focus,
.wallet-card-gold select:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.admin-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Mobile Responsiveness --- */
@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
    }

    /* Sidebar Mobile */
    .sidebar {
        transform: translateX(-100%);
        width: 80%;
        max-width: 300px;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /* Overlay for mobile sidebar */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        z-index: 95;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Main Content Mobile */
    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .topbar {
        padding: 0 12px;
    }

    /* Fix card height stretching on mobile */
    .card {
        height: auto !important;
    }

    /* Balance badge mobile fix */
    .balance-badge {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    /* Typography Mobile */
    html {
        font-size: 14px;
    }

    .page-title {
        font-size: 1.2rem;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    /* Modals Mobile */
    .login-card,
    #edit-user-modal .card {
        padding: 24px;
        max-width: 90%;
        width: 90%;
        margin: 20px auto;
    }
}

/* Mobile Phones (< 600px) - Single Column */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.login-card h1 {
    font-size: 2rem !important;
}

/* Tables Mobile */
/* Responsive Tables (Card View) - RESTRICTED TO MOBILE */
@media (max-width: 768px) {
    .table-container {
        background: transparent !important;
        box-shadow: none !important;
    }

    .table-container table,
    .table-container thead,
    .table-container tbody,
    .table-container th,
    .table-container td,
    .table-container tr {
        display: block;
    }

    /* Hide headers but keep accessible */
    .table-container thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .table-container tr {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        margin-bottom: 15px;
        padding: 15px;
        box-shadow: var(--shadow-card);
    }

    .table-container td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: right;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        white-space: normal !important;
        /* Allow wrapping in card view */
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 40px;
    }

    .table-container td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 0;
        white-space: nowrap;
        text-align: left;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        font-size: 0.8rem;
    }

    /* Fix for cells that are just buttons or complex content */
    .table-container td>div {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    /* Adjust Action Buttons in Card View */
    .table-container td[data-label="Action"] {
        justify-content: flex-end;
    }

    /* Welcome Banner & Admin Card Refinement */
    .welcome-banner {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .welcome-balance {
        width: 100%;
        text-align: center;
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .welcome-text h1 {
        font-size: 1.8rem;
    }

    .admin-access-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .admin-access-card button {
        width: 100%;
    }

    /* Empty State Fix */
    .table-container td[colspan="5"],
    .table-container td[colspan="4"] {
        text-align: center;
        padding-left: 0 !important;
        justify-content: center;
        color: var(--text-muted);
    }

    .table-container td[colspan="5"]::before,
    .table-container td[colspan="4"]::before {
        content: none;
    }

    /* Header adjustments */
    .user-actions {
        gap: 10px;
    }

    #header-username {
        display: none;
        /* Hide username on small screens to save space */
    }

    /* Games Grid */
    #admin-games-container {
        grid-template-columns: 1fr !important;
    }

    /* Mobile User Profile: VIP Badge below Avatar */
    .user-profile {
        padding: 4px 8px !important;
        gap: 2px !important;
        flex-direction: column !important;
        justify-content: center !important;
        min-width: 50px;
    }

    .user-profile img {
        width: 28px !important;
        height: 28px !important;
        margin: 0 !important;
        border-width: 1px !important;
    }

    #header-vip-badge {
        display: block !important;
        margin: 0 !important;
        font-size: 0.6rem !important;
        padding: 1px 5px !important;
        line-height: 1;
        margin-top: 2px !important;
    }

    #header-username {
        display: none !important;
    }

    .user-profile .fa-chevron-down {
        display: none !important;
    }
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 16px;
    padding: 4px;
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
}

/* Animation */
@keyframes rgb-blink {
    0% {
        color: #ef4444;
        text-shadow: 0 0 10px #ef4444;
    }

    33% {
        color: #10b981;
        text-shadow: 0 0 10px #10b981;
    }

    66% {
        color: #3b82f6;
        text-shadow: 0 0 10px #3b82f6;
    }

    100% {
        color: #ef4444;
        text-shadow: 0 0 10px #ef4444;
    }
}

.rgb-text {
    animation: rgb-blink 2s infinite alternate;
}

/* --- Decoration: Floating Orbs --- */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    /* Behind content but above main bg */
    pointer-events: none;
    opacity: 0.4;
    animation: floatOrb 20s infinite ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: 10%;
    right: 10%;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, 80px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Ensure content stays above orbs */
.app-layout {
    position: relative;
    z-index: 2;
}

/* --- Ticker --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
    white-space: nowrap;
    position: relative;
    z-index: 95;
    height: 35px;
    display: flex;
    align-items: center;
}

.ticker {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 40s linear infinite;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    color: var(--text-main);
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Enhanced Glassmorphism for Cards */
/* Game Cards - Poster Style */
.game-card {
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Align content to bottom */
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-position: center;
}

.game-card-inner {
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.6) 50%, transparent);
    width: 100%;
    position: relative;
    z-index: 2;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(0, 255, 163, 0.15);
    /* Primary glow */
    border-color: rgba(255, 255, 255, 0.3);
}

.game-card:hover .game-card-inner {
    transform: translateY(0);
}

/* Specific Game Gradients (Fallback if no images) */
.game-card-scratch {
    background: radial-gradient(circle at top right, #34d399, #059669), #064e3b;
}

.game-card-dice {
    background: radial-gradient(circle at top right, #f59e0b, #d97706), #78350f;
}

.game-card-underover {
    background: radial-gradient(circle at top right, #8b5cf6, #7c3aed), #4c1d95;
    border-color: rgba(139, 92, 246, 0.3);
}

.game-card-crash {
    background: radial-gradient(circle at top right, #f43f5e, #e11d48), #881337;
    border-color: rgba(244, 63, 94, 0.3);
}

.game-card-cards {
    background: radial-gradient(circle at top right, #3b82f6, #2563eb), #1e3a8a;
}

.game-card-slots {
    background: radial-gradient(circle at top right, #06b6d4, #0891b2), #155e75;
}

.game-card-ace {
    background: radial-gradient(circle at top right, #eab308, #ca8a04), #713f12;
}

/* Game Title */
.game-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.game-icon {
    font-size: 5rem;
    position: absolute;
    top: 40%;
    /* Moved up from 50% to avoid text overlap */
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
    /* Slightly more opaque */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.game-card:hover .game-icon {
    opacity: 1;
    transform: translate(-50%, -60%) scale(1.25) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.7));
}

.game-desc {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

/* Forms */
input,
select,
textarea {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    margin-bottom: 16px;
    transition: all 0.2s;
    font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 163, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

option {
    background-color: #050505;
    color: #fff;
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-right {
    text-align: right;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.gap-4 {
    gap: 1rem;
}

.flex {
    display: flex;
}

/* Login Body Special */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    background: radial-gradient(circle at center, #1a1a2e, #000);
}

.login-card {
    background: rgba(20, 20, 23, 0.7);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    text-align: center;
}

/* Animations */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 15px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 30px var(--primary-glow);
    }
}

.pulse {
    animation: pulse-glow 2s infinite;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 85%;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .topbar {
        padding: 0 16px;
    }

    .game-card {
        height: 240px;
        border-radius: 24px !important;
        border: 1.5px solid rgba(255, 255, 255, 0.15);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.05) inset,
            0 4px 16px rgba(16, 185, 129, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .game-card:active {
        transform: scale(0.98);
        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(16, 185, 129, 0.2);
    }

    /* Mobile game card text adjustments */
    .game-title {
        font-size: 1.1rem !important;
        line-height: 1.1;
        word-wrap: break-word;
        margin-bottom: 5px;
        font-weight: 800;
        letter-spacing: 0.02em;
        text-shadow:
            0 2px 8px rgba(0, 0, 0, 0.6),
            0 0 20px rgba(255, 255, 255, 0.1);
    }

    .game-desc {
        font-size: 0.7rem !important;
        margin-bottom: 10px;
        line-height: 1.3;
        opacity: 0.9;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    }

    .game-icon {
        top: 32%;
        font-size: 2.8rem !important;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
        animation: float 3s ease-in-out infinite;
    }

    @keyframes float {

        0%,
        100% {
            transform: translate(-50%, -50%) translateY(0px);
        }

        50% {
            transform: translate(-50%, -50%) translateY(-5px);
        }
    }

    .game-card-inner {
        padding: 16px !important;
        background: linear-gradient(to top,
                rgba(0, 0, 0, 0.92),
                rgba(0, 0, 0, 0.6) 60%,
                transparent);
        backdrop-filter: blur(8px);
    }

    .game-card .btn {
        padding: 9px 18px !important;
        font-size: 0.65rem !important;
        font-weight: 800;
        letter-spacing: 0.02em;
        position: absolute;
        bottom: 50%;
        left: 50%;
        transform: translate(-50%, 50%);
        width: auto;
        min-width: 110px;
        border-radius: 50px !important;
        background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
        border: none;
        box-shadow:
            0 4px 12px rgba(245, 158, 11, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        text-transform: uppercase;
    }

    .game-card .btn:active {
        transform: translate(-50%, 50%) scale(0.95);
        box-shadow:
            0 2px 8px rgba(245, 158, 11, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    }


    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Hot Games: 2 games per row on mobile with proper spacing */
    .hot-games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-bottom: 40px !important;
    }

    /* All Games: 2 games per row on mobile (same as Hot Games) */
    .all-games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Better section header spacing on mobile */
    h3[style*="border-left"] {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
        padding-left: 12px !important;
    }

    /* Optimize game cards for mobile */
    .game-card {
        min-height: 180px;
        border-radius: 12px;
    }

    .game-title {
        font-size: 0.9rem !important;
    }

    .game-desc {
        font-size: 0.75rem !important;
        line-height: 1.3;
    }

    .menu-btn {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
    }

    /* Adjust icon for smaller card height */
    .game-icon {
        top: 35%;
        /* Slightly higher on mobile due to aspect ratio */
        font-size: 4rem;
        /* Slightly smaller to fit */
    }

}

@media (min-width: 769px) {
    .menu-btn {
        display: none;
    }
}

/* Profile Redesign CSS */

/* Profile Header */
.profile-header-card {
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.9), rgba(9, 9, 11, 0.9));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.profile-avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    margin-bottom: 10px;
}

.btn-icon-small {
    position: absolute;
    bottom: 10px;
    right: 0;
    background: var(--primary);
    color: #000;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-name {
    margin: 5px 0;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.badge-verified {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid #10b981;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Stats Row */
.profile-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* VIP Card Modern */
.vip-card-modern {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    /* Deep Indigo/Blue for contrast or use Gold */
    /* Let's stick to the theme: Dark with Gold accents */
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.6));
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.vip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.vip-header h4 {
    margin: 0;
    color: var(--accent);
}

.vip-badge-pill {
    background: var(--accent);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.progress-container {
    margin: 15px 0;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-bar>div {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.vip-benefits {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 8px;
}

/* Referral Card Modern */
.referral-card-modern {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(0, 0, 0, 0.6));
    border: 1px solid #10b981;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.referral-header {
    margin-bottom: 15px;
}

.referral-header h4 {
    margin: 0;
    color: #10b981;
}

.text-xs {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.referral-input-group {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.referral-input-group input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: monospace;
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
}

.btn-copy,
.btn-share {
    background: #10b981;
    border: none;
    color: #fff;
    width: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-share {
    background: #3b82f6;
}

.btn-copy:hover,
.btn-share:hover {
    transform: scale(1.05);
}

.referral-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Settings Section */
.settings-section {
    margin-top: 30px;
}

.section-title {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}

.settings-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
}

.modern-input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    transition: border-color 0.3s;
}

.modern-input:focus {
    border-color: var(--primary);
    outline: none;
}

.full-width {
    width: 100%;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
}


/* --- Modern Table & Recharge Styles --- */

.modern-table {
    width: 100%;
    border-collapse: collapse;
    /* Cleaner lines */
    margin-top: 10px;
    font-family: 'Outfit', sans-serif;
}

.modern-table thead th {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 20px;
    border-bottom: 2px solid var(--border-color);
    text-align: left;
}

.modern-table tbody tr {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.modern-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.modern-table td {
    padding: 20px;
    font-size: 0.95rem;
    border: none;
    color: var(--text-main);
    vertical-align: middle;
}

/* Remove separate border radius for now to match the clean list look */
.modern-table td:first-child {
    border-radius: 0;
}

.modern-table td:last-child {
    border-radius: 0;
}

/* Request Cards (Mobile/Desktop Grid) */
.recharge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.request-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.request-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--primary-glow);
    border-color: var(--primary);
}

.request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.request-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.request-user {
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.request-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    color: var(--text-main);
    font-weight: 500;
    text-align: right;
}

.request-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-approve {
    background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
    color: #000;
    box-shadow: 0 5px 15px rgba(0, 230, 118, 0.3);
}

.btn-reject {
    background: linear-gradient(135deg, #ff1744 0%, #d50000 100%);
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 23, 68, 0.3);
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-approved {
    background: rgba(0, 230, 118, 0.1);
    color: #00e676;
    border: 1px solid #00e676;
}

.status-rejected {
    background: rgba(255, 23, 68, 0.1);
    color: #ff1744;
    border: 1px solid #ff1744;
}

.status-pending {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border: 1px solid #ff9800;
}

/* Force normal table layout on desktop for modern-table */
@media (min-width: 769px) {
    .modern-table thead {
        display: table-header-group;
    }

    .modern-table tr {
        display: table-row;
        background: transparent !important;
    }

    .modern-table th,
    .modern-table td {
        display: table-cell;
        width: auto;
        text-align: left;
    }

    .modern-table td::before {
        content: none !important;
    }

    .modern-table tbody tr {
        background: rgba(255, 255, 255, 0.03) !important;
    }

    .modern-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.06) !important;
    }
}

/* --- VIP Tiers Modern Grid --- */
.vip-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.vip-tier-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
}

.vip-tier-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.vip-tier-card .tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.vip-tier-card .tier-cost {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.vip-tier-card .tier-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Badge Variations */
.tier-badge.tier-0 {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.tier-badge.tier-1 {
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
    color: #fff;
}

.tier-badge.tier-2 {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    color: #333;
}

.tier-badge.tier-3 {
    background: linear-gradient(135deg, #ffd700 0%, #fbc02d 100%);
    color: #1c1c1c;
}

.tier-badge.tier-4 {
    background: linear-gradient(135deg, #b2ebf2 0%, #4dd0e1 100%);
    color: #004d40;
}

.tier-badge.tier-5 {
    background: linear-gradient(135deg, #ff1744 0%, #d50000 100%);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.4);
}

.vip-tier-card .tier-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vip-tier-card .tier-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.vip-tier-card .tier-benefit i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.text-accent {
    color: var(--accent);
}

.text-white {
    color: #fff;
}

/* Special Glow for King Tier */
.tier-king-glow {
    border: 1px solid rgba(255, 23, 68, 0.3);
    background: linear-gradient(180deg, rgba(255, 23, 68, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .vip-tier-card {
        padding: 15px;
    }
}

/* --- Mobile Transaction Cards --- */
.mobile-transaction-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
}

.transaction-card:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.03);
}

.t-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.t-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.t-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.t-type {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.t-amount {
    font-weight: 800;
    font-size: 1rem;
}

.t-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.t-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.t-status {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Responsiveness for Transaction View */
@media (max-width: 768px) {

    /* Hide Table on Mobile */
    #view-transactions .table-container {
        display: none !important;
    }

    /* Show Mobile List */
    #transactions-mobile-view {
        display: flex !important;
    }
}

@media (min-width: 769px) {

    /* Ensure Mobile List is hidden on Desktop */
    #transactions-mobile-view {
        display: none !important;
    }
}

/* --- Withdraw UI Modernization --- */
.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.method-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.method-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.method-card.active {
    background: rgba(255, 152, 0, 0.15);
    /* Accent Glow */
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.2);
}

.method-card img {
    height: 35px;
    object-fit: contain;
}

.method-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.method-card.active span {
    color: #fff;
}

/* Quick Amount Pills */
.quick-amounts {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.amount-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    /* Distribute space */
    text-align: center;
    min-width: 60px;
}

.amount-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.amount-pill:active {
    transform: scale(0.95);
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}

/* --- Mobile Recharge History (Admin) --- */
.mobile-only-list {
    display: none;
}

.recharge-card-mobile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
}

.recharge-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.recharge-user {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.recharge-amount {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
}

.recharge-card-body {
    display: grid;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.recharge-row {
    display: flex;
    justify-content: space-between;
}

.recharge-label {
    color: var(--text-dim);
}

.recharge-val {
    color: #fff;
    font-weight: 500;
    text-align: right;
}

.recharge-method {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
}

.recharge-trx {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.recharge-status {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge-mobile {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-approved {
    color: #FFD700;
}

.status-rejected {
    color: #FF4444;
}

.status-pending {
    color: #FFA500;
}

@media (max-width: 768px) {
    #view-admin-recharge .table-container {
        display: none !important;
    }

    #admin-recharge-mobile-view {
        display: block !important;
    }
}

/* --- Mobile User Management (Admin) --- */
.user-card-mobile {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0;
    /* Padding handled by children */
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.user-card-top {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-card-username {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.user-role-badge-mobile {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin-mobile {
    background: rgba(0, 230, 118, 0.1);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.role-user-mobile {
    background: rgba(255, 167, 38, 0.1);
    color: #ffa726;
    border: 1px solid rgba(255, 167, 38, 0.2);
}

.vip-badge-mobile {
    background: linear-gradient(135deg, #78909c 0%, #455a64 100%);
    /* Default/VIP 0 */
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
}

.vip-level-1 {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

/* Bronze */
.vip-level-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #757575 100%);
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

/* Silver */
.vip-level-3 {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Gold */
.vip-level-4 {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.3);
}

/* Platinum */
.vip-level-5 {
    background: linear-gradient(135deg, #E040FB 0%, #D500F9 100%);
    box-shadow: 0 2px 8px rgba(224, 64, 251, 0.3);
}

/* Diamond */

.user-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    /* Divider gap */
    background: rgba(255, 255, 255, 0.05);
    /* Divider color */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-box {
    background: var(--bg-dark);
    /* Card bg */
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.stat-value.green {
    color: var(--primary);
}

.stat-value.gold {
    color: var(--accent);
}

.user-card-actions {
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(0, 0, 0, 0.1);
}

.btn-icon-mobile {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit-mobile {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.btn-edit-mobile:active {
    background: var(--accent);
    color: #000;
}

.btn-ban-mobile {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
}

.btn-ban-mobile:active {
    background: #ff4444;
    color: #fff;
}

@media (max-width: 768px) {
    #view-admin-users .table-container {
        display: none !important;
    }

    #admin-users-mobile-view {
        display: block !important;
    }
}

/* --- Mobile Active Players (Admin) --- */
.player-card-mobile {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-out;
}

.player-card-top {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.player-card-username {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.online-indicator-mobile {
    width: 10px;
    height: 10px;
    background: #00e676;
    border-radius: 50%;
    box-shadow: 0 0 8px #00e676;
    display: inline-block;
}

.player-card-body {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-game-badge {
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-time-mobile {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    #view-admin-live .table-container {
        display: none !important;
    }

    #active-players-mobile-view {
        display: block !important;
    }
}

/* --- Custom Payment Dropdown --- */
.custom-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
    z-index: 100;
    /* Ensure it floats above other elements */
}

.dropdown-selected {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-selected:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.selected-method-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.method-icon-sm {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
}

.dropdown-arrow {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1a1a2e;
    /* Solid dark background to cover content below */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 8px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 101;
}

.custom-dropdown.open .dropdown-options {
    max-height: 300px;
    opacity: 1;
    padding: 8px 0;
}

.dropdown-option {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: 500;
}

.dropdown-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.dropdown-option:active {
    background: rgba(255, 255, 255, 0.1);
}

/* --- Mobile Keyboard Scrolling Fix --- */
@media (max-width: 768px) {

    /* Ensure body and html can scroll */
    html,
    body {
        height: 100%;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Make main content scrollable */
    .main-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: 100vh;
        height: 100dvh;
    }

    /* Ensure content area is scrollable */
    .content-area {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 100%;
        padding-bottom: 100px;
        /* Extra space for keyboard */
    }

    /* Prevent viewport resize when keyboard opens */
    .view-section {
        min-height: 100vh;
        min-height: 100dvh;
        height: 100dvh;
    }

    /* Ensure cards don't restrict scrolling */
    .card {
        max-height: none;
        overflow: visible;
    }
}

/* --- Reports & Analytics View (New) --- */
#view-admin-reports {
    margin-left: var(--sidebar-width);
    padding: 24px 30px 80px 30px;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    z-index: 999;
    position: relative;
}

.rpt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.rpt-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rpt-header h3 i {
    color: var(--primary);
}

.rpt-export-btn {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.rpt-export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.5);
}

/* Summary Cards */
.rpt-summary-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.rpt-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(15px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rpt-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.rpt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.rpt-card:hover::after {
    opacity: 1;
}

.rpt-card-gold {
    border-color: rgba(255, 215, 0, 0.15);
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.04) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.rpt-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.rpt-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rpt-card-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.rpt-card-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rpt-card-gold .rpt-card-value {
    background: linear-gradient(135deg, #ffd700, #ffab00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tab Navigation */
.rpt-tabs {
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: 14px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
}

.rpt-tabs::-webkit-scrollbar {
    display: none;
}

.rpt-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 11px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rpt-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.rpt-tab.active {
    background: linear-gradient(135deg, var(--primary), #00c853);
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.35);
    font-weight: 700;
}

/* Chart Boxes */
.rpt-chart-box {
    background: rgba(15, 15, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.rpt-chart-box-small {
    max-width: 500px;
}

.rpt-chart-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rpt-chart-canvas-wrap {
    position: relative;
    height: 350px;
}

/* Table Boxes */
.rpt-table-box {
    background: rgba(15, 15, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 24px;
    margin-top: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.rpt-table-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .rpt-summary-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    #view-admin-reports {
        padding: 16px;
        padding-top: 60px;
        margin-left: 0;
    }

    .rpt-header {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }

    .rpt-summary-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .rpt-card {
        padding: 14px;
    }

    .rpt-card-value {
        font-size: 1.2rem;
    }

    .rpt-tabs {
        gap: 4px;
        padding: 4px;
    }

    .rpt-tab {
        padding: 9px 14px;
        font-size: 0.8rem;
    }

    .rpt-chart-canvas-wrap {
        height: 280px;
    }

    .rpt-chart-box-small {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .rpt-summary-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Fraud Detection System ===== */
#view-admin-fraud {
    margin-left: var(--sidebar-width);
    padding: 24px 30px 80px 30px;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    z-index: 999;
    position: relative;
}

.fraud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: rgba(255, 65, 87, 0.06);
    padding: 20px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 65, 87, 0.15);
    backdrop-filter: blur(12px);
}

.fraud-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fraud-refresh-btn {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.fraud-refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

/* Risk Summary Cards */
.fraud-risk-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.fraud-risk-card {
    padding: 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.fraud-risk-card:hover {
    transform: translateY(-3px);
}

.fraud-risk-card>i {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.fraud-risk-card.risk-critical {
    background: rgba(255, 65, 87, 0.1);
}

.fraud-risk-card.risk-critical>i {
    color: #ff4757;
    background: rgba(255, 65, 87, 0.15);
}

.fraud-risk-card.risk-high {
    background: rgba(255, 165, 2, 0.1);
}

.fraud-risk-card.risk-high>i {
    color: #ffa502;
    background: rgba(255, 165, 2, 0.15);
}

.fraud-risk-card.risk-medium {
    background: rgba(123, 237, 159, 0.1);
}

.fraud-risk-card.risk-medium>i {
    color: #7bed9f;
    background: rgba(123, 237, 159, 0.15);
}

.fraud-risk-card.risk-warning {
    background: rgba(236, 204, 104, 0.1);
}

.fraud-risk-card.risk-warning>i {
    color: #eccc68;
    background: rgba(236, 204, 104, 0.15);
}

.fraud-risk-info {
    display: flex;
    flex-direction: column;
}

.fraud-risk-count {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.fraud-risk-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Fraud Module Cards */
.fraud-module {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.fraud-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

.fraud-module-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Fraud Badges */
.fraud-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-critical {
    background: rgba(255, 65, 87, 0.2);
    color: #ff4757;
}

.badge-high {
    background: rgba(255, 165, 2, 0.2);
    color: #ffa502;
}

.badge-medium {
    background: rgba(123, 237, 159, 0.2);
    color: #7bed9f;
}

.badge-warning {
    background: rgba(236, 204, 104, 0.2);
    color: #eccc68;
}

/* Fraud Tables */
.fraud-table-wrap {
    padding: 16px 20px;
    overflow-x: auto;
}

.fraud-table {
    width: 100%;
    border-collapse: collapse;
}

.fraud-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.fraud-table tbody td {
    padding: 12px;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.fraud-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.fraud-table tbody tr:last-child td {
    border-bottom: none;
}

/* Empty State */
.fraud-empty {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: none;
}

.fraud-empty i {
    color: var(--success);
    margin-right: 6px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    #view-admin-fraud {
        padding: 16px;
        padding-top: 60px;
        margin-left: 0;
    }

    .fraud-risk-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .fraud-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .fraud-header h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .fraud-risk-summary {
        grid-template-columns: 1fr;
    }
}

/* --- Messaging System --- */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.message-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.message-card.unread {
    border-left: 3px solid var(--primary);
    background: rgba(253, 216, 53, 0.05);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.message-sender {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.message-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    display: inline-block;
}

.message-preview {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.message-full-content {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    line-height: 1.5;
}

.message-card.expanded {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- Broadcast Overlay Responsive --- */
#view-admin-broadcast {
    left: var(--sidebar-width) !important;
}

@media (max-width: 900px) {
    #view-admin-broadcast {
        left: 0 !important;
        padding: 15px 12px 80px !important;
    }

    /* Mobile Game Card UI */
    .game-card-inner .btn {
        display: none !important;
    }
    
    .game-card {
        flex-direction: row !important;
        align-items: center !important;
        min-height: auto;
        padding: 10px !important;
    }
    
    .game-icon {
        flex: 0 0 70px;
        height: 70px;
        padding: 0 !important; 
        font-size: 2.5rem;
        background: transparent !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .game-icon img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    
    .game-card-inner, .game-info {
        padding: 0 0 0 15px !important;
        flex: 1;
        background: transparent !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
    }
    
    .game-title, .game-info h2 {
        font-size: 1.15rem !important;
        margin-bottom: 4px !important;
        line-height: 1.2;
    }
    
    .game-desc, .game-info p {
        font-size: 0.85rem !important;
        margin-bottom: 0 !important;
    }
}