: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);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-extras {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nit-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: #f1f3f5;
    color: #111;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.facebook-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #1877F2;
    color: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.facebook-header-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.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; }

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1rem; }
    .main-content { padding: 1rem; }
    .card { padding: 1.5rem; }
    
    /* Admin specific mobile adjustments */
    .admin-header { padding: 0 1rem; }
    .stat-box { margin-bottom: 1rem; }
    
    /* Table Mobile Optimization */
    .table th, .table td { padding: 10px; font-size: 0.9rem; }
    .btn-sm { padding: 0.4rem 0.8rem; }
}

.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);
}

/* 
   ================================
   ULTRA MODERN 3D GAME CARD
   ================================
*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-room-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: linear-gradient(135deg, #1a1c2e 0%, #0f1016 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Wallpaper Effect Background */
.game-room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(64, 224, 208, 0.1) 0%, transparent 20%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: cover, cover, 60px 60px;
    opacity: 0.6;
    z-index: 0;
    transition: opacity 0.4s ease;
}

.game-room-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.game-room-card:hover::before {
    opacity: 0.8;
}

.room-card-header {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.room-id-badge {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    letter-spacing: 1px;
}

.room-price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.room-currency {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffd700; /* Gold */
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.room-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.room-unit {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.room-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.room-prize-title {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.prize-highlight {
    font-size: 1.8rem;
    color: #40e0d0; /* Turquoise */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 15px rgba(64, 224, 208, 0.4);
}

.room-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.room-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 12px;
    text-align: center;
}

.room-info-item i {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.room-info-item span {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
}

.room-action-btn {
    margin-top: auto;
    width: 100%;
    padding: 1.2rem;
    border-radius: 50px; /* Pill shape */
    background: linear-gradient(90deg, #ffd700 0%, #ffaa00 100%);
    color: #1a1c2e;
    font-weight: 800;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(255, 170, 0, 0.3);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.room-action-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.room-action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 170, 0, 0.5);
    color: #1a1c2e;
    text-decoration: none;
}

.room-action-btn:hover::after {
    left: 100%;
}

.room-action-btn.disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    box-shadow: none;
}

/* Mobile Responsiveness for 3D Cards */
@media (max-width: 768px) {
    .grid-3 {
        display: grid;
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 2rem;
        padding: 0 10px;
    }

    .game-room-card {
        min-height: auto;
        margin-bottom: 10px;
    }
    
    .room-amount {
        font-size: 2.2rem;
    }
}

/* Page Header */
.page-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    font-weight: 800;
    margin-bottom: 2rem;
}

.page-header-title i {
    color: #ff4444; /* Flame color */
}

/* 
   ================================
   CUSTOM BINGO CARD DESIGN (IMAGE BASED)
   ================================
*/
.bingo-card-visual {
    position: relative;
    width: 100%;
    max-width: 280px; /* Increased from 220px */
    aspect-ratio: 485/650;
    background-image: url('../tarjeta.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    margin: 0 auto;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.3s ease;
}

.bingo-card-visual:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.card-id-badge {
    position: absolute;
    top: 36%;
    left: 8%;
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #000;
    border: 2px solid #eee; /* Added border for better visibility */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Stronger shadow */
    z-index: 10;
    transform: translateY(-50%);
}

.sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ff4444;
    font-weight: 900;
    text-shadow: 2px 2px 0 #fff;
    pointer-events: none; /* Allow clicks to pass through if needed, though usually disabled */
}

.sold-overlay i {
    font-size: 8rem;
    opacity: 0.8;
}

.sold-overlay span {
    font-size: 2rem;
    margin-top: -20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bingo-grid-overlay {
    position: absolute;
    bottom: 8%;
    left: 6%;
    width: 88%;
    height: 50%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 4px; /* Increased gap slightly */
}

.bingo-cell-visual {
    background: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem; /* Increased font size */
    font-weight: 800;
    color: #333;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
}

.bingo-cell-visual.free {
    color: var(--primary);
    font-size: 1.3rem;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .bingo-card-visual {
        max-width: 240px; /* Increased mobile width */
    }
    
    .bingo-cell-visual {
        font-size: 0.9rem;
        border-radius: 4px;
    }
    
    .sold-overlay i {
        font-size: 6rem;
    }

    .sold-overlay span {
        font-size: 1.5rem;
    }
}

/* 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%;
    }

    .main-header .nit-badge {
        display: none;
    }
}

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

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

/* 
   ================================
   CRM DASHBOARD STYLES (NEW)
   ================================
*/
.crm-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.crm-header-banner {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid var(--secondary);
}

.crm-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

.crm-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.crm-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* CRM Stat Cards */
.crm-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.crm-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.2s;
    border: 1px solid rgba(0,0,0,0.02);
}

.crm-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.crm-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.icon-wallet { background: rgba(0, 56, 147, 0.1); color: var(--secondary); }
.icon-ticket { background: rgba(252, 209, 22, 0.1); color: var(--primary-dark); }
.icon-trophy { background: rgba(40, 167, 69, 0.1); color: var(--success); }

.crm-stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.crm-stat-info .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* Section Headers */
.crm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.crm-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.crm-section-title i {
    color: var(--primary);
}

/* Game Cards (CRM Style) */
.crm-game-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.crm-game-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.crm-game-header {
    padding: 1.5rem;
    background: linear-gradient(to right, #f8f9fa, white);
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crm-game-body {
    padding: 1.5rem;
    flex: 1;
}

.crm-game-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crm-game-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.crm-game-date {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #555;
}

.crm-game-date div {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

/* Ticket List (CRM Style) */
.crm-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crm-ticket-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #eee;
    transition: 0.2s;
}

.crm-ticket-item:hover {
    border-color: var(--primary);
    background: rgba(252, 209, 22, 0.02);
}

.ticket-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.ticket-info {
    flex: 1;
    margin-left: 15px;
}

.ticket-id {
    font-weight: 600;
    color: #333;
}

.ticket-meta {
    font-size: 0.8rem;
    color: #777;
}

/* Recent Activity Feed */
.activity-feed {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.activity-item {
    padding-bottom: 1.5rem;
    border-left: 2px solid #eee;
    padding-left: 1.5rem;
    position: relative;
}

.activity-item:last-child {
    padding-bottom: 0;
    border-left: 2px solid transparent;
}

.activity-dot {
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: 2px solid white;
}

.dot-success { background: var(--success); }
.dot-warning { background: var(--warning); }
.dot-primary { background: var(--secondary); }
.dot-danger { background: var(--danger); }

.activity-content h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.activity-time {
    font-size: 0.8rem;
    color: #999;
}

.activity-amount {
    font-weight: 700;
    margin-top: 5px;
    display: block;
}

/* Mobile Responsive CRM */
@media (max-width: 992px) {
    .crm-grid {
        grid-template-columns: 1fr;
    }
    
    .crm-stats-row {
        grid-template-columns: 1fr;
    }
    
    .crm-header-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}


.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 WALLET & DASHBOARD ELEMENTS
   ================================
*/

/* --- Modern Tabs --- */
.nav-pills-custom .nav-link {
    color: #999;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    margin-right: 0.5rem;
    transition: all 0.3s;
    border: 1px solid transparent;
}
.nav-pills-custom .nav-link:hover {
    color: var(--secondary);
    background: #e9ecef;
}
.nav-pills-custom .nav-link.active {
    background: white;
    color: var(--primary);
    border-color: #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.nav-pills-custom .nav-link i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* --- Wallet Credit Card --- */
.wallet-card-visual {
    background: linear-gradient(135deg, #003893 0%, #0066cc 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 56, 147, 0.3);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.wallet-card-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.wallet-card-visual::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.chip-img {
    width: 50px;
    height: 35px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    border-radius: 5px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}
.chip-img::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0; height: 1px; background: rgba(0,0,0,0.2);
}
.chip-img::after {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(0,0,0,0.2);
}
.wallet-balance-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 2px;
}
.wallet-balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 5px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Mobile Wallet Improvements */
@media (max-width: 768px) {
    .crm-container {
        padding: 0 1.5rem;
    }

    .wallet-content-wrapper {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1.5rem;
    }

    .wallet-balance-info {
        text-align: center;
        margin-bottom: 1rem;
    }

    .wallet-balance-amount {
        font-size: 2.2rem;
    }

    .wallet-actions-container {
        width: 100%;
    }

    /* Switch buttons to horizontal row on mobile */
    .wallet-nav-pills {
        flex-direction: row !important;
        width: 100%;
        gap: 10px !important;
    }

    .wallet-action-btn {
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: 0.8rem !important;
        font-size: 0.9rem;
        min-width: 0 !important;
    }

    /* Ensure card doesn't overflow horizontally */
    .wallet-card-visual {
        padding: 1.5rem;
        min-height: auto; /* Allow content to dictate height */
    }
    
    .wallet-card-number {
        font-size: 1rem !important;
    }
}
.wallet-card-number {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    letter-spacing: 4px;
    opacity: 0.9;
    margin-top: 1rem;
}

/* --- Bank Account Card --- */
.bank-account-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}
.bank-account-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-3px);
}
.bank-account-card.selected {
    border: 2px solid var(--primary);
    background: rgba(0, 56, 147, 0.02);
}
.bank-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 1rem;
}
.bank-name {
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.1rem;
}
.account-number {
    color: #777;
    font-family: monospace;
    font-size: 1rem;
    margin-top: 5px;
}
.add-account-card {
    border: 2px dashed #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    min-height: 180px;
}
.add-account-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 56, 147, 0.02);
}

/* --- Modern Game Card (Enhanced) --- */
.game-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    position: relative;
}
.game-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.game-card-header {
    height: 140px;
    background: linear-gradient(135deg, #003893 0%, #0066cc 100%);
    position: relative;
    padding: 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.game-card-header.live {
    background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
}
.game-card-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 20px 20px;
    opacity: 0.5;
}
.game-id-chip {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.game-prize-large {
    font-size: 1.8rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-top: auto;
}
.game-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.game-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 0.95rem;
}
.game-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f0f7ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.game-card-footer {
    padding: 1.5rem;
    border-top: 1px solid #f5f5f5;
    background: #fafafa;
}
.btn-play-modern {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.btn-play-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}



/* =========================================
   VISUAL BINGO CARD (Based on tarjeta.jpg)
   ========================================= */

.my-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Marked State */
.bingo-cell-visual.marked::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: rgba(220, 53, 69, 0.85);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
    z-index: 1;
}

/* Selection State */
.bingo-card-visual.selected {
    box-shadow: 0 0 0 4px var(--success), 0 15px 30px rgba(0,0,0,0.3);
    transform: scale(1.02);
}

.bingo-card-visual.selected .bingo-grid-overlay::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 6rem;
    color: var(--success);
    opacity: 0.9;
    z-index: 10;
    text-shadow: 0 0 20px white;
    pointer-events: none;
}


/* 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;
    }
}

/* Avatar Upload */
.avatar-upload {
    position: relative;
    max-width: 205px;
    margin: 10px auto;
}
.avatar-upload .avatar-edit {
    position: absolute;
    right: 12px;
    z-index: 1;
    top: 10px;
}
.avatar-upload .avatar-edit input {
    display: none;
}
.avatar-upload .avatar-edit label {
    display: inline-block;
    width: 34px;
    height: 34px;
    margin-bottom: 0;
    border-radius: 100%;
    background: #FFFFFF;
    border: 1px solid transparent;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-weight: normal;
    transition: all .2s ease-in-out;
    text-align: center;
    line-height: 34px;
    color: #757575;
}
.avatar-upload .avatar-edit label:hover {
    background: #f1f1f1;
    border-color: #d6d6d6;
}
.avatar-upload .avatar-preview {
    width: 150px;
    height: 150px;
    position: relative;
    border-radius: 100%;
    border: 6px solid #F8F8F8;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}
.avatar-upload .avatar-preview > div {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}


/* Dashboard Specific Styles (Moved from dashboard.php) */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-box {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 5px 5px 15px #d1d9e6, -5px -5px 15px #ffffff;
    text-align: center;
    border: none;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

/* Rooms Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

@media (max-width: 576px) {
    .rooms-grid {
        grid-template-columns: 1fr;
    }
}

.room-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

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

/* My Games Section */
.game-group {
    background: white;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.game-group-header {
    background: var(--secondary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.game-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-group-body {
    padding: 20px;
    background: #fcfcfc;
}

/* Optimized Card Grid for Mobile */
.my-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* Smaller min-width for mobile */
    gap: 15px;
}

@media (max-width: 480px) {
    .my-cards-grid {
        grid-template-columns: repeat(2, 1fr); /* Force 2 columns on mobile */
        gap: 10px;
    }
    
    .bingo-card-mini {
        font-size: 0.8rem;
    }
    
    .bingo-cell-mini {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}

/* Status Badge */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: var(--success);
    color: white;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
    animation: pulse-green 2s infinite;
}

.status-scheduled {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0;
    font-size: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}


/* Buy Cards Specific (Moved from buy_cards.php) */
.bingo-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.bingo-card-item {
    position: relative;
    transition: transform 0.2s;
    border-radius: 10px;
}

.bingo-card-item:hover {
    transform: translateY(-5px);
}

.bingo-card-item.card-sold {
    opacity: 0.6;
    filter: grayscale(1);
    cursor: not-allowed;
}

.bingo-card-item.card-sold label {
    cursor: not-allowed;
}

/* Selection State */
input[type='checkbox']:checked + label .bingo-card-mini {
    border: 3px solid var(--success);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
    transform: scale(1.02);
}

.selected-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: var(--success);
    font-size: 3rem;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

input[type='checkbox']:checked ~ .selected-overlay {
    transform: translate(-50%, -50%) scale(1);
}


/* Additional Buy Cards Styles */
.card-available .status-text { color: var(--success); }
.card-sold .status-text { color: var(--danger); }

/* Game Result Popup Styles */
.game-result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.5s ease;
}

.result-content {
    background: transparent;
    max-width: 90%;
    width: 450px; /* Adjust based on image aspect ratio */
    text-align: center;
    position: relative;
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-image-container img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    border: 3px solid rgba(255, 255, 255, 0.2);
    display: block;
}

.winner-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    margin: 1rem 0 0.5rem 0;
    line-height: 1.2;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(50px) scale(0.9); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
