/* =========================================================  
 MYSTHOOD RED HUB APEX v11 (Stable Update V4) — CYBERNETIC COCKPIT & UNIVERSAL CONTAINMENT STYLESHEET  
 Mobile-Optimized, Tactical Crimson Night-Vision, Benchmarks, Radio & Optimus HUD  
 ========================================================= */  
  
:root {  
 --bg-primary: #070406;  
 --bg-surface: #120609;  
 --bg-card: rgba(18, 7, 10, 0.92);  
 --bg-card-hover: rgba(28, 10, 15, 0.98);  
   
--border-color: rgba(255, 30, 66, 0.25);  
 --border-glow: rgba(255, 30, 66, 0.55);  
   
--brand-red: #ff1e42;  
 --brand-red-light: #ff4d6d;  
 --brand-crimson-deep: #a0001e;  
 --neon-amber: #ff9100;  
   
--text-primary: #fff0f2;  
 --text-secondary: #c99ea6;  
 --text-dim: #7a4b54;  
  
 --font-hud: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;  
 --font-mono: "SF Mono", Menlo, Monaco, "Courier New", monospace;  
}  
  
*, *::before, *::after {  
 box-sizing: border-box;  
 min-width: 0;  
 margin: 0;  
 padding: 0;  
 -webkit-tap-highlight-color: transparent;  
 user-select: none;  
}  
  
body {  
 background-color: var(--bg-primary);  
 color: var(--text-primary);  
 font-family: var(--font-hud);  
 overflow: hidden;  
 width: 100vw;  
 height: 100vh;  
}  
  
/* =========================================================  
 AUTH GATE & MOBILECONFIG DIRECT INSTALL  
 ========================================================= */  
.auth-gate {  
 position: fixed;  
 top: 0;  
 left: 0;  
 width: 100vw;  
 height: 100vh;  
 background: radial-gradient(circle at center, #24080e 0%, #060204 100%);  
 z-index: 99999;  
 display: flex;  
 align-items: center;  
 justify-content: center;  
 padding: 20px;  
 overflow-y: auto;  
 transition: opacity 0.5s ease, visibility 0.5s ease;  
}  
  
.auth-gate:not(.active) {  
 opacity: 0;  
 visibility: hidden;  
 pointer-events: none;  
}  
  
.auth-card {  
 background: rgba(18, 7, 10, 0.96);  
 border: 1px solid var(--border-glow);  
 border-radius: 24px;  
 padding: 30px 24px;  
 width: 100%;  
 max-width: 440px;  
 text-align: center;  
 box-shadow: 0 0 50px rgba(255, 30, 66, 0.25), 0 20px 40px rgba(0,0,0,0.9);  
 backdrop-filter: blur(20px);  
}  
  
.shield-logo-box {  
 position: relative;  
 width: 76px;  
 height: 76px;  
 margin: 0 auto 12px auto;  
 display: flex;  
 align-items: center;  
 justify-content: center;  
}  
.shield-icon {  
 font-size: 38px;  
 z-index: 2;  
 filter: drop-shadow(0 0 16px var(--brand-red));  
}  
.shield-ring {  
 position: absolute;  
 width: 100%;  
 height: 100%;  
 border-radius: 50%;  
 border: 2px dashed var(--brand-red);  
 animation: rotateRing 14s linear infinite;  
}  
.enclave-pulse {  
 position: absolute;  
 width: 115%;  
 height: 115%;  
 border-radius: 50%;  
 border: 1px solid rgba(255, 30, 66, 0.4);  
 animation: pulseGlow 2.5s ease-in-out infinite;  
}  
@keyframes rotateRing { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }  
@keyframes pulseGlow { 0%, 100% { transform: scale(1); opacity: 0.3; } 50% { transform: scale(1.15); opacity: 0.8; } }  
  
.auth-title { font-size: 26px; font-weight: 900; letter-spacing: 3px; margin-bottom: 4px; }  
.brand-crimson { color: var(--brand-red); text-shadow: 0 0 16px rgba(255, 30, 66, 0.8); }  
.brand-sub { color: #fff; text-shadow: 0 0 14px rgba(255, 255, 255, 0.5); }  
.auth-subtitle { font-size: 10px; letter-spacing: 1.5px; color: var(--text-secondary); font-weight: 800; margin-bottom: 16px; }  
  
.btn-enclave-bio {  
 background: linear-gradient(135deg, rgba(255, 30, 66, 0.25) 0%, rgba(160, 0, 30, 0.45) 100%);  
 border: 1px solid var(--brand-red);  
 border-radius: 14px;  
 padding: 12px 16px;  
 display: flex;  
 align-items: center;  
 gap: 12px;  
 color: #fff;  
 cursor: pointer;  
 box-shadow: 0 0 20px rgba(255, 30, 66, 0.3);  
 text-align: left;  
 width: 100%;  
 margin-bottom: 8px;  
}  
.btn-enclave-bio:active { transform: scale(0.98); background: rgba(255, 30, 66, 0.4); }  
.bio-icon { font-size: 26px; }  
.bio-title { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: #fff; }  
.bio-desc { display: block; font-size: 10px; color: var(--brand-red-light); }  
.enclave-chip-tag { font-size: 10px; font-family: var(--font-mono); color: var(--brand-red-light); letter-spacing: 1px; margin-bottom: 12px; }  
  
.auth-divider { display: flex; align-items: center; text-align: center; margin: 10px 0 14px 0; color: var(--text-dim); font-size: 9px; letter-spacing: 1.5px; font-weight: 800; }  
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-bottom: 1px solid var(--border-color); }  
.auth-divider span { padding: 0 8px; }  
  
.auth-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }  
.input-group label { display: block; font-size: 9px; letter-spacing: 1.5px; font-weight: 800; color: var(--text-secondary); margin-bottom: 4px; }  
.input-group input { width: 100%; background: rgba(0, 0, 0, 0.6); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 14px; color: #fff; font-size: 14px; outline: none; }  
.input-group input:focus { border-color: var(--brand-red); box-shadow: 0 0 14px rgba(255, 30, 66, 0.4); }  
  
.btn-auth-submit {  
 margin-top: 4px;  
 background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-crimson-deep) 100%);  
 color: #fff;  
 border: none;  
 border-radius: 12px;  
 padding: 14px;  
 font-size: 12px;  
 font-weight: 800;  
 letter-spacing: 1.5px;  
 cursor: pointer;  
 box-shadow: 0 0 20px rgba(255, 30, 66, 0.4);  
}  
.btn-auth-submit:active { transform: scale(0.98); }  
  
.auth-install-link-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-color); }  
.btn-direct-install-profile {  
 display: inline-block;  
 background: rgba(255, 30, 66, 0.15);  
 border: 1px dashed var(--brand-red);  
 color: var(--brand-red-light);  
 text-decoration: none;  
 font-size: 11px;  
 font-weight: 700;  
 padding: 10px 14px;  
 border-radius: 10px;  
 transition: all 0.2s;  
}  
.btn-direct-install-profile:active { background: rgba(255, 30, 66, 0.3); }  
  
.auth-footer { margin-top: 16px; font-size: 9px; letter-spacing: 1.5px; color: var(--text-dim); }  
  
/* =========================================================  
 MAIN HUD WRAPPER & HEADER  
 ========================================================= */  
#hud-wrapper {  
 display: flex;  
 flex-direction: column;  
 height: 100vh;  
 width: 100vw;  
 padding-top: env(safe-area-inset-top);  
 padding-right: env(safe-area-inset-right);  
 padding-bottom: max(10px, env(safe-area-inset-bottom));  
 padding-left: env(safe-area-inset-left);  
 transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;  
}  
  
#hud-wrapper.hud-locked { filter: blur(10px); pointer-events: none; }  
body.hud-mirrored #hud-wrapper { transform: scaleX(-1); }  
  
.hud-header {  
 display: flex;  
 justify-content: space-between;  
 align-items: center;  
 padding: 8px 16px;  
 background: rgba(14, 5, 8, 0.98);  
 border-bottom: 1px solid var(--border-color);  
 backdrop-filter: blur(12px);  
 z-index: 100;  
}  
.header-left, .header-right, .header-center { display: flex; align-items: center; gap: 8px; }  
.hud-brand { font-size: 18px; font-weight: 900; letter-spacing: 2px; }  
.hud-clock { font-family: var(--font-mono); font-size: 17px; font-weight: 700; color: var(--text-primary); }  
.hud-date { font-size: 10px; color: var(--text-secondary); letter-spacing: 1px; }  
  
.badge { font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 6px; letter-spacing: 1px; }  
.badge-online { background: rgba(255, 30, 66, 0.15); color: var(--brand-red-light); border: 1px solid rgba(255, 30, 66, 0.4); }  
.badge-enclave { background: rgba(255, 30, 66, 0.2); color: var(--brand-red); border: 1px solid var(--brand-red); }  
.badge-vehicle { background: rgba(255, 145, 0, 0.15); color: var(--neon-amber); border: 1px solid rgba(255, 145, 0, 0.4); }  
.badge-shield { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid var(--border-color); }  
.badge-dim { background: rgba(255, 255, 255, 0.04); color: var(--text-dim); border: 1px solid var(--border-color); }  
  
.btn-icon {  
 background: rgba(255, 255, 255, 0.07);  
 border: 1px solid var(--border-color);  
 color: var(--text-primary);  
 padding: 6px 10px;  
 border-radius: 8px;  
 font-size: 11px;  
 font-weight: 700;  
 cursor: pointer;  
 display: flex;  
 align-items: center;  
 gap: 5px;  
}  
.btn-icon:active { transform: scale(0.95); background: rgba(255, 30, 66, 0.25); border-color: var(--brand-red); }  
.btn-voice { background: rgba(255, 30, 66, 0.15); border-color: var(--brand-red); color: var(--brand-red-light); }  
.btn-voice.listening { background: var(--brand-red); color: #fff; animation: micPulse 1.2s infinite; }  
@keyframes micPulse { 0%, 100% { box-shadow: 0 0 10px var(--brand-red); } 50% { box-shadow: 0 0 25px var(--brand-red-light); } }  
  
/* Horizontal Navigation Bar (Smooth scroll on mobile) */  
.hud-nav {  
 display: flex;  
 background: rgba(14, 5, 8, 0.98);  
 border-bottom: 1px solid var(--border-color);  
 overflow-x: auto;  
 scrollbar-width: none;  
 -webkit-overflow-scrolling: touch;  
}  
.hud-nav::-webkit-scrollbar { display: none; }  
.nav-tab {  
 flex-shrink: 0;  
 padding: 12px 14px;  
 background: none;  
 border: none;  
 color: var(--text-secondary);  
 font-size: 11px;  
 font-weight: 800;  
 letter-spacing: 1.2px;  
 cursor: pointer;  
 border-bottom: 3px solid transparent;  
 transition: all 0.2s;  
}  
.nav-tab.active {  
 color: var(--brand-red);  
 border-bottom-color: var(--brand-red);  
 background: linear-gradient(180deg, transparent 0%, rgba(255, 30, 66, 0.15) 100%);  
 text-shadow: 0 0 10px rgba(255, 30, 66, 0.6);  
}  
  
.hud-main {  
 flex: 1;  
 position: relative;  
 overflow: hidden;  
 background: radial-gradient(circle at center, #1a050a 0%, #070406 85%);  
}  
  
.hud-tab-content {  
 display: none;  
 width: 100%;  
 height: 100%;  
 padding: 16px;  
 overflow-y: auto;  
 -webkit-overflow-scrolling: touch;  
}  
.hud-tab-content.active { display: block; }  
  
.hud-card {  
 background: var(--bg-card);  
 border: 1px solid var(--border-color);  
 border-radius: 16px;  
 padding: 18px;  
 display: flex;  
 flex-direction: column;  
 backdrop-filter: blur(14px);  
 box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);  
}  
  
.card-title { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--brand-red); text-shadow: 0 0 10px rgba(255, 30, 66, 0.5); margin-bottom: 12px; }  
.sub-title { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--text-secondary); margin: 12px 0 8px 0; }  
.card-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }  
.card-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }  
  
.neon-red { color: var(--brand-red); text-shadow: 0 0 10px rgba(255, 30, 66, 0.7); }  
.neon-red-light { color: var(--brand-red-light); text-shadow: 0 0 10px rgba(255, 77, 109, 0.7); }  
.neon-amber { color: var(--neon-amber); text-shadow: 0 0 10px rgba(255, 145, 0, 0.7); }  
  
/* =========================================================  
 COCKPIT CLUSTER & G-METER WIDGET  
 ========================================================= */  
.cockpit-grid {  
 display: grid;  
 grid-template-columns: 280px 1fr 280px;  
 gap: 16px;  
 height: 100%;  
}  
@media (max-width: 950px) {  
 .cockpit-grid { grid-template-columns: 1fr; height: auto; }  
}  
  
.cockpit-center { align-items: center; justify-content: space-between; padding: 20px; }  
.speedo-container { position: relative; width: 300px; height: 300px; display: flex; align-items: center; justify-content: center; }  
.speedo-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: rotate(-135deg); }  
.speedo-bg { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 18; stroke-dasharray: 612; stroke-dashoffset: 153; }  
.speedo-meter {  
 fill: none;  
 stroke: var(--brand-red);  
 stroke-width: 18;  
 stroke-dasharray: 612;  
 stroke-dashoffset: 612;  
 stroke-linecap: round;  
 filter: drop-shadow(0 0 14px var(--brand-red));  
 transition: stroke-dashoffset 0.15s ease-out;  
}  
.speedo-content { display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10; }  
.compass-indicator { display: flex; gap: 6px; font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--brand-red); }  
.speed-number { font-size: 90px; font-weight: 900; line-height: 1; font-family: var(--font-mono); color: #fff; text-shadow: 0 0 25px rgba(255, 30, 66, 0.6); }  
.btn-unit-toggle { background: rgba(255, 30, 66, 0.15); border: 1px solid var(--brand-red); color: var(--brand-red); padding: 4px 14px; border-radius: 12px; font-weight: 800; font-size: 13px; cursor: pointer; }  
.speed-limit-badge { margin-top: 8px; width: 44px; height: 48px; border: 3px solid var(--brand-red); border-radius: 8px; background: #fff; color: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; }  
.limit-title { font-size: 7px; line-height: 1; }  
#speed-limit-val { font-size: 20px; line-height: 1.1; font-family: var(--font-mono); }  
  
.trip-bar { display: flex; justify-content: space-around; width: 100%; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); padding: 10px 14px; border-radius: 12px; margin-top: 10px; }  
.trip-item { display: flex; flex-direction: column; align-items: center; }  
.trip-label { font-size: 9px; color: var(--text-secondary); letter-spacing: 1px; }  
.trip-value { font-size: 13px; font-weight: 700; font-family: var(--font-mono); color: #fff; }  
  
.gauge-mini-list { display: flex; flex-direction: column; gap: 12px; flex: 1; }  
.gauge-mini { display: flex; flex-direction: column; gap: 4px; }  
.gauge-mini .label { font-size: 10px; color: var(--text-secondary); letter-spacing: 1px; }  
.gauge-mini .value { font-size: 17px; font-weight: 700; font-family: var(--font-mono); }  
.progress-bar { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; overflow: hidden; }  
.progress-fill { height: 100%; background: var(--brand-red); border-radius: 3px; transition: width 0.3s; }  
.progress-fill.amber { background: var(--neon-amber); }  
  
/* G-Meter Mini Widget inside Cockpit */  
.cockpit-gmeter-widget { margin: 12px 0; background: rgba(0,0,0,0.4); border: 1px solid var(--border-color); border-radius: 12px; padding: 10px; }  
.gmeter-mini-box { display: flex; align-items: center; justify-content: space-between; }  
.gmeter-label { font-size: 9px; color: var(--text-secondary); letter-spacing: 1px; }  
.gmeter-val { font-size: 14px; font-weight: 700; font-family: var(--font-mono); color: var(--brand-red-light); }  
.friction-circle-mini { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-color); background: #000; }  
.g-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-red); box-shadow: 0 0 8px var(--brand-red); top: 18px; left: 18px; transition: all 0.05s ease-out; }  
  
/* Radio Quick Tuner in Cockpit Right */  
.cockpit-mini-player { background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px; }  
.radio-quick-tuner { margin: 10px 0; }  
.radio-tag { font-size: 9px; color: var(--text-secondary); display: block; margin-bottom: 4px; }  
.radio-select { width: 100%; background: #000; border: 1px solid var(--border-color); color: #fff; padding: 6px 8px; border-radius: 8px; font-size: 11px; outline: none; }  
.mini-player-controls { display: flex; justify-content: center; gap: 14px; margin-top: 8px; }  
.btn-mini-play { background: rgba(255, 255, 255, 0.08); border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }  
.btn-play-main { background: var(--brand-red); color: #fff; }  
  
.app-launch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }  
.app-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px; display: flex; align-items: center; gap: 6px; text-decoration: none; color: #fff; font-size: 11px; font-weight: 600; }  
.app-btn:active { transform: scale(0.96); background: rgba(255, 30, 66, 0.2); border-color: var(--brand-red); }  
  
/* =========================================================  
 AUTOMOTIVE PERFORMANCE BENCHMARKS  
 ========================================================= */  
.benchmarks-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }  
@media (max-width: 900px) { .benchmarks-layout { grid-template-columns: 1fr; } }  
.timer-display-box { background: rgba(0,0,0,0.6); border: 1px solid var(--border-color); border-radius: 14px; padding: 20px; text-align: center; margin: 10px 0 16px 0; }  
.timer-large { font-size: 58px; font-weight: 900; font-family: var(--font-mono); color: #fff; text-shadow: 0 0 20px rgba(255, 30, 66, 0.6); }  
.unit-sm { font-size: 24px; color: var(--brand-red); }  
.sprint-sub-metrics { display: flex; justify-content: space-around; margin-top: 14px; font-size: 12px; font-family: var(--font-mono); color: var(--text-secondary); }  
.benchmark-btn-row { display: flex; gap: 10px; }  
  
.dragstrip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }  
.drag-metric { background: rgba(0,0,0,0.5); border: 1px solid var(--border-color); padding: 12px; border-radius: 10px; }  
.drag-label { font-size: 9px; color: var(--text-secondary); display: block; letter-spacing: 1px; }  
.drag-val { font-size: 20px; font-weight: 900; font-family: var(--font-mono); margin-top: 4px; display: block; }  
.drag-stage-text { font-size: 10px; font-family: var(--font-mono); color: var(--brand-red-light); }  
  
.friction-circle-container { display: flex; justify-content: center; margin: 14px 0; }  
.friction-circle { position: relative; width: 190px; height: 190px; border-radius: 50%; border: 2px solid var(--brand-red); background: radial-gradient(circle at center, #1b050a 0%, #000 100%); box-shadow: 0 0 20px rgba(255, 30, 66, 0.2); }  
.crosshair-h { position: absolute; top: 94px; left: 0; width: 100%; height: 1px; background: rgba(255, 30, 66, 0.4); }  
.crosshair-v { position: absolute; top: 0; left: 94px; width: 1px; height: 100%; background: rgba(255, 30, 66, 0.4); }  
.ring-half-g { position: absolute; top: 47px; left: 47px; width: 94px; height: 94px; border-radius: 50%; border: 1px dashed rgba(255, 30, 66, 0.3); }  
.ring-one-g { position: absolute; top: 15px; left: 15px; width: 158px; height: 158px; border-radius: 50%; border: 1px solid rgba(255, 30, 66, 0.3); }  
.friction-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-red); box-shadow: 0 0 12px var(--brand-red); top: 88px; left: 88px; transition: all 0.05s ease-out; }  
.g-stats-bar { display: flex; justify-content: space-between; background: rgba(0,0,0,0.5); border: 1px solid var(--border-color); padding: 10px 14px; border-radius: 10px; }  
.g-item { display: flex; flex-direction: column; }  
.g-label { font-size: 8px; color: var(--text-secondary); }  
.g-val { font-size: 13px; font-weight: 700; font-family: var(--font-mono); margin-top: 2px; }  
  
/* =========================================================  
 LIVE RADIO ENGINE & OFFLINE DECK  
 ========================================================= */  
.music-full-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }  
@media (max-width: 900px) { .music-full-layout { grid-template-columns: 1fr; } }  
.radio-dial-display { background: rgba(0,0,0,0.7); border: 1px solid var(--border-color); border-radius: 14px; padding: 18px; text-align: center; margin: 10px 0 14px 0; }  
.freq-tag { font-size: 9px; letter-spacing: 2px; color: var(--text-secondary); display: block; }  
.freq-number { font-size: 46px; font-weight: 900; font-family: var(--font-mono); color: #fff; text-shadow: 0 0 18px rgba(255, 30, 66, 0.7); }  
.freq-mhz { font-size: 16px; color: var(--brand-red); }  
.station-meta { font-size: 12px; color: var(--brand-red-light); display: block; margin-top: 4px; }  
.frequency-slider-container { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }  
.dial-bound { font-size: 11px; font-family: var(--font-mono); color: var(--text-secondary); }  
#radio-freq-slider { flex: 1; accent-color: var(--brand-red); }  
.radio-preset-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 16px; }  
.btn-preset { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-color); color: #fff; padding: 10px; border-radius: 10px; font-size: 11px; cursor: pointer; text-align: left; }  
.btn-preset.active { background: rgba(255, 30, 66, 0.25); border-color: var(--brand-red); }  
.radio-audio-controls { display: flex; align-items: center; gap: 16px; }  
  
/* Media Deck */  
#audio-file-input { display: none; }  
.btn-file-upload { display: inline-block; background: rgba(255, 30, 66, 0.15); border: 1px dashed var(--brand-red); color: var(--brand-red-light); padding: 12px; text-align: center; border-radius: 12px; font-weight: 700; cursor: pointer; }  
.file-count { font-size: 12px; color: var(--text-secondary); }  
.media-player-card { display: flex; gap: 16px; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); border-radius: 14px; padding: 16px; align-items: center; margin: 14px 0; }  
.player-art-box { font-size: 46px; width: 76px; height: 76px; background: #1a050a; border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); }  
.player-info { flex: 1; }  
.scrub-container { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); }  
.scrub-container input[type="range"] { flex: 1; accent-color: var(--brand-red); }  
.player-buttons { display: flex; align-items: center; gap: 14px; }  
.btn-ctrl { background: rgba(255, 255, 255, 0.1); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 15px; }  
.btn-play-large { background: var(--brand-red); color: #fff; width: 44px; height: 44px; font-size: 18px; }  
.vol-box { display: flex; align-items: center; gap: 8px; margin-left: auto; }  
.vol-box input { width: 80px; accent-color: var(--brand-red); }  
.playlist-section { max-height: 160px; overflow-y: auto; }  
.playlist-items { list-style: none; margin-top: 8px; }  
.playlist-items li { padding: 8px 12px; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid var(--border-color); font-size: 12px; cursor: pointer; }  
.playlist-items li.playing { color: var(--brand-red); background: rgba(255, 30, 66, 0.15); font-weight: 700; }  
  
/* =========================================================  
 VEHICLE PROFILE & VIN DECODER  
 ========================================================= */  
.vehicle-dropdown-matrix { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }  
.v-drop-group label { display: block; font-size: 9px; letter-spacing: 1.5px; font-weight: 800; color: var(--text-secondary); margin-bottom: 4px; }  
.v-select, .v-input { width: 100%; background: #000; border: 1px solid var(--border-color); color: #fff; padding: 10px 12px; border-radius: 8px; font-size: 13px; outline: none; }  
.decoded-card { background: rgba(0,0,0,0.6); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; margin-top: 10px; }  
.dec-row { margin-bottom: 10px; font-size: 14px; font-weight: 800; }  
.dec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 11px; color: var(--text-secondary); }  
.dec-grid strong { color: #fff; }  
  
/* =========================================================  
 SIRI VOICE ASSISTANT COMPONENT  
 ========================================================= */  
.voice-assistant-ui { display: flex; align-items: center; gap: 18px; background: rgba(0,0,0,0.5); border: 1px solid var(--border-color); padding: 14px 20px; border-radius: 14px; margin-top: 10px; }  
.btn-voice-large {  
 width: 64px; height: 64px; border-radius: 50%;  
 background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-crimson-deep) 100%);  
 border: 2px solid #fff;  
 color: #fff; font-size: 28px; cursor: pointer;  
 display: flex; align-items: center; justify-content: center;  
 box-shadow: 0 0 20px rgba(255, 30, 66, 0.5);  
 transition: all 0.2s;  
 flex-shrink: 0;  
}  
.btn-voice-large:active { transform: scale(0.95); }  
.voice-transcription-box { flex: 1; }  
.transcript-text { font-size: 13px; color: #fff; display: block; line-height: 1.4; font-weight: 600; }  
.feedback-text { font-size: 11px; color: var(--brand-red-light); display: block; margin-top: 4px; font-family: var(--font-mono); }  
  
/* =========================================================  
 SMART HOME, TV, ROBOTICS & NETWORK  
 ========================================================= */  
.smarthome-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }  
@media (max-width: 900px) { .smarthome-grid { grid-template-columns: 1fr; } }  
.blink-cameras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }  
@media (max-width: 600px) { .blink-cameras-grid { grid-template-columns: 1fr; } }  
.cam-box { background: rgba(0, 0, 0, 0.6); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }  
.cam-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid var(--border-color); }  
.cam-name { font-size: 11px; font-weight: 700; color: #fff; }  
.cam-feed-sim { position: relative; height: 130px; background: radial-gradient(circle at center, #2e0b12 0%, #0a0305 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }  
.rec-dot { position: absolute; top: 8px; left: 10px; font-size: 10px; font-weight: 800; color: var(--brand-red); }  
.cam-timestamp { position: absolute; top: 8px; right: 10px; font-family: var(--font-mono); font-size: 10px; color: var(--text-secondary); }  
.cam-label { position: absolute; bottom: 8px; left: 10px; font-family: var(--font-mono); font-size: 9px; color: var(--brand-red-light); }  
.cam-controls { display: flex; gap: 6px; padding: 8px; background: rgba(0, 0, 0, 0.5); }  
.btn-cam-action { flex: 1; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-color); color: var(--text-primary); padding: 6px; border-radius: 6px; font-size: 10px; cursor: pointer; }  
  
.blink-stats-bar { display: flex; justify-content: space-between; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); padding: 10px 14px; border-radius: 10px; }  
.b-stat { display: flex; flex-direction: column; }  
.b-label { font-size: 9px; color: var(--text-secondary); }  
.b-val { font-size: 12px; font-weight: 700; font-family: var(--font-mono); margin-top: 2px; }  
  
.thermostat-control-box { display: flex; align-items: center; justify-content: space-between; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); padding: 16px; border-radius: 14px; }  
.thermo-dial { display: flex; flex-direction: column; }  
.thermo-label { font-size: 9px; color: var(--text-secondary); letter-spacing: 1px; }  
.thermo-deg { font-size: 38px; font-weight: 900; font-family: var(--font-mono); color: #fff; }  
.thermo-target { font-size: 12px; color: var(--brand-red-light); }  
.thermo-buttons { display: flex; gap: 8px; align-items: center; }  
.btn-temp-step { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-color); color: #fff; width: 40px; height: 40px; border-radius: 10px; font-size: 16px; cursor: pointer; }  
.hvac-modes { display: flex; flex-direction: column; gap: 4px; margin-left: 8px; }  
.mode-pill { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: var(--text-secondary); font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 6px; cursor: pointer; }  
.mode-pill.active { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }  
  
.lighting-matrix { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }  
.light-strip { display: flex; align-items: center; gap: 12px; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); padding: 10px 14px; border-radius: 10px; }  
.light-info { width: 140px; }  
.light-name { display: block; font-size: 12px; font-weight: 700; color: #fff; }  
.light-state { font-size: 10px; color: var(--text-secondary); font-family: var(--font-mono); }  
.light-slider { flex: 1; accent-color: var(--brand-red); }  
.btn-light-toggle { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-color); color: var(--text-secondary); padding: 6px 12px; border-radius: 6px; font-size: 11px; font-weight: 800; cursor: pointer; }  
.btn-light-toggle.active { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }  
.access-buttons { display: flex; gap: 10px; }  
.btn-door-action { flex: 1; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); border-radius: 10px; padding: 12px; display: flex; align-items: center; gap: 8px; color: #fff; cursor: pointer; }  
  
/* TV Styles */  
.tv-control-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; }  
@media (max-width: 900px) { .tv-control-layout { grid-template-columns: 1fr; } }  
.tv-device-list { display: flex; flex-direction: column; gap: 8px; }  
.tv-device-item { display: flex; align-items: center; gap: 12px; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); padding: 12px 14px; border-radius: 12px; cursor: pointer; }  
.tv-device-item.active { border-color: var(--brand-red); background: rgba(255, 30, 66, 0.12); }  
.tv-icon { font-size: 24px; }  
.tv-meta { flex: 1; }  
.tv-name { font-size: 13px; font-weight: 700; color: #fff; display: block; }  
.tv-room { font-size: 11px; color: var(--text-secondary); font-family: var(--font-mono); }  
.tv-app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }  
.btn-tv-app { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }  
.tv-remote-card { align-items: center; }  
.remote-header { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 20px; }  
.btn-tv-power { background: rgba(255, 30, 66, 0.2); border: 1px solid var(--brand-red); color: var(--brand-red); width: 40px; height: 40px; border-radius: 50%; font-size: 20px; cursor: pointer; }  
.remote-dpad-container { margin: 10px 0 20px 0; }  
.dpad-box { position: relative; width: 180px; height: 180px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); border: 2px solid var(--border-color); box-shadow: 0 0 20px rgba(0,0,0,0.8); }  
.dpad-btn { position: absolute; background: rgba(255, 255, 255, 0.08); border: none; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; }  
.dpad-btn:active { background: var(--brand-red); color: #fff; }  
.dpad-up { top: 6px; left: 55px; width: 70px; height: 45px; border-radius: 35px 35px 8px 8px; }  
.dpad-down { bottom: 6px; left: 55px; width: 70px; height: 45px; border-radius: 8px 8px 35px 35px; }  
.dpad-left { top: 55px; left: 6px; width: 45px; height: 70px; border-radius: 35px 8px 8px 35px; }  
.dpad-right { top: 55px; right: 6px; width: 45px; height: 70px; border-radius: 8px 35px 35px 8px; }  
.dpad-center { top: 55px; left: 55px; width: 70px; height: 70px; border-radius: 50%; background: var(--brand-red); color: #fff; font-weight: 900; }  
.remote-actions-row { display: flex; gap: 12px; width: 100%; max-width: 280px; margin-bottom: 16px; }  
.btn-remote-nav { flex: 1; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-color); color: #fff; padding: 10px; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; }  
.remote-volume-bar { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 280px; background: rgba(0, 0, 0, 0.5); padding: 8px 14px; border-radius: 12px; border: 1px solid var(--border-color); }  
.btn-vol { background: rgba(255, 255, 255, 0.08); border: none; color: #fff; padding: 6px 12px; border-radius: 6px; font-weight: 800; cursor: pointer; }  
.vol-indicator { flex: 1; text-align: center; font-size: 11px; font-family: var(--font-mono); color: #fff; }  
  
/* Robotics & Optimus */  
.robotics-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }  
@media (max-width: 900px) { .robotics-layout { grid-template-columns: 1fr; } }  
.robotics-sensor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }  
.r-box { background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); padding: 10px; border-radius: 10px; }  
.r-label { font-size: 9px; color: var(--text-secondary); display: block; letter-spacing: 1px; }  
.r-val { font-size: 12px; font-weight: 700; font-family: var(--font-mono); margin-top: 4px; }  
.robot-viewport { position: relative; width: 100%; height: 180px; background: radial-gradient(circle at center, #24080e 0%, #060204 100%); border: 1px solid var(--brand-red); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }  
.robot-viewport::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient(0deg, rgba(255, 30, 66, 0.06), rgba(255, 30, 66, 0.06) 1px, transparent 1px, transparent 4px); }  
.hud-crosshair-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }  
.target-box { width: 60px; height: 60px; border: 1px solid var(--brand-red); border-radius: 4px; position: relative; }  
.target-box::before { content: ""; position: absolute; background: var(--brand-red); top: 29px; left: -10px; width: 80px; height: 1px; }  
.target-box::after { content: ""; position: absolute; background: var(--brand-red); top: -10px; left: 29px; width: 1px; height: 80px; }  
.lidar-tag { position: absolute; bottom: 8px; left: 10px; font-size: 9px; font-family: var(--font-mono); color: var(--brand-red-light); }  
.sonar-range { position: absolute; top: 8px; right: 10px; font-size: 9px; font-family: var(--font-mono); color: var(--brand-red); }  
.robot-modes-bar { display: flex; gap: 8px; flex-wrap: wrap; }  
.btn-robot-mode { flex: 1; min-width: 110px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-color); color: #fff; padding: 8px; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; }  
.btn-robot-mode.active { background: rgba(255, 30, 66, 0.2); border-color: var(--brand-red); color: var(--brand-red-light); }  
.btn-estop { background: rgba(255, 30, 66, 0.3); border-color: var(--brand-red); color: #fff; }  
.teleop-dpad { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px 0; }  
.teleop-row { display: flex; gap: 8px; }  
.btn-teleop { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-color); color: #fff; padding: 14px 20px; border-radius: 10px; font-weight: 800; font-size: 12px; cursor: pointer; min-width: 90px; text-align: center; }  
.btn-teleop:active { background: var(--brand-red); color: #fff; }  
.btn-stop { background: rgba(255, 30, 66, 0.2); border-color: var(--brand-red); color: #fff; }  
.teleop-status-box { background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); padding: 10px; border-radius: 8px; text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); }  
  
/* Networking */  
.net-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }  
.net-box { background: rgba(0,0,0,0.5); border: 1px solid var(--border-color); padding: 12px; border-radius: 10px; }  
.net-label { font-size: 9px; color: var(--text-secondary); display: block; letter-spacing: 1px; }  
.net-val { font-size: 14px; font-weight: 700; margin-top: 4px; display: block; }  
.topo-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }  
.topo-node { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.4); border: 1px solid var(--border-color); padding: 10px 14px; border-radius: 8px; font-size: 12px; }  
.node-icon { font-size: 18px; }  
.topo-node .badge { margin-left: auto; }  
  
/* Navigation */  
.nav-container { display: flex; flex-direction: column; height: 100%; gap: 12px; }  
.map-controls-bar { display: flex; justify-content: space-between; align-items: center; background: var(--bg-card); padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border-color); }  
.coords-text { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); margin-left: 10px; }  
.map-viewport { flex: 1; border-radius: 16px; border: 1px solid var(--border-color); overflow: hidden; background: #000; min-height: 400px; }  
.leaflet-tile { filter: brightness(0.5) invert(1) contrast(3) hue-rotate(340deg) saturate(3) brightness(0.6); }  
  
/* Buttons & Utilities */  
.btn-primary { background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-crimson-deep) 100%); color: #fff; font-weight: 800; border: none; border-radius: 10px; padding: 10px 18px; cursor: pointer; box-shadow: 0 0 16px rgba(255, 30, 66, 0.3); }  
.btn-secondary { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-color); color: #fff; font-weight: 600; border-radius: 10px; padding: 8px 14px; cursor: pointer; }  
.btn-mini { background: rgba(255, 255, 255, 0.1); border: none; color: var(--text-secondary); font-size: 10px; padding: 4px 8px; border-radius: 6px; cursor: pointer; }  
.env-example-box { background: rgba(0, 0, 0, 0.6); border: 1px solid var(--border-color); padding: 14px; border-radius: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--brand-red-light); line-height: 1.6; margin: 10px 0; overflow-x: auto; }  
.session-status-text { font-family: var(--font-mono); font-size: 13px; color: var(--brand-red-light); margin-top: 6px; }  
.setting-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border-color); }  
.setting-info { max-width: 70%; }  
.setting-name { display: block; font-size: 14px; font-weight: 700; color: #fff; }  
.setting-desc { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }  
  
  
  
/* =========================================================  
 V6 TITAN EXPANSION STYLES  
 Prompt Bar, AEB Radar, Garage Bay, EV Charger, Optimus Sim & AI Copilot  
 ========================================================= */  
  
/* Global Prompt Bar */  
.hud-prompt-bar {  
 display: flex;  
 align-items: center;  
 gap: 10px;  
 padding: 8px 16px;  
 background: rgba(10, 4, 6, 0.96);  
 border-bottom: 1px solid var(--border-color);  
 z-index: 90;  
}  
.prompt-icon { font-size: 16px; color: var(--brand-red); text-shadow: 0 0 10px var(--brand-red); }  
#global-prompt-input {  
 flex: 1;  
 background: rgba(0, 0, 0, 0.6);  
 border: 1px solid var(--border-color);  
 color: #fff;  
 padding: 8px 14px;  
 border-radius: 8px;  
 font-size: 12px;  
 outline: none;  
}  
#global-prompt-input:focus { border-color: var(--brand-red); box-shadow: 0 0 10px rgba(255, 30, 66, 0.4); }  
.btn-prompt-exec {  
 background: var(--brand-red);  
 color: #fff;  
 border: none;  
 border-radius: 8px;  
 padding: 8px 14px;  
 font-size: 11px;  
 font-weight: 800;  
 letter-spacing: 1px;  
 cursor: pointer;  
}  
.btn-prompt-ai {  
 background: rgba(255, 255, 255, 0.08);  
 border: 1px solid var(--border-color);  
 color: var(--brand-red-light);  
 border-radius: 8px;  
 padding: 8px 12px;  
 font-size: 11px;  
 font-weight: 700;  
 cursor: pointer;  
}  
  
/* --- ACTIVE SAFETY & AEB RADAR --- */  
.safety-dashboard-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }  
@media (max-width: 900px) { .safety-dashboard-grid { grid-template-columns: 1fr; } }  
  
.radar-visualizer-box {  
 display: flex;  
 gap: 16px;  
 align-items: center;  
 background: rgba(0,0,0,0.6);  
 border: 1px solid var(--border-color);  
 padding: 16px;  
 border-radius: 14px;  
 margin: 12px 0;  
}  
.radar-scope {  
 position: relative;  
 width: 160px;  
 height: 160px;  
 border-radius: 50%;  
 background: radial-gradient(circle at center, #2e0810 0%, #060204 100%);  
 border: 2px solid var(--brand-red);  
 overflow: hidden;  
 box-shadow: 0 0 20px rgba(255, 30, 66, 0.3);  
 flex-shrink: 0;  
}  
.radar-sweep {  
 position: absolute;  
 top: 0; left: 0; width: 100%; height: 100%;  
 border-radius: 50%;  
 background: conic-gradient(from 0deg, rgba(255, 30, 66, 0.5) 0deg, transparent 60deg, transparent 360deg);  
 animation: radarSpin 3s linear infinite;  
}  
@keyframes radarSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }  
.radar-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 30, 66, 0.3); }  
.radar-ring.r1 { top: 20px; left: 20px; width: 120px; height: 120px; }  
.radar-ring.r2 { top: 45px; left: 45px; width: 70px; height: 70px; }  
.radar-ring.r3 { top: 65px; left: 65px; width: 30px; height: 30px; }  
.radar-host-car { position: absolute; bottom: 8px; left: 70px; font-size: 18px; z-index: 10; }  
.radar-blip { position: absolute; top: 40px; left: 74px; font-size: 16px; animation: blipFlash 0.8s infinite; z-index: 10; }  
@keyframes blipFlash { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(1.2); } }  
  
.radar-readouts { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--text-secondary); }  
.radar-readouts strong { color: #fff; }  
.aeb-controls-row { display: flex; gap: 10px; flex-wrap: wrap; }  
  
/* Pedestrian Detection Viewport */  
.camera-vision-box { margin: 12px 0; }  
.vision-viewport {  
 position: relative;  
 width: 100%;  
 height: 180px;  
 background: radial-gradient(circle at center, #26090e 0%, #080204 100%);  
 border: 1px solid var(--brand-red);  
 border-radius: 12px;  
 overflow: hidden;  
}  
.scanlines {  
 position: absolute;  
 top: 0; left: 0; width: 100%; height: 100%;  
 background: repeating-linear-gradient(0deg, rgba(255, 30, 66, 0.05), rgba(255, 30, 66, 0.05) 1px, transparent 1px, transparent 3px);  
 pointer-events: none;  
}  
.vision-box-target {  
 position: absolute;  
 top: 30px; left: 45%;  
 width: 50px; height: 100px;  
 border: 2px solid var(--brand-red);  
 box-shadow: 0 0 10px var(--brand-red);  
 animation: boxTrack 2s ease-in-out infinite alternate;  
}  
@keyframes boxTrack { 0% { transform: translateX(-10px); } 100% { transform: translateX(10px); } }  
.box-tag { position: absolute; top: -18px; left: -10px; font-size: 9px; font-family: var(--font-mono); color: var(--brand-red); white-space: nowrap; font-weight: 800; }  
.vision-hud-tag { position: absolute; bottom: 8px; left: 10px; font-size: 9px; font-family: var(--font-mono); color: var(--brand-red-light); }  
.pds-metrics-bar { display: flex; justify-content: space-between; background: rgba(0,0,0,0.5); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-color); font-size: 11px; }  
  
/* --- GARAGE SENSORS & LOGS --- */  
.garage-system-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }  
@media (max-width: 900px) { .garage-system-layout { grid-template-columns: 1fr; } }  
  
.garage-bay-graphic {  
 background: #030102;  
 border: 1px solid var(--border-color);  
 border-radius: 14px;  
 padding: 16px;  
 margin: 12px 0;  
 display: flex;  
 flex-direction: column;  
 gap: 14px;  
}  
.garage-back-wall {  
 display: flex;  
 justify-content: space-between;  
 align-items: center;  
 background: rgba(255, 30, 66, 0.15);  
 border: 2px solid var(--brand-red);  
 padding: 10px 14px;  
 border-radius: 8px;  
 font-size: 11px;  
 font-weight: 800;  
 color: #fff;  
}  
.depth-sensor-emitter { font-family: var(--font-mono); color: var(--brand-red-light); font-size: 10px; }  
.garage-drive-lane {  
 position: relative;  
 height: 120px;  
 background: rgba(255, 255, 255, 0.02);  
 border: 1px dashed var(--border-color);  
 border-radius: 10px;  
 display: flex;  
 align-items: center;  
 justify-content: center;  
}  
.bay-car-silhouette {  
 width: 140px;  
 height: 60px;  
 background: var(--brand-red);  
 border-radius: 12px;  
 display: flex;  
 align-items: center;  
 justify-content: center;  
 font-size: 11px;  
 font-weight: 800;  
 color: #fff;  
 box-shadow: 0 0 15px rgba(255, 30, 66, 0.5);  
 transition: all 0.3s ease;  
}  
.depth-measure-line {  
 position: absolute;  
 bottom: 8px;  
 width: 80%;  
 border-bottom: 2px dotted var(--brand-red-light);  
 text-align: center;  
 font-family: var(--font-mono);  
 font-size: 11px;  
 color: var(--brand-red-light);  
}  
.garage-door-threshold {  
 position: relative;  
 padding: 10px;  
 background: rgba(0,0,0,0.5);  
 border-radius: 8px;  
 border: 1px solid var(--border-color);  
}  
.beam-active {  
 height: 6px;  
 background: #00ff88;  
 border-radius: 3px;  
 box-shadow: 0 0 12px #00ff88;  
 margin-bottom: 6px;  
 transition: all 0.2s;  
}  
.beam-active.tripped {  
 background: var(--brand-red);  
 box-shadow: 0 0 18px var(--brand-red);  
 animation: beamAlarm 0.4s infinite;  
}  
@keyframes beamAlarm { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }  
.threshold-label { font-size: 9px; letter-spacing: 1px; color: var(--text-secondary); font-family: var(--font-mono); }  
  
.garage-safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }  
.g-stat-box { background: rgba(0,0,0,0.5); border: 1px solid var(--border-color); padding: 10px; border-radius: 10px; }  
.g-stat-title { font-size: 8px; color: var(--text-secondary); display: block; }  
.g-stat-num { font-size: 14px; font-weight: 800; display: block; margin: 4px 0; font-family: var(--font-mono); }  
.g-stat-sub { font-size: 9px; color: var(--text-dim); }  
.garage-interactive-controls { display: flex; gap: 8px; flex-wrap: wrap; }  
  
.audit-log-terminal {  
 background: #020102;  
 border: 1px solid var(--border-color);  
 border-radius: 10px;  
 padding: 12px;  
 height: 320px;  
 overflow-y: auto;  
 font-family: var(--font-mono);  
 font-size: 11px;  
 line-height: 1.6;  
}  
.log-row { padding: 4px 0; border-bottom: 1px solid rgba(255, 30, 66, 0.1); }  
.log-row.alert { color: var(--brand-red); font-weight: 700; }  
.log-row.success { color: #00ff88; }  
.log-row.info { color: var(--text-secondary); }  
  
/* --- EV CHARGER & ROBOTIC PLUG --- */  
.charging-system-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }  
.battery-cylinder {  
 position: relative;  
 height: 48px;  
 background: rgba(0, 0, 0, 0.6);  
 border: 2px solid var(--brand-red);  
 border-radius: 12px;  
 overflow: hidden;  
 margin: 10px 0;  
 display: flex;  
 align-items: center;  
}  
.battery-fill {  
 height: 100%;  
 background: linear-gradient(90deg, var(--brand-crimson-deep) 0%, var(--brand-red) 100%);  
 border-radius: 8px;  
 transition: width 0.5s ease;  
}  
.soc-text {  
 position: absolute;  
 width: 100%;  
 text-align: center;  
 font-size: 20px;  
 font-weight: 900;  
 font-family: var(--font-mono);  
 color: #fff;  
 text-shadow: 0 0 10px #000;  
}  
.ev-range-info { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); margin-bottom: 16px; }  
  
.robotic-arm-dock-box {  
 background: rgba(0, 0, 0, 0.5);  
 border: 1px solid var(--border-color);  
 border-radius: 14px;  
 padding: 16px;  
 margin-bottom: 16px;  
}  
.robot-arm-animation-container {  
 display: flex;  
 align-items: center;  
 justify-content: space-between;  
 height: 90px;  
 position: relative;  
}  
.charger-base { display: flex; flex-direction: column; font-size: 11px; font-weight: 700; color: #fff; }  
.charge-cable-arm { width: 140px; height: 12px; background: rgba(255, 30, 66, 0.3); border-radius: 6px; position: relative; margin-top: 6px; }  
.plug-head {  
 position: absolute;  
 right: 0; top: -10px;  
 background: var(--brand-red);  
 color: #fff;  
 font-size: 10px;  
 font-weight: 800;  
 padding: 8px 12px;  
 border-radius: 8px;  
 box-shadow: 0 0 12px var(--brand-red);  
 transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);  
}  
.plug-head.extended { transform: translateX(120px); background: #00ff88; box-shadow: 0 0 15px #00ff88; }  
.car-charge-port { display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; font-weight: 700; color: #fff; }  
.socket-receiver { width: 34px; height: 34px; border: 2px dashed var(--brand-red); border-radius: 50%; margin-top: 6px; }  
.arm-status-caption { font-family: var(--font-mono); font-size: 11px; color: var(--brand-red-light); text-align: center; margin-top: 8px; }  
.ev-charger-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }  
.charge-limit-slider-box { margin-left: auto; font-size: 12px; display: flex; align-items: center; gap: 10px; }  
  
/* --- VEHICLE FLEET --- */  
.fleet-manager-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }  
@media (max-width: 900px) { .fleet-manager-layout { grid-template-columns: 1fr; } }  
.add-vehicle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }  
.v-field label { display: block; font-size: 9px; font-weight: 800; letter-spacing: 1px; color: var(--text-secondary); margin-bottom: 4px; }  
.v-field input, .v-field select { width: 100%; background: #000; border: 1px solid var(--border-color); color: #fff; padding: 10px; border-radius: 8px; font-size: 12px; outline: none; }  
.fleet-cards-container { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; max-height: 400px; overflow-y: auto; }  
.fleet-car-item {  
 background: rgba(0,0,0,0.5);  
 border: 1px solid var(--border-color);  
 padding: 12px 16px;  
 border-radius: 12px;  
 display: flex;  
 justify-content: space-between;  
 align-items: center;  
}  
.fleet-car-item.active { border-color: var(--brand-red); background: rgba(255, 30, 66, 0.12); }  
.fleet-car-name { font-size: 14px; font-weight: 800; color: #fff; }  
.fleet-car-meta { font-size: 11px; color: var(--text-secondary); font-family: var(--font-mono); }  
  
/* --- OPTIMUS SIMULATOR --- */  
.sim-viewport-wrapper {  
 position: relative;  
 background: #030102;  
 border: 1px solid var(--border-color);  
 border-radius: 14px;  
 overflow: hidden;  
 margin: 12px 0;  
 display: flex;  
 justify-content: center;  
}  
#optimus-sim-canvas { width: 100%; height: auto; max-height: 380px; display: block; }  
.sim-overlay-controls {  
 position: absolute;  
 bottom: 10px; left: 10px;  
 display: flex;  
 gap: 8px;  
 flex-wrap: wrap;  
}  
.btn-sim-tool { background: rgba(0,0,0,0.7); border: 1px solid var(--border-color); color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; cursor: pointer; }  
.sim-kinematics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; font-size: 11px; color: var(--text-secondary); }  
.sim-kinematics-grid strong { color: #fff; display: block; margin-top: 2px; }  
  
/* --- AI COPILOT & CHAT --- */  
.assistant-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }  
@media (max-width: 900px) { .assistant-layout { grid-template-columns: 1fr; } }  
.chat-history-box {  
 background: #030102;  
 border: 1px solid var(--border-color);  
 border-radius: 12px;  
 padding: 14px;  
 height: 280px;  
 overflow-y: auto;  
 display: flex;  
 flex-direction: column;  
 gap: 10px;  
 margin: 10px 0;  
}  
.chat-bubble { padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.4; max-width: 85%; }  
.chat-bubble.ai { background: rgba(255, 30, 66, 0.15); border: 1px solid var(--border-color); color: #fff; align-self: flex-start; }  
.chat-bubble.user { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; align-self: flex-end; }  
.chat-input-bar { display: flex; gap: 10px; }  
.chat-input-bar input { flex: 1; background: #000; border: 1px solid var(--border-color); color: #fff; padding: 12px 14px; border-radius: 10px; font-size: 13px; outline: none; }  
.suggestion-chips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }  
.sugg-chip { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: #fff; padding: 10px; border-radius: 10px; font-size: 11px; text-align: left; cursor: pointer; }  
.sugg-chip:active { background: rgba(255, 30, 66, 0.2); border-color: var(--brand-red); }  
.memory-list { list-style: none; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-secondary); max-height: 140px; overflow-y: auto; }  
  
  
  
/* =========================================================  
 V7 APEX EXPANSION STYLES  
 Concept Cars, Maintenance Tracker, Optimus Missions, Smart Appliances  
 ========================================================= */  
  
/* Concept Cars Dossier */  
.concept-search-bar { display: flex; gap: 10px; margin: 12px 0; }  
.concept-dossier { background: #030102; border: 1px solid var(--border-color); border-radius: 14px; padding: 18px; margin-top: 12px; }  
.dossier-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; }  
.dossier-title { font-size: 20px; font-weight: 900; letter-spacing: 1px; }  
.dossier-sub { font-size: 11px; color: var(--text-secondary); font-family: var(--font-mono); margin-top: 4px; display: block; }  
  
.dossier-specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 16px; }  
.d-spec-box { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color); padding: 10px 12px; border-radius: 8px; }  
.d-label { font-size: 8px; letter-spacing: 1px; color: var(--text-secondary); display: block; }  
.d-spec-box strong { font-size: 13px; font-family: var(--font-mono); color: #fff; margin-top: 2px; display: block; }  
  
.dossier-history-box { background: rgba(255, 30, 66, 0.06); border: 1px solid rgba(255, 30, 66, 0.2); border-radius: 10px; padding: 14px; margin-bottom: 16px; }  
.history-title { font-size: 10px; letter-spacing: 1.5px; color: var(--brand-red-light); margin-bottom: 6px; font-weight: 800; }  
.history-text { font-size: 12px; line-height: 1.6; color: var(--text-primary); }  
.dossier-action-bar { display: flex; gap: 10px; flex-wrap: wrap; }  
  
/* Maintenance Tracker */  
.maint-stats-matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 14px 0; }  
.m-stat-card { background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); padding: 14px; border-radius: 12px; }  
.m-label { font-size: 9px; color: var(--text-secondary); display: block; letter-spacing: 1px; }  
.m-val { font-size: 18px; font-weight: 900; font-family: var(--font-mono); display: block; margin: 4px 0; }  
.m-sub { font-size: 10px; color: var(--text-dim); }  
  
.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }  
@media (max-width: 700px) { .checklist-grid { grid-template-columns: 1fr; } }  
.check-item { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color); padding: 10px 14px; border-radius: 8px; display: flex; align-items: center; gap: 10px; font-size: 12px; }  
.check-item strong { margin-left: auto; font-family: var(--font-mono); font-size: 11px; }  
.service-history-terminal { background: #020102; border: 1px solid var(--border-color); border-radius: 10px; padding: 12px; max-height: 160px; overflow-y: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); line-height: 1.6; margin-top: 10px; }  
.history-entry { padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }  
  
/* Optimus Advanced Missions */  
.mission-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 12px; }  
.directive-card {  
 background: rgba(0, 0, 0, 0.6);  
 border: 1px solid var(--border-color);  
 border-radius: 14px;  
 padding: 16px;  
 cursor: pointer;  
 transition: all 0.2s;  
 display: flex;  
 flex-direction: column;  
}  
.directive-card:hover, .directive-card.active {  
 border-color: var(--brand-red);  
 background: rgba(255, 30, 66, 0.12);  
 box-shadow: 0 0 20px rgba(255, 30, 66, 0.3);  
 transform: translateY(-2px);  
}  
.directive-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }  
.d-icon { font-size: 26px; }  
.d-title { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #fff; display: block; }  
.d-sub { font-size: 9px; color: var(--brand-red-light); font-family: var(--font-mono); }  
.d-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.4; margin-bottom: 12px; flex: 1; }  
.d-specs { display: flex; justify-content: space-between; font-size: 9px; color: var(--text-dim); font-family: var(--font-mono); border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 8px; }  
  
.mission-telemetry-box { background: rgba(0, 0, 0, 0.7); border: 1px solid var(--brand-red); border-radius: 14px; padding: 16px; }  
.mission-metrics-readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 10px; font-size: 12px; color: var(--text-secondary); }  
.mission-metrics-readout strong { color: #fff; font-family: var(--font-mono); }  
  
/* Smart Appliances & Presence */  
.presence-mode-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px 0; }  
.btn-pres-mode { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 11px; font-weight: 700; cursor: pointer; }  
.btn-pres-mode.active { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }  
  
.automation-rules-grid { display: flex; flex-direction: column; gap: 10px; }  
.auto-rule-item { background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); padding: 12px 16px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }  
.rule-info strong { display: block; font-size: 12px; color: #fff; margin-bottom: 3px; }  
.rule-info p { font-size: 11px; color: var(--text-secondary); }  
.btn-rule-toggle { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-color); color: var(--text-secondary); padding: 6px 12px; border-radius: 6px; font-size: 10px; font-weight: 800; cursor: pointer; }  
.btn-rule-toggle.active { background: #00ff88; color: #000; border-color: #00ff88; }  
  
.appliances-list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }  
.appliance-box { background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }  
.app-head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #fff; }  
.app-head .badge { margin-left: auto; }  
.app-body { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--text-secondary); }  
.app-body strong { color: #fff; }  
  
  
  
/* =========================================================  
 V6 TITAN EXPANSION STYLES  
 Prompt Bar, AEB Radar, Garage Bay, EV Charger, Optimus Sim & AI Copilot  
 ========================================================= */  
  
/* Global Prompt Bar */  
.hud-prompt-bar {  
 display: flex;  
 align-items: center;  
 gap: 10px;  
 padding: 8px 16px;  
 background: rgba(10, 4, 6, 0.96);  
 border-bottom: 1px solid var(--border-color);  
 z-index: 90;  
}  
.prompt-icon { font-size: 16px; color: var(--brand-red); text-shadow: 0 0 10px var(--brand-red); }  
#global-prompt-input {  
 flex: 1;  
 background: rgba(0, 0, 0, 0.6);  
 border: 1px solid var(--border-color);  
 color: #fff;  
 padding: 8px 14px;  
 border-radius: 8px;  
 font-size: 12px;  
 outline: none;  
}  
#global-prompt-input:focus { border-color: var(--brand-red); box-shadow: 0 0 10px rgba(255, 30, 66, 0.4); }  
.btn-prompt-exec {  
 background: var(--brand-red);  
 color: #fff;  
 border: none;  
 border-radius: 8px;  
 padding: 8px 14px;  
 font-size: 11px;  
 font-weight: 800;  
 letter-spacing: 1px;  
 cursor: pointer;  
}  
.btn-prompt-ai {  
 background: rgba(255, 255, 255, 0.08);  
 border: 1px solid var(--border-color);  
 color: var(--brand-red-light);  
 border-radius: 8px;  
 padding: 8px 12px;  
 font-size: 11px;  
 font-weight: 700;  
 cursor: pointer;  
}  
  
/* --- ACTIVE SAFETY & AEB RADAR --- */  
.safety-dashboard-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }  
@media (max-width: 900px) { .safety-dashboard-grid { grid-template-columns: 1fr; } }  
  
.radar-visualizer-box {  
 display: flex;  
 gap: 16px;  
 align-items: center;  
 background: rgba(0,0,0,0.6);  
 border: 1px solid var(--border-color);  
 padding: 16px;  
 border-radius: 14px;  
 margin: 12px 0;  
}  
.radar-scope {  
 position: relative;  
 width: 160px;  
 height: 160px;  
 border-radius: 50%;  
 background: radial-gradient(circle at center, #2e0810 0%, #060204 100%);  
 border: 2px solid var(--brand-red);  
 overflow: hidden;  
 box-shadow: 0 0 20px rgba(255, 30, 66, 0.3);  
 flex-shrink: 0;  
}  
.radar-sweep {  
 position: absolute;  
 top: 0; left: 0; width: 100%; height: 100%;  
 border-radius: 50%;  
 background: conic-gradient(from 0deg, rgba(255, 30, 66, 0.5) 0deg, transparent 60deg, transparent 360deg);  
 animation: radarSpin 3s linear infinite;  
}  
@keyframes radarSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }  
.radar-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 30, 66, 0.3); }  
.radar-ring.r1 { top: 20px; left: 20px; width: 120px; height: 120px; }  
.radar-ring.r2 { top: 45px; left: 45px; width: 70px; height: 70px; }  
.radar-ring.r3 { top: 65px; left: 65px; width: 30px; height: 30px; }  
.radar-host-car { position: absolute; bottom: 8px; left: 70px; font-size: 18px; z-index: 10; }  
.radar-blip { position: absolute; top: 40px; left: 74px; font-size: 16px; animation: blipFlash 0.8s infinite; z-index: 10; }  
@keyframes blipFlash { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(1.2); } }  
  
.radar-readouts { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--text-secondary); }  
.radar-readouts strong { color: #fff; }  
.aeb-controls-row { display: flex; gap: 10px; flex-wrap: wrap; }  
  
/* Pedestrian Detection Viewport */  
.camera-vision-box { margin: 12px 0; }  
.vision-viewport {  
 position: relative;  
 width: 100%;  
 height: 180px;  
 background: radial-gradient(circle at center, #26090e 0%, #080204 100%);  
 border: 1px solid var(--brand-red);  
 border-radius: 12px;  
 overflow: hidden;  
}  
.scanlines {  
 position: absolute;  
 top: 0; left: 0; width: 100%; height: 100%;  
 background: repeating-linear-gradient(0deg, rgba(255, 30, 66, 0.05), rgba(255, 30, 66, 0.05) 1px, transparent 1px, transparent 3px);  
 pointer-events: none;  
}  
.vision-box-target {  
 position: absolute;  
 top: 30px; left: 45%;  
 width: 50px; height: 100px;  
 border: 2px solid var(--brand-red);  
 box-shadow: 0 0 10px var(--brand-red);  
 animation: boxTrack 2s ease-in-out infinite alternate;  
}  
@keyframes boxTrack { 0% { transform: translateX(-10px); } 100% { transform: translateX(10px); } }  
.box-tag { position: absolute; top: -18px; left: -10px; font-size: 9px; font-family: var(--font-mono); color: var(--brand-red); white-space: nowrap; font-weight: 800; }  
.vision-hud-tag { position: absolute; bottom: 8px; left: 10px; font-size: 9px; font-family: var(--font-mono); color: var(--brand-red-light); }  
.pds-metrics-bar { display: flex; justify-content: space-between; background: rgba(0,0,0,0.5); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-color); font-size: 11px; }  
  
/* --- GARAGE SENSORS & LOGS --- */  
.garage-system-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }  
@media (max-width: 900px) { .garage-system-layout { grid-template-columns: 1fr; } }  
  
.garage-bay-graphic {  
 background: #030102;  
 border: 1px solid var(--border-color);  
 border-radius: 14px;  
 padding: 16px;  
 margin: 12px 0;  
 display: flex;  
 flex-direction: column;  
 gap: 14px;  
}  
.garage-back-wall {  
 display: flex;  
 justify-content: space-between;  
 align-items: center;  
 background: rgba(255, 30, 66, 0.15);  
 border: 2px solid var(--brand-red);  
 padding: 10px 14px;  
 border-radius: 8px;  
 font-size: 11px;  
 font-weight: 800;  
 color: #fff;  
}  
.depth-sensor-emitter { font-family: var(--font-mono); color: var(--brand-red-light); font-size: 10px; }  
.garage-drive-lane {  
 position: relative;  
 height: 120px;  
 background: rgba(255, 255, 255, 0.02);  
 border: 1px dashed var(--border-color);  
 border-radius: 10px;  
 display: flex;  
 align-items: center;  
 justify-content: center;  
}  
.bay-car-silhouette {  
 width: 140px;  
 height: 60px;  
 background: var(--brand-red);  
 border-radius: 12px;  
 display: flex;  
 align-items: center;  
 justify-content: center;  
 font-size: 11px;  
 font-weight: 800;  
 color: #fff;  
 box-shadow: 0 0 15px rgba(255, 30, 66, 0.5);  
 transition: all 0.3s ease;  
}  
.depth-measure-line {  
 position: absolute;  
 bottom: 8px;  
 width: 80%;  
 border-bottom: 2px dotted var(--brand-red-light);  
 text-align: center;  
 font-family: var(--font-mono);  
 font-size: 11px;  
 color: var(--brand-red-light);  
}  
.garage-door-threshold {  
 position: relative;  
 padding: 10px;  
 background: rgba(0,0,0,0.5);  
 border-radius: 8px;  
 border: 1px solid var(--border-color);  
}  
.beam-active {  
 height: 6px;  
 background: #00ff88;  
 border-radius: 3px;  
 box-shadow: 0 0 12px #00ff88;  
 margin-bottom: 6px;  
 transition: all 0.2s;  
}  
.beam-active.tripped {  
 background: var(--brand-red);  
 box-shadow: 0 0 18px var(--brand-red);  
 animation: beamAlarm 0.4s infinite;  
}  
@keyframes beamAlarm { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }  
.threshold-label { font-size: 9px; letter-spacing: 1px; color: var(--text-secondary); font-family: var(--font-mono); }  
  
.garage-safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }  
.g-stat-box { background: rgba(0,0,0,0.5); border: 1px solid var(--border-color); padding: 10px; border-radius: 10px; }  
.g-stat-title { font-size: 8px; color: var(--text-secondary); display: block; }  
.g-stat-num { font-size: 14px; font-weight: 800; display: block; margin: 4px 0; font-family: var(--font-mono); }  
.g-stat-sub { font-size: 9px; color: var(--text-dim); }  
.garage-interactive-controls { display: flex; gap: 8px; flex-wrap: wrap; }  
  
.audit-log-terminal {  
 background: #020102;  
 border: 1px solid var(--border-color);  
 border-radius: 10px;  
 padding: 12px;  
 height: 320px;  
 overflow-y: auto;  
 font-family: var(--font-mono);  
 font-size: 11px;  
 line-height: 1.6;  
}  
.log-row { padding: 4px 0; border-bottom: 1px solid rgba(255, 30, 66, 0.1); }  
.log-row.alert { color: var(--brand-red); font-weight: 700; }  
.log-row.success { color: #00ff88; }  
.log-row.info { color: var(--text-secondary); }  
  
/* --- EV CHARGER & ROBOTIC PLUG --- */  
.charging-system-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }  
.battery-cylinder {  
 position: relative;  
 height: 48px;  
 background: rgba(0, 0, 0, 0.6);  
 border: 2px solid var(--brand-red);  
 border-radius: 12px;  
 overflow: hidden;  
 margin: 10px 0;  
 display: flex;  
 align-items: center;  
}  
.battery-fill {  
 height: 100%;  
 background: linear-gradient(90deg, var(--brand-crimson-deep) 0%, var(--brand-red) 100%);  
 border-radius: 8px;  
 transition: width 0.5s ease;  
}  
.soc-text {  
 position: absolute;  
 width: 100%;  
 text-align: center;  
 font-size: 20px;  
 font-weight: 900;  
 font-family: var(--font-mono);  
 color: #fff;  
 text-shadow: 0 0 10px #000;  
}  
.ev-range-info { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); margin-bottom: 16px; }  
  
.robotic-arm-dock-box {  
 background: rgba(0, 0, 0, 0.5);  
 border: 1px solid var(--border-color);  
 border-radius: 14px;  
 padding: 16px;  
 margin-bottom: 16px;  
}  
.robot-arm-animation-container {  
 display: flex;  
 align-items: center;  
 justify-content: space-between;  
 height: 90px;  
 position: relative;  
}  
.charger-base { display: flex; flex-direction: column; font-size: 11px; font-weight: 700; color: #fff; }  
.charge-cable-arm { width: 140px; height: 12px; background: rgba(255, 30, 66, 0.3); border-radius: 6px; position: relative; margin-top: 6px; }  
.plug-head {  
 position: absolute;  
 right: 0; top: -10px;  
 background: var(--brand-red);  
 color: #fff;  
 font-size: 10px;  
 font-weight: 800;  
 padding: 8px 12px;  
 border-radius: 8px;  
 box-shadow: 0 0 12px var(--brand-red);  
 transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);  
}  
.plug-head.extended { transform: translateX(120px); background: #00ff88; box-shadow: 0 0 15px #00ff88; }  
.car-charge-port { display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; font-weight: 700; color: #fff; }  
.socket-receiver { width: 34px; height: 34px; border: 2px dashed var(--brand-red); border-radius: 50%; margin-top: 6px; }  
.arm-status-caption { font-family: var(--font-mono); font-size: 11px; color: var(--brand-red-light); text-align: center; margin-top: 8px; }  
.ev-charger-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }  
.charge-limit-slider-box { margin-left: auto; font-size: 12px; display: flex; align-items: center; gap: 10px; }  
  
/* --- VEHICLE FLEET --- */  
.fleet-manager-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }  
@media (max-width: 900px) { .fleet-manager-layout { grid-template-columns: 1fr; } }  
.add-vehicle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }  
.v-field label { display: block; font-size: 9px; font-weight: 800; letter-spacing: 1px; color: var(--text-secondary); margin-bottom: 4px; }  
.v-field input, .v-field select { width: 100%; background: #000; border: 1px solid var(--border-color); color: #fff; padding: 10px; border-radius: 8px; font-size: 12px; outline: none; }  
.fleet-cards-container { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; max-height: 400px; overflow-y: auto; }  
.fleet-car-item {  
 background: rgba(0,0,0,0.5);  
 border: 1px solid var(--border-color);  
 padding: 12px 16px;  
 border-radius: 12px;  
 display: flex;  
 justify-content: space-between;  
 align-items: center;  
}  
.fleet-car-item.active { border-color: var(--brand-red); background: rgba(255, 30, 66, 0.12); }  
.fleet-car-name { font-size: 14px; font-weight: 800; color: #fff; }  
.fleet-car-meta { font-size: 11px; color: var(--text-secondary); font-family: var(--font-mono); }  
  
/* --- OPTIMUS SIMULATOR --- */  
.sim-viewport-wrapper {  
 position: relative;  
 background: #030102;  
 border: 1px solid var(--border-color);  
 border-radius: 14px;  
 overflow: hidden;  
 margin: 12px 0;  
 display: flex;  
 justify-content: center;  
}  
#optimus-sim-canvas { width: 100%; height: auto; max-height: 380px; display: block; }  
.sim-overlay-controls {  
 position: absolute;  
 bottom: 10px; left: 10px;  
 display: flex;  
 gap: 8px;  
 flex-wrap: wrap;  
}  
.btn-sim-tool { background: rgba(0,0,0,0.7); border: 1px solid var(--border-color); color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; cursor: pointer; }  
.sim-kinematics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; font-size: 11px; color: var(--text-secondary); }  
.sim-kinematics-grid strong { color: #fff; display: block; margin-top: 2px; }  
  
/* --- AI COPILOT & CHAT --- */  
.assistant-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }  
@media (max-width: 900px) { .assistant-layout { grid-template-columns: 1fr; } }  
.chat-history-box {  
 background: #030102;  
 border: 1px solid var(--border-color);  
 border-radius: 12px;  
 padding: 14px;  
 height: 280px;  
 overflow-y: auto;  
 display: flex;  
 flex-direction: column;  
 gap: 10px;  
 margin: 10px 0;  
}  
.chat-bubble { padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.4; max-width: 85%; }  
.chat-bubble.ai { background: rgba(255, 30, 66, 0.15); border: 1px solid var(--border-color); color: #fff; align-self: flex-start; }  
.chat-bubble.user { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; align-self: flex-end; }  
.chat-input-bar { display: flex; gap: 10px; }  
.chat-input-bar input { flex: 1; background: #000; border: 1px solid var(--border-color); color: #fff; padding: 12px 14px; border-radius: 10px; font-size: 13px; outline: none; }  
.suggestion-chips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }  
.sugg-chip { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: #fff; padding: 10px; border-radius: 10px; font-size: 11px; text-align: left; cursor: pointer; }  
.sugg-chip:active { background: rgba(255, 30, 66, 0.2); border-color: var(--brand-red); }  
.memory-list { list-style: none; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-secondary); max-height: 140px; overflow-y: auto; }  
  
  
  
/* =========================================================  
 V8 MOBILE SCREEN LAYOUT & PWA TACTICAL PERFECTION  
 iOS Safe-Area, Touch Targets, Responsive Grids & Scopes  
 ========================================================= */  
  
:root {  
 --sat: env(safe-area-inset-top, 0px);  
 --sar: env(safe-area-inset-right, 0px);  
 --sab: env(safe-area-inset-bottom, 0px);  
 --sal: env(safe-area-inset-left, 0px);  
}  
  
body {  
 width: 100vw;  
 max-width: 100vw;  
 overflow-x: hidden;  
 box-sizing: border-box;  
 padding-top: var(--sat);  
 padding-bottom: var(--sab);  
 padding-left: var(--sal);  
 padding-right: var(--sar);  
}  
  
.hud-wrapper {  
 width: 100%;  
 max-width: 100%;  
 overflow-x: hidden;  
 box-sizing: border-box;  
}  
  
/* Nav Bar Smooth Horizontal Mobile Touch Scroll */  
.hud-nav {  
 display: flex !important;  
 flex-direction: row !important;  
 overflow-x: auto !important;  
 -webkit-overflow-scrolling: touch !important;  
 scrollbar-width: none !important;  
 gap: 8px !important;  
 padding: 8px 12px !important;  
 white-space: nowrap !important;  
 border-bottom: 1px solid var(--border-color);  
 background: rgba(12, 4, 7, 0.95);  
}  
.hud-nav::-webkit-scrollbar {  
 display: none;  
}  
.nav-tab {  
 flex-shrink: 0 !important;  
 min-height: 44px !important;  
 display: inline-flex !important;  
 align-items: center !important;  
 justify-content: center !important;  
 padding: 8px 16px !important;  
 border-radius: 20px !important;  
 font-size: 11px !important;  
 font-weight: 800 !important;  
 letter-spacing: 1px !important;  
}  
  
/* Connected Cars History Dropdown Styling */  
.connected-history-box {  
 border: 1px solid rgba(255, 30, 66, 0.45) !important;  
 background: rgba(10, 4, 7, 0.95) !important;  
 box-shadow: 0 0 20px rgba(255, 30, 66, 0.15);  
}  
#connected-cars-history-select {  
 background: rgba(0, 0, 0, 0.85);  
 border: 1px solid var(--border-glow);  
 color: #fff;  
 border-radius: 8px;  
 outline: none;  
}  
#connected-cars-history-select:focus {  
 border-color: var(--brand-red);  
 box-shadow: 0 0 10px rgba(255, 30, 66, 0.5);  
}  
  
/* Table Wrappers for Responsive Horizontal Scroll */  
.safety-log-table-wrapper,  
.targets-table-wrapper,  
.fleet-table-wrapper,  
.actuator-table-wrapper,  
.cmd-table-wrapper,  
.obd-table-wrapper {  
 width: 100%;  
 overflow-x: auto;  
 -webkit-overflow-scrolling: touch;  
 border-radius: 8px;  
 background: rgba(0, 0, 0, 0.4);  
}  
  
/* Responsive Grids on Mobile */  
@media (max-width: 768px) {  
 .hud-header {  
 flex-direction: column;  
 gap: 8px;  
 padding: 10px;  
 }  
 .header-left, .header-center, .header-right {  
 width: 100%;  
 justify-content: center;  
 flex-wrap: wrap;  
 }  
 .hud-clock {  
 font-size: 20px !important;  
 }  
 .hud-main {  
 padding: 10px 8px !important;  
 }  
 .safety-dashboard-grid,  
 .garage-system-layout,  
 .charging-system-layout,  
 .fleet-manager-layout,  
 .optimus-sim-layout,  
 .assistant-layout,  
 .concept-intel-layout {  
 display: flex !important;  
 flex-direction: column !important;  
 gap: 14px !important;  
 }  
 .hud-card {  
 width: 100% !important;  
 max-width: 100% !important;  
 box-sizing: border-box !important;  
 padding: 14px !important;  
 }  
 .radar-scope {  
 width: 240px !important;  
 height: 240px !important;  
 }  
 #optimus-sim-canvas {  
 width: 100% !important;  
 height: auto !important;  
 }  
 .quick-chips-bar {  
 overflow-x: auto;  
 white-space: nowrap;  
 padding-bottom: 6px;  
 }  
}  
  
/* =========================================================  
 MYSTHOOD RED HUB APEX v9 — V2 ENHANCEMENTS & OVERHAULS  
 ========================================================= */  
  
/* --- 1. PROMPT BAR & RESPONSIVE COMMAND TERMINAL --- */  
.hud-prompt-bar {  
 display: flex;  
 align-items: center;  
 gap: 12px;  
 padding: 8px 16px;  
 background: rgba(12, 4, 7, 0.98);  
 border-bottom: 1px solid var(--border-glow);  
 z-index: 95;  
 box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);  
}  
  
.prompt-input-wrapper {  
 flex: 1;  
 min-width: 0;  
 display: flex;  
 align-items: center;  
 gap: 10px;  
 background: rgba(0, 0, 0, 0.7);  
 border: 1px solid var(--border-color);  
 border-radius: 10px;  
 padding: 8px 14px;  
 transition: border-color 0.2s, box-shadow 0.2s;  
}  
  
.prompt-input-wrapper:focus-within {  
 border-color: var(--brand-red);  
 box-shadow: 0 0 14px rgba(255, 30, 66, 0.4);  
}  
  
.prompt-icon {  
 font-size: 16px;  
 color: var(--brand-red);  
 flex-shrink: 0;  
 filter: drop-shadow(0 0 8px var(--brand-red));  
}  
  
.hud-prompt-bar input {  
 flex: 1;  
 min-width: 0;  
 background: transparent;  
 border: none;  
 color: #fff;  
 font-family: var(--font-hud);  
 font-size: 13px;  
 outline: none;  
}  
  
.hud-prompt-bar input::placeholder {  
 color: var(--text-dim);  
 font-size: 12px;  
}  
  
.prompt-btn-group {  
 display: flex;  
 align-items: center;  
 gap: 8px;  
 flex-shrink: 0;  
}  
  
.btn-prompt-exec {  
 background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-crimson-deep) 100%);  
 color: #fff;  
 border: 1px solid rgba(255, 255, 255, 0.2);  
 border-radius: 8px;  
 padding: 9px 16px;  
 font-size: 11px;  
 font-weight: 800;  
 letter-spacing: 1px;  
 cursor: pointer;  
 white-space: nowrap;  
 box-shadow: 0 0 14px rgba(255, 30, 66, 0.35);  
 transition: transform 0.15s, box-shadow 0.15s;  
}  
  
.btn-prompt-exec:active {  
 transform: scale(0.96);  
}  
  
.btn-prompt-ai {  
 background: rgba(255, 30, 66, 0.15);  
 border: 1px solid var(--brand-red);  
 color: var(--brand-red-light);  
 border-radius: 8px;  
 padding: 9px 14px;  
 font-size: 11px;  
 font-weight: 800;  
 letter-spacing: 1px;  
 cursor: pointer;  
 white-space: nowrap;  
 display: flex;  
 align-items: center;  
 gap: 6px;  
 transition: all 0.2s;  
}  
  
.btn-prompt-ai:active {  
 background: rgba(255, 30, 66, 0.3);  
 transform: scale(0.96);  
}  
  
@media (max-width: 650px) {  
 .hud-prompt-bar {  
 padding: 6px 12px;  
 gap: 8px;  
 }  
 .btn-prompt-exec {  
 padding: 8px 12px;  
 font-size: 10px;  
 }  
 .btn-prompt-ai {  
 padding: 8px 10px;  
 font-size: 10px;  
 }  
}  
  
/* --- 2. PERSISTENT FLOATING AI COPILOT LAUNCHER --- */  
.floating-copilot-dock {  
 position: fixed;  
 bottom: calc(14px + env(safe-area-inset-bottom));  
 right: 18px;  
 z-index: 990;  
 pointer-events: auto;  
}  
  
.btn-floating-copilot-pill {  
 display: flex;  
 align-items: center;  
 gap: 8px;  
 background: linear-gradient(135deg, rgba(255, 30, 66, 0.95) 0%, rgba(160, 0, 30, 0.95) 100%);  
 border: 1px solid rgba(255, 255, 255, 0.6);  
 color: #fff;  
 border-radius: 30px;  
 padding: 10px 18px;  
 font-size: 12px;  
 font-weight: 800;  
 letter-spacing: 1.5px;  
 cursor: pointer;  
 box-shadow: 0 0 25px rgba(255, 30, 66, 0.6), 0 6px 18px rgba(0, 0, 0, 0.85);  
 backdrop-filter: blur(12px);  
 transition: transform 0.2s, box-shadow 0.2s;  
}  
  
.btn-floating-copilot-pill:active {  
 transform: scale(0.94);  
 box-shadow: 0 0 35px rgba(255, 30, 66, 0.9);  
}  
  
.copilot-pulse-dot {  
 width: 8px;  
 height: 8px;  
 border-radius: 50%;  
 background: #fff;  
 box-shadow: 0 0 10px #fff;  
 animation: pulseGlow 1.8s infinite;  
}  
  
/* --- 3. TACTICAL RADIO & SOUNDSTAGE COCKPIT (.radio-system-layout) --- */  
.radio-system-layout {  
 display: grid;  
 grid-template-columns: 1.25fr 1fr;  
 gap: 16px;  
}  
  
@media (max-width: 950px) {  
 .radio-system-layout {  
 grid-template-columns: 1fr;  
 }  
}  
  
.radio-tuner-card {  
 display: flex;  
 flex-direction: column;  
}  
  
.radio-status-badges {  
 display: flex;  
 gap: 6px;  
 flex-wrap: wrap;  
}  
  
.radio-dial-display {  
 background: radial-gradient(circle at center, #1b060d 0%, #060204 100%);  
 border: 1px solid var(--border-glow);  
 border-radius: 14px;  
 padding: 18px 22px;  
 margin: 10px 0 14px 0;  
 box-shadow: inset 0 0 20px rgba(255, 30, 66, 0.15);  
}  
  
.freq-meta-row {  
 display: flex;  
 justify-content: space-between;  
 align-items: center;  
 margin-bottom: 6px;  
}  
  
.freq-band-tag {  
 font-family: var(--font-mono);  
 font-size: 10px;  
 color: var(--brand-red-light);  
 font-weight: 700;  
 letter-spacing: 1px;  
}  
  
.freq-number-wrap {  
 text-align: center;  
 margin: 6px 0;  
}  
  
.station-meta-box {  
 border-top: 1px solid rgba(255, 30, 66, 0.2);  
 padding-top: 8px;  
 margin-top: 8px;  
 display: flex;  
 flex-direction: column;  
 gap: 4px;  
}  
  
.rds-meta-ticker {  
 font-family: var(--font-mono);  
 font-size: 10px;  
 color: var(--neon-amber);  
 letter-spacing: 1px;  
 overflow: hidden;  
 text-overflow: ellipsis;  
 white-space: nowrap;  
}  
  
/* Audio Spectrum Analyzer */  
.radio-spectrum-container {  
 background: rgba(0, 0, 0, 0.7);  
 border: 1px solid var(--border-color);  
 border-radius: 12px;  
 padding: 12px 14px;  
 margin-bottom: 14px;  
}  
  
.spectrum-header {  
 display: flex;  
 justify-content: space-between;  
 font-size: 9px;  
 color: var(--text-dim);  
 font-weight: 800;  
 letter-spacing: 1px;  
 margin-bottom: 8px;  
}  
  
.radio-spectrum-canvas {  
 width: 100%;  
 height: 110px;  
 display: block;  
}  
  
.frequency-tuner-bar {  
 display: flex;  
 align-items: center;  
 gap: 12px;  
 margin-bottom: 14px;  
}  
  
.btn-freq-step {  
 background: rgba(255, 255, 255, 0.08);  
 border: 1px solid var(--border-color);  
 color: #fff;  
 font-family: var(--font-mono);  
 font-size: 11px;  
 font-weight: 800;  
 padding: 8px 12px;  
 border-radius: 8px;  
 cursor: pointer;  
}  
  
.btn-freq-step:active {  
 background: var(--brand-red);  
}  
  
.radio-preset-buttons {  
 display: grid;  
 grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));  
 gap: 10px;  
 margin-bottom: 16px;  
}  
  
.btn-preset {  
 background: rgba(14, 5, 8, 0.85);  
 border: 1px solid var(--border-color);  
 border-radius: 10px;  
 padding: 10px 12px;  
 color: #fff;  
 cursor: pointer;  
 text-align: left;  
 transition: all 0.2s;  
}  
  
.btn-preset:hover {  
 background: rgba(255, 30, 66, 0.15);  
 border-color: var(--brand-red-light);  
}  
  
.btn-preset.active {  
 background: linear-gradient(135deg, rgba(255, 30, 66, 0.25) 0%, rgba(160, 0, 30, 0.35) 100%);  
 border-color: var(--brand-red);  
 box-shadow: 0 0 14px rgba(255, 30, 66, 0.3);  
}  
  
.preset-freq {  
 font-size: 12px;  
 font-weight: 900;  
 font-family: var(--font-mono);  
 color: var(--brand-red);  
}  
  
.preset-title {  
 font-size: 11px;  
 color: var(--text-secondary);  
 margin-top: 2px;  
}  
  
.btn-play-radio {  
 padding: 12px 22px;  
 font-size: 13px;  
 font-weight: 800;  
 letter-spacing: 1.5px;  
 display: flex;  
 align-items: center;  
 gap: 8px;  
}  
  
.vol-pct {  
 font-family: var(--font-mono);  
 font-size: 11px;  
 color: var(--text-secondary);  
 min-width: 32px;  
}  
  
/* 5-Band Graphic Equalizer Matrix */  
.equalizer-band-matrix {  
 display: flex;  
 justify-content: space-around;  
 background: rgba(0, 0, 0, 0.6);  
 border: 1px solid var(--border-color);  
 border-radius: 12px;  
 padding: 16px 10px;  
 margin: 12px 0;  
}  
  
.eq-band {  
 display: flex;  
 flex-direction: column;  
 align-items: center;  
 gap: 6px;  
}  
  
.eq-val {  
 font-family: var(--font-mono);  
 font-size: 10px;  
 color: var(--brand-red-light);  
 font-weight: 700;  
 min-height: 14px;  
}  
  
.eq-slider-wrap {  
 height: 120px;  
 display: flex;  
 align-items: center;  
 justify-content: center;  
}  
  
.eq-slider {  
 -webkit-appearance: slider-vertical;  
 writing-mode: bt-lr;  
 width: 14px;  
 height: 100px;  
 accent-color: var(--brand-red);  
 cursor: pointer;  
}  
  
.eq-freq {  
 font-family: var(--font-mono);  
 font-size: 10px;  
 color: #fff;  
 font-weight: 800;  
}  
  
.eq-name {  
 font-size: 8px;  
 color: var(--text-dim);  
 font-weight: 800;  
 letter-spacing: 0.8px;  
}  
  
.btn-dsp-preset {  
 background: rgba(255, 255, 255, 0.06);  
 border: 1px solid var(--border-color);  
 color: var(--text-secondary);  
 font-size: 10px;  
 font-weight: 800;  
 letter-spacing: 1px;  
 padding: 6px 12px;  
 border-radius: 8px;  
 cursor: pointer;  
}  
  
.btn-dsp-preset.active {  
 background: var(--brand-red);  
 color: #fff;  
 border-color: #fff;  
}  
  
/* Offline Media Deck Animated Disc */  
.disc-art-animated {  
 width: 74px;  
 height: 74px;  
 border-radius: 50%;  
 background: radial-gradient(circle at center, #2b0b13 0%, #0f0407 60%, #000 100%);  
 border: 2px solid var(--brand-red);  
 display: flex;  
 align-items: center;  
 justify-content: center;  
 box-shadow: 0 0 16px rgba(255, 30, 66, 0.4);  
}  
  
.disc-art-animated.spinning {  
 animation: rotateRing 3.5s linear infinite;  
}  
  
.disc-center-hole {  
 width: 22px;  
 height: 22px;  
 border-radius: 50%;  
 background: #000;  
 border: 2px solid var(--brand-red-light);  
 box-shadow: 0 0 8px var(--brand-red);  
}  
  
/* --- 4. 3D VEHICLE FLEET & DIGITAL TWIN VIEWER STYLES --- */  
.vehicle-3d-card {  
 border-color: var(--brand-red);  
 box-shadow: 0 0 35px rgba(255, 30, 66, 0.2);  
}  
  
.btn-mode-pill {  
 background: rgba(255, 255, 255, 0.06);  
 border: 1px solid var(--border-color);  
 color: var(--text-secondary);  
 font-size: 9px;  
 font-weight: 800;  
 letter-spacing: 1px;  
 padding: 6px 10px;  
 border-radius: 6px;  
 cursor: pointer;  
 transition: all 0.2s;  
}  
  
.btn-mode-pill.active {  
 background: var(--brand-red);  
 color: #fff;  
 border-color: #fff;  
 box-shadow: 0 0 12px rgba(255, 30, 66, 0.7);  
}  
  
.btn-cam-preset {  
 background: rgba(0, 0, 0, 0.65);  
 border: 1px solid var(--border-color);  
 color: #fff;  
 font-size: 9px;  
 font-weight: 700;  
 padding: 5px 9px;  
 border-radius: 6px;  
 cursor: pointer;  
}  
  
.btn-cam-preset.active {  
 border-color: var(--brand-red);  
 color: var(--brand-red-light);  
 background: rgba(255, 30, 66, 0.15);  
}  
  
.v-specs-mini-list li {  
 color: var(--text-secondary);  
}  
  
.v-specs-mini-list strong {  
 color: #fff;  
}  
  
/* --- 5. TACTICAL VECTOR SVG ICONS STYLES --- */  
.tac-icon {  
 vertical-align: middle;  
 display: inline-block;  
 stroke: currentColor;  
 flex-shrink: 0;  
}  
  
.nav-tab {  
 display: inline-flex;  
 align-items: center;  
 gap: 6px;  
}  
  
.nav-tab .tac-icon {  
 stroke: var(--text-secondary);  
}  
  
.nav-tab.active .tac-icon {  
 stroke: var(--brand-red);  
 filter: drop-shadow(0 0 8px var(--brand-red));  
}  
  
/* --- 6. STANDALONE PWA OPTIMIZATIONS & SUPPRESSIONS --- */  
body.pwa-standalone #auth-install-link-container,  
body.pwa-standalone .auth-install-link-box {  
 display: none !important;  
}  
  
body.pwa-standalone #auth-standalone-badge,  
body.pwa-standalone #settings-pwa-standalone-badge {  
 display: inline-block !important;  
}  
  
/* --- 7. REFINED TACTICAL CRIMSON PALETTE & MOBILE FLUIDITY --- */  
::-webkit-scrollbar {  
 width: 5px;  
 height: 5px;  
}  
  
::-webkit-scrollbar-track {  
 background: rgba(10, 4, 6, 0.6);  
}  
  
::-webkit-scrollbar-thumb {  
 background: rgba(255, 30, 66, 0.35);  
 border-radius: 3px;  
}  
  
::-webkit-scrollbar-thumb:hover {  
 background: var(--brand-red);  
}  
  
/* =========================================================  
 MYSTHOOD RED HUB APEX v10 (Stable Update V3)  
 STRICT GRID & LAYOUT ALIGNMENT OVERHAUL  
 ========================================================= */  
  
*, *::before, *::after {  
 box-sizing: border-box !important;  
}  
  
.hud-main {  
 position: relative;  
 width: 100%;  
 height: 100%;  
 overflow: hidden;  
 display: flex;  
 flex-direction: column;  
}  
  
.hud-tab-content {  
 box-sizing: border-box;  
 width: 100%;  
 height: 100%;  
 max-width: 100%;  
 overflow-y: auto;  
 overflow-x: hidden;  
 padding: 16px;  
 -webkit-overflow-scrolling: touch;  
}  
  
/* Prevent grid blowout across all dashboard layouts */  
.cockpit-grid,  
.benchmarks-layout,  
.music-full-layout,  
.radio-system-layout,  
.smarthome-grid,  
.tv-control-layout,  
.robotics-layout,  
.safety-dashboard-grid,  
.garage-system-layout,  
.charging-system-layout,  
.fleet-manager-layout,  
.assistant-layout,  
.terminal-logs-container,  
.network-layout {  
 box-sizing: border-box;  
 width: 100%;  
 max-width: 100%;  
 min-width: 0;  
}  
  
.hud-card,  
.card,  
.dashboard-grid > div,  
.hud-tab-content > div {  
 min-width: 0; /* Prevents overflow from pre/mono text or wide tables */  
 box-sizing: border-box;  
}  
  
/* Smooth mobile stacking */  
@media (max-width: 900px) {  
 .cockpit-grid,  
 .benchmarks-layout,  
 .music-full-layout,  
 .radio-system-layout,  
 .smarthome-grid,  
 .tv-control-layout,  
 .robotics-layout,  
 .safety-dashboard-grid,  
 .garage-system-layout,  
 .charging-system-layout,  
 .fleet-manager-layout,  
 .assistant-layout,  
 .terminal-logs-container {  
 grid-template-columns: 1fr !important;  
 gap: 14px;  
 }  
}  
  
/* =========================================================  
 TAB-LOGS: DEDICATED TACTICAL CONSOLE & AUDIT TAB  
 ========================================================= */  
.terminal-logs-container {  
 display: grid;  
 grid-template-columns: 1fr;  
 gap: 16px;  
 height: calc(100vh - 120px);  
}  
  
.terminal-card-main {  
 background: rgba(10, 4, 7, 0.96);  
 border: 1px solid var(--border-color);  
 border-radius: 16px;  
 padding: 16px;  
 display: flex;  
 flex-direction: column;  
 height: 100%;  
 overflow: hidden;  
 box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 30, 66, 0.05);  
}  
  
.terminal-control-bar {  
 display: flex;  
 justify-content: space-between;  
 align-items: center;  
 flex-wrap: wrap;  
 gap: 12px;  
 padding-bottom: 12px;  
 border-bottom: 1px solid rgba(255, 30, 66, 0.2);  
 margin-bottom: 12px;  
}  
  
.terminal-filter-pills {  
 display: flex;  
 align-items: center;  
 gap: 6px;  
 flex-wrap: wrap;  
}  
  
.pill-filter {  
 background: rgba(255, 255, 255, 0.06);  
 border: 1px solid var(--border-color);  
 color: var(--text-secondary);  
 font-family: var(--font-mono);  
 font-size: 10px;  
 font-weight: 800;  
 letter-spacing: 1px;  
 padding: 5px 12px;  
 border-radius: 20px;  
 cursor: pointer;  
 transition: all 0.2s ease;  
}  
  
.pill-filter:hover {  
 background: rgba(255, 30, 66, 0.2);  
 color: #fff;  
 border-color: var(--brand-red);  
}  
  
.pill-filter.active {  
 background: var(--brand-red);  
 color: #fff;  
 border-color: var(--brand-red-light);  
 box-shadow: 0 0 12px rgba(255, 30, 66, 0.6);  
}  
  
.terminal-actions {  
 display: flex;  
 align-items: center;  
 gap: 8px;  
}  
  
.btn-terminal-action {  
 background: rgba(255, 255, 255, 0.06);  
 border: 1px solid var(--border-color);  
 color: var(--text-primary);  
 font-family: var(--font-mono);  
 font-size: 10px;  
 font-weight: 800;  
 padding: 6px 14px;  
 border-radius: 8px;  
 cursor: pointer;  
 display: inline-flex;  
 align-items: center;  
 gap: 6px;  
 transition: all 0.2s ease;  
}  
  
.btn-terminal-action:hover {  
 background: rgba(255, 30, 66, 0.25);  
 border-color: var(--brand-red);  
}  
  
.btn-terminal-export {  
 background: linear-gradient(135deg, rgba(255, 30, 66, 0.3) 0%, rgba(160, 0, 30, 0.5) 100%);  
 border-color: var(--brand-red);  
 color: #fff;  
 box-shadow: 0 0 15px rgba(255, 30, 66, 0.3);  
}  
  
.terminal-window-body {  
 flex: 1;  
 background: rgba(4, 2, 3, 0.95);  
 border: 1px solid rgba(255, 30, 66, 0.15);  
 border-radius: 10px;  
 padding: 14px;  
 overflow-y: auto;  
 font-family: var(--font-mono);  
 font-size: 11px;  
 line-height: 1.6;  
 color: #e0d0d3;  
 display: flex;  
 flex-direction: column;  
 gap: 4px;  
 scrollbar-width: thin;  
 position: relative;  
}  
  
.terminal-window-body::after {  
 content: "";  
 position: sticky;  
 bottom: 0;  
 left: 0;  
 width: 100%;  
 height: 30px;  
 background: linear-gradient(0deg, rgba(4, 2, 3, 0.8) 0%, transparent 100%);  
 pointer-events: none;  
}  
  
.log-entry {  
 display: flex;  
 align-items: flex-start;  
 gap: 10px;  
 padding: 3px 6px;  
 border-radius: 4px;  
 transition: background 0.15s;  
 word-break: break-word;  
}  
  
.log-entry:hover {  
 background: rgba(255, 255, 255, 0.04);  
}  
  
.log-time {  
 color: var(--text-dim);  
 flex-shrink: 0;  
 font-size: 10px;  
}  
  
.log-tag-badge {  
 font-size: 9px;  
 font-weight: 800;  
 padding: 1px 6px;  
 border-radius: 4px;  
 flex-shrink: 0;  
 letter-spacing: 0.8px;  
}  
  
.log-tag-ALL { background: rgba(255, 255, 255, 0.1); color: #fff; }  
.log-tag-RADIO { background: rgba(0, 240, 255, 0.15); color: #00f0ff; border: 1px solid rgba(0, 240, 255, 0.3); }  
.log-tag-TV_CAST { background: rgba(186, 104, 200, 0.2); color: #ba68c8; border: 1px solid rgba(186, 104, 200, 0.4); }  
.log-tag-SECURITY { background: rgba(255, 145, 0, 0.2); color: var(--neon-amber); border: 1px solid rgba(255, 145, 0, 0.4); }  
.log-tag-ERROR { background: rgba(255, 30, 66, 0.25); color: var(--brand-red); border: 1px solid var(--brand-red); font-weight: 900; }  
.log-tag-TELEMETRY { background: rgba(76, 175, 80, 0.15); color: #81c784; border: 1px solid rgba(76, 175, 80, 0.3); }  
  
.log-text {  
 flex: 1;  
 color: var(--text-primary);  
}  
  
/* =========================================================  
 TV & CONSOLE MIRRORING ROUTER STYLES (TAB-TVS)  
 ========================================================= */  
.cast-router-panel {  
 display: flex;  
 flex-direction: column;  
 gap: 12px;  
 margin-top: 14px;  
 padding: 14px;  
 background: rgba(0, 0, 0, 0.4);  
 border: 1px solid rgba(255, 30, 66, 0.2);  
 border-radius: 12px;  
}  
  
.stream-input-group {  
 display: flex;  
 gap: 8px;  
}  
  
.stream-input-field {  
 flex: 1;  
 background: rgba(0, 0, 0, 0.6);  
 border: 1px solid var(--border-color);  
 color: #fff;  
 font-family: var(--font-mono);  
 font-size: 11px;  
 padding: 8px 12px;  
 border-radius: 8px;  
 outline: none;  
}  
  
.stream-input-field:focus {  
 border-color: var(--brand-red);  
 box-shadow: 0 0 10px rgba(255, 30, 66, 0.3);  
}  
  
.quick-stream-pills {  
 display: flex;  
 flex-wrap: wrap;  
 gap: 6px;  
}  
  
.btn-quick-stream {  
 background: rgba(255, 255, 255, 0.05);  
 border: 1px solid rgba(255, 255, 255, 0.1);  
 color: var(--text-secondary);  
 font-size: 10px;  
 font-family: var(--font-mono);  
 padding: 4px 10px;  
 border-radius: 6px;  
 cursor: pointer;  
 transition: all 0.2s ease;  
}  
  
.btn-quick-stream:hover {  
 background: rgba(255, 30, 66, 0.2);  
 border-color: var(--brand-red);  
 color: #fff;  
}  
  
.cast-telemetry-grid {  
 display: grid;  
 grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));  
 gap: 8px;  
 margin-top: 10px;  
}  
  
.cast-telemetry-card {  
 background: rgba(14, 5, 8, 0.7);  
 border: 1px solid rgba(255, 30, 66, 0.15);  
 border-radius: 8px;  
 padding: 8px;  
 text-align: center;  
}  
  
.cast-tel-label {  
 display: block;  
 font-size: 9px;  
 font-family: var(--font-mono);  
 color: var(--text-dim);  
 letter-spacing: 1px;  
}  
  
.cast-tel-val {  
 display: block;  
 font-size: 12px;  
 font-family: var(--font-mono);  
 font-weight: 800;  
 color: var(--brand-red-light);  
 margin-top: 2px;  
}  
  
#cast-mirror-preview {  
 width: 100%;  
 max-height: 180px;  
 border-radius: 10px;  
 border: 1px solid var(--brand-red);  
 margin-top: 10px;  
 display: none;  
 object-fit: cover;  
 background: #000;  
}  
  
/* =========================================================  
 VECTOR SVG ICONOGRAPHY HELPERS  
 ========================================================= */  
.tac-icon {  
 display: inline-block;  
 vertical-align: middle;  
 flex-shrink: 0;  
 transition: transform 0.2s ease, filter 0.2s ease;  
}  
  
.tac-icon:hover {  
 filter: drop-shadow(0 0 6px var(--brand-red));  
}  
  
.inline-tac-icon {  
 margin-right: 4px;  
}  
  


/* =========================================================
   V4 MANDATORY FIXES: UNIVERSAL RESPONSIVE CONTAINMENT & SAFE AREAS
   ========================================================= */
html, body {
  width: 100%;
  max-width: 100vw;
  height: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#hud-wrapper {
  padding-top: max(8px, env(safe-area-inset-top));
  padding-right: max(8px, env(safe-area-inset-right));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  padding-left: max(8px, env(safe-area-inset-left));
  max-width: 100vw;
  overflow: hidden;
  box-sizing: border-box;
}

.hud-header {
  padding-top: max(6px, env(safe-area-inset-top));
  flex-wrap: wrap;
  row-gap: 6px;
  max-width: 100%;
  overflow: hidden;
}

.hud-nav {
  max-width: 100%;
  flex-shrink: 0;
}

.nav-tab {
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hud-main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.hud-tab-content {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}

.hud-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
}

/* Audio Visualizers & Timeline Sliders Strict Containment */
.speedo-container,
.radio-dial-display,
.frequency-slider-container,
.scrub-container,
.audio-visualizer-canvas,
.fft-spectrum-container,
.media-player-card,
.dragstrip-grid,
.gmeter-mini-box,
canvas {
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

input[type="range"] {
  max-width: 100%;
  box-sizing: border-box;
}

/* Scanlines Tactile Overlay */
.hud-scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.28) 50%),
              linear-gradient(90deg, rgba(255, 30, 60, 0.02), rgba(0, 255, 102, 0.01), rgba(255, 30, 60, 0.02));
  background-size: 100% 3px, 6px 100%;
  z-index: 99998;
  opacity: 0.65;
}

/* =========================================================
   V4 CORE FEATURE: DUAL-TRIGGER REALITY SYNCHRONIZER (ADMIN MATRIX)
   ========================================================= */
.admin-matrix-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.card-reality-red {
  background: radial-gradient(circle at top left, rgba(40, 8, 14, 0.95) 0%, rgba(18, 6, 9, 0.96) 100%);
  border: 1px solid rgba(255, 30, 60, 0.5);
  box-shadow: 0 0 25px rgba(255, 30, 60, 0.25), inset 0 0 15px rgba(255, 30, 60, 0.1);
}

.card-reality-green {
  background: radial-gradient(circle at top left, rgba(8, 35, 18, 0.95) 0%, rgba(6, 18, 10, 0.96) 100%);
  border: 1px solid rgba(0, 255, 102, 0.5);
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.25), inset 0 0 15px rgba(0, 255, 102, 0.1);
}

.neon-emerald {
  color: #00ff66 !important;
  text-shadow: 0 0 12px rgba(0, 255, 102, 0.7);
}

.r-stat-box {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 30, 60, 0.3);
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.r-stat-box.green-border {
  border-color: rgba(0, 255, 102, 0.3);
}

.r-label {
  font-size: 8px;
  color: var(--text-dim);
  letter-spacing: 1px;
  font-weight: 800;
  text-transform: uppercase;
}

.r-val {
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 800;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Master Reality Trigger Buttons */
.btn-reality-trigger {
  position: relative;
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  border: none;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.trigger-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.btn-trigger-main {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
}

.btn-trigger-sub {
  font-size: 9px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
}

/* THE RED BUTTON: Heavy Pulsating Crimson Glow */
.btn-omni-purge {
  background: linear-gradient(135deg, #a0001e 0%, #ff1e3c 50%, #700012 100%);
  border: 2px solid #ff1e3c;
  box-shadow: 0 0 30px rgba(255, 30, 60, 0.6), inset 0 0 20px rgba(255, 30, 60, 0.4);
  animation: pulseRedTrigger 2.2s infinite ease-in-out;
}

.btn-omni-purge:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 45px rgba(255, 30, 60, 0.8), inset 0 0 25px rgba(255, 30, 60, 0.6);
}

.btn-omni-purge:active {
  transform: scale(0.98);
  filter: brightness(1.3);
}

@keyframes pulseRedTrigger {
  0%, 100% {
    box-shadow: 0 0 25px rgba(255, 30, 60, 0.5), inset 0 0 15px rgba(255, 30, 60, 0.3);
  }
  50% {
    box-shadow: 0 0 48px rgba(255, 30, 60, 0.85), inset 0 0 30px rgba(255, 30, 60, 0.6);
  }
}

/* THE GREEN BUTTON: Neon Emerald Tactical Styling */
.btn-local-anchor {
  background: linear-gradient(135deg, #006622 0%, #00cc44 50%, #004d1a 100%);
  border: 2px solid #00ff66;
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.5), inset 0 0 15px rgba(0, 255, 102, 0.3);
  animation: pulseGreenAnchor 2.8s infinite ease-in-out;
}

.btn-local-anchor:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 40px rgba(0, 255, 102, 0.8), inset 0 0 25px rgba(0, 255, 102, 0.5);
}

.btn-local-anchor:active {
  transform: scale(0.98);
  filter: brightness(1.3);
}

@keyframes pulseGreenAnchor {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.45), inset 0 0 12px rgba(0, 255, 102, 0.25);
  }
  50% {
    box-shadow: 0 0 42px rgba(0, 255, 102, 0.8), inset 0 0 25px rgba(0, 255, 102, 0.5);
  }
}

/* Kinetic Actuator 78+ Joint Thermal Grid */
.actuator-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.actuator-stat-card {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.a-label {
  font-size: 8px;
  color: var(--text-dim);
  letter-spacing: 1px;
  font-weight: 800;
}

.a-val {
  font-size: 14px;
  font-family: var(--font-mono);
  margin: 4px 0 2px 0;
}

.a-sub {
  font-size: 9px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.actuator-cells-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.actuator-cell-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
}

.actuator-cell-pill.nominal {
  border-color: rgba(0, 255, 102, 0.3);
  color: #00ff66;
}

.actuator-cell-pill.load {
  border-color: rgba(255, 145, 0, 0.4);
  color: var(--neon-amber);
}

.actuator-cell-pill.limit {
  border-color: rgba(255, 30, 60, 0.6);
  background: rgba(255, 30, 60, 0.15);
  color: #ff4d6d;
}

.cell-name {
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-secondary);
}

.cell-metrics {
  font-size: 10px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
}

/* =========================================================
   V4 NEXT-LEVEL COCKPIT: TACTICAL LOGS TELEMETRY REPLAY
   ========================================================= */
.telemetry-replay-card {
  background: radial-gradient(circle at top, rgba(28, 10, 15, 0.95) 0%, rgba(14, 5, 8, 0.98) 100%);
  border: 1px solid var(--border-glow);
}

.replay-transport-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-replay-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
}

.reconstructed-state-box {
  margin-top: 10px;
}

.recon-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.recon-stat {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 30, 60, 0.2);
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}

.recon-stat strong {
  font-size: 13px;
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* =========================================================
   V4 MODALS & LOCKOUT OVERLAY
   ========================================================= */
.modal-reality-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-reality-card {
  background: rgba(18, 6, 9, 0.98);
  border: 2px solid #ff1e3c;
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 60px rgba(255, 30, 60, 0.5);
}

.lockout-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #26050b 0%, #050102 100%);
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.lockout-hud-content {
  max-width: 600px;
  width: 100%;
}

.pulse-green {
  animation: pulseBadgeGreen 1.8s infinite;
}

@keyframes pulseBadgeGreen {
  0%, 100% { border-color: #00ff66; box-shadow: 0 0 6px #00ff66; }
  50% { border-color: rgba(0, 255, 102, 0.4); box-shadow: 0 0 16px #00ff66; }
}

@media (max-width: 850px) {
  .reality-trigger-grid {
    grid-template-columns: 1fr !important;
  }
}
