/* ═══════════════════════════════════════════════════════════
   WHOAMI_404 C2 PANEL — Design System
   Premium dark-mode operations panel with glassmorphism
   ═══════════════════════════════════════════════════════════ */

/* ──────── CSS VARIABLES / TOKENS ──────── */
:root {
    /* Background & Surface */
    --bg-primary:      #080a10;
    --bg-secondary:    #0c0f17;
    --bg-surface:      #111622;
    --bg-elevated:     #171d2c;
    --bg-hover:        #1f273b;
    --bg-active:       #27314a;

    /* Accent Colors (WHOAMI_404 Violet Theme) */
    --accent-primary:  #a855f7;
    --accent-green:    #00f5a0;
    --accent-yellow:   #ffc838;
    --accent-red:      #ff3b5c;
    --accent-purple:   #9333ea;
    --accent-orange:   #ff8a3d;
    --accent-glow:     rgba(168, 85, 247, 0.35);

    /* Text */
    --text-primary:    #f1f5f9;
    --text-secondary:  #94a3b8;
    --text-muted:      #64748b;
    --text-accent:     var(--accent-primary);

    /* Borders */
    --border-subtle:   rgba(255,255,255,0.05);
    --border-default:  rgba(255,255,255,0.09);
    --border-accent:   rgba(168,85,247,0.4);

    /* Glass */
    --glass-bg:        rgba(17,22,34,0.75);
    --glass-border:    rgba(168,85,247,0.15);
    --glass-blur:      16px;

    /* Shadows */
    --shadow-sm:       0 1px 3px rgba(0,0,0,0.4);
    --shadow-md:       0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg:       0 8px 32px rgba(0,0,0,0.6);
    --shadow-glow:     0 0 24px rgba(168,85,247,0.25);

    /* Geometry */
    --radius-xs:       4px;
    --radius-sm:       6px;
    --radius-md:       8px;
    --radius-lg:       12px;
    --radius-xl:       16px;

    /* Spacing */
    --space-xs:        4px;
    --space-sm:        8px;
    --space-md:        12px;
    --space-lg:        16px;
    --space-xl:        24px;
    --space-2xl:       32px;

    /* Typography */
    --font-sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:       'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;

    /* Layout */
    --topbar-height:   52px;
    --footer-height:   46px;
    --sidebar-width:   260px;
}

/* ──────── RESET & BASE ──────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

/* Background effects */
#bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(168,85,247,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168,85,247,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

#bg-glow {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(168,85,247,0.12) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--bg-active);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ──────── UTILITY ──────── */
.t-green  { color: var(--accent-green); }
.t-blue   { color: var(--accent-primary); }
.t-red    { color: var(--accent-red); }
.t-yellow { color: var(--accent-yellow); }
.t-dim    { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES (Login / Setup) — Cyber-Rinengan C2 Redesign
   ═══════════════════════════════════════════════════════════ */

.auth-page {
    /* Dynamic Theme Tokens matching background img-1.jpg (fiery crimson/red) */
    --auth-accent: #ff3b5c;
    --auth-accent-secondary: #f43f5e;
    --auth-accent-rgb: 255, 59, 92;
    --auth-glow: rgba(255, 59, 92, 0.35);
    --auth-glow-strong: rgba(255, 59, 92, 0.55);
    --auth-gradient: linear-gradient(135deg, #ff3b5c, #e11d48);
    --auth-shield-bg: linear-gradient(135deg, rgba(255, 59, 92, 0.2), rgba(244, 63, 94, 0.2));

    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    inset: 0;
    z-index: 50;
    overflow: hidden;
    background: #080a10;
    transition: --auth-accent 0.5s ease, --auth-glow 0.5s ease;
}

/* Background Artwork Container */
.auth-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-bg-image {
    position: absolute;
    inset: -10px;
    background: url('../img/img-1.jpg') no-repeat center center / cover;
    filter: contrast(1.08) brightness(1.03);
    transform: scale(1.01);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

/* Subtle, targeted gradient overlay that darkens only the far-left dock column so the card pops,
   while keeping the quote in the center and Obito's eye on the right 100% unobstructed and crystal clear! */
.auth-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 10, 16, 0.85) 0%,
        rgba(8, 10, 16, 0.55) 26%,
        rgba(8, 10, 16, 0.05) 55%,
        rgba(8, 10, 16, 0.15) 100%
    ),
    linear-gradient(
        180deg,
        rgba(8, 10, 16, 0.5) 0%,
        transparent 15%,
        transparent 82%,
        rgba(8, 10, 16, 0.7) 100%
    );
}

/* Dynamic Animated Canvas Engine Overlay */
.auth-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Top Navigation Bar for Auth */
.auth-top-nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(8, 10, 16, 0.6) 0%, transparent 100%);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-shield {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--auth-shield-bg);
    border: 1px solid rgba(var(--auth-accent-rgb), 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-accent);
    font-size: 1.3rem;
    box-shadow: 0 0 16px rgba(var(--auth-accent-rgb), 0.3);
    transition: all 0.4s ease;
}

.auth-brand span {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(90deg, #f1f5f9, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-focus-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(17, 22, 34, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.25s;
}

.auth-focus-toggle:hover {
    background: rgba(var(--auth-accent-rgb), 0.15);
    border-color: rgba(var(--auth-accent-rgb), 0.5);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(var(--auth-accent-rgb), 0.25);
}

.auth-focus-toggle i {
    font-size: 1rem;
    color: var(--auth-accent);
    transition: color 0.4s ease;
}

/* Main Auth Layout (Left-docked Card + Center Stage for Artwork) */
.auth-main-layout {
    position: relative;
    z-index: 10;
    display: flex;
    flex: 1;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 10px 40px;
    align-items: center;
}

.auth-card-container {
    width: 410px;
    flex-shrink: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-card {
    background: rgba(12, 15, 24, 0.82);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(var(--auth-accent-rgb), 0.22);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(var(--auth-accent-rgb), 0.12);
    position: relative;
    overflow: hidden;
    animation: cardSlideRight 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--auth-accent), var(--auth-accent-secondary), transparent);
    transition: background 0.4s ease;
}

@keyframes cardSlideRight {
    from { opacity: 0; transform: translateX(-30px) scale(0.97); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

.auth-card-header {
    margin-bottom: 24px;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(var(--auth-accent-rgb), 0.1);
    border: 1px solid rgba(var(--auth-accent-rgb), 0.3);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--auth-accent);
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    transition: all 0.4s ease;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--auth-accent);
    box-shadow: 0 0 8px var(--auth-accent);
    animation: pulseTheme 1.5s infinite;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

@keyframes pulseTheme {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(1.4); }
}

.auth-card-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #ffffff;
    margin-bottom: 4px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 1px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-field label i {
    font-size: 0.95rem;
    color: var(--auth-accent);
    transition: color 0.4s ease;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-field input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(17, 22, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.92rem;
    outline: none;
    transition: all 0.2s;
}

.form-field input:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(var(--auth-accent-rgb), 0.15);
    background: rgba(23, 29, 44, 0.95);
}

.form-field input::placeholder {
    color: var(--text-muted);
}

.form-field input[readonly] {
    opacity: 0.65;
    background: rgba(8, 10, 16, 0.6);
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}

.input-lock {
    position: absolute;
    right: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    background: var(--auth-gradient);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px var(--auth-glow);
}

.auth-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.auth-submit:hover {
    box-shadow: 0 6px 30px var(--auth-glow-strong);
    transform: translateY(-2px);
}

.auth-submit:hover::before {
    transform: translateX(100%);
}

.auth-submit:active {
    transform: translateY(0);
}

.setup-btn {
    background: linear-gradient(135deg, var(--accent-green), #00b37a);
    box-shadow: 0 4px 24px rgba(0, 245, 160, 0.35);
}

.setup-btn:hover {
    box-shadow: 0 6px 30px rgba(0, 245, 160, 0.55);
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 16px;
    background: rgba(255, 59, 92, 0.12);
    border: 1px solid rgba(255, 59, 92, 0.4);
    border-radius: var(--radius-sm);
    color: #ff3b5c;
    font-size: 0.84rem;
    font-weight: 500;
    animation: shakeIn 0.4s;
}

@keyframes shakeIn {
    0%   { transform: translateX(-6px); }
    25%  { transform: translateX(6px); }
    50%  { transform: translateX(-4px); }
    75%  { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

.auth-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.auth-secure i {
    color: var(--accent-green);
    font-size: 0.85rem;
}

.auth-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-secondary);
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
}

/* Artwork Stage & Hint */
.auth-artwork-stage {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-left: 20px;
    pointer-events: none;
}



/* Bottom Bar for Auth */
.auth-bottom-bar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    background: linear-gradient(0deg, rgba(8, 10, 16, 0.8) 0%, transparent 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Focus Mode (Toggled via "Focus Artwork & Quote" button) */
.auth-page.focus-mode .auth-card-container {
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
    pointer-events: none;
}

.auth-page.focus-mode .auth-bg-image {
    transform: scale(1);
    filter: contrast(1.12) brightness(1.05);
}

.auth-page.focus-mode .auth-bg-overlay {
    background: rgba(8, 10, 16, 0.2);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .auth-main-layout {
        flex-direction: column;
        justify-content: center;
        padding: 20px;
    }
    .auth-card-container {
        width: 100%;
        max-width: 400px;
    }
    .auth-top-nav, .auth-bottom-bar {
        padding: 14px 20px;
    }
    .auth-artwork-stage {
        display: none;
    }
}

@media (max-width: 600px) {
    .auth-top-nav {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .auth-controls {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }
    .auth-card {
        padding: 24px 20px;
    }
    .auth-brand span {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
}

/* ═══════════════════════════════════════════════════════════
   PANEL – TOP BAR
   ═══════════════════════════════════════════════════════════ */

#topbar {
    position: relative;
    z-index: 100;
    height: var(--topbar-height);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    box-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.brand-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px rgba(0,212,255,0.4));
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tag {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 2px 6px;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xs);
    color: var(--accent-primary);
    opacity: 0.7;
}

.topbar-center {
    display: flex;
    align-items: center;
}

.stat-pills {
    display: flex;
    gap: var(--space-sm);
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.stat-pill:hover {
    border-color: var(--border-accent);
    background: var(--bg-elevated);
}

.stat-pill i {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.pill-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 6px rgba(0,245,160,0.5);
}

.pill-value {
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.pill-label {
    display: none;
}

@media (min-width: 1200px) {
    .pill-label { display: inline; }
}

.topbar-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.topbar-timer i {
    color: var(--text-muted);
}

.topbar-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.topbar-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-accent);
    color: var(--text-primary);
}

.topbar-btn.logout:hover {
    border-color: rgba(255,59,92,0.3);
    color: var(--accent-red);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--accent-red);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-family: var(--font-mono);
}

.notif-badge:empty,
.notif-badge[data-count="0"] {
    display: none;
}

.topbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border-default);
}

/* ═══════════════════════════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════════════════════════ */

.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ──────── SIDEBARS ──────── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s;
}

.sidebar-left {
    border-right: 1px solid var(--border-subtle);
}

.sidebar-right {
    border-left: 1px solid var(--border-subtle);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.sidebar-title i {
    color: var(--accent-primary);
    font-size: 1rem;
}

.sidebar-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-action:hover {
    color: var(--accent-primary);
    border-color: var(--border-accent);
    background: var(--bg-hover);
}

.sidebar-action:active i {
    animation: spin 0.5s linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Agent Search */
.agent-search-wrap {
    position: relative;
    padding: var(--space-md) var(--space-lg);
}

.search-icon {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.agent-search-wrap input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.agent-search-wrap input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.08);
}

.agent-search-wrap input::placeholder {
    color: var(--text-muted);
}

/* Agent Filters */
.agent-filters {
    display: flex;
    gap: 6px;
    padding: 0 var(--space-lg) var(--space-md);
}

.filter-chip {
    padding: 4px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-chip:hover {
    border-color: var(--border-accent);
    color: var(--text-secondary);
}

.filter-chip.active {
    background: rgba(0,212,255,0.1);
    border-color: var(--border-accent);
    color: var(--accent-primary);
}

.chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.chip-dot.online { background: var(--accent-green); }
.chip-dot.offline { background: var(--accent-red); }

/* Agent List */
.agent-list {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    padding: 0 var(--space-sm);
}

.agent-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px var(--space-md);
    margin: 2px 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.agent-list li:hover {
    background: var(--bg-hover);
}

.agent-list li.selected {
    background: var(--bg-active);
    border-left: 2px solid var(--accent-primary);
}

.agent-list li .agent-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.agent-list li.online .agent-avatar {
    border-color: rgba(0,245,160,0.3);
    color: var(--accent-green);
}

.agent-list li .agent-info {
    flex: 1;
    min-width: 0;
}

.agent-list li .agent-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-list li .agent-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.agent-list li .agent-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.agent-status-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 6px rgba(0,245,160,0.4);
    animation: dotPulse 2s ease-in-out infinite;
}

.agent-status-dot.delayed {
    background: var(--accent-yellow);
    box-shadow: 0 0 6px rgba(255,200,56,0.4);
}

.agent-status-dot.offline {
    background: var(--accent-red);
    opacity: 0.7;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

.agent-empty {
    padding: var(--space-2xl);
    text-align: center;
    color: var(--text-muted);
}

.agent-empty i {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    display: block;
    opacity: 0.4;
}

.agent-empty p {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.agent-empty span {
    font-size: 0.75rem;
}

/* ──────── WORKSPACE ──────── */
.workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    overflow: hidden;
    min-width: 0;
}

.workspace-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 var(--space-md);
}

.ws-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ws-tab:hover {
    color: var(--text-secondary);
    background: var(--bg-hover);
}

.ws-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.ws-tab i {
    font-size: 1rem;
}

/* View Container */
.view-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.view-pane {
    display: none;
    position: absolute;
    inset: 0;
    padding: var(--space-lg);
    overflow-y: auto;
    animation: fadeIn 0.3s;
}

.view-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Placeholder States */
.placeholder-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-muted);
    gap: var(--space-md);
}

.placeholder-state.small {
    padding: var(--space-2xl);
    gap: var(--space-sm);
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.placeholder-icon i {
    font-size: 2.5rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.placeholder-state h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.placeholder-state p {
    font-size: 0.82rem;
    color: var(--text-muted);
    max-width: 260px;
}

.placeholder-state.small i {
    font-size: 1.5rem;
    opacity: 0.4;
}

.placeholder-state.small p {
    font-size: 0.78rem;
}

/* Stream Container */
.stream-container {
    height: calc(100vh - 110px);
    min-height: 0;
    width: 100%;
    border-radius: var(--radius-md);
    background: #000;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stream-container .placeholder-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.stream-container .placeholder-state[style*="display: none"] {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.stream-container img,
.stream-container video {
    position: absolute;
    inset: 0;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: fill !important;
    margin: auto;
    border-radius: 8px;
    z-index: 10;
    background: #000;
}

.stream-container img[style*="display: none"],
.stream-container video[style*="display: none"] {
    z-index: -5;
    visibility: hidden;
}

/* Fullscreen Styles: 100% edge-to-edge view */
.stream-container:fullscreen,
.stream-container:-webkit-full-screen,
.stream-container:-moz-full-screen,
.stream-container:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
}

.stream-container:fullscreen img,
.stream-container:fullscreen video,
.stream-container:-webkit-full-screen img,
.stream-container:-webkit-full-screen video,
.stream-container:-moz-full-screen img,
.stream-container:-moz-full-screen video,
.stream-container:-ms-fullscreen img,
.stream-container:-ms-fullscreen video {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: fill !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: #000 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.placeholder-icon[style*="animation"] i {
    animation: spin 2s linear infinite;
}

/* Data Grid */
.data-grid {
    height: 100%;
}

/* Agent info cards in data view */
.agent-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-md);
}

.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.info-card-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.info-card-label i {
    color: var(--accent-primary);
}

.info-card-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
    word-break: break-all;
}

.info-card-value.small {
    font-size: 0.85rem;
}

/* ──────── TERMINAL ──────── */
.terminal-wrapper, .terminal-container {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0c0c0c;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.tdot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.tdot.red    { background: #ff5f57; }
.tdot.yellow { background: #febc2e; }
.tdot.green  { background: #28c840; }

.terminal-tabs {
    display: flex;
    gap: 4px;
}

.terminal-output {
    flex: 1;
    min-height: 0;
    padding: var(--space-md);
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-welcome {
    opacity: 0.6;
}

/* Audio Visualizer & Recording Controls */
#audio-visualizer-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

#audio-visualizer-canvas {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#record-audio-btn.recording {
    background: rgba(239, 68, 68, 0.35) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    animation: recordPulse 1.2s infinite ease-in-out;
}

@keyframes recordPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
        transform: scale(1.02);
    }
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--border-subtle);
    background: rgba(0,0,0,0.3);
}

.terminal-prompt {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.terminal-input-row input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    outline: none;
    caret-color: var(--accent-green);
}

.terminal-input-row input::placeholder {
    color: var(--text-muted);
}

/* ──────── RIGHT SIDEBAR ──────── */
.right-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}

.rt-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-sm) var(--space-xs);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.rt-tab:hover {
    color: var(--text-secondary);
    background: var(--bg-hover);
}

.rt-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.rt-tab i {
    font-size: 1rem;
}

.rpane {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

.rpane.active {
    display: block;
}

/* Stats */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.stat-row-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.stat-row-label i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.stat-row-value {
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

/* Log */
.log-output {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.7;
}

.log-entry {
    padding: 6px var(--space-sm);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    gap: var(--space-sm);
    animation: slideInLeft 0.2s;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

.log-time {
    color: var(--text-muted);
    flex-shrink: 0;
    font-size: 0.72rem;
}

.log-msg {
    color: var(--text-secondary);
}

.log-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-2xl);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.log-empty i {
    font-size: 1.5rem;
    opacity: 0.4;
}

/* Keylogs */
.keylogs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0 var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: var(--space-md);
}

.keylogs-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.export-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s;
}

.export-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.keylog-stream {
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.keylog-entry {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-subtle);
    animation: slideInLeft 0.2s;
}

.keylog-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.keylog-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.keylog-window {
    font-size: 0.7rem;
    color: var(--accent-primary);
    background: rgba(0,212,255,0.06);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.keylog-keys {
    color: var(--text-secondary);
    word-break: break-all;
    white-space: pre-wrap;
    line-height: 1.5;
    padding: 4px 0;
}

/* ═══════════════════════════════════════════════════════════
   BOTTOM COMMAND BAR
   ═══════════════════════════════════════════════════════════ */

#command-bar {
    position: relative;
    z-index: 100;
    height: var(--footer-height);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
}

.cmdbar-left, .cmdbar-center, .cmdbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cmdbar-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.status-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-red);
}

.status-indicator.connected {
    background: var(--accent-green);
    box-shadow: 0 0 6px rgba(0,245,160,0.4);
    animation: dotPulse 2s ease-in-out infinite;
}

.command-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.cmd-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.cmd-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-accent);
    color: var(--accent-primary);
}

.cmd-btn:active {
    transform: scale(0.97);
}

.cmd-btn.accent {
    border-color: rgba(0,212,255,0.2);
    color: var(--accent-primary);
}

.cmd-btn.accent:hover {
    background: rgba(0,212,255,0.08);
    box-shadow: 0 0 8px rgba(0,212,255,0.1);
}

.cmd-btn.emergency {
    border-color: rgba(255,59,92,0.3);
    color: var(--accent-red);
}

.cmd-btn.emergency:hover {
    background: rgba(255,59,92,0.1);
    box-shadow: 0 0 8px rgba(255,59,92,0.2);
}

.cmd-btn i {
    font-size: 0.9rem;
}

.cmdbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border-default);
    margin: 0 4px;
}

/* ═══════════════════════════════════════════════════════════
   LOCK SCREEN
   ═══════════════════════════════════════════════════════════ */

.lock-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6,9,15,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lock-card {
    text-align: center;
    padding: var(--space-2xl) 48px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    animation: cardEnter 0.5s;
}

.lock-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,245,160,0.1));
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 1.8rem;
    color: var(--accent-primary);
    animation: iconPulse 2s ease-in-out infinite;
}

.lock-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.lock-card p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: var(--space-xl);
}

.lock-input-wrap {
    margin-bottom: var(--space-lg);
}

.lock-input-wrap input {
    width: 260px;
    padding: 11px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.92rem;
    text-align: center;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lock-input-wrap input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

/* ═══════════════════════════════════════════════════════════
   NOTIFICATION PANEL
   ═══════════════════════════════════════════════════════════ */

.notif-panel {
    position: fixed;
    top: var(--topbar-height);
    right: var(--space-lg);
    width: 320px;
    max-height: 400px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    overflow: hidden;
    animation: slideDown 0.25s;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.notif-header h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.notif-header h3 i {
    color: var(--accent-primary);
}

.notif-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    cursor: pointer;
    transition: color 0.2s;
}

.notif-clear:hover {
    color: var(--accent-red);
}

.notif-list {
    max-height: 340px;
    overflow-y: auto;
    padding: var(--space-sm);
}

.notif-item {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
    transition: background 0.15s;
    cursor: pointer;
}

.notif-item:hover {
    background: var(--bg-hover);
}

.notif-item-title {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.notif-item-body {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notif-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ═══════════════════════════════════════════════════════════
   CONTEXT MENU
   ═══════════════════════════════════════════════════════════ */

.ctx-menu {
    position: fixed;
    z-index: 300;
    min-width: 180px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xs);
    animation: fadeIn 0.15s;
}

.ctx-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}

.ctx-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.ctx-item.danger:hover {
    background: rgba(255,59,92,0.1);
    color: var(--accent-red);
}

.ctx-item i {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    color: var(--text-muted);
}

.ctx-item:hover i {
    color: var(--accent-primary);
}

.ctx-item.danger:hover i {
    color: var(--accent-red);
}

.ctx-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: var(--space-xs) var(--space-sm);
}

/* ═══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════ */

.toast-container {
    position: fixed;
    bottom: calc(var(--footer-height) + var(--space-lg));
    right: var(--space-lg);
    display: flex;
    flex-direction: column-reverse;
    gap: var(--space-sm);
    z-index: 500;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.82rem;
    color: var(--text-primary);
    pointer-events: all;
    animation: toastIn 0.3s;
    max-width: 360px;
}

.toast.exit {
    animation: toastOut 0.3s forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(12px); }
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--accent-green); }
.toast.error .toast-icon   { color: var(--accent-red); }
.toast.info .toast-icon    { color: var(--accent-primary); }
.toast.warning .toast-icon { color: var(--accent-yellow); }

.toast.success { border-left: 3px solid var(--accent-green); }
.toast.error   { border-left: 3px solid var(--accent-red); }
.toast.info    { border-left: 3px solid var(--accent-primary); }
.toast.warning { border-left: 3px solid var(--accent-yellow); }

/* ═══════════════════════════════════════════════════════════
   LOGIN / SETUP SPECIFIC (form elements shared)
   ═══════════════════════════════════════════════════════════ */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.error {
    color: var(--accent-red);
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════
   WHOAMI_404 DESIGN SYSTEM — CUSTOM LAYOUT & COMPONENTS
   ═══════════════════════════════════════════════════════════ */

#mrspy-layout, #whoami_404-layout, .whoami-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* Left Sidebar Navigation */
#mrspy-sidebar, #whoami_404-sidebar, .whoami-sidebar {
    width: 250px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    z-index: 20;
    flex-shrink: 0;
}

.mrspy-brand, .whoami_404-brand, .whoami-brand {
    padding: 24px 20px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mrspy-logo-text, .whoami_404-logo-text, .whoami-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 16px rgba(168, 85, 247, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mrspy-logo-icon, .whoami_404-logo-icon, .whoami-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
}

.mrspy-nav, .whoami_404-nav, .whoami-nav {
    list-style: none;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    flex: 1;
}

.mrspy-nav-item, .whoami_404-nav-item, .whoami-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.mrspy-nav-item i, .whoami_404-nav-item i, .whoami-nav-item i {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.mrspy-nav-item:hover, .whoami_404-nav-item:hover, .whoami-nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.mrspy-nav-item:hover i, .whoami_404-nav-item:hover i, .whoami-nav-item:hover i {
    color: var(--accent-primary);
}

.mrspy-nav-item.active, .whoami_404-nav-item.active, .whoami-nav-item.active {
    background: linear-gradient(135deg, #a855f7, #8b5cf6);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.45);
    border-color: rgba(255, 255, 255, 0.25);
}

.mrspy-nav-item.active i, .whoami_404-nav-item.active i, .whoami-nav-item.active i {
    color: #ffffff;
}

.mrspy-sidebar-footer, .whoami_404-sidebar-footer, .whoami-sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cmdbar-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cmdbar-status .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    display: inline-block;
    flex-shrink: 0;
    transition: background 0.3s, box-shadow 0.3s;
}

.cmdbar-status .status-indicator.connected {
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

.cmdbar-status #ws-status-text {
    display: inline-block;
    line-height: 1;
    position: relative;
    top: 2px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main Workspace */
#mrspy-workspace, #whoami_404-workspace, .whoami-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.mrspy-topbar, .whoami_404-topbar, .whoami-topbar {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(8, 10, 16, 0.6);
    backdrop-filter: blur(12px);
    z-index: 15;
}

.mrspy-content, .whoami_404-content, .whoami-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 28px 36px;
    position: relative;
    z-index: 5;
}

/* Floating Cyber Watermark exactly as in photo */
.bg-cyber-watermark {
    position: absolute;
    right: -30px;
    top: 140px;
    width: 480px;
    height: 480px;
    pointer-events: none;
    opacity: 0.12;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a855f7;
    font-size: 380px;
    filter: drop-shadow(0 0 50px #a855f7);
}

/* Top Active Device Purple Banner */
.active-device-banner {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border-radius: 16px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 36px rgba(168, 85, 247, 0.4);
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.active-device-banner::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.banner-left {
    position: relative;
    z-index: 2;
}

.banner-left h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.banner-left p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.banner-right {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.28);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-badge .online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

/* Connected Devices Section & Cards */
.connected-devices-section {
    position: relative;
    z-index: 5;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 22px;
}

.device-card {
    background: var(--bg-surface);
    border: 1.5px solid rgba(168, 85, 247, 0.65);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 0 26px rgba(168, 85, 247, 0.22);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.device-card:hover {
    border-color: #a855f7;
    box-shadow: 0 10px 36px rgba(168, 85, 247, 0.38);
}

.device-card.selected {
    background: var(--bg-elevated);
    border: 2px solid #a855f7;
    box-shadow: 0 0 32px rgba(168, 85, 247, 0.45);
}

.device-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.device-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.device-os-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #a855f7;
}

.device-hostname {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-sans);
}

.device-online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

.device-online-dot.offline {
    background: var(--accent-red);
    box-shadow: none;
    opacity: 0.7;
}

.device-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    margin-bottom: 18px;
    background: rgba(0, 0, 0, 0.28);
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.device-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.device-spec-row > span:first-child {
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--text-muted);
}

.device-spec-row > span:last-child {
    text-align: right;
    margin-left: auto;
    word-break: break-word;
}

.device-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
}

.dev-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dev-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════
   MR SPY – FILE EXPLORER / FILE MANAGER UI
   ═══════════════════════════════════════════════════════════ */
.file-explorer-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.file-explorer-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(18, 14, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.file-nav-btns {
    display: flex;
    gap: 8px;
}

.f-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}

.f-nav-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.file-path-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 14px;
}

.file-path-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    color: #f8fafc;
}

.file-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.file-actions-left, .file-actions-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.f-action-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.f-action-pill:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: #a855f7;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.f-action-pill.secondary {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
}

.f-action-pill.secondary:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    color: #ffffff;
}

.file-table-wrapper {
    background: rgba(15, 12, 27, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

.file-table-head {
    display: grid;
    grid-template-columns: 3.5fr 2.5fr 1.5fr 120px;
    align-items: center;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.file-table-body {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 230px);
    min-height: 520px;
    overflow-y: auto;
}

.file-row {
    display: grid;
    grid-template-columns: 3.5fr 2.5fr 1.5fr 120px;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
    color: #e2e8f0;
    transition: all 0.2s;
    cursor: pointer;
}

.file-row:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.25);
}

.file-row:last-child {
    border-bottom: none;
}

.f-col-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.f-icon-folder {
    font-size: 1.35rem;
    color: #fbbf24;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.25));
}

.f-icon-file {
    font-size: 1.35rem;
    color: #a855f7;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(168, 85, 247, 0.25));
}

.f-col-date, .f-col-size {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.f-col-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.file-row:hover .f-col-actions {
    opacity: 1;
}

.f-row-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}

.f-row-btn:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: #a855f7;
    color: #ffffff;
}

.f-row-btn.rename-item:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
    color: #93c5fd;
}

.f-row-btn.delete:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #fca5a5;
}

/* View transition wrappers inside WHOAMI_404 workspace */
.mrspy-pane, .whoami_404-pane, .whoami-pane {
    display: none;
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mrspy-pane.active, .whoami_404-pane.active, .whoami-pane.active {
    display: block;
}

#pane-terminal.active {
    display: flex !important;
    flex-direction: column;
}

/* Table styling for whoami_404 / mrspy credential dump and process tables */
.mrspy-table td, .mrspy-table th, .whoami_404-table td, .whoami_404-table th, .whoami-table td, .whoami-table th {
    padding: 12px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.88rem;
}

.mrspy-table tr:hover, .whoami_404-table tr:hover, .whoami-table tr:hover {
    background: rgba(168, 85, 247, 0.08);
}

/* ═══════════════════════════════════════════════════════════
   CUSTOM CYBER MODAL SYSTEM
   ═══════════════════════════════════════════════════════════ */
.c-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 9, 14, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-modal-card {
    background: linear-gradient(145deg, rgba(20, 21, 33, 0.96), rgba(13, 14, 22, 0.98));
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.18);
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.c-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.c-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.c-modal-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #a855f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.c-modal-icon-badge.danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.c-modal-title-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.c-modal-subtitle-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
}

.c-modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.c-modal-close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.c-modal-body {
    padding: 20px 24px;
}

.c-modal-message-text {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.c-modal-input-wrap {
    margin-top: 12px;
}

.c-modal-input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.c-modal-input-field:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}

.c-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 20px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-subtle);
}

.c-modal-footer .f-action-pill.danger {
    background: var(--status-error) !important;
    color: #ffffff !important;
    border: none !important;
}

.c-modal-footer .f-action-pill.danger:hover {
    background: #dc2626 !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4) !important;
}
.device-card, .info-card, .dev-btn, .cmd-btn, .dump-trigger-btn, .section-header, .whoami_404-pane, .mrspy-pane, .whoami-pane, .table-container, .ws-tab, .rt-tab, .mrspy-nav-item, .whoami-nav-item, .auth-submit, .f-action-pill, .f-row-btn, .filter-chip {
    transform: none !important;
}
.device-card:hover, .info-card:hover, .dev-btn:hover, .cmd-btn:hover, .dump-trigger-btn:hover, .section-header:hover, .whoami_404-pane:hover, .mrspy-pane:hover, .whoami-pane:hover, .table-container:hover, .ws-tab:hover, .rt-tab:hover, .mrspy-nav-item:hover, .whoami-nav-item:hover, .auth-submit:hover, .auth-submit:active, .cmd-btn:active, .dev-btn:active, .f-action-pill:hover, .f-row-btn:hover, .filter-chip:hover {
    transform: none !important;
}

/* ═══════════════════════════════════════════════════════════
   ANDROID & MOBILE RESPONSIVE DESIGN ENHANCEMENTS
   (Strictly scoped to max-width: 1024px so Desktop/Laptop is 100% untouched)
   ═══════════════════════════════════════════════════════════ */

/* Mobile Hamburger Menu Toggle & Overlay Backdrop (Hidden on Desktop) */
.mobile-nav-toggle {
    display: none;
}

.mobile-sidebar-backdrop {
    display: none;
}

@media (max-width: 1024px) {
    /* iOS Safe Area Padding for iPhone Notch & Dynamic Island */
    #topbar, .whoami_404-topbar {
        padding-top: max(10px, env(safe-area-inset-top)) !important;
        padding-left: max(14px, env(safe-area-inset-left)) !important;
        padding-right: max(14px, env(safe-area-inset-right)) !important;
        height: auto !important;
        min-height: 56px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .topbar-left {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        justify-content: space-between !important;
    }

    .topbar-right {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        justify-content: flex-end !important;
        flex-wrap: wrap !important;
    }

    .mobile-nav-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
        background: rgba(168, 85, 247, 0.15) !important;
        border: 1px solid rgba(168, 85, 247, 0.35) !important;
        color: #a855f7 !important;
        font-size: 1.3rem !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        flex-shrink: 0 !important;
    }

    .mobile-nav-toggle:active {
        background: rgba(168, 85, 247, 0.3) !important;
        transform: scale(0.96) !important;
    }

    .stat-pills {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .stat-pill {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
        border-radius: 14px !important;
    }

    .topbar-timer {
        font-size: 0.78rem !important;
    }

    #change-url-global span {
        display: none !important;
    }

    #change-url-global {
        padding: 6px 12px !important;
        margin-left: 0 !important;
        font-size: 0.8rem !important;
    }

    /* 2. Slide-Out Mobile Drawer Sidebar */
    .whoami-sidebar, .whoami_404-sidebar, .mrspy-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        padding-top: max(16px, env(safe-area-inset-top)) !important;
        padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
        z-index: 99999 !important;
        background: rgba(11, 13, 22, 0.98) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border-right: 1px solid rgba(168, 85, 247, 0.35) !important;
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.85) !important;
        transform: translateX(-100%) !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .whoami-sidebar.mobile-open, .whoami_404-sidebar.mobile-open, .mrspy-sidebar.mobile-open {
        transform: translateX(0) !important;
    }

    .mobile-sidebar-backdrop {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.65) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        z-index: 99998 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease !important;
    }

    .mobile-sidebar-backdrop.active {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* 3. Main Workspace & Containers */
    #whoami_404-layout, .whoami-layout, .mrspy-layout {
        flex-direction: column !important;
    }

    #whoami_404-workspace, .whoami-workspace, .mrspy-workspace {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 12px 10px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .whoami_404-pane, .whoami-pane, .mrspy-pane {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 4. Responsive Grid & Device Cards */
    .stat-cards-grid, .info-grid, .grid-2-col, .grid-3-col, .grid-4-col {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .device-card, .info-card {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 14px 16px !important;
    }

    /* 5. Touch Scrollable Data Tables */
    .table-container, .file-table-wrapper, .whoami_404-table-wrapper {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        border-radius: 12px !important;
    }

    .mrspy-table, .whoami_404-table, .whoami-table {
        min-width: 580px !important;
    }

    .file-table-head, .file-row {
        grid-template-columns: 2fr 1.2fr 1fr auto !important;
        padding: 10px 12px !important;
        font-size: 0.82rem !important;
    }

    .f-col-date {
        display: none !important;
    }

    .file-explorer-header, .file-action-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .file-actions-left, .file-actions-right {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
    }

    .f-action-pill {
        flex: 1 !important;
        min-width: 120px !important;
        justify-content: center !important;
        padding: 10px 14px !important;
    }

    /* 6. Live WebRTC Video Streams */
    #screen-stream-container, #camera-stream-container, .webrtc-stream-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    video#screen-video, video#camera-video, .stream-video {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 50vh !important;
        object-fit: contain !important;
        border-radius: 10px !important;
    }

    .stream-toolbar, .video-controls-bar {
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
        width: 100% !important;
    }

    /* 7. Action Buttons & Form Controls */
    .cmd-btn, .dev-btn, .dump-trigger-btn {
        padding: 10px 14px !important;
        font-size: 0.82rem !important;
    }

    #pane-other-features div[style*="display: flex"],
    #pane-other-features div[style*="display:grid"],
    #pane-other-features div[style*="display: flex; gap: 20px"] {
        flex-wrap: wrap !important;
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
    }

    #btn-feature-msg, #btn-feature-url, #btn-feature-loader, #btn-feature-upgrader, .feature-card-btn {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* 8. Modals & Overlays for Touchscreens */
    .c-modal-card {
        width: 94% !important;
        max-width: 94% !important;
        margin: auto !important;
        padding: 16px !important;
        box-sizing: border-box !important;
        border-radius: 14px !important;
    }

    .lock-overlay > div, .prompt-modal > div {
        width: 94% !important;
        max-width: 94% !important;
        padding: 20px 16px !important;
        box-sizing: border-box !important;
        border-radius: 14px !important;
    }
}

/* ==========================================================
   WORLD-CLASS WEBRTC STREAM & REMOTE CONTROL HUD
   ========================================================== */
#btn-remote-control.active {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(52, 211, 153, 0.8) !important;
    color: #34d399 !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.4), inset 0 0 8px rgba(16, 185, 129, 0.2);
}

#btn-remote-control.active #remote-control-icon {
    color: #34d399 !important;
    animation: pulse 1.5s infinite;
}

.shortcuts-dropdown-menu .shortcut-item-btn:hover {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #ffffff !important;
}

video#screen-video.remote-control-active {
    cursor: crosshair !important;
}

#screen-stream-wrapper.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    border-radius: 0 !important;
    border: none !important;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.15);
    }
}