/* ============================================
   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);
}

/* === Accent Headline Text === */
.shimmer-text {
    color: #FF4500;
}

/* === 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);
}

.credentials-theme-page .soft-glow-primary {
    text-shadow: 0 0 34px rgba(255, 69, 0, 0.32), 0 0 72px rgba(255, 69, 0, 0.14);
}

/* === 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(18, 18, 18, 0.78);
    --dp-border: rgba(71, 85, 105, 0.52);
    --dp-border-surface: rgba(255, 255, 255, 0.09);
    --dp-border-top: rgba(255, 255, 255, 0.10);
    --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);

    --dp-shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 6px 18px rgba(0, 0, 0, 0.45);
    --dp-shadow-2: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 14px 34px rgba(0, 0, 0, 0.60);

    --dp-surface-gradient-card:  linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 42%);
    --dp-surface-gradient-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.020) 0%, rgba(255, 255, 255, 0) 40%);
}

.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(255, 69, 0, 0.05), 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-surface-gradient-panel), var(--dp-bg-1);
    border: 1px solid var(--dp-border-surface);
    border-top-color: var(--dp-border-top);
    box-shadow: var(--dp-shadow-1);
    transition: border-color 200ms ease, background-color 200ms ease, box-shadow 220ms ease, transform 180ms ease;
    overflow: hidden;
}

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

.dashboard-card:hover {
    background: var(--dp-surface-gradient-card), var(--dp-bg-2);
    border-color: rgba(255, 69, 0, 0.38);
    box-shadow: var(--dp-shadow-2);
    transform: translateY(-1px);
}

.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);
}

.intel-accordion-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    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.78);
    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;
}

.intel-accordion-trigger:hover {
    color: rgba(248, 250, 252, 0.95);
    border-color: rgba(255, 69, 0, 0.32);
    background: rgba(255, 69, 0, 0.08);
}

.intel-shortcut-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    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.65);
    padding: 0.5rem 0.7rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.intel-shortcut-btn:hover {
    color: rgba(248, 250, 252, 0.92);
    border-color: rgba(255, 69, 0, 0.28);
    background: rgba(255, 69, 0, 0.07);
}

#investigative-search-panel {
    max-height: 420px;
    overflow: hidden;
    transition: max-height 220ms ease, opacity 180ms ease;
    opacity: 1;
}

#investigative-search-panel.is-collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

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

    .intel-surface-tab.is-active {
        background: rgba(255, 69, 0, 0.12);
        border-color: rgba(255, 69, 0, 0.35);
        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;
}

/* === User Menu Dropdown === */
.user-menu-dropdown {
    position: relative;
}

.user-menu-trigger {
    cursor: pointer;
    outline: none;
}

.user-menu-trigger:focus-visible {
    outline: 1px solid rgba(255, 69, 0, 0.5);
    outline-offset: 1px;
}

.user-menu-trigger:hover .user-menu-avatar {
    box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.3);
}

.user-menu-avatar {
    transition: box-shadow 200ms ease;
}

.user-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu-fallback-icon {
    color: rgba(248, 250, 252, 0.45);
    transition: color 200ms ease;
}

.user-menu-trigger:hover .user-menu-fallback-icon {
    color: rgba(248, 250, 252, 0.7);
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: rgb(0, 0, 0);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 69, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 70;
    overflow: hidden;
}

.user-menu-panel.user-menu-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(248, 250, 252, 0.65);
    transition: all 150ms ease;
    text-decoration: none;
    border-radius: 0.25rem;
}

.user-menu-item:hover,
.user-menu-item:focus-visible {
    background: rgba(255, 69, 0, 0.08);
    color: #f8fafc;
    outline: 1px solid rgba(255, 69, 0, 0.25);
}

.user-menu-item-danger {
    color: rgba(255, 69, 0, 0.8);
}

.user-menu-item-danger:hover,
.user-menu-item-danger:focus-visible {
    background: rgba(255, 69, 0, 0.12);
    color: #FF4500;
    outline: 1px solid rgba(255, 69, 0, 0.35);
}

.user-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 2px 0;
}

.user-menu-trigger[data-open="true"] #user-menu-chevron-desktop,
.user-menu-trigger[data-open="true"] .user-menu-chevron {
    transform: rotate(180deg);
}

/* === 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-table-wrapper,
.custom-scrollbar {
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.02);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.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);
    -webkit-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);
    -webkit-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);
}

/* === Asset Treemap === */
.treemap-cell {
    position: absolute;
    border-radius: 3px;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 8px;
    overflow: hidden;
    transition: filter 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.treemap-cell:hover {
    filter: brightness(1.3);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    z-index: 2;
}

.treemap-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    word-break: break-word;
}

.treemap-value {
    font-family: ui-monospace, monospace;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    margin-top: 2px;
}

.treemap-count {
    font-family: ui-monospace, monospace;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1;
    margin-top: 2px;
}

.treemap-tooltip {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(255, 69, 0, 0.25);
    border-radius: 4px;
    padding: 10px 14px;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    color: rgba(248, 250, 252, 0.7);
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.treemap-tooltip .ct-name {
    color: #FF4500;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.treemap-tooltip .ct-val {
    color: rgba(248, 250, 252, 0.45);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === Domain Exposure Bar Chart === */
.exposure-bar {
    transition: filter 0.15s ease-out, opacity 0.2s ease-out;
}
.exposure-bar:hover {
    filter: brightness(1.2) drop-shadow(0 0 6px currentColor);
}

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

/* === Map Intelligence Surface === */

/* Map SVG fills container via absolute positioning + viewBox crop in JS */
.map-svg-scaled {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Glassmorphism live badge */
.map-live-badge {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 69, 0, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
}

.map-live-badge:hover {
    border-color: rgba(255, 69, 0, 0.35);
}

/* Intelligence panel */
.map-intel-panel {
    min-height: 200px;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                padding 0.35s ease;
    overflow: hidden;
}

.map-intel-panel-collapsed {
    max-height: 0 !important;
    opacity: 0;
    padding: 0 !important;
    pointer-events: none;
    overflow: hidden;
}

/* Country row */
.map-country-row {
    display: grid;
    grid-template-columns: 26px 1fr 80px 48px 38px;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 2px;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
    cursor: default;
}

.map-country-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

.map-country-iso {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 69, 0, 0.7);
    text-align: center;
    letter-spacing: 0.08em;
    background: rgba(255, 69, 0, 0.08);
    border: 1px solid rgba(255, 69, 0, 0.12);
    border-radius: 2px;
    padding: 1px 3px;
    line-height: 1.4;
}

.map-country-row:hover .map-country-iso {
    color: #FF4500;
    background: rgba(255, 69, 0, 0.15);
    border-color: rgba(255, 69, 0, 0.3);
}

.map-country-name {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}

.map-country-row:hover .map-country-name {
    color: rgba(255, 255, 255, 0.9);
}

/* Progress bar track + fill */
.map-country-bar-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    overflow: hidden;
}

.map-country-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 69, 0, 0.5), #FF4500);
    border-radius: 2px;
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 6px rgba(255, 69, 0, 0.3);
}

.map-country-row:hover .map-country-bar-fill {
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.map-country-count {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    font-weight: 600;
}

.map-country-pct {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.3);
    text-align: right;
}

/* Skeleton rows */
.map-country-row-skeleton {
    height: 28px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.map-country-row-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.04),
        transparent
    );
    animation: shimmer-slide 1.5s ease-in-out infinite;
}

/* Add a fake bar element inside skeleton */
.map-country-row-skeleton::before {
    content: '';
    position: absolute;
    left: 36px;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    width: calc(var(--bar-w, 60%) - 36px);
    background: rgba(255, 69, 0, 0.06);
    border-radius: 2px;
}

.map-country-row-skeleton:nth-child(1) { --bar-w: 85%; }
.map-country-row-skeleton:nth-child(2) { --bar-w: 70%; }
.map-country-row-skeleton:nth-child(3) { --bar-w: 55%; }
.map-country-row-skeleton:nth-child(4) { --bar-w: 45%; }
.map-country-row-skeleton:nth-child(5) { --bar-w: 35%; }
.map-country-row-skeleton:nth-child(6) { --bar-w: 28%; }
.map-country-row-skeleton:nth-child(7) { --bar-w: 20%; }

.shimmer-row {
    animation: shimmer-opacity 1.5s ease-in-out infinite;
}

@keyframes shimmer-slide {
    0%   { left: -100%; }
    100% { left: 100%; }
}

@keyframes shimmer-opacity {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; }
}

/* === 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 SVG draw-on */
.preloader-prism path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: prism-draw 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.preloader-prism path:nth-child(2) {
    animation-delay: 0.2s;
}

.preloader-prism path:nth-child(3) {
    animation-delay: 0.4s;
}

.preloader-prism circle {
    opacity: 0;
    animation: prism-dot 0.4s ease-out 0.7s forwards;
}

@keyframes prism-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes prism-dot {
    to {
        opacity: 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);
}

/* Accent color on child reveal spans */
.text-reveal-ready .shimmer-text .reveal-word {
    color: #FF4500;
}

/* === 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);
}


/* === 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;
    }

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

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

    .hud-float {
        display: none;
    }

    #particle-network {
        opacity: 0.45;
    }

    #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;
    }


    .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: #000000;
    border: 1px solid var(--dp-border);
    border-radius: 0.85rem;
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.34);
}

.dashboard-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    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, box-shadow 0.22s ease;
    text-decoration: none;
    cursor: pointer;
}

.dashboard-sidebar-item .material-symbols-outlined {
    width: 18px;
    min-width: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.dashboard-sidebar-item.active {
    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);
}

/* === Mini-variant sidebar (category quick search screens) === */
@media (min-width: 1024px) {
    .dashboard-sidebar[data-mini-variant='true'] {
        --mini-collapsed-width: 56px;
        --mini-expanded-width: 232px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 45;
        width: var(--mini-collapsed-width);
        height: 100vh;
        max-height: 100vh;
        border-radius: 0 0.9rem 0.9rem 0;
        border-left: 0;
        padding-top: 5.5rem;
        overflow-x: visible;
        overflow-y: auto;
        transition:
            width 150ms cubic-bezier(0.4, 0, 0.2, 1),
            background-color 150ms ease,
            border-color 150ms ease,
            box-shadow 150ms ease;
        will-change: width;
    }

    .dashboard-sidebar[data-mini-variant='true'].mini-expanded {
        width: var(--mini-expanded-width);
        box-shadow: 0 22px 52px rgba(2, 6, 23, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-item {
        position: relative;
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
        padding: 0;
        margin-inline: auto;
        justify-content: center;
        gap: 0;
        border-left: 0;
        border-radius: 0.55rem;
        color: rgba(148, 163, 184, 0.74);
        box-shadow: none;
        transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
    }

    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-item::before {
        content: '';
        position: absolute;
        left: -4px;
        top: 7px;
        bottom: 7px;
        width: 2px;
        border-radius: 2px;
        background: #FF4500;
        opacity: 0;
        transition: opacity 150ms ease;
    }

    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-item:hover {
        background: rgba(255, 69, 0, 0.11);
        color: rgba(255, 182, 148, 0.95);
        box-shadow: inset 0 0 0 1px rgba(255, 69, 0, 0.16);
    }

    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-item:hover::before,
    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-item.active::before {
        opacity: 1;
    }

    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-item.active {
        background: linear-gradient(90deg, rgba(255, 69, 0, 0.25), rgba(255, 69, 0, 0.1));
        color: #ff9a72;
        box-shadow: inset 0 0 0 1px rgba(255, 69, 0, 0.24), 0 0 16px rgba(255, 69, 0, 0.16);
    }

    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-accordion-trigger {
        justify-content: center;
    }

    .dashboard-sidebar[data-mini-variant='true'].mini-expanded .dashboard-sidebar-accordion-trigger {
        justify-content: flex-start;
    }

    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-chevron {
        margin-left: auto;
        font-size: 16px !important;
        opacity: 0.85;
    }

    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-accordion-panel {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        transition: max-height 150ms ease, opacity 150ms ease;
    }

    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-accordion-panel:not(.is-collapsed) {
        max-height: 340px;
        opacity: 1;
        pointer-events: auto;
    }

    .dashboard-sidebar[data-mini-variant='true'].mini-expanded .dashboard-sidebar-accordion-panel {
        padding-left: 0;
    }

    .dashboard-sidebar[data-mini-variant='true'].mini-expanded .dashboard-sidebar-accordion-panel .dashboard-sidebar-item {
        margin-left: 18px;
        width: calc(100% - 26px);
    }

    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-icon {
        width: 22px;
        min-width: 22px;
        height: 22px;
        min-height: 22px;
        font-size: 21px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        flex-shrink: 0;
    }

    .dashboard-sidebar[data-mini-variant='true'] .sidebar-label {
        display: inline-block;
        max-width: 0;
        opacity: 0;
        transform: translateX(-5px);
        overflow: hidden;
        white-space: nowrap;
        pointer-events: none;
        transition:
            max-width 150ms ease,
            opacity 120ms ease,
            transform 150ms ease;
    }

    .dashboard-sidebar[data-mini-variant='true'].mini-expanded .sidebar-label {
        max-width: 160px;
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    .dashboard-sidebar[data-mini-variant='true'].mini-expanded .dashboard-sidebar-item {
        width: calc(100% - 16px);
        min-width: 0;
        height: 38px;
        margin-inline: 8px;
        padding: 0 0.75rem;
        justify-content: flex-start;
        gap: 0.62rem;
    }

    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-header,
    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-nav,
    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-footer,
    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-quick-group {
        padding-left: 0;
        padding-right: 0;
    }

    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-header,
    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-footer {
        margin-inline: 8px;
    }

    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-context-card {
        margin-inline: 8px;
        background: rgba(255, 255, 255, 0.045);
        border-color: rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .dashboard-sidebar[data-mini-variant='true']:not(.mini-expanded) .dashboard-sidebar-context-card {
        display: none;
    }

    .dashboard-sidebar[data-mini-variant='true']:not(.mini-expanded) .dashboard-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        margin: 0 0 6px 0;
        padding: 0;
        border: 0;
    }

    .dashboard-sidebar[data-mini-variant='true']:not(.mini-expanded) .dashboard-sidebar-header > .flex {
        width: 38px;
        height: 38px;
        margin: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .dashboard-sidebar[data-mini-variant='true']:not(.mini-expanded) .dashboard-sidebar-header .dashboard-sidebar-icon {
        font-size: 21px !important;
    }

    .dashboard-sidebar[data-mini-variant='true']:not(.mini-expanded) .dashboard-sidebar-header,
    .dashboard-sidebar[data-mini-variant='true']:not(.mini-expanded) .dashboard-sidebar-footer,
    .dashboard-sidebar[data-mini-variant='true']:not(.mini-expanded) .dashboard-sidebar-quick-group {
        border: 0;
        margin-top: 0;
        padding-top: 0;
    }

    .dashboard-sidebar[data-mini-variant='true']:not(.mini-expanded) .dashboard-sidebar-investigative-group {
        width: 100%;
    }

    .dashboard-sidebar[data-mini-variant='true']:not(.mini-expanded) .dashboard-sidebar-accordion-trigger .sidebar-label,
    .dashboard-sidebar[data-mini-variant='true']:not(.mini-expanded) .dashboard-sidebar-accordion-trigger .dashboard-sidebar-chevron {
        display: none !important;
    }

    .dashboard-sidebar[data-mini-variant='true']:not(.mini-expanded) .dashboard-sidebar-accordion-panel {
        display: none;
    }

    .dashboard-sidebar[data-mini-variant='true']:not(.mini-expanded) .dashboard-sidebar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .dashboard-sidebar[data-mini-variant='true']:not(.mini-expanded) .dashboard-sidebar-quick-group {
        display: contents;
    }

    .dashboard-sidebar[data-mini-variant='true'].mini-expanded .dashboard-sidebar-nav {
        gap: 4px;
        padding-inline: 0;
    }

    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-home {
        margin-top: 0;
    }

    .dashboard-sidebar[data-mini-variant='true']:not(.mini-expanded) .dashboard-sidebar-item[data-tooltip]:hover::after,
    .dashboard-sidebar[data-mini-variant='true']:not(.mini-expanded) .dashboard-sidebar-item[data-tooltip]:focus-visible::after {
        content: attr(data-tooltip);
        position: absolute;
        left: calc(100% + 10px);
        top: 50%;
        transform: translateY(-50%);
        padding: 0.32rem 0.5rem;
        border-radius: 0.35rem;
        border: 1px solid rgba(100, 116, 139, 0.45);
        background: rgba(2, 6, 23, 0.94);
        color: rgba(226, 232, 240, 0.92);
        font-size: 10px;
        line-height: 1;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-family: 'Space Grotesk', sans-serif;
        white-space: nowrap;
        pointer-events: none;
        box-shadow: 0 10px 20px rgba(2, 6, 23, 0.45);
    }

    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-home {
        min-height: 2.2rem;
        margin-top: 0.2rem;
    }

    .dashboard-sidebar[data-mini-variant='true'] ~ .dashboard-main-content {
        margin-left: 66px;
        width: calc(100% - 66px);
        transition: margin-left 150ms cubic-bezier(0.4, 0, 0.2, 1), width 150ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .dashboard-sidebar[data-mini-variant='true'].mini-expanded ~ .dashboard-main-content {
        margin-left: 242px;
        width: calc(100% - 242px);
    }

    .dashboard-sidebar[data-mini-variant='true'] ~ .dashboard-main-content #sidebar-collapse-btn {
        display: none !important;
    }
}

.dashboard-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(6px);
    -webkit-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;
}

.assets-password-plain {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-all;
}

/* === Password Strength === */
.strength-weak { color: rgba(255, 69, 0, 0.55); }
.strength-medium { color: rgba(255, 69, 0, 0.70); }
.strength-strong { color: #FF4500; }

/* === Risk Level Badges === */
.risk-critical { color: #FF4500; background: rgba(255, 69, 0, 0.12); border: 1px solid rgba(255, 69, 0, 0.3); }
.risk-high { color: #FF4500; background: rgba(255, 69, 0, 0.10); border: 1px solid rgba(255, 69, 0, 0.25); }
.risk-medium { color: rgba(255, 69, 0, 0.70); background: rgba(255, 69, 0, 0.08); border: 1px solid rgba(255, 69, 0, 0.18); }
.risk-low { color: rgba(148, 163, 184, 0.80); background: rgba(148, 163, 184, 0.08); border: 1px solid rgba(148, 163, 184, 0.2); }

/* === MFA State Badges === */
.mfa-badge-bypassed { color: #FF4500; background: rgba(255, 69, 0, 0.1); border: 1px solid rgba(255, 69, 0, 0.3); }
.mfa-badge-not-available { color: rgba(255, 69, 0, 0.75); background: rgba(255, 69, 0, 0.08); border: 1px solid rgba(255, 69, 0, 0.22); }
.mfa-badge-unknown { color: rgba(255, 69, 0, 0.55); background: rgba(255, 69, 0, 0.06); border: 1px solid rgba(255, 69, 0, 0.16); }
.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 8px rgba(148, 163, 184, 0.10);
}

#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: #FF4500; text-shadow: 0 0 20px rgba(255, 69, 0, 0.45); }
.threat-score-high { color: rgba(255, 69, 0, 0.85); text-shadow: 0 0 20px rgba(255, 69, 0, 0.35); }
.threat-score-medium { color: rgba(255, 69, 0, 0.65); text-shadow: 0 0 20px rgba(255, 69, 0, 0.25); }
.threat-score-low { color: rgba(148, 163, 184, 0.75); text-shadow: 0 0 14px rgba(148, 163, 184, 0.2); }

/* === Cookie Freshness Badges === */
.freshness-new { color: #FF4500; background: rgba(255, 69, 0, 0.1); border: 1px solid rgba(255, 69, 0, 0.28); }
.freshness-stale { color: rgba(255, 69, 0, 0.60); background: rgba(255, 69, 0, 0.06); border: 1px solid rgba(255, 69, 0, 0.16); }
.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); }

/* === Category Search Motion === */
#credentials-filter-panel,
#cookies-filter-panel {
    transition: opacity 220ms ease, transform 220ms ease;
    transform-origin: top;
}

#credentials-filter-panel:not(.hidden),
#cookies-filter-panel:not(.hidden) {
    animation: category-filter-panel-in 220ms cubic-bezier(0.2, 1, 0.3, 1);
}

#category-file-preview-modal .category-file-preview-shell {
    opacity: 0;
    transform: translateY(12px) scale(0.992);
    transition: opacity 220ms ease, transform 240ms cubic-bezier(0.2, 1, 0.3, 1);
}

#category-file-preview-modal.flex .category-file-preview-shell {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#category-ai-chat-panel,
#category-victim-file-tree {
    transition: transform 260ms cubic-bezier(0.2, 1, 0.3, 1), opacity 220ms ease;
    opacity: 0;
}

#category-ai-chat-panel {
    transform: translateX(18px);
}

#category-victim-file-tree {
    transform: translateX(-18px);
}

#category-ai-chat-panel:not(.hidden),
#category-victim-file-tree:not(.hidden) {
    opacity: 1;
    transform: translateX(0);
}

#category-victim-file-tree-body [data-tree-path] {
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

#category-victim-file-tree-body [data-tree-path]:hover {
    transform: translateX(2px);
}

@keyframes category-filter-panel-in {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }

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

/* === Category Search Surface Modernization === */
.category-page-hero {
    position: relative;
    overflow: hidden;
    border-color: rgba(100, 116, 139, 0.58) !important;
}

.category-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 8%, rgba(255, 69, 0, 0.16), transparent 44%),
        radial-gradient(circle at 86% 16%, rgba(255, 69, 0, 0.06), transparent 42%),
        linear-gradient(140deg, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.82));
}

.category-page-hero > * {
    position: relative;
    z-index: 1;
}

.category-page-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(15, 23, 42, 0.52);
    color: rgba(226, 232, 240, 0.82);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    min-height: 1.9rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.category-search-input-shell {
    background: rgba(15, 23, 42, 0.76);
    border-color: rgba(71, 85, 105, 0.72) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 46px rgba(2, 6, 23, 0.28);
}

.category-search-input-shell:focus-within {
    border-color: rgba(255, 69, 0, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(255, 69, 0, 0.2), 0 18px 44px rgba(2, 6, 23, 0.34);
}

.category-search-submit-btn {
    background: rgba(255, 69, 0, 0.12);
    color: rgba(255, 69, 0, 0.95);
}

.category-search-submit-btn:hover {
    background: rgba(255, 69, 0, 0.22);
}

.category-search-submit-btn:active {
    transform: translateY(1px);
}

.category-search-submit-btn:focus-visible,
.category-filter-toggle:focus-visible,
#credentials-page-prev:focus-visible,
#credentials-page-next:focus-visible,
#cookies-page-prev:focus-visible,
#cookies-page-next:focus-visible,
#stolen-files-page-prev:focus-visible,
#stolen-files-page-next:focus-visible,
#stolen-files-open-chat:focus-visible,
#category-open-ai-from-modal:focus-visible,
#category-open-victim-tree:focus-visible,
#category-file-preview-close:focus-visible,
#category-ai-chat-close:focus-visible,
#category-ai-chat-send:focus-visible,
#category-victim-file-tree-close:focus-visible,
#sidebar-toggle:focus-visible,
#sidebar-collapse-btn:focus-visible,
#category-file-preview-download:focus-visible,
#category-victim-file-tree-body [data-tree-path]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 1px rgba(255, 69, 0, 0.55), 0 0 0 3px rgba(255, 69, 0, 0.22);
}

.category-stat-card {
    background: rgba(15, 23, 42, 0.62);
    border-color: rgba(71, 85, 105, 0.64) !important;
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.06);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 200ms ease;
}

.category-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 69, 0, 0.34) !important;
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.32), inset 0 1px 0 rgba(148, 163, 184, 0.1);
}

.category-filter-toggle {
    background: rgba(15, 23, 42, 0.58);
}

.category-filter-toggle:hover {
    color: rgba(255, 69, 0, 0.95);
    border-color: rgba(255, 69, 0, 0.45);
    background: rgba(255, 69, 0, 0.12);
}

.category-filter-panel {
    background: rgba(15, 23, 42, 0.58);
    border-color: rgba(71, 85, 105, 0.64) !important;
}

.category-filter-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.category-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    min-height: 3rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(100, 116, 139, 0.52);
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.5);
    transition: border-color 180ms ease, background-color 180ms ease;
}

.category-filter-item:hover {
    border-color: rgba(255, 69, 0, 0.36);
    background: rgba(255, 69, 0, 0.08);
}

.category-filter-item-title {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.84rem;
    line-height: 1.25;
    color: rgba(226, 232, 240, 0.92);
}

.category-filter-item-sub {
    margin-top: 0.2rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.8);
    line-height: 1.35;
}

/* === Credentials page style alignment with public pages === */
.credentials-theme-page {
    --dp-bg-0: #000000;
    --dp-bg-1: rgba(8, 8, 8, 0.74);
    --dp-bg-2: rgba(14, 14, 14, 0.88);
    --dp-border: rgba(255, 255, 255, 0.05);
    --dp-border-strong: rgba(255, 255, 255, 0.1);
    --dp-text-1: rgba(248, 250, 252, 0.95);
    --dp-text-2: rgba(203, 213, 225, 0.84);
    --dp-text-3: rgba(148, 163, 184, 0.78);
    --dp-text-4: rgba(148, 163, 184, 0.62);
}

.credentials-theme-page main::before {
    content: none;
    display: none;
}

.credentials-theme-page .dashboard-surface,
.credentials-theme-page .dashboard-sidebar {
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.032));
    border-color: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.credentials-theme-page .dashboard-main-content > .section-reveal:first-child {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
}

.credentials-theme-page .dashboard-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.credentials-theme-page .dashboard-sidebar-item.active {
    background: linear-gradient(90deg, rgba(255, 69, 0, 0.22), rgba(255, 69, 0, 0.07));
    color: rgba(255, 171, 118, 0.96);
}

.credentials-command-hero {
    position: relative;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.category-command-title {
    font-size: clamp(2.15rem, 6.6vw, 6rem);
    letter-spacing: -0.04em;
    line-height: 0.86;
}

.category-command-copy {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    position: relative;
}

.category-command-copy::before {
    content: '//';
    position: absolute;
    left: 0;
    top: 0.18em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.7em;
    letter-spacing: 0.04em;
    color: rgba(255, 69, 0, 0.5);
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.credentials-theme-page .dashboard-shell {
    gap: clamp(1rem, 2vw, 2rem);
    align-items: flex-start;
}

.credentials-theme-page .dashboard-main-content {
    width: 100%;
    min-width: 0;
}

.category-table-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.68) transparent;
    overscroll-behavior-x: contain;
}

.category-table-scroll::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.category-table-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.category-table-scroll::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.68);
    border-radius: 999px;
}

.category-table-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.9);
}

.category-results-pager {
    row-gap: 0.75rem;
}

.category-stat-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 1px rgba(255, 69, 0, 0.5), 0 0 0 3px rgba(255, 69, 0, 0.2);
}

.credentials-theme-page .category-filter-helper {
    color: rgba(148, 163, 184, 0.82);
}

.credentials-theme-page .category-page-chip,
.credentials-theme-page .category-stat-card,
.credentials-theme-page .category-filter-panel,
.credentials-theme-page .category-filter-toggle,
.credentials-theme-page .category-filter-item,
.credentials-theme-page .category-search-input-shell,
.credentials-theme-page .dashboard-data-table thead th,
.credentials-theme-page .dashboard-data-table .data-row:nth-child(even),
.credentials-theme-page .dashboard-data-table .data-row:hover,
.credentials-theme-page #credentials-page-prev,
.credentials-theme-page #credentials-page-next,
.credentials-theme-page #sidebar-collapse-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.credentials-theme-page .dashboard-data-table .data-row:hover {
    background: rgba(255, 255, 255, 0.075);
}

.credentials-theme-page .category-filter-item-sub {
    color: rgba(148, 163, 184, 0.76);
}

.credentials-theme-page .category-page-chip {
    color: rgba(226, 232, 240, 0.9);
}

.credentials-theme-page .category-search-submit-btn,
.credentials-theme-page .category-filter-toggle:hover,
.credentials-theme-page .category-stat-card:hover,
.credentials-theme-page .category-filter-item:hover,
.credentials-theme-page #credentials-page-prev:hover,
.credentials-theme-page #credentials-page-next:hover,
.credentials-theme-page #sidebar-collapse-btn:hover {
    background: rgba(255, 69, 0, 0.16);
    border-color: rgba(255, 69, 0, 0.45) !important;
}

.credentials-theme-page .category-search-submit-btn {
    background: #FF4500;
    color: #0a0a0a;
    font-weight: 800;
    border-left-color: rgba(255, 69, 0, 0.7) !important;
}

.credentials-theme-page .category-search-submit-btn:hover {
    background: #ff5a1f;
    color: #000000;
}

.credentials-theme-page #stolen-files-open-chat {
    background: #FF4500 !important;
    color: #0a0a0a !important;
    border-color: rgba(255, 69, 0, 0.72) !important;
    font-weight: 800;
}

.credentials-theme-page #stolen-files-open-chat:hover {
    background: #ff5a1f !important;
    color: #000000 !important;
}

.credentials-theme-page #category-stats-grid .category-stat-card [data-card-value] p:first-child {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    color: rgba(203, 213, 225, 0.55);
}

.credentials-theme-page #category-stats-grid .category-stat-card [data-card-value] p[data-value] {
    font-size: 2.05rem;
    font-weight: 700;
    color: rgba(248, 250, 252, 0.97);
}

.credentials-theme-page #main-header nav a {
    font-size: 11px !important;
    letter-spacing: 0.12em !important;
}


.credential-results-layout {
    width: 100%;
}

.credentials-theme-page .credential-results-layout > #credentials-results-grid,
.credentials-theme-page .credential-results-layout > #credentials-results-empty,
.credentials-theme-page .credential-results-layout > #credentials-results-error,
.credentials-theme-page .credential-results-layout > .credential-results-pager {
    margin-left: 0;
    margin-right: 0;
}

.credential-results-pager {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.035);
    padding: 0.6rem 0.7rem;
}

.credentials-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
    align-items: stretch;
}

.credential-result-status {
    grid-column: 1 / -1;
    border-radius: 0.8rem;
    border: 1px dashed rgba(148, 163, 184, 0.48);
    background: rgba(15, 23, 42, 0.58);
    color: rgba(203, 213, 225, 0.9);
    padding: 1rem;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.credential-result-status.is-error {
    border-color: rgba(248, 113, 113, 0.52);
    background: rgba(127, 29, 29, 0.28);
    color: rgba(254, 202, 202, 0.98);
}

.credential-result-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 258px;
    padding: 0.9rem 0.95rem;
    border-radius: 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.11);
    transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    content-visibility: auto;
    contain: layout style paint;
}

.credential-result-card:hover,
.credential-result-card:focus-within {
    border-color: rgba(255, 69, 0, 0.56);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 69, 0, 0.28);
    transform: translateY(-2px);
}

.credential-result-card:focus-visible {
    outline: none;
    border-color: rgba(255, 69, 0, 0.7);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 69, 0, 0.32);
}

.credential-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.credential-card-domain {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.9rem;
    line-height: 1.22;
    font-weight: 700;
    color: #ff6a2a;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5), 0 0 20px rgba(255, 69, 0, 0.22);
    word-break: break-word;
}

.credential-card-domain .material-symbols-outlined {
    font-size: 15px;
    color: #ff6a2a;
    text-shadow: 0 0 8px rgba(255, 69, 0, 0.45);
    flex-shrink: 0;
}

.credential-card-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.credential-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 1.68rem;
    padding: 0.08rem 0.5rem;
    border-radius: 0.46rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(0, 0, 0, 0.86);
    color: rgba(203, 213, 225, 0.9);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.credential-card-pill .material-symbols-outlined {
    font-size: 13px;
}

.credential-card-pill:hover,
.credential-card-pill:focus-visible {
    color: rgba(241, 245, 249, 1);
    border-color: rgba(255, 69, 0, 0.48);
    background: rgba(255, 69, 0, 0.16);
    outline: none;
}

.credential-card-pill:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.credential-card-url {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.74rem;
    color: rgba(148, 163, 184, 0.96);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.credential-card-cred-group {
    display: grid;
    gap: 0.46rem;
}

.credential-card-field {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.credential-card-field.is-inline .credential-card-value-row {
    background: rgba(0, 0, 0, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 0.56rem;
    min-height: 2rem;
    padding: 0.22rem 0.34rem 0.22rem 0.56rem;
}

.credential-card-label {
    display: block;
    margin-bottom: 0.2rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.62rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(148, 163, 184, 0.82);
}

.credential-card-value-row {
    display: flex;
    align-items: center;
    gap: 0.26rem;
}

.credential-card-value {
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.77rem;
    line-height: 1.35;
    color: rgba(241, 245, 249, 0.97);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.credential-card-password {
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
}

.credential-card-password.password-reveal-cell {
    text-align: left;
}

.credential-card-password.password-reveal-cell .password-hover-plain {
    color: rgba(241, 245, 249, 0.97);
}

.credential-card-action {
    width: 1.92rem;
    height: 1.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(0, 0, 0, 0.86);
    color: rgba(203, 213, 225, 0.9);
    transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.credential-card-action.is-inline-copy {
    width: 1.72rem;
    height: 1.72rem;
    border-radius: 0.46rem;
}

.credential-card-action .material-symbols-outlined {
    font-size: 16px;
}

.credential-card-action:hover,
.credential-card-action:focus-visible {
    color: rgba(255, 238, 231, 1);
    border-color: rgba(255, 69, 0, 0.48);
    background: rgba(255, 69, 0, 0.16);
    outline: none;
}

.credential-card-action:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}

.credential-card-action.is-copied {
    border-color: rgba(74, 222, 128, 0.62);
    color: rgba(187, 247, 208, 0.95);
    background: rgba(22, 101, 52, 0.5);
}

.credential-card-action.is-copy-failed {
    border-color: rgba(248, 113, 113, 0.62);
    color: rgba(254, 202, 202, 0.95);
    background: rgba(127, 29, 29, 0.5);
}

.credential-card-meta {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
    padding-top: 0.62rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.credential-card-meta-item {
    min-width: 0;
}

.credential-card-meta-value {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    line-height: 1.3;
    color: rgba(226, 232, 240, 0.92);
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
}

@media (max-width: 1199px) {
    .credentials-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 699px) {
    .credentials-results-grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .credential-card-meta-item:last-child {
        grid-column: 1 / -1;
    }
}

.credentials-theme-page .category-results-pager-btn:disabled {
    opacity: 0.45;
}

.cookie-results-layout {
    width: 100%;
}

.credentials-theme-page .cookie-results-layout > #cookies-results-grid,
.credentials-theme-page .cookie-results-layout > #cookies-results-empty,
.credentials-theme-page .cookie-results-layout > #cookies-results-error,
.credentials-theme-page .cookie-results-layout > .cookie-results-pager {
    margin-left: 0;
    margin-right: 0;
}

.cookie-results-pager {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.035);
    padding: 0.6rem 0.7rem;
}

.cookies-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
    align-items: stretch;
}

.cookie-result-status {
    grid-column: 1 / -1;
    border-radius: 0.8rem;
    border: 1px dashed rgba(148, 163, 184, 0.48);
    background: rgba(15, 23, 42, 0.58);
    color: rgba(203, 213, 225, 0.9);
    padding: 1rem;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.cookie-result-status.is-error {
    border-color: rgba(248, 113, 113, 0.52);
    background: rgba(127, 29, 29, 0.28);
    color: rgba(254, 202, 202, 0.98);
}

.cookie-result-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 258px;
    padding: 0.9rem 0.95rem;
    border-radius: 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.11);
    transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    content-visibility: auto;
    contain: layout style paint;
}

.cookie-result-card:hover,
.cookie-result-card:focus-within {
    border-color: rgba(255, 69, 0, 0.56);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 69, 0, 0.28);
    transform: translateY(-2px);
}

.cookie-result-card:focus-visible {
    outline: none;
    border-color: rgba(255, 69, 0, 0.7);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 69, 0, 0.32);
}

.cookie-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.cookie-card-domain {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.9rem;
    line-height: 1.22;
    font-weight: 700;
    color: #ff6a2a;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5), 0 0 20px rgba(255, 69, 0, 0.22);
    word-break: break-word;
}

.cookie-card-domain .material-symbols-outlined {
    font-size: 15px;
    color: #ff6a2a;
    text-shadow: 0 0 8px rgba(255, 69, 0, 0.45);
    flex-shrink: 0;
}

.cookie-card-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.cookie-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 1.68rem;
    padding: 0.08rem 0.5rem;
    border-radius: 0.46rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(0, 0, 0, 0.86);
    color: rgba(203, 213, 225, 0.9);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.cookie-card-pill .material-symbols-outlined {
    font-size: 13px;
}

.cookie-card-pill:hover,
.cookie-card-pill:focus-visible {
    color: rgba(241, 245, 249, 1);
    border-color: rgba(255, 69, 0, 0.48);
    background: rgba(255, 69, 0, 0.16);
    outline: none;
}

.cookie-card-pill:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.cookie-card-cred-group {
    display: grid;
    gap: 0.46rem;
}

.cookie-card-field {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.cookie-card-field.is-inline .cookie-card-value-row {
    background: rgba(0, 0, 0, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 0.56rem;
    min-height: 2rem;
    padding: 0.22rem 0.34rem 0.22rem 0.56rem;
}

.cookie-card-label {
    display: block;
    margin-bottom: 0.2rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.62rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(148, 163, 184, 0.82);
}

.cookie-card-value-row {
    display: flex;
    align-items: center;
    gap: 0.26rem;
}

.cookie-card-value {
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.77rem;
    line-height: 1.35;
    color: rgba(241, 245, 249, 0.97);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cookie-card-cookie-value {
    display: block;
    min-height: 1.6rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.cookie-card-cookie-value.password-reveal-cell {
    text-align: left;
}

.cookie-card-field.cookie-value-field .cookie-card-value-row {
    align-items: flex-start;
}

.cookie-card-field.cookie-value-field .cookie-card-action.is-inline-copy {
    margin-top: 0.1rem;
}

.cookie-card-field.cookie-value-field .password-hover-plain {
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cookie-card-info {
    margin-top: auto;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 0.58rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    flex-wrap: nowrap;
}

.cookie-card-info-item {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    line-height: 1.35;
    color: rgba(203, 213, 225, 0.92);
    white-space: normal;
    word-break: break-word;
    min-width: 0;
    flex: 1 1 0;
}

.cookie-card-info-item span {
    color: rgba(148, 163, 184, 0.84);
}

.cookie-card-cookie-value.password-reveal-cell .password-hover-plain {
    color: rgba(241, 245, 249, 0.97);
}

.cookie-card-action {
    width: 1.92rem;
    height: 1.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(0, 0, 0, 0.86);
    color: rgba(203, 213, 225, 0.9);
    transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.cookie-card-action.is-inline-copy {
    width: 1.72rem;
    height: 1.72rem;
    border-radius: 0.46rem;
}

.cookie-card-action .material-symbols-outlined {
    font-size: 16px;
}

.cookie-card-action:hover,
.cookie-card-action:focus-visible {
    color: rgba(255, 238, 231, 1);
    border-color: rgba(255, 69, 0, 0.48);
    background: rgba(255, 69, 0, 0.16);
    outline: none;
}

.cookie-card-action:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}

.cookie-card-action.is-copied {
    border-color: rgba(74, 222, 128, 0.62);
    color: rgba(187, 247, 208, 0.95);
    background: rgba(22, 101, 52, 0.5);
}

.cookie-card-action.is-copy-failed {
    border-color: rgba(248, 113, 113, 0.62);
    color: rgba(254, 202, 202, 0.95);
    background: rgba(127, 29, 29, 0.5);
}

@media (max-width: 1349px) {
    .cookies-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 699px) {
    .cookies-results-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cookie-card-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .cookie-card-info-item {
        font-size: 0.74rem;
        width: 100%;
    }
}

#category-file-preview-modal[aria-hidden='true'] {
    pointer-events: none;
}

#category-file-preview-modal[aria-hidden='false'] {
    pointer-events: auto;
}

#category-file-preview-modal .category-file-preview-shell {
    max-width: min(96vw, 1600px);
}

#category-file-preview-modal header > div:last-child {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

#category-file-preview-modal header > div:last-child button,
#category-file-preview-modal header > div:last-child a {
    flex-shrink: 0;
}

.category-preview-mode-toggle {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    display: inline-flex;
}

.category-preview-mode-group {
    position: relative;
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    width: 168px;
    padding: 3px;
    border: 1px solid rgba(100, 116, 139, 0.65);
    border-radius: 0.55rem;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.62);
}

.category-preview-mode-indicator {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc((100% - 6px) / 2);
    border-radius: 0.42rem;
    background: linear-gradient(180deg, rgba(255, 69, 0, 0.26), rgba(255, 69, 0, 0.14));
    border: 1px solid rgba(255, 69, 0, 0.32);
    box-shadow: 0 0 14px rgba(255, 69, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 260ms cubic-bezier(0.22, 0.8, 0.2, 1), box-shadow 260ms ease;
    pointer-events: none;
    z-index: 0;
}

.category-preview-mode-group[data-mode='raw'] .category-preview-mode-indicator {
    transform: translateX(100%);
    box-shadow: 0 0 12px rgba(125, 211, 252, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.category-preview-mode-btn {
    position: relative;
    z-index: 1;
    min-height: 1.9rem;
    min-width: 0;
    padding: 0.2rem 0.62rem;
    border: 0;
    border-right: 1px solid rgba(71, 85, 105, 0.4);
    background: transparent;
    color: rgba(148, 163, 184, 0.95);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    transition: color 220ms ease, transform 140ms ease, background-color 200ms ease;
}

.category-preview-mode-btn:last-child {
    border-right: 0;
}

.category-preview-mode-btn:hover {
    color: rgba(255, 241, 233, 0.98);
}

.category-preview-mode-btn.active,
.category-preview-mode-btn[aria-pressed='true'] {
    color: rgba(255, 238, 227, 0.98);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
}

.category-preview-mode-btn:active {
    transform: translateY(1px);
}

.category-preview-mode-btn:focus-visible {
    outline: 2px solid rgba(255, 69, 0, 0.72);
    outline-offset: -2px;
}

#category-file-preview-content-wrap {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#category-file-preview-pretty-wrap,
#category-file-preview-raw-wrap,
#category-file-preview-pretty-content,
#category-file-preview-image-wrap,
#category-file-preview-pdf-wrap {
    min-height: 0;
}

#category-file-preview-pretty-content {
    height: 100%;
    min-height: 100%;
}

.vp-pretty-surface {
    border: 1px solid rgba(71, 85, 105, 0.72);
    border-radius: 0.75rem;
    background: rgba(2, 6, 23, 0.76);
    padding: 0.9rem;
}

.vp-pretty-surface.vp-preview-kind-word {
    padding: 0;
    background: #a8b0bb;
    border-color: #8a929e;
    overflow-y: auto;
}

.vp-pretty-loading {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(148, 163, 184, 0.88);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
}

.vp-pretty-card {
    border: 1px solid rgba(71, 85, 105, 0.72);
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.58);
    padding: 0.85rem;
}

.vp-pretty-title {
    margin: 0;
    color: rgba(248, 250, 252, 0.95);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Space Grotesk', sans-serif;
}

.vp-pretty-sub {
    margin-top: 0.4rem;
    margin-bottom: 0.75rem;
    color: rgba(148, 163, 184, 0.88);
    font-size: 0.74rem;
}

.vp-json-pre,
.vp-xml-pre {
    margin: 0;
    padding: 0.85rem;
    border: 1px solid rgba(71, 85, 105, 0.64);
    border-radius: 0.7rem;
    background: rgba(2, 6, 23, 0.82);
    color: rgba(226, 232, 240, 0.94);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.55;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.vp-json-key {
    color: rgba(125, 211, 252, 0.96);
}

.vp-json-string {
    color: rgba(190, 242, 100, 0.96);
}

.vp-json-number {
    color: rgba(253, 186, 116, 0.97);
}

.vp-json-literal {
    color: rgba(244, 114, 182, 0.95);
}

.vp-sheet-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
}

.vp-sheet-tab {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.12rem 0.52rem;
    border-radius: 999px;
    border: 1px solid rgba(100, 116, 139, 0.55);
    background: rgba(15, 23, 42, 0.6);
    color: rgba(203, 213, 225, 0.9);
    font-size: 0.66rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.vp-sheet-tab.active {
    border-color: rgba(255, 69, 0, 0.48);
    background: rgba(255, 69, 0, 0.16);
    color: rgba(255, 211, 193, 0.96);
}

.vp-grid-shell {
    width: 100%;
    overflow: auto;
    border: 1px solid rgba(71, 85, 105, 0.64);
    border-radius: 0.7rem;
    background: rgba(2, 6, 23, 0.86);
}

.vp-grid-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.vp-grid-head {
    position: sticky;
    top: 0;
    z-index: 1;
    text-align: left;
    white-space: nowrap;
    background: rgba(30, 41, 59, 0.88);
    color: rgba(241, 245, 249, 0.94);
    border-bottom: 1px solid rgba(100, 116, 139, 0.66);
    padding: 0.45rem 0.52rem;
    font-size: 0.67rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vp-grid-corner {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 2;
    min-width: 54px;
    background: rgba(30, 41, 59, 0.92);
    border-bottom: 1px solid rgba(100, 116, 139, 0.66);
    border-right: 1px solid rgba(100, 116, 139, 0.5);
}

.vp-grid-rownum {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 54px;
    text-align: right;
    padding: 0.42rem 0.45rem;
    color: rgba(148, 163, 184, 0.9);
    background: rgba(15, 23, 42, 0.9);
    border-right: 1px solid rgba(100, 116, 139, 0.45);
    border-bottom: 1px solid rgba(51, 65, 85, 0.58);
    font-size: 0.68rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.vp-grid-cell {
    border-bottom: 1px solid rgba(51, 65, 85, 0.58);
    border-right: 1px solid rgba(30, 41, 59, 0.45);
    color: rgba(226, 232, 240, 0.94);
    padding: 0.42rem 0.52rem;
    font-size: 0.73rem;
    line-height: 1.35;
    white-space: nowrap;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vp-text-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(71, 85, 105, 0.66);
    border-radius: 0.7rem;
    overflow: hidden;
}

.vp-text-table tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.4);
}

.vp-row-index {
    width: 52px;
    text-align: right;
    vertical-align: top;
    color: rgba(148, 163, 184, 0.82);
    border-right: 1px solid rgba(71, 85, 105, 0.62);
    border-bottom: 1px solid rgba(51, 65, 85, 0.58);
    padding: 0.28rem 0.4rem;
    font-size: 0.67rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.vp-row-value {
    color: rgba(226, 232, 240, 0.94);
    border-bottom: 1px solid rgba(51, 65, 85, 0.58);
    padding: 0.28rem 0.5rem;
    font-size: 0.72rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ── Code preview — editor-style layout ─────────────────────────────────── */

/* Strip the surface chrome when it wraps a code block */
.vp-pretty-surface.vp-preview-kind-code {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}

/* Outer wrapper — holds the scrollable wrap + the floating lang badge */
.vp-code-container {
    position: relative;
    height: 100%;
}

.vp-code-wrap {
    display: flex;
    height: 100%;
    overflow: auto;
    background: #080d1c;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 0.6rem;
    font-family: ui-monospace, 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', monospace;
    font-size: 0.72rem;
    line-height: 1.7;
    tab-size: 4;
    color: rgba(226, 232, 240, 0.92);
}

/* Language badge — floats in the top-right corner above the scrollable code */
.vp-code-lang {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 4;
    padding: 0.18rem 0.6rem;
    font-size: 0.6rem;
    font-family: ui-monospace, monospace;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(100, 116, 139, 0.7);
    background: rgba(8, 13, 28, 0.92);
    border-left: 1px solid rgba(51, 65, 85, 0.5);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0 0.6rem 0 0.35rem;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

/* Line-number gutter */
.vp-code-gutter {
    flex-shrink: 0;
    position: sticky;
    left: 0;
    z-index: 2;
    background: #080d1c;
    border-right: 1px solid rgba(51, 65, 85, 0.45);
    color: rgba(71, 85, 105, 0.8);
    text-align: right;
    padding: 1rem 0.75rem 1.25rem 0.6rem;
    white-space: pre;
    user-select: none;
    min-width: 2.8rem;
    line-height: 1.7;
    font-size: 0.69rem;
    vertical-align: top;
}

/* Code body */
.vp-code-pre {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 1rem 1.5rem 1.25rem 1rem;
    background: transparent !important;
    white-space: pre;
    overflow: visible;
    color: rgba(226, 232, 240, 0.92);
    line-height: 1.7;
    -webkit-overflow-scrolling: touch;
}

.vp-code-pre code {
    background: transparent !important;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    font-family: inherit;
    display: block;
    white-space: pre;
}

/* ── highlight.js token colors — VantaPrism dark theme ───────────────────── */
.hljs-keyword,
.hljs-selector-tag,
.hljs-tag                              { color: #f97316; }
.hljs-built_in,
.hljs-name                             { color: #fb923c; }
.hljs-string,
.hljs-doctag,
.hljs-template-variable,
.hljs-addition                         { color: #86efac; }
.hljs-comment,
.hljs-quote                            { color: rgba(100, 116, 139, 0.8); font-style: italic; }
.hljs-number,
.hljs-literal,
.hljs-symbol,
.hljs-bullet                           { color: #a78bfa; }
.hljs-function,
.hljs-title,
.hljs-title.function_                  { color: #60a5fa; }
.hljs-title.class_,
.hljs-class .hljs-title,
.hljs-type                             { color: #fbbf24; }
.hljs-attr,
.hljs-attribute                        { color: #7dd3fc; }
.hljs-variable,
.hljs-template-tag                     { color: rgba(226, 232, 240, 0.88); }
.hljs-regexp,
.hljs-link                             { color: #f472b6; }
.hljs-meta,
.hljs-meta .hljs-keyword               { color: #94a3b8; }
.hljs-subst,
.hljs-operator                         { color: rgba(226, 232, 240, 0.65); }
.hljs-selector-id,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo                  { color: #fbbf24; }
.hljs-params                           { color: rgba(226, 232, 240, 0.82); }
.hljs-deletion                         { color: #fca5a5; background: rgba(252, 165, 165, 0.08); }
.hljs-addition                         { background: rgba(134, 239, 172, 0.07); }
.hljs-section,
.hljs-formula                          { color: #f97316; font-weight: 600; }
.hljs-emphasis                         { font-style: italic; }
.hljs-strong                           { font-weight: 700; }

/* Disk image hex dump viewer */
.vp-disk-type-label {
    display: inline-block;
    background: rgba(255, 69, 0, 0.12);
    color: rgba(255, 140, 60, 0.95);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 4px;
    padding: 1px 8px;
    font-size: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.vp-hex-wrap {
    border: 1px solid rgba(71, 85, 105, 0.64);
    border-radius: 0.6rem;
    overflow: hidden;
}

.vp-hex-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Consolas', 'Courier New', ui-monospace, monospace;
    font-size: 0.71rem;
    line-height: 1.55;
}

.vp-hex-th {
    text-align: left;
    padding: 0.32rem 0.65rem;
    border-bottom: 1px solid rgba(71, 85, 105, 0.72);
    color: rgba(148, 163, 184, 0.85);
    font-size: 0.67rem;
    background: rgba(2, 6, 23, 0.65);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.vp-hex-table tbody tr {
    border-bottom: 1px solid rgba(51, 65, 85, 0.35);
}

.vp-hex-table tbody tr:last-child {
    border-bottom: none;
}

.vp-hex-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.35);
}

.vp-hex-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}

.vp-hex-table td {
    padding: 0.15rem 0.65rem;
    vertical-align: top;
}

.vp-hex-offset {
    color: rgba(125, 211, 252, 0.82);
    white-space: nowrap;
    user-select: none;
    font-weight: 600;
}

.vp-hex-bytes {
    color: rgba(226, 232, 240, 0.88);
    white-space: pre;
    letter-spacing: 0.02em;
}

.vp-hex-ascii {
    color: rgba(190, 242, 100, 0.78);
    white-space: pre;
    letter-spacing: 0.06em;
}

.vp-hex-dot {
    color: rgba(100, 116, 139, 0.6);
}

/* Word document viewer — scrollable grey canvas holding one or more white pages */
.vp-word-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 28px 20px;
    min-height: 100%;
    box-sizing: border-box;
}

/* Individual page — simulates a sheet of A4/Letter paper */
.vp-word-page {
    width: 816px; /* 8.5 inches at 96 DPI */
    max-width: calc(100% - 8px);
    min-height: 400px;
    background: #ffffff;
    padding: 96px;
    border: 1px solid #c0c0c0;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.38), 0 1px 4px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    color: #000000;
    font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
    font-size: 12pt;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 900px) {
    .vp-word-page {
        padding: 48px 40px;
    }
}

@media (max-width: 600px) {
    .vp-word-page {
        padding: 28px 18px;
    }
}

/* Paragraphs */
.vp-word-page p {
    margin: 0 0 8pt;
    font-size: 12pt;
    color: #000;
}

/* Headings — Word's built-in heading palette */
.vp-word-page h1 {
    font-size: 26pt;
    font-weight: 600;
    color: #2f5597;
    margin: 0 0 10pt;
    line-height: 1.2;
    font-family: 'Calibri Light', 'Calibri', 'Segoe UI', Arial, sans-serif;
    padding-bottom: 4pt;
    border-bottom: 2px solid #2f5597;
}

.vp-word-page h2 {
    font-size: 16pt;
    font-weight: 600;
    color: #2f5597;
    margin: 16pt 0 6pt;
    line-height: 1.25;
    font-family: 'Calibri Light', 'Calibri', 'Segoe UI', Arial, sans-serif;
}

.vp-word-page h3 {
    font-size: 13pt;
    font-weight: 600;
    color: #1f3864;
    margin: 12pt 0 5pt;
    font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
}

.vp-word-page h4 {
    font-size: 12pt;
    font-weight: 700;
    font-style: italic;
    color: #2f5597;
    margin: 10pt 0 4pt;
}

.vp-word-page h5,
.vp-word-page h6 {
    font-size: 11pt;
    font-weight: 700;
    color: #404040;
    margin: 8pt 0 3pt;
}

/* Inline formatting */
.vp-word-page strong,
.vp-word-page b {
    font-weight: 700;
}

.vp-word-page em,
.vp-word-page i {
    font-style: italic;
}

.vp-word-page u {
    text-decoration: underline;
}

.vp-word-page s,
.vp-word-page del {
    text-decoration: line-through;
    color: #666;
}

/* Tables */
.vp-word-page table {
    border-collapse: collapse;
    width: 100%;
    margin: 6pt 0 14pt;
    font-size: 11pt;
}

.vp-word-page table td,
.vp-word-page table th {
    border: 1px solid #adadad;
    padding: 4pt 8pt;
    vertical-align: top;
    text-align: left;
}

.vp-word-page table th {
    background-color: #dce6f1;
    font-weight: 700;
    color: #1f3864;
}

.vp-word-page table tr:nth-child(even) td {
    background-color: #f5f9ff;
}

/* Lists */
.vp-word-page ul {
    list-style-type: disc;
    margin: 0 0 8pt 28pt;
    padding: 0;
}

.vp-word-page ol {
    list-style-type: decimal;
    margin: 0 0 8pt 28pt;
    padding: 0;
}

.vp-word-page li {
    margin-bottom: 3pt;
    font-size: 12pt;
    color: #000;
}

.vp-word-page ul ul {
    list-style-type: circle;
    margin-top: 2pt;
}

.vp-word-page ul ul ul {
    list-style-type: square;
}

/* Links */
.vp-word-page a {
    color: #1155cc;
    text-decoration: underline;
}

.vp-word-page a:hover {
    color: #0b44a8;
}

/* Images */
.vp-word-page img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 6pt auto;
}

/* Horizontal rule (document separator, not page break) */
.vp-word-page hr {
    border: none;
    border-top: 1px solid #d0d0d0;
    margin: 12pt 0;
}

/* Blockquotes */
.vp-word-page blockquote {
    margin: 8pt 0 8pt 24pt;
    padding-left: 10pt;
    border-left: 3px solid #c0c8d4;
    color: #505050;
    font-style: italic;
}

/* Code blocks */
.vp-word-page pre {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 8pt 12pt;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 10pt;
    line-height: 1.45;
    overflow-x: auto;
    margin: 6pt 0 10pt;
    color: #1a1a1a;
}

.vp-word-page code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 10pt;
    background: #f4f4f4;
    padding: 1px 4px;
    border-radius: 2px;
    color: #c7254e;
}

.vp-word-page pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Page number label shown between pages */
.vp-word-page-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.08em;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    margin-bottom: -12px;
    align-self: center;
}

/* Fallback legacy class — kept for reference */
.vp-docx-page {
    display: none;
}

.vp-markdown-doc {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.1rem 1.2rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(71, 85, 105, 0.64);
    background: rgba(15, 23, 42, 0.62);
    color: rgba(226, 232, 240, 0.96);
    line-height: 1.62;
    font-size: 0.94rem;
}

.vp-markdown-doc h1,
.vp-markdown-doc h2,
.vp-markdown-doc h3,
.vp-markdown-doc h4,
.vp-markdown-doc h5,
.vp-markdown-doc h6 {
    margin: 1rem 0 0.55rem;
    color: rgba(248, 250, 252, 0.98);
    font-family: 'Space Grotesk', sans-serif;
}

.vp-markdown-doc p,
.vp-markdown-doc ul,
.vp-markdown-doc ol,
.vp-markdown-doc pre,
.vp-markdown-doc blockquote,
.vp-markdown-doc table {
    margin: 0 0 0.75rem;
}

.vp-markdown-doc code {
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.62);
    border-radius: 0.35rem;
    padding: 0.08rem 0.3rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85em;
}

.vp-markdown-doc pre {
    overflow: auto;
    padding: 0.7rem 0.8rem;
    border-radius: 0.65rem;
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.64);
}

.vp-markdown-doc pre code {
    border: 0;
    background: transparent;
    padding: 0;
}

.vp-markdown-doc blockquote {
    border-left: 3px solid rgba(255, 69, 0, 0.62);
    padding-left: 0.65rem;
    color: rgba(203, 213, 225, 0.92);
}

.vp-markdown-doc a {
    color: #ff7a3d;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vp-markdown-doc table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(71, 85, 105, 0.66);
    border-radius: 0.7rem;
    overflow: hidden;
}

.vp-markdown-doc th,
.vp-markdown-doc td {
    border-bottom: 1px solid rgba(71, 85, 105, 0.5);
    border-right: 1px solid rgba(51, 65, 85, 0.46);
    padding: 0.4rem 0.5rem;
    text-align: left;
}

.vp-markdown-doc th {
    background: rgba(30, 41, 59, 0.88);
}

.vp-db-table-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-bottom: 0.7rem;
}

.vp-db-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.52rem;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(100, 116, 139, 0.6);
    background: rgba(15, 23, 42, 0.6);
    color: rgba(203, 213, 225, 0.95);
    font-size: 0.67rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.vp-db-chip.active {
    border-color: rgba(255, 69, 0, 0.58);
    background: rgba(255, 69, 0, 0.18);
    color: rgba(255, 224, 208, 0.98);
}

.vp-pretty-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.vp-nav-btn {
    min-height: 1.9rem;
    padding: 0.22rem 0.62rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(100, 116, 139, 0.58);
    background: rgba(15, 23, 42, 0.62);
    color: rgba(226, 232, 240, 0.94);
    font-size: 0.68rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.vp-nav-btn:hover:not(:disabled) {
    border-color: rgba(255, 69, 0, 0.5);
    background: rgba(255, 69, 0, 0.16);
}

.vp-nav-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.vp-nav-meta {
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.69rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.vp-archive-layout {
    display: grid;
    grid-template-columns: minmax(250px, 34%) minmax(0, 66%);
    gap: 0.75rem;
}

.vp-archive-list,
.vp-archive-preview {
    border: 1px solid rgba(71, 85, 105, 0.68);
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.58);
    padding: 0.7rem;
}

.vp-archive-list-scroll {
    margin-top: 0.55rem;
    max-height: 56vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vp-archive-entry {
    width: 100%;
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 0.45rem;
    text-align: left;
    min-height: 2rem;
    padding: 0.24rem 0.46rem;
    border-radius: 0.48rem;
    border: 1px solid rgba(71, 85, 105, 0.55);
    background: rgba(2, 6, 23, 0.62);
    color: rgba(226, 232, 240, 0.94);
}

.vp-archive-entry:hover {
    border-color: rgba(255, 69, 0, 0.45);
    background: rgba(255, 69, 0, 0.12);
}

.vp-archive-entry.active {
    border-color: rgba(255, 69, 0, 0.58);
    background: rgba(255, 69, 0, 0.2);
}

.vp-archive-entry-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.7rem;
}

.vp-archive-entry-badge {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
}

@media (max-width: 1023px) {
    .vp-archive-layout {
        grid-template-columns: 1fr;
    }

    .vp-archive-list-scroll {
        max-height: 28vh;
    }
}

#category-file-preview-content {
    word-break: break-word;
}

#category-ai-chat-history,
#category-victim-file-tree-body,
#category-file-preview-content-wrap {
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.72) transparent;
}

#category-ai-chat-history::-webkit-scrollbar,
#category-victim-file-tree-body::-webkit-scrollbar,
#category-file-preview-content-wrap::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

#category-ai-chat-history::-webkit-scrollbar-track,
#category-victim-file-tree-body::-webkit-scrollbar-track,
#category-file-preview-content-wrap::-webkit-scrollbar-track {
    background: transparent;
}

#category-ai-chat-history::-webkit-scrollbar-thumb,
#category-victim-file-tree-body::-webkit-scrollbar-thumb,
#category-file-preview-content-wrap::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.68);
    border-radius: 999px;
}

#category-ai-chat-history::-webkit-scrollbar-thumb:hover,
#category-victim-file-tree-body::-webkit-scrollbar-thumb:hover,
#category-file-preview-content-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.9);
}

@media (max-width: 1023px) {
    .credentials-theme-page .dashboard-shell {
        flex-direction: column;
        gap: 0.9rem;
    }

    .credentials-theme-page .dashboard-main-content {
        width: 100%;
    }

    .credentials-theme-page .dashboard-main-content > .section-reveal:first-child {
        margin-bottom: 0.1rem;
    }

    .credentials-command-hero {
        padding-bottom: 0.25rem !important;
    }

    .category-search-shell {
        padding: 0.75rem;
    }

    .category-search-input-shell {
        flex-direction: column;
        border-radius: 0.8rem;
    }

    .category-search-input-shell > .border-r {
        border-right: 0;
        border-bottom: 1px solid rgba(71, 85, 105, 0.72);
        width: 100%;
    }

    .category-search-input-shell select,
    .category-search-input-shell > div.h-11,
    .category-search-input-shell > div.h-12 {
        width: 100%;
        min-width: 100%;
        justify-content: flex-start;
    }

    .category-search-input-shell #category-search-submit {
        width: 100%;
        border-left: 0;
        border-top: 1px solid rgba(71, 85, 105, 0.72);
    }

    .category-filter-helper {
        flex-basis: 100%;
    }

    .category-filter-panel {
        padding: 0.85rem;
    }

    .category-filter-item {
        min-height: 3.35rem;
        align-items: flex-start;
        padding: 0.8rem;
    }

    .category-filter-item .form-checkbox-dark {
        width: 20px !important;
        height: 20px !important;
        margin-top: 0.1rem;
    }

    .credential-result-card {
        min-height: 248px;
        padding: 0.82rem 0.82rem;
    }

    .credential-card-meta {
        gap: 0.34rem;
    }

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

    .category-results-pager {
        justify-content: stretch;
    }

    .category-results-pager-btn {
        min-height: 2.75rem;
    }

    #sidebar-toggle {
        top: auto;
        left: 1rem;
        bottom: calc(1rem + env(safe-area-inset-bottom));
        width: 3rem;
        height: 3rem;
        border-radius: 0.75rem;
    }

    #category-file-preview-modal {
        align-items: stretch;
    }

    #category-file-preview-modal .category-file-preview-shell {
        width: 100vw;
        height: 100vh;
        max-width: none;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    #category-file-preview-modal header {
        flex-wrap: wrap;
    }

    #category-file-preview-modal header > div:last-child {
        width: 100%;
        justify-content: flex-start;
    }

    #category-ai-chat-panel,
    #category-victim-file-tree {
        width: 100%;
    }

    #category-victim-file-tree {
        border-left: 0;
    }

    #category-ai-chat-panel {
        border-left: 0;
    }
}

@media (max-width: 767px) {
    .category-command-title {
        font-size: clamp(1.85rem, 12.2vw, 2.8rem);
        line-height: 0.9;
    }

    .category-command-copy {
        font-size: 0.94rem;
        line-height: 1.55;
    }

    .credentials-theme-page .dashboard-main-content > * + * {
        margin-top: 0.85rem;
    }

    .credential-result-card {
        border-radius: 0.72rem;
    }

    .credential-card-domain {
        font-size: 0.84rem;
    }

    .credential-card-value,
    .credential-card-meta-value {
        font-size: 0.74rem;
    }

    .credential-card-action {
        width: 1.84rem;
        height: 1.84rem;
    }

    .credential-card-pill {
        font-size: 0.61rem;
        padding-inline: 0.45rem;
    }

    .category-search-shell {
        padding: 0.75rem;
    }

    .credential-results-pager {
        padding: 0.55rem 0.6rem;
    }

    .category-results-pager {
        flex-wrap: wrap;
    }

    .category-results-pager > p {
        width: 100%;
        text-align: center;
        order: 3;
    }

    .category-table-scroll {
        margin-inline: -0.15rem;
        padding-inline: 0.15rem;
    }

    #stolen-files-explorer-browser {
        min-height: 380px;
    }

    #stolen-files-inspector {
        min-height: 320px;
    }
}

@media (hover: none), (pointer: coarse) {
    .category-stat-card:hover,
    .category-filter-item:hover {
        transform: none;
    }

    .dashboard-sidebar-item:hover {
        transform: none;
    }
}

/* === 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);
        -webkit-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;
    }

    .dashboard-sidebar[data-mini-variant='true'] {
        width: 240px;
        left: -260px;
        padding-top: 1rem;
        border-radius: 0;
    }

    .dashboard-sidebar[data-mini-variant='true'] .sidebar-label {
        max-width: 260px !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .dashboard-sidebar[data-mini-variant='true'] .dashboard-sidebar-item[data-tooltip]::after {
        display: none !important;
    }

    .dashboard-sidebar[data-mini-variant='true'] ~ .dashboard-main-content {
        margin-left: 0;
        width: 100%;
    }
}

/* === Desktop sidebar collapse === */
@media (min-width: 1024px) {
    .dashboard-sidebar:not([data-mini-variant='true']) {
        position: fixed;
        top: 5.5rem;
        height: calc(100vh - 6rem);
        max-height: calc(100vh - 6rem);
        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:not([data-mini-variant='true']) ~ .dashboard-main-content {
        margin-left: 272px;
        width: calc(100% - 272px);
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .dashboard-sidebar.sidebar-collapsed:not([data-mini-variant='true']) {
        width: 0px;
        opacity: 0;
        margin-left: -16px;
        pointer-events: none;
        border: none;
    }

    .dashboard-sidebar.sidebar-collapsed:not([data-mini-variant='true']) ~ .dashboard-main-content {
        margin-left: 0;
        width: 100%;
    }
}

/* === 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);
    -webkit-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);
    -webkit-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);
    -webkit-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);
    -webkit-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);
    -webkit-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);
    -webkit-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);
    -webkit-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);
    -webkit-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);
    -webkit-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);
    -webkit-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;
    }
}

/* ============================================
   PII Search — Category Results
   ============================================ */

.pii-category-header {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.pii-category-header:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.pii-category-grid {
    transition: max-height 0.25s ease, opacity 0.2s ease;
    overflow: hidden;
}

.pii-category-grid.hidden {
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
}

.pii-category-count {
    min-width: 2rem;
    text-align: center;
    flex-shrink: 0;
}

.pii-type-badge {
    display: inline-block;
    font-size: 10px;
    font-family: var(--font-headline, sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 2px 8px;
    border-radius: 3px;
    background-color: rgba(255, 69, 0, 0.1);
    border: 1px solid rgba(255, 69, 0, 0.3);
    color: rgba(255, 69, 0, 0.9);
}

.pii-result-card .credential-card-head {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* === 3D Bubble Chart — Asset Breakdown === */
.bubble-axis-label {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 9px;
    line-height: 11px;
    text-align: right;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #FFFFFF;
    pointer-events: none;
}

.bubble-ball {
    position: absolute;
    border-radius: 50%;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.bubble-ball:hover {
    transform: scale(1.08);
    z-index: 100 !important;
}

/* Cyan bubbles — credentials/cookies */
.bubble-ball--cyan {
    background: radial-gradient(96% 96% at 70.4% 31.2%, #32BCE8 0%, rgba(135,136,149,0) 100%), #1A53C1;
    box-shadow: 0px 0.94px 18.87px #3681DA,
                inset 0px 0.47px 2.36px rgba(255,255,255,0.58),
                inset 2.36px 3.77px 4.72px rgba(160,246,252,0.63);
}

/* Indigo bubbles — autofill */
.bubble-ball--indigo {
    background: radial-gradient(96% 96% at 70.4% 31.2%, #3244E8 0%, rgba(0,2,16,0) 100%), #030092;
    box-shadow: 0px 1.51px 30.21px #2300F8,
                inset 0px 0.76px 3.78px rgba(255,255,255,0.58),
                inset 3.78px 6.04px 7.55px rgba(130,5,255,0.95);
}

/* Orange bubbles — credit cards (largest glow) */
.bubble-ball--orange {
    background: radial-gradient(96% 96% at 70.4% 31.2%, #E8B532 0%, rgba(0,2,16,0) 100%), #921A00;
    box-shadow: 0px 3.92px 78.39px #F83B00,
                inset 0px 1.96px 9.80px rgba(255,255,255,0.58),
                inset 9.80px 15.68px 19.60px rgba(255,125,5,0.95);
}

/* Green bubbles — ftp */
.bubble-ball--green {
    background: radial-gradient(96% 96% at 70.4% 31.2%, #A3E832 0%, rgba(0,2,16,0) 100%), #005D92;
    box-shadow: 0px 1.09px 21.79px rgba(0,248,99,0.41),
                inset 0px 0.54px 2.72px rgba(255,255,255,0.58),
                inset 2.72px 4.36px 5.45px rgba(40,255,5,0.46);
}

/* Red-purple bubbles — file grabber */
.bubble-ball--redpurple {
    background: radial-gradient(96% 96% at 70.4% 31.2%, #3244E8 0%, rgba(0,2,16,0) 100%), #030092;
    box-shadow: 0px 4.70px 93.94px rgba(248,0,119,0.48),
                inset 0px 2.35px 11.74px rgba(255,255,255,0.58),
                inset 11.74px 23.48px 35.23px #FF0505;
}

/* Deep indigo bubbles */
.bubble-ball--deepindigo {
    background: radial-gradient(96% 96% at 70.4% 31.2%, #3244E8 0%, rgba(0,2,16,0) 100%), #030092;
    box-shadow: 0px 4.34px 86.84px #2300F8,
                inset 0px 2.17px 10.86px rgba(255,255,255,0.58),
                inset 10.86px 17.37px 21.71px rgba(130,5,255,0.95);
}

.bubble-ball__tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.92);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 6px 10px;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 200;
}
.bubble-ball:hover .bubble-ball__tooltip {
    opacity: 1;
}

/* Alerting severity / circuit pills (004-alerting-monitoring) */
.pill-info {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
}
.pill-warn {
    background: rgba(234, 179, 8, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(234, 179, 8, 0.35);
}
.pill-critical {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

/* === Dashboard + Results page alignment with site theme === */
.dashboard-command-theme {
    --dp-bg-0: #000000;
    --dp-bg-1: rgba(8, 8, 8, 0.74);
    --dp-bg-2: rgba(14, 14, 14, 0.88);
    --dp-border: rgba(255, 255, 255, 0.05);
    --dp-border-surface: rgba(255, 255, 255, 0.07);
    --dp-border-top: rgba(255, 255, 255, 0.09);
    --dp-border-strong: rgba(255, 255, 255, 0.1);
    --dp-text-1: rgba(248, 250, 252, 0.95);
    --dp-text-2: rgba(203, 213, 225, 0.84);
    --dp-text-3: rgba(148, 163, 184, 0.78);
    --dp-text-4: rgba(148, 163, 184, 0.62);
    background-color: #000000 !important;
    background-image: none !important;
}

.dashboard-command-theme main::before {
    content: none;
    display: none;
}

.dashboard-command-theme #particle-network {
    display: none !important;
}

.dashboard-command-theme .dashboard-surface,
.dashboard-command-theme .dashboard-sidebar {
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.032));
    border-color: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.dashboard-command-theme .dashboard-card,
.dashboard-command-theme .dashboard-panel {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.07);
    border-top-color: rgba(255, 255, 255, 0.09);
    border-radius: 0.85rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-command-theme .dashboard-card:hover,
.dashboard-command-theme .dashboard-panel:hover {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 69, 0, 0.38);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.60), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dashboard-command-theme .dashboard-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dashboard-command-theme .dashboard-sidebar-item.active {
    background: linear-gradient(90deg, rgba(255, 69, 0, 0.22), rgba(255, 69, 0, 0.07));
    color: rgba(255, 171, 118, 0.96);
}

.dashboard-command-theme #searchExecute {
    background: #FF4500;
    color: #0a0a0a;
    font-weight: 800;
    border-left-color: rgba(255, 69, 0, 0.7);
}

.dashboard-command-theme #searchExecute:hover {
    background: #ff5a1f;
    color: #000;
}

.dashboard-command-theme .dashboard-research-submit {
    background: #FF4500 !important;
    color: #0a0a0a !important;
    font-weight: 800;
    border-color: rgba(255, 69, 0, 0.7) !important;
}

.dashboard-command-theme .dashboard-research-submit:hover {
    background: #ff5a1f !important;
    color: #000 !important;
}

.dashboard-command-theme .dashboard-research-bar {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.4);
}

.dashboard-command-theme .dashboard-research-select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.dashboard-command-theme .dashboard-research-input {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.dashboard-command-theme .kpi-tab {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.07);
}

.dashboard-command-theme .kpi-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 69, 0, 0.35);
}

.dashboard-command-theme .kpi-tab.active {
    background: linear-gradient(180deg, rgba(255, 69, 0, 0.18), rgba(0, 0, 0, 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(0, 0, 0, 0.35);
}

.dashboard-command-theme .victim-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.07);
}

.dashboard-command-theme .victim-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 69, 0, 0.4);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.4);
}

.dashboard-command-theme .victim-card.selected {
    background: linear-gradient(90deg, rgba(255, 69, 0, 0.14), rgba(0, 0, 0, 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(0, 0, 0, 0.45);
}

.dashboard-command-theme .detail-panel {
    background: rgba(8, 8, 8, 0.74);
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.4);
}

.dashboard-command-theme #victim-sort-select {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.dashboard-command-theme #sidebar-collapse-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.05);
}

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

.dashboard-command-theme .dashboard-modal-backdrop {
    background: rgba(0, 0, 0, 0.75);
}

.dashboard-command-theme .dashboard-modal-shell {
    background: rgba(8, 8, 8, 0.92);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 36px 96px rgba(0, 0, 0, 0.82), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-command-theme .dashboard-data-table thead th {
    background: rgba(8, 8, 8, 0.9);
}

.dashboard-command-theme .dashboard-data-table .data-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.dashboard-command-theme .credential-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD RESPONSIVE ADAPTATIONS
   Mobile-first: 320→767 → Tablet: 768→1023 → Desktop: 1024+
   ═══════════════════════════════════════════════════════════ */

/* --- Mobile (max-width: 767px) --- */
@media (max-width: 767px) {
    /* Dashboard shell stacks vertically */
    .dashboard-shell {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    /* Main content takes full width, no side margin */
    .dashboard-main-content {
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* Reduce outer padding */
    .dashboard-page main {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .dashboard-page main > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Research bar: stack vertically on mobile */
    .dashboard-research-bar form {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .dashboard-research-bar .dashboard-research-select {
        width: 100% !important;
        min-width: 0 !important;
    }

    .dashboard-research-bar input[type="text"],
    .dashboard-research-bar #searchQuery,
    .dashboard-research-bar #dashboard-search-input {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* KPI tabs: scrollable row with scroll-snap */
    .kpi-tab {
        min-width: 9rem;
        flex: 0 0 auto;
        padding: 0.5rem 0.75rem;
        min-height: auto;
    }

    .kpi-tab > div:nth-child(2) {
        font-size: 1.5rem;
    }

    /* Victim list + detail panel stack vertically */
    #host-detail-view {
        flex-direction: column !important;
    }

    #host-detail-view > .w-\[420px\] {
        width: 100% !important;
        max-height: 40vh;
    }

    #host-detail-view > .flex-1 {
        width: 100% !important;
        min-height: 50vh;
    }

    /* Assets host-like layout also stacks */
    #assets-host-like-layout {
        flex-direction: column !important;
    }

    #assets-host-like-layout > .w-\[420px\] {
        width: 100% !important;
        max-height: 40vh;
    }

    /* Fix search bar inline layout */
    #dashboard-search .flex.flex-col.xl\:flex-row {
        flex-direction: column !important;
    }

    /* Detail panel height resets */
    .detail-panel {
        min-height: 60vh !important;
    }

    #detail-panel,
    #assets-detail-panel {
        min-height: 50vh !important;
    }

    /* Modal sizing for mobile */
    #ai-modal .dashboard-modal-shell-wide {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }

    #file-explorer-modal .dashboard-modal-shell-xl {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }

    /* AI modal chat pane: stack vertically on mobile */
    #ai-modal-layout {
        flex-direction: column !important;
    }

    #ai-report-pane {
        flex-basis: auto !important;
        flex: 1 1 auto;
        min-height: 50%;
    }

    #ai-chat-pane {
        flex-basis: auto !important;
        flex: 1 1 auto;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    /* File analyze stage: stack on mobile */
    #file-analyze-stage {
        grid-template-columns: 1fr !important;
    }

    /* Export modal sizing */
    #export-modal .dashboard-modal-shell {
        max-width: 100vw !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    /* Filter + actions bar: wrap gracefully */
    .dashboard-surface .flex.flex-wrap {
        gap: 0.5rem;
    }

    #victim-filter-input {
        min-width: 10rem;
    }

    /* Victim list max height on mobile so detail panel remains visible */
    #victim-list {
        max-height: 40vh !important;
    }

    /* Users/assets dataset controls */
    #users-dataset-view .flex.flex-wrap,
    #assets-dataset-view .flex.flex-wrap {
        gap: 0.35rem;
    }

    /* KPI horizontal scroll container */
    .flex.gap-3.overflow-x-auto:has(.kpi-tab) {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .flex.gap-3.overflow-x-auto:has(.kpi-tab) > .kpi-tab {
        scroll-snap-align: start;
    }

    /* Search KPI cards: full width on mobile */
    #surface-telemetry.grid {
        grid-template-columns: 1fr !important;
    }

    #surface-telemetry .md\:col-span-6 {
        grid-column: span 1 !important;
    }

    #surface-telemetry .md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    #surface-telemetry .dashboard-card {
        height: auto !important;
        min-height: 120px;
    }

    /* Map intel panel toggle */
    #map-intel-grid {
        grid-template-columns: 1fr !important;
    }

    #map-intel-panel {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.35s ease;
    }

    #map-intel-panel.map-intel-panel-visible {
        max-height: 600px;
        opacity: 1;
        padding: 0.75rem 0;
    }

    /* Graph canvas: adjust height for mobile */
    .graph-canvas-wrapper {
        height: calc(100vh - 120px) !important;
        min-height: 350px !important;
    }

    /* Graph toolbar: wrap actions */
    .graph-toolbar {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .graph-toolbar-group {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    /* Graph action panel: slide up from bottom on mobile */
    #graph-action-panel {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        max-height: 70vh;
        width: 100% !important;
        border-radius: 0.9rem 0.9rem 0 0 !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
        z-index: 100;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #graph-action-panel.ap-visible {
        transform: translateY(0);
    }

    /* Graph filter panel: full width overlay */
    #graph-filter-panel {
        position: fixed !important;
        inset: 0;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 110;
        border-radius: 0 !important;
    }

    /* Graph legend: smaller on mobile */
    .graph-legend {
        max-width: 140px;
        font-size: 0.68rem;
    }

    /* Graph context menu: position adjustment */
    .graph-context-menu {
        min-width: 180px;
    }

    /* System results search: full width */
    .system-results-hero .flex-col.lg\:flex-row {
        flex-direction: column !important;
        gap: 0.75rem;
    }

    .system-query-chip-wrap {
        justify-content: flex-start !important;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Analytics placeholder text sizing */
    .dashboard-surface .text-2xl {
        font-size: 1.25rem;
    }

    /* Dashboard header tabs scroll */
    [data-intel-surface-nav] {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    [data-intel-surface-nav]::-webkit-scrollbar {
        display: none;
    }
}

/* --- Tablet (768px–1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Dashboard shell: sidebar is drawer, main content full width */
    .dashboard-shell {
        gap: 1rem;
    }

    .dashboard-main-content {
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* KPI tabs: scrollable */
    .flex.gap-3.overflow-x-auto:has(.kpi-tab) {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    /* Victim list: narrower but still readable */
    #host-detail-view > .w-\[420px\],
    #assets-host-like-layout > .w-\[420px\] {
        width: 280px !important;
        flex-shrink: 0;
    }

    /* Research bar: type selector inline */
    .dashboard-research-bar form {
        flex-wrap: nowrap;
    }

    /* KPI telemetry grid: 2-col on tablet */
    #surface-telemetry.grid {
        grid-template-columns: repeat(12, 1fr) !important;
    }

    #surface-telemetry .md\:col-span-6 {
        grid-column: span 12 !important;
    }

    #surface-telemetry .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Map intel grid: stack map full width */
    #map-intel-grid {
        grid-template-columns: 1fr !important;
    }

    /* Graph canvas height */
    .graph-canvas-wrapper {
        min-height: 400px;
    }

    /* System results: 2-col grid */
    #systemResultsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* --- Large desktop (1024px+) reset — sidebar layout --- */
@media (min-width: 1024px) {
    /* Ensure flex row on desktop */
    .dashboard-shell {
        flex-direction: row !important;
        gap: 2rem;
    }

    #map-intel-panel {
        max-height: none !important;
        opacity: 1 !important;
        padding: 0 !important;
    }
}

/* --- Shared touch target improvements (all screen sizes, pointer:coarse) --- */
@media (pointer: coarse) {
    /* Sidebar items */
    .dashboard-sidebar-item {
        min-height: 44px;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

    /* KPI tabs */
    .kpi-tab {
        min-height: 72px;
        padding: 0.75rem 1rem;
    }

    /* Research bar submit button */
    .dashboard-research-submit {
        min-height: 44px;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

    /* Filter pills */
    #filter-unresolved,
    #filter-resolved {
        min-height: 36px;
        padding: 0.5rem 0.75rem;
    }

    /* Detail panel collapsible toggles */
    #detail-panel .collapsible-toggle,
    #assets-detail-panel .collapsible-toggle {
        min-height: 48px;
    }

    /* Graph toolbar buttons */
    .graph-toolbar-btn {
        min-width: 44px;
        min-height: 44px;
    }

    /* Graph action panel buttons */
    .ap-action-btn {
        min-height: 44px;
    }

    /* Sort select, filter inputs */
    #victim-sort-select {
        min-height: 36px;
        padding: 0.5rem 2rem 0.5rem 0.75rem;
    }
}

/* --- Specific minor responsive tweaks --- */

/* Research bar: collapse type selector label on very small screens */
@media (max-width: 420px) {
    .dashboard-research-bar .dashboard-research-select {
        min-width: 110px !important;
        padding-left: 0.5rem;
        padding-right: 1.5rem;
        font-size: 0.68rem;
    }

    .dashboard-research-bar #searchQuery,
    .dashboard-research-bar #dashboard-search-input {
        font-size: 0.875rem;
    }

    .dashboard-research-submit .material-symbols-outlined {
        font-size: 20px !important;
    }

    /* Sidebar overlay: full width on very small screens */
    .dashboard-sidebar.sidebar-open {
        width: 85vw !important;
        max-width: 280px;
    }

    /* Export modal full screen on tiny screens */
    .dashboard-modal-shell {
        max-width: 100vw !important;
        margin: 0 !important;
        border-radius: 0 !important;
        max-height: 100vh;
    }

    /* Stealer pie chart: center on mobile */
    .dashboard-panel canvas {
        max-width: 100%;
    }
}

/* Smooth scroll for overflow containers on touch devices */
@media (hover: none) {
    .flex.gap-3.overflow-x-auto:has(.kpi-tab),
    #victim-list,
    #assets-list,
    #ai-analysis-content,
    #ai-chat-history,
    #file-explorer-browser {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Disable hover-dependent transform effects on touch */
    .kpi-tab:hover {
        transform: none;
    }

    .dashboard-card:hover {
        transform: none;
    }

    .victim-card:hover {
        transform: none;
    }
}


/* ═══════════════════════════════════════════════════════════
   CROSS-BROWSER & RESPONSIVE HARDENING
   ═══════════════════════════════════════════════════════════ */

/* Prevent horizontal overflow on all screen sizes */
html, body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Force hardware acceleration for smooth animations */
.section-reveal,
.tilt-card,
.prism-hover {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

/* Hover states only for devices that support hover */
@media (hover: none) {
    .stat-growth {
        display: none;
    }
    .group:hover .group-hover\:w-32 {
        width: 3rem;
    }
}

/* iOS input reset */
#hero-search-input,
input[type="text"],
input[type="email"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}

/* Autocomplete stacking hardening */
#search-autocomplete {
    isolation: isolate;
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.8), 0 0 20px -5px rgba(255,69,0,0.1);
}

#search-autocomplete[hidden] {
    display: none !important;
}

.hero-search-control.autocomplete-open {
    z-index: 60;
}

/* Terminal mobile containment */
@media (max-width: 767px) {
    .live-log-entry,
    .animate-log-scroll > div {
        font-size: 10px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 24px;
        min-height: 24px;
    }
}

/* Minimum touch targets for mobile */
@media (pointer: coarse) {
    a, button, summary, [role="button"] {
        min-height: 44px;
    }
}

/* ───────────────────────────────────────────────────────────
   DASHBOARD SEARCH AUTOCOMPLETE
   ─────────────────────────────────────────────────────────── */
#dashboard-autocomplete {
    isolation: isolate;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.85), 0 0 20px -5px rgba(255,69,0,0.08);
}

#dashboard-autocomplete[hidden] {
    display: none !important;
}

#dashboard-autocomplete::-webkit-scrollbar {
    width: 4px;
}

#dashboard-autocomplete::-webkit-scrollbar-track {
    background: transparent;
}

#dashboard-autocomplete::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
}

/* ───────────────────────────────────────────────────────────
   IMAGE CROP MODAL (Cropper.js dark-theme overrides)
   ─────────────────────────────────────────────────────────── */
#imageCropModal .cropper-view-box {
    outline: 2px solid #FF4500;
    outline-color: rgba(255, 69, 0, 0.75);
    border-radius: 50%;
}

#imageCropModal .cropper-line {
    background-color: rgba(255, 255, 255, 0.15);
}

#imageCropModal .cropper-point {
    background-color: #FF4500;
    width: 10px;
    height: 10px;
    opacity: 1;
    border-radius: 50%;
}

#imageCropModal .cropper-point.point-se,
#imageCropModal .cropper-point.point-sw,
#imageCropModal .cropper-point.point-ne,
#imageCropModal .cropper-point.point-nw {
    width: 12px;
    height: 12px;
}

#imageCropModal .cropper-dashed {
    border-color: rgba(255, 255, 255, 0.2);
}

#imageCropModal .cropper-modal {
    background-color: rgba(0, 0, 0, 0.65);
}

#imageCropModal .cropper-bg {
    background-image: none;
    background-color: #0a0a0a;
}
