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

:root {
    --bg-dark: #020407;
    --bg-panel: rgba(10, 14, 23, 0.6);
    --border-glass: rgba(0, 229, 255, 0.15);
    
    /* Default System Theme (Shadow Monarch) */
    --color-primary: #B026FF; /* Neon Purple */
    --color-secondary: #00E5FF; /* System Blue */
    --color-accent: #FF2A2A; /* Health/Alert Red */
    --color-gold: #FFD700;
    
    --text-main: #E2E8F0;
    --text-muted: #64748B;
    
    --glow-primary: 0 0 15px rgba(176, 38, 255, 0.5);
    --glow-secondary: 0 0 15px rgba(0, 229, 255, 0.5);
    --glow-red: 0 0 15px rgba(255, 42, 42, 0.5);
    
    --font-ui: 'Rajdhani', sans-serif;
    --font-digital: 'Share Tech Mono', monospace;
}

/* Theme overrides */
[data-theme="berserk"] {
    --color-primary: #FF2A2A;
    --color-secondary: #FF8C00;
    --glow-primary: 0 0 15px rgba(255, 42, 42, 0.5);
    --glow-secondary: 0 0 15px rgba(255, 140, 0, 0.5);
    --border-glass: rgba(255, 42, 42, 0.15);
}

[data-theme="healer"] {
    --color-primary: #00FF88;
    --color-secondary: #00E5FF;
    --glow-primary: 0 0 15px rgba(0, 255, 136, 0.5);
    --border-glass: rgba(0, 255, 136, 0.15);
}

[data-theme="assassin"] {
    --color-primary: #A020F0;
    --color-secondary: #FFFFFF;
    --glow-primary: 0 0 10px rgba(160, 32, 240, 0.8);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-ui);
    height: 100vh;
    overflow: hidden;
    background-image: radial-gradient(circle at 50% 0%, rgba(10, 14, 23, 1) 0%, rgba(2, 4, 7, 1) 100%);
}

#app-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* UI Utilities */
.hidden { display: none !important; }
.hidden-init { display: none; }
.text-purple { color: var(--color-primary); }
.text-blue { color: var(--color-secondary); }
.text-red { color: var(--color-accent); }
.text-gold { color: var(--color-gold); }
.text-muted { color: var(--text-muted); }
.font-digital { font-family: var(--font-digital); }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.text-center { text-align: center; }

/* Panels */
#auth-screen {
    background: url('assets/dungeon_portal.png') no-repeat center center;
    background-size: cover;
}
#dashboard-screen {
    background: url('assets/shadow_monarch.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}
.view-panel {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    flex-direction: column;
    animation: fadeIn 0.4s ease forwards;
}
.view-panel.active {
    display: flex;
}

.glass-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.glass-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

/* Buttons */
button {
    font-family: var(--font-ui);
    font-weight: 700;
    cursor: pointer;
    border: none;
    outline: none;
    background: transparent;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.btn-glow-blue {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: var(--glow-secondary);
}
.btn-glow-blue:hover { background: var(--color-secondary); color: var(--bg-dark); }

.btn-glow-purple {
    background: rgba(176, 38, 255, 0.1);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: var(--glow-primary);
}
.btn-glow-purple:hover { background: var(--color-primary); color: var(--bg-dark); }

.btn-glow-red {
    background: rgba(255, 42, 42, 0.1);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: var(--glow-red);
}
.btn-glow-red:hover { background: var(--color-accent); color: var(--bg-dark); }

.btn-outline-red {
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 12px 24px;
    border-radius: 4px;
}
.btn-outline-red:hover { background: rgba(255, 42, 42, 0.2); }

.btn-outline-gold {
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 8px 16px;
    border-radius: 4px;
}
.btn-outline-gold:hover { background: rgba(255, 215, 0, 0.2); }

.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-xs { padding: 4px 8px; font-size: 0.8rem; }
.btn-lg { padding: 16px 32px; font-size: 1.2rem; letter-spacing: 2px; }

.btn-disabled { opacity: 0.5; pointer-events: none; border-color: var(--text-muted); color: var(--text-muted); box-shadow: none; }

/* Auth Screen */
.auth-content {
    margin: auto;
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}
.system-logo-glitch {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--color-secondary);
    position: relative;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px var(--color-secondary);
    animation: glitch 3s infinite;
}
.auth-terminal {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--color-secondary);
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 2rem;
    font-family: var(--font-digital);
    height: 200px;
}

/* Chat Onboarding */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.chat-feed {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}
.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 8px;
    line-height: 1.4;
    animation: slideUp 0.3s ease;
}
.system-bubble {
    align-self: flex-start;
    background: rgba(0, 229, 255, 0.05);
    border-left: 4px solid var(--color-secondary);
    color: var(--color-secondary);
}
.player-bubble {
    align-self: flex-end;
    background: rgba(176, 38, 255, 0.05);
    border-right: 4px solid var(--color-primary);
    color: var(--color-primary);
}
.chat-options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-glass);
    max-height: 45vh;
    overflow-y: auto;
}
.chat-opt-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    padding: 12px;
    text-align: left;
    border-radius: 4px;
}
.chat-opt-btn:hover {
    border-color: var(--color-secondary);
    background: rgba(0, 229, 255, 0.1);
}
.chat-input-row {
    display: flex;
    gap: 10px;
}
.input-dark {
    flex: 1;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-glass);
    color: var(--color-secondary);
    padding: 12px;
    border-radius: 4px;
    font-family: var(--font-digital);
    outline: none;
}
.input-dark:focus { border-color: var(--color-primary); }

/* Overlays */
.overlay-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(2, 4, 7, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
.ceremony-content, .penalty-content, .boss-content, .gate-content {
    text-align: center;
    max-width: 600px;
}
.class-card-reveal {
    margin: 20px 0;
    animation: scaleIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.gate-bg { background: rgba(20, 0, 0, 0.95); }
.penalty-bg { background: rgba(50, 0, 0, 0.98); }
.boss-bg { background: radial-gradient(circle, rgba(100,0,0,0.8) 0%, rgba(0,0,0,1) 100%); }
.mindscape-bg { background: rgba(0, 20, 40, 0.95); }
.mindscape-card { border-color: var(--color-secondary); box-shadow: var(--glow-secondary); }
.gate-timer { font-size: 5rem; color: var(--color-accent); text-shadow: var(--glow-red); }

/* Dashboard Layout & Sidebar */
.app-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 280px;
    background: rgba(0, 0, 0, 0.8);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    z-index: 500;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-glass);
    text-align: center;
}

.sidebar-tabs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px 10px;
    overflow-y: auto;
}

.sidebar-tabs .tab-btn {
    text-align: left;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.sidebar-tabs .tab-btn.active {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-glass);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(0,0,0,0.3);
}

.hud-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 2px;
}

.dashboard-grid {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 20px;
    overflow-y: auto;
}
.col-left { flex: 0 0 350px; }
.col-right { flex: 1; display: flex; flex-direction: column; }

/* System Toast Notifications */
.system-toast {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--color-primary);
    border-left: 4px solid var(--color-primary);
    color: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
    font-family: var(--font-main);
    pointer-events: auto;
    animation: slideInRight 0.3s forwards, fadeOut 0.5s forwards 4.5s;
    display: flex;
    flex-direction: column;
}
.system-toast.toast-error {
    border-color: var(--color-red);
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.2);
}
.system-toast.toast-success {
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.2);
}
.toast-title {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--color-primary);
}
.system-toast.toast-error .toast-title { color: var(--color-red); }
.system-toast.toast-success .toast-title { color: var(--color-accent); }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Player Card */
.player-card { text-align: center; }
.avatar-wrapper {
    width: 80px; height: 80px;
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 2px solid var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: rgba(0,0,0,0.5);
    box-shadow: var(--glow-secondary);
}
.player-info h2 { margin-bottom: 5px; letter-spacing: 1px; }
.player-rank { font-weight: 700; color: var(--color-secondary); }
.bars-container { margin-top: 20px; text-align: left; }
.bar-row { margin-bottom: 12px; }
.bar-label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; }
.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}
.progress-fill { height: 100%; transition: width 0.3s ease; }
.fill-red { background: var(--color-accent); box-shadow: var(--glow-red); }
.fill-blue { background: var(--color-secondary); box-shadow: var(--glow-secondary); }
.fill-purple { background: var(--color-primary); box-shadow: var(--glow-primary); }
.bar-value { font-size: 0.8rem; color: var(--text-muted); }

/* Stats */
.card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-glass); padding-bottom: 10px; margin-bottom: 10px; }
.stat-row { display: flex; align-items: center; margin-bottom: 10px; }
.stat-name { flex: 1; font-weight: 600; }
.stat-val { width: 40px; text-align: right; }
.stat-buff { width: 40px; text-align: right; color: var(--color-secondary); }
.btn-allocate { width: 30px; height: 30px; margin-left: 10px; background: rgba(0,229,255,0.1); border: 1px solid var(--color-secondary); color: var(--color-secondary); border-radius: 4px; }
.btn-allocate:hover:not(:disabled) { background: var(--color-secondary); color: #000; }
.badge-alert { background: var(--color-accent); color: #000; padding: 2px 8px; border-radius: 12px; font-weight: 700; font-size: 0.8rem; animation: pulse 1.5s infinite; }

/* Tabs */
.module-tabs { display: flex; gap: 10px; margin-bottom: 15px; }
.tab-btn { padding: 10px 20px; background: rgba(0,0,0,0.3); border: 1px solid var(--border-glass); color: var(--text-muted); border-radius: 4px; flex: 1; }
.tab-btn.active { background: rgba(176,38,255,0.1); border-color: var(--color-primary); color: var(--color-primary); box-shadow: var(--glow-primary); }
.tab-content-area { flex: 1; overflow-y: auto; }
.tab-pane { display: none; animation: fadeIn 0.3s ease forwards; }
.tab-pane.active { display: block; }

/* Quests */
.quests-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-glass); padding-bottom: 10px; }
.timer-tag { background: rgba(255,42,42,0.1); border: 1px solid var(--color-accent); color: var(--color-accent); padding: 4px 10px; border-radius: 4px; }
.quest-list { display: flex; flex-direction: column; gap: 10px; }
.quest-item { background: rgba(0,0,0,0.4); border-left: 4px solid var(--color-secondary); padding: 15px; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; }
.quest-item.red-gate { border-color: var(--color-accent); background: rgba(50,0,0,0.3); }
.q-title { display: block; font-weight: 700; font-size: 1.1rem; margin-bottom: 5px; }
.q-desc { font-size: 0.9rem; color: var(--text-muted); }
.badge-blue { background: var(--color-secondary); color: #000; padding: 4px 8px; border-radius: 4px; font-weight: 700; font-size: 0.8rem; }

/* Modules */
.module-card { background: rgba(0,0,0,0.4); border: 1px solid var(--border-glass); padding: 15px; border-radius: 8px; }
.module-actions { margin-top: 10px; display: flex; gap: 10px; align-items: center; }

/* Shop */
.shop-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-glass); padding-bottom: 10px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.shop-item-card { background: rgba(0,0,0,0.4); border: 1px solid var(--border-glass); padding: 15px; border-radius: 8px; display: flex; flex-direction: column; justify-content: space-between; }
.item-badge { font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; margin-bottom: 8px; display: inline-block; }
.item-badge.irl { background: var(--color-gold); color: #000; }
.item-badge.cosmetic { background: var(--color-primary); color: #000; }
.item-title { font-weight: 700; display: block; margin-bottom: 5px; }
.item-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }
.item-price { font-family: var(--font-digital); color: var(--color-gold); font-weight: 700; }

/* Shadows */
.shadow-stats { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-glass); padding-bottom: 10px; }
.shadow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.shadow-card { text-align: center; background: rgba(0,0,0,0.4); border: 1px solid var(--color-primary); padding: 10px; border-radius: 8px; }
.shadow-icon { font-size: 2rem; margin-bottom: 5px; }
.shadow-name { font-size: 0.9rem; font-weight: 700; color: var(--color-primary); }
.synthesis-grid { display: flex; gap: 10px; }
.synth-item { background: rgba(0,229,255,0.1); border: 1px solid var(--color-secondary); padding: 10px; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; flex: 1; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes glitch {
    0% { clip-path: inset(10% 0 30% 0); transform: translate(-2px, 2px); }
    20% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
    40% { clip-path: inset(40% 0 40% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(10% 0 60% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(50% 0 20% 0); transform: translate(-2px, 2px); }
    100% { clip-path: inset(20% 0 10% 0); transform: translate(2px, -2px); }
}
.glitch { position: relative; animation: glitch 2s infinite linear alternate-reverse; }
.glow-text { text-shadow: var(--glow-primary); }

/* Video Verification */
#webcam-feed { width: 100%; max-width: 400px; border: 2px solid var(--color-secondary); border-radius: 8px; margin-bottom: 10px; }

/* Network Tab */
.network-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-glass); padding-bottom: 10px; margin-bottom: 15px; }
.network-grid { display: flex; gap: 15px; height: calc(100% - 45px); }
.leaderboard-section { flex: 1; display: flex; flex-direction: column; }
.comms-section { flex: 1; display: flex; flex-direction: column; }

/* Leaderboard */
.leaderboard-content { flex: 1; overflow-y: auto; padding: 10px; }
.leaderboard-row { display: flex; align-items: center; padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.leaderboard-row.rank-1 { background: rgba(255,215,0,0.1); border-left: 3px solid #FFD700; }
.leaderboard-row.rank-2 { background: rgba(192,192,192,0.1); border-left: 3px solid #C0C0C0; }
.leaderboard-row.rank-3 { background: rgba(205,127,50,0.1); border-left: 3px solid #CD7F32; }
.rank-num { width: 30px; font-weight: bold; font-size: 1.2rem; }
.rank-1 .rank-num { color: #FFD700; }
.rank-2 .rank-num { color: #C0C0C0; }
.rank-3 .rank-num { color: #CD7F32; }
.lb-avatar { font-size: 1.5rem; margin-right: 10px; }
.lb-info { flex: 1; }
.lb-name { font-weight: bold; color: var(--color-secondary); display: block; }
.lb-class { font-size: 0.8rem; color: var(--text-muted); }
.lb-level { font-family: var(--font-digital); color: var(--color-primary); font-weight: bold; }

/* Comms & Chat */
.guild-action-bar { text-align: center; }
.chat-tabs { display: flex; gap: 5px; }
.chat-tab-btn { flex: 1; padding: 8px; background: rgba(0,0,0,0.5); border: 1px solid var(--border-glass); color: var(--text-muted); font-size: 0.8rem; }
.chat-tab-btn.active { background: rgba(0,229,255,0.1); color: var(--color-secondary); border-color: var(--color-secondary); }
.chat-window { flex: 1; min-height: 250px; max-height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 10px; background: rgba(0,0,0,0.3); border-radius: 4px; margin-bottom: 5px; }
.chat-msg { padding: 8px 12px; border-radius: 8px; max-width: 85%; font-size: 0.9rem; }
.chat-msg.others { align-self: flex-start; background: rgba(255,255,255,0.05); border-left: 3px solid var(--text-muted); }
.chat-msg.self { align-self: flex-end; background: rgba(176,38,255,0.1); border-right: 3px solid var(--color-primary); }
.chat-sender { font-size: 0.7rem; color: var(--color-secondary); font-weight: bold; margin-bottom: 3px; display: block; }

/* Gate Scanner Map */
.gate-portal {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 0 15px currentColor;
    transition: all 0.3s ease;
}
.gate-portal:hover {
    transform: translate(-50%, -50%) scale(1.5);
}
.pulse-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    border: 2px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: portalPulse 2s infinite ease-out;
}
@keyframes portalPulse {
    0% { width: 100%; height: 100%; opacity: 1; }
    100% { width: 400%; height: 400%; opacity: 0; }
}
.gate-rank-s { color: #B026FF; background: #B026FF; }
.gate-rank-a { color: #FF2A2A; background: #FF2A2A; }
.gate-rank-b { color: #FF8C00; background: #FF8C00; }
.gate-rank-c { color: #FFD700; background: #FFD700; }
.gate-rank-d { color: #00E5FF; background: #00E5FF; }
.gate-rank-e { color: #00FF88; background: #00FF88; }

/* Network Hub */
.arbitration-card { text-align: center; }
.arbi-img { width: 100%; height: 200px; background: #000; border: 1px solid var(--border-glass); margin: 10px 0; object-fit: cover; border-radius: 5px; }
.arbi-actions { display: flex; justify-content: center; gap: 15px; }
.armory-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.3); margin-bottom: 5px; border-radius: 5px; }
.radar-log { font-family: var(--font-digital); font-size: 0.85rem; padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); }
.radar-log.highlight { color: var(--color-gold); text-shadow: 0 0 5px var(--color-gold); }

/* Responsive Adjustments for Mobile */
@media (max-width: 800px) {
    .dashboard-grid {
        flex-direction: column;
    }
    .col-left {
        flex: 0 0 auto;
    }
}

@media (max-width: 600px) {
    .system-logo-glitch {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    .auth-content {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    .auth-terminal {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    /* Sidebar Mobile Overrides */
    .mobile-only {
        display: block !important;
    }
    .sidebar {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        box-shadow: 5px 0 15px rgba(0,0,0,0.8);
    }
    .sidebar.open {
        transform: translateX(0);
    }
}
