@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. RESET, BOX SIZING & STRICT VIEWPORT BOUNDING
   ========================================================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    border: 0 solid rgba(255, 255, 255, 0.1); 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
}

/* Strictly bind viewport to permanently prevent external scrollbars */
body { 
    background-color: #030305; 
    color: #f8fafc; 
    overflow: hidden; 
    height: 100vh; 
    width: 100vw; 
    position: relative;
}

/* ==========================================================================
   2. AURORA BACKDROP MESH ENGINE
   ========================================================================== */
.aurora-bg { 
    position: fixed; 
    inset: 0; 
    z-index: 0; 
    pointer-events: none; 
    overflow: hidden; 
}
.aurora-orb { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(95px); 
    opacity: 0.35; 
    will-change: transform;
}
.aurora-orb-1 { 
    width: 550px; 
    height: 550px; 
    background-color: rgba(0, 240, 255, 0.22); 
    top: -100px; 
    left: -100px; 
    animation: floatOrb1 16s ease-in-out infinite alternate; 
}
.aurora-orb-2 { 
    width: 650px; 
    height: 650px; 
    background-color: rgba(140, 60, 255, 0.18); 
    bottom: -150px; 
    right: -100px; 
    animation: floatOrb2 20s ease-in-out infinite alternate-reverse; 
}
.aurora-orb-3 { 
    width: 450px; 
    height: 450px; 
    background-color: rgba(0, 255, 136, 0.14); 
    top: 35%; 
    left: 45%; 
    animation: floatOrb3 14s ease-in-out infinite alternate; 
}

@keyframes floatOrb1 { 
    0% { transform: translate(0, 0) scale(1); } 
    100% { transform: translate(120px, 90px) scale(1.25); } 
}
@keyframes floatOrb2 { 
    0% { transform: translate(0, 0) scale(1); } 
    100% { transform: translate(-100px, -80px) scale(1.15); } 
}
@keyframes floatOrb3 { 
    0% { transform: translate(0, 0) scale(1); } 
    100% { transform: translate(90px, -70px) scale(1.3); } 
}

/* ==========================================================================
   3. LIQUID GLASS CORE ARCHITECTURE
   ========================================================================== */
.liquid-glass {
    background-color: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15), 0 20px 50px 0 rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    position: relative;
}

/* Double-Refraction Edge Highlight Beam */
.liquid-glass::before {
    content: ''; 
    position: absolute; 
    inset: 0; 
    border-radius: inherit; 
    padding: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.05) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; 
    mask-composite: exclude; 
    pointer-events: none; 
    opacity: 0.4;
}

/* ==========================================================================
   4. MASTER VIEWPORT & DOCKED SIDEBAR
   ========================================================================== */
.os-viewport { 
    display: flex; 
    flex-direction: row; 
    height: 100vh; 
    width: 100vw; 
    position: relative; 
    z-index: 1; 
    overflow: hidden; 
}

.liquid-sidebar { 
    width: 280px; 
    flex-shrink: 0; 
    display: flex; 
    flex-direction: column; 
    background-color: rgba(8, 11, 18, 0.75); 
    border-right: 1px solid rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(40px); 
    -webkit-backdrop-filter: blur(40px);
    z-index: 20; 
}

.sidebar-brand { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 24px; 
    font-size: 20px; 
    font-weight: 800; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
}
.brand-icon { 
    width: 36px; 
    height: 36px; 
    background-color: rgba(0, 240, 255, 0.15); 
    border: 1px solid rgba(0, 240, 255, 0.4); 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25); 
}
.brand-text span { color: #00f0ff; }

.sidebar-user { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 16px 20px; 
    background-color: rgba(255, 255, 255, 0.02); 
    margin: 16px; 
    border-radius: 16px; 
    border: 1px solid rgba(255, 255, 255, 0.06); 
}
.user-avatar { 
    width: 42px; 
    height: 42px; 
    border-radius: 12px; 
    background: linear-gradient(135deg, #00f0ff, #7000ff); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 700; 
    font-size: 16px; 
    color: #fff; 
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3); 
}
.user-name { font-weight: 600; font-size: 14px; }
.user-role { font-size: 11px; color: rgba(255, 255, 255, 0.45); margin-top: 2px; font-family: 'JetBrains Mono', monospace; }

.sidebar-nav { flex: 1; padding: 12px 20px; space-y: 6px; overflow-y: auto; }
.nav-section-title { font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, 0.35); letter-spacing: 1.5px; margin-bottom: 12px; padding-left: 4px; }
.mt-section { margin-top: 24px; }
.nav-glass-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.65); cursor: pointer; transition: all 0.2s; }
.nav-glass-item:hover { background-color: rgba(255, 255, 255, 0.05); color: #fff; }
.nav-glass-item.active { background-color: rgba(0, 240, 255, 0.15); color: #fff; border: 1px solid rgba(0, 240, 255, 0.4); box-shadow: 0 0 20px rgba(0, 240, 255, 0.2); }
.badge { margin-left: auto; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; font-family: 'JetBrains Mono', monospace; }
.badge-warn { background-color: rgba(239, 68, 68, 0.2); color: #ff5555; border: 1px solid rgba(239, 68, 68, 0.4); }

.mode-toggle-box { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background-color: rgba(0, 0, 0, 0.3); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.05); }
.text-muted { color: rgba(255, 255, 255, 0.65); }
.sidebar-footer { padding: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); background-color: rgba(0, 0, 0, 0.2); }

/* ==========================================================================
   5. MAIN OPERATIONAL STAGE & HEADER
   ========================================================================== */
.os-main-stage { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    min-width: 0; 
    overflow: hidden; 
    background-color: rgba(4, 6, 10, 0.4); 
}

.liquid-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 80px; 
    flex-shrink: 0; 
    padding: 0 36px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.06); 
    background-color: rgba(6, 9, 14, 0.6); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    z-index: 10; 
}
.header-left { flex: 1; max-width: 440px; }
.header-right { display: flex; align-items: center; gap: 16px; }
.poll-pill { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background-color: rgba(0, 0, 0, 0.5); border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.poll-speed-text { font-size: 12px; font-family: 'JetBrains Mono', monospace; font-weight: 600; color: #00f0ff; }

/* Scrollable Inner Stage Content Area */
.stage-content-area { 
    flex: 1; 
    overflow-y: auto; 
    overflow-x: hidden; 
    padding: 36px; 
    min-width: 0; 
}
.stage-view { display: none; }
.stage-view.active { display: block; }

/* ==========================================================================
   6. TELEMETRY STAGE COUNTERS & HORIZON BEAM SEPARATOR
   ========================================================================== */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(4, minmax(0, 1fr)); 
    gap: 24px; 
    margin-bottom: 48px; /* <-- Generous 48px Breathing Room */
    position: relative;
}

/* Glowing Horizon Beam pseudo-element acting as premium visual stage divider */
.stats-grid::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(0, 240, 255, 0.35) 50%, rgba(255,255,255,0));
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.stat-card { padding: 22px 26px; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.stat-card:hover { transform: translateY(-2px); border-color: rgba(0, 240, 255, 0.5); box-shadow: 0 15px 35px rgba(0, 240, 255, 0.1); }
.data-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255, 255, 255, 0.45); }
.data-value { font-size: 36px; font-weight: 700; color: #00f0ff; margin: 8px 0 4px 0; font-family: 'JetBrains Mono', monospace; text-shadow: 0 0 20px rgba(0, 240, 255, 0.4); }
.stat-sub { font-size: 12px; font-weight: 600; }

/* Text Accents */
.text-cyan { color: #00f0ff; }
.text-purple { color: #b070ff; }
.text-emerald { color: #00ff88; }
.text-amber { color: #ffb800; }

/* ==========================================================================
   7. HARDWARE MATRIX GRID & CLAMPED CARDS
   ========================================================================== */
.widget-matrix { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); 
    gap: 28px; /* Extra clean card-to-card spacing */
    width: 100%; 
    padding-top: 8px;
}

/* STRICT WIDGET CARD BOUNDING */
.widget-card { 
    display: flex; 
    flex-direction: column; 
    height: 330px; 
    padding: 22px; 
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; 
    cursor: grab; 
    min-width: 0; /* <-- CRITICAL: Forces CSS grid to clamp long strings */
    overflow: hidden; 
}
.widget-card:active { cursor: grabbing; }
.widget-card:hover { 
    transform: translateY(-4px); 
    border-color: rgba(0, 240, 255, 0.5); 
    box-shadow: 0 25px 60px rgba(0, 240, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2); 
}
.widget-card.drag-target { border: 2px dashed #00f0ff; opacity: 0.6; }

.w-hdr { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; flex-shrink: 0; min-width: 0; width: 100%; }
.w-hdr-left { min-width: 0; flex: 1; padding-right: 8px; }
.w-title { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.w-topic { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; color: #00f0ff; background-color: rgba(0, 0, 0, 0.4); padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(0, 240, 255, 0.2); margin-top: 6px; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-actions { display: flex; gap: 4px; flex-shrink: 0; }
.w-actions button { background-color: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.6); cursor: pointer; padding: 6px; border-radius: 8px; transition: all 0.2s; font-size: 12px; }
.w-actions button:hover { background-color: rgba(0, 240, 255, 0.2); border-color: #00f0ff; color: #fff; }

.w-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-width: 0; overflow: hidden; position: relative; }

/* Payload Inspector Modal Button Trigger Bar */
.w-footer-bar { height: 36px; width: 100%; flex-shrink: 0; margin-top: 12px; display: flex; align-items: center; justify-content: center; }
.inspect-btn { width: 100%; padding: 8px; background-color: rgba(0, 255, 136, 0.1); border: 1px solid rgba(0, 255, 136, 0.3); border-radius: 10px; color: #00ff88; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.inspect-btn:hover { background-color: rgba(0, 255, 136, 0.25); box-shadow: 0 0 15px rgba(0, 255, 136, 0.3); color: #fff; }

/* ==========================================================================
   8. SPECIALIZED HARDWARE ARCHITECTURES
   ========================================================================== */
/* 1. Raw Value Screen */
.val-screen-box { width: 100%; text-align: center; min-width: 0; padding: 0 8px; }
.val-screen-text { font-size: 36px; font-weight: 800; color: #00f0ff; font-family: 'JetBrains Mono', monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 0 25px rgba(0, 240, 255, 0.4); }

/* 2. Analog Gauge */
.gauge-box { display: flex; flex-direction: column; align-items: center; width: 100%; }
.gauge-svg { width: 210px; height: 115px; filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3)); }
.g-bg { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 14; stroke-linecap: round; }
.g-arc { fill: none; stroke: #00ff88; stroke-width: 14; stroke-dasharray: 109.95; stroke-dashoffset: 109.95; stroke-linecap: round; transition: stroke-dashoffset 0.4s ease-out; }
.gauge-val-box { font-size: 24px; font-weight: 700; font-family: 'JetBrains Mono', monospace; margin-top: -14px; color: #fff; }

/* 3. Slider Emitter */
.slider-box { width: 100%; padding: 0 12px; text-align: center; }
.glass-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; background-color: rgba(0, 0, 0, 0.5); border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6); margin: 16px 0; outline: none; }
.glass-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background-color: #00f0ff; box-shadow: 0 0 15px #00f0ff; cursor: pointer; border: 2px solid #fff; transition: transform 0.1s; }
.glass-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* 4. Text Terminal Emitter */
.term-input-box { display: flex; gap: 8px; width: 100%; padding: 0 4px; }

/* 5. Sniffer & Stream Terminal */
.terminal-container { width: 100%; background-color: rgba(0, 0, 0, 0.75); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 14px; font-family: 'JetBrains Mono', monospace; font-size: 12px; overflow-y: auto; box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8); }
.stream-terminal { max-height: calc(100vh - 280px); }
.log-row { margin-bottom: 6px; line-height: 1.5; display: flex; gap: 8px; }
.log-time { color: rgba(255, 255, 255, 0.35); font-size: 10px; flex-shrink: 0; }
.log-pub { color: #b070ff; font-weight: 500; }
.log-sub { color: #00ff88; font-weight: 500; }
.log-dbg { color: #00f0ff; }

/* ==========================================================================
   9. STAGE VIEWS (LOGS & SETTINGS)
   ========================================================================== */
.h-stream { height: calc(100vh - 160px); padding: 24px; }
.log-tabs { display: flex; gap: 8px; margin-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 12px; align-items: center; }
.tag-danger { border-color: rgba(239, 68, 68, 0.3); color: #ff5555; background-color: rgba(239, 68, 68, 0.1); }
.btn-sm { padding: 6px 12px; font-size: 12px; }

.p-settings { padding: 32px; }
.settings-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 16px; }
.settings-header-icon { font-size: 28px; }
.settings-title { font-size: 20px; font-weight: 700; color: #fff; }
.mb-form { margin-bottom: 20px; }
.mb-form-large { margin-bottom: 32px; }
.input-help { font-size: 12px; color: rgba(255, 255, 255, 0.4); margin-top: 6px; display: block; }
.btn-lg { padding: 14px 24px; font-size: 16px; }

/* ==========================================================================
   10. DOCKED STAGE FOOTER
   ========================================================================== */
.liquid-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 44px; 
    flex-shrink: 0; 
    padding: 0 36px; 
    border-top: 1px solid rgba(255, 255, 255, 0.06); 
    background-color: rgba(4, 6, 10, 0.85); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    z-index: 20; 
    font-size: 12px;
}
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 10px currentColor; margin-right: 6px; }
.status-dot.connected { background-color: #00ff88; color: #00ff88; }

/* ==========================================================================
   11. UI INPUTS, BUTTONS, TOGGLES & TAGS
   ========================================================================== */
.glass-input { width: 100%; padding: 12px 16px; background-color: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; color: #fff; outline: none; font-size: 14px; transition: all 0.2s; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5); }
.glass-input:focus { border-color: #00f0ff; background-color: rgba(0, 240, 255, 0.05); box-shadow: 0 0 15px rgba(0, 240, 255, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.5); }
.glass-select { width: 100%; padding: 12px 16px; background-color: #0b0f19; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 14px; color: #fff; outline: none; font-size: 14px; font-weight: 500; }

.glass-button { padding: 12px 20px; background-color: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; color: #fff; cursor: pointer; font-weight: 600; transition: all 0.2s; font-size: 14px; }
.glass-button:hover { background-color: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
.glass-button-primary { padding: 12px 22px; background-color: rgba(0, 240, 255, 0.15); border: 1px solid rgba(0, 240, 255, 0.4); border-radius: 14px; color: #00f0ff; cursor: pointer; font-weight: 600; transition: all 0.2s; box-shadow: 0 0 20px rgba(0, 240, 255, 0.2); font-size: 14px; }
.glass-button-primary:hover { box-shadow: 0 0 30px rgba(0, 240, 255, 0.4); background-color: rgba(0, 240, 255, 0.25); color: #fff; }
.danger-button { color: #ff5555; background-color: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.3); }

/* Toggles */
.glass-toggle { width: 48px; height: 26px; background-color: rgba(255, 255, 255, 0.1); border-radius: 13px; position: relative; cursor: pointer; transition: all 0.3s; border: 1px solid rgba(255, 255, 255, 0.1); }
.glass-toggle.active { background-color: #00f0ff; border-color: #00f0ff; box-shadow: 0 0 15px rgba(0, 240, 255, 0.4); }
.glass-toggle-thumb { width: 20px; height: 20px; background-color: #fff; border-radius: 50%; position: absolute; top: 2px; left: 3px; transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }
.glass-toggle.active .glass-toggle-thumb { left: 23px; }

/* Tags */
.glass-tag { padding: 8px 16px; border-radius: 14px; background-color: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; color: rgba(255, 255, 255, 0.7); }
.glass-tag:hover { background-color: rgba(255, 255, 255, 0.07); color: #fff; }
.glass-tag.active { background-color: rgba(0, 240, 255, 0.15); color: #00f0ff; border-color: rgba(0, 240, 255, 0.4); box-shadow: 0 0 15px rgba(0, 240, 255, 0.2); }

/* ==========================================================================
   12. MODALS (PROVISIONING & PAYLOAD INSPECTOR)
   ========================================================================== */
.glass-modal-overlay { position: fixed; inset: 0; background-color: rgba(2, 3, 5, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.glass-modal { background-color: rgba(11, 15, 24, 0.9); border: 1px solid rgba(255, 255, 255, 0.15); padding: 32px; border-radius: 32px; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2); max-height: 90vh; overflow-y: auto; }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 12px; }
.modal-title-box { display: flex; align-items: center; gap: 8px; }
.modal-title-icon { font-size: 20px; }
.modal-title { font-size: 18px; font-weight: 700; color: #fff; }
.modal-close { background: transparent; color: rgba(255, 255, 255, 0.4); font-size: 20px; cursor: pointer; transition: color 0.2s; font-family: monospace; }
.modal-close:hover { color: #fff; }

.form-group label { display: block; font-size: 11px; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); font-weight: 700; margin-bottom: 8px; letter-spacing: 0.5px; }
.config-injection-box { margin-bottom: 32px; background-color: rgba(0, 0, 0, 0.3); padding: 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.05); }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; }

/* Payload Full Inspector Specifics */
.payload-meta-bar { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-family: 'JetBrains Mono', monospace; background-color: rgba(0, 0, 0, 0.5); padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.05); margin-bottom: 12px; }
.meta-topic { color: #00f0ff; font-weight: 600; }
.meta-len { color: rgba(255, 255, 255, 0.5); }
.inspector-terminal { max-height: 320px; overflow-y: auto; margin-bottom: 24px; padding: 16px; background-color: rgba(0, 0, 0, 0.85); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); }
.payload-pre { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #00ff88; white-space: pre-wrap; word-break: break-all; line-height: 1.6; }

.hidden { display: none !important; }

/* ==========================================================================
   13. AUTHENTICATION PORTAL // LIQUID GLASS EDITION
   ========================================================================== */
.auth-body { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    width: 100vw; 
    background-color: #030305; 
    position: relative; 
    overflow: hidden; 
}

.ambient-sphere { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(100px); 
    opacity: 0.35; 
    pointer-events: none; 
}
.sphere-1 { top: -100px; left: -100px; width: 500px; height: 500px; background-color: rgba(0, 240, 255, 0.25); }
.sphere-2 { bottom: -100px; right: -100px; width: 600px; height: 600px; background-color: rgba(140, 60, 255, 0.22); }

.auth-container { 
    width: 100%; 
    max-width: 440px; 
    padding: 40px; 
    z-index: 10; 
}

.glass-panel {
    background-color: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2), 0 25px 60px 0 rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    position: relative;
}
.glass-panel::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.05) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0.5;
}

.auth-header { text-align: center; margin-bottom: 32px; }
.logo-text { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; color: #fff; }
.logo-text span { color: #00f0ff; text-shadow: 0 0 20px rgba(0,240,255,0.5); }
.auth-header p { color: rgba(255, 255, 255, 0.45); font-size: 13px; margin-top: 6px; }

.auth-tabs { 
    display: flex; 
    background-color: rgba(0, 0, 0, 0.4); 
    padding: 5px; 
    border-radius: 16px; 
    margin-bottom: 28px; 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.6); 
}
.tab-btn { 
    flex: 1; 
    padding: 12px; 
    border: none; 
    background: transparent; 
    color: rgba(255, 255, 255, 0.45); 
    font-weight: 600; 
    font-size: 13px; 
    border-radius: 12px; 
    cursor: pointer; 
    transition: all 0.25s; 
}
.tab-btn:hover { color: #fff; }
.tab-btn.active { 
    background-color: rgba(0, 240, 255, 0.15); 
    color: #fff; 
    border: 1px solid rgba(0, 240, 255, 0.4); 
    box-shadow: 0 0 15px rgba(0,240,255,0.25); 
}

.auth-form input { 
    width: 100%; 
    padding: 14px 16px; 
    background-color: rgba(0, 0, 0, 0.45); 
    border: 1px solid rgba(255, 255, 255, 0.12); 
    border-radius: 14px; 
    color: #fff; 
    outline: none; 
    font-size: 14px; 
    transition: all 0.2s; 
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5); 
}
.auth-form input:focus { 
    border-color: #00f0ff; 
    background-color: rgba(0, 240, 255, 0.05); 
    box-shadow: 0 0 15px rgba(0,240,255,0.2), inset 0 2px 4px rgba(0,0,0,0.5); 
}

.glass-btn { 
    padding: 15px 24px; 
    border: none; 
    border-radius: 14px; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    font-size: 15px; 
}
.primary-btn { 
    background: linear-gradient(135deg, #00f0ff, #0080ff); 
    color: #000; 
    font-weight: 700; 
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3); 
}
.primary-btn:hover { 
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.6); 
    transform: scale(1.02); 
    color: #fff; 
}
.accent-btn { 
    background: linear-gradient(135deg, #8c3cff, #5000ff); 
    color: #fff; 
    font-weight: 700; 
    box-shadow: 0 0 25px rgba(140, 60, 255, 0.3); 
}
.accent-btn:hover { 
    box-shadow: 0 0 35px rgba(140, 60, 255, 0.6); 
    transform: scale(1.02); 
}
.btn-block { width: 100%; }

.glass-alert { 
    padding: 14px; 
    background-color: rgba(239, 68, 68, 0.15); 
    border: 1px solid rgba(239, 68, 68, 0.4); 
    border-radius: 14px; 
    color: #ff5555; 
    font-size: 13px; 
    font-weight: 500; 
    margin-bottom: 24px; 
    text-align: center; 
    box-shadow: 0 0 20px rgba(239,68,68,0.2); 
}
