/**
 * NEXUS Future — camada visual viva + preparação IA
 */

:root {
    --nx-neon: #00d4ff;
    --nx-neon-dim: rgba(0, 212, 255, 0.35);
    --nx-purple: #7c5cff;
    --nx-purple-glow: rgba(124, 92, 255, 0.45);
    --nx-magenta: #e056fd;
    --nx-glass: rgba(30, 32, 38, 0.72);
    --nx-glass-border: rgba(255, 255, 255, 0.08);
    --nx-glow-primary: 0 0 20px rgba(88, 101, 242, 0.35), 0 0 40px rgba(0, 212, 255, 0.12);
}

/* --- Fundo vivo (app logado) --- */
body.nx-future {
    background: #0a0b0f;
}

/* Fundo vivo — tela inteira (atrás da sidebar e do conteúdo) */
.nx-app-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    display: none;
}

.nx-page-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    z-index: 1;
}

#nx-page-root {
    position: relative;
    z-index: 1;
    background: transparent;
}

body.nx-ambient--static .nx-app-ambient {
    display: none !important;
}

.nx-auth-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.nx-ambient__mesh {
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(124, 92, 255, 0.16), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0, 212, 255, 0.11), transparent 45%),
        radial-gradient(ellipse 50% 30% at 50% 50%, rgba(88, 101, 242, 0.08), transparent 60%);
    animation: nx-mesh-drift 40s ease-in-out infinite alternate;
}

.nx-ambient__grid {
    display: none !important;
}

.nx-app-ambient .nx-ambient__mesh {
    z-index: 0;
}

#nx-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

body.nx-ambient--static .nx-app-ambient .nx-ambient__mesh,
body.nx-ambient--static .nx-app-ambient .nx-ambient__grid,
body.nx-ambient--static .nx-auth-ambient .nx-ambient__mesh,
body.nx-ambient--static .nx-auth-ambient .nx-ambient__grid {
    animation: none;
    opacity: 0.35;
}

body.nx-ambient--static .nx-app-ambient,
body.nx-ambient--static #nx-particles {
    display: none;
}

body.nx-animations-paused .nx-app-ambient .nx-ambient__mesh,
.nx-app-ambient--paused .nx-ambient__mesh {
    animation-play-state: paused !important;
}

@keyframes nx-mesh-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(2%, 3%) scale(1.05); }
}


@keyframes nx-glow-pulse {
    0%, 100% { box-shadow: 0 0 12px var(--nx-neon-dim), inset 0 0 20px rgba(0, 212, 255, 0.03); }
    50% { box-shadow: 0 0 24px rgba(0, 212, 255, 0.25), inset 0 0 30px rgba(124, 92, 255, 0.06); }
}

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

@keyframes nx-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes nx-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes nx-scan {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* Sidebar futurista */
body.nx-future .sidebar {
    background: linear-gradient(180deg, rgba(8, 9, 14, 0.98) 0%, rgba(17, 18, 24, 0.95) 100%) !important;
    border-right: 1px solid var(--nx-glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.nx-future .sidebar .user-profile {
    background: #0d0e10 !important;
}

@keyframes nx-brain-breathe {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.4)); }
    50% { filter: drop-shadow(0 0 16px rgba(124, 92, 255, 0.65)); }
}

@keyframes nx-brain-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes nx-brain-spin-rev {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes nx-brain-hub-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.07); }
}

@keyframes nx-brain-node-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes nx-brain-link-flow {
    0% { stroke-dashoffset: 20; opacity: 0.3; }
    50% { opacity: 0.9; }
    100% { stroke-dashoffset: 0; opacity: 0.4; }
}

@keyframes nx-brain-core-glow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes nx-neuron-grow {
    0% { stroke-dashoffset: 100; opacity: 0; }
    8% { opacity: 0.95; }
    40% { stroke-dashoffset: 0; opacity: 0.9; }
    72% { stroke-dashoffset: 0; opacity: 0.7; }
    100% { stroke-dashoffset: 100; opacity: 0; }
}

@keyframes nx-neuron-soma-form {
    0%, 30% { transform: scale(0); opacity: 0; }
    48% { transform: scale(1.35); opacity: 1; }
    62%, 78% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

@keyframes nx-synapse-flash {
    0%, 50% { transform: scale(0); opacity: 0; }
    62% { transform: scale(1.8); opacity: 1; }
    75%, 85% { transform: scale(1); opacity: 0.85; }
    100% { transform: scale(0); opacity: 0; }
}

@keyframes nx-nucleus-pulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.12); opacity: 1; }
}

@keyframes nx-nucleus-halo {
    0%, 100% { transform: scale(1); opacity: 0.35; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

@keyframes nx-nucleus-field-breathe {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

@keyframes nx-chromatin-drift {
    0%, 100% { opacity: 0.45; transform: translate(0, 0); }
    50% { opacity: 0.85; transform: translate(0.4px, -0.3px); }
}

/* Logo IA NEXUS — núcleo + neurônios se formando */
.nx-brain-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 0;
    flex-shrink: 0;
}

.nx-brain-logo svg {
    display: block;
    overflow: visible;
    animation: nx-brain-breathe 4s ease-in-out infinite;
}

.nx-brain-logo--xs svg { width: 22px; height: 22px; }
.nx-brain-logo--sm svg { width: 28px; height: 28px; }
.nx-brain-logo--md svg { width: 36px; height: 36px; }
.nx-brain-logo--lg svg { width: 52px; height: 52px; }

.nx-brain-logo .nx-nucleus-field {
    transform-origin: 32px 32px;
    transform-box: fill-box;
    animation: nx-nucleus-field-breathe 4.5s ease-in-out infinite;
}

.nx-brain-logo .nx-brain-orbit {
    transform-origin: 32px 32px;
    transform-box: fill-box;
}

.nx-brain-logo .nx-brain-orbit--outer {
    animation: nx-brain-spin 11s linear infinite;
}

.nx-brain-logo .nx-brain-orbit--mid {
    animation: nx-brain-spin-rev 8s linear infinite;
}

.nx-brain-logo .nx-brain-nucleus {
    transform-origin: 32px 32px;
    transform-box: fill-box;
    animation: nx-brain-hub-pulse 3.5s ease-in-out infinite;
}

.nx-brain-logo .nx-nucleus-halo {
    transform-origin: 32px 32px;
    transform-box: fill-box;
    animation: nx-nucleus-halo 2.8s ease-in-out infinite;
}

.nx-brain-logo .nx-nucleus-membrane {
    transform-origin: 32px 32px;
    transform-box: fill-box;
    animation: nx-nucleus-pulse 2.4s ease-in-out infinite;
    fill: rgba(124, 92, 255, 0.32);
}

.nx-brain-logo .nx-nucleus-core {
    transform-origin: 32px 32px;
    transform-box: fill-box;
    animation: nx-nucleus-pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.75));
}

.nx-brain-logo .nx-nucleus-dot {
    transform-origin: 32px 32px;
    transform-box: fill-box;
    animation: nx-brain-core-glow 2.2s ease-in-out infinite;
}

.nx-brain-logo .nx-nucleus-chromatin {
    transform-box: fill-box;
    animation: nx-chromatin-drift 3.2s ease-in-out infinite;
}

.nx-brain-logo .nx-chrom--1 { animation-delay: 0s; }
.nx-brain-logo .nx-chrom--2 { animation-delay: 0.4s; }
.nx-brain-logo .nx-chrom--3 { animation-delay: 0.8s; }
.nx-brain-logo .nx-chrom--4 { animation-delay: 1.2s; }
.nx-brain-logo .nx-chrom--5 { animation-delay: 1.6s; }

/* Neurônios internos — formam dentro do núcleo */
.nx-brain-logo .nx-neuron-inner {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: nx-neuron-grow-inner 5s ease-in-out infinite;
}

@keyframes nx-neuron-grow-inner {
    0% { stroke-dashoffset: 100; opacity: 0; }
    10% { opacity: 0.9; }
    42% { stroke-dashoffset: 0; opacity: 0.85; }
    68% { stroke-dashoffset: 0; opacity: 0.65; }
    100% { stroke-dashoffset: 100; opacity: 0; }
}

.nx-brain-logo .nx-inner--1,
.nx-brain-logo .nx-inner--1b { animation-delay: 0s; }
.nx-brain-logo .nx-inner--2,
.nx-brain-logo .nx-inner--2b { animation-delay: 0.12s; }
.nx-brain-logo .nx-inner--3,
.nx-brain-logo .nx-inner--3b { animation-delay: 0.24s; }
.nx-brain-logo .nx-inner--4,
.nx-brain-logo .nx-inner--4b { animation-delay: 0.36s; }
.nx-brain-logo .nx-inner--5,
.nx-brain-logo .nx-inner--5b { animation-delay: 0.48s; }
.nx-brain-logo .nx-inner--6,
.nx-brain-logo .nx-inner--6b { animation-delay: 0.6s; }
.nx-brain-logo .nx-inner--7 { animation-delay: 0.72s; }
.nx-brain-logo .nx-inner--8 { animation-delay: 0.84s; }
.nx-brain-logo .nx-inner--x1 { animation-delay: 0.2s; }
.nx-brain-logo .nx-inner--x2 { animation-delay: 0.44s; }
.nx-brain-logo .nx-inner--x3 { animation-delay: 0.68s; }

.nx-brain-logo .nx-soma-inner {
    animation: nx-neuron-soma-form 5s ease-out infinite;
}

.nx-brain-logo .nx-isoma--1 { animation-delay: 0.18s; }
.nx-brain-logo .nx-isoma--2 { animation-delay: 0.3s; }
.nx-brain-logo .nx-isoma--3 { animation-delay: 0.42s; }
.nx-brain-logo .nx-isoma--4 { animation-delay: 0.54s; }
.nx-brain-logo .nx-isoma--5 { animation-delay: 0.66s; }
.nx-brain-logo .nx-isoma--6 { animation-delay: 0.78s; }

.nx-brain-logo .nx-syn-inner {
    animation: nx-synapse-flash 5s ease-out infinite;
}

.nx-brain-logo .nx-isyn--1 { animation-delay: 0.25s; }
.nx-brain-logo .nx-isyn--2 { animation-delay: 0.37s; }
.nx-brain-logo .nx-isyn--3 { animation-delay: 0.49s; }
.nx-brain-logo .nx-isyn--4 { animation-delay: 0.61s; }
.nx-brain-logo .nx-isyn--5 { animation-delay: 0.73s; }
.nx-brain-logo .nx-isyn--6 { animation-delay: 0.85s; }

/* Neurônios se formando — axônios, dendritos, sinapses */
.nx-brain-logo .nx-neuron {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: nx-neuron-grow 6s ease-in-out infinite;
}

.nx-brain-logo .nx-neuron--1,
.nx-brain-logo .nx-neuron--1b { animation-delay: 0s; }
.nx-brain-logo .nx-neuron--1c { animation-delay: 0.1s; }
.nx-brain-logo .nx-neuron--1d { animation-delay: 0.18s; }

.nx-brain-logo .nx-neuron--2,
.nx-brain-logo .nx-neuron--2b { animation-delay: 0.25s; }
.nx-brain-logo .nx-neuron--2c { animation-delay: 0.35s; }
.nx-brain-logo .nx-neuron--2d { animation-delay: 0.42s; }

.nx-brain-logo .nx-neuron--3,
.nx-brain-logo .nx-neuron--3b { animation-delay: 0.5s; }
.nx-brain-logo .nx-neuron--3c { animation-delay: 0.6s; }
.nx-brain-logo .nx-neuron--3d { animation-delay: 0.67s; }

.nx-brain-logo .nx-neuron--4,
.nx-brain-logo .nx-neuron--4b { animation-delay: 0.75s; }
.nx-brain-logo .nx-neuron--4c { animation-delay: 0.85s; }
.nx-brain-logo .nx-neuron--4d { animation-delay: 0.92s; }

.nx-brain-logo .nx-neuron--5,
.nx-brain-logo .nx-neuron--5b { animation-delay: 1s; }
.nx-brain-logo .nx-neuron--5c { animation-delay: 1.1s; }
.nx-brain-logo .nx-neuron--5d { animation-delay: 1.17s; }

.nx-brain-logo .nx-neuron--6,
.nx-brain-logo .nx-neuron--6b { animation-delay: 1.25s; }
.nx-brain-logo .nx-neuron--6c { animation-delay: 1.35s; }
.nx-brain-logo .nx-neuron--6d { animation-delay: 1.42s; }

.nx-brain-logo .nx-neuron--7,
.nx-brain-logo .nx-neuron--7b { animation-delay: 1.5s; }
.nx-brain-logo .nx-neuron--7c { animation-delay: 1.6s; }
.nx-brain-logo .nx-neuron--7d { animation-delay: 1.67s; }

.nx-brain-logo .nx-neuron--8,
.nx-brain-logo .nx-neuron--8b { animation-delay: 1.75s; }
.nx-brain-logo .nx-neuron--8c { animation-delay: 1.85s; }
.nx-brain-logo .nx-neuron--8d { animation-delay: 1.92s; }

.nx-brain-logo .nx-neuron--x1 { animation-delay: 0.15s; }
.nx-brain-logo .nx-neuron--x2 { animation-delay: 0.9s; }
.nx-brain-logo .nx-neuron--x3 { animation-delay: 0.4s; }
.nx-brain-logo .nx-neuron--x4 { animation-delay: 1.15s; }

.nx-brain-logo .nx-neuron-soma,
.nx-brain-logo .nx-neuron-syn {
    transform-box: fill-box;
    transform-origin: center;
}

.nx-brain-logo .nx-neuron-soma {
    animation: nx-neuron-soma-form 6s ease-out infinite;
}

.nx-brain-logo .nx-soma--1 { animation-delay: 0.35s; }
.nx-brain-logo .nx-soma--2 { animation-delay: 0.65s; }
.nx-brain-logo .nx-soma--3 { animation-delay: 0.9s; }
.nx-brain-logo .nx-soma--4 { animation-delay: 1.15s; }
.nx-brain-logo .nx-soma--5 { animation-delay: 1.4s; }
.nx-brain-logo .nx-soma--6 { animation-delay: 1.65s; }
.nx-brain-logo .nx-soma--7 { animation-delay: 1.9s; }
.nx-brain-logo .nx-soma--8 { animation-delay: 2.15s; }

.nx-brain-logo .nx-neuron-syn {
    animation: nx-synapse-flash 6s ease-out infinite;
}

.nx-brain-logo .nx-syn--1a { animation-delay: 0.45s; }
.nx-brain-logo .nx-syn--1b { animation-delay: 0.55s; }
.nx-brain-logo .nx-syn--1c { animation-delay: 0.62s; }
.nx-brain-logo .nx-syn--2a { animation-delay: 0.7s; }
.nx-brain-logo .nx-syn--2b { animation-delay: 0.8s; }
.nx-brain-logo .nx-syn--2c { animation-delay: 0.87s; }
.nx-brain-logo .nx-syn--3a { animation-delay: 0.95s; }
.nx-brain-logo .nx-syn--3b { animation-delay: 1.05s; }
.nx-brain-logo .nx-syn--3c { animation-delay: 1.12s; }
.nx-brain-logo .nx-syn--4a { animation-delay: 1.2s; }
.nx-brain-logo .nx-syn--4b { animation-delay: 1.3s; }
.nx-brain-logo .nx-syn--4c { animation-delay: 1.37s; }
.nx-brain-logo .nx-syn--5a { animation-delay: 1.45s; }
.nx-brain-logo .nx-syn--5b { animation-delay: 1.55s; }
.nx-brain-logo .nx-syn--5c { animation-delay: 1.62s; }
.nx-brain-logo .nx-syn--6a { animation-delay: 1.7s; }
.nx-brain-logo .nx-syn--6b { animation-delay: 1.8s; }
.nx-brain-logo .nx-syn--6c { animation-delay: 1.87s; }
.nx-brain-logo .nx-syn--7a { animation-delay: 1.95s; }
.nx-brain-logo .nx-syn--7b { animation-delay: 2.05s; }
.nx-brain-logo .nx-syn--7c { animation-delay: 2.12s; }
.nx-brain-logo .nx-syn--8a { animation-delay: 2.2s; }
.nx-brain-logo .nx-syn--8b { animation-delay: 2.3s; }
.nx-brain-logo .nx-syn--8c { animation-delay: 2.37s; }
.nx-brain-logo .nx-syn--xa { animation-delay: 0.5s; }
.nx-brain-logo .nx-syn--xb { animation-delay: 1.25s; }
.nx-brain-logo .nx-syn--xc { animation-delay: 0.75s; }
.nx-brain-logo .nx-syn--xd { animation-delay: 1.5s; }

.nx-brain-logo .nx-brain-core {
    animation: nx-brain-core-glow 2s ease-in-out infinite;
}

/* legacy alias */
.nx-brain-logo .nx-brain-core,
.nx-brain-logo .nx-nucleus-core {
    filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.6));
}

.nx-brain-logo .nx-brain-sat {
    filter: drop-shadow(0 0 3px rgba(0, 212, 255, 0.8));
}

.nx-brain-logo--fab svg {
    animation: nx-brain-breathe 3s ease-in-out infinite;
}

.nx-brain-logo--fab .nx-brain-orbit--outer circle:first-child,
.nx-brain-logo--fab .nx-brain-orbit--mid ellipse {
    stroke: rgba(255, 255, 255, 0.55);
}

.nx-brain-logo--fab .nx-nucleus-field {
    fill: rgba(255, 255, 255, 0.12);
}

.nx-brain-logo--fab .nx-nucleus-membrane {
    fill: rgba(255, 255, 255, 0.25);
    stroke: rgba(255, 255, 255, 0.8);
}

.nx-brain-logo--fab .nx-nucleus-core {
    fill: #fff;
}

.nx-brain-logo--fab .nx-nucleus-dot {
    fill: #00d4ff;
}

.nx-brain-logo--fab .nx-neuron {
    stroke: rgba(255, 255, 255, 0.85);
}

.nx-brain-logo--fab .nx-neuron-soma,
.nx-brain-logo--fab .nx-neuron-syn {
    fill: #fff;
}

.nx-brain-logo--fab .nx-neuron-syn {
    fill: #00d4ff;
}

.nx-brain-logo--fab .nx-brain-sat--b {
    fill: #e8dcff;
}

body.nx-future .sidebar-header a .nx-brain-logo {
    margin-right: 8px;
}

body.nx-future .sidebar-header a {
    display: inline-flex;
    align-items: center;
}

body.nx-future .sidebar-header a .nx-brain-logo svg,
body.nx-auth-future .nx-auth-logo .nx-brain-logo svg {
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

body.nx-future .sidebar-header a .fa-network-wired,
body.nx-future .sidebar-header a i {
    filter: drop-shadow(0 0 8px var(--nx-neon));
    animation: nx-float 4s ease-in-out infinite;
}

body.nx-future .sidebar-header a span.nav-text {
    background: linear-gradient(90deg, #fff, var(--nx-neon), var(--nx-purple));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nx-shimmer 6s linear infinite;
}

body.nx-future .menu a:hover,
body.nx-future .menu a.active {
    background: linear-gradient(90deg, rgba(124, 92, 255, 0.2), rgba(0, 212, 255, 0.08));
    border-left: 2px solid var(--nx-neon);
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.05);
}

body.nx-future .menu a.active i {
    color: var(--nx-neon);
    filter: drop-shadow(0 0 6px var(--nx-neon-dim));
}

/* Área principal */
body.nx-future .main-content {
    position: relative;
    z-index: 1;
    background: transparent;
    animation: nx-fade-up 0.5s ease-out;
}

body.nx-future .main-content > * {
    position: relative;
    z-index: 2;
}

/* Status bar superior */
.nx-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    margin: -8px 0 12px 0;
    background: var(--nx-glass);
    border: 1px solid var(--nx-glass-border);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    font-size: 0.75rem;
    flex-wrap: wrap;
}

.nx-status-bar__left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nx-status-bar__right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nx-status-bar__center {
    flex: 1;
    min-width: 180px;
    max-width: 520px;
    display: flex;
    justify-content: center;
}

.nx-global-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 480px;
}

.nx-global-search__input {
    width: 100%;
    height: 34px;
    padding: 0 40px 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nx-global-search__input::placeholder {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.75rem;
}

.nx-global-search__input:focus {
    border-color: rgba(124, 92, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

.nx-global-search__ai {
    position: absolute;
    right: 4px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--nx-purple), #5865f2);
    color: #fff;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, box-shadow 0.15s;
}

.nx-global-search__ai:hover {
    transform: scale(1.06);
    box-shadow: 0 0 12px rgba(124, 92, 255, 0.45);
}

.nx-search-wrap--legacy {
    display: none !important;
}

.nx-status-kpis {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nx-status-kpi {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.nx-status-kpi strong {
    color: #fff;
    font-weight: 800;
}

.nx-status-kpi--critical strong {
    color: #ed4245;
}

.menu a {
    position: relative;
}

.nx-nav-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: rgba(88, 101, 242, 0.35);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.nx-nav-badge:empty,
.nx-nav-badge[data-count="0"] {
    display: none;
}

.nx-nav-badge--alert {
    background: #ed4245;
}

.sidebar.collapsed .nx-nav-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 0.6rem;
    margin-left: 0;
}

.nx-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-success);
    box-shadow: 0 0 10px var(--accent-success);
    animation: nx-live-pulse 2s ease-in-out infinite;
}

@keyframes nx-live-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.nx-status-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.nx-status-value {
    color: #fff;
    font-weight: 600;
}

.nx-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.3), rgba(0, 212, 255, 0.15));
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: var(--nx-neon);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nx-ai-badge i {
    animation: nx-float 2.5s ease-in-out infinite;
}

/* Glass cards & módulos */
body.nx-future .nx-module-card,
body.nx-future .nx-filter-card,
body.nx-future .monitor-container {
    background: var(--nx-glass);
    border: 1px solid var(--nx-glass-border);
    backdrop-filter: blur(14px);
    box-shadow: var(--nx-glow-primary);
    transition: box-shadow 0.3s, border-color 0.3s;
}

body.nx-future .nx-module-card:hover,
body.nx-future .monitor-container:hover {
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.12);
}

body.nx-future .nx-page-title {
    background: linear-gradient(90deg, #fff 0%, #c8d0ff 50%, var(--nx-neon) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Botões com glow */
body.nx-future .btn-nexus-success,
body.nx-future .btn-add,
body.nx-future .btn-new {
    background: linear-gradient(135deg, #00e676, #00c853);
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.25);
}

body.nx-future .btn-nexus-success:hover {
    box-shadow: 0 6px 28px rgba(0, 230, 118, 0.4);
    transform: translateY(-1px);
}

body.nx-future .btn-nexus-primary,
body.nx-future .nx-auth-submit {
    background: linear-gradient(135deg, var(--nx-purple), var(--primary), var(--nx-neon));
    background-size: 200% 200%;
    animation: nx-gradient-shift 6s ease infinite;
    box-shadow: 0 4px 24px var(--nx-purple-glow);
}

@keyframes nx-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

body.nx-future .nx-search:focus {
    border-color: var(--nx-neon);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15), 0 0 20px rgba(0, 212, 255, 0.1);
}

body.nx-future .nx-lista-table tr.activity-row:hover {
    background: rgba(0, 212, 255, 0.04) !important;
}

body.nx-future thead th {
    border-bottom-color: var(--nx-neon) !important;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

body.nx-future #nx-lista-sync .nx-lista-table tr.activity-row:hover {
    background: transparent !important;
}

body.nx-future #nx-lista-sync thead th,
body.nx-future #nx-lista-sync .nx-op-th {
    border-bottom-color: rgba(0, 212, 255, 0.15) !important;
    text-shadow: none !important;
}

/* Scanline removido — custo de CPU sem ganho visual */
body.nx-future .main-content::after {
    display: none !important;
    content: none !important;
}

/* --- Copilot IA --- */
.nx-copilot-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nx-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nx-global-search__ai .nx-brain-logo svg {
    width: 18px;
    height: 18px;
}

.nx-copilot-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.5);
    background: linear-gradient(145deg, var(--nx-purple), #5865f2);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    z-index: 10050;
    box-shadow: 0 8px 32px var(--nx-purple-glow), 0 0 0 0 rgba(0, 212, 255, 0.4);
    animation: nx-fab-pulse 3s ease-in-out infinite;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nx-copilot-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px var(--nx-purple-glow), 0 0 30px rgba(0, 212, 255, 0.3);
}

.nx-copilot-fab--alert {
    animation: nx-fab-alert 2s ease-in-out infinite;
}

.nx-copilot-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    border: 2px solid #0c0e14;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.6);
    pointer-events: none;
}

.nx-copilot-fab-badge[hidden] {
    display: none !important;
}

@keyframes nx-fab-alert {
    0%, 100% { box-shadow: 0 8px 32px var(--nx-purple-glow), 0 0 0 0 rgba(231, 76, 60, 0.35); }
    50% { box-shadow: 0 8px 32px var(--nx-purple-glow), 0 0 0 10px rgba(231, 76, 60, 0); }
}

@keyframes nx-fab-pulse {
    0%, 100% { box-shadow: 0 8px 32px var(--nx-purple-glow), 0 0 0 0 rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 8px 32px var(--nx-purple-glow), 0 0 0 12px rgba(0, 212, 255, 0); }
}

.nx-copilot-panel {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: min(400px, calc(100vw - 48px));
    max-height: min(520px, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    background: rgba(12, 14, 20, 0.92);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(124, 92, 255, 0.15);
    z-index: 10049;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.96);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    overflow: hidden;
}

.nx-copilot-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nx-copilot-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--nx-glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(124, 92, 255, 0.15), transparent);
    gap: 8px;
}

.nx-copilot-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.nx-copilot-header-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px 8px;
    border-radius: 6px;
}

.nx-copilot-header-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nx-copilot-hints {
    font-size: 0.82em;
    opacity: 0.9;
}

.nx-copilot-hints em {
    font-style: normal;
    color: #b8d4ff;
}

.nx-copilot-header h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nx-copilot-header h3 i {
    color: var(--nx-neon);
}

.nx-copilot-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
}

.nx-copilot-close:hover {
    color: #fff;
}

.nx-copilot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
}

.nx-copilot-msg {
    max-width: 92%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
    animation: nx-fade-up 0.35s ease-out;
    white-space: pre-wrap;
    word-break: break-word;
}

.nx-copilot-msg--ai {
    align-self: flex-start;
    background: rgba(124, 92, 255, 0.2);
    border: 1px solid rgba(124, 92, 255, 0.35);
    color: #e8eaff;
}

.nx-copilot-msg--user {
    align-self: flex-end;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #fff;
}

.nx-copilot-msg-meta {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    opacity: 0.85;
}

.nx-copilot-mode {
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    vertical-align: middle;
    margin-left: 6px;
}

.nx-copilot-mode--llm {
    background: rgba(0, 212, 255, 0.15);
    color: var(--nx-neon);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.nx-copilot-typing {
    display: flex;
    gap: 4px;
    padding: 12px 14px;
    align-self: flex-start;
}

.nx-copilot-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nx-neon);
    animation: nx-typing 1.2s ease-in-out infinite;
}

.nx-copilot-typing span:nth-child(2) { animation-delay: 0.15s; }
.nx-copilot-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes nx-typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.nx-copilot-input-wrap {
    padding: 12px;
    border-top: 1px solid var(--nx-glass-border);
    display: flex;
    gap: 8px;
}

.nx-copilot-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--nx-glass-border);
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    resize: none;
    min-height: 42px;
    max-height: 100px;
}

.nx-copilot-input:focus {
    outline: none;
    border-color: var(--nx-neon);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.15);
}

.nx-copilot-send {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--nx-purple), var(--nx-neon));
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.nx-copilot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nx-copilot-prtg-fan {
    padding: 8px 14px 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nx-copilot-prtg-fan[hidden] {
    display: none !important;
}

.nx-copilot-prtg-fan__label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 180, 80, 0.85);
    margin-bottom: 6px;
}

.nx-copilot-prtg-fan__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nx-copilot-chip--prtg {
    border-color: rgba(255, 180, 80, 0.4);
    background: rgba(255, 180, 80, 0.1);
}

.nx-copilot-chip--prtg:hover {
    background: rgba(255, 180, 80, 0.2);
    border-color: rgba(255, 180, 80, 0.6);
}

.nx-copilot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nx-copilot-suggestions[hidden] {
    display: none !important;
}

.nx-copilot-pending {
    margin: 0 14px 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(46, 204, 113, 0.45);
    background: rgba(46, 204, 113, 0.1);
    box-shadow: 0 0 24px rgba(46, 204, 113, 0.12);
}

.nx-copilot-pending[hidden] {
    display: none !important;
}

.nx-copilot-pending__text {
    margin: 0 0 10px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #dfffea;
    font-weight: 600;
}

.nx-copilot-pending__actions {
    display: flex;
    gap: 8px;
}

.nx-copilot-pending__actions .nx-copilot-action {
    flex: 1;
}

.nx-copilot-chip {
    font-size: 0.72rem;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 212, 255, 0.35);
    background: rgba(0, 212, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.nx-copilot-chip:hover {
    background: rgba(0, 212, 255, 0.18);
    border-color: rgba(0, 212, 255, 0.55);
}

.nx-copilot-link {
    display: inline;
    padding: 0 4px;
    margin: 0 1px;
    border: none;
    border-radius: 4px;
    background: rgba(124, 92, 255, 0.25);
    color: #b8d4ff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nx-copilot-link:hover {
    background: rgba(124, 92, 255, 0.45);
    color: #fff;
}

.nx-copilot-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.nx-copilot-action {
    flex: 1;
    min-width: 100px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.nx-copilot-action:disabled {
    opacity: 0.55;
    cursor: wait;
}

.nx-copilot-action--confirm {
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.55);
    color: #a8f0c8;
}

.nx-copilot-action--confirm:hover:not(:disabled) {
    background: rgba(46, 204, 113, 0.35);
    color: #fff;
}

.nx-copilot-action--cancel {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.75);
}

.nx-copilot-action--cancel:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Login futurista */
body.nx-auth-future {
    background: #050608;
    overflow: hidden;
}

.nx-auth-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.nx-auth-ambient .nx-ambient__mesh,
.nx-auth-ambient .nx-ambient__grid {
    position: absolute;
    inset: 0;
}

body.nx-auth-future .nx-auth-card {
    position: relative;
    z-index: 2;
    background: rgba(20, 22, 28, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(124, 92, 255, 0.15);
    animation: nx-fade-up 0.8s ease-out, nx-glow-pulse 4s ease-in-out infinite;
    max-width: 420px;
}

body.nx-auth-future .nx-auth-logo {
    font-size: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

body.nx-auth-future .nx-auth-logo i {
    color: var(--nx-neon);
    filter: drop-shadow(0 0 12px var(--nx-neon));
}

body.nx-auth-future .nx-auth-tagline {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: -16px 0 24px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.nx-auth-future .nx-auth-card input:focus {
    border-color: var(--nx-neon);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

/* Toast sync futurista */
#nexus-toast {
    border: 1px solid rgba(0, 212, 255, 0.4) !important;
    backdrop-filter: blur(10px);
    animation: nx-fade-up 0.3s ease-out !important;
}

/* Pop-ups de atividade (tempo real) */
#nexus-activity-popup-stack {
    position: fixed;
    top: 72px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.nexus-activity-popup {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    margin: 0;
    border: 1px solid rgba(0, 206, 201, 0.35);
    border-radius: 12px;
    background: rgba(30, 32, 38, 0.96);
    color: #e8eaed;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
    animation: nx-activity-popup-in 0.32s ease-out;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nexus-activity-popup:hover {
    border-color: rgba(0, 206, 201, 0.55);
    background: rgba(36, 38, 44, 0.98);
}

.nexus-activity-popup.is-leaving {
    opacity: 0;
    transform: translateX(12px);
}

.nexus-activity-popup__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 206, 201, 0.12);
    color: #00cec9;
    font-size: 1rem;
}

.nexus-activity-popup__text {
    flex: 1;
    min-width: 0;
}

@keyframes nx-activity-popup-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nx-ambient__mesh,
    .nx-ambient__grid,
    .nx-live-dot,
    .nx-copilot-fab,
    body.nx-future .main-content::after,
    body.nx-future .sidebar-header a i,
    .nx-brain-logo svg,
    .nx-brain-logo .nx-brain-orbit,
    .nx-brain-logo .nx-brain-hub,
    .nx-brain-logo .nx-brain-node,
    .nx-brain-logo .nx-brain-link,
    .nx-brain-logo .nx-brain-core,
    .nx-brain-logo .nx-brain-body,
    .nx-brain-logo .nx-brain-gyrus,
    .nx-brain-logo .nx-nucleus-halo,
    .nx-brain-logo .nx-nucleus-membrane,
    .nx-brain-logo .nx-nucleus-core,
    .nx-brain-logo .nx-nucleus-dot,
    .nx-brain-logo .nx-neuron,
    .nx-brain-logo .nx-neuron-soma,
    .nx-brain-logo .nx-neuron-syn {
        animation: none !important;
    }
}

/* Fundo animado desativado globalmente */
.nx-app-ambient,
.nx-auth-ambient,
#nx-particles {
    display: none !important;
}

body.nx-alive-lite .nx-app-ambient,
body.nx-auth-future .nx-auth-ambient {
    display: none !important;
}

/* Modo performance — UI operacional (não desliga nuvens/bolinhas) */

body.nx-perf .nx-live-dot,
body.nx-perf .nx-copilot-fab,
body.nx-perf .nx-copilot-fab--alert,
body.nx-perf .nx-ai-badge i,
body.nx-perf .nx-team-chat-fab--has-unread,
body.nx-perf .nx-team-chat-fab--pulse,
body.nx-perf .nx-status-chat-btn--has-unread,
body.nx-perf .nx-status-chat-btn--pulse,
body.nx-perf .badge,
body.nx-perf .bg-pri-1,
body.nx-perf .nx-fc-table tbody tr.nx-fc-row--pulse,
body.nx-perf .nx-dash-live-pill__dot,
body.nx-future.nx-perf .main-content::after,
body.nx-future.nx-perf .sidebar-header a span.nav-text,
body.nx-perf .nx-brain-logo,
body.nx-perf .nx-brain-logo *,
body.nx-perf .nx-hub-card::before,
body.nx-perf .nx-module-card::before {
    animation: none !important;
}

/* Ícones principais (--alive): núcleo + ramificações | sidebar (--alive-lite): só núcleo */
body.nx-perf .nx-brain-logo--alive .nx-nucleus-field,
body.nx-perf .nx-brain-logo--alive-lite .nx-nucleus-field {
    animation-name: nx-nucleus-field-breathe !important;
    animation-duration: 4.5s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
}

body.nx-perf .nx-brain-logo--alive .nx-brain-nucleus,
body.nx-perf .nx-brain-logo--alive-lite .nx-brain-nucleus {
    animation-name: nx-brain-hub-pulse !important;
    animation-duration: 3.5s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
}

body.nx-perf .nx-brain-logo--alive .nx-nucleus-halo,
body.nx-perf .nx-brain-logo--alive-lite .nx-nucleus-halo {
    animation-name: nx-nucleus-halo !important;
    animation-duration: 2.8s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
}

body.nx-perf .nx-brain-logo--alive .nx-nucleus-membrane,
body.nx-perf .nx-brain-logo--alive-lite .nx-nucleus-membrane {
    animation-name: nx-nucleus-pulse !important;
    animation-duration: 2.4s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
}

body.nx-perf .nx-brain-logo--alive .nx-nucleus-core,
body.nx-perf .nx-brain-logo--alive-lite .nx-nucleus-core {
    animation-name: nx-nucleus-pulse !important;
    animation-duration: 2s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
}

body.nx-perf .nx-brain-logo--alive .nx-nucleus-dot,
body.nx-perf .nx-brain-logo--alive-lite .nx-nucleus-dot {
    animation-name: nx-brain-core-glow !important;
    animation-duration: 2.2s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
}

body.nx-perf .nx-brain-logo--alive .nx-nucleus-chromatin {
    animation-name: nx-chromatin-drift !important;
    animation-duration: 3.2s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
}

body.nx-perf .nx-brain-logo--alive .nx-neuron-inner {
    animation-name: nx-neuron-grow-inner !important;
    animation-duration: 5s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
}

body.nx-perf .nx-brain-logo--alive .nx-neuron {
    animation-name: nx-neuron-grow !important;
    animation-duration: 6s !important;
    animation-timing-function: ease-in-out !important;
    animation-iteration-count: infinite !important;
}

body.nx-perf .nx-brain-logo--alive .nx-neuron-soma {
    animation-name: nx-neuron-soma-form !important;
    animation-duration: 6s !important;
    animation-timing-function: ease-out !important;
    animation-iteration-count: infinite !important;
}

body.nx-perf .nx-brain-logo--alive .nx-soma-inner {
    animation-name: nx-neuron-soma-form !important;
    animation-duration: 5s !important;
    animation-timing-function: ease-out !important;
    animation-iteration-count: infinite !important;
}

body.nx-perf .nx-brain-logo--alive .nx-neuron-syn {
    animation-name: nx-synapse-flash !important;
    animation-duration: 6s !important;
    animation-timing-function: ease-out !important;
    animation-iteration-count: infinite !important;
}

body.nx-perf .nx-brain-logo--alive .nx-syn-inner {
    animation-name: nx-synapse-flash !important;
    animation-duration: 5s !important;
    animation-timing-function: ease-out !important;
    animation-iteration-count: infinite !important;
}

body.nx-animations-paused .nx-brain-logo--alive,
body.nx-animations-paused .nx-brain-logo--alive *,
body.nx-animations-paused .nx-brain-logo--alive-lite,
body.nx-animations-paused .nx-brain-logo--alive-lite * {
    animation-play-state: paused !important;
}

body.nx-future.nx-perf .sidebar-header a span.nav-text {
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
}

body.nx-perf .nx-copilot-panel,
body.nx-perf .nx-module-card,
body.nx-perf .monitor-container,
body.nx-perf .nx-filter-card,
body.nx-perf .nx-status-bar,
body.nx-perf .sidebar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Barra de sync manual (padrão Quire — atualizações pendentes) */
.nexus-sync-bar {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    max-width: min(520px, calc(100vw - 24px));
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.nexus-sync-bar--hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
    visibility: hidden;
}

.nexus-sync-bar:not(.nexus-sync-bar--hidden) {
    pointer-events: auto;
}

.nexus-sync-bar__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 16px;
    background: rgba(30, 32, 38, 0.96);
    border: 1px solid rgba(0, 206, 201, 0.35);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    color: #e8eaed;
    font-size: 0.88rem;
    font-weight: 500;
}

.nexus-sync-bar--syncing .nexus-sync-bar__icon i {
    animation: nexus-sync-spin 0.9s linear infinite;
}

.nexus-sync-bar--error .nexus-sync-bar__inner {
    border-color: rgba(231, 76, 60, 0.5);
}

.nexus-sync-bar--error .nexus-sync-bar__icon i {
    color: #e74c3c;
}

.nexus-sync-bar__icon i {
    color: #00cec9;
    font-size: 1rem;
}

.nexus-sync-bar__text {
    flex: 1;
    line-height: 1.35;
}

.nexus-sync-bar__btn {
    flex-shrink: 0;
    padding: 7px 16px;
    border: none;
    border-radius: 8px;
    background: #00cec9;
    color: #1a1c22;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.nexus-sync-bar__btn:hover:not(:disabled) {
    background: #55efc4;
}

.nexus-sync-bar__btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

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