/* ===================================
   🎮 GAMING HUD THEME
   CS 1.6 Social Platform - Complete Layout Transformation
   ================================== */

:root {
    /* === HUD COLORS === */
    --hud-orange: #ff6600;
    --hud-green: #00ff00;
    --hud-red: #ff0000;
    --hud-blue: #0099ff;
    --hud-yellow: #ffff00;
    --hud-bg: rgba(0, 0, 0, 0.8);
    --hud-panel: rgba(20, 20, 20, 0.9);
    --hud-border: #333333;
    --hud-glow: rgba(255, 102, 0, 0.6);
    
    /* === TEXT COLORS === */
    --text-hud: #ffffff;
    --text-warning: #ff6600;
    --text-success: #00ff00;
    --text-danger: #ff0000;
    
    /* === EFFECTS === */
    --scan-line: linear-gradient(transparent 50%, rgba(0, 255, 0, 0.03) 50%);
}

/* === GLOBAL HUD TRANSFORMATION === */
body.theme-gaming-hud {
    --bg-primary: #0a0a0a !important;
    --bg-secondary: #1a1a1a !important;
    --bg-tertiary: #2a2a2a !important;
    --bg-card: rgba(20, 20, 20, 0.9) !important;
    --text-primary: #ffffff !important;
    --text-secondary: #cccccc !important;
    --text-muted: #999999 !important;
    
    /* Gaming HUD Background (full screen, scrollable) */
    background:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)),
        url('images/gaming-bg.jpg') center/cover no-repeat,
        var(--bg-primary) !important;
    background-attachment: scroll;
    color: var(--text-hud) !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    overflow-x: hidden !important;
    min-height: 100vh !important;
}

/* === HUD SCROLLBAR (ORANGE GLOW) === */
html,
body.theme-gaming-hud {
    scrollbar-width: thin;
    scrollbar-color: var(--hud-orange) rgba(0, 0, 0, 0.7);
}

html::-webkit-scrollbar,
body.theme-gaming-hud::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track,
body.theme-gaming-hud::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.75);
}

html::-webkit-scrollbar-thumb,
body.theme-gaming-hud::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ffb347, var(--hud-orange));
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.9);
}

html::-webkit-scrollbar-thumb:hover,
body.theme-gaming-hud::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ffd27f, #ff8800);
    box-shadow: 0 0 12px rgba(255, 136, 0, 1);
}

/* === SCAN LINE OVERLAY === */
body.theme-gaming-hud::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--scan-line);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
    animation: scanLines 0.1s linear infinite;
}

@keyframes scanLines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* === HUD HEADER TRANSFORMATION === */
body.theme-gaming-hud .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(20, 20, 20, 0.9);
    border-bottom: 1px solid var(--hud-orange);
    z-index: 999;
    backdrop-filter: blur(8px);
}

body.theme-gaming-hud .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 1.5rem;
}

/* === HUD LOGO AS GAME TITLE === */
body.theme-gaming-hud .logo,
body.theme-gaming-hud .logo-text {
    color: var(--hud-orange);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* === MAIN NAVIGATION AS HUD MENU === */
body.theme-gaming-hud .main-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

body.theme-gaming-hud .nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    color: var(--text-hud);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
}

/* Custom cursor for navigation (orange cursor image with pointer fallback) */
body.theme-gaming-hud .main-nav .nav-item,
body.theme-gaming-hud .main-nav .nav-item * {
    cursor: pointer !important;
}

body.theme-gaming-hud .main-nav .nav-item:hover,
body.theme-gaming-hud .main-nav .nav-item:hover * {
    cursor: url('images/cursor-orange.png') 8 8, pointer !important;
}

/* Simple icon glyphs using CSS only */
body.theme-gaming-hud .nav-icon-home::before,
body.theme-gaming-hud .nav-icon-news::before,
body.theme-gaming-hud .nav-icon-about::before,
body.theme-gaming-hud .nav-icon-rules::before,
body.theme-gaming-hud .nav-icon-community::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
}

body.theme-gaming-hud .nav-icon-home::before {
    border-left: 2px solid var(--hud-orange);
    border-bottom: 2px solid var(--hud-orange);
    transform: rotate(45deg) translateY(-1px);
}

body.theme-gaming-hud .nav-icon-news::before {
    border-top: 2px solid var(--hud-orange);
    border-bottom: 2px solid var(--hud-orange);
}

body.theme-gaming-hud .nav-icon-about::before {
    border-radius: 50%;
    border: 2px solid var(--hud-orange);
}

body.theme-gaming-hud .nav-icon-rules::before {
    border-left: 2px solid var(--hud-orange);
    border-right: 2px solid var(--hud-orange);
}

body.theme-gaming-hud .nav-icon-community::before {
    border-radius: 50%;
    border: 2px solid var(--hud-orange);
    box-shadow: 0 0 6px rgba(255, 102, 0, 0.7);
}

/* small underline / indicator */
body.theme-gaming-hud .nav-item::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 2px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    opacity: 0;
    transform: scaleX(0.5);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

body.theme-gaming-hud .nav-item:hover::after,
body.theme-gaming-hud .nav-item.active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* === AVATAR STYLES === */
body.theme-gaming-hud .nav-avatar {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    border: 1px solid var(--hud-orange) !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

body.theme-gaming-hud .nav-profile-toggle:hover .nav-avatar {
    border-color: var(--hud-orange) !important;
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.5) !important;
}

body.theme-gaming-hud .avatar-placeholder {
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, var(--hud-orange), #ff8800) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-size: 10px !important;
    font-weight: bold !important;
    color: #000000 !important;
}

body.theme-gaming-hud .avatar-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body.theme-gaming-hud .nav-dropdown-item:hover {
    background: rgba(255, 102, 0, 0.3) !important;
    color: var(--hud-orange) !important;
}

body.theme-gaming-hud .nav-dropdown-item.active {
    background: var(--hud-orange) !important;
    color: #ffffff !important;
    font-weight: bold !important;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8) !important;
}

/* Base style for mobile menu toggle – visible on phones/tablets */
body.theme-gaming-hud .mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 102, 0, 0.7);
    border-radius: 999px;
    color: var(--hud-orange);
    font-family: 'Segoe UI', system-ui, sans-serif;
    box-shadow: 0 0 14px rgba(255, 102, 0, 0.6);
    cursor: pointer;
    gap: 4px;
}

/* Hide mobile toggle on large desktop only */
@media (min-width: 1290px) {
    body.theme-gaming-hud .mobile-menu-toggle {
        display: none !important;
    }

    body.theme-gaming-hud .header-container {
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
    }

    body.theme-gaming-hud .main-nav {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    body.theme-gaming-hud .nav-item {
        padding: 0.45rem 1.1rem;
        background: rgba(10, 10, 10, 0.9);
        border-radius: 999px;
        border: 1px solid rgba(255, 102, 0, 0.4);
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    }

    body.theme-gaming-hud .nav-item:hover,
    body.theme-gaming-hud .nav-item.active {
        background: radial-gradient(circle at top left, rgba(255, 102, 0, 0.3), rgba(10, 10, 10, 0.9));
        border-color: var(--hud-orange);
        color: var(--hud-orange);
    }
}

/* === HUD STATUS BAR === */
body.theme-gaming-hud .hud-status-bar {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    font-size: 10px !important;
    color: var(--hud-green) !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    padding: 4px 8px !important;
    border: 1px solid var(--hud-green) !important;
    border-radius: 3px !important;
    z-index: -1 !important;
    animation: statusBlink 3s infinite !important;
    pointer-events: none !important;
    opacity: 0.8 !important;
}

/* Hide the old status bar */
body.theme-gaming-hud .header-container::after {
    display: none !important;
}

@keyframes statusBlink {
    0%, 90% { opacity: 1; }
    95% { opacity: 0.5; }
}

/* === MAIN CONTENT AREA TRANSFORMATION === */
body.theme-gaming-hud .main-container {
    margin-top: 60px !important;
    padding: 20px !important;
    background: transparent !important;
    min-height: calc(100vh - 80px) !important;
}

/* === HUD PANELS (CARDS) === */
body.theme-gaming-hud .card {
    background: var(--hud-panel) !important;
    border: 1px solid var(--hud-border) !important;
    border-radius: 0 !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
}

body.theme-gaming-hud .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hud-orange), var(--hud-yellow), var(--hud-orange));
    animation: hudScan 2s linear infinite;
}

@keyframes hudScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

body.theme-gaming-hud .card::after {
    content: attr(data-hud-title);
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 10px;
    color: var(--hud-orange);
    font-family: 'Segoe UI', system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === HUD SECTION BOXES (for full-width section containers) === */
body.theme-gaming-hud .box {
    background: rgba(10, 10, 10, 0.92) !important;
    border: 1px solid var(--hud-border) !important;
    border-radius: 0 !important;
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.9), 0 0 18px rgba(255, 102, 0, 0.25) !important;
    position: relative !important;
    overflow: hidden !important;
}

body.theme-gaming-hud .box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 102, 0, 0.12), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

body.theme-gaming-hud .box-body {
    position: relative !important;
    padding: 2.5rem 2.25rem !important;
}

/* === HUD BUTTONS === */
body.theme-gaming-hud .btn-primary {
    background: linear-gradient(45deg, var(--hud-orange), #ff8800) !important;
    border: 2px solid var(--hud-orange) !important;
    color: #000000 !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

body.theme-gaming-hud .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

body.theme-gaming-hud .btn-primary:hover::before {
    left: 100%;
}

body.theme-gaming-hud .btn-primary:hover {
    box-shadow: 0 0 20px var(--hud-orange) !important;
    transform: translateY(-2px) !important;
}

/* === HUD FORMS === */
body.theme-gaming-hud input,
body.theme-gaming-hud textarea,
body.theme-gaming-hud select {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid var(--hud-border) !important;
    border-radius: 0 !important;
    color: var(--text-hud) !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    padding: 10px !important;
}

body.theme-gaming-hud input:focus,
body.theme-gaming-hud textarea:focus,
body.theme-gaming-hud select:focus {
    border-color: var(--hud-orange) !important;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.3) !important;
    outline: none !important;
}

/* === HUD NOTIFICATIONS === */
body.theme-gaming-hud .notifications-dropdown {
    position: fixed !important;
    top: 60px !important;
    right: 0 !important;
    width: 300px !important;
    background: var(--hud-panel) !important;
    border-left: 2px solid var(--hud-orange) !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

/* === HUD TEXT STYLING === */
body.theme-gaming-hud h1,
body.theme-gaming-hud h2,
body.theme-gaming-hud h3 {
    color: var(--hud-orange) !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-shadow: 0 0 5px var(--hud-orange) !important;
}

body.theme-gaming-hud p {
    color: var(--text-hud) !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    line-height: 1.6 !important;
}

/* === CUSTOM CROSSHAIR CURSOR === */
body.theme-gaming-hud * {
    cursor: none !important;
}

body.theme-gaming-hud a,
body.theme-gaming-hud button {
    cursor: none !important;
}

/* Custom crosshair overlay */
body.theme-gaming-hud .crosshair-overlay {
    position: fixed !important;
    width: 14px !important;
    height: 14px !important;
    pointer-events: none !important;
    z-index: 1000 !important;
    transform: translate(-50%, -50%) !important;
    background: transparent !important;
    border: 1px solid var(--hud-green) !important;
    border-radius: 50% !important;
    animation: crosshairPulse 2s ease-in-out infinite !important;
    transition: none !important;
}

/* Crosshair lines */
body.theme-gaming-hud .crosshair-lines {
    position: fixed !important;
    width: 30px !important;
    height: 30px !important;
    pointer-events: none !important;
    z-index: 999 !important;
    transform: translate(-50%, -50%) !important;
    background: 
        linear-gradient(to right, transparent 14px, var(--hud-green) 14px, var(--hud-green) 16px, transparent 16px),
        linear-gradient(to bottom, transparent 14px, var(--hud-green) 14px, var(--hud-green) 16px, transparent 16px) !important;
    transition: none !important;
}

@keyframes crosshairPulse {
    0%, 100% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* === HUD SETTINGS PANEL === */
body.theme-gaming-hud .hud-settings-panel {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 1001 !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
}

body.theme-gaming-hud .hud-settings-icon {
    width: 50px !important;
    height: 50px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border: 2px solid var(--hud-orange) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 20px !important;
    color: var(--hud-orange) !important;
    animation: settingsGlow 2s ease-in-out infinite !important;
}

body.theme-gaming-hud .hud-settings-icon:hover {
    background: rgba(255, 102, 0, 0.2) !important;
    transform: rotate(90deg) scale(1.1) !important;
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.5) !important;
}

body.theme-gaming-hud .hud-settings-menu {
    position: absolute !important;
    bottom: 60px !important;
    left: 0 !important;
    background: rgba(0, 0, 0, 0.9) !important;
    border: 2px solid var(--hud-orange) !important;
    border-radius: 8px !important;
    padding: 15px !important;
    min-width: 280px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    transform: translateY(20px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
}

body.theme-gaming-hud .hud-settings-menu.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

body.theme-gaming-hud .hud-setting-group {
    margin-bottom: 15px !important;
}

body.theme-gaming-hud .hud-setting-label {
    color: var(--hud-green) !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
    display: block !important;
}

body.theme-gaming-hud .hud-color-options {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

body.theme-gaming-hud .hud-color-option {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

body.theme-gaming-hud .hud-color-option.active {
    border-color: var(--hud-orange) !important;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5) !important;
}

body.theme-gaming-hud .hud-bg-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

body.theme-gaming-hud .hud-bg-option {
    padding: 8px 12px !important;
    background: rgba(20, 20, 20, 0.8) !important;
    border: 1px solid var(--hud-border) !important;
    color: var(--hud-green) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
}

body.theme-gaming-hud .hud-bg-option:hover {
    background: rgba(255, 102, 0, 0.2) !important;
    border-color: var(--hud-orange) !important;
}

body.theme-gaming-hud .hud-bg-option.active {
    background: var(--hud-orange) !important;
    color: #000000 !important;
    font-weight: bold !important;
}

@keyframes settingsGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 102, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 102, 0, 0.6); }
}

/* === HUD RADAR (MINI MAP) === */
body.theme-gaming-hud::after {
    content: '';
    position: fixed;
    top: 80px;
    left: 20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.1) 0%, rgba(0, 255, 0, 0.3) 50%, transparent 50%);
    border: 2px solid var(--hud-green);
    border-radius: 50%;
    z-index: -1;
    animation: radarSweep 3s linear infinite, radarFadeIn 1s ease-out 5s forwards;
    opacity: 0;
}

/* === RADAR DOTS === */
body.theme-gaming-hud .radar-container {
    position: fixed !important;
    top: 80px !important;
    left: 20px !important;
    width: 120px !important;
    height: 120px !important;
    z-index: 998 !important;
    pointer-events: none !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

body.theme-gaming-hud .radar-dot {
    position: absolute !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    animation: radarDotPulse 2s ease-in-out infinite !important;
    transition: left 0.1s ease-out, top 0.1s ease-out !important;
}

body.theme-gaming-hud .radar-dot.player {
    background: var(--hud-green) !important;
    box-shadow: 0 0 8px var(--hud-green) !important;
}

body.theme-gaming-hud .radar-dot.teammate {
    background: #00aaff !important;
    box-shadow: 0 0 8px #00aaff !important;
}

body.theme-gaming-hud .radar-dot.enemy {
    background: #ff4444 !important;
    box-shadow: 0 0 8px #ff4444 !important;
}

body.theme-gaming-hud .radar-dot.bomb-site {
    background: var(--hud-orange) !important;
    box-shadow: 0 0 10px var(--hud-orange) !important;
    width: 8px !important;
    height: 8px !important;
    animation: bombSitePulse 1.5s ease-in-out infinite !important;
}

body.theme-gaming-hud .radar-dot.bomb-site::before {
    content: 'A' !important;
    position: absolute !important;
    top: -2px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 8px !important;
    color: var(--hud-orange) !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-weight: bold !important;
}

body.theme-gaming-hud .radar-dot.bomb-site.site-b::before {
    content: 'B' !important;
}

@keyframes radarDotPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes bombSitePulse {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Hide radar during loading */
body.theme-gaming-hud.loading::after {
    opacity: 0 !important;
    animation: none !important;
}

@keyframes radarFadeIn {
    0% { opacity: 0; transform: scale(0.5) rotate(0deg); }
    100% { opacity: 1; transform: scale(1) rotate(360deg); }
}

@keyframes radarSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === AMMO COUNTER === */
body.theme-gaming-hud .header::before {
    content: 'AMMO: 30/90 | ARMOR: 100 | HEALTH: 100';
    position: absolute;
    bottom: -25px;
    left: 20px;
    font-size: 14px;
    color: var(--hud-green);
    font-family: 'Segoe UI', system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--hud-panel);
    padding: 5px 15px;
    border: 1px solid var(--hud-green);
}

/* === DYNAMIC KILL FEED === */
body.theme-gaming-hud .hud-kill-feed {
    position: fixed !important;
    top: 80px !important;
    right: 20px !important;
    width: 380px !important;
    max-height: 300px !important;
    overflow: hidden !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

body.theme-gaming-hud .kill-message {
    background: rgba(0, 0, 0, 0.8) !important;
    color: var(--hud-orange) !important;
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-size: 12px !important;
    padding: 8px 12px !important;
    margin-bottom: 5px !important;
    border-left: 3px solid var(--hud-red) !important;
    border-radius: 0 4px 4px 0 !important;
    animation: killFeedSlide 0.5s ease-out, killFeedFade 8s ease-out !important;
    opacity: 1 !important;
    transition: opacity 0.5s ease !important;
}

@keyframes killFeedSlide {
    0% { 
        transform: translateX(100%);
        opacity: 0;
    }
    100% { 
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hide old kill feed */
body.theme-gaming-hud .main-container::before {
    display: none !important;
}

/* === DISABLE GAME HUD OVERLAYS FOR THIS SITE (radar, ammo, status bar, kill feed) === */
body.theme-gaming-hud::after {
    content: none !important; /* radar circle */
}

body.theme-gaming-hud .radar-container,
body.theme-gaming-hud .hud-status-bar,
body.theme-gaming-hud .hud-kill-feed {
    display: none !important;
}

body.theme-gaming-hud .header::before {
    content: none !important; /* ammo counter */
}

@keyframes killFeedFade {
    0%, 80% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* === RESPONSIVE HUD === */
@media (max-width: 1290px) {
    /* Mobile navigation for Gaming HUD */
    body.theme-gaming-hud .header-container {
        padding: 0 1rem;
        gap: 10px;
    }

    /* Show mobile toggle for Gaming HUD */
    body.theme-gaming-hud .mobile-menu-toggle {
        display: flex;
    }

    body.theme-gaming-hud .mobile-menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--hud-orange);
        border-radius: 999px;
        box-shadow: 0 0 6px rgba(255, 102, 0, 0.8);
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    body.theme-gaming-hud .mobile-menu-toggle:hover {
        background: rgba(255, 102, 0, 0.3);
    }

    /* Mobile menu as slide-down overlay */
    body.theme-gaming-hud .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        height: auto;
        max-height: calc(100vh - 60px);
        background: rgba(20, 20, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 1rem 1.5rem 1.5rem;
        gap: 0.5rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        overflow-y: auto;
        z-index: 999;
        border-bottom: 1px solid var(--hud-orange);
    }

    body.theme-gaming-hud .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    }
    
    /* Fix dropdown alignment in Gaming HUD mobile nav */
    body.theme-gaming-hud .main-nav .nav-dropdown {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    body.theme-gaming-hud .nav-item {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        padding: 0.9rem 0.25rem;
        font-size: 0.95rem;
        border-radius: 0;
        font-family: 'Segoe UI', system-ui, sans-serif;
    }
    
    body.theme-gaming-hud .main-nav .nav-dropdown .nav-item {
        width: 100% !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    body.theme-gaming-hud .nav-dropdown-menu {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-top: 0.5rem !important;
        margin-left: 0 !important;
        border-radius: 8px !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
        background: rgba(30, 30, 30, 0.9) !important;
        border: 1px solid var(--hud-border) !important;
    }
    
    body.theme-gaming-hud .nav-dropdown-menu.active {
        max-height: 300px !important;
    }
    
    body.theme-gaming-hud .nav-dropdown-item {
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
        font-family: 'Segoe UI', system-ui, sans-serif !important;
        width: 100% !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    body.theme-gaming-hud .main-container {
        margin-top: 120px !important;
    }
    
    /* Radar positioning for mobile */
    body.theme-gaming-hud::after {
        top: 130px !important;
        left: 10px !important;
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Status bar positioning for mobile */
    body.theme-gaming-hud .hud-status-bar {
        bottom: 10px !important;
        right: 10px !important;
        font-size: 8px !important;
        padding: 3px 6px !important;
        letter-spacing: 0.3px !important;
    }
    
    /* Kill feed positioning for mobile */
    body.theme-gaming-hud .hud-kill-feed {
        top: 100px !important;
        right: 10px !important;
        width: 280px !important;
        max-height: 200px !important;
    }
    
    body.theme-gaming-hud .kill-message {
        font-size: 10px !important;
        padding: 6px 8px !important;
    }
}

/* Extra phone breakpoint – ensure burger + slide menu work on small screens */
@media (max-width: 768px) {
    body.theme-gaming-hud .header-container {
        padding: 8px 14px !important;
    }

    body.theme-gaming-hud .mobile-menu-toggle {
        display: flex !important;
    }

    body.theme-gaming-hud .main-nav {
        display: flex !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 60px) !important;
        background: rgba(20, 20, 20, 0.98) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding: 2rem 1.5rem !important;
        gap: 0.75rem !important;
        transform: translateX(100%) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: transform 0.3s ease, opacity 0.3s ease !important;
        overflow-y: auto !important;
        z-index: 999 !important;
    }

    body.theme-gaming-hud .main-nav.active {
        transform: translateX(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* === FOOTER / COPYRIGHT BAR === */
body.theme-gaming-hud footer {
    border-top: 1px solid rgba(255, 102, 0, 0.5);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6));
}

body.theme-gaming-hud footer .container {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.theme-gaming-hud footer .container div:first-child {
    color: var(--hud-orange);
    font-weight: 600;
    letter-spacing: 0.12em;
}

body.theme-gaming-hud footer .container div:last-child {
    color: var(--text-secondary);
    opacity: 0.85;
}

/* Scroll to top button */
body.theme-gaming-hud .scroll-top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 102, 0, 0.7);
    background: rgba(0, 0, 0, 0.85);
    color: var(--hud-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 14px rgba(255, 102, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 998;
}

body.theme-gaming-hud .scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

body.theme-gaming-hud .scroll-top-btn:hover {
    background: rgba(255, 102, 0, 0.25);
}

/* === LOADING SCREEN EFFECT === */
body.theme-gaming-hud.loading::before {
    content: 'LOADING GAME...';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: var(--hud-orange);
    font-family: 'Segoe UI', system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    z-index: 9999;
    animation: loadingPulse 1.5s infinite, loadingTextFadeOut 8s ease-out forwards;
}

body.theme-gaming-hud.loading::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9998;
    animation: loadingFadeOut 5s ease-out forwards;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes loadingFadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
}

@keyframes loadingTextFade {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes loadingTextFadeOut {
    0% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; }
}
