/* ==========================================================================
   NUBIARX. Executive Design System — Shared Stylesheet (Universal Shell)
   Works identically on BOTH Tailwind pages and standalone CSS simulator pages
   ========================================================================== */

:root {
    --void-bg: #060C14;
    --section-alt: #0B1523;
    --card-surface: #0F1A2A;
    --brand-cyan: #6BE4FF;
    --brand-ice: #33C9FF;
    --text-crisp: #F0F0F0;
    --text-body: #E0E0E0;
}

body {
    background-color: #060C14;
    color: #E0E0E0;
    overflow-x: hidden;
}

.brand-dot {
    color: #6BE4FF;
}

.vault-border {
    border: 1px solid rgba(107, 228, 255, 0.14);
}

.photo-backdrop {
    background: linear-gradient(135deg, #0F1A2A 0%, #0B1523 55%, #060C14 100%);
}

/*
  Unified editorial hover (insights + industry + offerings).

  Root cause of seam “hop” on hover-in (smooth on hover-out):
  Rest used computed transform/box-shadow `none`. First hover frame must invent
  interpolable values before the transition runs → discrete paint snap.
  Hover-out already has concrete values → smooth.

  Fix: keep the same transform/shadow *shape* at rest (transparent / 0.01px Z)
  so only numeric components animate. Same rules for article and anchor cards.
*/
.editorial-card {
    border: 1px solid rgba(107, 228, 255, 0.14);
    /* Non-identity Z keeps computed transform from collapsing to `none`. */
    transform: translate3d(0, 0, 0.01px);
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0);
    backface-visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.editorial-card:hover {
    transform: translate3d(0, -4px, 0.01px);
    border-color: rgba(107, 228, 255, 0.38);
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.65);
}

.group.editorial-card:has(.editorial-photo) {
    overflow: hidden;
}

.editorial-card .photo-backdrop {
    overflow: hidden;
    background-color: #0F1A2A;
    background-image: none;
}

.editorial-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*
      Constant micro-blur in rest + hover keeps Chrome on one resample path so
      mid-zoom sharp→soft→sharp flicker (esp. on smaller Insight cards) disappears.
      Prefer consistent over max-sharp that pops.
    */
    filter: blur(0.2px);
    transform: translate3d(0, 0, 0.01px) scale(1);
    transform-origin: center center;
    backface-visibility: hidden;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .editorial-photo {
    filter: blur(0.2px);
    transform: translate3d(0, 0, 0.01px) scale(1.035);
}

/* Identical 300px x 58px Action Buttons + Single-Line Phone */
.advisor-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

.advisor-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 58px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
}

@media (min-width: 680px) {
    .advisor-actions-grid {
        grid-template-columns: repeat(2, 300px);
        width: max-content;
    }
    .advisor-action-btn {
        width: 300px;
        height: 58px;
    }
}

@keyframes breachCascade {
    0% { transform: scale(1); }
    45% { transform: scale(1.018); }
    100% { transform: scale(1); }
}

.breach-pulse {
    animation: breachCascade 0.4s ease-out;
}

/* ==========================================================================
   SCOPED UNIVERSAL EXECUTIVE HEADER (ZERO-COLLISION ACROSS ALL 22 PAGES)
   ========================================================================== */
/* Reserve sticky header height before/while shell paints (build injects into dist). */
#nx-header {
    min-height: 92px;
}

/* Cross-document View Transitions stay off for now.
   Opt-in caused occasional “dead” first clicks while the browser snapshot/held the old page. */
@view-transition {
    navigation: none;
}

.nx-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 12, 20, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(107, 228, 255, 0.15);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.nx-header * {
    box-sizing: border-box;
}

.nx-header-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .nx-header-inner {
        padding: 0 2rem;
    }
}

.nx-logo {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.025em;
    color: #F0F0F0;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
}

.nx-nav {
    display: none;
    align-items: center;
    gap: 1.15rem;
    font-size: 14.5px;
    font-weight: 500;
    color: #E0E0E0;
}

@media (min-width: 1180px) {
    .nx-nav {
        display: flex;
    }
}

.nx-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #E0E0E0;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nx-nav-link:hover,
.nx-nav-link.nx-active {
    color: #6BE4FF;
}

/* Keep weight identical for active/inactive so nav labels don't reflow between pages. */
.nx-nav-link.nx-active {
    font-weight: 500;
}

/* Mega-Menu Dropdown */
.nx-dd {
    position: relative;
}

.nx-dd::after {
    content: "";
    position: absolute;
    left: -14px;
    right: -14px;
    top: 100%;
    height: 20px;
}

.nx-dd-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 340px;
    background: #0F1A2A;
    border: 1px solid rgba(107, 228, 255, 0.2);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.78);
    display: grid;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 120;
}

.nx-dd-panel.wide {
    width: 600px;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    padding: 16px;
}

.nx-dd:hover .nx-dd-panel,
.nx-dd:focus-within .nx-dd-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nx-dd-col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(107, 228, 255, 0.85);
    padding: 6px 10px 8px;
}

.nx-dd-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.18s ease;
}

.nx-dd-item:hover {
    background: #0B1523;
}

.nx-dd-item.nx-active {
    background: rgba(107, 228, 255, 0.10);
}

.nx-dd-item.nx-active .nx-dd-item-title {
    color: #6BE4FF;
}

.nx-dd-item i {
    color: #6BE4FF;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.nx-dd-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #F0F0F0;
    line-height: 1.3;
}

.nx-dd-item-sub {
    font-size: 12px;
    color: rgba(224, 224, 224, 0.72);
    margin-top: 2px;
    line-height: 1.35;
}

/* Header Right Actions — above open mega-menus so Contact/Portal stay one-click. */
.nx-actions {
    position: relative;
    z-index: 130;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

/* Language switcher — same hover/gap/center pattern as .nx-dd. */
.nx-lang {
    position: relative;
    display: none;
    align-items: center;
}

.nx-lang::after {
    content: "";
    position: absolute;
    left: -14px;
    right: -14px;
    top: 100%;
    height: 20px;
}

.nx-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0;
    border: none;
    background: transparent;
    color: #E0E0E0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.06em;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.nx-lang-btn:hover,
.nx-lang:hover .nx-lang-btn,
.nx-lang:focus-within .nx-lang-btn {
    color: #6BE4FF;
}

.nx-lang-globe {
    font-size: 17px;
    line-height: 1;
}

.nx-lang-code {
    font-size: 14px;
    font-weight: 600;
}

.nx-lang-caret {
    font-size: 11px;
    opacity: 0.85;
    transition: transform 0.15s ease;
}

.nx-lang:hover .nx-lang-caret,
.nx-lang:focus-within .nx-lang-caret {
    transform: rotate(180deg);
}

.nx-lang-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 12.5rem;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(107, 228, 255, 0.2);
    background: #0F1A2A;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.78);
    display: grid;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 140;
}

.nx-lang:hover .nx-lang-menu,
.nx-lang:focus-within .nx-lang-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nx-lang-option {
    display: grid;
    grid-template-columns: 1.75rem 1fr auto;
    align-items: center;
    gap: 0.55rem;
    padding: 10px;
    border-radius: 12px;
    color: #F0F0F0;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.18s ease;
}

.nx-lang-option:hover {
    background: #0B1523;
    color: #F0F0F0;
}

.nx-lang-option.nx-lang-current {
    background: rgba(107, 228, 255, 0.10);
    color: #F0F0F0;
}

.nx-lang-option.nx-lang-current .nx-lang-option-name {
    color: #6BE4FF;
}

.nx-lang-option-code {
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 12px;
    color: rgba(224, 224, 224, 0.55);
}

.nx-lang-option.nx-lang-current .nx-lang-option-code {
    color: rgba(107, 228, 255, 0.85);
}

.nx-lang-option-name {
    font-weight: 600;
    text-align: left;
    line-height: 1.3;
}

.nx-lang-check,
.nx-lang-check-slot {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #6BE4FF;
    flex-shrink: 0;
}

.nx-lang-check-slot {
    color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    .nx-lang-btn,
    .nx-lang-option,
    .nx-lang-caret,
    .nx-lang-menu {
        transition: none;
    }
}

@media (min-width: 640px) {
    .nx-lang {
        display: inline-flex;
    }
}

.nx-portal-link {
    display: none;
    font-size: 15px;
    font-weight: 500;
    color: #E0E0E0;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nx-portal-link:hover,
.nx-portal-link.nx-active {
    color: #6BE4FF;
}

.nx-cta-btn {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1.45rem;
    border-radius: 8px;
    background: #6BE4FF;
    color: #060C14;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(107, 228, 255, 0.18);
}

/* Keep CTA arrow nudge on Tailwind/inline buttons (hero, contact, etc.) */
a.inline-flex i.ph-arrow-right,
button.inline-flex i.ph-arrow-right {
    display: inline-block;
    transition: transform 0.2s ease;
}

a.inline-flex:hover i.ph-arrow-right,
button.inline-flex:hover:not(:disabled) i.ph-arrow-right {
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    a.inline-flex:hover i.ph-arrow-right,
    button.inline-flex:hover:not(:disabled) i.ph-arrow-right {
        transform: none;
    }
}

.nx-cta-btn:hover {
    background: #33C9FF;
}

@media (min-width: 640px) {
    .nx-portal-link {
        display: inline-block;
    }
    .nx-cta-btn {
        display: inline-flex;
    }
}

.nx-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #0F1A2A;
    color: #F0F0F0;
    border: 1px solid rgba(107, 228, 255, 0.2);
    cursor: pointer;
}

@media (min-width: 1180px) {
    .nx-mobile-toggle {
        display: none;
    }
}

.nx-mobile-drawer {
    display: none;
    background: #0B1523;
    border-top: 1px solid rgba(107, 228, 255, 0.15);
    padding: 1.25rem 1.5rem 1.75rem;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
}

.nx-mobile-drawer.nx-open {
    display: block;
}

@media (min-width: 1180px) {
    .nx-mobile-drawer.nx-open {
        display: none;
    }
}

.nx-mobile-group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6BE4FF;
    margin: 1rem 0 0.45rem;
}

.nx-mobile-link {
    display: block;
    padding: 0.45rem 0;
    font-size: 16px;
    font-weight: 500;
    color: #F0F0F0;
    text-decoration: none;
}

.nx-mobile-link:hover,
.nx-mobile-link.nx-active {
    color: #6BE4FF;
}

/* ==========================================================================
   FIREWALL INTERACTIVE SIMULATOR RIBBON SUB-NAV
   ========================================================================== */
.nx-subnav {
    background: #0B1523;
    border-bottom: 1px solid rgba(107, 228, 255, 0.14);
    font-family: 'Inter', system-ui, sans-serif;
}

.nx-subnav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.nx-subnav-inner::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1024px) {
    .nx-subnav-inner {
        padding: 0.85rem 2rem;
    }
}

.nx-subnav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.48rem 0.9rem;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #E0E0E0;
    text-decoration: none;
    border: 1px solid rgba(107, 228, 255, 0.14);
    background: #0F1A2A;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.nx-subnav-pill:hover {
    border-color: rgba(107, 228, 255, 0.5);
    color: #6BE4FF;
}

.nx-subnav-pill.nx-sub-active {
    background: #6BE4FF;
    color: #060C14;
    border-color: #6BE4FF;
    font-weight: 700;
}

/* ==========================================================================
   SCOPED UNIVERSAL EXECUTIVE FOOTER
   ========================================================================== */
.nx-footer {
    background: #060C14;
    border-top: 1px solid rgba(107, 228, 255, 0.15);
    padding: 3.25rem 0 2.25rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    color: #E0E0E0;
    text-align: left !important;
}

/* Keep footer compact even when editorial pages raise body type size */
body.nxc-editorial .nx-footer,
body.nxc-editorial #nx-footer {
    font-size: 16px;
    line-height: 1.45;
}

.nx-footer * {
    box-sizing: border-box;
}

.nx-footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .nx-footer-inner {
        padding: 0 2rem;
    }
}

.nx-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-bottom: 1.5rem;
}

.nx-footer-navs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 1.5rem;
}

@media (min-width: 768px) {
    .nx-footer-navs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .nx-footer-grid {
        grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
        column-gap: 3rem;
        align-items: start;
    }

    .nx-footer-navs {
        justify-self: end;
        width: min(100%, 52rem);
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 2.5rem;
    }
}

.nx-footer-tagline {
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #94a3b8;
}

.nx-footer-title,
body.nxc-editorial .nx-footer-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #6BE4FF;
    /* Beat .nxc-editorial h3 { margin: 0 } — space title from link rows only */
    margin: 0 0 0.9rem;
}

.nx-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nx-footer-list a {
    color: #E0E0E0;
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.nx-footer-list a:hover {
    color: #6BE4FF;
}

.nx-footer-bottom {
    position: relative;
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    text-align: left;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
}

.nx-footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #1e2d44 20%, #1e2d44 80%, transparent);
}

.nx-footer-copy {
    margin: 0;
}

.nx-footer-cookies {
    color: #64748b;
}

.nx-social-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.nx-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    background: #0F1A2A;
    border: 1px solid rgba(107, 228, 255, 0.22);
    color: #E6F1FA;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.nx-social-btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    fill: currentColor;
}

.nx-social-btn:hover {
    border-color: #6BE4FF;
    color: #6BE4FF;
    background: rgba(107, 228, 255, 0.10);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(107, 228, 255, 0.45);
}

/* ==========================================================================
   SCOPED EXECUTIVE MODAL (ZERO-COLLISION)
   ========================================================================== */
.nx-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(6, 12, 20, 0.86);
    backdrop-filter: blur(8px);
    font-family: 'Inter', system-ui, sans-serif;
}

.nx-modal-backdrop.nx-modal-open {
    display: flex;
}

.nx-modal-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: #0F1A2A;
    border: 1px solid rgba(107, 228, 255, 0.22);
    border-radius: 24px;
    padding: 2.25rem;
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.8);
    max-height: 90vh;
    overflow-y: auto;
}

.nx-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #060C14;
    border: 1px solid rgba(107, 228, 255, 0.18);
    color: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nx-modal-close:hover {
    color: #FFFFFF;
    border-color: #6BE4FF;
}

.nx-modal-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: #060C14;
    border: 1px solid rgba(107, 228, 255, 0.22);
    color: #F0F0F0;
    font-size: 15px;
    outline: none;
}

.nx-modal-input:focus {
    border-color: #6BE4FF;
}

/* Simulator Executive Heading Unification Helper */
.nx-sim-hero-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
    color: #6BE4FF !important;
    letter-spacing: -0.025em !important;
}

/* ==========================================================================
   EMBEDDED SCALED SIMULATOR MODE (?embed=1)
   Shows ONLY the exact original visual hardware/cockpit stage flush at (0,0)
   ========================================================================== */
html.nx-embed-mode,
html.nx-embed-mode body {
    background: transparent !important;
    background-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    min-height: 0 !important;
}

html.nx-embed-mode #nx-header,
html.nx-embed-mode #nx-fw-subnav,
html.nx-embed-mode #nx-footer,
html.nx-embed-mode #executive-modal,
html.nx-embed-mode main > header,
html.nx-embed-mode main > section:not(.cell-stage-frame):not(.appliance-stage):not(.rack-cabinet-frame):not(.ot-cabinet-stage):not(.cockpit-bezel) {
    display: none !important;
}

html.nx-embed-mode main {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

html.nx-embed-mode .cell-stage-frame,
html.nx-embed-mode .appliance-stage,
html.nx-embed-mode .rack-cabinet-frame,
html.nx-embed-mode .ot-cabinet-stage,
html.nx-embed-mode .cockpit-bezel {
    margin: 0 !important;
    border-radius: 20px !important;
    overflow: visible !important;
}

/* Clean custom subtle scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #060C14;
}

::-webkit-scrollbar-thumb {
    background: #1B2D45;
    border-radius: 999px;
    border: 2px solid #060C14;
}

::-webkit-scrollbar-thumb:hover {
    background: #2C486B;
}

/* ==========================================================================
   NUBIARX. SOVEREIGN SECURITY ASSISTANT WIDGET (100% BROWSER-LOCAL)
   ========================================================================== */
html.nx-embed-mode #nxBotRoot,
html.nx-embed-mode .nx-bot-launcher,
html.nx-embed-mode .nx-bot-window {
    display: none !important;
}

@media print {
    #nxBotRoot,
    .nx-bot-launcher,
    .nx-bot-window {
        display: none !important;
    }
}

@keyframes nxBotHalo {
    0%, 100% {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(107, 228, 255, 0.65);
    }
    55% {
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 0 11px rgba(107, 228, 255, 0);
    }
}

@keyframes nxBotDotBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.82); }
}

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

@keyframes nxBotDot {
    0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
    40% { opacity: 1; transform: scale(1.1); }
}

.nx-bot-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 155;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 999px;
    background: #6BE4FF;
    border: 1.5px solid #6BE4FF;
    color: #060C14;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-weight: 800;
    font-size: 0.92rem;
    line-height: 1;
    cursor: pointer;
    animation: nxBotHalo 2.6s ease-in-out infinite;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nx-bot-launcher:hover {
    transform: translateY(-2px);
    background: #33C9FF;
    border-color: #33C9FF;
}

.nx-bot-launcher.is-open {
    animation: none;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.nx-bot-launcher .bot-pulse {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #060C14;
    animation: nxBotDotBlink 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.nx-bot-launcher.is-open .bot-pulse {
    animation: none;
    opacity: 1;
}

.nx-bot-launcher .bot-tag {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 10px;
    font-weight: 700;
    color: #6BE4FF;
    background: #060C14;
    border: 1px solid rgba(6, 12, 20, 0.25);
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.08em;
}

.nx-bot-window {
    position: fixed;
    right: 24px;
    bottom: 84px;
    z-index: 160;
    width: 408px;
    max-width: calc(100vw - 24px);
    height: 600px;
    max-height: calc(100vh - 108px);
    border-radius: 20px;
    background-color: #0B1523;
    border: 1.5px solid #6BE4FF;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 28px rgba(107, 228, 255, 0.16);
    display: none;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: left;
}

.nx-bot-window.open {
    display: flex;
    animation: nxBotIn 0.2s ease-out;
}

@media (max-width: 520px) {
    .nx-bot-launcher {
        right: 14px;
        bottom: 14px;
        padding: 11px 15px;
        font-size: 0.84rem;
    }
    .nx-bot-window {
        right: 12px;
        bottom: 72px;
        width: calc(100vw - 24px);
        height: calc(100vh - 96px);
        max-height: 640px;
    }
}

.nx-bot-head {
    padding: 15px 18px;
    background: #6BE4FF;
    border-bottom: 1px solid rgba(6, 12, 20, 0.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nx-bot-head-title {
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #060C14;
    display: flex;
    align-items: center;
    gap: 7px;
}

.nx-bot-head-sub {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 10px;
    font-weight: 700;
    color: #0B1523;
    opacity: 0.84;
    letter-spacing: 0.05em;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nx-bot-head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nx-bot-iconbtn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(6, 12, 20, 0.12);
    border: 1px solid rgba(6, 12, 20, 0.22);
    color: #060C14;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.nx-bot-iconbtn:hover {
    background: #060C14;
    border-color: #060C14;
    color: #6BE4FF;
}

.nx-bot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #060C14;
    background-image: radial-gradient(circle at 50% 0%, rgba(51, 201, 255, 0.06), transparent 55%);
}

.nx-bot-messages .bot-msg {
    max-width: 90%;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.86rem;
    line-height: 1.55;
    word-wrap: break-word;
}

.nx-bot-messages .bot-msg.assistant {
    align-self: flex-start;
    background: #0F1A2A;
    border: 1px solid rgba(107, 228, 255, 0.18);
    color: #CBD6E2;
    border-bottom-left-radius: 4px;
}

.nx-bot-messages .bot-msg.assistant strong {
    color: #F4F8FB;
}

.nx-bot-messages .bot-msg.user {
    align-self: flex-end;
    background: #6BE4FF;
    color: #060C14;
    font-weight: 600;
    border-bottom-right-radius: 4px;
}

.nx-bot-messages .bot-meta {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #6BE4FF;
    margin-bottom: 5px;
    display: block;
}

.nx-bot-messages .bot-bullets {
    margin: 8px 0 0;
    padding-left: 16px;
    list-style-type: disc;
    display: grid;
    gap: 4px;
}

.nx-bot-messages .bot-bullets li {
    color: #CBD6E2;
    font-size: 0.82rem;
}

.nx-bot-messages .bot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.nx-bot-messages .bot-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(6, 12, 20, 0.9);
    border: 1px solid rgba(107, 228, 255, 0.36);
    color: #6BE4FF;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 10.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.14s ease;
}

.nx-bot-messages .bot-link:hover {
    background: #6BE4FF;
    color: #060C14;
    border-color: #6BE4FF;
}

.nx-bot-messages .bot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nx-bot-messages .bot-chip {
    appearance: none;
    background: rgba(19, 34, 54, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    padding: 5px 10px;
    color: #CBD6E2;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.14s ease;
}

.nx-bot-messages .bot-chip:hover {
    border-color: #6BE4FF;
    color: #F4F8FB;
}

.nx-bot-messages .bot-typing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 2px;
}

.nx-bot-messages .bot-typing span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #6BE4FF;
    animation: nxBotDot 1s infinite ease-in-out;
}

.nx-bot-messages .bot-typing span:nth-child(2) { animation-delay: 0.16s; }
.nx-bot-messages .bot-typing span:nth-child(3) { animation-delay: 0.32s; }

.nx-bot-inputbar {
    padding: 12px 14px;
    background: #0F1A2A;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nx-bot-inputbar input {
    flex: 1;
    min-width: 0;
    background: #060C14;
    border: 1px solid rgba(107, 228, 255, 0.24);
    border-radius: 10px;
    padding: 10px 12px;
    color: #F4F8FB;
    font-family: "Inter", sans-serif;
    font-size: 0.86rem;
    outline: none;
}

.nx-bot-inputbar input::placeholder {
    color: rgba(147, 166, 188, 0.65);
}

.nx-bot-inputbar input:focus {
    border-color: #6BE4FF;
}

.nx-bot-send {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #6BE4FF;
    border: none;
    color: #060C14;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
    transition: background 0.14s ease;
}

.nx-bot-send:hover {
    background: #33C9FF;
}

.nx-bot-foot {
    padding: 7px 14px;
    background: #0B1523;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 9.5px;
    color: #93A6BC;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.nx-bot-foot a {
    color: #6BE4FF;
    text-decoration: none;
}


/* Live Firewall Lab embed (?lab=1) — hide shell chrome inside iframes */
html.nx-lab-mode #nx-header,
html.nx-lab-mode #nx-footer,
html.nx-lab-mode #nx-fw-subnav,
html.nx-lab-mode #executive-modal,
html.nx-lab-mode #nxBotRoot,
html.nx-lab-mode .nx-bot-launcher,
html.nx-lab-mode .nx-bot-window {
  display: none !important;
}
html.nx-lab-mode,
html.nx-lab-mode body {
  background: #060C14 !important;
  margin: 0 !important;
  overflow-x: hidden !important;
}
html.nx-lab-mode main {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
html.nx-lab-mode main > header,
html.nx-lab-mode main > section:nth-last-child(-n+2) {
  display: none !important;
}
