:root {
    /* Brand Colors */
    --primary: #FCD116;
    --primary-dark: #e5be00;
    --secondary: #003893;
    --secondary-dark: #002a70;
    --accent: #CE1126;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    
    /* Bingo Specific */
    --bingo-bg: #1a1a2e;
    --bingo-card-bg: #fff;
    --bingo-ball-bg: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    
    /* UI Variables */
    --body-bg: #f0f2f5;
    --text-main: #333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --card-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    --sidebar-width: 260px;
    --header-height: 70px;
    --radius: 12px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--body-bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Header */
.main-header {
    background: var(--secondary);
    color: white;
    padding: 0 2rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-item {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

.nav-item:hover, .nav-item.active {
    background: rgba(255,255,255,0.1);
    color: var(--primary);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 1rem;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--primary); color: var(--secondary-dark); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(252, 209, 22, 0.4); }

.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 56, 147, 0.4); }

.btn-danger { background: var(--accent); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-outline { border: 2px solid currentColor; background: transparent; }
.btn-block { width: 100%; display: flex; }

.card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.02);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-dark); }
.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 56, 147, 0.1);
}

.input-group {
    display: flex;
    align-items: center;
}
.input-prefix {
    background: #eee;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    color: #555;
}
.input-group .form-control {
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Grid & Utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--secondary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-muted { color: var(--text-muted) !important; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.small { font-size: 0.85rem; }

/* Bingo Game Specifics */
.bingo-board {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 5px;
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius);
}

/* Dashboard Stats */
.card-stats-primary {
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
}

.card-stats-secondary {
    border-left: 4px solid var(--secondary);
    padding: 1.5rem;
}

.card-stats-success {
    border-left: 4px solid var(--success);
    padding: 1.5rem;
}

.card-stats-accent {
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
}

.stats-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-number {
    font-size: 1.8rem;
    font-weight: 700;
}

.stats-number-sm {
    font-size: 1.2rem;
    font-weight: 700;
}

.stats-icon {
    font-size: 2rem;
    opacity: 0.5;
}

.stats-icon.primary {
    color: var(--primary);
}

.stats-icon.secondary {
    color: var(--secondary);
}

.stats-icon.success {
    color: var(--success);
}

.stats-icon.accent {
    color: var(--accent);
}

.dashboard-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0;
    color: var(--text-main);
}

/* Mini Bingo Cards */
.my-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.bingo-card-mini {
    background: white;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.bingo-header-mini {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--secondary);
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 5px 0;
}

.bingo-grid-mini {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    background: #ccc;
    padding: 2px;
}

.bingo-cell-mini {
    background: white;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.bingo-cell-mini.free {
    background: var(--primary);
    color: var(--secondary);
}

.card-footer-mini {
    background: #f8f9fa;
    padding: 8px;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid #ddd;
}

/* Wallet & Forms */
.payment-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-method {
    flex: 1;
    border: 2px solid var(--border-color);
    padding: 15px;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
}

.payment-method:hover {
    border-color: var(--secondary);
    background: rgba(0, 56, 147, 0.05);
}

.payment-method input {
    margin-right: 8px;
}

.game-info-box {
    background: #eef2f7;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    border-left: 5px solid var(--secondary);
}

.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-info {
    background: #e1f5fe;
    color: #0277bd;
    border: 1px solid #b3e5fc;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--secondary);
}

/* Landing Page */
.hero-section {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(rgba(0,56,147,0.9), rgba(0,56,147,0.8)), url('https://images.unsplash.com/photo-1518133910546-b6c2fb7d79e3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    color: white;
    margin-bottom: 3rem;
}

.step-circle {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-circle.final {
    background: var(--primary);
    color: var(--secondary);
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--secondary-dark);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}
.admin-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    background: #f4f6f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.admin-header {
    background: white;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 99;
}
.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-menu {
    padding: 1rem 0;
    flex: 1;
}
.menu-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.3s;
    gap: 1rem;
}
.menu-item:hover, .menu-item.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-right: 4px solid var(--primary);
}
.menu-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    padding: 1rem 1.5rem 0.5rem;
    font-weight: 600;
}

@media (max-width: 992px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-content { margin-left: 0; }
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/* Media Queries */
@media (max-width: 768px) {
    .main-header {
        padding: 0 1rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--secondary);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        max-height: 500px;
    }

    .nav-links a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        text-align: center;
    }

    .nav-links .btn {
        margin-top: 1rem;
        width: 100%;
    }
}

/* Authentication Pages */
.auth-container {
    max-width: 400px;
    margin: 4rem auto;
    width: 100%;
    padding: 0 1rem;
}

.auth-container-lg {
    max-width: 500px;
    margin: 2rem auto;
}

/* 
   ================================
   3D GAME UI & IMMERSIVE STYLES (MODERNIZED)
   ================================
*/

.game-body {
    background: linear-gradient(135deg, #1e130c 0%, #9a8478 100%); /* Elegant Warm Dark */
    background: radial-gradient(circle at 50% -20%, #4facfe 0%, #00f2fe 100%); /* Fallback / Accent */
    background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364); /* Deep Sea */
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%); /* Starry Night Base */
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    color: white;
    position: relative;
}

/* Animated Background Mesh (Optional effect) */
.game-body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 15% 50%, rgba(76, 29, 149, 0.4), transparent 25%), 
        radial-gradient(circle at 85% 30%, rgba(255, 215, 0, 0.15), transparent 25%);
    z-index: 0;
    pointer-events: none;
}

.game-layout-3d {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* Top Track (Heads Up Display) */
.top-hud {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 100px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 100;
    position: relative;
    margin: 10px 20px;
    border-radius: 20px;
}

.hud-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 120px;
}

.hud-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.spotlight-container {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    margin-top: 40px; /* Slight overlap effect */
}

.spotlight-glow {
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 3s infinite ease-in-out;
    filter: blur(10px);
}

@keyframes pulseGlow {
    0% { transform: scale(0.8); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(0.8); opacity: 0.4; }
}

.ball-spotlight {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #e6e6e6 40%, #b3b3b3 100%);
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.2),
        inset -10px -10px 20px rgba(0,0,0,0.3),
        inset 5px 5px 10px rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    color: #333;
    border: 2px solid rgba(255,255,255,0.8);
    z-index: 11;
    position: relative;
}

.ball-spotlight .ball-letter {
    position: absolute;
    top: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    letter-spacing: 1px;
}

.ball-track {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    max-width: 400px;
    padding: 10px 20px;
    margin-left: 30px;
    /* Hide scrollbar */
    scrollbar-width: none; 
    -ms-overflow-style: none;
    background: rgba(0,0,0,0.3);
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.ball-track::-webkit-scrollbar { 
    display: none; 
}

/* 3D Balls (History) */
.ball-3d {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    /* Realistic glossy ball base */
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.1) 20%, transparent 100%),
                var(--ball-color, #444);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4), inset -2px -2px 5px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    line-height: 1;
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    position: relative;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.ball-3d::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 15%;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8), transparent);
    filter: blur(1px);
}

/* Ball Specific Colors */
.ball-b { --ball-color: #007bff; background-color: #007bff; }
.ball-i { --ball-color: #dc3545; background-color: #dc3545; }
.ball-n { --ball-color: #28a745; background-color: #28a745; }
.ball-g { --ball-color: #fd7e14; background-color: #fd7e14; }
.ball-o { --ball-color: #6f42c1; background-color: #6f42c1; }

.hud-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile Responsive Game */
@media (max-width: 768px) {
    .top-hud {
        height: auto;
        padding: 10px 15px;
        margin: 0;
        border-radius: 0 0 20px 20px;
        flex-wrap: wrap;
        background: rgba(20, 20, 30, 0.95);
    }
    
    .hud-left {
        width: auto;
        flex-direction: row;
        font-size: 0.8rem;
        align-items: center;
    }
    
    .hud-center {
        order: 3;
        width: 100%;
        margin-top: 15px;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .ball-track {
        max-width: 100%;
        margin-left: 0;
        justify-content: center;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 5px;
    }
    
    .spotlight-container {
        width: 110px;
        height: 110px;
        margin-top: 0;
    }
    
    .ball-spotlight {
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
    }

    /* Mobile Chat Sidebar Overlay */
    .sidebar-panel {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        height: 100%;
        z-index: 2000;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .sidebar-panel.active {
        transform: translateX(0);
    }

    /* Floating Chat Button for Mobile */
    .mobile-chat-fab {
        display: flex; /* Show on mobile */
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: var(--primary);
        color: #333;
        align-items: center;
        justify-content: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.4);
        z-index: 150;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(252, 209, 22, 0.7); }
        70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(252, 209, 22, 0); }
        100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(252, 209, 22, 0); }
    }
    
    /* Adjust Cards Grid for Mobile */
    .stage-content {
        padding: 10px;
    }
    
    .bingo-card-3d {
        width: 100%;
        max-width: 340px;
    }
}

.ball-3d:hover {
    transform: scale(1.1);
}

.ball-3d.new {
    animation: bounceIn 0.8s;
}

@keyframes bounceIn {
    0% { transform: scale(0) translateY(-100px); opacity: 0; }
    60% { transform: scale(1.1) translateY(10px); opacity: 1; }
    80% { transform: scale(0.95) translateY(-5px); }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.ball-letter {
    font-size: 0.6rem;
    text-transform: uppercase;
    margin-bottom: -2px;
    opacity: 0.8;
}

/* Main Stage */
.game-stage {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

.stage-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: flex-start;
    perspective: 1200px;
}

/* 3D Bingo Card (Modernized) */
.bingo-card-3d {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 15px;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.6),
        0 0 20px rgba(255, 255, 255, 0.1) inset;
    width: 360px;
    max-width: 100%;
    transform: rotateX(5deg);
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.4);
    margin-bottom: 0;
    backdrop-filter: blur(5px);
}

.bingo-card-3d:hover {
    transform: rotateX(0deg) translateY(-10px);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.5),
        0 0 30px rgba(255, 255, 255, 0.2);
}

.card-header-3d {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-bottom: 12px;
    text-align: center;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
    padding: 5px 0;
}

.header-letter {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #333;
    text-shadow: 2px 2px 0px rgba(255,255,255,0.5);
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

.header-letter.b { color: #007bff; }
.header-letter.i { color: #dc3545; }
.header-letter.n { color: #28a745; }
.header-letter.g { color: #fd7e14; }
.header-letter.o { color: #6f42c1; }

.grid-3d {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    background: transparent;
    padding: 5px;
}

.cell-3d {
    aspect-ratio: 1;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: #333;
    box-shadow: 
        5px 5px 10px #d1d1d1, 
        -5px -5px 10px #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    user-select: none;
    border: 1px solid rgba(0,0,0,0.05);
}

.cell-3d:active {
    box-shadow: 
        inset 5px 5px 10px #d1d1d1, 
        inset -5px -5px 10px #ffffff;
    transform: scale(0.95);
}

.cell-3d.marked {
    background: linear-gradient(145deg, #ffc107, #ff9800);
    color: #fff;
    box-shadow: 
        0 0 15px rgba(255, 193, 7, 0.6),
        inset 2px 2px 5px rgba(255,255,255,0.4);
    transform: translateY(-2px);
    border: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.cell-3d.marked::before {
    content: '★'; /* Star instead of SVG for simplicity and compatibility */
    position: absolute;
    font-size: 2rem;
    color: rgba(255,255,255,0.3);
    z-index: 0;
    pointer-events: none;
}

/* Sidebars */
.sidebar-panel {
    width: 320px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    z-index: 50;
    transition: transform 0.3s ease;
}

.sidebar-panel.collapsed {
    transform: translateX(100%);
    width: 0;
    padding: 0;
    overflow: hidden;
}

.sidebar-header {
    padding: 1rem;
    background: var(--secondary);
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.toggle-chat-btn {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 200;
    border: none;
}

.toggle-chat-btn:hover {
    transform: scale(1.1);
}

/* Responsive adjustments for game */
@media (max-width: 992px) {
    .sidebar-panel {
        position: fixed;
        right: 0;
        top: 90px;
        bottom: 0;
        width: 100%;
        max-width: 320px;
        transform: translateX(100%);
        z-index: 1000;
    }
    .sidebar-panel.active {
        transform: translateX(0);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .top-hud {
        padding: 0 1rem;
        height: 70px;
    }

    .ball-track {
        gap: 5px;
        padding: 0 10px;
    }
    
    .ball-3d {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .bingo-card-3d {
        width: 100%;
        max-width: 340px;
    }
    
    .cell-3d {
        font-size: 1.1rem;
    }
}

/* 
   ================================
   MODERN LANDING PAGE (Index) - Reference Style
   ================================
*/

/* Full Width Hero */
.full-width-hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    background: #001230; /* Dark blue background */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.w-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.w-slide.active {
    opacity: 1;
}

.w-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,18,48,0.95) 0%, rgba(0,18,48,0.7) 50%, rgba(0,18,48,0.3) 100%);
}

.hero-overlay-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Left Promo Content */
.hero-promo {
    max-width: 55%;
    color: white;
    animation: slideUp 0.8s ease-out;
}

.hero-promo h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-style: italic;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-promo .highlight {
    color: #FCD116; /* Brand Yellow */
    display: block;
    font-size: 5rem;
}

.hero-promo .sub-text {
    font-size: 1.5rem;
    display: block;
    color: #e0e0e0;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn-cta-big {
    background: #39ff14; /* Neon Green */
    color: #001230;
    font-weight: 900;
    font-size: 1.4rem;
    padding: 1.2rem 3rem;
    border-radius: 5px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-cta-big:hover {
    background: #32d911;
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 40px rgba(57, 255, 20, 0.6);
    color: #001230;
}

/* Right Register Box */
.register-box-floating {
    background: rgba(255, 255, 255, 0.95);
    padding: 0;
    border-radius: 10px;
    width: 380px;
    max-width: 100%;
    color: #333;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.reg-box-header {
    background: var(--secondary);
    padding: 1.5rem;
    text-align: center;
    color: white;
}

.reg-box-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
}

.reg-box-header p {
    margin: 5px 0 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

.reg-body {
    padding: 2rem;
}

.reg-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.reg-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

.reg-features i {
    color: var(--success);
    font-size: 1.2rem;
}

.btn-reg-block {
    display: block;
    width: 100%;
    background: #39ff14;
    color: #001230;
    font-weight: 800;
    padding: 1rem;
    text-align: center;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 1.2rem;
    transition: 0.3s;
}

.btn-reg-block:hover {
    background: #32d911;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Steps Bar */
.steps-bar {
    background: linear-gradient(to right, #001230, #002a70);
    padding: 3rem 0;
    color: white;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 10px;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.step-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 0.8;
    color: white;
    opacity: 1;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.step-content h3 {
    color: #39ff14;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 992px) {
    .full-width-hero { min-height: auto; padding-bottom: 2rem; }
    .hero-promo h1 { font-size: 2.5rem; }
    .hero-promo .highlight { font-size: 3.5rem; }
    .hero-overlay-content { flex-direction: column; justify-content: center; text-align: center; gap: 3rem; padding-top: 4rem; }
    .hero-promo { max-width: 100%; }
    .register-box-floating { width: 100%; max-width: 400px; }
    .steps-container { grid-template-columns: 1fr; gap: 1rem; }
    .w-slide::after { background: rgba(0,18,48,0.85); } /* Darker overlay on mobile */
}

/* Modern Hero Slider (Legacy - Replaced by Full Width but keeping references if needed) */
.modern-hero {
    display: none; /* Hiding old one */
}

/* Feature Cards 3D */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 56, 147, 0.1);
    color: var(--secondary);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: var(--secondary);
    color: white;
    transform: rotateY(180deg);
}

/* Modern Sections */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Winner Ticker */
.winner-ticker {
    background: var(--secondary);
    color: white;
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-bottom: 3rem;
    border-radius: var(--radius);
}

.ticker-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.ticker-item {
    display: inline-block;
    margin: 0 2rem;
    font-weight: 500;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Modern Footer */
.modern-footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-3px);
}

/* Mobile Responsiveness for Index */
@media (max-width: 768px) {
    .modern-hero {
        height: 500px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
}
