/* ==========================================================================
   🖥️ MASTER HUD BASE CORE VARIABLES & VARIABLES
   ========================================================================== */
:root {
    --font-terminal: "Courier New", Courier, monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-speed: 0.3s;
    --neon-color: #00ff66;
    --neon-glow: rgba(0, 255, 102, 0.25);
    --border-color: rgba(0, 255, 102, 0.2);
    --bg-panel: rgba(10, 10, 12, 0.85);
}

/* 🎨 INTERACTIVE THEME MATRIX STATE SHIFTERS */
body.theme-default { --neon-color: #00ff66; --neon-glow: rgba(0, 255, 102, 0.25); --border-color: rgba(0, 255, 102, 0.2); }
body.theme-blue    { --neon-color: #00ccff; --neon-glow: rgba(0, 204, 255, 0.25); --border-color: rgba(0, 204, 255, 0.2); }
body.theme-purple  { --neon-color: #cc00ff; --neon-glow: rgba(204, 0, 255, 0.25); --border-color: rgba(204, 0, 255, 0.2); }
body.theme-emerald { --neon-color: #00ffa2; --neon-glow: rgba(0, 255, 162, 0.25); --border-color: rgba(0, 255, 162, 0.2); }
body.theme-amber   { --neon-color: #ffaa00; --neon-glow: rgba(255, 170, 0, 0.25); --border-color: rgba(255, 170, 0, 0.2); }

/* 🟢 EXTRA 5 THEME CORES: Added cleanly to bring your design up to 10 distinct dynamic states! */
body.theme-six     { --neon-color: #ff0055; --neon-glow: rgba(255, 0, 85, 0.25);   --border-color: rgba(255, 0, 85, 0.2); }
body.theme-seven   { --neon-color: #ffff00; --neon-glow: rgba(255, 255, 0, 0.25);  --border-color: rgba(255, 255, 0, 0.2); }
body.theme-eight   { --neon-color: #00fffa; --neon-glow: rgba(0, 255, 250, 0.25);  --border-color: rgba(0, 255, 250, 0.2); }
body.theme-nine    { --neon-color: #ff00ff; --neon-glow: rgba(255, 0, 255, 0.25);  --border-color: rgba(255, 0, 255, 0.2); }
body.theme-ten     { --neon-color: #ffffff; --neon-glow: rgba(255, 255, 255, 0.25); --border-color: rgba(255, 255, 255, 0.2); }

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

body {
    background-color: #050506;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #f4f4f5;
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-x: hidden;
    transition: background-image 0.3s ease-in-out;
}

/* ==========================================================================
   🏙️ LAPTOP & DESKTOP SCREEN RULES (WIDESCREEN STANDARDS)
   ========================================================================== */
.cyber-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 20px auto;
    z-index: 10;
}

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

.brand-text h2 {
    font-family: var(--font-terminal);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

/* 🟢 DYNAMIC BRAND ACCENT SHIFTER: Links your text color to the active server state */
.glowing-brand-word {
    color: var(--neon-color) !important;
    text-shadow: 0 0 10px var(--neon-glow) !important;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}


.brand-text span {
    font-size: 0.7rem;
    color: #71717a;
    letter-spacing: 1px;
    display: block;
}

.cyber-nav {
    display: flex;
    gap: 30px;
    list-style: none;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.cyber-nav li {
    list-style: none;
    list-style-type: none;
}

.cyber-nav a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-terminal);
    transition: all 0.3s ease;
}

.cyber-nav a:hover,
.cyber-nav a.active {
    color: var(--neon-color);
    text-shadow: 0 0 8px var(--neon-glow);
}

.header-status-badge {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-terminal);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-color);
}

/* 📥 SLIDE-DOWN ACCORDION PANEL ACCORDIONS */
.hud-dropdown-drawer {
    width: 100%;
    max-width: 1400px;
    margin: -10px auto 25px auto;
    background: rgba(10, 10, 12, 0.95);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.9), inset 0 0 15px var(--neon-glow);
    border-radius: 8px;
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    z-index: 100;
    transition: max-height 0.35s ease-out, opacity 0.3s ease, padding 0.3s ease;
}

.hud-dropdown-drawer.active-drawer {
    max-height: 480px;
    opacity: 1;
    padding: 24px;
    margin-bottom: 30px;
}

.drawer-content-box {
    font-family: var(--font-terminal);
    font-size: 0.95rem;
    color: #e4e4e7;
    line-height: 1.6;
    white-space: pre-line;
}

.drawer-content-box h4 {
    color: var(--neon-color);
    font-size: 1.1rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px var(--neon-glow);
}

.contact-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-action-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
}

.contact-card-icon-node {
    font-size: 1.8rem;
    color: var(--neon-color);
}

/* 🧬 CENTRAL LAYOUT MAIN PANELS BUILDERS */
.console-container {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 32px;
    align-items: center;
}

.left-security-deck {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.security-item-card {
    display: flex;
    gap: 16px;
    background: rgba(10, 10, 12, 0.4);
    border-left: 3px solid var(--neon-color);
    padding: 16px;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.security-card-icon {
    font-size: 1.5rem;
    color: var(--neon-color);
    margin-top: 2px;
}

.security-card-info h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.security-card-info p {
    font-size: 0.8rem;
    color: #a1a1aa;
    line-height: 1.4;
}

/* 🎯 INTERACTIVE TARGET CENTRAL HUB SHIELD */
.shield-interactive-hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 550px;
}

.shield-hotspot {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px dashed var(--neon-color);
    box-shadow: inset 0 0 20px var(--neon-glow), 0 0 20px var(--neon-glow);
    transition: all var(--transition-speed) ease;
}

.shield-hotspot:hover {
    transform: scale(1.05);
    box-shadow: inset 0 0 40px var(--neon-glow), 0 0 40px var(--neon-glow);
    border-style: solid;
}

.shield-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--neon-color);
    border-radius: 50%;
    animation: shieldGlowPulse 2.5s infinite linear;
    pointer-events: none;
}

/* 📊 RIGHT COLUMN DIAGNOSTIC METRICS TRACKER */
.system-status-deck {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7), inset 0 0 15px var(--neon-glow);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.console-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.console-title {
    font-family: var(--font-terminal);
    font-size: 1.5rem;
    color: var(--neon-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 8px var(--neon-glow);
}

.metric-row-rail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-family: var(--font-terminal);
}

.metric-label {
    color: #a1a1aa;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.metric-value {
    color: var(--neon-color);
    font-weight: 700;
    text-shadow: 0 0 5px var(--neon-glow);
}

.blinking-metric-node {
    animation: nodeBlink 1.4s infinite ease-in-out;
}

/* BUTTON ACTION GATEWAY INTERFACE */
.access-command-btn {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 1px solid var(--neon-color);
    color: var(--neon-color);
    font-family: var(--font-terminal);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    text-shadow: 0 0 5px var(--neon-glow);
    box-shadow: 0 0 10px var(--neon-glow);
    transition: all var(--transition-speed) ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.access-command-btn:hover {
    background: var(--neon-color);
    color: #050506;
    box-shadow: 0 0 25px var(--neon-color);
    transform: translateY(-2px);
    text-shadow: none;
}

.cyber-footer-strip {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 20px auto 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    z-index: 10;
}

.footer-badge-node {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-terminal);
}

.footer-badge-info h5 {
    font-size: 0.8rem;
    color: #fff;
    text-transform: uppercase;
}

.footer-badge-info span {
    font-size: 0.7rem;
    color: #71717a;
}

@keyframes shieldGlowPulse { 0% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.15); opacity: 0.3; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes nodeBlink { 0%, 100% { opacity: 0.3; text-shadow: none; } 50% { opacity: 1; text-shadow: 0 0 10px var(--neon-color); } }

/* ==========================================================================
   📱 RESPONSIVE SMARTPHONE SCREEN DRAWER OVERWRITES (SCREEN WIDTHS <= 768px)
   ========================================================================== */
@media (max-width: 768px) {

    .cyber-header {
        margin: 0 auto 30px auto !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        text-align: center !important;
    }

    .brand-node {
        flex-direction: column !important;
        gap: 8px !important;
        justify-content: center !important;
        align-items: center !important;
        display: flex !important;
    }

    .cyber-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px 18px !important;
        list-style: none !important;
        list-style-type: none !important;
        padding: 12px 16px !important;
        background: rgba(14, 14, 18, 0.9) !important;
        border-radius: 8px !important;
        border: 1px solid rgba(0, 255, 102, 0.2) !important;
        width: 100% !important;
        max-width: 450px !important;
        margin: 0 auto !important;
    }

    .cyber-nav li {
        list-style: none !important;
        list-style-type: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-block !important;
    }

    .cyber-nav a {
        font-size: 0.85rem !important;
        color: #e4e4e7 !important;
        text-decoration: none !important;
        font-family: "Courier New", Courier, monospace !important;
        letter-spacing: 1px !important;
        transition: all 0.2s ease !important;
    }

    .cyber-nav a.active,
    .cyber-nav a:hover {
        color: var(--neon-color) !important;
        text-shadow: 0 0 10px var(--neon-color) !important;
    }

    .console-container {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .shield-interactive-hub {
        min-height: 400px !important;
    }

    .shield-hotspot {
        width: 260px !important;
        height: 260px !important;
    }

    .contact-grid-row {
        grid-template-columns: 1fr !important;
    }

    .cyber-footer-strip {
        flex-direction: column !important;
        gap: 16px !important;
        align-items: flex-start !important;
    }

        /* ==========================================================================
       🔒 IDENTITY PORTAL LOGIN CARD MOBILE FIX (INJECTED SAFELY INSIDE CURRENT BLOCK)
       ========================================================================== */
        /* ==============================================================================
       📱 SMOOTH SWIPING / NATURAL MOBILITY FLOW FOR LOGIN PORTAL DRAWER LAYER
       ============================================================================== */
    /* Target your exact ID selector and class layout keys to break the fixed lock grid */
    #portal-login-drawer, .hud-dropdown-drawer {
        position: relative !important; /* 🟢 Forces it out of the rigid floating sticker mode */
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 380px !important; /* Locks it into a clean mobile capsule container grid */
        margin: 30px auto 10px auto !important; /* Spaces it neatly right below your titles */
        box-sizing: border-box !important;
        display: block !important;
    }

    .drawer-content-box {
        overflow: visible !important; /* Allows easy touch scrolling and swiping inputs */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Force your form fields to behave adaptively on narrow mobile glasses */
    .drawer-content-box input, .drawer-content-box form {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* ==============================================================================
       📲 ADVANCED MOBILE SWIPE AND TOUCH-SCROLL DRAWER CORE ENGINE
       ============================================================================== */
    #portal-login-drawer, .hud-dropdown-drawer {
        position: relative !important;
        top: unset !important;
        transform: none !important;

        /* 🟢 TURNS ON HIGH-SPEED TOUCH SWIPING & DRAG INTERACTIONS */
        display: block !important;
        overflow-x: auto !important; /* Enables horizontal swiping (left/right) */
        overflow-y: auto !important; /* Enables vertical swiping (up/down) */
        -webkit-overflow-scrolling: touch !important; /* Forces buttery-smooth iOS/Android haptic swipe flow */

        /* Layout dimensions constraints */
        width: 100% !important;
        max-width: 380px !important;
        margin: 35px auto 20px auto !important; /* Drops it right down beneath your titles cleanly */
        padding: 4px !important;
        box-sizing: border-box !important;
    }

    /* Prevent text or input field assets inside from jamming during high-speed finger swiping */
    .drawer-content-box {
        width: 100% !important;
        min-width: 290px !important; /* Guarantees a safe layout frame while swiping left/right */
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    /* Expand input elements to fit mobile fingers perfectly */
    .drawer-content-box input {
        width: 100% !important;
        box-sizing: border-box !important;
    }

}





