/* |--------------------------------------------------------------------------
   | BELLINK LIVE 2026 - MASTER FRONTEND UI (fyre_front.css)
   | Version: 50.0 (Final Polish Edition)
   | Focus: Jitter-Free Hover, Interactive Zoom, & S23 Ultra Optimization
   |-------------------------------------------------------------------------- */

:root {
    /* Primary Canvas */
    --midnight: #050505; /* Obsidian Black */
    --midnight-glass: rgba(5, 5, 5, 0.92);
    
    /* Neon Accents */
    --neon-indigo: #6366f1; /* Electric Indigo */
    --neon-magenta: #d946ef; /* Cyber Magenta */
    --neon-cyan: #06b6d4;    /* Tech Cyan */
    
    /* UI Mapping */
    --gold: var(--neon-indigo); /* Replaces gold with Indigo */
    --gold-glow: rgba(99, 102, 241, 0.3);
    --emerald-sage: var(--neon-cyan); /* Replaces green with Cyan */
    
    /* Borders & Glassmorphism */
    --glass-border: rgba(255, 255, 255, 0.08);
    --sidebar-width: 280px;
    
    /* Smoothness for S23 Ultra */
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --neon-shadow: 0 0 15px var(--gold-glow);
}

/* 1. SCROLLBARS & BRAND TITLES */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--indigo), var(--midnight)); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }

.site-navbar-title, .logo-lg, .header__logo strong {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    background: linear-gradient(135deg, #ffffff 0%, #6366f1 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.15));
}

.site-navbar-title {
    position: absolute !important;
    left: 50% !important; top: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 14px !important; letter-spacing: 3px !important;
    white-space: nowrap !important; margin: 0 !important;
}

/* 2. BENTO SIDEBAR */
.bento-sidebar {
    background: var(--midnight-glass) !important;
    backdrop-filter: blur(25px);
    width: var(--sidebar-width) !important;
    height: 100vh; position: fixed; left: 0; top: 0; z-index: 9999;
    padding-top: 75px !important; border-right: 1px solid var(--glass-border);
    overflow-y: auto;
}

.nav-item {
    display: flex !important; align-items: center !important;
    padding: 12px 20px !important; gap: 12px;
    transition: var(--transition-smooth); border-radius: 12px; margin: 4px 10px;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: inset 0 0 0 1px var(--gold), 0 0 15px var(--gold-glow) !important;
}

/* 3. WINNING TICKER */
.winning-ticker-container {
    display: flex; align-items: center; background: var(--midnight-glass);
    border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
    height: 45px; overflow: hidden; margin-bottom: 20px; width: 100%;
}

.ticker-label {
    background: var(--gold); color: var(--midnight); font-weight: 900;
    font-size: 10px; padding: 0 20px; height: 100%; display: flex; align-items: center;
}

.ticker-move { display: inline-block; animation: tickerLoop 30s linear infinite; white-space: nowrap; }
@keyframes tickerLoop { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* 4. PROFESSIONAL GAME SHELVES & GRID */
.category-shelf { margin-bottom: 45px; padding: 0 10px; }

.category-shelf-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 15px; border-bottom: 1px solid var(--glass-border); padding-bottom: 8px;
}

.category-shelf-title {
    font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 16px;
    color: #ffffff; letter-spacing: 2px; display: flex; align-items: center; gap: 10px;
}

.title-accent { width: 4px; height: 18px; background: var(--gold); display: inline-block; box-shadow: 0 0 10px var(--gold-glow); }

.professional-high-density-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 12px !important; width: 100% !important;
    align-items: start !important; /* LOCKS ROW ALIGNMENT (V48 Fix) */
}
/* --- FEATURED OVERLAY REVEAL LOGIC --- */

/* 1. Show the overlay when the featured item is hovered */
.featured-item-mini:hover .featured-overlay-revealer {
    opacity: 1 !important;
}

/* 2. Ensure buttons inside featured tiles scale properly */
.featured-overlay-revealer .btn-img-action {
    transform: scale(0.9); /* Slightly smaller for the mini grid */
    transition: transform 0.2s ease;
}

.featured-overlay-revealer .btn-img-action:hover {
    transform: scale(1);
}

/* 3. Cleanup the Featured Item Container */
.featured-item-mini {
    border-radius: 12px;
    border: 1px solid rgba(217, 70, 239, 0.2);
    transition: border-color 0.3s ease;
}

.featured-item-mini:hover {
    border-color: var(--neon-magenta);
}
/* --- V56 COMPACT BUTTONS FOR FEATURED GRID --- */

.btn-mini {
    display: block !important;
    width: 100% !important;
    max-width: 90px; /* Limits the horizontal size of the button image */
    margin: 0 auto; /* Centers the button image */
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    transition: transform 0.2s ease;
}

.btn-mini img {
    width: 100%;
    height: auto;
    display: block;
}

.btn-mini:hover {
    transform: scale(1.1); /* Small pop for feedback */
}

/* S23 Ultra Optimization: Ensure the gap is tight on small screens */
.game-item__actions, 
.featured-hover-overlay .game-item__actions {
    display: flex !important;
    flex-direction: column !important; /* Forces vertical stacking */
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    gap: 12px !important; /* Adds space if you had multiple buttons */
}
/* 5. TILE INTERACTIVE LOGIC (V50 Polish) */
.game-card-inner {
    background: #1e293b; border-radius: 8px; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05); position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.game-card-img-container {
    position: relative !important;
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    overflow: hidden !important;
    background: #0f172a !important;
}

.game-img-mini {
    width: 100% !important; height: 100% !important;
    display: block !important; 
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Reveal & Interactive Zoom */
.game-card-overlay {
    position: absolute !important; top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    background: rgba(15, 23, 42, 0.85) !important;
    display: flex !important; align-items: center; justify-content: center;
    opacity: 0 !important; visibility: hidden !important;
    transition: all 0.3s ease; z-index: 100;
}

.game-item-mini:hover .game-card-overlay { opacity: 1 !important; visibility: visible !important; }
.game-item-mini:hover .game-img-mini { transform: scale(1.1); }
.game-item-mini:hover .game-card-inner { transform: translateY(-5px); border-color: var(--gold); }


/* Typography Refinement */
.game-title-mini {
    font-size: 12px; font-weight: 700; color: #64748b; padding: 6px;
    text-align: center; display: block; white-space: nowrap; 
    overflow: hidden; text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.game-item-mini:hover .game-title-mini { color: var(--gold) !important; }

/* Action Buttons Kit */

.game-item__actions .button { 
    padding: 8px 5px !important; font-size: 10px !important; font-weight: 800; 
    text-align: center; border-radius: 6px; text-transform: uppercase; border: none !important;
}
.button-primary { color: var(--midnight) !important; box-shadow: 0 4px 15px var(--gold-glow); }
.button-secondary { background: rgba(255, 255, 255, 0.15) !important; color: white !important; }

/* 6. LOAD MORE & UTILITIES */
.load-more-wrapper {
    grid-column: 1 / -1 !important; width: 100% !important;
    display: block !important; margin-top: 0 !important; 
    padding: 30px 0 50px 0 !important; text-align: center;
}

.game-hidden { display: none !important; }
.game-visible { display: block !important; animation: fadeInUp 0.5s ease forwards; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Back to Top Feature Styling */
#back-to-top {
    position: fixed; bottom: 30px; right: 30px; z-index: 9999;
    width: 50px; height: 50px; background: var(--gold);
    color: var(--midnight); border-radius: 50%; display: none;
    align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); border: none;
}

/* 7. MOBILE RESPONSIVE (S23 Ultra) */
@media screen and (max-width: 1024px) {
    .bento-sidebar { transform: translateX(-110%); width: 85vw !important; }
    .carcass { margin-left: 0 !important; width: 100% !important; padding: 10px !important; }
    .professional-high-density-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
    .winning-ticker-container { height: 38px; }
}

@media (pointer: coarse) {
    .button-primary, .button-secondary { min-height: 44px; display: flex; align-items: center; justify-content: center; }
}
/* |--------------------------------------------------------------------------
   | 2026 FRONT LOBBY UPDATE - SIDEBAR ICONS & CLEANUP
   |-------------------------------------------------------------------------- */

/* A. HIDE THE OLD HORIZONTAL MENUS */
.category-panel, 
.providers.ng-isolate-scope, 
.providers-mob.providers-mob--with-text {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* B. STYLE THE SIDEBAR PROVIDER ICONS */
.nav-item {
    display: flex !important;
    align-items: center !important;
    padding: 10px 20px !important;
    gap: 12px; /* Space between icon and text */
}

.sidebar-provider-icon {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain;
    /* Optional: If you want them to glow like your Artigiano Sage icons */
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.2)); 
    transition: transform 0.3s ease;
}

.nav-item:hover .sidebar-provider-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

/* Ensure the text doesn't wrap awkwardly on small screens */
.nav-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
/* Sidebar Jackpot "Neon" Enhancements */
.sidebar-jp-item {
    background: rgba(99, 102, 241, 0.05) !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
    box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.1);
    transition: var(--transition-smooth);
}

.sidebar-jp-item:hover {
    border-color: var(--neon-indigo) !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.jackpot-value {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

/* User Balance Pill */
.user-balance-pill {
    background: var(--neon-indigo) !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Game Card "Neon Focus" Effect */
.game-item-mini:hover .game-card-inner {
    border: 2px solid var(--neon-magenta) !important;
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.4);
    transform: translateY(-5px);
}

/* Search Bar Glow */
#game-search:focus {
    border-color: var(--neon-indigo) !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.08) !important;
}
@keyframes cyber-pulse {
    0% { opacity: 0.8; filter: drop-shadow(0 0 5px var(--neon-indigo)); }
    50% { opacity: 1; filter: drop-shadow(0 0 15px var(--neon-indigo)); }
    100% { opacity: 0.8; filter: drop-shadow(0 0 5px var(--neon-indigo)); }
}

.sidebar-header img {
    animation: cyber-pulse 3s infinite ease-in-out;
}
#metamaskSend {
    background: linear-gradient(135deg, #6366f1, #a855f7) !important; /* Indigo to Purple gradient */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    color: white !important;
    font-weight: 900;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#metamaskSend:hover {
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
}
/* --- V65: CYBER-CYAN ACCENTS & HOVER REVEAL --- */

/* 1. The Cyan Pulse for Featured Titles */
.cyber-cyan-title {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.cyber-pulse-text {
    animation: cyanPulse 3s infinite ease-in-out;
}

@keyframes cyanPulse {
    0% { text-shadow: 0 0 5px rgba(6, 182, 212, 0.2); opacity: 0.6; }
    50% { text-shadow: 0 0 15px rgba(6, 182, 212, 0.6); opacity: 1; }
    100% { text-shadow: 0 0 5px rgba(6, 182, 212, 0.2); opacity: 0.6; }
}

/* 2. Global Hover Reveal (Fixed for Wazdan & Pragmatic) */
.featured-item-mini:hover .featured-hover-overlay,
.game-item-mini:hover .game-card-overlay {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 3. The Interactive Glow Pulse (Magenta for Tiles) */
@keyframes cyberPulse {
    0% { box-shadow: 0 0 10px rgba(217, 70, 239, 0.4); }
    50% { box-shadow: 0 0 25px rgba(217, 70, 239, 0.8); }
    100% { box-shadow: 0 0 10px rgba(217, 70, 239, 0.4); }
}

.featured-item-mini:hover, 
.game-card-inner:hover {
    border: 2px solid var(--neon-magenta) !important;
    animation: cyberPulse 2s infinite ease-in-out;
}
/* --- V66: BUTTON TEXT OVERLAY --- */

//* --- V71: REFINED COMPACT BUTTONS WITH NEON PULSE --- */

/* 1. The Button Wrapper (Sized for S23 Ultra) */
/* --- V73: JITTER-FREE COMPACT BUTTONS --- */

.fyre-btn-img {
    display: flex !important;
    position: relative !important;
    width: 100% !important;
    max-width: 105px !important; 
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
    /* Move transition here to ensure it animates smoothly */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* 2. Image Layers (Base & Hover) */
.btn-base {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    transition: opacity 0.2s ease;
}

.btn-hover {
    display: block !important;
    position: absolute !important; 
    top: 0;
    left: 0;
    width: 100% !important;
    height: auto !important;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* 3. The Text Label (Centered + Pulsing) */
.btn-label {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
    color: #ffffff !important;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    animation: btnTextPulse 2s infinite ease-in-out;
}

/* 4. FIXED: INTERACTIVE STATES (ANTI-SHAKE) */
/* We trigger the scale on the PARENT HOVER so the hit area is stable */
.game-card-overlay:hover .fyre-btn-img,
.featured-item-mini:hover .fyre-btn-img {
    transform: scale(1.1) !important;
}

.game-card-overlay:hover .btn-base,
.featured-item-mini:hover .btn-base { 
    opacity: 0; 
}

.game-card-overlay:hover .btn-hover,
.featured-item-mini:hover .btn-hover { 
    opacity: 1; 
}

/* 5. Animations */
@keyframes btnTextPulse {
    0% { opacity: 0.8; text-shadow: 0 0 5px var(--neon-magenta); }
    50% { opacity: 1; text-shadow: 0 0 15px var(--neon-magenta), 0 0 20px var(--neon-indigo); }
    100% { opacity: 0.8; text-shadow: 0 0 5px var(--neon-magenta); }
}

/* 6. Extra Small for Featured Mini-Grid */
.featured-item-mini .fyre-btn-img {
    max-width: 85px !important;
}
.featured-item-mini .btn-label {
    font-size: 8px !important;
}
/* --- V74: CYBER-PROFILE UI REBUILD --- */

/* Modal Container Overhaul */
/* --- V81: MASTER CYBER-PROFILE UI --- */

#my-account.modal {
    display: none;
    position: fixed !important;
    /* Static anchor prevents the corner-jump */
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1) !important;
    
    max-width: 520px !important; /* Compact scaling for S23 Ultra */
    width: 92% !important;
    margin: 0 !important;
    
    border-radius: 25px !important;
    overflow: hidden;
    background: var(--midnight-glass) !important;
    backdrop-filter: blur(35px) !important;
    border: 2px solid var(--neon-magenta) !important;
    z-index: 100000 !important;
    color: #fff !important;
    
    /* Unified pulse and entrance animations */
    animation: modalPulseGlow 3s infinite ease-in-out, 
               centeredSlideIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes centeredSlideIn {
    from { opacity: 0; transform: translate(-50%, -40%) scale(0.92); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes modalPulseGlow {
    0%, 100% { 
        border-color: rgba(217, 70, 239, 0.6); 
        box-shadow: 0 0 15px rgba(217, 70, 239, 0.2), inset 0 0 10px rgba(217, 70, 239, 0.1); 
    }
    50% { 
        border-color: rgba(217, 70, 239, 1); 
        box-shadow: 0 0 30px rgba(217, 70, 239, 0.5), inset 0 0 20px rgba(217, 70, 239, 0.2); 
    }
}

.modal__header {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    padding: 15px 20px !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

/* Tab Navigation */
.popup__menu {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 12px;
    padding: 5px !important;
    display: flex !important;
    gap: 8px;
    margin: 15px 15px 25px 15px;
}

.popup__link {
    display: flex !important;
    align-items: center !important;     /* Vertical centering */
    justify-content: center !important;  /* Horizontal centering */
    
    height: 45px !important;            /* Define a consistent height */
    padding: 0 15px !important;         /* Remove top/bottom padding to avoid pushing text */
    
    flex: 1;
    text-align: center;
    border-radius: 8px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    color: #94a3b8 !important;
    cursor: pointer;
}

/* Ensure the active tab follows the same centering logic */
.popup__link.active {
    background: var(--neon-indigo) !important;
    color: #fff !important;
    box-shadow: 0 0 15px var(--gold-glow);
}

/* Stat Cards */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 15px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--neon-indigo);
}

.stat-card.bonus-card::after { background: var(--neon-magenta); }

.stat-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

/* History Tables */
.table--history {
    background: transparent !important;
    border-collapse: separate;
    border-spacing: 0 6px;
    width: 100%;
}

.table--history thead th {
    color: var(--neon-cyan);
    font-size: 9px;
    text-transform: uppercase;
    padding: 10px !important;
}

.table--history tbody tr {
    background: rgba(255, 255, 255, 0.03) !important;
    transition: var(--transition-smooth);
}

.table--history td {
    padding: 10px !important;
    color: #cbd5e1 !important;
    font-size: 11px;
}

/* Warning Heartbeat */
.deactivate-pulse {
    animation: dangerHeartbeat 2.5s infinite ease-in-out !important;
}

@keyframes dangerHeartbeat {
    0%, 100% { box-shadow: 0 0 5px rgba(244, 63, 94, 0.2); border-color: rgba(244, 63, 94, 0.3); }
    50% { box-shadow: 0 0 15px rgba(244, 63, 94, 0.6); border-color: rgba(244, 63, 94, 1); transform: scale(1.02); }
}

/* MetaMask Interactive Glow */
.deposit__item #metamaskBtn img {
    transition: transform 0.3s ease;
}

.deposit__item:hover #metamaskBtn img {
    transform: rotate(10deg) scale(1.2);
    filter: drop-shadow(0 0 10px #e27625) !important;
}

/* Responsive Mobile Fix */
@media screen and (max-width: 768px) {
    .profile-stats-grid { grid-template-columns: 1fr; }
    .popup__menu { margin: 10px; }
    .popup__link { font-size: 9px; }
}
/* --- V82: METAMASK BUTTON REALIGNMENT --- */

/* 1. Force a vertical stack for MetaMask fields */
.metamask-form-wrap, 
#my-account .deposit__cont .modal__content {
    display: flex !important;
    flex-direction: column !important; /* Forces button BELOW the fields */
    gap: 15px !important; /* Adds professional spacing between elements */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Ensure fields and buttons take up full width */
#my-account .input__inner, 
#metamaskSend.popup__button {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* 3. Clean up the button appearance */
#metamaskSend.popup__button {
    padding: 14px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--neon-indigo) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
    border-radius: 8px !important;
}
/* --- V86: MODAL CLOSE ANCHOR & DEPTH --- */

/* 1. Ensure the header allows for floating elements */
.modal__header {
    position: relative !important;
    padding-right: 70px !important; /* Forces a 'buffer zone' so buttons can't reach the X */
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}

/* 2. The Close Icon: Absolute positioning pulls it out from 'under' the buttons */
.fyre-modal-close {
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    
    /* Neon Cyan to ensure it's visible against the dark glass */
    color: var(--neon-cyan) !important;
    font-size: 38px !important; /* Large hit-box for S23 Ultra users */
    font-weight: 200 !important;
    line-height: 0.8 !important;
    cursor: pointer !important;
    
    /* This forces it to sit on top of the 'Deactivate' button layer */
    z-index: 999999 !important;
    
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    padding: 10px; /* Expands the touchable area without changing visual size */
}

.fyre-modal-close:hover {
    color: var(--neon-magenta) !important;
    text-shadow: 0 0 15px var(--neon-magenta);
    transform: rotate(90deg);
}

/* 3. Preventing Button Overlap */
.header-action-wrap {
    display: flex;
    gap: 10px;
    margin-right: 15px; /* Keeps the buttons away from the X zone */
}
/* --- V89: FIXED BOTTOM NAV FOR MOBILE --- */
.fyre-mobile-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 75px !important;
    background: var(--midnight-glass) !important;
    backdrop-filter: blur(25px) !important;
    border-top: 1px solid var(--glass-border) !important;
    z-index: 99999 !important; /* Forces it above all game tiles */
    display: none;
}

@media screen and (max-width: 1024px) {
    .fyre-mobile-nav { display: block !important; }
    /* Push the main content container up to clear the nav height */
    .carcass, #main-content-wrapper { padding-bottom: 90px !important; }
}