/* ============================================================
   JIMBAD.COM // CYBER-DECK DESIGN SYSTEM v4.0
   Professional Retro-Futuristic Aesthetic Engine
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@500;700;900&family=Share+Tech+Mono&display=swap');

:root {
    --bg-void: #06090f;
    --bg-surface: rgba(13, 20, 36, 0.78);
    --bg-surface-elevated: rgba(20, 31, 56, 0.88);
    --bg-card: rgba(16, 26, 46, 0.65);
    
    --neon-cyan: #00f3ff;
    --neon-cyan-glow: rgba(0, 243, 255, 0.35);
    --neon-magenta: #ff007f;
    --neon-magenta-glow: rgba(255, 0, 127, 0.35);
    --neon-amber: #ffb800;
    --neon-emerald: #00ff9d;
    --neon-mint: #00ff9d;
    --neon-crimson: #ff3366;
    
    --border-subtle: rgba(0, 243, 255, 0.15);
    --border-glow: rgba(0, 243, 255, 0.45);
    --border-magenta: rgba(255, 0, 127, 0.35);
    
    --text-primary: #e6f1ff;
    --text-secondary: #8899b5;
    --text-muted: #53647e;
    --text-terminal: #00ff9d;
    
    --font-heading: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Share Tech Mono', 'Courier New', monospace;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    
    --blur-glass: 16px;
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 243, 255, 0.05);
    --shadow-elevated: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 243, 255, 0.12);
}

/* Base Defaults for Mobile Layout Elements (Hidden by default on desktop) */
.mobile-bottom-nav,
.mobile-avatar-drawer,
.mobile-drawer-backdrop,
.mobile-avatar-btn {
    display: none;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-void);
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(0, 243, 255, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255, 0, 127, 0.06) 0%, transparent 45%),
        linear-gradient(180deg, rgba(6, 9, 15, 0.9) 0%, #06090f 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Scanlines (Subtle & Elegant, toggleable) */
.scanline-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.2)
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

body.crt-off .scanline-overlay {
    opacity: 0 !important;
}

/* Typography */
h1, h2, h3, h4, .brand-text {
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

h1 {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 15px var(--neon-cyan-glow);
}

h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--neon-cyan);
}

h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.mono-tag {
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    letter-spacing: 0.5px;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Glass Panels */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0.5;
}

/* Header & HUD Navbar */
.cyber-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(8, 13, 24, 0.85);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hud-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hud-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-family: var(--font-heading);
    color: #000;
    box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.hud-title {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
}

.hud-subtitle {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--neon-cyan);
    letter-spacing: 1px;
}

.hud-nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
}

.hud-nav-links a {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.hud-nav-links a:hover, .hud-nav-links a.active {
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.08);
    border-color: var(--border-subtle);
}

.hud-status-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 157, 0.08);
    border: 1px solid rgba(0, 255, 157, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--neon-emerald);
}

.radar-dot {
    width: 6px;
    height: 6px;
    background: var(--neon-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-emerald);
    animation: radar-pulse 1.8s infinite;
}

@keyframes radar-pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* User Menu & Controls */
.hud-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hud-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hud-btn:hover {
    background: rgba(0, 243, 255, 0.12);
    border-color: var(--neon-cyan);
    color: #fff;
    box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.hud-btn-primary {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(0, 243, 255, 0.05));
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.hud-btn-primary:hover {
    background: var(--neon-cyan);
    color: #000;
}

.hud-btn-danger {
    border-color: rgba(255, 51, 102, 0.4);
    color: var(--neon-crimson);
}

.hud-btn-danger:hover {
    background: var(--neon-crimson);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 51, 102, 0.4);
}

/* Dropdown Menu */
.user-dropdown {
    position: relative;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 26, 46, 0.85);
    border: 1px solid var(--border-subtle);
    padding: 5px 12px 5px 6px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-badge:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.user-avatar-mini {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--neon-cyan);
    background: #000;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 240px;
    background: var(--bg-surface-elevated);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
    padding: 8px 0;
    z-index: 2000;
}

.user-dropdown-menu.active {
    display: block;
    animation: menu-slide-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes menu-slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    color: var(--text-primary);
    background: transparent;
    border: none;
    font-family: var(--font-mono);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}

.user-dropdown-item:hover {
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 6px 0;
}

/* Buttons */
.cyber-btn {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.15), rgba(0, 243, 255, 0.05));
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.cyber-btn:hover {
    background: var(--neon-cyan);
    color: #06090f;
    box-shadow: 0 0 20px var(--neon-cyan-glow);
    transform: translateY(-2px);
}

.cyber-btn:active {
    transform: translateY(0);
}

.cyber-btn-magenta {
    background: linear-gradient(135deg, rgba(255, 0, 127, 0.15), rgba(255, 0, 127, 0.05));
    border-color: var(--neon-magenta);
    color: var(--neon-magenta);
}

.cyber-btn-magenta:hover {
    background: var(--neon-magenta);
    color: #fff;
    box-shadow: 0 0 20px var(--neon-magenta-glow);
}

.cyber-btn-outline {
    background: transparent;
    border-color: var(--border-subtle);
    color: var(--text-secondary);
}

.cyber-btn-outline:hover {
    border-color: var(--text-primary);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

/* Form Controls */
.cyber-input {
    background: rgba(8, 13, 24, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 10px 14px;
    width: 100%;
    outline: none;
    transition: all 0.2s;
}

.cyber-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan-glow);
    background: rgba(13, 20, 36, 0.95);
}

.cyber-input::placeholder {
    color: var(--text-muted);
}

/* Modals */
.cyber-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(4, 6, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 5000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cyber-modal.active {
    display: flex;
    opacity: 1;
}

.cyber-modal-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 35px var(--neon-cyan-glow);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 28px;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-modal.active .cyber-modal-card {
    transform: scale(1);
}

.cyber-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-close-x {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close-x:hover {
    background: rgba(255, 51, 102, 0.15);
    border-color: var(--neon-crimson);
    color: var(--neon-crimson);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-cyan {
    background: rgba(0, 243, 255, 0.12);
    border: 1px solid rgba(0, 243, 255, 0.4);
    color: var(--neon-cyan);
}

.badge-magenta {
    background: rgba(255, 0, 127, 0.12);
    border: 1px solid rgba(255, 0, 127, 0.4);
    color: var(--neon-magenta);
}

.badge-amber {
    background: rgba(255, 184, 0, 0.12);
    border: 1px solid rgba(255, 184, 0, 0.4);
    color: var(--neon-amber);
}

.badge-emerald {
    background: rgba(0, 255, 157, 0.12);
    border: 1px solid rgba(0, 255, 157, 0.4);
    color: var(--neon-emerald);
}

.badge-muted {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Cards & Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.game-deck-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-glass));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.game-deck-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}

.game-deck-card:not(.locked) {
    cursor: pointer;
}

.game-deck-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.8), 0 0 20px var(--neon-cyan-glow);
}

.game-deck-card:hover::after {
    opacity: 1;
}

.game-deck-card.locked {
    opacity: 0.55;
    border-style: dashed;
    cursor: not-allowed;
}

.game-deck-card.locked:hover {
    transform: none;
    border-color: var(--border-subtle);
    box-shadow: none;
}

/* Footer */
.executive-footer {
    border-top: 1px solid var(--border-subtle);
    margin-top: 60px;
    padding: 30px 20px;
    text-align: center;
    background: rgba(6, 9, 15, 0.95);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

/* Toast Notifications */
.cyber-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 15px var(--neon-cyan-glow);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 13px;
    color: #fff;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cyber-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================================
   RESPONSIVE MOBILE ENGINE & VIRTUAL TOUCH CONTROLS
   ============================================================ */

/* Canvas Auto-Scaling & Touch Guard */
#canvas-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-sm);
    touch-action: none;
    -webkit-touch-callout: none;
    user-select: none;
}

canvas {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    touch-action: none;
}

/* Responsive Table Scroll Container */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

/* Mobile Virtual Controls Base */
.mobile-controls-panel {
    display: none;
    margin-top: 14px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

body.is-mobile .mobile-controls-panel,
@media (max-width: 768px) {
    .mobile-controls-panel {
        display: block !important;
    }
}

.touch-action-btn {
    background: rgba(13, 20, 36, 0.85);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-weight: 700;
    min-height: 48px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    touch-action: manipulation;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.1s ease;
    user-select: none;
}

.touch-action-btn:active {
    background: var(--neon-cyan);
    color: #06090f;
    box-shadow: 0 0 15px var(--neon-cyan-glow);
    transform: scale(0.95);
}

.touch-action-btn.btn-magenta {
    border-color: var(--border-magenta);
    color: var(--neon-magenta);
}

.touch-action-btn.btn-magenta:active {
    background: var(--neon-magenta);
    color: #fff;
    box-shadow: 0 0 15px var(--neon-magenta-glow);
}

.touch-action-btn.btn-amber {
    border-color: rgba(255, 184, 0, 0.4);
    color: var(--neon-amber);
}

.touch-action-btn.btn-amber:active {
    background: var(--neon-amber);
    color: #000;
}

/* Responsive Breakpoints (Mobile & Tablet) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }

    /* Keep all game and content containers neatly inside mobile viewport */
    .container {
        max-width: 100% !important;
        padding: 0 8px !important;
        box-sizing: border-box !important;
    }

    .header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-title {
        font-size: 16px !important;
    }

    .links {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }

    .links a {
        margin-left: 0 !important;
        padding: 4px 8px !important;
        font-size: 12px !important;
    }

    /* 4-column HUD grids wrap neatly to 2x2 on mobile */
    .hud-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        font-size: 12px !important;
        padding: 6px !important;
    }

    /* Responsive Canvas Scaling */
    #canvas-wrapper {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    #canvas-wrapper canvas {
        width: 100% !important;
        height: auto !important;
        max-height: 65vh !important;
        object-fit: contain !important;
    }

    /* Mobile Virtual Touchpad button wrapping & touch targets */
    .touch-pad {
        gap: 6px !important;
        margin-top: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        justify-content: center !important;
    }

    .touch-btn {
        min-height: 48px !important;
        font-size: 13px !important;
        padding: 6px 12px !important;
    }

    /* Briefing text fitting */
    .briefing-bar {
        font-size: 11px !important;
        padding: 6px 10px !important;
        line-height: 1.4 !important;
    }

    /* Executive & Cyber HUD Collapse into Single-Row Mobile App Bar */
    .cyber-hud, .executive-hud {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px 16px !important;
        min-height: 52px !important;
        margin-bottom: 14px !important;
        gap: 8px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
    }

    /* Hide verbose desktop navigation links on mobile */
    .hud-nav-links {
        display: none !important;
    }

    /* Compact Brand presentation */
    .hud-brand {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        justify-content: flex-start !important;
    }
    .hud-brand .hud-subtitle {
        display: none !important;
    }
    .hud-brand .hud-title {
        font-size: 14px !important;
        letter-spacing: 1px !important;
    }
    .hud-brand .hud-logo-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
    }

    /* Compact Mobile Actions & Telemetry in Header */
    .hud-actions, .hud-telemetry {
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        gap: 8px !important;
    }
    .hud-actions .hud-btn, .hud-telemetry .hud-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
        min-height: 40px !important;
    }
    .hud-actions #btn-toggle-crt,
    .hud-actions #btn-toggle-audio,
    .hud-actions #btn-lang-toggle,
    .hud-actions .cyber-btn {
        display: none !important;
    }
    .hud-top-bar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    .hud-telemetry .telemetry-chip:not(#callsign-chip) {
        display: none !important;
    }
    .hud-telemetry #audio-toggle, 
    .hud-telemetry #crt-toggle, 
    .hud-telemetry a.hud-btn[href="/arcade"],
    .hud-telemetry button.danger {
        display: none !important;
    }
    .user-dropdown-menu#profile-dropdown {
        display: none !important;
    }
    #profile-menu-btn #nav-username,
    #profile-menu-btn span:last-child {
        display: none !important;
    }
    #profile-menu-btn {
        padding: 2px !important;
        border-radius: 50% !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        touch-action: manipulation !important;
    }

    /* Mobile Avatar Trigger Button in Header */
    .mobile-avatar-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: 2px solid var(--neon-cyan) !important;
        border-radius: 50% !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        margin: 0 !important;
        cursor: pointer !important;
        box-shadow: 0 0 8px var(--neon-cyan-glow) !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
        touch-action: manipulation !important;
    }
    .mobile-avatar-btn img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }

    /* Persistent Mobile Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 56px !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        box-sizing: content-box !important;
        background: rgba(6, 9, 15, 0.96) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid var(--border-subtle) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.75) !important;
        z-index: 9999 !important;
    }

    .mobile-bottom-tab {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        text-decoration: none !important;
        color: var(--text-secondary) !important;
        font-family: var(--font-heading) !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
        min-height: 48px !important;
        touch-action: manipulation !important;
        position: relative !important;
        transition: color 0.2s ease, background 0.2s ease !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .mobile-bottom-tab .tab-icon {
        font-size: 18px !important;
        line-height: 1 !important;
    }

    .mobile-bottom-tab:active {
        transform: scale(0.96);
        background: rgba(0, 243, 255, 0.05);
    }

    .mobile-bottom-tab.active {
        color: var(--neon-cyan) !important;
        border-top: 2px solid var(--neon-cyan) !important;
        background: linear-gradient(180deg, rgba(0, 243, 255, 0.12) 0%, transparent 100%) !important;
        text-shadow: 0 0 10px var(--neon-cyan-glow) !important;
    }

    .mobile-bottom-tab .tab-badge {
        position: absolute !important;
        top: 4px !important;
        right: calc(50% - 20px) !important;
    }

    /* Mobile Off-Canvas Avatar Drawer & Backdrop */
    .mobile-drawer-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 10001;
        opacity: 0;
        transition: opacity 0.25s ease;
    }
    .mobile-drawer-backdrop.active {
        display: block !important;
        opacity: 1 !important;
    }

    .mobile-avatar-drawer {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 86vw);
        background: rgba(8, 13, 24, 0.98);
        border-left: 1px solid var(--border-glow);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.9);
        z-index: 10002;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        padding: calc(16px + env(safe-area-inset-top, 0px)) 18px calc(24px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        display: flex !important;
        flex-direction: column;
        gap: 16px;
        box-sizing: border-box;
    }
    .mobile-avatar-drawer.active {
        transform: translateX(0) !important;
    }

    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border-subtle);
    }
    .drawer-profile {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .drawer-avatar {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 2px solid var(--neon-cyan);
        box-shadow: 0 0 12px var(--neon-cyan-glow);
        object-fit: cover;
    }
    .drawer-username {
        font-family: var(--font-heading);
        font-size: 14px;
        font-weight: 800;
        color: #fff;
    }
    .drawer-role {
        font-family: var(--font-mono);
        font-size: 11px;
        color: var(--neon-cyan);
    }
    .drawer-close-btn {
        background: none;
        border: 1px solid var(--border-subtle);
        color: var(--text-secondary);
        border-radius: 6px;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        cursor: pointer;
        touch-action: manipulation;
    }
    .drawer-section-title {
        font-family: var(--font-heading);
        font-size: 11px;
        font-weight: 700;
        color: var(--text-muted);
        letter-spacing: 1px;
        text-transform: uppercase;
        margin-bottom: 6px;
    }
    .drawer-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-height: 44px;
        padding: 10px 14px;
        background: rgba(13, 20, 36, 0.7);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-sm);
        color: #fff;
        font-family: var(--font-heading);
        font-size: 12px;
        text-align: left;
        cursor: pointer;
        text-decoration: none;
        box-sizing: border-box;
        transition: all 0.2s;
        touch-action: manipulation;
    }
    .drawer-btn:active {
        background: rgba(0, 243, 255, 0.1);
        border-color: var(--neon-cyan);
    }

    /* Page Layout Clearance for Fixed Bottom Bar */
    .nexus-container, 
    .admin-container, 
    .gb-container, 
    .lb-container, 
    .about-container, 
    .terms-container,
    .deck-container {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 18px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Mobile Arcade Game Cards (<= 768px) */
    .game-deck-card {
        padding: 16px;
        border-radius: var(--radius-md);
        position: relative;
        touch-action: manipulation;
    }

    .game-deck-card:not(.locked) {
        cursor: pointer;
    }

    .game-deck-card:active:not(.locked) {
        transform: scale(0.98);
        border-color: var(--neon-cyan);
        box-shadow: 0 0 15px var(--neon-cyan-glow);
    }

    .game-deck-card .game-meta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-top: 10px;
    }

    .game-deck-card .game-meta-row a.cyber-btn {
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 700;
        box-sizing: border-box;
    }

    /* Sub-400px Viewport Polish: Responsive Footer Links */
    .footer-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    .cyber-modal-card {
        padding: 20px 16px;
        max-width: 95vw;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-number {
        font-size: 24px;
    }

    .admin-tabs-row {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
    }

    .touch-btn {
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .gateway-wrapper {
        padding: 20px 12px;
    }

    .gateway-container {
        max-width: 100%;
    }

    h1 {
        font-size: 18px;
    }

    h2 {
        font-size: 15px;
    }

    .hud-grid {
        grid-template-columns: 1fr 1fr !important;
        font-size: 11px !important;
    }

    .touch-btn {
        min-height: 44px !important;
        font-size: 12px !important;
        padding: 4px 8px !important;
    }

    /* Table horizontal overflow handling on small screens */
    .admin-table-wrapper, .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================================
   VECTOR ICON ENGINE & MODERNIZED STATUS PILLS
   ============================================================ */

.cyber-icon {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.2em;
    fill: currentColor;
    flex-shrink: 0;
}

.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 36px; height: 36px; }

/* Modernized Status Pills */
.cyber-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.cyber-pill .pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cyber-pill.pill-playable {
    background: rgba(0, 255, 157, 0.08);
    border: 1px solid rgba(0, 255, 157, 0.4);
    color: var(--neon-emerald);
}
.cyber-pill.pill-playable .pill-dot {
    background: var(--neon-emerald);
    box-shadow: 0 0 8px var(--neon-emerald);
    animation: radar-pulse 1.8s infinite;
}

.cyber-pill.pill-new {
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.4);
    color: var(--neon-cyan);
}
.cyber-pill.pill-new .pill-dot {
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

.cyber-pill.pill-locked {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
}
.cyber-pill.pill-locked .pill-dot {
    background: var(--text-muted);
}

@keyframes radar-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(0, 255, 157, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
    }
}

/* Upgraded Game Card Emblem Box */
.game-card-emblem {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-glow);
    background: radial-gradient(circle at 35% 35%, rgba(0, 243, 255, 0.22), rgba(8, 13, 24, 0.9));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(0, 243, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card-emblem svg {
    width: 38px;
    height: 38px;
    transition: transform 0.3s ease;
}

.game-deck-card:hover .game-card-emblem {
    transform: scale(1.08) rotate(-2deg);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px var(--neon-cyan-glow), inset 0 0 15px var(--neon-cyan);
}

.game-deck-card:hover .game-card-emblem svg {
    transform: scale(1.1);
}

.game-deck-card.locked .game-card-emblem {
    background: rgba(16, 26, 46, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* Quick Control Toggle Buttons with Hardware LEDs */
.hud-btn.hud-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hud-led {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.3s ease;
    vertical-align: middle;
}

.hud-led.led-active {
    background: var(--neon-emerald);
    box-shadow: 0 0 8px var(--neon-emerald);
}

.hud-led.led-muted {
    background: var(--neon-crimson);
    box-shadow: 0 0 6px var(--neon-crimson);
}

/* Arcade Token SVG in Gatekeeper */
.arcade-token-svg {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 10px rgba(255, 226, 112, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gatekeeper-coin:hover .arcade-token-svg {
    transform: scale(1.08) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(255, 226, 112, 0.7));
}





/* ==========================================================================
   PROGRESSIVE WEB APP (PWA) & MOBILE TOUCH OPTIMIZATIONS
   ========================================================================== */

/* PWA Add-To-Home-Screen (A2HS) HUD Banner */
.pwa-hud-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 520px;
    margin: 0 auto;
    background: rgba(6, 12, 24, 0.96);
    border: 1px solid var(--neon-cyan);
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 243, 255, 0.35);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    z-index: 10000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: pwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.pwa-banner-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.pwa-banner-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pwa-banner-title {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--neon-cyan);
    letter-spacing: 1px;
}

.pwa-banner-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-banner-actions .cyber-btn {
    padding: 6px 12px;
    font-size: 11px;
}

/* Mobile Safe Areas & Touch Target Sizing */
@media (max-width: 768px) {
    body {
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
        -webkit-tap-highlight-color: transparent;
    }

    .pwa-hud-banner {
        left: 12px;
        right: 12px;
        bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
        padding: 12px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .pwa-banner-desc {
        white-space: normal;
    }

    .pwa-banner-actions {
        justify-content: flex-end;
    }

    .cyber-btn, .hud-btn, .admin-tab, .sidebar-tab-btn, .drawer-btn, .mobile-bottom-tab, .mobile-avatar-btn, .drawer-close-btn {
        min-height: 40px;
        touch-action: manipulation;
    }

    /* Mobile Chat Viewport & Layout */
    body.chat-page, body.chat-page .deck-container {
        height: 100dvh;
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    body.chat-page .executive-hud {
        margin-bottom: 0 !important;
    }

    body.chat-page .executive-footer {
        display: none !important;
    }

    body.chat-page .chat-layout {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        margin: 0;
        gap: 0;
    }

    /* State-driven single-column chat switching */
    .chat-sidebar {
        display: flex;
        width: 100%;
        height: 100%;
        max-height: none;
        border: none;
        border-radius: 0;
        flex: 1;
        min-height: 0;
    }

    .chat-deck {
        display: none;
        width: 100%;
        height: 100%;
        min-height: 0;
        border: none;
        border-radius: 0;
        flex: 1;
    }

    .chat-layout.chat-view-active .chat-sidebar {
        display: none !important;
    }

    .chat-layout.chat-view-active .chat-deck {
        display: flex !important;
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    .chat-layout.chat-view-active #mobile-back-to-channels {
        display: inline-flex !important;
    }

    body.chat-view-active .mobile-bottom-nav {
        display: none !important;
    }

    .chat-sidebar .conversation-list {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    }

    .chat-messages {
        padding: 12px 14px;
        min-height: 0;
    }

    .chat-input-area {
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    }

    #message-input, #conv-search, #dir-search {
        font-size: 16px !important;
        min-height: 44px;
    }

    .chat-tool-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        font-size: 20px !important;
    }

    #btn-send-message {
        min-height: 44px;
        min-width: 64px;
        font-weight: 700;
        padding: 0 16px;
    }

    #mobile-back-to-channels {
        min-height: 44px;
        min-width: 44px;
        padding: 8px 14px;
        font-size: 13px;
        font-weight: 700;
        align-items: center;
        justify-content: center;
    }
}

/* Desktop Invariance: Mobile Bottom Navigation, Avatar Drawer & Triggers strictly hidden on > 768px */
@media (min-width: 769px) {
    .mobile-bottom-nav,
    .mobile-avatar-drawer,
    .mobile-drawer-backdrop,
    .mobile-avatar-btn {
        display: none !important;
    }

    .chat-sidebar {
        display: flex !important;
    }

    .chat-deck {
        display: flex !important;
    }

    #mobile-back-to-channels {
        display: none !important;
    }
}


/* ==========================================================================
   PROMOTIONAL AD BANNER & SOLD OUT SHOWCASE STYLES
   ========================================================================== */

/* Login Portal Promotional Banner */
.cyber-promo-banner {
    background: linear-gradient(135deg, rgba(20, 26, 46, 0.92), rgba(28, 16, 40, 0.9));
    border: 1px solid rgba(255, 184, 0, 0.45);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 184, 0, 0.16);
    padding: 16px;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cyber-promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-amber), var(--neon-magenta), transparent);
}

.cyber-promo-banner:hover {
    border-color: var(--neon-amber);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 28px rgba(255, 184, 0, 0.3);
    transform: translateY(-2px);
}

.promo-badge-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
}

.promo-badge {
    background: rgba(255, 184, 0, 0.14);
    color: var(--neon-amber);
    border: 1px solid rgba(255, 184, 0, 0.5);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.promo-edition {
    color: var(--neon-magenta);
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.promo-body {
    display: flex;
    gap: 16px;
    align-items: center;
}

.promo-img-wrapper {
    width: 96px;
    height: 96px;
    min-width: 96px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 184, 0, 0.4);
    box-shadow: 0 0 14px rgba(255, 184, 0, 0.22);
    background: #000;
    position: relative;
}

.promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.cyber-promo-banner:hover .promo-img {
    transform: scale(1.08);
}

.promo-details {
    flex: 1;
    min-width: 0;
}

.promo-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    gap: 10px;
}

.promo-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 0.8px;
}

.promo-price {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
    color: var(--neon-amber);
    text-shadow: 0 0 10px rgba(255, 184, 0, 0.4);
    white-space: nowrap;
}

.promo-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0 0 10px 0;
}

.promo-action {
    display: flex;
    justify-content: flex-end;
}

.promo-buy-btn {
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border-color: var(--neon-amber);
    color: var(--neon-amber);
    background: rgba(255, 184, 0, 0.08);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: pointer;
    touch-action: manipulation;
}

.promo-buy-btn:hover {
    background: var(--neon-amber);
    color: #06090f;
    box-shadow: 0 0 18px rgba(255, 184, 0, 0.65);
    transform: translateY(-1px);
}

/* Sold Out Dedicated Page Styles */
.soldout-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

.soldout-hero {
    background: linear-gradient(135deg, rgba(20, 26, 46, 0.94), rgba(30, 16, 38, 0.92));
    border: 1px solid rgba(255, 51, 102, 0.45);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 51, 102, 0.2);
    padding: 36px 30px;
    position: relative;
    overflow: hidden;
}

.soldout-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-crimson), var(--neon-amber), transparent);
}

.soldout-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.soldout-status-pill {
    background: rgba(255, 51, 102, 0.15);
    color: var(--neon-crimson);
    border: 1px solid var(--neon-crimson);
    padding: 6px 14px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 12px rgba(255, 51, 102, 0.3);
}

.soldout-content-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.soldout-image-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 184, 0, 0.4);
    box-shadow: 0 0 25px rgba(255, 184, 0, 0.25);
    background: #000;
    position: relative;
    aspect-ratio: 1/1;
}

.soldout-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.soldout-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
}

.soldout-spec-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13px;
}

.soldout-spec-label {
    color: var(--text-secondary);
    width: 140px;
    font-family: var(--font-mono);
}

.soldout-spec-value {
    color: #fff;
    font-weight: 600;
}

.soldout-alert-box {
    background: rgba(255, 184, 0, 0.08);
    border: 1px solid rgba(255, 184, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
}

.soldout-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

@media (max-width: 680px) {
    .soldout-content-grid {
        grid-template-columns: 1fr;
    }
    .soldout-image-card {
        max-width: 280px;
        margin: 0 auto;
    }
    .promo-body {
        flex-direction: column;
        align-items: stretch;
    }
    .promo-img-wrapper {
        width: 100%;
        height: 150px;
    }
    .promo-title-row {
        margin-top: 8px;
    }
    .promo-buy-btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
}
