/* ============================================
   VANTAPRISM — Global Theme Stylesheet
   Elite Edition — v2.0
   ============================================ */

/* === Global Scrollbar === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 69, 0, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 69, 0, 0.6);
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 69, 0, 0.3) #000;
    scroll-behavior: auto;
}

/* === Particle Network Canvas === */
#particle-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* === Section Reveal Animations === */
.section-reveal {
    opacity: 0.28;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Hero Entrance Animation === */
.hero-animate {
    opacity: 0;
    transform: translateY(24px);
}

/* === Gradient Shimmer on Headline Text === */
.shimmer-text {
    background: linear-gradient(90deg,
            #FF4500 0%,
            #FF6B35 25%,
            #FFAB76 50%,
            #FF6B35 75%,
            #FF4500 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* === Typewriter Cursor === */
.typewriter-cursor::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #FF4500;
    margin-left: 2px;
    animation: cursor-blink 0.8s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes cursor-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* === HUD Floating Labels === */
.hud-float {
    position: absolute;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.12);
    pointer-events: none;
    will-change: transform;
    z-index: 5;
}

.hud-float.hud-bright {
    color: rgba(255, 69, 0, 0.2);
}

/* === CTA Glitch Scan Effect === */
.cta-glitch {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cta-glitch::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(255, 69, 0, 0.4), transparent);
    transition: none;
}

.cta-glitch:hover::after {
    animation: scan 0.5s linear infinite;
}

@keyframes scan {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

/* === Prism Hover Effect === */
.prism-hover {
    transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.prism-hover:hover {
    box-shadow: 0 0 40px -10px rgba(255, 69, 0, 0.15), 0 0 60px -10px rgba(255, 69, 0, 0.08);
    border-color: rgba(255, 69, 0, 0.2);
    transform: translateY(-2px);
}

/* === Navbar === */
#main-header {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-header.navbar-scrolled {
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom-color: rgba(255, 69, 0, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Mobile Menu */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255, 69, 0, 0.15);
    z-index: 100;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 5rem 2rem 2rem;
}

.mobile-menu-drawer.mobile-menu-open {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s;
}

.mobile-menu-overlay.mobile-overlay-visible {
    opacity: 1;
    visibility: visible;
}

.hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
}

/* === Active Nav Link === */
.nav-link.active {
    color: #FF4500;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

/* === Scanline Overlay === */
.scanline-overlay {
    background: linear-gradient(to bottom, transparent 50%, rgba(255, 69, 0, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

/* === Marquee / Scroll Animations === */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.marquee-container:hover .animate-scroll {
    animation-play-state: paused;
}

/* === Log Scroll Animation === */
@keyframes log-scroll {
    0% {
        transform: translateY(0);
    }

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

.animate-log-scroll {
    animation: log-scroll 30s linear infinite;
}

/* === Glow Effects === */
.soft-glow-cyan {
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.soft-glow-primary {
    text-shadow: 0 0 20px rgba(255, 69, 0, 0.5), 0 0 40px rgba(255, 69, 0, 0.2);
}

/* === Prismatic Section Blends === */
.prismatic-blend-orange {
    background: linear-gradient(to bottom, transparent, rgba(255, 69, 0, 0.05), transparent);
}

.prismatic-blend-cyan {
    background: linear-gradient(to bottom, transparent, rgba(0, 242, 255, 0.05), transparent);
}

/* === Section Separator === */
.section-separator {
    height: 150px;
    width: 100%;
    pointer-events: none;
}

/* === Bento Tile === */
.bento-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background-color: rgb(255 255 255 / 0.05);
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-tile:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 69, 0, 0.15);
}

/* === 3D Tilt Card Base === */
.tilt-card {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    will-change: transform;
    transform-style: preserve-3d;
}

/* === High-Density Dashboard Panels === */
.dashboard-page {
    --dp-bg-0: #050912;
    --dp-bg-1: rgba(15, 23, 42, 0.72);
    --dp-bg-2: rgba(15, 23, 42, 0.86);
    --dp-border: rgba(71, 85, 105, 0.52);
    --dp-border-strong: rgba(100, 116, 139, 0.74);
    --dp-text-1: rgba(241, 245, 249, 0.94);
    --dp-text-2: rgba(203, 213, 225, 0.82);
    --dp-text-3: rgba(148, 163, 184, 0.76);
    --dp-text-4: rgba(148, 163, 184, 0.58);
}

.dashboard-page main::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 8%, rgba(255, 69, 0, 0.1), transparent 36%),
        radial-gradient(circle at 86% 14%, rgba(56, 189, 248, 0.07), transparent 38%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.85));
    pointer-events: none;
    z-index: -1;
}

.dashboard-surface {
    background: var(--dp-bg-1);
    border: 1px solid rgba(100, 116, 139, 0.52);
    border-radius: 0.75rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.34), inset 0 1px 0 rgba(148, 163, 184, 0.07);
}

.dashboard-modal-backdrop {
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dashboard-modal-shell {
    background: rgba(2, 6, 23, 0.86);
    border: 1px solid rgba(100, 116, 139, 0.58);
    border-radius: 0.9rem;
    box-shadow: 0 36px 96px rgba(2, 6, 23, 0.78), inset 0 1px 0 rgba(148, 163, 184, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.dashboard-modal-shell-wide,
.dashboard-modal-shell-xl {
    border-color: rgba(100, 116, 139, 0.68);
    box-shadow: 0 44px 116px rgba(2, 6, 23, 0.82), inset 0 1px 0 rgba(148, 163, 184, 0.08);
}

/* === Dashboard Scrollbars === */
#victim-list,
#users-dataset-cards,
#assets-list,
#assets-detail-panel,
#ai-analysis-content,
#ai-chat-history,
#file-explorer-browser,
#file-preview-submodal-content,
#analyze-file-content,
#file-ai-chat-history,
#general-ai-files-grid,
#file-ai-suggested-prompts,
#detail-panel .overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.72) transparent;
}

#victim-list::-webkit-scrollbar,
#users-dataset-cards::-webkit-scrollbar,
#assets-list::-webkit-scrollbar,
#assets-detail-panel::-webkit-scrollbar,
#ai-analysis-content::-webkit-scrollbar,
#ai-chat-history::-webkit-scrollbar,
#file-explorer-browser::-webkit-scrollbar,
#file-preview-submodal-content::-webkit-scrollbar,
#analyze-file-content::-webkit-scrollbar,
#file-ai-chat-history::-webkit-scrollbar,
#general-ai-files-grid::-webkit-scrollbar,
#file-ai-suggested-prompts::-webkit-scrollbar,
#detail-panel .overflow-y-auto::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

#victim-list::-webkit-scrollbar-track,
#users-dataset-cards::-webkit-scrollbar-track,
#assets-list::-webkit-scrollbar-track,
#assets-detail-panel::-webkit-scrollbar-track,
#ai-analysis-content::-webkit-scrollbar-track,
#ai-chat-history::-webkit-scrollbar-track,
#file-explorer-browser::-webkit-scrollbar-track,
#file-preview-submodal-content::-webkit-scrollbar-track,
#analyze-file-content::-webkit-scrollbar-track,
#file-ai-chat-history::-webkit-scrollbar-track,
#general-ai-files-grid::-webkit-scrollbar-track,
#file-ai-suggested-prompts::-webkit-scrollbar-track,
#detail-panel .overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
}

#victim-list::-webkit-scrollbar-thumb,
#users-dataset-cards::-webkit-scrollbar-thumb,
#assets-list::-webkit-scrollbar-thumb,
#assets-detail-panel::-webkit-scrollbar-thumb,
#ai-analysis-content::-webkit-scrollbar-thumb,
#ai-chat-history::-webkit-scrollbar-thumb,
#file-explorer-browser::-webkit-scrollbar-thumb,
#file-preview-submodal-content::-webkit-scrollbar-thumb,
#analyze-file-content::-webkit-scrollbar-thumb,
#file-ai-chat-history::-webkit-scrollbar-thumb,
#general-ai-files-grid::-webkit-scrollbar-thumb,
#file-ai-suggested-prompts::-webkit-scrollbar-thumb,
#detail-panel .overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.68);
    border-radius: 999px;
}

#victim-list::-webkit-scrollbar-thumb:hover,
#users-dataset-cards::-webkit-scrollbar-thumb:hover,
#assets-list::-webkit-scrollbar-thumb:hover,
#assets-detail-panel::-webkit-scrollbar-thumb:hover,
#ai-analysis-content::-webkit-scrollbar-thumb:hover,
#ai-chat-history::-webkit-scrollbar-thumb:hover,
#file-explorer-browser::-webkit-scrollbar-thumb:hover,
#file-preview-submodal-content::-webkit-scrollbar-thumb:hover,
#analyze-file-content::-webkit-scrollbar-thumb:hover,
#file-ai-chat-history::-webkit-scrollbar-thumb:hover,
#general-ai-files-grid::-webkit-scrollbar-thumb:hover,
#file-ai-suggested-prompts::-webkit-scrollbar-thumb:hover,
#detail-panel .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.9);
}

.dashboard-panel {
    background: var(--dp-bg-1);
    border: 1px solid var(--dp-border);
    transition: border-color 200ms ease, background-color 200ms ease, box-shadow 220ms ease;
    overflow: hidden;
}

.dashboard-card {
    background: var(--dp-bg-1);
    border: 1px solid var(--dp-border);
    transition: border-color 200ms ease, background-color 200ms ease, box-shadow 220ms ease;
    cursor: pointer;
    overflow: hidden;
}

.dashboard-card:hover {
    background: var(--dp-bg-2);
    border-color: rgba(255, 69, 0, 0.38);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.4);
}

.intel-surface-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(248, 250, 252, 0.45);
    padding: 0.55rem 0.8rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.intel-surface-tab:hover {
    color: rgba(248, 250, 252, 0.9);
    border-color: rgba(255, 69, 0, 0.32);
    background: rgba(255, 69, 0, 0.08);
    transform: translateX(1px);
}

.intel-surface-tab.is-active {
    color: #FF4500;
    border-color: rgba(255, 69, 0, 0.45);
    background: linear-gradient(90deg, rgba(255, 69, 0, 0.16), rgba(255, 69, 0, 0.04));
    box-shadow: inset 0 0 0 1px rgba(255, 69, 0, 0.15);
}

@media (max-width: 1279px) {
    .intel-surface-tab {
        white-space: nowrap;
        border-left: 2px solid transparent;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.02);
    }

    .intel-surface-tab.is-active {
        border-left-color: #FF4500;
        box-shadow: none;
    }
}

.dashboard-stat-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: -0.02em;
}

/* === Custom Minimal Scrollbar === */
.minimal-scrollbar::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.minimal-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.minimal-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.minimal-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 69, 0, 0.4);
}

.tilt-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 69, 0, 0.05);
}

/* === Testimonial Cards === */
.testimonial-card-v2 {
    position: relative;
    display: flex;
    height: 450px;
    width: 450px;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: space-between;
    border-width: 1px;
    border-color: rgb(255 255 255 / 0.05);
    background-color: rgb(10 10 10);
    padding: 3rem;
    transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card-v2:hover {
    border-color: rgba(255, 69, 0, 0.2);
    background-color: rgb(15 15 15);
}

/* === Initials Avatar === */
.initials-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #000;
    background: #FF4500;
    flex-shrink: 0;
}

/* === FAQ Accordion === */
.faq-item[open] .faq-icon {
    transform: rotate(180deg);
    color: #FF4500;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary {
    list-style: none;
}

/* === Dropdown === */
.dropdown-content {
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    margin-top: 0.5rem;
    width: 12rem;
    transform: translateY(-0.5rem);
    border: 1px solid rgb(255 255 255 / 0.1);
    background-color: rgb(0 0 0 / 0.9);
    opacity: 0;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-trigger:hover .dropdown-content {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
}

/* === Form Inputs (Contact Page) === */
/* Override Tailwind forms plugin resets */
.form-input-dark,
.form-input-dark[type='text'],
.form-input-dark[type='email'],
.form-input-dark[type='tel'],
.form-input-dark[type='password'],
input.form-input-dark {
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 0.875rem !important;
    height: 3.5rem !important;
    padding: 0 1.25rem !important;
    transition: all 300ms;
}

.form-input-dark::placeholder {
    color: rgba(255, 255, 255, 0.2) !important;
    opacity: 1 !important;
}

.form-input-dark:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.form-input-dark:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 69, 0, 0.5) !important;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.05) !important;
    outline: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
}

/* Padding overrides for inputs with icons */
.form-input-dark.px-4,
input.form-input-dark.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.form-input-dark.pr-4,
input.form-input-dark.pr-4 {
    padding-right: 1rem !important;
}

.form-input-dark.pl-10,
input.form-input-dark.pl-10 {
    padding-left: 2.5rem !important;
}

.form-input-dark.pr-10,
input.form-input-dark.pr-10 {
    padding-right: 2.5rem !important;
}

.form-input-dark.pl-12,
input.form-input-dark.pl-12 {
    padding-left: 3rem !important;
}

.form-input-dark.pr-12,
input.form-input-dark.pr-12 {
    padding-right: 3rem !important;
}

.form-select-dark,
select.form-select-dark {
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    height: 3.5rem !important;
    padding: 0 1.25rem !important;
    padding-right: 2.5rem !important;
    cursor: pointer;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: all 300ms;
}

.form-select-dark option {
    background: #000 !important;
    color: #fff !important;
}

.form-select-dark:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.form-select-dark:focus {
    border-color: rgba(255, 69, 0, 0.5) !important;
    outline: none !important;
    box-shadow: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
}

.form-textarea-dark,
textarea.form-textarea-dark {
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 0.875rem !important;
    padding: 1rem 1.25rem !important;
    resize: none;
    transition: all 300ms;
}

.form-textarea-dark::placeholder {
    color: rgba(255, 255, 255, 0.2) !important;
    opacity: 1 !important;
}

.form-textarea-dark:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.form-textarea-dark:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 69, 0, 0.5) !important;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.05) !important;
    outline: none !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
}

/* === File Upload Drop Zone === */
.form-upload-zone {
    width: 100%;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    padding: 2rem;
    cursor: pointer;
    transition: all 300ms;
}

.form-upload-zone:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-upload-zone.drag-over {
    background-color: rgba(255, 69, 0, 0.05);
    border-color: rgba(255, 69, 0, 0.4);
}

.form-upload-zone.upload-accepted {
    border-color: rgba(34, 197, 94, 0.4);
    background-color: rgba(34, 197, 94, 0.03);
}

.form-upload-zone.upload-rejected {
    border-color: rgba(255, 0, 0, 0.4);
    background-color: rgba(255, 0, 0, 0.03);
}

/* === Upload Preview === */
.upload-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-preview img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-preview .remove-btn {
    margin-left: auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 300ms;
}

.upload-preview .remove-btn:hover {
    background-color: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
    color: #ff0000;
}

/* === Custom Checkbox === */
.form-checkbox-dark,
input[type='checkbox'].form-checkbox-dark {
    width: 18px !important;
    height: 18px !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0 !important;
    cursor: pointer;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: all 300ms;
    flex-shrink: 0;
    padding: 0 !important;
}

.form-checkbox-dark:checked,
input[type='checkbox'].form-checkbox-dark:checked {
    background-color: #FF4500 !important;
    border-color: #FF4500 !important;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='black' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e") !important;
    background-size: 100% 100% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.form-checkbox-dark:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.3) !important;
    --tw-ring-shadow: 0 0 #0000 !important;
    --tw-ring-offset-shadow: 0 0 #0000 !important;
}

/* === Password Strength Bar === */
.password-strength-bar {
    display: flex;
    gap: 4px;
    margin-top: 0.5rem;
}

.password-strength-bar .segment {
    height: 3px;
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 300ms;
}

.password-strength-bar.strength-1 .segment:nth-child(1) {
    background-color: #ff0000;
}

.password-strength-bar.strength-2 .segment:nth-child(-n+2) {
    background-color: #ff6600;
}

.password-strength-bar.strength-3 .segment:nth-child(-n+3) {
    background-color: #ffaa00;
}

.password-strength-bar.strength-4 .segment {
    background-color: #22c55e;
}

/* === Wizard Progress Bar === */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 1rem;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 16px;
    left: calc(1rem + 16px);
    right: calc(1rem + 16px);
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.wizard-step .step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #000;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.3);
    transition: all 300ms;
}

.wizard-step .step-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.2);
    transition: all 300ms;
    white-space: nowrap;
}

.wizard-step.active .step-number {
    border-color: #FF4500;
    color: #FF4500;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.3);
}

.wizard-step.active .step-label {
    color: #FF4500;
}

.wizard-step.completed .step-number {
    border-color: #22c55e;
    background: #22c55e;
    color: #000;
}

.wizard-step.completed .step-label {
    color: rgba(255, 255, 255, 0.5);
}

/* === Step Panels === */
.step-panel {
    display: none;
    opacity: 0;
    transition: opacity 300ms ease;
}

.step-panel.active {
    display: block;
    opacity: 1;
}

/* === Particle Background Overlay (replacing falling pattern) === */
.particle-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: radial-gradient(circle at 50% 50%, transparent 0, transparent 2px, rgba(0, 0, 0, 0.97) 2px);
    background-size: 6px 6px;
}

/* === Pre-Footer CTA Section === */
.cta-section-gradient {
    background:
        radial-gradient(ellipse 80% 50% at 50% 50%, rgba(255, 69, 0, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3), transparent);
}

.cta-border-glow {
    position: relative;
}

.cta-border-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 69, 0, 0.4), transparent);
}

.cta-border-glow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 69, 0, 0.4), transparent);
}

/* === Stat Growth Indicator === */
.stat-growth {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #22c55e;
    opacity: 0.7;
}

/* === Choropleth Heat Map === */
.choropleth-table-wrapper {
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 69, 0, 0.4) rgba(255, 255, 255, 0.05);
}

.choropleth-table-wrapper::-webkit-scrollbar {
    width: 4px;
}

.choropleth-table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.choropleth-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 69, 0, 0.4);
    border-radius: 2px;
}

.choropleth-table thead tr {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.choropleth-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 150ms;
    cursor: default;
}

.choropleth-table tbody tr:hover,
.choropleth-table tbody tr.highlight {
    background: rgba(255, 69, 0, 0.08);
}

.choropleth-table tbody tr.highlight td {
    color: #FF4500;
}

.choropleth-table td {
    font-size: 0.65rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: rgba(248, 250, 252, 0.7);
    padding: 0.35rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.choropleth-table td:first-child {
    color: rgba(255, 69, 0, 0.5);
    width: 28px;
    max-width: 28px;
}

.choropleth-table td.ct-infections,
.choropleth-table td.ct-share {
    text-align: right;
}

/* Tooltip */
.choropleth-tooltip {
    position: fixed;
    display: none;
    padding: 0.6rem 0.9rem;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 69, 0, 0.25);
    color: #f8fafc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.7rem;
    line-height: 1.6;
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
}

.choropleth-tooltip .ct-name {
    color: #FF4500;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.choropleth-tooltip .ct-val {
    color: rgba(248, 250, 252, 0.6);
}

/* SVG country hover */
#choropleth-map {
    cursor: crosshair;
}

/* === Cinematic Preloader === */
.preloader-active {
    overflow: hidden !important;
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.preloader-exit {
    animation: preloader-out 0.6s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}

@keyframes preloader-out {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

/* Prism logo fade/scale-in */
.preloader-prism {
    opacity: 0;
    transform: scale(0.85);
    animation: prism-fade-in 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes prism-fade-in {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.preloader-counter {
    font-family: 'Space Grotesk', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: #FF4500;
    letter-spacing: 0.1em;
    text-shadow: 0 0 30px rgba(255, 69, 0, 0.4);
}

.preloader-status {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0.2);
    transition: opacity 0.15s;
}

.preloader-bar {
    width: 200px;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.preloader-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #FF4500;
    transition: width 0.3s ease-out;
    box-shadow: 0 0 10px #FF4500;
}

/* === Live Threat Counter === */
#live-threat-bar {
    transition: background-color 0.25s, border-color 0.25s;
}

.live-threat-pulse {
    animation: live-threat-pulse 0.5s ease-out;
}

@keyframes live-threat-pulse {
    0% {
        background-color: rgba(0, 0, 0, 0.8);
    }

    50% {
        background-color: rgba(255, 69, 0, 0.1);
    }

    100% {
        background-color: rgba(0, 0, 0, 0.8);
    }
}

/* === Custom Cursor === */
.custom-cursor-active,
.custom-cursor-active * {
    cursor: none !important;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #FF4500;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    opacity: 0;
    margin: -3px 0 0 -3px;
    will-change: transform;
    transition: width 0.2s, height 0.2s, margin 0.2s, opacity 0.2s, background 0.2s;
    box-shadow: 0 0 8px rgba(255, 69, 0, 0.5);
}

.cursor-dot.cursor-visible {
    opacity: 1;
}

.cursor-dot.cursor-dot-hide {
    width: 0;
    height: 0;
    margin: 0;
    opacity: 0;
}

.cursor-dot.cursor-clicking {
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 69, 0, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    opacity: 0;
    margin: -18px 0 0 -18px;
    will-change: transform;
    transition: width 0.35s cubic-bezier(0.2, 1, 0.3, 1),
        height 0.35s cubic-bezier(0.2, 1, 0.3, 1),
        margin 0.35s cubic-bezier(0.2, 1, 0.3, 1),
        opacity 0.25s,
        border-color 0.25s,
        background 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor-ring.cursor-visible {
    opacity: 1;
}

.cursor-ring.cursor-clicking {
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border-color: rgba(255, 69, 0, 0.6);
}

/* Cursor states */
.cursor-ring.cursor-hover {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-color: rgba(255, 69, 0, 0.5);
    background: rgba(255, 69, 0, 0.05);
}

.cursor-ring.cursor-card {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.cursor-ring.cursor-crosshair {
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border-color: rgba(255, 69, 0, 0.8);
    border-radius: 0;
    background: transparent;
}

.cursor-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 7px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #FF4500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.cursor-ring.cursor-hover .cursor-label {
    opacity: 1;
}

/* === Scroll-Driven Text Reveal === */
.text-reveal-ready .reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(14px) rotateX(-8deg);
    transition: opacity 0.5s cubic-bezier(0.2, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    transform-origin: center bottom;
}

.text-reveal-ready .reveal-word.reveal-word-visible {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* Inherit shimmer on child spans */
.text-reveal-ready .shimmer-text .reveal-word {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Odometer Counters === */
.counter-element {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* === How It Works === */
.how-it-works-line {
    position: absolute;
    left: 16.66%;
    right: 16.66%;
    top: 2.8rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 69, 0, 0.2), rgba(255, 69, 0, 0.6), rgba(255, 69, 0, 0.2));
    z-index: 0;
}

.how-step {
    position: relative;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.2, 1, 0.3, 1), border-color 0.35s;
}

.how-step:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 69, 0, 0.35);
}

/* === Page Transition === */
#page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 69, 0, 0.15), rgba(0, 0, 0, 0.96) 48%);
    transition: opacity 0.2s ease;
}

#page-transition-overlay.page-transition-active {
    opacity: 1;
}

/* === Command Palette === */
.command-palette-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99991;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 14vh 1rem 1rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.command-palette-backdrop.command-palette-open {
    opacity: 1;
    pointer-events: auto;
}

.command-palette-panel {
    width: min(760px, 100%);
    border: 1px solid rgba(255, 69, 0, 0.25);
    background: rgba(0, 0, 0, 0.92);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.command-palette-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1rem;
}

.command-palette-input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f8fafc;
    font-family: Inter, sans-serif;
    font-size: 0.95rem;
}

.command-palette-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.command-palette-list {
    max-height: 320px;
    overflow-y: auto;
}

.command-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: rgba(248, 250, 252, 0.85);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    text-align: left;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: background-color 0.15s, color 0.15s;
}

.command-item:hover,
.command-item:focus-visible,
.command-item.command-item-active {
    background: rgba(255, 69, 0, 0.12);
    color: #fff;
}

.command-item:focus-visible {
    outline: 1px solid rgba(255, 69, 0, 0.45);
    outline-offset: -1px;
}

.command-item-hint {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.66rem;
    color: rgba(255, 255, 255, 0.35);
}

/* === Enhanced 404 === */
.error-terminal-stream {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    pointer-events: none;
    opacity: 0.25;
}

.error-terminal-line {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 69, 0, 0.6);
    margin-top: 0.35rem;
    animation: error-line-in 0.3s ease-out;
}

@keyframes error-line-in {
    0% {
        transform: translateY(8px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.error-404-glitch {
    position: relative;
}

.error-404-glitch::before,
.error-404-glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
}

.error-404-glitch::before {
    color: rgba(255, 69, 0, 0.65);
    transform: translateX(2px);
}

.error-404-glitch::after {
    color: rgba(255, 255, 255, 0.5);
    transform: translateX(-2px);
}

.error-404-glitch.error-404-activated::before,
.error-404-glitch.error-404-activated::after {
    opacity: 1;
    animation: glitch-flicker 0.12s steps(2) infinite;
}

@keyframes glitch-flicker {
    0% {
        transform: translateX(2px);
    }

    50% {
        transform: translateX(-2px);
    }

    100% {
        transform: translateX(1px);
    }
}

/* === Film Grain / Noise Overlay === */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    mix-blend-mode: overlay;
}

/* === Prefers Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    .section-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .animate-scroll {
        animation: none !important;
    }

    .animate-log-scroll {
        animation: none !important;
    }

    .shimmer-text {
        animation: none !important;
        -webkit-text-fill-color: #FF4500;
    }

    .cta-glitch::after {
        display: none;
    }

    .hero-animate {
        opacity: 1 !important;
        transform: none !important;
    }

    .hud-float {
        display: none;
    }

    #particle-network {
        display: none;
    }

    #preloader {
        display: none;
    }

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }

    .custom-cursor-active,
    .custom-cursor-active * {
        cursor: auto !important;
    }

    .text-reveal-ready .reveal-word {
        opacity: 1 !important;
        transform: none !important;
    }

    .noise-overlay {
        display: none;
    }

    .command-palette-backdrop {
        display: none;
    }

    #page-transition-overlay {
        display: none;
    }

    .dashboard-idle-pulse {
        animation: none !important;
    }
}

/* === Dashboard Sidebar === */
.dashboard-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 69, 0, 0.2) transparent;
    background: var(--dp-bg-1);
    border: 1px solid var(--dp-border);
    border-radius: 0.85rem;
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.34);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dashboard-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-left: 2px solid transparent;
    border-radius: 0.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    font-family: 'Space Grotesk', monospace;
    color: var(--dp-text-3);
    transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    text-decoration: none;
    cursor: pointer;
}

.dashboard-sidebar-item:hover {
    color: var(--dp-text-1);
    background: rgba(30, 41, 59, 0.56);
    border-left-color: rgba(255, 69, 0, 0.48);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.dashboard-sidebar-item.active {
    border-left-color: #FF4500;
    background: linear-gradient(90deg, rgba(255, 69, 0, 0.2), rgba(255, 69, 0, 0.07));
    color: #ff8a65;
    box-shadow: inset 0 0 0 1px rgba(255, 69, 0, 0.25);
}

.dashboard-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(6px);
    z-index: 40;
}

.dashboard-sidebar-overlay.visible {
    display: block;
}

/* === Victim Cards === */
.victim-card {
    padding: 1rem 1.1rem;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(71, 85, 105, 0.54);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.victim-card:hover {
    background: rgba(30, 41, 59, 0.76);
    border-color: rgba(255, 69, 0, 0.4);
    box-shadow: 0 16px 28px rgba(2, 6, 23, 0.34);
}

.victim-card.selected {
    background: linear-gradient(90deg, rgba(255, 69, 0, 0.14), rgba(15, 23, 42, 0.78));
    border-color: rgba(255, 69, 0, 0.52);
    box-shadow: inset 3px 0 0 rgba(255, 69, 0, 0.75), inset 0 0 0 1px rgba(255, 69, 0, 0.26), 0 20px 36px rgba(2, 6, 23, 0.4);
}

/* === Credential Table Rows === */
.credential-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background-color 0.2s ease;
}

.credential-row:hover {
    background: rgba(30, 41, 59, 0.45);
}

.credential-row.expanded-row {
    background: rgba(255, 69, 0, 0.08);
}

.dashboard-data-table {
    border-collapse: separate;
    border-spacing: 0;
}

.dashboard-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.dashboard-data-table .data-row:nth-child(even) {
    background: rgba(15, 23, 42, 0.26);
}

.dashboard-data-table .data-row {
    transition: background-color 0.2s ease;
}

.dashboard-data-table td {
    line-height: 1.45;
}

.dashboard-data-table td .font-mono {
    font-size: 0.79rem;
}

.password-reveal-cell {
    position: relative;
    text-align: center;
}

.password-hover-plain {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.96;
    filter: blur(5px);
    transition: opacity 0.18s ease, filter 0.18s ease;
    pointer-events: none;
    color: rgba(148, 163, 184, 0.94);
}

.password-reveal-cell:hover .password-hover-plain {
    opacity: 1;
    filter: blur(0);
    color: inherit;
}

/* === Password Strength === */
.strength-weak { color: #ef4444; }
.strength-medium { color: #f59e0b; }
.strength-strong { color: #22c55e; }

/* === Risk Level Badges === */
.risk-critical { color: #ef4444; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); }
.risk-high { color: #f97316; background: rgba(249, 115, 22, 0.12); border: 1px solid rgba(249, 115, 22, 0.3); }
.risk-medium { color: #eab308; background: rgba(234, 179, 8, 0.12); border: 1px solid rgba(234, 179, 8, 0.3); }
.risk-low { color: #22c55e; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); }

/* === MFA State Badges === */
.mfa-badge-bypassed { color: #ef4444; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); }
.mfa-badge-not-available { color: #f97316; background: rgba(249, 115, 22, 0.1); border: 1px solid rgba(249, 115, 22, 0.3); }
.mfa-badge-unknown { color: #eab308; background: rgba(234, 179, 8, 0.1); border: 1px solid rgba(234, 179, 8, 0.3); }
.mfa-badge-no-data { color: rgba(248, 250, 252, 0.4); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }

/* === AI Chat Styles === */
.ai-chat-bubble {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}
.ai-chat-bubble.user {
    background: rgba(255, 69, 0, 0.1);
    border: 1px solid rgba(255, 69, 0, 0.2);
    color: rgba(248, 250, 252, 0.9);
    border-top-right-radius: 0;
    margin-left: 2rem;
}
.ai-chat-bubble.system {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: rgba(203, 213, 225, 0.9);
    border-top-left-radius: 0;
    margin-right: 2rem;
}

/* === KPI Tabs === */
.kpi-tab {
    position: relative;
    padding: 0.625rem 1rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(71, 85, 105, 0.52);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
    text-align: center;
    flex: 1;
    min-height: 6.65rem;
}

.kpi-tab:hover {
    background: rgba(30, 41, 59, 0.74);
    border-color: rgba(100, 116, 139, 0.78);
    transform: translateY(-1px);
}

.kpi-tab > div:first-child {
    font-size: 0.64rem;
    letter-spacing: 0.09em;
}

.kpi-tab > div:nth-child(2) {
    line-height: 1;
}

.kpi-tab > div:last-child {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
}

.kpi-tab.active {
    background: linear-gradient(180deg, rgba(255, 69, 0, 0.18), rgba(15, 23, 42, 0.82));
    border-color: rgba(255, 69, 0, 0.52);
    box-shadow: inset 0 2px 0 rgba(255, 69, 0, 0.6), 0 12px 22px rgba(2, 6, 23, 0.3);
}

.kpi-tab[data-disabled="true"] {
    pointer-events: none;
    transform: none !important;
    background-image: repeating-linear-gradient(135deg, rgba(148, 163, 184, 0.06) 0 6px, rgba(148, 163, 184, 0.02) 6px 12px);
}

.kpi-tab[data-disabled="true"]::after {
    content: 'LOCK';
    position: absolute;
    top: 0.35rem;
    right: 0.45rem;
    font-size: 0.48rem;
    letter-spacing: 0.09em;
    opacity: 0.58;
}

#filter-unresolved {
    box-shadow: 0 0 10px rgba(251, 146, 60, 0.18);
}

#filter-resolved {
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.16);
}

#victim-filter-input,
#victim-sort-select,
#users-dataset-limit,
#assets-dataset-limit {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#searchTypeToggle,
#searchTypeOptions .search-type-option,
#victim-sort-select,
#users-dataset-prev,
#users-dataset-next,
#assets-dataset-prev,
#assets-dataset-next,
#resolve-all-btn {
    letter-spacing: 0.06em;
}

#detail-panel .collapsible-toggle,
#assets-detail-panel .collapsible-toggle {
    min-height: 2.5rem;
}

#detail-panel .collapsible-content,
#assets-detail-panel .collapsible-content {
    padding-top: 0.3rem;
}

#victim-filter-input:focus,
#users-dataset-limit:focus,
#assets-dataset-limit:focus {
    box-shadow: inset 0 0 0 1px rgba(255, 69, 0, 0.28), 0 0 0 1px rgba(255, 69, 0, 0.2);
    background-color: rgba(30, 41, 59, 0.78);
}

#ai-chat-history,
#file-ai-chat-history,
#ai-analysis-content,
#analyze-file-content,
#file-preview-submodal-content {
    line-height: 1.5;
}

#ai-chat-history .font-mono,
#file-ai-chat-history .font-mono {
    font-size: 0.82rem;
}

#resolve-all-btn,
.dashboard-research-submit {
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#resolve-all-btn:hover,
.dashboard-research-submit:hover {
    box-shadow: 0 10px 18px rgba(2, 6, 23, 0.3);
}

.dashboard-idle-pulse {
    animation: dashboard-idle-pulse 2.4s ease-in-out infinite;
}

@keyframes dashboard-idle-pulse {
    0%, 100% { opacity: 0.58; }
    50% { opacity: 0.86; }
}

#resolve-all-btn:focus-visible,
.dashboard-research-submit:focus-visible,
#searchTypeToggle:focus-visible,
#searchType:focus-visible {
    outline: none;
    box-shadow: 0 0 0 1px rgba(255, 69, 0, 0.38), 0 0 0 3px rgba(255, 69, 0, 0.15);
}

/* === Detail Panel === */
.detail-panel {
    background: var(--dp-bg-1);
    border: 1px solid var(--dp-border);
    border-radius: 0.75rem;
    box-shadow: 0 24px 54px rgba(2, 6, 23, 0.33);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* === Scoring Factor Bar === */
.scoring-factor-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.scoring-factor-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF4500, #ff6b35);
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* === Threat Score Gauge === */
.threat-score-critical { color: #ef4444; text-shadow: 0 0 20px rgba(239, 68, 68, 0.4); }
.threat-score-high { color: #f97316; text-shadow: 0 0 20px rgba(249, 115, 22, 0.4); }
.threat-score-medium { color: #eab308; text-shadow: 0 0 20px rgba(234, 179, 8, 0.4); }
.threat-score-low { color: #22c55e; text-shadow: 0 0 20px rgba(34, 197, 94, 0.4); }

/* === Cookie Freshness Badges === */
.freshness-new { color: #22c55e; background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); }
.freshness-stale { color: #eab308; background: rgba(234, 179, 8, 0.1); border: 1px solid rgba(234, 179, 8, 0.3); }
.freshness-expired { color: rgba(248, 250, 252, 0.35); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }

/* === Mobile: sidebar becomes slide-in drawer === */
@media (max-width: 1023px) {
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: 240px;
        height: 100vh;
        max-height: 100vh;
        z-index: 50;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(20px);
        border-right: 1px solid var(--dp-border);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 1rem;
        border-radius: 0;
    }

    .dashboard-sidebar.sidebar-open {
        left: 0;
    }
}

/* === Desktop sidebar collapse === */
@media (min-width: 1024px) {
    .dashboard-sidebar {
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.2s ease,
                    margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }

    .dashboard-sidebar.sidebar-collapsed {
        width: 0px;
        opacity: 0;
        margin-left: -16px;
        pointer-events: none;
        border: none;
    }
}

/* === Sidebar Collapse Toggle Button (Desktop) === */
#sidebar-collapse-btn {
    display: none;
}

@media (min-width: 1024px) {
    #sidebar-collapse-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 6px;
        background: rgba(15, 23, 42, 0.76);
        border: 1px solid rgba(71, 85, 105, 0.74);
        color: rgba(203, 213, 225, 0.8);
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
        flex-shrink: 0;
    }

    #sidebar-collapse-btn:hover {
        background: rgba(255, 69, 0, 0.16);
        border-color: rgba(255, 69, 0, 0.45);
        color: #FF4500;
    }
}

/* === Themed Select / Dropdowns === */
select option {
    background: #0a0a0a;
    color: rgba(248, 250, 252, 0.7);
    padding: 8px 12px;
}

select {
    color-scheme: dark;
}

select:focus {
    outline: none;
    border-color: rgba(255, 69, 0, 0.4) !important;
}

/* ==========================================================================
   VANTAPRISM INVESTIGATION CANVAS v2 — Full Workspace Styles
   ========================================================================== */

/* Main Canvas Area */
.graph-canvas-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 180px);
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.78));
    border: 1px solid rgba(71, 85, 105, 0.62);
    border-radius: 0.9rem;
    box-shadow: 0 34px 72px rgba(2, 6, 23, 0.5), inset 0 0 42px rgba(2, 6, 23, 0.3);
}

.graph-canvas-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.14) 1px, transparent 1px);
    background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
    opacity: 0.5;
}

.graph-canvas-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 18% 14%, rgba(255, 69, 0, 0.14), transparent 40%),
        radial-gradient(circle at 82% 22%, rgba(56, 189, 248, 0.11), transparent 42%),
        radial-gradient(circle at 50% 96%, rgba(100, 116, 139, 0.12), transparent 48%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.06) 28%, rgba(2, 6, 23, 0.36));
}

@media (max-width: 900px) {
    .graph-canvas-wrapper::before {
        opacity: 0.38;
    }
}

.graph-workspace-page .graph-canvas-wrapper {
    height: calc(100vh - 128px);
    min-height: 620px;
}

#graph-canvas {
    width: 100%;
    height: 100%;
    outline: none;
    position: relative;
    z-index: 1;
}

/* ---- TOOLBAR ---- */
.graph-toolbar {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(100, 116, 139, 0.6);
    border-radius: 0.75rem;
    padding: 6px 12px;
}

.graph-toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.graph-toolbar-divider {
    width: 1px;
    height: 18px;
    background: rgba(100, 116, 139, 0.56);
    margin: 0 4px;
}

.graph-toolbar-btn {
    background: transparent;
    border: none;
    color: rgba(148, 163, 184, 0.85);
    cursor: pointer;
    border-radius: 6px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.graph-toolbar-btn:hover {
    background: rgba(255, 69, 0, 0.18);
    color: #ff8a65;
    box-shadow: inset 0 0 0 1px rgba(255, 69, 0, 0.2);
}
.graph-toolbar-btn.active {
    background: rgba(255, 69, 0, 0.25);
    color: #FF4500;
}

.graph-toolbar-stats {
    display: flex;
    gap: 12px;
    align-items: center;
}
.graph-stat {
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: rgba(148, 163, 184, 0.82);
    letter-spacing: 0.05em;
}
.graph-stat span {
    color: rgba(241, 245, 249, 0.94);
    font-weight: 600;
}

.graph-search-input {
    background-color: rgba(15, 23, 42, 0.75) !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(71, 85, 105, 0.72) !important;
    border-radius: 4px;
    padding: 0 0.75rem;
    color: rgba(241, 245, 249, 0.96) !important;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    height: 2.5rem;
    width: 180px;
    transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
    box-sizing: border-box;
    color-scheme: dark;
}
.graph-layout-select {
    background-color: rgba(15, 23, 42, 0.8) !important;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(71, 85, 105, 0.72);
    border-radius: 6px;
    padding: 5px 8px;
    color: rgba(226, 232, 240, 0.9);
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    text-transform: uppercase;
    appearance: none;
    color-scheme: dark;
}

.graph-layout-select option {
    background: #0f172a;
    color: rgba(241, 245, 249, 0.96);
}

.graph-toolbar-dropdown-trigger {
    height: 32px !important;
    min-height: 32px;
    padding: 0 10px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
    background-color: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(71, 85, 105, 0.7) !important;
    color: rgba(226, 232, 240, 0.92) !important;
    line-height: 1;
}

.graph-toolbar-dropdown-trigger:hover {
    background-color: rgba(30, 41, 59, 0.88) !important;
    border-color: rgba(100, 116, 139, 0.78) !important;
}

.graph-toolbar-dropdown-trigger:focus-within {
    border-color: rgba(255, 69, 0, 0.45) !important;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.05) !important;
}

.graph-focus-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 69, 0, 0.35);
    border-radius: 6px;
    background: rgba(255, 69, 0, 0.12);
    color: rgba(255, 168, 132, 0.95);
    padding: 5px 10px;
    font-size: 11px;
    line-height: 1;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.graph-focus-btn:hover {
    background: rgba(255, 69, 0, 0.22);
    border-color: rgba(255, 69, 0, 0.55);
    color: #FF4500;
}

.graph-focus-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.2);
}
.graph-layout-select:focus {
    outline: none;
    border-color: rgba(255, 69, 0, 0.45);
}
.graph-search-input:focus {
    outline: none !important;
    border-color: rgba(255, 69, 0, 0.45) !important;
    background-color: rgba(30, 41, 59, 0.86) !important;
    box-shadow: 0 0 0 1px rgba(255, 69, 0, 0.2), 0 0 20px rgba(255, 69, 0, 0.08);
}
.graph-search-input:hover {
    background-color: rgba(30, 41, 59, 0.86) !important;
    border-color: rgba(100, 116, 139, 0.78) !important;
}
.graph-search-input::placeholder {
    color: rgba(148, 163, 184, 0.66);
    opacity: 1;
}

/* ---- Dashboard re-search bar on graph page ---- */
.dashboard-research-bar {
    background: rgba(15, 23, 42, 0.72) !important;
    border: 1px solid rgba(71, 85, 105, 0.64) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 46px rgba(2, 6, 23, 0.32);
}

.dashboard-research-bar:focus-within {
    border-color: rgba(255, 69, 0, 0.45) !important;
    box-shadow: 0 0 0 1px rgba(255, 69, 0, 0.18), 0 20px 48px rgba(2, 6, 23, 0.34);
}

.dashboard-research-select {
    background-color: rgba(15, 23, 42, 0.78) !important;
    border: 1px solid rgba(71, 85, 105, 0.72) !important;
    color: rgba(226, 232, 240, 0.94) !important;
    border-radius: 0.55rem !important;
    font-size: 11px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase;
    appearance: none;
    height: 2.5rem;
    padding-right: 2.2rem !important;
    color-scheme: dark;
}

.dashboard-research-select:focus {
    border-color: rgba(255,69,0,0.45) !important;
    box-shadow: 0 0 0 1px rgba(255,69,0,0.2), 0 0 20px rgba(255,69,0,0.08);
    background-color: rgba(30, 41, 59, 0.86) !important;
}

.dashboard-research-select option {
    background: #0f172a;
    color: #e2e8f0;
}

.dashboard-research-input {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(71, 85, 105, 0.72) !important;
    border-radius: 0.55rem;
    height: 2.5rem;
    padding: 0 0.75rem !important;
    color: rgba(241, 245, 249, 0.95) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-research-input:focus {
    border-color: rgba(255,69,0,0.45) !important;
    background: rgba(30, 41, 59, 0.86) !important;
    box-shadow: 0 0 0 1px rgba(255,69,0,0.2), 0 0 20px rgba(255,69,0,0.08);
}

.dashboard-research-submit {
    height: 2.5rem;
    border-radius: 0.55rem !important;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

/* ---- ACTION PANEL (right side) ---- */
.graph-action-panel {
    position: absolute;
    top: 0; right: 0;
    width: 360px;
    height: 100%;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(100, 116, 139, 0.52);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.graph-action-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 10px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 69, 0, 0.12), transparent);
}
.graph-action-panel.open {
    transform: translateX(0);
}

.ap-scrollable-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.72) transparent;
}

.ap-scrollable-content::-webkit-scrollbar {
    width: 6px;
}

.ap-scrollable-content::-webkit-scrollbar-track {
    background: transparent;
}

.ap-scrollable-content::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.65);
    border-radius: 8px;
}

.ap-scrollable-content::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.82);
}

/* Action Panel Header */
.ap-header {
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.55);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.ap-header-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
}
.ap-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}
.ap-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 4px;
}
.ap-title {
    font-family: 'Space Grotesk', sans-serif;
    color: rgba(241, 245, 249, 0.96);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-all;
    margin: 0;
}
.ap-subtitle {
    font-size: 10px;
    font-family: ui-monospace, monospace;
    color: rgba(148, 163, 184, 0.74);
}

/* Score Bar */
.ap-score-section {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.55);
}
.ap-score-label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(148, 163, 184, 0.78);
    margin-bottom: 6px;
}
.ap-score-label span:last-child {
    color: rgba(241, 245, 249, 0.95);
    font-weight: 700;
    font-size: 13px;
}
.ap-score-track {
    width: 100%;
    height: 4px;
    background: rgba(30, 41, 59, 0.72);
    border-radius: 2px;
    overflow: hidden;
}
.ap-score-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Action Buttons */
.ap-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(71, 85, 105, 0.55);
}
.ap-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 11px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    border: 1px solid rgba(71, 85, 105, 0.7);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.78);
    color: rgba(203, 213, 225, 0.88);
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ap-action-btn:hover {
    background: rgba(30, 41, 59, 0.86);
    color: rgba(241, 245, 249, 0.96);
    border-color: rgba(100, 116, 139, 0.8);
}
.ap-action-btn.ap-action-primary {
    background: rgba(255, 69, 0, 0.12);
    border-color: rgba(255, 69, 0, 0.25);
    color: #FF4500;
}
.ap-action-btn.ap-action-primary:hover {
    background: rgba(255, 69, 0, 0.2);
    border-color: rgba(255, 69, 0, 0.4);
}
.ap-count-badge {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 8px;
    background: rgba(255, 69, 0, 0.2);
    color: #FF4500;
    font-weight: 700;
}

/* Properties section */
.ap-section {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.58);
}
.ap-section-title {
    color: rgba(148, 163, 184, 0.78);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.ap-controls-grid {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 8px;
    align-items: center;
}

.ap-control-label {
    color: rgba(148, 163, 184, 0.78);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: ui-monospace, monospace;
}

.ap-control-select,
.ap-control-input {
    background-color: rgba(15, 23, 42, 0.8) !important;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(71, 85, 105, 0.72) !important;
    color: rgba(241, 245, 249, 0.96) !important;
    border-radius: 4px !important;
    padding: 0 0.75rem;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    height: 2.5rem;
    transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
    width: 100%;
    box-sizing: border-box;
    color-scheme: dark !important;
}

.ap-control-input[type="number"]::-webkit-inner-spin-button,
.ap-control-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ap-control-input[type="number"] {
    -moz-appearance: textfield;
}

.ap-control-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='rgba(148, 163, 184, 0.9)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.5rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.25em 1.25em !important;
    padding-right: 2.5rem !important;
    appearance: none !important;
}

textarea.ap-control-input {
    resize: vertical;
    min-height: 72px;
    height: auto;
    padding: 0.75rem;
    line-height: 1.45;
}

.ap-control-select:focus,
.ap-control-input:focus {
    outline: none !important;
    border-color: rgba(255, 69, 0, 0.45) !important;
    background-color: rgba(30, 41, 59, 0.88) !important;
    box-shadow: 0 0 0 1px rgba(255, 69, 0, 0.2), 0 0 20px rgba(255, 69, 0, 0.08) !important;
}

.ap-control-select:hover,
.ap-control-input:hover {
    background-color: rgba(30, 41, 59, 0.88) !important;
    border-color: rgba(100, 116, 139, 0.8) !important;
}

.ap-control-select {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    appearance: none;
    color-scheme: dark;
}

.ap-control-select option {
    background-color: #0f172a !important;
    background: #0f172a !important;
    color: rgba(241, 245, 249, 0.96) !important;
    color-scheme: dark !important;
}

.ap-control-input::placeholder {
    color: rgba(148, 163, 184, 0.62);
    opacity: 1;
}
.ap-scroll-area {
    max-height: 200px;
    overflow-y: auto;
}
.ap-scroll-area::-webkit-scrollbar { width: 3px; }
.ap-scroll-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.graph-prop-table {
    width: 100%;
    border-collapse: collapse;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
}
.graph-prop-table td {
    padding: 6px 4px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.54);
}
.prop-key {
    color: rgba(148, 163, 184, 0.78);
    vertical-align: top;
    width: 38%;
    font-size: 10px;
}
.prop-val {
    color: rgba(241, 245, 249, 0.94);
    word-break: break-all;
}

/* Edge list in action panel */
.ap-edge-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 220px;
    overflow-y: auto;
}
.ap-edge-list::-webkit-scrollbar { width: 3px; }
.ap-edge-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.ap-edge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 6px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.56);
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-size: 12px;
}
.ap-edge-item:hover {
    background: rgba(255, 69, 0, 0.08);
}
.ap-edge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ap-edge-label {
    flex: 1;
    color: rgba(226, 232, 240, 0.92);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: ui-monospace, monospace;
    font-size: 11px;
}
.ap-edge-type {
    font-size: 9px;
    color: rgba(148, 163, 184, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* Keyboard hints */
.ap-keyboard-hints {
    margin-top: auto;
    padding: 10px 16px;
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(51, 65, 85, 0.58);
    font-size: 10px;
    color: rgba(148, 163, 184, 0.72);
}
.ap-keyboard-hints kbd {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(71, 85, 105, 0.72);
    font-family: ui-monospace, monospace;
    font-size: 9px;
    color: rgba(203, 213, 225, 0.84);
    margin-right: 3px;
}

/* ---- CONTEXT MENU ---- */
.graph-context-menu {
    position: fixed;
    display: none;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(100, 116, 139, 0.64);
    border-radius: 8px;
    padding: 6px;
    min-width: 200px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.6);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
}
.graph-context-menu-item {
    padding: 8px 12px;
    color: rgba(203, 213, 225, 0.88);
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.graph-context-menu-item:hover {
    background: rgba(255, 69, 0, 0.12);
    color: #FF4500;
}
.graph-context-menu-item.ctx-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
}

/* ---- LEGEND OVERLAY (interactive with checkboxes) ---- */
.graph-legend {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 116, 139, 0.64);
    border-radius: 8px;
    padding: 10px 12px;
    z-index: 10;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    max-width: 320px;
    transition: transform 0.3s ease, opacity 0.3s ease, max-height 0.3s ease;
    overflow: hidden;
}
.graph-legend.collapsed .graph-legend-content {
    display: none;
}
.graph-legend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(148, 163, 184, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 9px;
    cursor: pointer;
    font-weight: 600;
}
.graph-legend-content {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}
.legend-filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(226, 232, 240, 0.92);
    cursor: pointer;
    padding: 3px 0;
    font-size: 10px;
}
.legend-filter-item input[type="checkbox"] {
    appearance: none;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(100, 116, 139, 0.74);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.legend-filter-item input[type="checkbox"]:checked {
    background: rgba(255, 69, 0, 0.3);
    border-color: rgba(255, 69, 0, 0.5);
}
.legend-filter-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 1px;
    font-size: 9px;
    color: #FF4500;
}
.legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- RELATIONSHIP FILTER PANEL ---- */
.graph-filter-panel {
    position: absolute;
    top: 52px;
    left: 10px;
    background: rgba(2, 6, 23, 0.93);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(100, 116, 139, 0.64);
    border-radius: 8px;
    padding: 12px;
    z-index: 15;
    width: 240px;
    max-height: 400px;
    overflow-y: auto;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.graph-filter-panel.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}
.graph-filter-panel::-webkit-scrollbar { width: 3px; }
.graph-filter-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.filter-panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(148, 163, 184, 0.82);
    margin-bottom: 10px;
    font-weight: 600;
}
.rel-filter-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rel-filter-actions {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.rel-filter-action-btn {
    padding: 3px 8px;
    border: 1px solid rgba(71, 85, 105, 0.72);
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(203, 213, 225, 0.88);
    background: rgba(15, 23, 42, 0.78);
    cursor: pointer;
}
.rel-filter-action-btn:hover {
    color: #FF4500;
    border-color: rgba(255,69,0,0.4);
    background: rgba(255,69,0,0.08);
}
.rel-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-family: ui-monospace, monospace;
    color: rgba(226, 232, 240, 0.92);
    transition: background-color 0.15s;
}
.rel-filter-item:hover {
    background: rgba(30, 41, 59, 0.72);
}
.rel-filter-item input[type="checkbox"] {
    appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(100, 116, 139, 0.74);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.rel-filter-item input[type="checkbox"]:checked {
    background: rgba(255, 69, 0, 0.25);
    border-color: rgba(255, 69, 0, 0.45);
}
.rel-filter-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 0;
    left: 2px;
    font-size: 10px;
    color: #FF4500;
}
.rel-filter-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- TOAST NOTIFICATIONS ---- */
.graph-toasts {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.graph-toast {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Space Grotesk', sans-serif;
    color: rgba(241, 245, 249, 0.96);
    backdrop-filter: blur(12px);
    transform: translateX(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    max-width: 300px;
}
.graph-toast.show {
    transform: translateX(0);
    opacity: 1;
}
.graph-toast-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.graph-toast-info {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.25);
}
.graph-toast-warn {
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.25);
}

.graph-hover-card {
    position: absolute;
    display: none;
    z-index: 28;
    pointer-events: none;
    min-width: 180px;
    max-width: 260px;
    border: 1px solid rgba(100, 116, 139, 0.62);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(10px);
    padding: 8px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.graph-hover-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    color: rgba(241, 245, 249, 0.96);
    margin-bottom: 2px;
    font-weight: 600;
}

.graph-hover-card-meta {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    color: rgba(148, 163, 184, 0.82);
}

.graph-hover-card-score {
    margin-top: 4px;
    font-size: 10px;
    color: #FF8A5C;
    font-family: ui-monospace, monospace;
}

/* === System Type Wildcard Results === */
.system-results-hero {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.08), rgba(255, 69, 0, 0.02));
    border-color: rgba(255, 69, 0, 0.18);
}

.system-query-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.system-chip {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(248, 250, 252, 0.7);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    padding: 6px 10px;
}

.system-company-card {
    background: rgba(10, 10, 10, 0.92);
    min-height: 295px;
}

.system-company-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 5px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.system-company-logo.is-fallback {
    background: linear-gradient(140deg, rgba(255, 69, 0, 0.2), rgba(255, 255, 255, 0.03));
    box-shadow: none;
    padding: 0;
}

.system-company-logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: #111827;
    font-weight: 700;
}

.system-company-logo.is-fallback span {
    color: #FF4500;
}

.system-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.system-severity-pill {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    border-radius: 999px;
    padding: 5px 8px;
    border: 1px solid transparent;
}

.system-severity-critical {
    color: #ff7a7a;
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.28);
}

.system-severity-high {
    color: #ffab76;
    background: rgba(255, 69, 0, 0.12);
    border-color: rgba(255, 69, 0, 0.35);
}

.system-severity-medium {
    color: #facc15;
    background: rgba(250, 204, 21, 0.12);
    border-color: rgba(250, 204, 21, 0.3);
}

.system-severity-low {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.system-meta-chip {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.system-meta-chip span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(248, 250, 252, 0.38);
}

.system-meta-chip strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    color: rgba(248, 250, 252, 0.88);
    font-weight: 500;
}

.system-social-link {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(248, 250, 252, 0.72);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease;
}

.system-social-link:hover {
    color: #FF4500;
    border-color: rgba(255, 69, 0, 0.5);
    background: rgba(255, 69, 0, 0.12);
}

.system-social-link.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.system-compromised-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(255, 69, 0, 0.35);
    background: rgba(255, 69, 0, 0.12);
    color: rgba(255, 69, 0, 0.95);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 10px 12px;
    transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}

.system-compromised-btn:hover {
    border-color: rgba(255, 69, 0, 0.58);
    background: rgba(255, 69, 0, 0.2);
    color: #FF4500;
}

.system-preset-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(248, 250, 252, 0.6);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 6px 10px;
    transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.system-preset-btn:hover,
.system-preset-btn.is-active {
    border-color: rgba(255, 69, 0, 0.45);
    color: #FF4500;
    background: rgba(255, 69, 0, 0.1);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .graph-canvas-wrapper {
        height: calc(100vh - 160px);
        min-height: 350px;
    }
    .graph-workspace-page .graph-canvas-wrapper {
        height: calc(100vh - 140px);
        min-height: 420px;
    }
    .graph-toolbar {
        flex-wrap: wrap;
        gap: 6px;
    }
    .graph-toolbar-stats {
        display: none;
    }
    .graph-search-input {
        width: 120px;
    }
    .graph-focus-btn {
        padding: 5px 8px;
        font-size: 10px;
    }
    .graph-action-panel {
        width: 100%;
    }
    .graph-legend {
        max-width: 200px;
    }
    .graph-legend-content {
        grid-template-columns: 1fr;
    }
}

/* ───────────────────────────────────────────────────────────
   THREAT REPORT & COMPROMISED SEARCH
   ─────────────────────────────────────────────────────────── */
.blurred-password {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
    opacity: 0.8;
}

#search-autocomplete {
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.8), 0 0 20px -5px rgba(255,69,0,0.1);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* ───────────────────────────────────────────────────────────
   SUPERADMIN HIERARCHICAL DASHBOARD
   ─────────────────────────────────────────────────────────── */
.sa-topbar {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sa-topbar-left {
    min-width: 0;
}

.sa-kicker {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.sa-title {
    margin-top: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.15rem, 2.2vw, 1.7rem);
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.93);
    font-weight: 800;
}

.sa-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sa-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

@media (min-width: 1100px) {
    .sa-shell {
        grid-template-columns: 270px minmax(0, 1fr) 360px;
    }
}

.sa-shell-left,
.sa-shell-right {
    min-width: 0;
}

.sa-left-panel,
.sa-main-panel,
.sa-inspector-panel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

.sa-left-panel {
    padding: 12px;
    position: sticky;
    top: 90px;
}

.sa-left-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 8px;
}

.sa-left-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sa-nav-item {
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-align: left;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    transition: 180ms ease;
}

.sa-nav-item:hover {
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.03);
}

.sa-nav-item.is-active {
    border-color: rgba(255, 69, 0, 0.36);
    color: #FFAB76;
    background: rgba(255, 69, 0, 0.12);
}

.sa-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.sa-dot.online { background: #22c55e; box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35); }
.sa-dot.warning { background: #f59e0b; box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35); }
.sa-dot.error { background: #ef4444; box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35); }

.sa-main-panel {
    padding: 14px;
}

.sa-service-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.sa-service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.93);
}

.sa-service-subtitle {
    margin-top: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.sa-subnav {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sa-subnav-item {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.68);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding: 7px 10px;
    cursor: pointer;
}

.sa-subnav-item.is-active,
.sa-subnav-item:hover {
    border-color: rgba(255, 69, 0, 0.4);
    color: #FFAB76;
    background: rgba(255, 69, 0, 0.12);
}

.sa-workspace {
    margin-top: 12px;
}

.sa-grid {
    display: grid;
    gap: 12px;
}

.sa-grid-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.sa-grid-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 900px) {
    .sa-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sa-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1300px) {
    .sa-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sa-panel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.44);
    padding: 12px;
}

.sa-panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
    margin-bottom: 8px;
}

.sa-kpi-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    min-height: 92px;
}

.sa-kpi-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.sa-kpi-value {
    margin-top: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(1.05rem, 2vw, 1.6rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
}

.sa-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.sa-pill-online { color: #22c55e; border-color: rgba(34, 197, 94, 0.45); background: rgba(34, 197, 94, 0.1); }
.sa-pill-warning { color: #f59e0b; border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.1); }
.sa-pill-error { color: #ef4444; border-color: rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.1); }
.sa-pill-alert { color: #FFAB76; border-color: rgba(255, 69, 0, 0.45); background: rgba(255, 69, 0, 0.12); }

.sa-time {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
}

.sa-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 540px;
}

.sa-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(4px);
}

.sa-table th,
.sa-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 8px 9px;
    text-align: left;
    vertical-align: top;
}

.sa-table th {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.sa-table td {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
}

.sa-table tr[data-sa-entity-row] {
    cursor: pointer;
}

.sa-table tr[data-sa-entity-row]:hover td {
    background: rgba(255, 255, 255, 0.04);
}

.sa-alert-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.sa-alert-row {
    border: 1px solid rgba(255, 69, 0, 0.3);
    background: rgba(255, 69, 0, 0.1);
    color: rgba(255, 255, 255, 0.84);
    padding: 8px 10px;
    display: grid;
    gap: 2px;
    text-align: left;
    cursor: pointer;
}

.sa-alert-level {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #FF4500;
}

.sa-alert-service {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    color: #FFAB76;
}

.sa-alert-message {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
}

.sa-chart-wrap {
    height: 230px;
    min-height: 230px;
}

.sa-mini-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 8px;
}

@media (min-width: 860px) {
    .sa-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sa-mini-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 9px;
}

.sa-mini-key {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.sa-mini-value {
    margin-top: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.sa-inspector-panel {
    position: sticky;
    top: 90px;
    padding: 12px;
    min-height: 620px;
}

.sa-inspector-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.sa-inspector-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.sa-icon-btn {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.75);
    width: 26px;
    height: 26px;
    cursor: pointer;
}

.sa-icon-btn:hover {
    border-color: rgba(255, 69, 0, 0.4);
    color: #FFAB76;
}

.sa-inspector-empty {
    margin-top: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

.sa-inspector-content {
    margin-top: 10px;
}

.sa-inspector-tabs {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sa-inspector-tab {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.68);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    padding: 5px 8px;
    cursor: pointer;
}

.sa-inspector-tab:hover,
.sa-inspector-tab.is-active {
    border-color: rgba(255, 69, 0, 0.45);
    color: #FFAB76;
    background: rgba(255, 69, 0, 0.12);
}

.sa-inspector-body {
    margin-top: 10px;
}

.sa-inspector-overview-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 8px;
}

@media (min-width: 1300px) {
    .sa-inspector-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sa-inspector-card {
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.02);
    padding: 8px;
}

.sa-inspector-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.sa-inspector-list-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    padding: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.sa-inspector-list-item:hover {
    border-color: rgba(255, 69, 0, 0.4);
    background: rgba(255, 69, 0, 0.08);
}

.sa-inspector-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    color: #FFAB76;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.sa-inspector-empty-state {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.sa-inspector-kicker {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.46);
}

.sa-inspector-entity {
    margin-top: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
}

.sa-inspector-json {
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(0, 0, 0, 0.55);
    padding: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.84);
    max-height: 470px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 1099px) {
    .sa-shell-right {
        order: 3;
    }

    .sa-inspector-panel {
        min-height: auto;
    }

    .sa-left-panel {
        position: static;
    }

    .sa-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ───────────────────────────────────────────────────────────
   SUPERADMIN CONTROL ROOM THEME
   ─────────────────────────────────────────────────────────── */
.sa-page {
    --sa-bg-0: #f1f5f9;
    --sa-bg-1: #e2e8f0;
    --sa-surface: #ffffff;
    --sa-surface-2: #f8fafc;
    --sa-border: #cbd5e1;
    --sa-border-strong: #94a3b8;
    --sa-text: #0f172a;
    --sa-text-soft: #334155;
    --sa-text-dim: #64748b;
    --sa-primary: #0f4c81;
    --sa-primary-soft: #e0ecf7;
    --sa-online: #15803d;
    --sa-warning: #b45309;
    --sa-error: #b91c1c;
    background:
        radial-gradient(circle at 6% 0%, rgba(15, 76, 129, 0.12), transparent 45%),
        radial-gradient(circle at 94% 8%, rgba(148, 163, 184, 0.22), transparent 38%),
        linear-gradient(180deg, var(--sa-bg-0), var(--sa-bg-1));
    color: var(--sa-text);
}

.sa-page #site-footer {
    display: none;
}

.sa-page #main-header {
    background: rgba(15, 23, 42, 0.94);
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

.sa-page .particle-overlay,
.sa-page .noise-overlay,
.sa-page #particle-network,
.sa-page #preloader,
.sa-page #live-threat-bar {
    display: none !important;
}

.sa-page .sa-command-main {
    padding-top: 92px;
}

.sa-page .sa-opsbar {
    border: 1px solid var(--sa-border);
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 12px 32px -18px rgba(15, 23, 42, 0.45);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    border-radius: 14px;
}

.sa-page .sa-eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sa-primary);
    font-weight: 700;
}

.sa-page .sa-heading {
    margin-top: 5px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
    letter-spacing: 0.02em;
    color: var(--sa-text);
    font-weight: 800;
    text-transform: none;
}

.sa-page .sa-subheading {
    margin-top: 7px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: 0.01em;
    color: var(--sa-text-soft);
    text-transform: none;
    max-width: 680px;
}

.sa-page .sa-opsbar-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(132px, 1fr));
    gap: 10px;
    width: min(430px, 100%);
}

.sa-page .sa-ops-chip {
    border: 1px solid var(--sa-border);
    background: var(--sa-surface-2);
    min-height: 54px;
    padding: 7px 10px;
    display: grid;
    align-content: center;
    gap: 3px;
    border-radius: 10px;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.sa-page .sa-ops-chip-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    line-height: 1;
    color: var(--sa-text-dim);
    text-transform: none;
    letter-spacing: 0;
}

.sa-page .sa-ops-chip-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    letter-spacing: 0.01em;
    color: var(--sa-text);
    font-weight: 700;
}

.sa-page .sa-ops-chip.is-ok {
    border-color: rgba(21, 128, 61, 0.35);
    background: rgba(21, 128, 61, 0.08);
}

.sa-page .sa-ops-chip.is-warning {
    border-color: rgba(180, 83, 9, 0.38);
    background: rgba(180, 83, 9, 0.1);
}

.sa-page .sa-ops-chip.is-critical {
    border-color: rgba(185, 28, 28, 0.35);
    background: rgba(185, 28, 28, 0.1);
}

.sa-page .sa-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

@media (min-width: 1180px) {
    .sa-page .sa-layout {
        grid-template-columns: 290px minmax(0, 1fr) 380px;
    }
}

.sa-page .sa-sidebar-panel,
.sa-page .sa-main-panel,
.sa-page .sa-inspector-panel {
    border: 1px solid var(--sa-border);
    background: var(--sa-surface);
    box-shadow: 0 10px 26px -20px rgba(15, 23, 42, 0.35);
    border-radius: 12px;
}

.sa-page .sa-sidebar-panel {
    padding: 12px;
    position: sticky;
    top: 72px;
}

.sa-page .sa-sidebar-head {
    border-bottom: 1px solid var(--sa-border);
    margin-bottom: 8px;
    padding-bottom: 7px;
}

.sa-page .sa-sidebar-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--sa-text);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}

.sa-page .sa-sidebar-note {
    margin-top: 3px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--sa-text-dim);
    text-transform: none;
    letter-spacing: 0;
}

.sa-page .sa-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sa-page .sa-nav-row {
    border: 1px solid transparent;
    background: transparent;
    color: var(--sa-text-soft);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    text-align: left;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    transition: all 160ms ease;
    border-radius: 9px;
    font-weight: 500;
}

.sa-page .sa-nav-main {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-page .sa-nav-row:hover {
    border-color: var(--sa-border);
    background: var(--sa-surface-2);
    color: var(--sa-text);
}

.sa-page .sa-nav-row.is-active {
    border-color: rgba(15, 76, 129, 0.35);
    background: var(--sa-primary-soft);
    color: var(--sa-primary);
    font-weight: 700;
}

.sa-page .sa-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #cbd5e1;
    box-shadow: 0 0 0 2px #ffffff;
    flex: 0 0 9px;
}

.sa-page .sa-status-dot.online { background: var(--sa-online); }
.sa-page .sa-status-dot.warning { background: var(--sa-warning); }
.sa-page .sa-status-dot.error { background: var(--sa-error); }

.sa-page .sa-main-panel {
    padding: 14px;
}

.sa-page .sa-main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--sa-border);
    padding-bottom: 10px;
}

.sa-page .sa-main-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 21px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--sa-text);
    font-weight: 700;
}

.sa-page .sa-main-subtitle {
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--sa-text-dim);
    text-transform: none;
    letter-spacing: 0;
}

.sa-page .sa-main-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 1px solid rgba(15, 76, 129, 0.34);
    background: var(--sa-primary-soft);
    color: var(--sa-primary);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 700;
}

.sa-page .sa-subnav {
    margin-top: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sa-page .sa-subnav-item {
    border: 1px solid var(--sa-border);
    background: var(--sa-surface-2);
    color: var(--sa-text-soft);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
    padding: 8px 11px;
    cursor: pointer;
    border-radius: 9px;
    font-weight: 500;
}

.sa-page .sa-subnav-item.is-active,
.sa-page .sa-subnav-item:hover {
    border-color: rgba(15, 76, 129, 0.35);
    background: var(--sa-primary-soft);
    color: var(--sa-primary);
}

.sa-page .sa-workspace {
    margin-top: 12px;
}

.sa-page .sa-grid {
    display: grid;
    gap: 12px;
}

.sa-page .sa-grid-2,
.sa-page .sa-grid-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 900px) {
    .sa-page .sa-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .sa-page .sa-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sa-page .sa-panel {
    border: 1px solid var(--sa-border);
    background: var(--sa-surface-2);
    padding: 12px;
    border-radius: 10px;
}

.sa-page .sa-panel-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--sa-text);
    margin-bottom: 4px;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 700;
}

.sa-page .sa-panel-note {
    margin-bottom: 9px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.45;
    color: var(--sa-text-dim);
    text-transform: none;
    letter-spacing: 0;
}

.sa-page .sa-kpi-card {
    border: 1px solid var(--sa-border);
    background: var(--sa-surface);
    padding: 12px;
    min-height: 96px;
    border-radius: 10px;
}

.sa-page .sa-kpi-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--sa-text-dim);
    letter-spacing: 0;
    text-transform: none;
}

.sa-page .sa-kpi-value {
    margin-top: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.35rem, 2.1vw, 1.9rem);
    color: var(--sa-text);
    font-weight: 700;
}

.sa-page .sa-pill {
    border: 1px solid var(--sa-border);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 999px;
    min-height: 24px;
    padding: 2px 9px;
    font-weight: 700;
}

.sa-page .sa-pill-online { color: var(--sa-online); background: rgba(21, 128, 61, 0.1); border-color: rgba(21, 128, 61, 0.25); }
.sa-page .sa-pill-warning { color: var(--sa-warning); background: rgba(180, 83, 9, 0.1); border-color: rgba(180, 83, 9, 0.26); }
.sa-page .sa-pill-error { color: var(--sa-error); background: rgba(185, 28, 28, 0.1); border-color: rgba(185, 28, 28, 0.28); }
.sa-page .sa-pill-alert { color: var(--sa-primary); background: rgba(15, 76, 129, 0.08); border-color: rgba(15, 76, 129, 0.25); }

.sa-page .sa-table-shell {
    border: 1px solid var(--sa-border);
    background: #ffffff;
    overflow: auto;
    max-height: 372px;
    border-radius: 9px;
}

.sa-page .sa-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.sa-page .sa-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f1f5f9;
}

.sa-page .sa-table th,
.sa-page .sa-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 9px 10px;
    text-align: left;
    vertical-align: top;
}

.sa-page .sa-table th {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--sa-text-dim);
    font-weight: 700;
}

.sa-page .sa-table td {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--sa-text-soft);
    line-height: 1.45;
}

.sa-page .sa-table tr[data-sa-entity-row] {
    cursor: pointer;
}

.sa-page .sa-table tr[data-sa-entity-row]:hover td {
    background: #f8fafc;
}

.sa-page .sa-alert-list {
    display: grid;
    gap: 8px;
}

.sa-page .sa-alert-row {
    border: 1px solid var(--sa-border);
    background: #ffffff;
    padding: 9px 10px;
    display: grid;
    gap: 2px;
    text-align: left;
    cursor: pointer;
    border-radius: 9px;
}

.sa-page .sa-alert-row.is-warn {
    border-color: rgba(180, 83, 9, 0.26);
    background: rgba(180, 83, 9, 0.06);
}

.sa-page .sa-alert-row.is-error {
    border-color: rgba(185, 28, 28, 0.26);
    background: rgba(185, 28, 28, 0.06);
}

.sa-page .sa-alert-level {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--sa-text-dim);
    font-weight: 700;
}

.sa-page .sa-alert-service {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--sa-text);
    font-weight: 600;
}

.sa-page .sa-alert-message {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--sa-text-soft);
}

.sa-page .sa-chart-wrap {
    height: 250px;
    min-height: 250px;
}

.sa-page .sa-mini-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 880px) {
    .sa-page .sa-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sa-page .sa-mini-card {
    border: 1px solid var(--sa-border);
    background: #ffffff;
    padding: 8px 9px;
    border-radius: 8px;
}

.sa-page .sa-mini-key {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--sa-text-dim);
    text-transform: none;
    letter-spacing: 0;
}

.sa-page .sa-mini-value {
    margin-top: 3px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    color: var(--sa-text);
    font-weight: 700;
}

.sa-page .sa-inspector-panel {
    position: sticky;
    top: 72px;
    padding: 12px;
    min-height: 680px;
}

.sa-page .sa-inspector-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid var(--sa-border);
    padding-bottom: 8px;
}

.sa-page .sa-inspector-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--sa-text-dim);
    text-transform: none;
    letter-spacing: 0;
}

.sa-page .sa-inspector-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    color: var(--sa-text);
    letter-spacing: 0;
    text-transform: none;
    font-weight: 700;
}

.sa-page .sa-close-btn {
    border: 1px solid var(--sa-border);
    background: var(--sa-surface-2);
    color: var(--sa-text-soft);
    width: 28px;
    height: 28px;
    cursor: pointer;
    border-radius: 7px;
}

.sa-page .sa-close-btn:hover {
    border-color: var(--sa-border-strong);
    background: #ffffff;
    color: var(--sa-text);
}

.sa-page .sa-inspector-empty {
    margin-top: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--sa-text-dim);
    line-height: 1.5;
}

.sa-page .sa-inspector-content {
    margin-top: 9px;
}

.sa-page .sa-inspector-kicker {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--sa-text-dim);
    text-transform: none;
    letter-spacing: 0;
}

.sa-page .sa-inspector-entity {
    margin-top: 3px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    color: var(--sa-text);
    letter-spacing: 0;
}

.sa-page .sa-inspector-tabs {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sa-page .sa-inspector-tab {
    border: 1px solid var(--sa-border);
    background: var(--sa-surface-2);
    color: var(--sa-text-soft);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
    padding: 6px 9px;
    cursor: pointer;
    border-radius: 8px;
}

.sa-page .sa-inspector-tab:hover,
.sa-page .sa-inspector-tab.is-active {
    border-color: rgba(15, 76, 129, 0.34);
    background: var(--sa-primary-soft);
    color: var(--sa-primary);
}

.sa-page .sa-inspector-body {
    margin-top: 10px;
}

.sa-page .sa-inspector-overview-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 8px;
}

@media (min-width: 1360px) {
    .sa-page .sa-inspector-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sa-page .sa-inspector-card {
    border: 1px solid var(--sa-border);
    background: #ffffff;
    padding: 8px;
    border-radius: 8px;
}

.sa-page .sa-inspector-list {
    display: grid;
    gap: 8px;
}

.sa-page .sa-inspector-list-item {
    border: 1px solid var(--sa-border);
    background: #ffffff;
    padding: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--sa-text-soft);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
}

.sa-page .sa-inspector-list-item:hover {
    border-color: rgba(15, 76, 129, 0.34);
    background: var(--sa-primary-soft);
}

.sa-page .sa-inspector-badge {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--sa-primary);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}

.sa-page .sa-log-ts {
    color: var(--sa-text-dim);
    white-space: nowrap;
}

.sa-page .sa-inspector-empty-state {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--sa-text-dim);
}

.sa-page .sa-inspector-json {
    margin-top: 8px;
    border: 1px solid var(--sa-border);
    background: #f8fafc;
    padding: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    color: #1e293b;
    max-height: 480px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border-radius: 8px;
}

.sa-page .sa-table-shell::-webkit-scrollbar,
.sa-page .sa-inspector-json::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.sa-page .sa-table-shell::-webkit-scrollbar-thumb,
.sa-page .sa-inspector-json::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.sa-page .sa-nav-row:focus-visible,
.sa-page .sa-subnav-item:focus-visible,
.sa-page .sa-inspector-tab:focus-visible,
.sa-page .sa-inspector-list-item:focus-visible,
.sa-page .sa-alert-row:focus-visible,
.sa-page .sa-close-btn:focus-visible {
    outline: 2px solid rgba(15, 76, 129, 0.45);
    outline-offset: 1px;
}

@media (max-width: 1179px) {
    .sa-page .sa-opsbar {
        flex-direction: column;
        align-items: stretch;
    }

    .sa-page .sa-opsbar-right {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sa-page .sa-sidebar-panel,
    .sa-page .sa-inspector-panel {
        position: static;
        min-height: auto;
    }

    .sa-page .sa-inspector {
        order: 3;
    }
}

@media (max-width: 760px) {
    .sa-page .sa-command-main {
        padding-top: 86px;
    }

    .sa-page .sa-opsbar {
        padding: 14px;
    }

    .sa-page .sa-heading {
        font-size: 1.25rem;
    }

    .sa-page .sa-main-panel,
    .sa-page .sa-sidebar-panel,
    .sa-page .sa-inspector-panel {
        padding: 10px;
    }

    .sa-page .sa-opsbar-right {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .sa-page .sa-main-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .sa-page .sa-main-title {
        font-size: 18px;
    }
}
