        :root {
            /* CYBER-PREMIUM HSL PALETTE */
            --hex-green: hsl(145, 100%, 50%);
            --hex-green-dim: hsla(145, 100%, 50%, 0.1);
            --hex-green-glow: hsla(145, 100%, 50%, 0.3);
            --hex-green-tactical: var(--hex-green);
            --hex-red: hsl(0, 100%, 60%);
            --hex-red-dim: hsla(0, 100%, 60%, 0.1);
            --hex-orange: hsl(35, 100%, 60%);
            --hex-orange-dim: hsla(35, 100%, 60%, 0.1);
            --hex-blue: hsl(210, 100%, 60%);
            --hex-blue-dim: hsla(210, 100%, 60%, 0.1);
            --hex-purple: hsl(270, 70%, 60%);

            /* LEGACY MAPPINGS */
            --osint-green: var(--hex-green);
            --osint-green-dim: var(--hex-green-dim);
            --osint-red: var(--hex-red);
            --osint-red-dim: var(--hex-red-dim);

            /* CORE THEME DEFAULTS (DARK) */
            --osint-black: #020202;
            --osint-bg: #020202;
            --osint-white: #ffffff;
            --osint-text: #ffffff;
            --osint-muted: #64748b;
            --glass-bg: rgba(5, 5, 5, 0.8);
            --glass-border: rgba(255, 255, 255, 0.05);
            --glass-inner-glow: inset 0 0 20px rgba(255, 255, 255, 0.02);
            --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
            --sidebar-bg: #050505;
            --topbar-bg: rgba(2, 2, 2, 0.8);

            /* GEOMETRY */
            --radius-xs: 2px;
            --radius-sm: 4px;
            --radius-md: 8px;
            --sidebar-width: 260px;
            --transition-premium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

            /* TYPOGRAPHY – standard sizes for readability */
            --font-main: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            --font-brand: 'Space Grotesk', system-ui, sans-serif;
            --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
            --font-size-base: 15px;
            --font-size-body: 15px;
            --font-size-sm: 13px;
            --font-size-xs: 12px;
            --font-size-label: 13px;
            --font-size-heading: 18px;
            --line-height-body: 1.5;
            --line-height-tight: 1.35;

            /* INPUT & FILTER THEME (DARK) */
            --input-bg: rgba(255, 255, 255, 0.03);
            --filter-toolbar-bg: rgba(255, 255, 255, 0.02);
            --search-input-bg: rgba(255, 255, 255, 0.04);

            /* TABLE THEME (DARK) */
            --table-header-bg: rgba(255, 255, 255, 0.03);

            /* PAGINATION THEME */
            --pagination-bg: rgba(255, 255, 255, 0.02);
            --btn-page-bg: #111111;
            --btn-page-text: var(--osint-muted);
            --btn-page-border: var(--glass-border);
            --btn-page-hover-border: var(--osint-green);
            --btn-page-hover-text: var(--osint-text);

            /* OPACITY UTILS (DARK) */
            --hex-green-01: hsla(145, 100%, 50%, 0.1);
            --hex-green-015: hsla(145, 100%, 50%, 0.15);
            --hex-green-02: hsla(145, 100%, 50%, 0.2);
            --hex-green-03: hsla(145, 100%, 50%, 0.3);
            --hex-green-04: hsla(145, 100%, 50%, 0.4);
            --hex-green-05: hsla(145, 100%, 50%, 0.05);
            --hex-green-06: hsla(145, 100%, 50%, 0.6);
            --hex-green-07: hsla(145, 100%, 50%, 0.7);
            --osint-white-01: rgba(255, 255, 255, 0.1);
            --osint-white-015: rgba(255, 255, 255, 0.15);
            --osint-white-02: rgba(255, 255, 255, 0.2);
            --osint-white-05: rgba(255, 255, 255, 0.05);
            --osint-black-03: rgba(0, 0, 0, 0.3);
            --osint-black-04: rgba(0, 0, 0, 0.4);
            --osint-black-06: rgba(0, 0, 0, 0.6);
            --osint-red-015: hsla(0, 100%, 60%, 0.15);
        }

        [data-theme="light"] {
            --osint-black: #000000;
            --osint-bg: #f8fafc;
            --osint-white: #0f172a;
            --osint-text: #0f172a;
            --osint-muted: #475569;
            --glass-bg: rgba(255, 255, 255, 0.8);
            --glass-border: rgba(0, 0, 0, 0.05);
            --glass-inner-glow: inset 0 0 20px rgba(0, 0, 0, 0.01);
            --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
            --sidebar-bg: #ffffff;
            --topbar-bg: rgba(248, 250, 252, 0.8);

            --hex-green: hsl(145, 100%, 30%);
            --hex-green-dim: hsla(145, 100%, 30%, 0.05);
            --hex-green-tactical: var(--hex-green);
            --hex-orange-dim: hsla(35, 100%, 60%, 0.05);
            --hex-red-dim: hsla(0, 100%, 60%, 0.05);
            --hex-blue-dim: hsla(210, 100%, 60%, 0.05);

            /* Additional light mode specific colors */
            --sidebar-text: #1e293b;
            --table-text: #334155;
            --badge-text: #0f172a;
            --nav-text: #475569;
            --nav-text-hover: #0f172a;

            --btn-page-hover-text: var(--hex-green);

            /* INPUT & FILTER THEME (LIGHT) */
            --input-bg: #f1f5f9;
            --filter-toolbar-bg: #f8fafc;
            --search-input-bg: #ffffff;

            /* TABLE THEME (LIGHT) */
            --table-header-bg: rgba(15, 23, 42, 0.04);

            /* PAGINATION LIGHT OVERRIDES */
            --pagination-bg: rgba(15, 23, 42, 0.04);
            --btn-page-bg: #ffffff;
            --btn-page-text: #475569;
            --btn-page-border: #e2e8f0;
            --btn-page-hover-border: var(--hex-green);

            /* OPACITY UTILS (LIGHT) */
            --hex-green-01: hsla(145, 100%, 30%, 0.1);
            --hex-green-015: hsla(145, 100%, 30%, 0.15);
            --hex-green-02: hsla(145, 100%, 30%, 0.2);
            --hex-green-03: hsla(145, 100%, 30%, 0.3);
            --hex-green-04: hsla(145, 100%, 30%, 0.4);
            --hex-green-05: hsla(145, 100%, 30%, 0.05);
            --hex-green-06: hsla(145, 100%, 30%, 0.6);
            --hex-green-07: hsla(145, 100%, 30%, 0.7);
            --osint-white-01: rgba(15, 23, 42, 0.1);
            --osint-white-015: rgba(15, 23, 42, 0.15);
            --osint-white-02: rgba(15, 23, 42, 0.2);
            --osint-white-05: rgba(15, 23, 42, 0.05);
            --osint-black-03: rgba(0, 0, 0, 0.05);
            --osint-black-04: rgba(0, 0, 0, 0.1);
            --osint-black-06: rgba(0, 0, 0, 0.15);
            --osint-red-015: hsla(0, 100%, 40%, 0.15);
        }

        [data-theme="light"] ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
        }

        [data-theme="light"] .premium-card::after {
            display: none;
        }

        /* Sidebar logo: dark logo on dark theme, light logo on light theme (avoids white box in dark mode) */
        .sidebar-logo-light {
            display: none;
            border-radius: 16px;
            overflow: hidden;
        }
        .sidebar-logo-dark {
            display: block;
            border-radius: 16px;
            overflow: hidden;
        }
        [data-theme="light"] .sidebar-logo-light {
            display: block;
        }
        [data-theme="light"] .sidebar-logo-dark {
            display: none;
        }
        /* Sidebar logos use 256×256 source; scaled to 56px for sharp rendering on all DPIs */

        /* READABILITY: enforce minimum font sizes app-wide (override tiny arbitrary classes) */
        [class*="text-[9px]"],
        [class*="text-[10px]"] {
            font-size: var(--font-size-xs) !important;
        }
        [class*="text-[11px]"] {
            font-size: var(--font-size-sm) !important;
        }

        /* RESET & BASE – scale with viewport; compact density scales down further */
        html {
            font-size: 16px;
        }
        html[data-density="compact"] {
            font-size: 14px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: var(--font-main);
            -webkit-font-smoothing: antialiased;
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-family: var(--font-brand);
            letter-spacing: -0.5px;
            font-size: inherit;
        }

        body {
            font-size: var(--font-size-body);
            line-height: var(--line-height-body);
            background-color: var(--osint-bg);
            color: var(--osint-text);
            overflow: hidden;
            background-image:
                linear-gradient(var(--hex-green-dim) 1px, transparent 1px),
                linear-gradient(90deg, var(--hex-green-dim) 1px, transparent 1px);
            background-size: 40px 40px;
            min-height: 100vh;
            transition: background-color 0.4s ease, color 0.4s ease;
        }

        /* ANIMATIONS */
        @keyframes scanline {
            0% {
                transform: translateY(-100%);
            }

            100% {
                transform: translateY(100%);
            }
        }

        @keyframes data-pulse {
            0% {
                opacity: 0.4;
            }

            50% {
                opacity: 1;
            }

            100% {
                opacity: 0.4;
            }
        }

        /* CUSTOM SCROLLBAR */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--glass-border);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--hex-green);
        }

        /* -------------------------------------------------------------------------- */
        /* PREMIUM COMPONENTS */
        /* -------------------------------------------------------------------------- */

        .premium-card {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            box-shadow: var(--glass-inner-glow), var(--card-shadow);
            backdrop-filter: blur(20px);
            border-radius: var(--radius-md);
            position: relative;
            overflow: hidden;
            transition: var(--transition-premium);
        }

        .premium-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--osint-white-01), transparent);
            animation: scanline 6s linear infinite;
        }

        .premium-card:hover {
            border-color: var(--hex-green-glow);
            transform: translateY(-2px);
            box-shadow: var(--glass-inner-glow), 0 30px 60px rgba(0, 0, 0, 0.1);
        }

        /* RESPONSIVE SCALING – adapt to monitor/viewport size */
        @media screen and (max-width: 1440px),
        screen and (max-height: 900px) {
            html {
                font-size: 15px;
            }
            :root {
                --sidebar-width: 220px;
                --font-size-base: 14px;
                --font-size-body: 14px;
                --font-size-sm: 12px;
                --font-size-xs: 11px;
                --font-size-heading: 16px;
            }

            body {
                font-size: var(--font-size-body);
            }
            .brand-huge {
                font-size: 48px !important;
            }
            .nav-item {
                padding: 10px 14px;
                font-size: 12px;
            }
            .top-bar {
                height: 50px;
                padding: 0 20px;
            }
            #dashboardPage {
                grid-template-rows: 50px 1fr;
            }
            .main-content {
                padding: 24px;
            }
            h1 { font-size: 1.8rem; }
            h2 { font-size: 1.5rem; }
            h3 { font-size: 1.2rem; }
            .premium-card { margin-bottom: 20px; }
            .metric-card { padding: 18px; min-height: 100px; }
            .metric-value { font-size: 36px; }
            .war-room-container {
                grid-template-columns: 300px 1fr 300px;
                gap: 16px;
            }
            .war-room-overlay { padding: 24px; }
            .modal-overlay { padding: 16px; }
            .panel-header { padding: 18px 24px; }
            .panel-content { padding: 24px; max-height: 75vh; }
        }

        @media screen and (max-width: 1280px),
        screen and (max-height: 800px) {
            html {
                font-size: 14px;
            }
            :root {
                --sidebar-width: 200px;
                --font-size-base: 13px;
                --font-size-body: 13px;
                --font-size-sm: 12px;
                --font-size-xs: 11px;
                --font-size-heading: 15px;
            }
            .main-content {
                padding: 20px;
            }
            .top-bar {
                height: 48px;
                padding: 0 16px;
            }
            #dashboardPage {
                grid-template-rows: 48px 1fr;
            }
            .metric-card { padding: 16px; min-height: 90px; }
            .metric-value { font-size: 32px; }
            .metric-label { font-size: 12px; margin-bottom: 8px; }
            .cyber-table th,
            .cyber-table td,
            .asset-table th,
            .asset-table td,
            .findings-table th,
            .findings-table td {
                padding: 12px 16px;
                font-size: 13px;
            }
            .war-room-container {
                grid-template-columns: 280px 1fr 280px;
                gap: 12px;
            }
            .war-header { padding: 12px 16px; font-size: 10px; }
            .war-content { padding: 16px; font-size: 12px; }
            .war-room-overlay { padding: 16px; }
            .login-glass-card { padding: 40px 36px; max-width: 420px; }
            .login-brand-title { font-size: 36px; }
        }

        @media screen and (max-width: 1024px),
        screen and (max-height: 700px) {
            html {
                font-size: 13px;
            }
            :root {
                --sidebar-width: 180px;
                --font-size-base: 12px;
                --font-size-body: 12px;
                --font-size-sm: 11px;
                --font-size-xs: 10px;
                --font-size-heading: 14px;
            }
            .main-content {
                padding: 16px;
            }
            .top-bar {
                height: 44px;
                padding: 0 12px;
            }
            #dashboardPage {
                grid-template-rows: 44px 1fr;
            }
            .metric-card { padding: 14px; min-height: 80px; }
            .metric-value { font-size: 28px; }
            .metric-label { font-size: 11px; margin-bottom: 6px; }
            .cyber-table th,
            .cyber-table td,
            .asset-table th,
            .asset-table td,
            .findings-table th,
            .findings-table td {
                padding: 10px 12px;
                font-size: 12px;
            }
            .war-room-container {
                grid-template-columns: 1fr;
                grid-template-rows: auto 1fr auto;
            }
            .war-room-container .war-panel:first-child {
                grid-column: 1;
                max-height: 200px;
            }
            .war-room-container .war-panel:nth-child(2) {
                grid-column: 1;
                grid-row: 2;
            }
            .war-room-container .war-panel:last-child {
                grid-column: 1;
                grid-row: 3;
                max-height: 180px;
            }
            .war-room-overlay { padding: 12px; }
            .btn-hex { padding: 8px 16px; height: 40px; font-size: 11px; }
            .hex-input { padding: 10px 12px; font-size: 12px; }
        }

        /* Compact density – user toggle scales UI down for more content on screen */
        html[data-density="compact"] {
            font-size: 13px !important;
            --font-size-base: 12px;
            --font-size-body: 12px;
            --font-size-sm: 11px;
            --font-size-xs: 10px;
            --font-size-heading: 14px;
        }
        @media screen and (min-width: 1441px) {
            html[data-density="compact"] {
                font-size: 14px !important;
                --font-size-base: 13px;
                --font-size-body: 13px;
            }
        }

        /* METRIC CARDS */
        .metric-card {
            padding: 24px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 120px;
        }

        .metric-label {
            font-family: var(--font-mono);
            font-size: 15px;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--osint-muted);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 700;
        }

        .metric-value {
            font-family: var(--font-mono);
            font-size: 48px;
            font-weight: 800;
            letter-spacing: -2px;
            color: var(--osint-text);
            line-height: 1;
        }

        /* BUTTONS */
        .btn-hex {
            background: var(--hex-green);
            color: #000;
            border: none;
            padding: 0 28px;
            height: 52px;
            font-family: var(--font-mono);
            font-size: 14px;
            font-weight: 850;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            cursor: pointer;
            border-radius: var(--radius-xs);
            transition: var(--transition-premium);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            outline: none;
        }

        .btn-hex:hover {
            box-shadow: 0 0 30px var(--hex-green-glow);
            transform: translateY(-2px);
            filter: brightness(1.1);
        }

        .btn-hex:active {
            transform: translateY(0);
        }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--glass-border);
            color: var(--osint-muted);
        }

        .btn-outline:hover {
            border-color: var(--osint-text);
            /* FIXED */
            color: var(--osint-text);
            /* FIXED */
            background: var(--pagination-bg);
            /* Adaptive BG is fine for now */
        }

        /* INPUTS */
        .hex-input {
            background: var(--input-bg);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-xs);
            padding: 12px 16px;
            color: var(--osint-text);
            /* FIXED */
            font-family: var(--font-mono);
            font-size: 14px;
            transition: var(--transition-premium);
            outline: none;
        }

        .hex-input:focus {
            border-color: var(--hex-green);
            background: var(--hex-green-dim);
            box-shadow: 0 0 20px var(--hex-green-dim);
        }

        /* GLOBAL INPUT CONSISTENCY - search, filter, select */
        input[type="text"]::placeholder,
        input[type="search"]::placeholder,
        textarea::placeholder {
            color: var(--osint-muted);
        }

        .search-input, .filter-input {
            background: var(--search-input-bg) !important;
            border: 1px solid var(--glass-border);
            color: var(--osint-text);
            font-family: var(--font-mono);
            font-size: var(--font-size-sm);
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .search-input:focus, .filter-input:focus {
            border-color: var(--hex-green);
            box-shadow: 0 0 0 2px var(--hex-green-dim);
        }

        .filter-select {
            background: var(--input-bg) !important;
            border: 1px solid var(--glass-border);
            color: var(--osint-text);
            font-family: var(--font-mono);
            font-size: var(--font-size-xs);
            cursor: pointer;
            outline: none;
        }

        .filter-select:focus {
            border-color: var(--hex-green);
        }

        .filter-toolbar {
            background: var(--filter-toolbar-bg);
        }

        /* Select options - ensure readable in both themes */
        select.filter-select option,
        select.hex-input option {
            background: var(--input-bg);
            color: var(--osint-text);
        }

        /* Modal select - darker background for dropdown visibility in dark theme */
        select.modal-select {
            background: #111318 !important;
            color: var(--osint-text) !important;
        }
        select.modal-select option {
            background: #111318 !important;
            color: var(--osint-text) !important;
        }
        [data-theme="light"] select.modal-select,
        [data-theme="light"] select.modal-select option {
            background: #f1f5f9 !important;
            color: #0f172a !important;
        }

        /* -------------------------------------------------------------------------- */
        /* LAYOUT & TABS */
        /* -------------------------------------------------------------------------- */

        #dashboardPage {
            display: none;
            height: 100vh;
            width: 100vw;
            grid-template-columns: var(--sidebar-width) 1fr;
            grid-template-rows: auto 1fr;
            background: var(--osint-bg);
        }

        .sidebar {
            grid-row: 1 / 3;
            position: relative;
            background: var(--sidebar-bg);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-right: 1px solid var(--glass-border);
            display: flex;
            flex-direction: column;
            padding: 24px 16px;
            z-index: 100;
            transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease, background 0.3s ease;
            box-shadow: none;
        }

        .sidebar::after {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(180deg, var(--hex-green) 0%, transparent 60%);
            opacity: 0.15;
            pointer-events: none;
        }

        .sidebar > div:first-of-type {
            padding-bottom: 20px;
            margin-bottom: 16px;
            border-bottom: 1px solid var(--glass-border);
        }

        .sidebar .logo img {
            transition: opacity 0.2s ease;
        }

        .sidebar .nav-group {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 2px;
            overflow-y: auto;
            overflow-x: hidden;
            min-height: 0;
        }

        .sidebar .border-t.border-glass.pt-5 {
            border-top: 1px solid var(--glass-border) !important;
            padding-top: 20px !important;
            margin-top: 8px;
        }

        .top-bar {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            padding: 0;
            min-height: 64px;
            background: var(--topbar-bg);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--glass-border);
            z-index: 90;
            transition: background-color 0.4s ease, border-color 0.4s ease;
        }
        .top-bar .top-bar-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 40px;
            min-height: 64px;
        }
        .impersonation-banner {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            padding: 8px 20px;
            background: linear-gradient(90deg, rgba(0, 255, 100, 0.12) 0%, rgba(0, 255, 100, 0.04) 100%);
            border-bottom: 1px solid rgba(0, 255, 100, 0.3);
            font-family: var(--font-mono);
            font-size: 12px;
            color: var(--hex-green);
        }
        .impersonation-banner .impersonation-content {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .impersonation-banner .impersonation-icon {
            width: 18px;
            height: 18px;
        }
        .impersonation-banner .impersonation-text {
            font-weight: 700;
            letter-spacing: 0.5px;
        }
        .impersonation-banner .impersonation-org-name {
            color: var(--osint-text);
            font-weight: 800;
        }
        .impersonation-banner .impersonation-exit-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 14px;
            font-size: 11px;
            font-weight: 800;
            font-family: var(--font-mono);
            letter-spacing: 0.5px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid var(--hex-green);
            color: var(--hex-green);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .impersonation-banner .impersonation-exit-btn:hover {
            background: var(--hex-green);
            color: #020202;
        }

        /* Top bar icon buttons (theme, density) - center icons in circle */
        .topbar-icon-btn {
            flex-shrink: 0;
        }
        .topbar-icon-btn .topbar-icon,
        .topbar-icon-btn i,
        .topbar-icon-btn svg {
            display: block;
            width: 16px;
            height: 16px;
            margin: 0;
        }
        .topbar-icon-btn svg {
            flex-shrink: 0;
        }

        .nav-item {
            padding: 12px 14px;
            color: var(--osint-muted);
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            border-radius: 8px;
            transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
            display: flex;
            align-items: center;
            gap: 12px;
            position: relative;
            overflow: hidden;
            letter-spacing: 0.3px;
            border: 1px solid transparent;
        }

        [data-theme="light"] .nav-item {
            color: var(--nav-text, var(--osint-muted));
        }

        .nav-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%) scaleY(0);
            height: 60%;
            width: 3px;
            background: var(--hex-green);
            border-radius: 0 2px 2px 0;
            transition: transform 0.2s ease;
        }

        .nav-item i,
        .nav-item svg {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 20px !important;
            height: 20px !important;
            min-width: 20px !important;
            min-height: 20px !important;
            stroke-width: 2px !important;
            transition: opacity 0.2s ease, color 0.2s ease !important;
            opacity: 0.7 !important;
            flex-shrink: 0;
        }

        .nav-item:hover {
            background: var(--hex-green-dim);
            color: var(--osint-text);
            border-color: transparent;
        }

        [data-theme="light"] .nav-item:hover {
            color: var(--nav-text-hover, var(--osint-text));
        }

        .nav-item:hover i,
        .nav-item:hover svg {
            opacity: 1;
        }

        .nav-item.active {
            background: var(--hex-green-05);
            color: var(--hex-green);
            font-weight: 600;
            border-color: transparent;
        }

        .nav-item.active::before {
            transform: translateY(-50%) scaleY(1);
        }

        .nav-item.active i,
        .nav-item.active svg {
            opacity: 1;
            color: var(--hex-green);
        }

        .main-content {
            padding: 40px;
            overflow-y: auto;
            position: relative;
        }

        .tab-pane {
            display: none;
        }

        .tab-pane.active {
            display: block;
            animation: tabFadeIn 0.25s ease-out;
        }

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

        /* -------------------------------------------------------------------------- */
        /* PORTAL / LOGIN STYLES */
        /* -------------------------------------------------------------------------- */
        #loginPage {
            display: flex;
            height: 100vh;
            width: 100vw;
            z-index: 200;
            position: relative;
        }

        .login-left {
            flex: 1.2;
            background: var(--osint-bg);
            /* Use theme BG */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            border-right: 1px solid var(--glass-border);
        }

        .login-right {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 80px;
            background: var(--sidebar-bg);
            /* Use theme sidebar BG (white in light) */
            backdrop-filter: blur(40px);
        }

        .brand-huge {
            font-size: 72px;
            font-weight: 950;
            letter-spacing: -3px;
            color: var(--hex-green);
            text-shadow: 0 0 40px var(--hex-green-glow);
            margin-bottom: 5px;
            line-height: 1;
        }

        .brand-subtitle {
            font-family: var(--font-mono);
            color: var(--osint-muted);
            letter-spacing: 5px;
            font-size: 16px;
            text-transform: uppercase;
        }

        .login-form {
            max-width: 400px;
        }

        .login-form h2 {
            font-size: 32px;
            margin-bottom: 8px;
            font-weight: 700;
            color: var(--osint-text);
            /* Ensure visible in light mode */
        }

        .login-form p {
            color: var(--osint-muted);
            margin-bottom: 40px;
        }

        /* -------------------------------------------------------------------------- */
        /* TACTICAL MARKDOWN STYLES (AI CHAT) */
        /* -------------------------------------------------------------------------- */
        .markdown-body h3 {
            font-family: 'Space Grotesk', sans-serif;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-size: 12px;
            color: var(--hex-blue);
            border-bottom: 1px solid var(--glass-border);
            padding-bottom: 5px;
            margin-top: 20px;
            margin-bottom: 10px;
        }

        .markdown-body p {
            margin-bottom: 10px;
            color: var(--osint-text);
        }

        .markdown-body strong {
            color: var(--hex-green);
            font-weight: 700;
        }

        .markdown-body blockquote {
            border-left: 3px solid var(--hex-orange);
            background: rgba(255, 165, 0, 0.05);
            padding: 10px 15px;
            margin: 15px 0;
            color: var(--osint-muted);
            font-style: italic;
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
        }

        .markdown-body ul {
            list-style: none;
            padding-left: 0;
        }

        .markdown-body li {
            position: relative;
            padding-left: 15px;
            margin-bottom: 5px;
        }

        .markdown-body li::before {
            content: '>';
            position: absolute;
            left: 0;
            color: var(--hex-blue);
            font-size: 10px;
            line-height: 1.8;
            font-family: 'JetBrains Mono', monospace;
        }

        .markdown-body code {
            font-family: 'JetBrains Mono', monospace;
            background: #111;
            color: var(--hex-purple);
            padding: 2px 5px;
            border-radius: 4px;
            font-size: 12px;
            border: 1px solid #333;
        }

        .markdown-body pre {
            background: #0d0d0d;
            border: 1px solid var(--glass-border);
            padding: 15px;
            border-radius: 6px;
            overflow-x: auto;
            margin: 15px 0;
        }

        .markdown-body pre code {
            background: transparent;
            color: var(--osint-text);
            border: none;
            padding: 0;
        }



        .field {
            margin-bottom: 24px;
        }

        .field label {
            display: block;
            font-family: var(--font-mono);
            font-size: 13px;
            color: var(--hex-green);
            margin-bottom: 10px;
            text-transform: uppercase;
            font-weight: 800;
        }

        .field input {
            width: 100%;
            background: var(--glass-bg);
            /* Adaptive BG */
            border: 1px solid var(--glass-border);
            padding: 15px;
            color: var(--osint-text);
            /* FIXED */
            border-radius: var(--radius-sm);
            font-family: var(--font-mono);
            transition: var(--transition-premium);
        }

        .field input:focus {
            border-color: var(--hex-green);
            background: var(--hex-green-dim);
            box-shadow: 0 0 20px var(--hex-green-dim);
            outline: none;
        }


        #dashboardPage {
            transition: grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        #dashboardPage.sidebar-collapsed {
            --sidebar-width: 80px;
        }

        #dashboardPage.sidebar-collapsed .logo-text,
        #dashboardPage.sidebar-collapsed .nav-text {
            display: none;
        }

        #dashboardPage.sidebar-collapsed .sidebar {
            padding: 24px 10px;
            align-items: center;
        }

        #dashboardPage.sidebar-collapsed .logo {
            justify-content: center !important;
            gap: 0 !important;
            margin-right: 0 !important;
            width: 100%;
        }

        #dashboardPage.sidebar-collapsed .logo i,
        #dashboardPage.sidebar-collapsed .logo svg {
            width: 32px !important;
            height: 32px !important;
            margin: 0 !important;
        }

        #dashboardPage.sidebar-collapsed .nav-item {
            padding: 16px 0;
            justify-content: center;
            width: 100%;
        }

        #dashboardPage.sidebar-collapsed .nav-item i,
        #dashboardPage.sidebar-collapsed .nav-item svg {
            width: 24px;
            height: 24px;
        }

        #dashboardPage.sidebar-collapsed .toggle-btn {
            position: absolute;
            top: 25px;
            right: -12px;
            background: var(--sidebar-bg);
            border: 1px solid var(--glass-border);
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 110;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        }

        #dashboardPage.sidebar-collapsed .toggle-btn i {
            width: 14px;
            height: 14px;
        }

        /* STATUS BAR & UTILS */
        .status-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 40px;
            background: var(--sidebar-bg);
            border-top: 1px solid var(--glass-border);
            padding: 0 30px;
            font-size: 11px;
            font-family: var(--font-mono);
            color: var(--osint-muted);
            display: flex;
            align-items: center;
            justify-content: space-between;
            z-index: 100;
            letter-spacing: 1.5px;
            text-transform: uppercase;
        }

        .badge {
            background: var(--hex-green-dim);
            color: var(--hex-green);
            padding: 4px 10px;
            font-size: 10px;
            font-weight: 800;
            border-radius: var(--radius-xs);
            font-family: var(--font-mono);
        }

        #loader {
            width: 18px;
            height: 18px;
            border: 2px solid var(--hex-green-dim);
            border-top-color: var(--hex-green);
            border-radius: 50%;
            animation: spin 0.8s infinite linear;
        }

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



        /* UTILITY CLASSES - TYPOGRAPHY & COLORS */
        .text-xs {
            font-size: 10px;
        }

        .text-sm {
            font-size: 13px;
        }

        .text-md {
            font-size: 14px;
        }

        .text-lg {
            font-size: 16px;
        }

        .text-xl {
            font-size: 18px;
        }

        .text-2xl {
            font-size: 24px;
        }

        .text-center {
            text-align: center;
        }

        .text-3xl {
            font-size: 32px;
        }

        .text-4xl {
            font-size: 42px;
        }

        .p-10 {
            padding: 40px;
        }

        .mb-4 {
            margin-bottom: 16px;
        }

        .mb-10 {
            margin-bottom: 40px;
        }

        .border-l-brand {
            border-left-width: 6px;
            border-left-style: solid;
        }

        .border-orange {
            border-color: var(--hex-orange);
        }

        .border-blue {
            border-color: var(--hex-blue);
        }

        .border-green {
            border-color: var(--hex-green);
        }

        .bg-gradient-orange {
            background: linear-gradient(90deg, rgba(255, 153, 51, 0.05), transparent);
        }

        .bg-gradient-blue {
            background: linear-gradient(90deg, rgba(51, 153, 255, 0.05), transparent);
        }

        .bg-gradient-green {
            background: linear-gradient(90deg, rgba(0, 255, 65, 0.05), transparent);
        }

        .bg-gradient-purple {
            background: linear-gradient(90deg, rgba(128, 90, 213, 0.05), transparent);
        }

        .border-purple {
            border-color: var(--hex-purple);
        }

        .font-mono {
            font-family: var(--font-mono);
        }

        .font-brand {
            font-family: var(--font-brand);
        }

        .font-bold {
            font-weight: 700;
        }

        .font-xbold {
            font-weight: 800;
        }

        .font-black {
            font-weight: 950;
        }

        .tracking-wide {
            letter-spacing: 1px;
        }

        .tracking-wider {
            letter-spacing: 2px;
        }

        .tracking-widest {
            letter-spacing: 4px;
        }

        .uppercase {
            text-transform: uppercase;
        }

        .text-muted {
            color: var(--osint-muted);
        }

        .text-primary {
            color: var(--osint-text);
        }

        .text-hex-green {
            color: var(--hex-green);
        }

        .text-hex-orange {
            color: var(--hex-orange);
        }

        .text-hex-blue {
            color: var(--hex-blue);
        }

        .text-hex-red {
            color: var(--hex-red);
        }

        .text-hex-purple {
            color: var(--hex-purple);
        }

        .bg-glass {
            background: var(--glass-bg);
        }

        /* Compliance Posture alignment */
        #compliancePostureCard .grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
        @media (min-width: 640px) {
            #compliancePostureCard .grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .bg-pagination {
            background: var(--pagination-bg);
        }

        /* STANDARDIZED TABLE STYLES */
        .cyber-table {
            width: 100%;
            border-collapse: collapse;
            font-family: var(--font-mono);
        }

        .cyber-table th {
            padding: 20px;
            text-align: left;
            font-size: var(--font-size-sm);
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--osint-muted);
            border-bottom: 2px solid var(--glass-border);
        }

        .cyber-table.header-orange th {
            color: var(--hex-orange);
            background: rgba(255, 153, 51, 0.05);
            border-color: rgba(255, 153, 51, 0.1);
        }

        .cyber-table.header-blue th {
            color: var(--hex-blue);
            background: rgba(51, 153, 255, 0.05);
            border-color: rgba(51, 153, 255, 0.1);
        }

        .cyber-table.header-green th {
            color: var(--hex-green);
            background: rgba(0, 255, 65, 0.05);
            border-color: rgba(0, 255, 65, 0.1);
        }

        .cyber-table.header-red th {
            color: var(--hex-red);
            background: rgba(255, 0, 0, 0.05);
            border-color: rgba(255, 0, 0, 0.1);
        }

        .cyber-table td {
            padding: 15px 20px;
            font-size: var(--font-size-body);
            border-bottom: 1px solid var(--glass-border);
            color: var(--osint-text);
        }

        .cyber-table tr:hover td {
            background: var(--osint-white-05);
        }

        /* STANDARDIZED PAGINATION */
        .pagination-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 20px;
            border-top: 1px solid var(--glass-border);
        }

        .btn-pagination {
            height: 40px;
            padding: 0 20px;
            font-family: var(--font-mono);
            font-size: 11px;
            font-weight: 950;
            letter-spacing: 1px;
            text-transform: uppercase;
            background: var(--btn-page-bg);
            color: var(--btn-page-text);
            border: 1px solid var(--btn-page-border);
            cursor: pointer;
            transition: all 0.2s;
            border-radius: var(--radius-xs);
        }

        .btn-pagination:hover:not(:disabled) {
            border-color: var(--btn-page-hover-border);
            color: var(--btn-page-hover-text);
        }

        .btn-pagination:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .badge {
            background: var(--hex-green-dim);
            border: 1px solid var(--hex-green);
            color: var(--hex-green);
            padding: 5px 12px;
            font-size: 12px;
            font-weight: 800;
            border-radius: 4px;
            font-family: var(--font-mono);
            letter-spacing: 0.5px;
        }

        #loader {
            display: none;
            width: 22px;
            height: 22px;
            border: 2px solid var(--hex-green-dim);
            border-top-color: var(--hex-green);
            border-radius: 50%;
            animation: spin 0.8s infinite linear;
        }

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

        /* TABLES & LISTS */
        .asset-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0 8px;
        }

        .asset-table th {
            text-align: left;
            padding: 18px 20px;
            font-size: 13px;
            text-transform: uppercase;
            color: var(--osint-muted);
            font-weight: 800;
            letter-spacing: 1.5px;
            font-family: var(--font-mono);
        }

        .asset-table td {
            padding: 20px;
            background: var(--osint-white-02);
            border-top: 1px solid var(--glass-border);
            border-bottom: 1px solid var(--glass-border);
            font-size: 15px;
            font-family: var(--font-mono);
            color: var(--osint-text);
        }

        .asset-table tr td:first-child {
            border-left: 1px solid var(--glass-border);
            border-top-left-radius: var(--radius-sm);
            border-bottom-left-radius: var(--radius-sm);
        }

        .asset-table tr td:last-child {
            border-right: 1px solid var(--glass-border);
            border-top-right-radius: var(--radius-sm);
            border-bottom-right-radius: var(--radius-sm);
        }

        .asset-table tr:hover td {
            background: var(--pagination-bg);
            border-color: var(--glass-border);
            color: var(--osint-text);
            /* FIXED */
        }

        .status-badge {
            padding: 4px 10px;
            border-radius: var(--radius-sm);
            font-size: 12px;
            font-weight: 800;
            font-family: 'JetBrains Mono';
            letter-spacing: 0.5px;
        }

        .status-200 {
            background: var(--hex-green);
            color: #000;
        }

        .status-error {
            background: #ff3333;
            color: var(--osint-white);
        }

        .ssl-valid {
            color: var(--hex-green);
        }

        .ssl-expired {
            color: #ffbb33;
        }

        .ssl-none {
            color: #888;
        }

        .ssl-error {
            color: #ff3333;
        }

        .ssl-pending {
            color: var(--osint-muted);
            font-style: italic;
        }

        .playbook-cell {
            cursor: pointer;
            transition: all 0.2s;
        }

        .playbook-badge {
            display: inline-block;
            border: 1px solid var(--glass-border);
            padding: 6px 12px;
            border-radius: 4px;
            background: var(--osint-white-05);
            color: var(--osint-muted);
            font-family: var(--font-mono);
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.5px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .playbook-cell:hover .playbook-badge {
            border-color: var(--hex-green);
            color: var(--hex-green);
            background: var(--hex-green-05);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px var(--hex-green-015);
        }

        .findings-table {
            width: 100%;
            border-collapse: collapse;
        }

        .findings-table th {
            text-align: left;
            padding: 20px;
            font-size: 14px;
            text-transform: uppercase;
            color: var(--osint-muted);
            border-bottom: 1px solid var(--glass-border);
            font-weight: 800;
            letter-spacing: 1.5px;
        }

        .findings-table td {
            padding: 20px;
            border-bottom: 1px solid var(--glass-border);
            font-size: 15px;
            background: var(--pagination-bg);
            font-family: 'JetBrains Mono', monospace;
        }

        .sidebar .toggle-btn {
            cursor: pointer;
            color: var(--osint-muted);
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.2s ease, background 0.2s ease;
        }

        .sidebar .toggle-btn:hover {
            color: var(--hex-green);
            background: var(--hex-green-dim);
        }

        .sidebar .toggle-btn i,
        .sidebar .toggle-btn svg {
            width: 20px !important;
            height: 20px !important;
        }

        .nav-text {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .progress-container {
            width: 100%;
            height: 4px;
            background: var(--pagination-bg);
            border-radius: 2px;
            margin-top: 8px;
            overflow: hidden;
        }

        .progress-bar {
            height: 100%;
            background: var(--osint-green);
            width: 0%;
            transition: width 0.5s ease;
            box-shadow: 0 0 10px var(--hex-green-glow);
        }

        .seed-row.active {
            background: var(--hex-green-dim) !important;
            border-left: 2px solid var(--osint-green) !important;
            animation: scan-pulse 2s infinite;
        }

        @keyframes scan-pulse {
            0% {
                background: var(--hex-green-dim);
            }

            50% {
                background: hsla(145, 100%, 50%, 0.15);
            }

            100% {
                background: var(--hex-green-03);
            }
        }

        .percentage-text {
            font-size: 12px;
            color: var(--hex-green);
            font-weight: 800;
            margin-left: 8px;
        }

        .pagination-controls {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-top: 30px;
            padding: 20px;
            background: var(--pagination-bg);
            border-radius: var(--radius-md);
            border: 1px solid var(--glass-border);
        }

        .btn-page {
            background: var(--btn-page-bg);
            border: 1px solid var(--btn-page-border);
            color: var(--btn-page-text);
            padding: 8px 16px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            cursor: pointer;
            border-radius: var(--radius-sm);
            transition: var(--transition-smooth);
            font-weight: 700;
        }

        .btn-page:hover:not(:disabled) {
            border-color: var(--btn-page-hover-border);
            color: var(--btn-page-hover-text);
        }

        .btn-page:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .page-info {
            font-size: 13px;
            color: var(--osint-muted);
            font-family: 'JetBrains Mono', monospace;
        }

        .table-responsive {
            max-height: 500px;
            overflow-y: auto;
            position: relative;
        }

        /* FILTER CARD ACTIVE STATE */
        .filter-card.active,
        .filter-card-asset.active {
            background: var(--osint-green-dim) !important;
            border-color: var(--osint-green) !important;
            box-shadow: 0 0 25px var(--hex-green-015) !important;
            transform: translateY(-8px);
        }

        .filter-card.active::before,
        .filter-card-asset.active::before {
            opacity: 1;
            background: var(--osint-green);
        }

        .filter-card#card-active.active {
            border-color: var(--osint-red) !important;
            background: var(--osint-red-dim) !important;
            box-shadow: 0 0 25px var(--osint-red-015) !important;
        }

        .filter_card#card-active.active::before {
            background: var(--osint-red);
        }

        /* HEXASHIELD BRAND IDENTITY & ANIMATIONS */
        .hex-logo-container {
            width: 120px;
            height: 120px;
            position: relative;
            margin: 0 auto 35px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hex-shield {
            width: 90px;
            height: 90px;
            background: linear-gradient(135deg, var(--hex-green) 0%, #00cc33 100%);
            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 30px var(--hex-green-04), inset 0 0 20px var(--osint-white-01);
            animation: hex-breathing 3s ease-in-out infinite;
            position: relative;
            z-index: 2;
        }

        .hex-shield::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, transparent 0%, var(--osint-white-02) 50%, transparent 100%);
            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
            animation: shimmer 3s ease-in-out infinite;
        }

        .hex-shield i {
            color: #000;
            width: 40px;
            height: 40px;
            filter: drop-shadow(0 2px 4px var(--osint-black-03));
        }

        .hex-scanner {
            position: absolute;
            width: 110px;
            height: 110px;
            border: 2px solid var(--hex-green-03);
            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
            animation: hex-rotate 12s linear infinite;
        }

        .hex-scanner::before {
            content: '';
            position: absolute;
            width: 120px;
            height: 120px;
            border: 1px solid var(--hex-green-015);
            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
            left: -5px;
            top: -5px;
            animation: hex-rotate 18s linear infinite reverse;
        }

        @keyframes hex-rotate {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        @keyframes hex-breathing {

            0%,
            100% {
                transform: scale(1);
                box-shadow: 0 0 30px var(--hex-green-04), inset 0 0 20px var(--osint-white-01);
            }

            50% {
                transform: scale(1.03);
                box-shadow: 0 0 50px var(--hex-green-06), inset 0 0 25px var(--osint-white-015);
            }
        }

        @keyframes shimmer {

            0%,
            100% {
                opacity: 0.3;
                transform: translateX(-100%);
            }

            50% {
                opacity: 0.6;
                transform: translateX(100%);
            }
        }

        #loginPage {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--osint-bg);
            z-index: 9999;
        }

        .login-glass-card {
            background: var(--glass-bg);
            backdrop-filter: blur(30px);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 60px 50px;
            width: 100%;
            max-width: 480px;
            box-shadow: 0 30px 60px var(--osint-black-06), 0 0 0 1px var(--hex-green-01) inset;
            text-align: center;
            animation: card-entrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
            position: relative;
        }

        .login-glass-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, transparent, var(--hex-green), transparent);
            border-radius: 16px 16px 0 0;
        }

        @keyframes card-entrance {
            from {
                transform: translateY(30px) rotateX(10deg);
                opacity: 0;
            }

            to {
                transform: translateY(0) rotateX(0deg);
                opacity: 1;
            }
        }

        .login-brand-meta {
            font-size: 11px;
            font-family: var(--font-mono);
            color: var(--hex-green-07);
            letter-spacing: 3px;
            margin-bottom: 15px;
            text-transform: uppercase;
            font-weight: 700;
        }

        .login-brand-title {
            font-family: var(--font-brand);
            font-size: 42px;
            font-weight: 950;
            letter-spacing: 2px;
            margin-bottom: 8px;
            background: linear-gradient(135deg, var(--osint-text) 0%, var(--hex-green) 50%, var(--osint-text) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 30px var(--hex-green-03);
            animation: title-glow 3s ease-in-out infinite;
        }

        @keyframes title-glow {

            0%,
            100% {
                filter: brightness(1);
            }

            50% {
                filter: brightness(1.2);
            }
        }

        .login-brand-tagline {
            font-size: 12px;
            color: var(--osint-muted);
            font-family: var(--font-mono);
            margin-bottom: 50px;
            letter-spacing: 1px;
        }

        /* TOAST NOTIFICATIONS */
        .toast-notification {
            position: fixed;
            top: 24px;
            right: 24px;
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            border: 1px solid var(--hex-green);
            color: var(--hex-green);
            padding: 16px 24px;
            border-radius: var(--radius-sm);
            z-index: 10000;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 10px 40px var(--osint-black-04);
            font-family: var(--font-mono);
            font-size: 13px;
            transform: translateX(120%);
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .toast-notification.show {
            transform: translateX(0);
        }

        /* SIMULATION ANIMATIONS */
        .sim-pulse {
            animation: sim-pulse 1.5s infinite;
        }

        @keyframes sim-pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
            }

            70% {
                box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
            }
        }

        .sim-progress-track {
            width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 2px;
            margin-top: 15px;
            overflow: hidden;
            position: relative;
        }

        .sim-progress-bar {
            height: 100%;
            background: var(--hex-red);
            width: 0%;
            transition: width 0.3s ease;
            box-shadow: 0 0 10px var(--hex-red);
            position: relative;
        }

        .sim-progress-bar::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
            transform: translateX(-100%);
            animation: shimmer 1s infinite;
        }

        @keyframes text-flicker {
            0% {
                opacity: 1;
            }

            5% {
                opacity: 0.5;
            }

            10% {
                opacity: 1;
            }

            15% {
                opacity: 1;
            }

            20% {
                opacity: 0.8;
            }

            100% {
                opacity: 1;
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* WAR ROOM HUD STYLES */
        .war-room-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(15px);
            z-index: 20000;
            display: none;
            /* Toggled via JS */
            align-items: center;
            justify-content: center;
            padding: 40px;
            animation: fadeIn 0.3s ease-out;
        }

        .war-room-container {
            width: 100%;
            height: 100%;
            max-width: 1600px;
            display: grid;
            grid-template-columns: 350px 1fr 350px;
            gap: 20px;
            position: relative;
        }

        .war-panel {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
            position: relative;
        }

        .war-panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--hex-green), transparent);
            opacity: 0.5;
        }

        .war-header {
            padding: 15px 20px;
            border-bottom: 1px solid var(--glass-border);
            font-family: var(--font-mono);
            font-size: 11px;
            letter-spacing: 2px;
            color: var(--hex-green);
            text-transform: uppercase;
            font-weight: 800;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--hex-green-05);
        }

        .war-content {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            color: var(--osint-text);
            font-family: var(--font-mono);
            font-size: 13px;
        }

        /* PROTOCOL MANIFEST */
        .protocol-meta-row {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid var(--glass-border);
        }

        .protocol-label {
            color: var(--osint-muted);
            font-size: 11px;
        }

        .protocol-value {
            color: var(--osint-text);
            font-weight: 700;
            text-align: right;
        }

        /* TACTICAL GRAPH (CENTER) */
        .tactical-grid {
            background-image:
                linear-gradient(var(--hex-green-05) 1px, transparent 1px),
                linear-gradient(90deg, var(--hex-green-05) 1px, transparent 1px);
            background-size: 30px 30px;
            width: 100%;
            height: 100%;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .target-node {
            width: 120px;
            height: 120px;
            border: 2px solid var(--hex-red);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 50px rgba(255, 51, 51, 0.3);
            position: relative;
            animation: pulse-red 2s infinite;
        }

        .target-node.healed {
            border-color: var(--hex-green);
            box-shadow: 0 0 50px var(--hex-green-03);
            animation: pulse-green 2s infinite;
        }

        .target-node i {
            width: 40px;
            height: 40px;
            color: var(--hex-red);
            transition: 0.5s;
        }

        .target-node.healed i {
            color: var(--hex-green);
        }

        @keyframes pulse-red {
            0% {
                box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.4);
            }

            70% {
                box-shadow: 0 0 0 20px rgba(255, 51, 51, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(255, 51, 51, 0);
            }
        }

        @keyframes pulse-green {
            0% {
                box-shadow: 0 0 0 0 var(--hex-green-04);
            }

            70% {
                box-shadow: 0 0 0 20px rgba(0, 255, 65, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(0, 255, 65, 0);
            }
        }

        /* COMMAND LOG */
        .cmd-log-entry {
            margin-bottom: 12px;
            font-size: 12px;
            line-height: 1.5;
            border-left: 2px solid;
            padding-left: 10px;
        }

        .cmd-log-entry.sys {
            border-color: var(--osint-muted);
            color: var(--osint-muted);
        }

        .cmd-log-entry.action {
            border-color: var(--hex-orange);
            color: var(--hex-orange);
        }

        .cmd-log-entry.success {
            border-color: var(--hex-green);
            color: var(--hex-green);
        }

        .cmd-log-entry.fail {
            border-color: var(--hex-red);
            color: var(--hex-red);
        }

        /* ACTION BAR */
        .war-actions {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 20px;
            background: rgba(0, 0, 0, 0.8);
            padding: 15px 30px;
            border: 1px solid var(--glass-border);
            border-radius: 50px;
            backdrop-filter: blur(20px);
        }

        /* MODAL SYSTEM STANDARDIZATION */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(10px);
            z-index: 10000;
            display: none;
            /* Flexing via JS */
            align-items: center;
            justify-content: center;
            padding: 20px;
            animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .glass-panel {
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-md);
            box-shadow: var(--card-shadow), inset 0 0 40px rgba(255, 255, 255, 0.02);
            backdrop-filter: blur(40px);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .panel-header {
            padding: 24px 30px;
            border-bottom: 1px solid var(--glass-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 255, 255, 0.02);
        }

        .panel-title {
            font-family: var(--font-brand);
            font-weight: 800;
            font-size: 1.1rem;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .panel-content {
            padding: 30px;
            overflow-y: auto;
            max-height: 80vh;
        }

        .icon-btn {
            background: transparent;
            border: none;
            color: var(--osint-muted);
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 5px;
            border-radius: 50%;
        }

        .icon-btn:hover {
            color: var(--osint-text);
            background: var(--osint-white-05);
        }

        /* PREMIUM BUTTON STYLES */
        .btn-hex {
            background: var(--hex-green-dim);
            border: 1px solid var(--hex-green);
            color: var(--hex-green);
            padding: 10px 20px;
            font-family: var(--font-mono);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 2px;
            text-transform: uppercase;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .btn-hex:hover:not(:disabled) {
            background: var(--hex-green);
            color: var(--osint-black);
            box-shadow: 0 0 20px var(--hex-green-glow);
            transform: translateY(-2px);
        }

        .btn-hex:active:not(:disabled) {
            transform: translateY(0);
        }

        .btn-hex-red {
            background: var(--hex-red-dim);
            border: 1px solid var(--hex-red);
            color: var(--hex-red);
            padding: 10px 20px;
            font-family: var(--font-mono);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 2px;
            text-transform: uppercase;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .btn-hex-red:hover:not(:disabled) {
            background: var(--hex-red);
            color: var(--osint-white);
            box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
            transform: translateY(-2px);
        }

        .btn-hex-red:active:not(:disabled) {
            transform: translateY(0);
        }

        .btn-hex:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            border-color: var(--osint-muted);
            color: var(--osint-muted);
        }

        /* Confirm Modal Specifics */
        #customConfirmModal .glass-panel {
            animation: modalScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes modalScaleUp {
            from {
                opacity: 0;
                transform: scale(0.9) translateY(20px);
            }

            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        /* ROLE SELECTION NODES */
        .role-node {
            background: var(--osint-black-04);
            border: 1px solid var(--glass-border);
            padding: 15px;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            align-items: center;
            gap: 15px;
            position: relative;
            overflow: hidden;
        }

        .role-node:hover {
            border-color: var(--osint-white-02);
            background: var(--osint-white-05);
            transform: translateX(5px);
        }

        .role-node.selected {
            border-color: var(--hex-blue);
            background: var(--hex-blue-dim);
            box-shadow: 0 0 15px var(--hex-blue-dim);
        }

        .role-node.selected::after {
            content: 'SELECTED';
            position: absolute;
            top: 5px;
            right: 10px;
            font-size: 8px;
            font-family: var(--font-mono);
            color: var(--hex-blue);
            font-weight: 800;
            letter-spacing: 1px;
        }

        .role-info h4 {
            font-size: 13px;
            font-weight: 800;
            color: var(--osint-text);
            margin-bottom: 2px;
            text-transform: uppercase;
        }

        .role-info p {
            font-size: 10px;
            color: var(--osint-muted);
            line-height: 1.4;
        }

        .role-check {
            width: 18px;
            height: 18px;
            border: 2px solid var(--glass-border);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .role-node.selected .role-check {
            background: var(--hex-blue);
            border-color: var(--hex-blue);
        }

        /* Brand Exposure: professional insights layout */
        .dork-breakdown-table tbody tr {
            border-bottom: 1px solid var(--glass-border);
            transition: background 0.15s ease;
        }
        .dork-breakdown-table tbody tr:last-child {
            border-bottom: none;
        }
        .dork-breakdown-table tbody tr:hover {
            background: rgba(255, 255, 255, 0.03);
        }
        .dork-breakdown-table tbody tr.dork-row-active {
            background: rgba(255, 136, 0, 0.06);
            border-left: 3px solid var(--hex-orange);
        }
        .dork-breakdown-table tbody tr td {
            padding: 12px 24px;
            font-size: 13px;
            color: var(--osint-text);
        }
        .dork-breakdown-table tbody tr td:first-child {
            font-weight: 500;
        }
        .dork-breakdown-table tbody tr td:last-child {
            font-variant-numeric: tabular-nums;
            font-weight: 600;
        }