/* ==========================================================================
   GHOSTSENSIX - Neon Violet / Astral Theme Stylesheet
   Tailored for international audience & @GhostSensix brand identity
   ========================================================================== */

:root {
    --bg-base: #080511;
    --bg-sidebar: #0c0818;
    --bg-surface: #110c22;
    --bg-card: #160f2e;
    --bg-card-hover: #221844;
    --bg-input: #0e091b;
    
    --border: #281b4b;
    --border-light: #3d2970;

    --red: #a855f7;          /* Violet Primary Accent */
    --red-hover: #9333ea;
    --primary: #a855f7;      /* Glowing Neon Violet */
    --primary-hover: #c084fc;
    --primary-glow: rgba(168, 85, 247, 0.45);
    
    --accent-ghost: #c084fc;
    --accent-glow: rgba(192, 132, 252, 0.35);

    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.14);
    --blue: #a855f7;
    --yellow: #f59e0b;

    --text-primary: #f5f2fc;
    --text-secondary: #a99fc4;
    --text-muted: #746893;
}

/* Custom Ghost Theme Accents */
body {
    background-color: var(--bg-base) !important;
    color: var(--text-primary);
}

.ghost-gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #d8b4fe 45%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.brand-logo-img {
    border-radius: 50% !important;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.55);
    border: 1.5px solid rgba(192, 132, 252, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-logo-img:hover {
    transform: scale(1.06) rotate(3deg);
    box-shadow: 0 0 24px rgba(192, 132, 252, 0.85);
}

.spotlight-card {
    background: linear-gradient(135deg, rgba(22, 15, 46, 0.95) 0%, rgba(34, 24, 68, 0.85) 100%) !important;
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.18) !important;
}

.spotlight-card:hover {
    border-color: rgba(192, 132, 252, 0.6) !important;
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.3) !important;
}

.btn-primary, .btn-unlock, .btn-glow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 22px !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.45) !important;
    border: none !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

.btn-primary:hover, .btn-unlock:hover {
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%) !important;
    box-shadow: 0 6px 24px rgba(192, 132, 252, 0.7) !important;
    transform: translateY(-1.5px) !important;
}

.script-row:hover, .script-card:hover {
    border-color: rgba(168, 85, 247, 0.55) !important;
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.2) !important;
}

.tag-badge, .badge-ghost {
    background: rgba(168, 85, 247, 0.18) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
}

.tab-btn.active {
    background: rgba(168, 85, 247, 0.2) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.22) 0%, transparent 100%) !important;
    color: #ffffff !important;
    border-left: 3px solid var(--primary) !important;
}

/* Game Category Dropdown Popup */
.core-game-dropdown-menu.open,
.core-game-dropdown-menu.show {
    display: flex !important;
    background: #110c22 !important;
    border: 1px solid #3d2970 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(168, 85, 247, 0.25) !important;
    z-index: 99999 !important;
}

/* sUNC Modal Dark Violet Theme */
.sunc-modal-box {
    background: #110c22 !important;
    border: 1px solid #3d2970 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(168, 85, 247, 0.2) !important;
}

/* Locker Modal Theme */
.locker-box {
    background: #110c22 !important;
    border: 1px solid #3d2970 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(168, 85, 247, 0.2) !important;
}

/* ==========================================================================
   HERO SPOTLIGHT & RESPONSIVE LAYOUT ENHANCEMENTS
   ========================================================================== */
.hero-spotlight {
    margin-bottom: 24px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    position: relative !important;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    align-items: center;
    padding: 28px 32px;
}

.spotlight-content h2 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 12px 0 8px 0;
    line-height: 1.3;
}

.spotlight-content p {
    font-size: 14px;
    color: #a99fc4;
    line-height: 1.6;
    margin-bottom: 20px;
}

.spotlight-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-secondary-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

.btn-secondary-action:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-1.5px);
}

.spotlight-banner-wrap {
    text-align: right;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    background: #090514;
}

.spotlight-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.25);
    object-fit: cover;
}

/* ==========================================================================
   MOBILE RESPONSIVE BREAKPOINT (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Main container padding */
    .app-main {
        padding: 0 12px 85px 12px !important;
    }

    /* Mobile Search Bar */
    .mobile-search-box {
        margin: 10px 0 16px 0 !important;
    }

    /* Hero Spotlight on Mobile: Stack cleanly with Banner on Top */
    .spotlight-grid {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 16px !important;
        padding: 18px 16px !important;
    }

    .spotlight-banner-wrap {
        width: 100% !important;
        max-height: 180px !important;
        text-align: center !important;
        border-radius: 12px !important;
    }

    .spotlight-banner-img {
        width: 100% !important;
        max-height: 180px !important;
        object-fit: cover !important;
    }

    .spotlight-content h2 {
        font-size: 21px !important;
        margin: 8px 0 6px 0 !important;
    }

    .spotlight-content p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
    }

    .spotlight-actions {
        display: flex !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .spotlight-actions .btn-primary,
    .spotlight-actions .btn-secondary-action {
        flex: 1 1 0 !important;
        justify-content: center !important;
        padding: 11px 12px !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
    }

    /* Section Headings */
    .section-head {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .section-head-title {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .section-head-title h3 {
        font-size: 14.5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 !important;
    }

    .section-pill-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
        flex-shrink: 0 !important;
    }

    .btn-view-all {
        font-size: 11.5px !important;
        padding: 6px 10px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        border-radius: 6px !important;
    }

    /* Marquee Cards on Mobile */
    .executor-marquee-card {
        min-width: 180px !important;
        padding: 8px 12px !important;
        gap: 10px !important;
    }

    .executor-marquee-card .marquee-name {
        font-size: 13px !important;
    }

    .executor-marquee-card .marquee-sunc-pill {
        font-size: 10.5px !important;
    }

    /* Top navbar on mobile */
    .core-simple-navbar {
        padding: 0 12px !important;
    }

    .core-brand-title {
        font-size: 15px !important;
    }

    .core-action-btn {
        padding: 6px 10px !important;
    }
}

/* ==========================================================================
   SPONSOR GATE GHOST THEME (ASTRAL VIOLET)
   ========================================================================== */
.lootlabs-gate-overlay {
    background: radial-gradient(circle at 50% 18%, rgba(168, 85, 247, 0.22) 0%, rgba(168, 85, 247, 0.08) 35%, #080511 75%) !important;
}

.gate-stage {
    background: rgba(18, 12, 36, 0.88) !important;
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 45px rgba(168, 85, 247, 0.25) !important;
}

.gate-emblem {
    border-color: #a855f7 !important;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.6) !important;
}

.gate-title-glow {
    background: linear-gradient(135deg, #ffffff 0%, #d8b4fe 40%, #a855f7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.gate-btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%) !important;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.55), 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.gate-btn-primary:hover {
    box-shadow: 0 0 35px rgba(192, 132, 252, 0.8) !important;
    transform: translateY(-2px) !important;
}

.gate-btn-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(168, 85, 247, 0.35) !important;
    color: #f5f2fc !important;
}

.gate-btn-secondary:hover {
    background: rgba(168, 85, 247, 0.18) !important;
    border-color: #a855f7 !important;
}

.gate-status-pill {
    background: rgba(168, 85, 247, 0.15) !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    color: #d8b4fe !important;
}

.gate-status-dot {
    background: #a855f7 !important;
    box-shadow: 0 0 10px #c084fc !important;
}

.gate-chip {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(168, 85, 247, 0.22) !important;
    color: #e2e8f0 !important;
}

.gate-fade-out {
    animation: gateFadeOut 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes gateFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.97);
        pointer-events: none;
    }
}

/* ==========================================================================
   HIGH-PERFORMANCE HARDWARE ACCELERATION & ZERO-LAG ENGINES
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #07040f !important;
    background-image: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.08) 0%, transparent 65%) !important;
    background-attachment: scroll !important; /* Critical: eliminates full-screen repaint lag on scroll */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeSpeed;
}

/* Eliminate expensive backdrop-filters from high-frequency scrolling & animating elements */
.executor-marquee-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #120c24 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(168, 85, 247, 0.22) !important;
    contain: content;
    transform: translateZ(0);
}

.executors-marquee-container {
    mask-image: none !important; /* Critical: eliminates GPU offscreen alpha mask repaint on every frame */
    -webkit-mask-image: none !important;
    overflow: hidden !important;
    contain: layout paint;
}

.executors-marquee-track {
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.script-row, .script-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #110b24 !important;
    border: 1px solid rgba(168, 85, 247, 0.22) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
    contain: content;
    transform: translateZ(0);
}

.script-row:hover, .script-card:hover {
    background: #170f30 !important;
    border-color: rgba(168, 85, 247, 0.5) !important;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.22) !important;
}

.script-row::before {
    display: none !important; /* Remove expensive radial mouse tracking calculation */
}

.hero-spotlight {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(18, 12, 36, 0.96) !important;
    contain: content;
    transform: translateZ(0);
}

/* Smooth Navigation */
.core-simple-navbar {
    background: rgba(8, 5, 17, 0.94) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.core-bottom-nav {
    background: rgba(8, 5, 17, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

