/* ═══ HUB CONSOLE PREMIUM CYBER DESIGN (IDENTICAL REPLICA) ═══ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --bg: #020204;
    --surface: rgba(13, 13, 17, 0.5);
    --surface-glass: rgba(15, 15, 20, 0.7);
    --surface-hover: rgba(30, 30, 35, 0.85);
    --border: rgba(255, 255, 255, 0.08);
    --border-heavy: rgba(255, 255, 255, 0.14);
    --border-glow: rgba(99, 102, 241, 0.4);

    --primary: #818cf8;
    --primary-glow: rgba(129, 140, 248, 0.4);
    --brand: #f472b6;
    --brand-glow: rgba(244, 114, 182, 0.4);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --text-heading: #ffffff;
    --text: #f4f4f5;
    --text-muted: #a1a1aa;

    --radius-xl: 32px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --font-main: 'Manrope', sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 50px rgba(129, 140, 248, 0.15);
    --glass-blur: blur(30px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
    background: var(--border-heavy);
    border-radius: 10px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    line-height: 1.5;
    position: relative;
}

#parallax-bg {
    position: fixed;
    inset: -50px;
    background-image:
        linear-gradient(rgba(129, 140, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129, 140, 248, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    z-index: -2;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    z-index: 1000;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(129, 140, 248, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(244, 114, 182, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(16, 16, 20, 0) 0%, var(--bg) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ═══ LAYOUT ═══ */
.sidebar {
    width: 260px;
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 50;
}

.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 48px;
    min-height: 100vh;
    position: relative;
    animation: fadeIn 0.6s ease-out;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -1px;
    line-height: 1;
}

/* ═══ STATS GRID ═══ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    transition: 0.8s;
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--primary);
    background: var(--surface-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 15px var(--primary-glow);
}

.stat-card:hover::after {
    left: 150%;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-icon {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: white !important;
    transform: scale(1.1);
}

.stat-info h2 {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-heading);
    letter-spacing: -1px;
    line-height: 1;
}

.stat-info h4 {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

/* ═══ TABLE / CARD ═══ */
.card, .panel {
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    position: relative;
    margin-bottom: 48px;
}

.card-header, .panel__header {
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
}

.card-title, .panel__header h2 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 18px 32px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    font-weight: 800;
}

td {
    padding: 18px 32px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 14px;
    color: var(--text-heading);
    background: transparent;
    transition: background 0.3s ease;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}

/* ═══ BADGES & PILLS ═══ */
.key-badge {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* premium status pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.status-dot.pulse::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.5;
    animation: statusPulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(3.5); opacity: 0; }
}

.status-pill.online {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
}
.status-pill.online .status-dot { background: #10b981; box-shadow: 0 0 20px #10b981; }

.status-pill.suspended {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.05));
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
}
.status-pill.suspended .status-dot { background: #ef4444; box-shadow: 0 0 20px #ef4444; }

.status-pill.offline {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}
.status-pill.offline .status-dot { background: #f59e0b; box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); }

/* ═══ ACTIONS ═══ */
.action-btn {
    height: 44px;
    padding: 0 20px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-heading);
    text-decoration: none;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}

.btn {
    height: 44px;
    padding: 0 24px;
    border-radius: 14px;
    background: var(--text-heading);
    color: black;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-brand {
    background: var(--primary);
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .sidebar { width: 90px; }
    .main-content { margin-left: 90px; }
}

/* ═══ FORMS & INPUTS ═══ */
input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md);
    color: white !important;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 12px;
}

input:focus, select:focus, textarea:focus {
    background: rgba(0, 0, 0, 0.6) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-glow) !important;
    outline: none;
}

label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

/* ═══ AUXILIARY GRID & UTILITIES ═══ */
.grid {
    display: grid !important;
    gap: 24px !important;
}

.grid--sidebar {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
    .grid--sidebar { grid-template-columns: 1fr !important; }
}

/* ═══ FORMS (STACK-FORM) ═══ */
.stack-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field span {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field__error {
    color: #ef4444;
    font-size: 11px;
    margin-top: 4px;
}

/* ═══ LISTS (INVENTORY / RECENT JOBS) ═══ */
.list {
    display: flex;
    flex-direction: column;
}

.list__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.2s ease;
    color: var(--text-heading);
}

.list__row:last-child {
    border-bottom: none;
}

.list__row--link:hover {
    background: rgba(255, 255, 255, 0.02);
}

.list__row strong {
    font-size: 14px;
    color: white;
}

.list__row .muted {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.status--running, .status--active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.button--primary {
    height: 48px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--text-heading);
    color: black;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

/* ═══ NAV / SIDEBAR ═══ */
.nav-section-label {
    font-size: 10px !important;
    color: var(--text-muted) !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    padding: 0 20px;
    margin-bottom: 16px;
    margin-top: 32px;
}

.nav-item {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 6px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    color: var(--text-heading) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    transform: translateX(6px);
}

.nav-item.active {
    background: rgba(129, 140, 248, 0.1) !important;
    border-color: var(--primary-glow) !important;
    color: var(--primary) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 3px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--primary);
}

.nav-item i {
    font-size: 22px;
    width: 24px;
}

/* ═══ NOTICE BLOCKS (WARNINGS/ERRORS) ═══ */
.notice-block {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}

/* ═══ CODE BLOCKS ═══ */
.code-block {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border) !important;
    padding: 16px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 12px;
    color: var(--primary);
    overflow-x: auto;
    margin-top: 8px;
    margin-bottom: 20px;
}

/* ═══ TIMELINE (Step traces) ═══ */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
    position: relative;
    padding-left: 10px;
}

.timeline__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.timeline__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
    margin-top: 6px;
}

/* ═══ AUXILIARY GRID SPANS ═══ */
.grid--main {
    grid-template-columns: repeat(2, 1fr);
}

.panel--span-2 {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .grid--main { grid-template-columns: 1fr !important; }
    .panel--span-2 { grid-column: span 1 !important; }
}

/* ══════════════════════════════════════════════════════
   NOTION-STYLE BOARD, DRAWERS & MODALS (GLOBAL)
   ══════════════════════════════════════════════════════ */
.notion-wrapper { min-height: 100%; }
.notion-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.notion-breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 700; color: white; }
.notion-breadcrumb i { color: var(--primary); }
.notion-controls { display: flex; gap: 12px; }

.notion-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.notion-tab { padding: 8px 4px; font-size: 14px; font-weight: 500; color: var(--text-muted); position: relative; }
.notion-tab.active { color: white; }
.notion-tab.active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: white; }

.notion-board-container { overflow-x: auto; padding-bottom: 20px; }
.notion-board { display: flex; gap: 20px; min-height: 500px; }
.notion-column { flex: 1; min-width: 250px; display: flex; flex-direction: column; gap: 12px; }
.notion-column-header { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; }
.notion-column-title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: white; }
.notion-count { color: var(--text-muted); font-size: 12px; margin-left: 4px; }

.notion-cards { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.notion-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; cursor: pointer; transition: 0.2s; }
.notion-card:hover { border-color: var(--primary-glow); box-shadow: 0 4px 20px rgba(0,0,0,0.4); transform: translateY(-2px); }
.notion-card-title { font-size: 14px; font-weight: 700; color: white; margin-bottom: 4px; }
.notion-card-description { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notion-card-properties { display: flex; gap: 8px; flex-wrap: wrap; }
.notion-plain-text { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; font-weight: 600; }

/* ═══ OVERLAYS & MODALS ═══ */
.notion-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); z-index: 2000; display: none; }
.notion-overlay.open { display: block !important; }

.notion-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2001; width: 90%; max-width: 480px; display: none; }
.notion-modal.open { display: block !important; }
.notion-modal-card { background: rgba(11, 17, 30, 0.85); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 32px; box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 40px rgba(99,102,241,0.1); }

.notion-prop-row { display: flex; align-items: center; margin-bottom: 12px; }
.notion-prop-label { width: 100px; font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.notion-select { flex: 1; background: rgba(0,0,0,0.2) !important; border: 1px solid var(--border) !important; border-radius: 8px; padding: 8px 12px; color: white; cursor: pointer; }

/* ═══ DRAWERS ═══ */
.notion-drawer { position: fixed; top: 0; right: -400px; width: 400px; height: 100vh; background: #0b111e; border-left: 1px solid var(--border); z-index: 2100; transition: 0.3s ease; display: flex; flex-direction: column; }
.notion-drawer.open { right: 0; }
.notion-drawer form { display: flex; flex-direction: column; height: calc(100% - 70px); }
.drawer-body { flex: 1; overflow-y: auto; padding: 24px; }
.drawer-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: #0b111e; position: sticky; bottom: 0; }

/* ═══ BUTTONS ═══ */
.notion-btn { padding: 8px 16px; font-size: 13px; font-weight: 700; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); color: white; cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 6px; }
.notion-btn:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════
   COMMAND CENTER HOLOGRAM HUD (TOTAL REDESIGN)
   ══════════════════════════════════════════════════════ */
.command-auth-view {
    background: #000000;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
    color: #ffffff;
    min-height: 100vh;
}

.hud-mono { 
    font-family: 'IBM Plex Mono', monospace; 
    font-size: 11px; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

/* ━━ Background Grid & Ambient Laser Orbs ━━ */
.hud-mesh {
    position: fixed; 
    inset: 0; 
    z-index: -1;
    background-image: 
        radial-gradient(ellipse at 50% 50%, rgba(20, 24, 45, 0.45) 0%, #030306 75%),
        radial-gradient(rgba(129, 140, 248, 0.15) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px;
}

.hud-glow-orb { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(100px); 
    opacity: 0.55; 
    mix-blend-mode: screen; 
}

.hud-glow-orb--1 { 
    width: 600px; 
    height: 600px; 
    background: #4f46e5; 
    top: -150px; 
    left: -150px; 
    animation: floatOrbX 22s infinite alternate ease-in-out; 
}

.hud-glow-orb--2 { 
    width: 700px; 
    height: 700px; 
    background: #db2777; 
    bottom: -200px; 
    right: -200px; 
    animation: floatOrbY 26s infinite alternate ease-in-out; 
}

@keyframes floatOrbX {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(120px, 80px) scale(1.15); }
}

@keyframes floatOrbY {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-100px, -120px) scale(0.9); }
}

/* ━━ Main Core Frame Frame (Bezel Layout) ━━ */
.hud-bezel {
    display: flex; 
    flex-direction: column;
    margin: 32px; 
    width: calc(100% - 64px);
    height: calc(100vh - 64px);
    background: rgba(8, 8, 12, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: 28px;
    backdrop-filter: blur(35px);
    overflow: hidden; 
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.95), 0 0 100px rgba(99, 102, 241, 0.04);
    animation: bezelBoot 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes bezelBoot { 
    from { opacity: 0; transform: translateY(20px) scale(1.02); } 
    to { opacity: 1; transform: translateY(0) scale(1); } 
}

/* Bezel Header Toolbar */
.hud-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 18px 32px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(0, 0, 0, 0.35);
}

.hud-header__module { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.center-title { 
    flex: 1; 
    justify-content: center; 
}

.glow-text { 
    color: #818cf8; 
    text-shadow: 0 0 12px rgba(99, 102, 241, 0.6); 
    font-weight: 700;
}

.hud-dot { 
    width: 6px; 
    height: 6px; 
    border-radius: 50%; 
}

.hud-dot--active { 
    background: #10b981; 
    box-shadow: 0 0 10px #10b981; 
}

.hud-gauge { 
    width: 44px; 
    height: 7px; 
    background: rgba(255,255,255,0.08); 
    border-radius: 4px; 
    overflow: hidden;
}

.hud-gauge__fill { 
    width: 70%; 
    height: 100%; 
    background: #db2777; 
    border-radius: 4px; 
    box-shadow: 0 0 10px #db2777; 
    animation: gaugePulse 3s infinite alternate;
}

@keyframes gaugePulse {
    from { width: 60%; }
    to { width: 85%; }
}

.neon-pink { 
    color: #ec4899; 
    text-shadow: 0 0 8px rgba(236, 72, 153, 0.4); 
}

/* ━━ HUD Workspace splits ━━ */
.hud-workspace { 
    flex: 1; 
    display: flex; 
    height: 100%; 
}

.hud-deck { 
    padding: 36px; 
    display: flex; 
    flex-direction: column; 
    gap: 24px; 
}

.hud-deck--left { 
    flex: 0.75; 
    border-right: 1px solid rgba(255, 255, 255, 0.04); 
    max-width: 320px; 
}

.hud-deck--center { 
    flex: 1.25; 
    justify-content: center; 
    align-items: center; 
    position: relative; 
    background: rgba(0, 0, 0, 0.1);
}

.hud-deck--right { 
    flex: 0.75; 
    border-left: 1px solid rgba(255, 255, 255, 0.04); 
    max-width: 320px; 
}

/* Pane Panels */
.hud-panel { 
    background: rgba(0, 0, 0, 0.25); 
    border: 1px solid rgba(255, 255, 255, 0.03); 
    border-radius: 16px; 
    overflow: hidden; 
}

.hud-panel__header { 
    padding: 12px 18px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.03); 
    background: rgba(255, 255, 255, 0.02); 
}

.hud-panel__body { 
    padding: 18px; 
}

/* Radar widget styling */
.hud-radar { 
    width: 110px; 
    height: 110px; 
    border-radius: 50%; 
    border: 1px solid rgba(99, 102, 241, 0.25); 
    margin: 10px auto; 
    position: relative; 
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 80%); 
}

.hud-radar__sweep { 
    width: 100%; 
    height: 50%; 
    top: 0; 
    left: 0; 
    position: absolute; 
    background: linear-gradient(0deg, rgba(99, 102, 241, 0.2), transparent); 
    border-radius: 50% 50% 0 0; 
    transform-origin: 50% 100%; 
    animation: radarSweep 3s linear infinite; 
}

.hud-radar__dot { 
    width: 5px; 
    height: 5px; 
    border-radius: 50%; 
    background: #ec4899; 
    position: absolute; 
    box-shadow: 0 0 10px #ec4899; 
    animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 1; }
}

@keyframes radarSweep { 
    from { transform: rotate(0deg); } 
    to { transform: rotate(360deg); } 
}

.log-body { 
    height: 110px; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    overflow: hidden; 
}

.log-line { 
    font-size: 10px; 
    color: #a1a1aa; 
    white-space: nowrap; 
    text-overflow: ellipsis; 
    overflow: hidden; 
}

/* ━━ Vault Form Card (Extreme framing highlights) ━━ */
.hud-vault {
    width: 100%; 
    max-width: 410px;
    background: linear-gradient(145deg, rgba(12, 12, 18, 0.95), rgba(7, 7, 10, 0.98));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(129, 140, 248, 0.12);
    border-radius: 24px; 
    padding: 44px; 
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 0 30px rgba(99, 102, 241, 0.05);
    animation: vaultEnter 0.5s 0.2s backwards cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

@keyframes vaultEnter {
    from { opacity: 0; transform: translateY(15px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Glowing Neon Borders setup */
.hud-vault__corner { 
    position: absolute; 
    width: 18px; 
    height: 18px; 
    border-color: #ec4899; 
    border-style: solid; 
    transition: all 0.3s;
}

.hud-vault:hover .hud-vault__corner {
    border-color: #818cf8;
    width: 22px;
    height: 22px;
}

.hud-vault__corner--tl { top: -1px; left: -1px; border-width: 2.5px 0 0 2.5px; border-radius: 24px 0 0 0; }
.hud-vault__corner--tr { top: -1px; right: -1px; border-width: 2.5px 2.5px 0 0; border-radius: 0 24px 0 0; }
.hud-vault__corner--bl { bottom: -1px; left: -1px; border-width: 0 0 2.5px 2.5px; border-radius: 0 0 0 24px; }
.hud-vault__corner--br { bottom: -1px; right: -1px; border-width: 0 2.5px 2.5px 0; border-radius: 0 0 24px 0; }

.hud-vault__header { 
    margin-bottom: 32px; 
    text-align: center; 
}

.hud-vault__header h2 { 
    font-size: 23px; 
    font-weight: 800; 
    margin-top: 5px; 
    color: #fff;
    letter-spacing: -0.5px; 
}

.neon-cyan { 
    color: #22d3ee; 
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.4); 
}

.field__error {
    color: #f87171;
    font-size: 11px;
    margin-top: 4px;
}

/* Forms with Hud Slots indicators */
.hud-form { 
    display: flex; 
    flex-direction: column; 
    gap: 22px; 
}

.hud-field { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}

.hud-field span {
    color: #71717a;
}

.hud-field input { 
    background: rgba(0, 0, 0, 0.45) !important; 
    border: 1px solid rgba(255, 255, 255, 0.05) !important; 
    border-radius: 14px !important; 
    padding: 15px 18px !important; 
    color: #ffffff !important; 
    font-size: 14px !important; 
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hud-field input:focus { 
    background: rgba(0, 0, 0, 0.6) !important;
    border-color: #6366f1 !important; 
    box-shadow: 0 0 0 1px #6366f1, 0 0 25px rgba(99, 102, 241, 0.2) !important; 
    outline: none; 
    transform: translateY(-1px);
}

/* Futuristic Neon Button logic */
.hud-btn--neon {
    background: #ffffff !important; 
    color: #000000 !important; 
    font-weight: 800; 
    padding: 16px; 
    border-radius: 14px; 
    border: none !important; 
    cursor: pointer; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    box-shadow: 0 10px 25px rgba(255,255,255,0.12); 
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.hud-btn--neon:hover { 
    transform: translateY(-3px) scale(1.02); 
    box-shadow: 0 15px 35px rgba(255,255,255,0.25), 0 0 30px rgba(99, 102, 241, 0.25); 
    background: #fbfbfb !important; 
}

.hud-btn--neon:active {
    transform: translateY(-1px);
}

/* Flashes Frames with neon glow bounds on workspace splits */
.hud-flash {
    position: absolute;
    top: 30px;
    max-width: 410px;
    width: 90%;
    padding: 15px 20px;
    border-radius: 16px;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    z-index: 50;
    font-size: 13.5px;
}

.hud-flash--error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.1);
}

.hud-flash--info {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
}

/* ━━ Responsive Design ━━ */
@media (max-width: 1024px) {
    .hud-deck--left, .hud-deck--right { display: none !important; }
    .hud-bezel { margin: 16px; height: calc(100vh - 32px); }
    .hud-header { padding: 15px 24px; }
}

@media (max-width: 480px) {
    .hud-bezel { margin: 0; height: 100vh; border-radius: 0; border: none; }
    .hud-workspace { flex-direction: column; }
    .hud-deck { padding: 20px; }
    .hud-vault { max-width: 100%; padding: 32px 20px; border-radius: 0; border: none; background: transparent; box-shadow: none; }
    .hud-vault__corner { display: none; }
}
