/* Modern Gaming Platform - Premium Dark Theme with Rich Maroon */
:root {
    --primary-dark: #1a0508;
    --secondary-dark: #2a0a0f;
    --primary-dark-alt: rgba(42, 10, 15, 0.7);
    --accent-gold: #fbbd24;
    --text-light: #f9fafb;
    --text-light-alt: #d1d5db;
    --text-gray: #9ca3af;
    --text-gray-dark: #6b7280;
    --border-color: rgba(251, 191, 36, 0.2);
    --gradient-bg: linear-gradient(135deg, #1a0508 0%, #2a0a0f 100%);
    --gradient-card: linear-gradient(135deg, rgba(42, 10, 15, 0.9) 0%, rgba(74, 20, 25, 0.85) 100%);
    --gradient-button: linear-gradient(90deg, #fbbd24 0%, #f7dc6f 100%);
    --gradient-button-active: linear-gradient(90deg, #f7dc6f 0%, #fbbd24 100%);
    --gradient-gold: linear-gradient(90deg, #fbbd24, #f7dc6f);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-gold: 0 0 15px rgba(251, 191, 36, 0.4);
    --shadow-gold-focus: 0 0 0 3px rgba(251, 191, 36, 0.2), var(--shadow-md);
}

/* Global Image Reset - Fixes "large and messy" images */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Specific Welcome Logo Sizing */
.welcome-logo {
    max-width: 200px; /* Constrain logo size */
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.3); /* Gold glow */
    animation: logo-float 4s ease-in-out infinite; /* Moving feature */
    border: 2px solid var(--accent-gold);
}

@keyframes logo-float {
    0% {
        transform: translateY(0px);
        box-shadow: 0 0 25px rgba(251, 191, 36, 0.3);
    }
    50% {
        transform: translateY(-15px); /* Moves up */
        box-shadow: 0 0 40px rgba(251, 191, 36, 0.5); /* Glow intensifies */
    }
    100% {
        transform: translateY(0px);
        box-shadow: 0 0 25px rgba(251, 191, 36, 0.3);
    }
}

.welcome-logo-container {
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Hero Section & Typography Improvements */
.hero-section {
    text-align: center;
    padding: 30px 15px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.hero-title {
    font-size: 28px;
    color: var(--accent-gold);
    margin-bottom: 16px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.3;
}

.hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 10px; /* Space below buttons */
}

/* Hero Steps (3 Easy Steps) */
.hero-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.hero-step {
    background: rgba(42, 10, 15, 0.6);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
    transition: transform 0.2s ease;
}

.hero-step:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.hero-step-title {
    color: var(--accent-gold);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-step-title::before {
    content: '•';
    color: var(--accent-gold);
    font-size: 24px;
}

.hero-step-desc {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Features Preview */
.features-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-highlight {
    text-align: center;
    padding: 15px;
}

.feature-highlight h4 {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 16px;
}

.feature-highlight p {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.4;
}

/* Accessibility: Skip Link */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: auto;
    height: auto;
    padding: 1rem;
    background: var(--primary-dark);
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    clip: auto;
    margin: 0;
}

/* Navigation Modal Styles */
.nav-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-modal.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.nav-modal-content {
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    position: relative;
    z-index: 2001;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--border-color);
}

.nav-modal.active .nav-modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-btn:hover {
    color: var(--accent-gold);
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 15px;
}

.nav-menu li:last-child {
    margin-bottom: 0;
}

.nav-menu a, .nav-menu button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-light);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 16px;
}

.nav-menu button {
    cursor: pointer;
}

.nav-menu a:hover, .nav-menu button:hover, .nav-menu a.active {
    background: var(--gradient-button);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.logout-btn {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white !important;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Ensure mobile bottom nav is visible on small screens */
@media (max-width: 768px) {
    .header-nav {
        display: flex; /* Keep header-nav visible as a container */
        align-items: center;
        gap: 10px;
    }
    
    /* Hide desktop-specific items inside header-nav on mobile */
    .header-nav .balance-section {
        display: none;
    }
    
    /* Ensure menu toggle is visible */
    .menu-toggle {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    .header-nav {
        display: flex;
        gap: 15px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--gradient-bg);
    background-attachment: fixed;
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Header */
.header {
    background: rgba(42, 10, 15, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 12px 20px;
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 60px; /* Reduced from 80px for better mobile fit */
    width: 60px;
    object-fit: contain;
    border-radius: 50%;
}

.logo h1 {
    font-size: 20px; /* Slightly reduced */
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-shadow: none;
    margin: 0;
    line-height: 1.2;
}

/* Mobile Header Adjustments */
@media (max-width: 480px) {
    .logo-img {
        height: 40px;
        width: 40px;
    }
    .logo h1 {
        font-size: 16px;
    }
    .header {
        padding: 10px 15px;
    }
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 10px;
}

.lang-btn {
    background: linear-gradient(135deg, rgba(42, 10, 15, 0.8), rgba(20, 5, 5, 0.9));
    border: 1px solid var(--border-color);
    color: var(--accent-gold);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    background: rgba(42, 10, 15, 0.95);
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
    transform: translateY(-1px);
}

.lang-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent-gold);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    min-width: 140px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1001;
    flex-direction: column;
    gap: 4px;
}

.lang-menu.show {
    display: flex;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-gray);
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.lang-option.active {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-gold);
    font-weight: 600;
}

.lang-icon {
    font-size: 16px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 80px;
    width: 80px;
    object-fit: contain;
    border-radius: 50%;
}

.logo h1 {
    font-size: 22px;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-shadow: none;
}

.balance-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance-display {
    background: rgba(42, 10, 15, 0.7);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-gold);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.balance-display:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold), var(--shadow-maroon);
    transform: translateY(-1px);
    background: rgba(42, 10, 15, 0.85);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    background: var(--gradient-button);
    color: var(--primary-dark);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    background: var(--gradient-button-active);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Touch-friendly styles for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px; /* Minimum touch target size */
    }
    
    .chip {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-menu a {
        min-height: 44px;
    }
    
    .bet-option {
        min-height: 120px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
    }
    
    .bet-option:hover {
        transform: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
}

.btn-primary {
    background: var(--gradient-button);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--gradient-button-active);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: var(--text-light);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
    background: var(--secondary-dark);
    color: var(--text-light-alt);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--primary-dark-alt);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

/* Cards */
.card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.5;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-gold);
    border-color: var(--accent-gold);
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* Betting Interface */
.betting-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.bet-option {
    padding: 28px 24px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 15px rgba(251, 191, 36, 0.3);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(42, 10, 15, 0.8);
}

.bet-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), 0 0 25px rgba(251, 191, 36, 0.5);
    background: rgba(50, 15, 20, 0.9);
}

.bet-option.meron {
    background: linear-gradient(135deg, rgba(185, 28, 28, 0.9) 0%, rgba(127, 29, 29, 0.9) 100%);
    border-color: #EF4444;
}

.bet-option.wala {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.9) 0%, rgba(30, 58, 138, 0.9) 100%);
    border-color: #3B82F6;
}

.bet-option.draw {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(6, 95, 70, 0.9) 100%);
    border-color: #10B981;
    grid-column: span 2;
    min-height: 120px;
}

.bet-label {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.bet-total {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent-gold);
}

.bet-payout {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin: 0 auto;
}

/* Chip Selection */
.chip-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    padding: 10px;
}

.chip {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-button);
    border: 2px solid #FCD34D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), inset 0 -4px 4px rgba(0, 0, 0, 0.2);
    user-select: none;
    position: relative;
}

.chip::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 2px dashed rgba(26, 5, 8, 0.3);
    border-radius: 50%;
}

.chip:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4), inset 0 -4px 4px rgba(0, 0, 0, 0.2), 0 0 15px rgba(251, 191, 36, 0.6);
}

.chip.active {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
    background: #FEF3C7;
    z-index: 10;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 18px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Video Player */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.video-status {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 30px;
    border-radius: 30px;
    color: var(--text-light);
    font-weight: 600;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

/* Stats Grid - Enhanced Bead Road */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: rgba(42, 10, 15, 0.6);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent-gold);
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Roadmap Grid (Bead Road) */
.results-grid {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    width: 100%;
    aspect-ratio: 15/6;
}

.result-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    position: relative;
}

.result-circle.meron {
    background-color: #EF4444;
}

.result-circle.wala {
    background-color: #3B82F6;
}

.result-circle.draw {
    background-color: #10B981;
}

.result-circle.cancelled {
    background-color: #9CA3AF;
}

/* Live Ticker */
.live-ticker {
    background: var(--primary-dark);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    display: none !important;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    padding-left: 100%; /* Start from right */
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 40px;
    font-size: 14px;
    color: var(--text-light);
}

.ticker-highlight {
    color: var(--accent-gold);
    font-weight: bold;
    margin: 0 4px;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Quick Bet Buttons */
.quick-bet-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-quick {
    flex: 1;
    padding: 8px;
    font-size: 13px;
    background: rgba(42, 10, 15, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-light-alt);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-quick:hover {
    background: var(--secondary-dark);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Daily Bonus Modal */
.bonus-modal-content {
    text-align: center;
    background: radial-gradient(circle, #4a1419 0%, #1a0508 100%);
    border: 2px solid var(--accent-gold);
}

.bonus-wheel {
    font-size: 60px;
    margin: 20px 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: rgba(42, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--accent-gold);
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-light);
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-color: #10B981; }
.toast.error { border-color: #EF4444; }
.toast.info { border-color: #3B82F6; }

.toast-icon { font-size: 20px; }

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.toast-message {
    font-size: 14px;
    color: var(--text-light-alt);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none; /* Hidden on desktop by default */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 5, 8, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 11px;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
}

.mobile-nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.mobile-nav-item.active {
    color: var(--accent-gold);
}

.mobile-nav-item.active .mobile-nav-icon {
    transform: translateY(-2px);
}

.mobile-nav-item:active {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    .container {
        padding-bottom: 80px; /* Space for bottom nav */
    }
}

/* --- New Layout Fixes --- */

/* Promo Section Grid */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.promo-item {
    background: rgba(42, 10, 15, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.promo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 15px rgba(251, 191, 36, 0.3);
    border-color: var(--accent-gold);
}

.prize-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.prize-image {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.prize-title {
    color: var(--accent-gold);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.prize-requirement {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.prize-badge {
    display: inline-block;
    background: var(--gradient-button);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* How It Works Steps */
.how-steps {
    list-style: none;
    counter-reset: how-counter;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 0;
}

.how-steps li {
    position: relative;
    padding-left: 50px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 20px 20px 60px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.how-steps li::before {
    counter-increment: how-counter;
    content: counter(how-counter);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 800;
}

/* FAQ & Info Combo Grid */
.info-combo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .info-combo-grid {
        grid-template-columns: 1fr;
    }
}

.faq-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.faq-question {
    color: var(--accent-gold);
    font-size: 16px;
    margin-bottom: 10px;
}

.faq-answer {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

.responsible-gaming-column {
    background: rgba(42, 10, 15, 0.6);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.responsible-text {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.responsible-age {
    display: inline-block;
    border: 2px solid #EF4444;
    color: #EF4444;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
}

/* CTA Buttons Fix for Small Mobile */
@media (max-width: 400px) {
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* --- User Dashboard Styles --- */
.user-dashboard {
    padding: 20px 0;
}

.welcome-message {
    text-align: center;
    margin-bottom: 40px;
}

.user-greeting {
    font-size: 32px;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 800;
}

.user-greeting .username {
    color: var(--accent-gold);
}

.user-subtitle {
    color: var(--text-gray);
    font-size: 18px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(42, 10, 15, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(251, 191, 36, 0.2);
    border-color: var(--accent-gold);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--accent-gold);
}

.feature-card h3 {
    color: var(--accent-gold);
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.live-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #EF4444;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.dashboard-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.dashboard-stats p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-gray);
}

.dashboard-stats span {
    color: var(--text-light);
    font-weight: 600;
    font-family: monospace;
    font-size: 15px;
}

.card-action {
    margin-top: auto;
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 10px 20px;
    border: 1px solid var(--accent-gold);
    border-radius: 20px;
    transition: all 0.3s;
}

.feature-card:hover .card-action {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* --- Footer Styles --- */
.site-footer {
    background-color: rgba(20, 5, 5, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    margin-top: 60px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-copy {
    color: var(--text-gray);
    font-size: 14px;
    margin: 0;
}

.footer-responsible {
    color: var(--text-gray);
    font-size: 12px;
    opacity: 0.7;
    margin: 0;
}

/* Adjust for mobile bottom nav */
@media (max-width: 768px) {
    .site-footer {
        padding-bottom: 90px; /* Clear the bottom nav */
    }
}

/* Transaction Filters */
.transaction-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    min-width: 100px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-color);
    background: rgba(42, 10, 15, 0.4);
}

.filter-btn.active {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

@media (max-width: 768px) {
    .transaction-filters {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .filter-btn {
        width: 100%;
        min-width: 0;
        padding: 8px 5px;
        font-size: 12px;
    }
}
