/* OVERRIDE LEGACY CSS ROOT VARIABLES TO PURE PITCH BLACK */
:root {
    --header-bg-color: #0d0b0c !important;
    --body-bg-color: #0d0b0c !important;
    --sidebar-bg-color: #0d0b0c !important;
    --footer-bg-color: #0d0b0c !important;
    --dark-color: #0d0b0c !important;
}

/* KILL LEGACY NAVY/TEAL BACKGROUND PATTERNS & GRADIENTS (.wrapper::before in style.min.css) */
.wrapper::before,
.wrapper::after,
body::before,
body::after,
.content::before,
.content::after,
#app::before,
#app::after {
    display: none !important;
    background: none !important;
    content: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

/* ULTIMATE PURE OBSIDIAN BLACK OVERRIDE FOR ALL CONTAINER & LAYOUT ELEMENTS */
html, body, .guest-mode, main, .wrapper, .body-wrapper, .page-wrapper, .content, .container-fluid {
    background-color: #0d0b0c !important;
    background-image: none !important;
}

/* CLEAN 1PX THIN COLORFUL CARD BORDERS (NO WHITE, NO THICK BRACKETS) */
.thin-border-amber {
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2) !important;
}

.thin-border-amber:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.45) !important;
}

.thin-border-emerald {
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2) !important;
}

.thin-border-emerald:hover {
    border-color: #10b981 !important;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.45) !important;
}

.thin-border-purple {
    border: 1px solid rgba(168, 85, 247, 0.45) !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2) !important;
}

.thin-border-purple:hover {
    border-color: #a855f7 !important;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.45) !important;
}

.thin-border-gold-champion {
    border: 1px solid #f59e0b !important;
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.5) !important;
}

/* Remove corner frame thick brackets */
.xports-corner-frame::before,
.xports-corner-frame::after {
    display: none !important;
    content: none !important;
}

/* Modernized UI Fixes & Utilities */
.fw-black {
    font-weight: 900 !important;
}

.ls-1 {
    letter-spacing: 1px !important;
}

.ls-2 {
    letter-spacing: 2px !important;
}

.ls-3 {
    letter-spacing: 3px !important;
}

.extra-small {
    font-size: 0.7rem !important;
}

.text-white-20 {
    color: rgba(255, 255, 255, 0.2) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.z-100 {
    z-index: 10000 !important;
}

.pointer-events-none {
    pointer-events: none !important;
}

/* Custom Animations */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.glow-animation {
    animation: pulse-glow 2s infinite;
}

/* Scrollbar Fixes */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px !important;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #0d0b0c !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #d97706 !important;
    border-radius: 4px !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #f59e0b !important;
}

/* Mobile Floating Navigation Global Fixes */
@media (max-width: 991px) {
    body {
        padding-bottom: 100px !important;
    }

    .bottom-menu {
        display: none !important;
    }

    /* Ensure content doesn't get hidden behind the floating bar */
    .wrapper {
        margin-bottom: 20px !important;
    }
}

/* Character Glow Effects */
.purple-neon-glow {
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5), 0 0 20px rgba(168, 85, 247, 0.3);
}

.cyan-neon-glow {
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5), 0 0 20px rgba(6, 182, 212, 0.3);
}

.amber-neon-glow {
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5), 0 0 20px rgba(245, 158, 11, 0.3);
}

/* High-Tech Gaming & Rewards Typography Styling */
.gaming-title-style {
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.025em !important;
    line-height: 0.92 !important;
}

.text-glow-amber {
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.65)) drop-shadow(0 0 40px rgba(245, 158, 11, 0.35));
}

.text-glow-emerald {
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.65)) drop-shadow(0 0 40px rgba(16, 185, 129, 0.35));
}

.text-glow-silver {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

/* ==========================================================================
   HIGH-PERFORMANCE SCROLL REVEAL TRANSITIONS
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.93) translateY(16px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

/* Revealed Active State */
.scroll-reveal.is-revealed,
.scroll-reveal-left.is-revealed,
.scroll-reveal-right.is-revealed,
.scroll-reveal-scale.is-revealed {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

/* Stagger Delay Classes */
.delay-75 { transition-delay: 75ms !important; }
.delay-100 { transition-delay: 100ms !important; }
.delay-150 { transition-delay: 150ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-250 { transition-delay: 250ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-350 { transition-delay: 350ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }

/* ==========================================================================
   MOBILE VIEWPORT & ZOOM STABILITY FIXES
   ========================================================================== */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent layout breaking overflow on mobile devices */
.min-h-screen, main, #app, .wrapper, .page-wrapper {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* Prevent unwanted double-tap zoom delay & iOS input focus auto-zoom glitch */
* {
    touch-action: manipulation;
}

@media screen and (max-width: 768px) {
    input, select, textarea, button {
        touch-action: manipulation;
    }
    input[type="text"],
    input[type="number"],
    input[type="password"],
    input[type="email"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }
}