        :root {
            --neon: #05d985;
            --terminal: #0b0c10;
            --panel: rgba(18, 20, 26, 0.45);
            --panel-light: rgba(20, 23, 29, 0.55);
            --border: rgba(255, 255, 255, 0.08);
            --text-muted: #5a6072;
            --red: #ef4444;
            --cyan: #22d3ee;
            --neon-glow: 0 0 15px rgba(5, 217, 133, 0.2);
            --neon-glow-strong: 0 0 25px rgba(5, 217, 133, 0.35);
        }

        @keyframes pulse-ring {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 217, 133, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(5, 217, 133, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(5, 217, 133, 0); }
        }

        @keyframes pulse-ring-red {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
            70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
        }

        @keyframes slide-up-fade {
            from { opacity: 0; transform: translateY(12px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes scanline {
            0% { background-position: 0 0; }
            100% { background-position: 0 32px; }
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }
        
        body { 
            background-color: var(--terminal); 
            background-image: 
                linear-gradient(rgba(5, 217, 133, 0.02) 1px, transparent 1px),
                linear-gradient(90deg, rgba(5, 217, 133, 0.02) 1px, transparent 1px);
            background-size: 32px 32px;
            animation: scanline 4s linear infinite;
            color: var(--neon); 
            font-family: 'JetBrains Mono', Consolas, Menlo, monospace; 
            margin: 0;
            padding: 0;
            padding-bottom: 10rem;
            min-height: 100vh;
            min-height: 100dvh;
            overflow-x: hidden;
            overflow-y: auto;
        }

        ::-webkit-scrollbar { width: 0px; height: 0px; display: none; }
        
        .container { max-width: 48rem; margin: 0 auto; padding: 1.5rem 1.25rem; display: flex; flex-direction: column; gap: 1.5rem; }
        
        .flex { display: flex; }
        .flex-col { flex-direction: column; }
        .items-center { align-items: center; }
        .items-start { align-items: flex-start; }
        .items-end { align-items: flex-end; }
        .justify-between { justify-content: space-between; }
        .justify-center { justify-content: center; }
        .gap-1 { gap: 0.25rem; }
        .gap-2 { gap: 0.5rem; }
        .gap-3 { gap: 0.75rem; }
        .gap-4 { gap: 1rem; }
        .gap-6 { gap: 1.5rem; }
        
        .grid { display: grid; }
        .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        
        .mb-1 { margin-bottom: 0.25rem; }
        .mb-2 { margin-bottom: 0.5rem; }
        .mb-4 { margin-bottom: 1rem; }
        .mb-6 { margin-bottom: 1.5rem; }
        .mb-8 { margin-bottom: 2rem; }
        .mt-1 { margin-top: 0.25rem; }
        .mt-2 { margin-top: 0.5rem; }
        .mt-4 { margin-top: 1rem; }
        .pb-4 { padding-bottom: 1rem; }
        .p-4 { padding: 1rem; }
        .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
        .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
        .ml-2 { margin-left: 0.5rem; }
        .ml-3 { margin-left: 0.75rem; }
        
        .w-full { width: 100%; }
        
        .text-xs { font-size: 0.75rem; line-height: 1rem; }
        .text-sm { font-size: 0.875rem; line-height: 1.25rem; }
        .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
        .text-2xl { font-size: 1.5rem; line-height: 2rem; }
        .text-5xl { font-size: 3rem; line-height: 1; }
        .text-6xl { font-size: 4rem; line-height: 1; }
        .text-10px { font-size: 10px; }
        .text-11px { font-size: 11px; }
        
        .font-bold { font-weight: 700; }
        .font-mono { font-family: 'JetBrains Mono', Consolas, monospace; }
        .uppercase { text-transform: uppercase; }
        .tracking-widest { letter-spacing: 0.1em; }
        .tracking-wider { letter-spacing: 0.05em; }
        .tracking-tight { letter-spacing: -0.025em; }
        .leading-none { line-height: 1.1; }
        .text-center { text-align: center; }
        
        .text-white { color: #ffffff; }
        .text-neon { color: var(--neon); }
        .text-muted { color: var(--text-muted); }
        .text-cyan { color: var(--cyan); }
        .text-red { color: var(--red); }
        
        .section-card {
            background-color: var(--panel);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 1.25rem;
            padding: 1.5rem;
            border: 1px solid var(--border);
            position: relative;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            overflow: hidden;
        }
        .inner-card {
            background-color: var(--panel-light);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 0.75rem;
            padding: 1rem;
            border: 1px solid var(--border);
            transition: all 0.3s ease;
        }
        .inner-card:hover {
            border-color: rgba(5, 217, 133, 0.3);
            box-shadow: var(--neon-glow);
            transform: translateY(-2px);
        }
        .daemon-card {
            background-color: rgba(16,18,23,0.5);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            border-radius: 0.75rem;
            padding: 0.875rem 1rem;
            border: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .status-pill {
            padding: 0.25rem 0.6rem;
            border-radius: 9999px;
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 0.05em;
            font-size: 0.65rem;
            border: 1px solid #035c36;
            color: var(--neon);
            background-color: rgba(3, 60, 36, 0.3);
            box-shadow: 0 0 10px rgba(0,239,139,0.1);
            white-space: nowrap;
        }
        .status-pill.warning {
            border: 1px solid #8a7217;
            color: #ffc107;
            background-color: rgba(82, 68, 16, 0.3);
        }
        
        .dot { height: 0.4rem; width: 0.4rem; border-radius: 9999px; }
        .dot-red { background-color: var(--red); box-shadow: 0 0 8px rgba(239,68,68,0.7); animation: pulse-ring-red 2s infinite; }
        .dot-neon { background-color: var(--neon); box-shadow: 0 0 8px rgba(0,239,139,0.7); animation: pulse-ring 2s infinite; }

        .progress-track { height: 0.25rem; width: 100%; background-color: var(--border); border-radius: 9999px; overflow: hidden; margin-top: 0.5rem; }
        .progress-fill { height: 100%; background-color: var(--neon); border-radius: 9999px; box-shadow: var(--neon-glow); }

        .icon { width: 1.25rem; height: 1.25rem; }
        .hidden { display: none !important; }
        .view-section:not(.hidden) { animation: slide-up-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
        
        /* Form Elements */
        .input-field {
            width: 100%;
            background-color: transparent;
            border: none;
            color: #ffffff;
            font-family: inherit;
            font-size: 0.875rem;
            outline: none;
        }
        .input-field::placeholder { color: #5a6072; }
        
        .btn-primary {
            background-color: var(--neon);
            color: var(--terminal);
            font-weight: 700;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            border: none;
            cursor: pointer;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            transition: all 0.2s;
            white-space: nowrap;
        }
        .btn-primary:hover { background-color: #ffffff; }

        /* Segmented Tabs */
        .tab-container {
            display: flex;
            background: rgba(8, 10, 13, 0.85);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 5px;
            margin-bottom: 2rem;
            box-shadow: inset 0 2px 10px rgba(0,0,0,0.6);
            backdrop-filter: blur(8px);
        }
        .tab-btn {
            flex: 1;
            padding: 0.85rem 0;
            font-size: 0.7rem;
            font-weight: 800;
            font-family: inherit;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--text-muted);
            background: transparent;
            border: 1px solid transparent;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .tab-btn.active {
            color: var(--neon);
            text-shadow: 0 0 12px rgba(5, 217, 133, 0.4);
            background: rgba(5, 217, 133, 0.1);
            border-color: rgba(5, 217, 133, 0.3);
            box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 4px 15px rgba(5, 217, 133, 0.05);
        }
        .tab-btn:not(.active):hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.03);
            border-color: rgba(255, 255, 255, 0.05);
        }
        
        /* Bottom Nav - Fixed correctly */
        .bottom-nav {
            position: fixed;
            bottom: 0px; 
            left: 0px; 
            width: 100%;
            background-color: var(--terminal);
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-around;
            align-items: center;
            height: calc(4.8rem + env(safe-area-inset-bottom, 0px));
            padding: 0 0.5rem;
            z-index: 9999;
            /* Ensures it stays above browser UI on iOS Safari */
            padding-bottom: env(safe-area-inset-bottom, 0px);
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 4rem;
            height: 100%;
            text-decoration: none;
            color: var(--text-muted);
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            gap: 0.35rem;
            transition: all 0.3s;
            position: relative;
        }

        .nav-item.active {
            color: var(--neon);
        }

        .nav-item.active::before {
            content: '';
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            width: 3rem; height: 3rem;
            background: radial-gradient(circle at center, rgba(0,239,139,0.15) 0%, transparent 60%);
            z-index: -1;
            border-radius: 50%;
        }

        .nav-item svg { width: 1.5rem; height: 1.5rem; opacity: 0.8; }
        .nav-item.active svg { opacity: 1; }

        .nav-center-wrapper {
            position: relative;
            width: 5rem;
            height: 100%;
            display: flex;
            justify-content: center;
        }

        .nav-center-btn {
            position: absolute;
            bottom: 1.25rem;
            width: 3.5rem;
            height: 3.5rem;
            border-radius: 9999px;
            background-color: var(--terminal);
            border: 2px solid var(--neon);
            color: var(--neon);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--neon-glow);
            z-index: 51;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .nav-center-btn:hover {
            transform: scale(1.05) translateY(-2px);
        }

        .nav-center-btn.active-center {
            background-color: rgba(5, 217, 133, 0.15);
            box-shadow: var(--neon-glow-strong);
            border-color: #ffffff;
            color: #ffffff;
            animation: pulse-ring 2s infinite;
        }

        .nav-center-btn svg { width: 1.75rem; height: 1.75rem; }

        @keyframes ping-slow {
            75%, 100% { transform: scale(2); opacity: 0; }
        }

        details.log-accordion summary { list-style: none; }
        details.log-accordion summary::-webkit-details-marker { display: none; }
        details.log-accordion[open] summary .toggle-icon { transform: rotate(180deg); }
        details.log-accordion summary .toggle-icon { transition: transform 0.2s; }

        /* Sidebar Settings Drawer */
        .sidebar {
            position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
            background-color: var(--panel); border-left: 1px solid var(--border);
            z-index: 10000; transition: right 0.3s ease-in-out; padding: 1.5rem; overflow-y: auto;
            box-shadow: -5px 0 25px rgba(0,0,0,0.8);
        }
        .sidebar.open { right: 0; }
        .sidebar-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background-color: rgba(0,0,0,0.7); z-index: 9999; display: none; backdrop-filter: blur(2px);
        }
        .sidebar-overlay.active { display: block; }
        
        .chat-input-fixed {
            position: fixed;
            bottom: 5.5rem;
            left: 1.5rem;
            right: 1.5rem;
            z-index: 50;
            background-color: rgba(16,18,23,0.9);
            border-radius: 0.75rem;
            padding: 0.6rem 1rem;
            border: 1px solid var(--neon);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 0 25px rgba(0, 239, 139, 0.15);
            backdrop-filter: blur(8px);
        }
        
        /* Login Overlay */
        #login-overlay {
            position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background-color: var(--terminal);
            z-index: 99999;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            background-image: linear-gradient(rgba(5, 217, 133, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(5, 217, 133, 0.02) 1px, transparent 1px);
            background-size: 32px 32px;
            animation: scanline 4s linear infinite;
            transition: opacity 0.5s ease-out;
            backdrop-filter: blur(10px);
        }
        .login-box {
            width: 90%; max-width: 380px;
            background-color: rgba(18, 20, 26, 0.6);
            backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--neon); border-radius: 1rem;
            padding: 3rem 2rem; text-align: center;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 30px rgba(5, 217, 133, 0.15);
        }
        .glitch-text {
            font-size: 2rem; font-weight: 900; color: var(--neon);
            letter-spacing: 0.2em; text-transform: uppercase;
            margin-bottom: 0.5rem; text-shadow: 0 0 10px rgba(5, 217, 133, 0.5);
        }
        .login-input {
            width: 100%; background-color: rgba(0,0,0,0.5);
            border: 1px solid var(--border); border-radius: 0.5rem;
            padding: 1rem; color: var(--neon);
            font-family: 'JetBrains Mono', monospace; font-size: 1rem;
            text-align: center; letter-spacing: 0.1em;
            margin-top: 2.5rem; margin-bottom: 1.5rem;
            outline: none; transition: all 0.3s;
        }
        .login-input:focus { border-color: var(--neon); box-shadow: 0 0 15px rgba(5,217,133,0.2); }
        .login-btn {
            width: 100%; background-color: var(--neon); color: var(--terminal);
            font-weight: 900; font-family: 'JetBrains Mono', monospace;
            padding: 1rem; border-radius: 0.5rem; border: none;
            cursor: pointer; font-size: 1rem; letter-spacing: 0.15em;
            text-transform: uppercase; transition: all 0.3s;
        }
        .login-btn:hover { background-color: #fff; box-shadow: 0 0 20px rgba(255,255,255,0.4); }

/* Extra Cyber-Look-V3 system styles */
                      @keyframes cyberPulseRed { 0%,100% { box-shadow:0 0 0 0 rgba(255,69,58,0.45),0 0 22px rgba(255,69,58,0.18) inset; } 50% { box-shadow:0 0 0 10px rgba(255,69,58,0),0 0 22px rgba(255,69,58,0.18) inset; } }
                      @keyframes cyberDotPulse { 0%,100% { opacity:1; } 50% { opacity:.35; } }
                      .cyber-sys-alert { animation: cyberPulseRed 2.4s ease-in-out infinite; }
                      .cyber-sys-dot   { animation: cyberDotPulse  1.4s ease-in-out infinite; }

/* Extra Cyber-Look-V2 toolbar styles */
                      .cyber-pill{padding:.4rem .75rem;border-radius:9999px;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;background:rgba(255,255,255,.04);color:#9ca3af;border:1px solid rgba(255,255,255,.08);cursor:pointer;font-family:'JetBrains Mono',monospace;transition:all .15s;}
                      .cyber-pill:hover{color:#fff;border-color:rgba(255,255,255,.2);}
                      .cyber-pill-active{background:rgba(0,255,157,.10);color:#00ff9d;border-color:rgba(0,255,157,.35);box-shadow:inset 0 0 8px rgba(0,255,157,.08);}
                      #featured-alerts::-webkit-scrollbar{height:4px;}
                      #featured-alerts::-webkit-scrollbar-thumb{background:#2a2d34;border-radius:8px;}
                      .cyber-featured-card{flex:0 0 240px;scroll-snap-align:start;}
