/* ================================================================
   ZEUS THEME GLOBAL — Unified popup/modal design across all pages
   Background: goa5.png (Gates of Olympus Zeus)
   Colors: Gold (#FFD700), Purple (#8b5cf6), Pink (#d946ef), Cyan (#06b6d4)
   ================================================================ */

/* ============================================================
   SHARED ZEUS BACKGROUND MIXIN (applied to all modal containers)
   ============================================================ */

/* --- 1. GAUNTLET SLIDER (Tournament Section) --- */
.gauntlet-container {
    background-color: #0a0d14 !important;
    background-image:
        linear-gradient(180deg, rgba(10, 13, 20, 0.82) 0%, rgba(10, 13, 20, 0.9) 100%),
        url('/images/branding/goa5.png') !important;
    background-size: cover, contain !important;
    background-position: center, center !important;
    background-repeat: no-repeat, no-repeat !important;
    border: 2px solid rgba(255, 215, 0, 0.35) !important;
    box-shadow:
        0 0 25px rgba(255, 215, 0, 0.15),
        0 0 60px rgba(139, 92, 246, 0.1),
        inset 0 0 30px rgba(255, 77, 0, 0.08) !important;
}

.gauntlet-container::before {
    content: '' !important;
    position: absolute !important;
    top: -2px !important; left: -2px !important; right: -2px !important; bottom: -2px !important;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.1)) !important;
    z-index: -1 !important;
    border-radius: inherit !important;
    animation: none !important;
}

@keyframes zeusFireBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

/* --- 2. GAUNTLET JOIN TOURNAMENT MODAL --- */
.join-modal-overlay {
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(12px) !important;
}

.join-modal-content {
    background:
        linear-gradient(165deg, rgba(13,15,23,0.92) 0%, rgba(26,29,43,0.95) 50%, rgba(13,15,23,0.92) 100%),
        url('/images/branding/goa5.png') center center / contain no-repeat !important;
    background-color: #0D0F17 !important;
    border: 1px solid rgba(255, 215, 0, 0.25) !important;
    border-radius: 24px !important;
    box-shadow:
        0 25px 80px rgba(139, 92, 246, 0.15),
        0 0 40px rgba(255, 215, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
}

.join-modal-content::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #FFD700, #d946ef, #06b6d4, #FFD700) !important;
    background-size: 300% 100% !important;
    animation: zeusShineBar 3s linear infinite !important;
    z-index: 2 !important;
}

.join-modal-close {
    background: rgba(255, 56, 100, 0.12) !important;
    border: 1px solid rgba(255, 56, 100, 0.25) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    color: #FF3864 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    transition: all 0.3s !important;
    top: 15px !important;
    right: 15px !important;
}

.join-modal-close:hover {
    background: rgba(255, 56, 100, 0.25) !important;
    color: #fff !important;
    transform: rotate(90deg) !important;
}

.join-modal-title {
    background: linear-gradient(135deg, #FFD700, #f59e0b) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.join-modal-title i {
    -webkit-text-fill-color: #FFD700 !important;
}

.join-modal-info {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    border-radius: 14px !important;
}

.join-modal-btn-confirm {
    background: linear-gradient(135deg, #d946ef 0%, #ec4899 50%, #FFD700 100%) !important;
    background-size: 200% 100% !important;
    animation: zeusBtnGradient 3s ease infinite !important;
    border-radius: 14px !important;
}

.join-modal-btn-deposit {
    background: linear-gradient(135deg, #10b981, #06b6d4) !important;
    border-radius: 14px !important;
}

/* --- 3. GLOBAL POPUP (Error / Warning / Success / Info) --- */
.global-popup-overlay {
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(12px) !important;
}

.global-popup-content {
    background:
        linear-gradient(165deg, rgba(13,15,23,0.93) 0%, rgba(26,29,43,0.96) 50%, rgba(13,15,23,0.93) 100%),
        url('/images/branding/goa5.png') center center / contain no-repeat !important;
    background-color: #0D0F17 !important;
    border-radius: 24px !important;
    box-shadow:
        0 25px 80px rgba(139, 92, 246, 0.15),
        0 0 40px rgba(255, 215, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    position: relative !important;
}

.global-popup-content::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #FFD700, #d946ef, #06b6d4, #FFD700) !important;
    background-size: 300% 100% !important;
    animation: zeusShineBar 3s linear infinite !important;
    z-index: 2 !important;
    border-radius: 24px 24px 0 0 !important;
}

.global-popup-content.error { border: 1px solid rgba(239, 68, 68, 0.35) !important; }
.global-popup-content.warning { border: 1px solid rgba(255, 215, 0, 0.35) !important; }
.global-popup-content.success { border: 1px solid rgba(16, 185, 129, 0.35) !important; }
.global-popup-content.info { border: 1px solid rgba(139, 92, 246, 0.35) !important; }

.global-popup-icon {
    animation: zeusIconPulse 2s ease-in-out infinite !important;
}

.global-popup-btn-primary {
    background: linear-gradient(135deg, #d946ef 0%, #ec4899 50%, #FFD700 100%) !important;
    background-size: 200% 100% !important;
    animation: zeusBtnGradient 3s ease infinite !important;
    border-radius: 14px !important;
}

.global-popup-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(217, 70, 239, 0.4) !important;
}

.global-popup-btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 14px !important;
}

.global-popup-btn-success {
    background: linear-gradient(135deg, #10b981, #06b6d4) !important;
    border-radius: 14px !important;
}

.global-popup-btn-danger {
    background: linear-gradient(135deg, #ef4444, #FF3864) !important;
    border-radius: 14px !important;
}

.global-popup-details {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    border-radius: 14px !important;
}

/* --- 4. WAGERING POPUP --- */
.wagering-popup-overlay {
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(12px) !important;
}

.wagering-popup-content {
    background:
        linear-gradient(165deg, rgba(13,15,23,0.93) 0%, rgba(26,29,43,0.96) 50%, rgba(13,15,23,0.93) 100%),
        url('/images/branding/goa5.png') center center / contain no-repeat !important;
    background-color: #0D0F17 !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 24px !important;
    box-shadow:
        0 25px 80px rgba(139, 92, 246, 0.15),
        0 0 40px rgba(255, 215, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    position: relative !important;
}

.wagering-popup-content::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #FFD700, #d946ef, #06b6d4, #FFD700) !important;
    background-size: 300% 100% !important;
    animation: zeusShineBar 3s linear infinite !important;
    z-index: 2 !important;
    border-radius: 24px 24px 0 0 !important;
}

.wagering-icon {
    background: linear-gradient(135deg, #8b5cf6, #d946ef) !important;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4) !important;
    animation: zeusIconPulse 2s ease-in-out infinite !important;
}

.wagering-close-btn {
    background: rgba(255, 56, 100, 0.12) !important;
    border: 1px solid rgba(255, 56, 100, 0.25) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    color: #FF3864 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s !important;
}

.wagering-close-btn:hover {
    background: rgba(255, 56, 100, 0.25) !important;
    color: #fff !important;
}

.wagering-stat {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(139, 92, 246, 0.12) !important;
    border-radius: 14px !important;
}

.wagering-progress-container {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(139, 92, 246, 0.12) !important;
    border-radius: 14px !important;
}

.wagering-progress-fill {
    background: linear-gradient(90deg, #8b5cf6, #d946ef, #FFD700) !important;
    background-size: 200% 100% !important;
    animation: zeusBtnGradient 3s ease infinite !important;
}

.wagering-info {
    background: rgba(139, 92, 246, 0.08) !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    border-radius: 12px !important;
}

.wagering-btn-primary {
    background: linear-gradient(135deg, #10b981, #06b6d4) !important;
    border-radius: 14px !important;
}

.wagering-btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
}

/* --- 5. DEPOSIT CONFIRMATION MODAL (Address/QR) --- */
.deposit-confirm-overlay {
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(12px) !important;
}

.deposit-confirm-modal {
    background:
        linear-gradient(165deg, rgba(13,15,23,0.92) 0%, rgba(26,29,43,0.95) 50%, rgba(13,15,23,0.92) 100%),
        url('/images/branding/goa5.png') center center / contain no-repeat !important;
    background-color: #0D0F17 !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 24px !important;
    box-shadow:
        0 25px 80px rgba(139, 92, 246, 0.15),
        0 0 40px rgba(255, 215, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    position: relative !important;
}

.deposit-confirm-modal::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #FFD700, #d946ef, #06b6d4, #FFD700) !important;
    background-size: 300% 100% !important;
    animation: zeusShineBar 3s linear infinite !important;
    z-index: 2 !important;
    border-radius: 24px 24px 0 0 !important;
}

.deposit-confirm-modal .close-modal-btn {
    background: rgba(255, 56, 100, 0.12) !important;
    border: 1px solid rgba(255, 56, 100, 0.25) !important;
    color: #FF3864 !important;
}

.deposit-confirm-modal .close-modal-btn:hover {
    background: rgba(255, 56, 100, 0.25) !important;
    transform: rotate(90deg) !important;
}

/* --- 6. WITHDRAW PROCESSING MODAL --- */
.withdrawal-processing-overlay {
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(12px) !important;
}

.processing-modal {
    background:
        linear-gradient(165deg, rgba(13,15,23,0.92) 0%, rgba(26,29,43,0.95) 50%, rgba(13,15,23,0.92) 100%),
        url('/images/branding/goa5.png') center center / contain no-repeat !important;
    background-color: #0D0F17 !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 24px !important;
    box-shadow:
        0 25px 80px rgba(139, 92, 246, 0.15),
        0 0 40px rgba(255, 215, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    position: relative !important;
}

.processing-modal::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #FFD700, #d946ef, #06b6d4, #FFD700) !important;
    background-size: 300% 100% !important;
    animation: zeusShineBar 3s linear infinite !important;
    z-index: 2 !important;
    border-radius: 24px 24px 0 0 !important;
}

.processing-modal h2 {
    background: linear-gradient(135deg, #FFD700, #f59e0b) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.processing-modal .btn-primary {
    background: linear-gradient(135deg, #d946ef 0%, #ec4899 50%, #FFD700 100%) !important;
    background-size: 200% 100% !important;
    animation: zeusBtnGradient 3s ease infinite !important;
    border: none !important;
    border-radius: 14px !important;
    color: #fff !important;
    padding: 14px 24px !important;
}

.processing-modal .btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 14px !important;
    color: #fff !important;
    padding: 14px 24px !important;
}

.processing-modal .spinner {
    border-color: rgba(217, 70, 239, 0.2) !important;
    border-top-color: #FFD700 !important;
}

/* --- 7. WITHDRAWAL SUCCESS MODAL --- */
.success-overlay {
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(12px) !important;
}

.success-modal {
    background:
        linear-gradient(165deg, rgba(13,15,23,0.92) 0%, rgba(26,29,43,0.95) 50%, rgba(13,15,23,0.92) 100%),
        url('/images/branding/goa5.png') center center / contain no-repeat !important;
    background-color: #0D0F17 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    border-radius: 24px !important;
    box-shadow:
        0 25px 80px rgba(16, 185, 129, 0.15),
        0 0 40px rgba(255, 215, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    position: relative !important;
}

.success-modal::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #10b981, #06b6d4, #FFD700, #10b981) !important;
    background-size: 300% 100% !important;
    animation: zeusShineBar 3s linear infinite !important;
    z-index: 2 !important;
    border-radius: 24px 24px 0 0 !important;
}

.success-modal .close-btn {
    background: rgba(255, 56, 100, 0.12) !important;
    border: 1px solid rgba(255, 56, 100, 0.25) !important;
    color: #FF3864 !important;
}

/* --- 8. INSUFFICIENT BALANCE MODAL (Withdraw page) --- */
.insufficient-modal-overlay {
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(12px) !important;
}

.insufficient-modal {
    background:
        linear-gradient(165deg, rgba(13,15,23,0.93) 0%, rgba(26,29,43,0.96) 50%, rgba(13,15,23,0.93) 100%),
        url('/images/branding/goa5.png') center center / contain no-repeat !important;
    background-color: #0D0F17 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    border-radius: 24px !important;
    box-shadow:
        0 25px 80px rgba(245, 158, 11, 0.1),
        0 0 40px rgba(255, 215, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    position: relative !important;
}

.insufficient-modal::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #f59e0b, #FFD700, #d946ef, #f59e0b) !important;
    background-size: 300% 100% !important;
    animation: zeusShineBar 3s linear infinite !important;
    z-index: 2 !important;
    border-radius: 24px 24px 0 0 !important;
}

/* --- 9. WELCOME POPUP (Post-signup) --- */
.welcome-popup-overlay {
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(12px) !important;
}

.welcome-popup {
    background:
        linear-gradient(165deg, rgba(13,15,23,0.88) 0%, rgba(26,29,43,0.92) 50%, rgba(13,15,23,0.88) 100%),
        url('/images/branding/goa5.png') center 30% / cover no-repeat !important;
    background-color: #0D0F17 !important;
    border: 1px solid rgba(255, 215, 0, 0.25) !important;
    border-radius: 24px !important;
    box-shadow:
        0 25px 80px rgba(255, 215, 0, 0.12),
        0 0 60px rgba(139, 92, 246, 0.08),
        0 10px 40px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    position: relative !important;
}

.welcome-popup::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #FFD700, #d946ef, #06b6d4, #FFD700) !important;
    background-size: 300% 100% !important;
    animation: zeusShineBar 3s linear infinite !important;
    z-index: 2 !important;
    border-radius: 24px 24px 0 0 !important;
}

.welcome-btn-telegram {
    background: linear-gradient(135deg, #0088cc, #229ED9) !important;
    border-radius: 14px !important;
}

.welcome-btn-play {
    background: linear-gradient(135deg, #d946ef 0%, #ec4899 50%, #FFD700 100%) !important;
    background-size: 200% 100% !important;
    animation: zeusBtnGradient 3s ease infinite !important;
    border-radius: 14px !important;
}

/* ============================================================
   SHARED ANIMATIONS
   ============================================================ */
@keyframes zeusShineBar {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes zeusBtnGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes zeusIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================================
   SHARED DECORATIVE SPARKLE OVERLAY (for all modals)
   ============================================================ */
.join-modal-content::after,
.global-popup-content::after,
.wagering-popup-content::after,
.deposit-confirm-modal::after,
.processing-modal::after,
.success-modal::after,
.insufficient-modal::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 215, 0, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(217, 70, 239, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(6, 182, 212, 0.03) 0%, transparent 40%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
    border-radius: 24px !important;
}

/* Ensure all inner content sits above the decorative layer */
.join-modal-content > *,
.global-popup-content > *,
.wagering-popup-content > *,
.deposit-confirm-modal > *,
.processing-modal > *,
.success-modal > *,
.insufficient-modal > *,
/* welcome-popup: do NOT override children position — .welcome-confetti must stay absolute */
.welcome-popup > .welcome-icon,
.welcome-popup > .welcome-title,
.welcome-popup > .welcome-bonus-badge,
.welcome-popup > .welcome-text,
.welcome-popup > .welcome-signal-text,
.welcome-popup > .welcome-btn,
.welcome-popup > .welcome-footer-note {
    position: relative !important;
    z-index: 2 !important;
}

/* ============================================================
   MOBILE ADJUSTMENTS
   ============================================================ */
@media (max-width: 480px) {
    .join-modal-content,
    .global-popup-content,
    .wagering-popup-content,
    .deposit-confirm-modal,
    .processing-modal,
    .success-modal,
    .insufficient-modal,
    .welcome-popup {
        border-radius: 20px !important;
    }

    .join-modal-content::after,
    .global-popup-content::after,
    .wagering-popup-content::after,
    .deposit-confirm-modal::after,
    .processing-modal::after,
    .success-modal::after,
    .insufficient-modal::after {
        border-radius: 20px !important;
    }
}

/* ============================================================
   ZEUS THEME — SITE-WIDE EXTENSION
   Sidebar, Footer, Game Cards, Category Cards, Popups
   ============================================================ */

/* --- SIDEBAR: Zeus Theme --- */
.categories-sidebar {
    background: linear-gradient(180deg, #0D0F17 0%, #12152a 50%, #0D0F17 100%) !important;
    border-right: 1px solid rgba(255, 215, 0, 0.12) !important;
}

.categories-sidebar .nav-link {
    color: #c4c4d4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.categories-sidebar .nav-link:hover {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.12) 0%, rgba(255, 215, 0, 0.06) 100%) !important;
    color: #FFD700 !important;
}

.categories-sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, rgba(139, 92, 246, 0.08) 100%) !important;
    color: #FFD700 !important;
    border-left: 3px solid #FFD700 !important;
    box-shadow: inset 4px 0 12px rgba(255, 215, 0, 0.08);
}

.categories-sidebar .nav-link.active .nav-icon {
    color: #FFD700 !important;
    background: rgba(255, 215, 0, 0.12) !important;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
}

.categories-sidebar .nav-icon {
    background: rgba(139, 92, 246, 0.08) !important;
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 10px;
}

.categories-sidebar .nav-link:hover .nav-icon {
    background: rgba(255, 215, 0, 0.12) !important;
    border-color: rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

.categories-sidebar .sidebar-promo {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(255, 215, 0, 0.08) 100%) !important;
    border: 1px solid rgba(255, 215, 0, 0.15) !important;
    position: relative;
    overflow: hidden;
}

.categories-sidebar .sidebar-promo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
    animation: zeusGlow 6s ease-in-out infinite alternate;
}

@keyframes zeusGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10%, 10%); }
}

.categories-sidebar::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.35) !important;
}

/* --- FOOTER: Zeus Theme --- */
.main-footer {
    background: linear-gradient(180deg, #0D0F17 0%, #080a12 100%) !important;
    border-top: 1px solid rgba(255, 215, 0, 0.12) !important;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, #8b5cf6, #06b6d4, #FFD700, transparent);
}

.main-footer .quicklinks-title {
    color: #FFD700 !important;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.main-footer .quicklinks-grid a {
    color: #94a3b8 !important;
    transition: all 0.3s;
}

.main-footer .quicklinks-grid a:hover {
    color: #FFD700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.main-footer .footer-payments h4,
.main-footer .footer-partners h4,
.main-footer .footer-social h4 {
    color: #FFD700 !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

.main-footer .payment-icons i {
    color: #FFD700 !important;
    transition: all 0.3s;
}

.main-footer .payment-icons i:hover {
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
}

.main-footer .social-link {
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
    background: rgba(139, 92, 246, 0.06) !important;
}

.main-footer .social-link:hover {
    border-color: rgba(255, 215, 0, 0.3) !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15) !important;
}

.main-footer .footer-disclaimer {
    color: #FFD700 !important;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}

.main-footer .footer-badges {
    border-bottom-color: rgba(139, 92, 246, 0.15) !important;
}

/* --- GAME CARDS: Zeus Theme (subtle, keep cards prominent) --- */
.game-card {
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.game-card:hover {
    border-color: rgba(255, 215, 0, 0.3) !important;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(255, 215, 0, 0.08),
        0 0 30px rgba(139, 92, 246, 0.06) !important;
}

.game-card.featured-card {
    border: 2px solid rgba(255, 215, 0, 0.5) !important;
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.15),
        0 0 40px rgba(139, 92, 246, 0.08) !important;
}

.game-card.featured-card:hover {
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(255, 215, 0, 0.25),
        0 0 50px rgba(139, 92, 246, 0.12) !important;
}

/* Game card shimmer: Zeus gold */
.game-card .shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.08), transparent) !important;
}

/* Game card corner accents: Zeus purple glow */
.game-card .corner-accent {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: absolute;
    background: rgba(139, 92, 246, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .corner-accent {
    opacity: 1;
}

.game-card .corner-accent.top-left { top: 6px; left: 6px; }
.game-card .corner-accent.top-right { top: 6px; right: 6px; }
.game-card .corner-accent.bottom-left { bottom: 6px; left: 6px; }
.game-card .corner-accent.bottom-right { bottom: 6px; right: 6px; }

/* Game overlay: Zeus gradient */
.game-card .game-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(13, 15, 23, 0.95) 100%) !important;
}

/* Play buttons: Zeus gold/purple */
.game-card .btn-play.btn-real,
.game-card .btn-play:not(.btn-demo) {
    background: linear-gradient(135deg, #FFD700, #f59e0b) !important;
    color: #000 !important;
    font-weight: 700 !important;
    border: none !important;
}

.game-card .btn-play.btn-real:hover,
.game-card .btn-play:not(.btn-demo):hover {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4) !important;
}

.game-card .btn-play.btn-demo {
    background: rgba(139, 92, 246, 0.2) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    color: #a78bfa !important;
}

.game-card .btn-play.btn-demo:hover {
    background: rgba(139, 92, 246, 0.3) !important;
}

/* Badge styling */
.game-card .badge-new,
.game-card .badge {
    background: linear-gradient(135deg, #FFD700, #f59e0b) !important;
    color: #000 !important;
    font-weight: 800 !important;
    text-shadow: none !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* --- CATEGORY CARDS: Zeus-Themed Appealing Design --- */
.category-grid-container {
    padding: 0 0 20px 0;
}

.category-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    overflow-x: hidden !important;
    padding: 10px 5px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* scrollbar hiding removed - using grid on mobile */

.category-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 14px 18px !important;
    min-width: 100px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(13, 15, 23, 0.9) 100%) !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    color: #b8b8c7 !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-shrink: 1;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 14px;
}

.category-card:hover {
    border-color: rgba(255, 215, 0, 0.3) !important;
    color: #FFD700 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.1), 0 4px 15px rgba(139, 92, 246, 0.08) !important;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(139, 92, 246, 0.1) 100%) !important;
    border-color: rgba(255, 215, 0, 0.4) !important;
    color: #FFD700 !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15), 0 0 30px rgba(139, 92, 246, 0.08) !important;
}

.category-card.active::before {
    opacity: 1;
}

.category-card .category-icon-wrapper {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: rgba(139, 92, 246, 0.1) !important;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.category-card:hover .category-icon-wrapper,
.category-card.active .category-icon-wrapper {
    background: rgba(255, 215, 0, 0.12) !important;
    border-color: rgba(255, 215, 0, 0.25);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
}

.category-card .category-icon-wrapper i {
    font-size: 1.2rem;
    color: #8b5cf6;
    transition: all 0.3s;
}

.category-card:hover .category-icon-wrapper i,
.category-card.active .category-icon-wrapper i {
    color: #FFD700 !important;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4));
}

.category-card .category-name {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

/* --- PROMO BANNER: Elegant inline text --- */
.promo-message-banner {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 8px 16px !important;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: none !important;
}

.promo-message-banner .promo-icon {
    font-size: 1.1rem;
}

.promo-message-banner .promo-text {
    color: #FFD700 !important;
    font-weight: 600;
    font-size: 0.95rem;
    font-style: italic;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
    font-family: 'Cinzel', 'Georgia', serif;
    letter-spacing: 0.5px;
}

/* --- GLOBAL BODY: Zeus dark background --- */
body {
    background-color: #0b0e17 !important;
}

/* --- SEARCH BAR: Zeus style --- */
.games-search-section input:focus,
#gamesPageSearch:focus,
#gameSearch:focus {
    border-color: rgba(255, 215, 0, 0.4) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1) !important;
    background: rgba(139, 92, 246, 0.06) !important;
}

/* --- LOAD MORE BUTTON: Zeus style --- */
.load-more-btn,
#loadMoreBtn,
#gamesLoadMoreBtn {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(255, 215, 0, 0.1)) !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
    color: #FFD700 !important;
    border-radius: 12px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.load-more-btn:hover,
#loadMoreBtn:hover,
#gamesLoadMoreBtn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(255, 215, 0, 0.15)) !important;
    border-color: rgba(255, 215, 0, 0.35) !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* --- DEPOSIT/WITHDRAW POPUPS: Better visibility --- */
.deposit-popup-overlay .deposit-popup-modal,
.deposit-confirm-overlay .deposit-confirm-modal {
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
    box-shadow: 0 25px 80px rgba(139, 92, 246, 0.15), 0 0 40px rgba(255, 215, 0, 0.05) !important;
}

.deposit-popup-overlay .modal-title,
.deposit-confirm-overlay .modal-title {
    color: #FFD700 !important;
    text-align: center !important;
    font-size: 1.4rem !important;
}

.deposit-popup-overlay .form-label,
.deposit-confirm-overlay .address-label {
    color: #FFD700 !important;
    font-weight: 600;
}

/* Submit button in deposit */
.deposit-popup-overlay .submit-btn,
.submit-btn {
    background: linear-gradient(135deg, #FFD700, #f59e0b) !important;
    color: #000 !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 12px !important;
    transition: all 0.3s !important;
}

.deposit-popup-overlay .submit-btn:hover,
.submit-btn:hover {
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.35) !important;
    transform: translateY(-2px) !important;
}

/* Close buttons consistency */
.close-modal-btn,
.join-modal-close {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #94a3b8 !important;
    transition: all 0.3s !important;
}

.close-modal-btn:hover,
.join-modal-close:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #f87171 !important;
}

/* --- MOBILE: Category cards as 4-col grid (not scroll) --- */
@media (max-width: 768px) {
    body { overflow-x: hidden !important; max-width: 100vw !important; }
    .main-content, .games-lobby, .homepage-games, section {
        max-width: 100vw !important; overflow-x: hidden !important; box-sizing: border-box !important;
    }
    .category-grid-container {
        padding: 0 8px 6px 8px !important; max-width: 100% !important; overflow: hidden !important; box-sizing: border-box !important;
    }
    .category-grid {
        display: grid !important; grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important; padding: 4px !important; overflow: hidden !important; max-width: 100% !important; box-sizing: border-box !important;
    }
    .category-card {
        min-width: 0 !important;
        padding: 8px 4px !important;
        gap: 3px !important;
        flex-direction: column !important;
        border-radius: 10px !important;
        flex-shrink: 1 !important;
    }
    .category-card::before {
        border-radius: 20px !important;
    }
    .category-card .category-icon-wrapper {
        width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
    }
    .category-card .category-icon-wrapper i {
        font-size: 0.75rem !important;
    }
    .category-card .category-name {
        font-size: 0.6rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
    /* Promo banner: slim inline text, no card */
    .promo-message-banner {
        background: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 6px 10px !important;
        margin-bottom: 6px !important;
        box-shadow: none !important;
    }
    .promo-message-banner .promo-icon {
        font-size: 1rem !important;
    }
    .promo-message-banner .promo-text {
        font-size: 0.82rem !important;
        font-style: italic;
    }
    /* Reduce search bar spacing */
    .games-search-section {
        padding: 8px 0 !important;
        margin-bottom: 10px !important;
    }
}

/* ============================================================
   MOBILE GAME GRID FIX — Force 3 columns, proper card sizing
   This MUST be at the end of the file for highest priority
   ============================================================ */
@media (max-width: 768px) {
    .games-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        padding: 0 4px !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    .game-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        aspect-ratio: 360 / 472 !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }
    .game-card .game-thumbnail,
    .game-card .game-thumbnail img {
        width: 100% !important;
        height: 100% !important;
    }
    /* Ensure the games lobby container doesn't have extra padding */
    .games-lobby,
    .homepage-games {
        padding: 4px 8px !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    /* Smaller buttons on mobile cards */
    .game-card .btn-play,
    .game-card .btn-demo,
    .game-card .btn-real {
        width: 85px !important;
        padding: 6px 8px !important;
        font-size: 0.65rem !important;
    }
    .game-card .game-buttons {
        gap: 4px !important;
        padding: 6px !important;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 0 5px !important;
    }
    .game-card {
        border-radius: 8px !important;
    }
    .game-card .btn-play,
    .game-card .btn-demo,
    .game-card .btn-real {
        width: 75px !important;
        padding: 5px 6px !important;
        font-size: 0.6rem !important;
    }
}
/* ============================================================
   ZEUS POPUP SYSTEM — Unified popup design for all modals
   ============================================================ */
.zeus-popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: zeusFadeIn 0.4s ease;
}
@keyframes zeusFadeIn { from { opacity: 0; } to { opacity: 1; } }

.zeus-popup-content {
    background: linear-gradient(145deg, #1a1d2e 0%, #0d0f17 50%, #1a1d2e 100%);
    border-radius: 24px;
    padding: 30px 25px 35px;
    max-width: 420px;
    width: 92%;
    position: relative;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.15), 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.2);
    animation: zeusSlideUp 0.5s ease;
    overflow: hidden;
    text-align: center;
}
@keyframes zeusSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.zeus-popup-confetti {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255, 215, 0, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 85% 15%, rgba(217, 70, 239, 0.12) 1px, transparent 1px),
        radial-gradient(circle at 50% 80%, rgba(98, 70, 234, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 25% 70%, rgba(255, 56, 100, 0.1) 1px, transparent 1px);
    background-size: 8px 8px, 12px 12px, 10px 10px, 14px 14px;
    animation: zeusConfetti 3s ease-in-out infinite alternate;
}
@keyframes zeusConfetti { from { opacity: 0.4; } to { opacity: 0.8; } }

.zeus-popup-icon {
    font-size: 3rem;
    margin: 0 0 10px;
    position: relative;
    z-index: 2;
    animation: zeusBounce 1s ease infinite;
}
@keyframes zeusBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.zeus-popup-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFD700;
    margin: 0 0 8px;
    text-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
    position: relative;
    z-index: 2;
}

.zeus-popup-subtitle {
    color: #c0c0c0;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.zeus-popup-text {
    color: #c0c0c0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 20px;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

.zeus-popup-info-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.zeus-popup-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 0.95rem;
}
.zeus-popup-info-row:last-child { border-bottom: none; }
.zeus-info-gold { color: #FFD700; font-weight: 700; }
.zeus-info-green { color: #4ade80; font-weight: 700; }

.zeus-popup-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.zeus-popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 10px;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border: none;
    box-sizing: border-box;
}

.zeus-btn-primary {
    background: linear-gradient(135deg, #d946ef, #ec4899);
    color: #fff;
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.3);
}
.zeus-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 70, 239, 0.4);
    color: #fff;
    text-decoration: none;
}

.zeus-btn-gold {
    background: linear-gradient(135deg, #FFD700, #f59e0b);
    color: #1a1d2e;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}
.zeus-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    color: #1a1d2e;
    text-decoration: none;
}

.zeus-btn-outline {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
}
.zeus-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #FFD700;
    border-color: rgba(255, 215, 0, 0.3);
    text-decoration: none;
}

/* Mobile */
@media (max-width: 480px) {
    .zeus-popup-content { max-width: 95%; padding: 25px 18px 30px; }
    .zeus-popup-title { font-size: 1.3rem; }
    .zeus-popup-icon { font-size: 2.5rem; }
    .zeus-popup-btn { padding: 12px 16px; font-size: 0.9rem; }
    .zeus-popup-text { font-size: 0.85rem; padding: 0; }
}