/* ==========================================================================
   NEGOMILOS NEXT - COCKPIT HOLOGRÁFICO 3D INTERATIVO (PROPOSTA 4 & NEXT)
   5 Temas: Holo-City, Cyberpunk Dark, Tactical Sci-Fi, Quantum Hex, Afrofuturismo
   Inclui:
   - Barra de Tarefas Inclinada em Perspetiva 3D com LEDs inferiores
   - Globo Terrestre 3D a Girar + Luzes Suaves + Logótipo Oficial NEGOMIL no Topo
   - Asa Esquerda 3D: Som + Gestor de Ficheiros em Árvore + Telemetria Dupla
   - Asa Direita 3D: Telemetria 8K + Fila Encriptada + Rede & Mapa Global
   - Consola Central "Negomil OS": Ícones do Ambiente de Trabalho + Menu Iniciar
   ========================================================================== */

:root {
    --next-cyan: #00e5ff;
    --next-cyan-bright: #00f6ff;
    --next-blue: #0072ce;
    --next-amber: #ffaa00;
    --next-gold: #ffd700;
    --next-bg-glass: rgba(5, 15, 32, 0.84);
    --next-bg-panel: rgba(7, 20, 42, 0.88);
    --next-border-neon: rgba(0, 229, 255, 0.65);
    --next-glow: 0 0 22px rgba(0, 229, 255, 0.35);
}

/* Variáveis de Acento por Tema Next */
[data-theme="negomilnext_holocity"] {
    --os-background: url('../img/themes_next/negomilnext_holocity_wallpaper.jpg') center/cover no-repeat fixed !important;
    --next-cyan: #00e5ff;
    --next-amber: #ffaa00;
}
[data-theme="negomilnext_dark"] {
    --os-background: url('../img/themes_next/negomilnext_dark_wallpaper.jpg') center/cover no-repeat fixed !important;
    --next-cyan: #00f0ff;
    --next-amber: #f59e0b;
}
[data-theme="negomilnext_tactical"] {
    --os-background: url('../img/themes_next/negomilnext_tactical_wallpaper.jpg') center/cover no-repeat fixed !important;
    --next-cyan: #00e5ff;
    --next-amber: #ffaa00;
}
[data-theme="negomilnext_hex"] {
    --os-background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), var(--next-hex-wallpaper-url, url('../img/themes_next/propostas/proposta_fundo_1.jpg')) center/cover no-repeat fixed !important;
    --next-cyan: #00e5ff;
    --next-amber: #ffaa00;
}
[data-theme="negomilnext_hex"] body,
[data-theme="negomilnext_hex"] #desktop {
    background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), var(--next-hex-wallpaper-url, url('../img/themes_next/propostas/proposta_fundo_1.jpg')) center/cover no-repeat fixed !important;
}
[data-theme="negomilnext_hex"] #desktop::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(1, 4, 12, 0.15);
    pointer-events: none;
    z-index: 0;
}
[data-theme="negomilnext_afro"] {
    --os-background: url('../img/themes_next/negomilnext_afro_wallpaper.jpg') center/cover no-repeat fixed !important;
    --next-cyan: #00e5ff;
    --next-amber: #ffd700;
}

/* Ocultar barra Ubuntu/Mac nos temas Next */
[data-theme^="negomilnext_"] .os-watermark,
[data-theme^="negomilnext_"] #ubuntu-dock-fab,
[data-theme^="negomilnext_"] #mac-topbar {
    display: none !important;
}

/* Nos outros 4 temas Next (1, 2, 3 e 5), estilizar os ícones do ambiente de trabalho como cartões squircle futuristas */
[data-theme="negomilnext_holocity"] .desktop-icon,
[data-theme="negomilnext_dark"] .desktop-icon,
[data-theme="negomilnext_tactical"] .desktop-icon,
[data-theme="negomilnext_afro"] .desktop-icon {
    background: rgba(8, 22, 46, 0.68) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(0, 229, 255, 0.38) !important;
    border-radius: 14px !important;
    padding: 8px 6px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), inset 0 0 10px rgba(0, 229, 255, 0.12) !important;
    transition: all 0.22s ease !important;
}
[data-theme="negomilnext_holocity"] .desktop-icon:hover,
[data-theme="negomilnext_dark"] .desktop-icon:hover,
[data-theme="negomilnext_tactical"] .desktop-icon:hover,
[data-theme="negomilnext_afro"] .desktop-icon:hover {
    transform: translateY(-3px) scale(1.04) !important;
    border-color: #00e5ff !important;
    box-shadow: 0 10px 24px rgba(0, 229, 255, 0.45) !important;
}

/* EXCLUSIVO PROPOSTA 4 (negomilnext_hex): Ocultar ícones soltos à esquerda,
   pois os ícones instalados estão no centro na Consola "Negomil OS" */
[data-theme="negomilnext_hex"] .desktop-icons {
    display: none !important;
}

/* EXCLUSIVO PROPOSTA 4 (negomilnext_hex): Ativar o Palco 3D do Cockpit Interativo */
#next-cockpit-stage {
    display: none !important;
}
[data-theme="negomilnext_hex"] #next-cockpit-stage {
    display: block !important;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
    user-select: none;
}

/* --------------------------------------------------------------------------
   1. CANVAS 3D DO GLOBO GIRATÓRIO, LUZES PULSANTES E PEDESTAL
   -------------------------------------------------------------------------- */
#next-cockpit-globe-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   2. COROA SUPERIOR: LOGÓTIPO OFICIAL NEGOMIL 3D SOBRE O GLOBO
   -------------------------------------------------------------------------- */
#next-cockpit-top-logo {
    display: none !important;
}
.next-top-logo-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 229, 255, 0.42) 0%, rgba(0, 114, 206, 0.15) 45%, transparent 72%);
    filter: blur(8px);
    pointer-events: none;
    animation: nextHaloPulse 4s ease-in-out infinite;
}
.next-top-logo-img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.9)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.85));
    z-index: 2;
}
.next-top-logo-title {
    margin-top: -4px;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 3.5px;
    color: #e0faff;
    text-transform: uppercase;
    text-shadow: 0 0 12px #00e5ff, 0 0 24px #0072ce, 0 2px 4px rgba(0, 0, 0, 0.95);
    z-index: 2;
}

@keyframes nextHaloPulse {
    0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(0.96); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* --------------------------------------------------------------------------
   3. ASAS LATERAIS EM PERSPETIVA 3D (ESQUERDA E DIREITA)
   -------------------------------------------------------------------------- */
.next-cockpit-wing {
    position: absolute;
    top: calc(14px * var(--cockpit-ui-scale, 1));
    bottom: auto;
    height: calc((100% - (110px * var(--cockpit-ui-scale, 1))) / var(--cockpit-ui-scale, 1));
    width: 386px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    pointer-events: auto;
    z-index: 10;
    padding: 8px;
    background: linear-gradient(180deg, rgba(4, 14, 30, 0.82) 0%, rgba(3, 10, 22, 0.90) 100%);
    backdrop-filter: blur(16px) saturate(160%);
    border: 1.5px solid rgba(0, 229, 255, 0.58);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 229, 255, 0.22), inset 0 0 18px rgba(0, 229, 255, 0.1);
    transition: width 0.28s ease, transform 0.28s ease, left 0.28s ease, right 0.28s ease;
}

.next-wing-left {
    left: calc(14px * var(--cockpit-ui-scale, 1));
    transform-origin: top left;
    transform: scale(var(--cockpit-ui-scale, 1)) perspective(1050px) rotateY(14deg);
}

.next-wing-right {
    right: calc(14px * var(--cockpit-ui-scale, 1));
    width: 396px;
    transform-origin: top right;
    transform: scale(var(--cockpit-ui-scale, 1)) perspective(1050px) rotateY(-14deg);
}

/* Barra de Topo Geral de cada Asa Lateral (Maximizar Todo o Card Lateral na Tela / Minimizar) */
.next-wing-master-bar {
    height: 24px;
    padding: 0 10px;
    background: linear-gradient(90deg, rgba(255, 170, 0, 0.22) 0%, rgba(0, 229, 255, 0.22) 100%);
    border: 1px solid rgba(0, 229, 255, 0.48);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    font-weight: 800;
    color: #fef08a;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.18);
}
.next-wing-master-title {
    display: flex;
    align-items: center;
    gap: 6px;
}
.next-wing-master-title i {
    color: #00e5ff;
}

/* Ocultar todo o Card Lateral quando minimizado na sessão atual (volta ao atualizar F5) */
.next-cockpit-wing.wing-hidden {
    display: none !important;
}

/* MAXIMIZAÇÃO DE TODO O CARD LATERAL ESQUERDO OU DIREITO NA TELA CENTRAL (Igual ao Negomil OS do Centro) */
.next-cockpit-wing.wing-screen-maximized {
    position: fixed !important;
    top: 20px !important;
    bottom: 96px !important;
    left: 50% !important;
    right: auto !important;
    width: min(1080px, calc(100% - 60px)) !important;
    height: calc(100% - 118px) !important;
    transform: translateX(-50%) rotateY(0deg) !important;
    z-index: 350 !important;
    background: linear-gradient(180deg, rgba(5, 16, 36, 0.97) 0%, rgba(3, 10, 24, 0.99) 100%) !important;
    border: 2px solid #00f6ff !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.96), 0 0 50px rgba(0, 229, 255, 0.6) !important;
    padding: 12px !important;
    gap: 10px !important;
}

/* Módulos Internos das Asas */
.next-wing-module {
    background: rgba(6, 18, 38, 0.78);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.06);
    transition: all 0.25s ease;
}

.next-wing-module.wing-module-hidden {
    display: none !important;
}

.next-wing-module.wing-module-maximized {
    position: absolute !important;
    top: 40px !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    height: auto !important;
    min-height: 0 !important;
    z-index: 60 !important;
    background: rgba(4, 14, 32, 0.98) !important;
    border: 1.5px solid #00f6ff !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 229, 255, 0.45) !important;
}

.next-wing-header {
    height: 25px;
    padding: 0 10px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.18) 0%, rgba(0, 114, 206, 0.06) 100%);
    border-bottom: 1px solid rgba(0, 229, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #d8f8ff;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}
.next-wing-title i {
    color: var(--next-cyan);
    margin-right: 5px;
    text-shadow: 0 0 8px var(--next-cyan);
}
.next-wing-ctrls {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: #7dd3fc;
}
.next-wing-ctrls span {
    cursor: pointer;
    opacity: 0.85;
    padding: 0 4px;
    border-radius: 3px;
    transition: all 0.18s;
}
.next-wing-ctrls span:hover {
    opacity: 1;
    color: #fff;
    background: rgba(0, 229, 255, 0.25);
}

/* --- MÓDULO ESQUERDO 1: SOUND EQUALIZER --- */
.next-module-sound {
    height: 116px;
    flex-shrink: 0;
}
.next-sound-body {
    flex: 1;
    display: flex;
    padding: 6px 8px 4px 6px;
    gap: 5px;
    overflow: hidden;
}
.next-sound-yaxis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 8px;
    color: #64b5f6;
    padding-bottom: 12px;
    text-align: right;
    width: 18px;
}
.next-sound-chart-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.next-sound-eq-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2px;
    padding: 2px 2px 0 2px;
    border-left: 1px solid rgba(0, 229, 255, 0.25);
    border-bottom: 1px solid rgba(0, 229, 255, 0.25);
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 229, 255, 0.04) 0px,
        rgba(0, 229, 255, 0.04) 1px,
        transparent 1px,
        transparent 16px
    );
}
.next-eq-col {
    flex: 1;
    min-width: 3px;
    border-radius: 2px 2px 0 0;
    transition: height 0.18s ease;
    position: relative;
}
.next-eq-col.cyan {
    background: linear-gradient(180deg, #ffffff 0%, #00e5ff 35%, rgba(0, 114, 206, 0.35) 100%);
    box-shadow: 0 0 6px rgba(0, 229, 255, 0.7);
}
.next-eq-col.amber {
    background: linear-gradient(180deg, #fffbeb 0%, #ffaa00 40%, rgba(245, 158, 11, 0.3) 100%);
    box-shadow: 0 0 6px rgba(255, 170, 0, 0.75);
}
.next-sound-xaxis {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: #64b5f6;
    padding-top: 3px;
}

/* --- MÓDULO ESQUERDO 2: ÁRVORE DO GESTOR DE FICHEIROS + DIVISÓRIA TEMPO PAGO --- */
.next-module-filetree {
    flex: 1;
    min-height: 220px;
}
.next-module-split {
    display: flex;
    flex-direction: column;
}
.next-split-top-pane {
    flex: 0.78;
    min-height: 86px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.next-wing-divider-bar {
    height: 23px;
    padding: 0 8px;
    background: linear-gradient(90deg, rgba(255, 170, 0, 0.22) 0%, rgba(0, 229, 255, 0.16) 100%);
    border-top: 1.5px solid rgba(255, 170, 0, 0.65);
    border-bottom: 1px solid rgba(0, 229, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9.5px;
    font-weight: 800;
    color: #fef08a;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.15);
}
.next-divider-title {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.next-divider-action {
    font-size: 9px;
    color: #00e5ff;
    background: rgba(0, 229, 255, 0.14);
    border: 1px solid rgba(0, 229, 255, 0.45);
    padding: 1px 6px;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.18s;
}
.next-divider-action:hover {
    background: #00e5ff;
    color: #020814;
}
.next-split-bottom-pane {
    flex: 1.45;
    min-height: 140px;
    overflow-y: auto;
    padding: 5px 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    background: rgba(2, 9, 22, 0.62);
}
.next-split-bottom-pane::-webkit-scrollbar {
    width: 3px;
}
.next-split-bottom-pane::-webkit-scrollbar-thumb {
    background: rgba(255, 170, 0, 0.5);
    border-radius: 2px;
}
.next-tp-loading {
    font-size: 10px;
    color: #93c5fd;
    text-align: center;
    padding: 14px 4px;
}
/* Linha de Resultado do Tempo Pago (Preenchendo Todo o Espaço da Divisória Esquerda) */
.next-tp-row {
    flex: 1;
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255, 170, 0, 0.12) 0%, rgba(0, 229, 255, 0.06) 100%);
    border: 1px solid rgba(255, 170, 0, 0.35);
    cursor: pointer;
    transition: all 0.18s ease;
}
.next-tp-row:hover {
    border-color: #ffd700;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.24) 0%, rgba(0, 229, 255, 0.14) 100%);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.28);
}
.next-tp-badge {
    font-size: 9px;
    font-weight: 800;
    font-family: monospace;
    color: #fde047;
    background: rgba(255, 170, 0, 0.14);
    border: 1px solid rgba(255, 170, 0, 0.4);
    padding: 1px 5px;
    border-radius: 4px;
    min-width: 44px;
    text-align: center;
}
.next-tp-prize {
    font-size: 9px;
    font-family: monospace;
    font-weight: 800;
    color: #34d399;
    white-space: nowrap;
}
.next-tp-balls {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: nowrap;
}
.next-tp-ball {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffd700 0%, #d4af37 65%, #785a08 100%);
    color: #030712;
    font-size: 9px;
    font-weight: 900;
    font-family: monospace;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.55);
}
.next-tp-star {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #c084fc 0%, #7e22ce 70%, #3b0764 100%);
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 800;
    font-family: monospace;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.65);
}

/* --- ESTILOS DA DIVISÓRIA DIREITA: APLICATIVO MERKADO (MB WALLET & P2P EXPRESS) --- */
.next-merkado-wallet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.18) 0%, rgba(0, 229, 255, 0.12) 100%);
    border: 1px solid rgba(16, 185, 129, 0.48);
    flex-shrink: 0;
}
.next-mkd-bal-group {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.next-mkd-bal-lbl {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6ee7b7;
    font-weight: 700;
}
.next-mkd-bal-val {
    font-size: 11px;
    font-weight: 900;
    font-family: monospace;
    color: #ffffff;
}
.next-mkd-bal-kz {
    font-size: 9.5px;
    font-weight: 800;
    font-family: monospace;
    color: #fde047;
}
.next-merkado-row {
    flex: 1;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 3.5px 7px;
    border-radius: 6px;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.28);
    cursor: pointer;
    transition: all 0.16s ease;
}
.next-merkado-row:hover {
    background: rgba(16, 185, 129, 0.16);
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}
.next-mkd-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    line-height: 1.18;
}
.next-mkd-title {
    font-size: 9.5px;
    font-weight: 800;
    color: #e0faff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.next-mkd-sub {
    font-size: 8.5px;
    color: #93c5fd;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.next-mkd-right {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.next-mkd-price {
    font-size: 9.5px;
    font-weight: 800;
    font-family: monospace;
    color: #34d399;
    white-space: nowrap;
}
.next-mkd-btn {
    border: 1px solid rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.18);
    color: #a7f3d0;
    font-size: 8.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.18s;
}
.next-mkd-btn:hover {
    background: #10b981;
    color: #020814;
}

.next-tree-columns-hdr {
    display: grid;
    grid-template-columns: 1.55fr 0.95fr 46px;
    padding: 4px 8px;
    font-size: 9px;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(0, 229, 255, 0.07);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    text-transform: uppercase;
}
.next-filetree-list {
    flex: 1;
    overflow-y: auto;
    padding: 3px 4px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.next-filetree-list::-webkit-scrollbar {
    width: 3px;
}
.next-filetree-list::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.4);
    border-radius: 2px;
}
.next-tree-row {
    display: grid;
    grid-template-columns: 1.55fr 0.95fr 46px;
    align-items: center;
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 10px;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.16s ease;
    border: 1px solid transparent;
}
.next-tree-row:hover,
.next-tree-row.active {
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.24) 0%, rgba(0, 229, 255, 0.05) 100%);
    border-color: rgba(0, 229, 255, 0.5);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}
.next-tree-name {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.next-tree-branch {
    color: rgba(0, 229, 255, 0.55);
    font-family: monospace;
    font-size: 10px;
}
.next-icon-cyan {
    color: #00e5ff;
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.6));
}
.next-icon-amber {
    color: #ffaa00;
    filter: drop-shadow(0 0 4px rgba(255, 170, 0, 0.6));
}
.next-tree-desc {
    font-size: 9.5px;
    color: #7dd3fc;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.next-tree-meta {
    font-size: 9px;
    font-family: monospace;
    color: #93c5fd;
    text-align: right;
}

/* --- MÓDULO ESQUERDO 3: TELEMETRIA DUPLA (LINHA + BARRAS) --- */
.next-module-telemetry-left {
    height: 138px;
    flex-shrink: 0;
}
.next-dual-charts {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px;
}
.next-subchart-box {
    background: rgba(3, 12, 26, 0.75);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 6px;
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.next-subchart-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9.5px;
    color: #bae6fd;
}
.next-ratio-badge {
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid rgba(0, 229, 255, 0.4);
    padding: 0 5px;
    border-radius: 3px;
    font-size: 9px;
    font-family: monospace;
    color: #00e5ff;
}
#next-left-line-canvas {
    width: 100%;
    height: 68px;
    display: block;
}
.next-mini-vbars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2px;
    padding: 4px 2px 2px 2px;
    height: 68px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}
.next-subchart-xaxis {
    display: flex;
    justify-content: space-between;
    font-size: 7.5px;
    color: #64b5f6;
}

/* --- MÓDULO DIREITO 1: TELEMETRIA 8K + RADAR HEMISFÉRICO --- */
.next-module-telemetry-right {
    height: 138px;
    flex-shrink: 0;
}
.next-top-right-telemetry {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    gap: 8px;
}
.next-8k-gauge {
    position: relative;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.next-8k-ring-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 5px solid rgba(0, 229, 255, 0.2);
    border-top-color: #00e5ff;
    border-right-color: #ffaa00;
    border-bottom-color: #00e5ff;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
    animation: nextSpinSlow 9s linear infinite;
}
.next-8k-ring-inner {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 229, 255, 0.65);
    animation: nextSpinReverse 6s linear infinite;
}
.next-8k-center {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 10px #00e5ff;
}
.next-mid-Readouts {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}
.next-mini-ring-box, .next-mini-wave-box {
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 6px;
    padding: 3px 6px;
    text-align: center;
    width: 58px;
}
.next-mini-ring {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #00e5ff;
    border-left-color: #ffaa00;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2px auto;
    font-size: 9.5px;
    font-weight: 800;
    color: #fff;
}
.next-mini-lbl {
    font-size: 7.5px;
    color: #7dd3fc;
    font-weight: 700;
}
.next-mini-bars-row {
    height: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    margin-bottom: 2px;
}
.next-mini-bars-row span {
    width: 4px;
    background: #00e5ff;
    border-radius: 1px;
}
.next-hemi-radar {
    position: relative;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 255, 0.65);
    background: radial-gradient(circle, rgba(0, 114, 206, 0.35) 0%, rgba(3, 12, 28, 0.9) 100%);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.35), inset 0 0 12px rgba(0, 229, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.next-hemi-continents {
    font-size: 50px;
    color: rgba(0, 229, 255, 0.55);
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}
.next-hemi-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(0, 229, 255, 0.45) 0deg, transparent 70deg, transparent 360deg);
    animation: nextSpinSlow 4s linear infinite;
}
.next-right-mini-bars {
    height: 70px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
}
.next-right-mini-bars span {
    width: 5px;
    background: linear-gradient(180deg, #ffaa00 0%, #00e5ff 100%);
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
}

/* --- MÓDULO DIREITO 2: ENCRYPTED MESSAGE QUEUE --- */
.next-module-queue {
    height: 128px;
    flex-shrink: 0;
}
.next-queue-hdr {
    display: flex;
    justify-content: space-between;
    padding: 3px 10px;
    font-size: 9px;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(0, 229, 255, 0.07);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}
.next-queue-rows {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 3px 8px;
}
.next-q-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5px 6px;
    border-radius: 4px;
    font-size: 9.5px;
    color: #dbeafe;
    background: rgba(0, 229, 255, 0.04);
    border-left: 2px solid #00e5ff;
}
.next-q-msg {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.next-q-msg i {
    color: #00e5ff;
    font-size: 10px;
}
.next-q-time {
    font-family: monospace;
    font-size: 9.5px;
    color: #7dd3fc;
    flex-shrink: 0;
}

/* --- MÓDULO DIREITO 3: REAL-TIME NETWORKS & MAPA GLOBAL + DIVISÓRIA TAREFAS PAGAS --- */
.next-module-network {
    flex: 1;
    min-height: 225px;
}
.next-network-body {
    height: 112px;
    flex-shrink: 0;
    display: flex;
    padding: 5px 8px;
    gap: 8px;
    align-items: center;
}
.next-net-metrics {
    width: 96px;
    display: flex;
    flex-direction: column;
    gap: 2.5px;
    flex-shrink: 0;
}
.next-net-stat {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.next-net-lbl {
    font-size: 8px;
    color: #7dd3fc;
}
.next-net-val {
    font-size: 10.5px;
    font-weight: 800;
    color: #ffffff;
}
.next-val-cyan { color: #00e5ff; text-shadow: 0 0 6px rgba(0, 229, 255, 0.5); }
.next-val-amber { color: #ffaa00; text-shadow: 0 0 6px rgba(255, 170, 0, 0.5); }
.next-net-hbars {
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 2.5px;
}
.next-net-hbars > div {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}
.next-net-hbars > div > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #00e5ff, #ffaa00);
}
.next-worldmap-wrap {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 114, 206, 0.18) 0%, transparent 75%);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
}
#next-worldmap-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* --------------------------------------------------------------------------
   4. CONSOLA CENTRAL "NEGOMIL OS" (POSICIONADA NA ZONA INFERIOR CENTRAL)
   -------------------------------------------------------------------------- */
#next-cockpit-center-console {
    position: absolute;
    top: auto;
    bottom: calc(88px * var(--cockpit-ui-scale, 1));
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) scale(var(--cockpit-ui-scale, 1));
    width: min(650px, calc((100% / var(--cockpit-ui-scale, 1)) - 815px));
    min-width: 470px;
    height: min(355px, calc((100% / var(--cockpit-ui-scale, 1)) - 285px));
    min-height: 280px;
    background: linear-gradient(180deg, rgba(6, 18, 38, 0.90) 0%, rgba(4, 12, 26, 0.94) 100%);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1.5px solid rgba(0, 229, 255, 0.72);
    border-radius: 12px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.9), 0 0 32px rgba(0, 229, 255, 0.35), inset 0 0 20px rgba(0, 229, 255, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
    z-index: 8;
    transition: all 0.28s ease;
}

#next-cockpit-center-console.center-console-maximized {
    top: 20px !important;
    bottom: 96px !important;
    transform: translateX(-50%) !important;
    width: min(1080px, calc(100% - 60px)) !important;
    height: calc(100% - 118px) !important;
    z-index: 95 !important;
    border-color: #00f6ff !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.96), 0 0 45px rgba(0, 229, 255, 0.55) !important;
}

/* No tema Next: Quantum Hex, retirar o botão minimizar das janelas de programas no centro */
[data-theme="negomilnext_hex"] .window .win-control.minimize {
    display: none !important;
}

/* Barra de Título da Consola Central */
.next-console-titlebar {
    height: 28px;
    padding: 0 12px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.22) 0%, rgba(0, 114, 206, 0.08) 100%);
    border-bottom: 1px solid rgba(0, 229, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.next-console-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.4px;
}
.next-console-winbtns {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #93c5fd;
}
.next-console-winbtns span {
    cursor: pointer;
    padding: 1px 6px;
    border-radius: 4px;
    transition: all 0.18s;
}
.next-console-winbtns span:hover {
    color: #ffffff;
    background: rgba(0, 229, 255, 0.28);
}
#next-center-btn-close:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}

/* Barra de Menu Superior da Consola */
.next-console-menubar {
    height: 28px;
    padding: 0 12px;
    background: rgba(3, 10, 24, 0.7);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    flex-shrink: 0;
}
.next-console-menu-left {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
}
.next-console-mini-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px #00e5ff);
}
.next-console-menu-left span {
    cursor: pointer;
    transition: color 0.2s;
}
.next-console-menu-left span:hover,
.next-console-menu-left span.active {
    color: #00e5ff;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}
.next-console-badge {
    background: rgba(0, 229, 255, 0.16);
    border: 1px solid #00e5ff;
    color: #00e5ff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* Sub-barra de Abas e Pesquisa */
.next-console-subbar {
    height: 30px;
    padding: 0 10px;
    background: rgba(0, 229, 255, 0.05);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}
.next-console-cmd-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    color: #e0faff;
    background: rgba(0, 229, 255, 0.16);
    border: 1px solid rgba(0, 229, 255, 0.45);
    padding: 2px 8px;
    border-radius: 12px;
    cursor: pointer;
}
.next-console-cmd-pill i {
    color: #00e5ff;
}
.next-console-tabs {
    display: flex;
    gap: 6px;
}
.next-ctab {
    font-size: 10.5px;
    color: #94a3b8;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.next-ctab:hover,
.next-ctab.active {
    color: #ffffff;
    background: rgba(0, 229, 255, 0.2);
    border-bottom: 2px solid #00e5ff;
}
.next-console-search {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(2, 8, 20, 0.8);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 12px;
    padding: 2px 8px;
    width: 135px;
}
.next-console-search i {
    font-size: 10px;
    color: #00e5ff;
}
.next-console-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 10.5px;
    width: 100%;
}

/* Corpo em 3 Colunas da Consola Central */
.next-console-body {
    flex: 1;
    display: grid;
    grid-template-columns: 108px 1fr 148px;
    gap: 8px;
    padding: 8px;
    overflow: hidden;
}

/* Coluna 1 Esquerda da Consola */
.next-console-col-left {
    background: rgba(3, 12, 26, 0.72);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.next-console-status-pills {
    display: flex;
    gap: 4px;
    width: 100%;
    justify-content: center;
}
.next-console-status-pills span {
    font-size: 8px;
    font-weight: 800;
    padding: 2px 4px;
    border-radius: 3px;
}
.pill-online {
    background: rgba(0, 229, 255, 0.2);
    color: #00e5ff;
    border: 1px solid rgba(0, 229, 255, 0.5);
}
.pill-wifi {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.5);
}
.next-console-power-orb {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.35) 0%, rgba(0, 114, 206, 0.1) 70%);
    border: 2px solid #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.6), inset 0 0 10px rgba(0, 229, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}
.next-console-power-orb:hover {
    transform: scale(1.08);
}
.next-console-dot-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 4px;
}
.next-console-dot-matrix span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}
.next-console-dot-matrix span.on {
    background: #00e5ff;
    box-shadow: 0 0 6px #00e5ff;
}
.next-console-dot-matrix span.amber {
    background: #ffaa00;
    box-shadow: 0 0 6px #ffaa00;
}
.next-console-left-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
.next-console-left-footer button {
    width: 100%;
    padding: 3px 4px;
    font-size: 9.5px;
    font-weight: 700;
    color: #e0faff;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.next-console-left-footer button:hover {
    background: rgba(0, 229, 255, 0.28);
}
.next-console-left-footer button.btn-danger:hover {
    background: rgba(239, 68, 68, 0.35);
    border-color: #ef4444;
}

/* Coluna 2 Central: Grelha de Ícones do Ambiente de Trabalho + Menu Flutuante */
.next-console-col-center {
    position: relative;
    background: rgba(4, 15, 34, 0.78);
    border: 1px solid rgba(0, 229, 255, 0.38);
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.next-console-grid-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    color: #7dd3fc;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    margin-bottom: 6px;
}
.next-toggle-Quickmenu {
    color: #00e5ff;
    cursor: pointer;
    background: rgba(0, 229, 255, 0.12);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 229, 255, 0.35);
}
.next-toggle-Quickmenu:hover {
    background: rgba(0, 229, 255, 0.25);
}

/* Grelha dos Ícones Instalados no Centro */
.next-console-apps-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
    overflow-y: auto;
    padding: 2px 4px 6px 2px;
    align-content: start;
}
.next-console-apps-grid::-webkit-scrollbar {
    width: 4px;
}
.next-console-apps-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.45);
    border-radius: 2px;
}

/* Cartão Individual de Aplicação na Consola Central (Estilo Quadrado Neon Ciano da Imagem) */
.next-card-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.16) 0%, rgba(0, 114, 206, 0.08) 100%);
    border: 1px solid rgba(0, 229, 255, 0.45);
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 62px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(0, 229, 255, 0.12);
}
.next-card-app:hover {
    transform: translateY(-2px) scale(1.04);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.32) 0%, rgba(0, 114, 206, 0.18) 100%);
    border-color: #00f6ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.65);
}
.next-card-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: rgba(0, 229, 255, 0.14);
    border: 1px solid rgba(0, 229, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    font-size: 15px;
    color: #00f6ff;
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.6));
}
.next-card-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 4px;
}
.next-card-app span {
    font-size: 9.5px;
    font-weight: 600;
    color: #e0faff;
    line-height: 1.15;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Menu Flutuante Iluminado Dentro da Consola Central (Idêntico à Imagem) */
.next-floating-neon-menu {
    position: absolute;
    right: 10px;
    top: 32px;
    width: 192px;
    background: linear-gradient(180deg, rgba(6, 24, 52, 0.96) 0%, rgba(4, 15, 34, 0.98) 100%);
    backdrop-filter: blur(18px);
    border: 1.5px solid #00f6ff;
    border-radius: 9px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.9), 0 0 22px rgba(0, 229, 255, 0.55);
    z-index: 20;
    transition: all 0.22s ease;
}
.next-floating-neon-menu.hidden-popup {
    opacity: 0;
    pointer-events: none;
    transform: translateX(12px) scale(0.95);
}
.next-fnm-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #dbeafe;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.18s ease;
}
.next-fnm-item i {
    color: #00e5ff;
    font-size: 13px;
    width: 16px;
    text-align: center;
}
.next-fnm-item:hover,
.next-fnm-item.active {
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.38) 0%, rgba(0, 114, 206, 0.18) 100%);
    border-color: #00f6ff;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
}

/* Coluna 3 Direita da Consola Central: Utilitários e Ecossistema */
.next-console-col-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.next-util-group {
    flex: 1;
    background: rgba(3, 12, 26, 0.72);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 8px;
    padding: 5px 6px;
    display: flex;
    flex-direction: column;
}
.next-util-hdr {
    display: flex;
    justify-content: space-between;
    font-size: 9.5px;
    font-weight: 700;
    color: #7dd3fc;
    margin-bottom: 4px;
}
.next-util-mini-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}
.next-mini-app {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px 2px;
    cursor: pointer;
    transition: all 0.18s;
}
.next-mini-app:hover {
    background: rgba(0, 229, 255, 0.28);
    border-color: #00e5ff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}
.next-mini-app i {
    font-size: 12px;
    color: #00e5ff;
    margin-bottom: 2px;
}
.next-mini-app span {
    font-size: 7.5px;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Barra Inferior da Consola Central */
.next-console-footerbar {
    height: 28px;
    padding: 0 12px;
    background: rgba(3, 10, 24, 0.85);
    border-top: 1px solid rgba(0, 229, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.next-cf-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cf-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.14);
    border: 1px solid rgba(0, 229, 255, 0.45);
    color: #00e5ff;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.cf-circle:hover {
    background: #00e5ff;
    color: #020814;
    box-shadow: 0 0 8px #00e5ff;
}
.next-cf-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9.5px;
    color: #7dd3fc;
}
.next-cf-right b {
    color: #ffaa00;
}

/* --------------------------------------------------------------------------
   5. BARRA DE TAREFAS INCLINADA EM PERSPETIVA 3D (#taskbar)
   Fiel ao trapézio inclinado sobre o pedestal na base da imagem!
   -------------------------------------------------------------------------- */
[data-theme^="negomilnext_"] .taskbar-left,
[data-theme^="negomilnext_"] .taskbar-center,
[data-theme^="negomilnext_"] .taskbar-right {
    display: none !important;
}

/* Doca Padrão para os Outros 4 Temas Next (1: Holo-City, 2: Dark, 3: Tactical, 5: Afro) */
[data-theme="negomilnext_holocity"] #taskbar,
[data-theme="negomilnext_dark"] #taskbar,
[data-theme="negomilnext_tactical"] #taskbar,
[data-theme="negomilnext_afro"] #taskbar {
    position: fixed !important;
    bottom: 14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    min-width: 560px !important;
    max-width: 92vw !important;
    height: 70px !important;
    margin: 0 !important;
    padding: 8px 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(8, 20, 42, 0.84) !important;
    backdrop-filter: blur(22px) saturate(180%) !important;
    border: 1.5px solid rgba(0, 229, 255, 0.5) !important;
    border-radius: 22px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 229, 255, 0.28) !important;
    z-index: 1000000 !important;
}

[data-theme="negomilnext_afro"] #taskbar {
    border-color: rgba(255, 215, 0, 0.65) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 26px rgba(255, 215, 0, 0.32) !important;
}

/* EXCLUSIVO PROPOSTA 4 (negomilnext_hex): Barra de Tarefas Inclinada em Perspetiva 3D */
[data-theme="negomilnext_hex"] #taskbar {
    position: fixed !important;
    bottom: calc(12px * var(--cockpit-ui-scale, 1)) !important;
    left: 50% !important;
    transform: translateX(-50%) scale(var(--cockpit-ui-scale, 1)) perspective(520px) rotateX(22deg) !important;
    transform-origin: bottom center !important;
    width: auto !important;
    min-width: 640px !important;
    max-width: 92% !important;
    height: 82px !important;
    margin: 0 !important;
    padding: 8px 28px 14px 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(180deg, rgba(10, 25, 50, 0.94) 0%, rgba(4, 11, 24, 0.98) 100%) !important;
    border: 2px solid #00e5ff !important;
    border-radius: 16px !important;
    clip-path: polygon(26px 0, calc(100% - 26px) 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px)) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 229, 255, 0.45), inset 0 0 22px rgba(0, 229, 255, 0.22) !important;
    z-index: 1000000 !important;
    box-sizing: border-box !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
[data-theme="negomilnext_hex"] #taskbar:hover {
    transform: translateX(-50%) scale(var(--cockpit-ui-scale, 1)) perspective(520px) rotateX(16deg) translateY(-2px) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.98), 0 0 45px rgba(0, 229, 255, 0.65), inset 0 0 26px rgba(0, 229, 255, 0.3) !important;
}

[data-theme^="negomilnext_"] #next-futuristic-dock {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 100% !important;
    gap: 18px !important;
    position: relative !important;
}

/* Botão Iniciar na Doca */
.next-dock-start {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.next-dock-start:hover {
    transform: scale(1.06);
}
.next-squircle-start {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 229, 255, 0.16);
    border: 1.5px solid #00e5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}
.next-squircle-start img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.next-tactical-brand {
    display: none;
}
/* Na Proposta 4 (negomilnext_hex) e Tactical (negomilnext_tactical), mostrar o emblema NEGOMIL à esquerda */
[data-theme="negomilnext_hex"] .next-squircle-start,
[data-theme="negomilnext_tactical"] .next-squircle-start {
    display: none !important;
}
[data-theme="negomilnext_hex"] .next-tactical-brand,
[data-theme="negomilnext_tactical"] .next-tactical-brand {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 6px;
}
.next-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.85));
}
.next-brand-text {
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 2px;
    color: #00e5ff;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.85);
}
.next-brand-divider {
    width: 2px;
    height: 38px;
    background: linear-gradient(180deg, transparent, #00e5ff, transparent);
    transform: rotate(18deg);
    margin-left: 8px;
    box-shadow: 0 0 8px #00e5ff;
}

/* Botões Quadrados (Squircles) da Barra de Tarefas */
.next-dock-apps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex: 1;
}
.next-app-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 4px;
    transition: transform 0.2s ease;
}
.next-app-btn:hover {
    transform: translateY(-4px) scale(1.07);
}
.next-app-squircle {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.22) 0%, rgba(0, 114, 206, 0.12) 100%);
    border: 1.5px solid #00e5ff;
    color: #00f6ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.45), inset 0 0 10px rgba(0, 229, 255, 0.25);
    transition: all 0.2s ease;
}
.next-app-btn:hover .next-app-squircle {
    border-color: #ffffff;
    box-shadow: 0 0 22px rgba(0, 246, 255, 0.85), inset 0 0 14px rgba(0, 246, 255, 0.4);
    color: #ffffff;
}
.next-app-label {
    display: block !important;
    font-size: 10.5px;
    font-weight: 700;
    color: #e2f1ff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
    white-space: nowrap;
}
.next-extra-app,
.next-afro-center-emblem {
    display: none;
}
[data-theme="negomilnext_afro"] .next-afro-center-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}
[data-theme="negomilnext_afro"] .next-afro-center-emblem img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px #ffd700);
}

/* Relógio Compacto à Direita da Barra */
.next-dock-tray {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.next-tray-divider {
    width: 2px;
    height: 34px;
    background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.5), transparent);
}
.next-tray-clock {
    padding: 5px 10px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}
.next-clock-time {
    font-size: 13px;
    font-weight: 800;
    color: #00e5ff;
    font-family: monospace;
}
.next-clock-date {
    display: none;
}

/* EXCLUSIVO PROPOSTA 4 (negomilnext_hex): Faixa Inferior de LEDs Luminosos da Barra Inclinada */
.next-dock-led-strip {
    display: none !important;
}
[data-theme="negomilnext_hex"] .next-dock-led-strip {
    position: absolute;
    bottom: -10px;
    left: 24px;
    right: 24px;
    height: 6px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}
.led-group {
    display: flex;
    gap: 5px;
}
.led-amber {
    width: 14px;
    height: 4px;
    border-radius: 2px;
    background: #ffaa00;
    box-shadow: 0 0 8px #ffaa00, 0 0 12px #ff6600;
}
.led-cyan {
    width: 20px;
    height: 4px;
    border-radius: 2px;
    background: #00e5ff;
    box-shadow: 0 0 8px #00e5ff, 0 0 14px #00e5ff;
}

/* EXCLUSIVO PROPOSTA 4 (negomilnext_hex): Ocultar #start-menu legado pois usa a Consola Central */
[data-theme="negomilnext_hex"] #start-menu {
    display: none !important;
}

/* Nos outros 4 temas Next (1, 2, 3, 5), estilizar o Menu Iniciar Futurista (#next-futuristic-start-menu) */
[data-theme="negomilnext_holocity"] #start-menu > *:not(#next-futuristic-start-menu),
[data-theme="negomilnext_dark"] #start-menu > *:not(#next-futuristic-start-menu),
[data-theme="negomilnext_tactical"] #start-menu > *:not(#next-futuristic-start-menu),
[data-theme="negomilnext_afro"] #start-menu > *:not(#next-futuristic-start-menu) {
    display: none !important;
}
[data-theme="negomilnext_holocity"] #next-futuristic-start-menu,
[data-theme="negomilnext_dark"] #next-futuristic-start-menu,
[data-theme="negomilnext_tactical"] #next-futuristic-start-menu,
[data-theme="negomilnext_afro"] #next-futuristic-start-menu {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: 100%;
    color: #e0faff;
}
[data-theme="negomilnext_holocity"] #start-menu.hidden,
[data-theme="negomilnext_dark"] #start-menu.hidden,
[data-theme="negomilnext_tactical"] #start-menu.hidden,
[data-theme="negomilnext_afro"] #start-menu.hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
[data-theme="negomilnext_holocity"] #start-menu:not(.hidden),
[data-theme="negomilnext_dark"] #start-menu:not(.hidden),
[data-theme="negomilnext_tactical"] #start-menu:not(.hidden),
[data-theme="negomilnext_afro"] #start-menu:not(.hidden) {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: fixed !important;
    background: linear-gradient(180deg, rgba(6, 18, 38, 0.94) 0%, rgba(4, 12, 26, 0.97) 100%) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1.5px solid #00e5ff !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.92), 0 0 35px rgba(0, 229, 255, 0.4), inset 0 0 18px rgba(0, 229, 255, 0.12) !important;
    padding: 16px !important;
    width: 720px !important;
    max-width: 94vw !important;
    height: 480px !important;
    bottom: 96px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10000005 !important;
}
[data-theme="negomilnext_afro"] #start-menu:not(.hidden) {
    border-color: #ffd700 !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.92), 0 0 35px rgba(255, 215, 0, 0.35) !important;
}

.next-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.3);
    margin-bottom: 12px;
    flex-shrink: 0;
}
.next-menu-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #00e5ff;
}
.next-menu-brand img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.7));
}
.next-menu-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.next-menu-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}
.next-menu-badge {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(0, 229, 255, 0.18);
    border: 1px solid rgba(0, 229, 255, 0.5);
    color: #00e5ff;
}
.next-menu-tabs {
    display: flex;
    gap: 6px;
}
.next-menu-tab {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: #cbd5e1;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.next-menu-tab:hover,
.next-menu-tab.active {
    background: rgba(0, 229, 255, 0.28);
    border-color: #00e5ff;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}
.next-menu-controls {
    display: flex;
    align-items: center;
}
.next-menu-ctrl {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
}
.next-menu-ctrl:hover {
    background: rgba(239, 68, 68, 0.35);
    border-color: #ef4444;
    color: #ffffff;
}

.next-menu-body {
    flex: 1;
    display: grid;
    grid-template-columns: 215px 1fr;
    gap: 14px;
    overflow: hidden;
    min-height: 0;
}
.next-menu-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}
.next-telemetry-card {
    background: rgba(4, 14, 30, 0.78);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.next-telemetry-title {
    font-size: 11px;
    font-weight: 800;
    color: #00e5ff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.next-gauge-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.next-gauge-label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #cbd5e1;
}
.next-gauge-val {
    color: #00e5ff;
    font-weight: 700;
}
.next-gauge-track {
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}
.next-gauge-bar {
    height: 100%;
    border-radius: 3px;
}
.next-bar-cyan { background: #00e5ff; box-shadow: 0 0 6px #00e5ff; }
.next-bar-amber { background: #ffaa00; box-shadow: 0 0 6px #ffaa00; }
.next-bar-green { background: #00ffa3; box-shadow: 0 0 6px #00ffa3; }

.next-quick-flyout {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(4, 14, 30, 0.78);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 10px;
    padding: 6px;
    flex: 1;
}
.next-flyout-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 600;
    color: #dbeafe;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.18s;
}
.next-flyout-item i {
    color: #00e5ff;
    width: 16px;
    text-align: center;
}
.next-flyout-item:hover,
.next-flyout-item.active {
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.28) 0%, rgba(0, 114, 206, 0.12) 100%);
    border-color: rgba(0, 229, 255, 0.55);
    color: #ffffff;
}

.next-menu-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    min-height: 0;
}
.next-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(3, 10, 22, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.45);
    border-radius: 10px;
    padding: 7px 12px;
    flex-shrink: 0;
}
.next-search-icon {
    color: #00e5ff;
    font-size: 12px;
}
.next-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    width: 100%;
    font-size: 12px;
}
.next-apps-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    min-height: 0;
}
.next-apps-grid,
.next-menu-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 10px;
    align-content: start;
}
.next-menu-app-card {
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.15) 0%, rgba(0, 114, 206, 0.08) 100%);
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 11px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}
.next-menu-app-card:hover {
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.3) 0%, rgba(0, 114, 206, 0.16) 100%);
    border-color: #00f6ff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
}
.next-menu-app-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(0, 229, 255, 0.14);
    border: 1px solid rgba(0, 229, 255, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #00e5ff;
}
.next-menu-app-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.next-menu-app-card span {
    font-size: 10.5px;
    font-weight: 600;
    color: #e0faff;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.next-menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 229, 255, 0.25);
    margin-top: 8px;
    flex-shrink: 0;
}
.next-footer-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.next-footer-user img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #00e5ff;
}
.next-user-meta {
    display: flex;
    flex-direction: column;
}
.next-user-name {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}
.next-user-status {
    font-size: 10px;
    color: #7dd3fc;
    display: flex;
    align-items: center;
    gap: 5px;
}
.next-footer-actions {
    display: flex;
    gap: 8px;
}
.next-btn-action {
    background: rgba(0, 229, 255, 0.14);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: #e0faff;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.next-btn-action:hover {
    background: rgba(0, 229, 255, 0.28);
    border-color: #00e5ff;
}
.next-btn-power:hover {
    background: rgba(239, 68, 68, 0.35);
    border-color: #ef4444;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   6. JANELAS DE APLICAÇÕES E GESTOR DE FICHEIROS IGUAIS À CONSOLA CENTRAL
   -------------------------------------------------------------------------- */
[data-theme^="negomilnext_"] .window {
    background: linear-gradient(180deg, rgba(6, 18, 38, 0.94) 0%, rgba(4, 12, 26, 0.97) 100%) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1.5px solid #00e5ff !important;
    border-radius: 12px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 229, 255, 0.4), inset 0 0 18px rgba(0, 229, 255, 0.12) !important;
    overflow: hidden !important;
}
[data-theme^="negomilnext_"] .window-header {
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.24) 0%, rgba(0, 114, 206, 0.1) 100%) !important;
    border-bottom: 1px solid rgba(0, 229, 255, 0.4) !important;
    color: #ffffff !important;
    height: 34px !important;
}
[data-theme^="negomilnext_"] .window-title {
    color: #e0faff !important;
    font-weight: 800 !important;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5) !important;
}
[data-theme^="negomilnext_"] .window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100% - 102px) !important;
    border-radius: 0 !important;
}

/* --------------------------------------------------------------------------
   7. PAINÉIS HUD DE LOGIN (login.html)
   -------------------------------------------------------------------------- */
[data-theme^="negomilnext_"] body.login-body {
    background: var(--os-background) !important;
}
[data-theme^="negomilnext_"] .next-hud-panel {
    display: none !important;
}
[data-theme^="negomilnext_"] .next-hud-left {
    left: 36px;
    transform: translateY(-50%) perspective(900px) rotateY(14deg);
}
[data-theme^="negomilnext_"] .next-hud-right {
    right: 36px;
    transform: translateY(-50%) perspective(900px) rotateY(-14deg);
}
.next-hud-header {
    font-size: 12px;
    font-weight: 800;
    color: #00e5ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.next-sound-bars {
    height: 70px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    padding: 8px;
    background: rgba(0, 229, 255, 0.05);
    border-radius: 8px;
}
.next-sound-bars .next-bar {
    flex: 1;
    background: linear-gradient(180deg, #ffaa00, #00e5ff);
    border-radius: 2px;
}
.next-process-tree, .next-msg-queue {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11.5px;
    color: #cbd5e1;
}
.next-proc-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00e5ff;
    box-shadow: 0 0 6px #00e5ff;
    margin-right: 6px;
}

@keyframes nextSpinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes nextSpinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* --------------------------------------------------------------------------
   8. RESPONSIVIDADE (ECRÃS PORTÁTEIS, TABLETS E TELEMÓVEIS)
   -------------------------------------------------------------------------- */
@media (max-width: 1360px) {
    .next-cockpit-wing {
        width: 315px;
    }
    .next-wing-right {
        width: 325px;
    }
    #next-cockpit-center-console {
        width: min(600px, calc(100vw - 670px));
    }
}

@media (max-width: 1120px) {
    .next-cockpit-wing {
        width: 255px;
        font-size: 9.5px;
    }
    #next-cockpit-center-console {
        width: calc(100vw - 540px);
        min-width: 420px;
        grid-template-columns: 1fr;
    }
    .next-console-body {
        grid-template-columns: 90px 1fr 120px;
    }
    [data-theme^="negomilnext_"] .next-hud-panel {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .next-wing-left,
    .next-wing-right {
        display: none !important;
    }
    #next-cockpit-center-console {
        width: 94vw !important;
        min-width: 0 !important;
        top: auto !important;
        bottom: 92px !important;
        height: calc(100vh - 215px) !important;
    }
    .next-console-body {
        grid-template-columns: 1fr !important;
    }
    .next-console-col-left,
    .next-console-col-right {
        display: none !important;
    }
    [data-theme^="negomilnext_"] #taskbar {
        min-width: 94vw !important;
        padding: 6px 12px 12px 12px !important;
    }
}

/* ==========================================================================
   9. 18 EFEITOS DE DESTRUIÇÃO TOTAL DO ECRÃ + SANTUÁRIO DO TETRAGRAMA (יהוה)
   Acionados ao clicar no Menu Iniciar (NEGOMIL) no tema Next: Quantum Hex
   ========================================================================== */

/* Camada de Fragmentos / Estilhaços 3D */
#next-destruction-shards-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999992;
    overflow: hidden;
    perspective: 1200px;
}

.next-destruct-shard {
    position: absolute;
    background: var(--shard-bg, linear-gradient(135deg, rgba(0, 229, 255, 0.92), rgba(2, 132, 199, 0.88)));
    border: 1.5px solid var(--shard-border, #e0faff);
    box-shadow: 0 0 18px var(--shard-glow, rgba(0, 229, 255, 0.95)), 0 0 32px rgba(0, 140, 255, 0.75);
    clip-path: var(--shard-clip, polygon(10% 0%, 95% 15%, 100% 90%, 20% 100%, 0% 45%));
    animation: nextShardFly var(--shard-dur, 0.95s) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes nextShardFly {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
        filter: brightness(2);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--tx, 240px), var(--ty, -240px), var(--tz, 360px))
                   rotateX(var(--rx, 540deg)) rotateY(var(--ry, -540deg)) rotateZ(var(--rz, 360deg)) scale(0.04);
        filter: brightness(1) blur(4px);
    }
}

/* Santuário do Tetragrama (יהוה) — No Mesmo Tom Azul-Safira e Ciano Néon do Tema Next: Quantum Hex */
#next-tetragrama-sanctuary {
    position: fixed;
    inset: 0;
    z-index: 999980;
    background: radial-gradient(circle at 50% 42%, #071f40 0%, #041229 46%, #020816 78%, #01040b 100%) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    overflow: hidden;
    animation: nextSanctuaryReveal 0.72s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#next-tetragrama-sanctuary.sanctuary-closing {
    pointer-events: none !important;
    animation: nextSanctuaryFadeOut 0.78s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

@keyframes nextSanctuaryFadeOut {
    0% { opacity: 1; }
    55% { opacity: 0.85; }
    100% { opacity: 0; }
}

.next-tetra-centerpiece {
    position: relative;
    z-index: 999986;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 44px;
    max-width: min(1240px, 95vw);
    width: 100%;
    pointer-events: none;
}

.next-tetra-halo-ring {
    position: absolute;
    width: clamp(380px, 46vw, 560px);
    height: clamp(380px, 46vw, 560px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.28) 0%, rgba(0, 114, 206, 0.12) 55%, transparent 74%);
    border: 2px solid rgba(0, 229, 255, 0.55);
    box-shadow: 0 0 90px rgba(0, 229, 255, 0.45), inset 0 0 60px rgba(0, 229, 255, 0.24);
    animation: nextDivinePulse 3.5s ease-in-out infinite alternate;
    z-index: -1;
}

/* Tetragrama (יהוה) em Tamanho Grande no Tom Ciano / Azul-Cristal do Tema */
.next-tetra-hebrew-symbol {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: clamp(132px, 16.5vw, 230px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 18px;
    color: #e0faff;
    background: linear-gradient(180deg, #ffffff 0%, #a5f3fc 34%, #00e5ff 70%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 35px rgba(0, 229, 255, 0.95)) drop-shadow(0 0 75px rgba(0, 140, 255, 0.82)) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.98));
    margin-bottom: 14px;
    user-select: none;
}

.next-tetra-subtitle {
    font-family: 'Cinzel', serif;
    font-size: clamp(16px, 1.8vw, 24px);
    font-weight: 800;
    letter-spacing: 6px;
    color: #7dd3fc;
    text-shadow: 0 0 18px rgba(0, 229, 255, 0.9), 0 3px 8px rgba(0, 0, 0, 0.98);
    margin-bottom: 32px;
    text-transform: uppercase;
}

/* Mensagens Bíblicas no Mesmo Estilo e Tom da Consola do Tema Next: Quantum Hex */
.next-tetra-message-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 32px 50px;
    min-height: 120px;
    max-width: min(1160px, 92vw);
    width: 100%;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(6, 22, 46, 0.95) 0%, rgba(3, 12, 26, 0.98) 100%);
    border: 2px solid #00e5ff;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.96), 0 0 45px rgba(0, 229, 255, 0.42), inset 0 0 24px rgba(0, 229, 255, 0.18);
    color: #f0f9ff;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.42;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 229, 255, 0.38);
    transition: opacity 0.38s ease, transform 0.38s ease, filter 0.38s ease;
}

.next-tetra-quote-icon {
    color: #00e5ff;
    font-size: clamp(24px, 2.6vw, 34px);
    opacity: 0.92;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.85));
}

.next-tetra-click-hint {
    margin-top: 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #7dd3fc;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.55), 0 2px 6px rgba(0, 0, 0, 0.95);
    text-transform: uppercase;
}

/* Efeitos Aleatórios de Transição das Mensagens Bíblicas */
.next-msg-out-1 { opacity: 0 !important; transform: scale(0.75) translateY(30px) !important; filter: blur(12px) brightness(2) !important; }
.next-msg-out-2 { opacity: 0 !important; transform: perspective(700px) rotateX(75deg) scale(0.85) !important; filter: blur(10px) !important; }
.next-msg-out-3 { opacity: 0 !important; transform: scale(1.28) !important; filter: brightness(3.5) blur(16px) !important; }
.next-msg-out-4 { opacity: 0 !important; transform: perspective(700px) rotateY(-70deg) translateX(-90px) !important; filter: blur(10px) !important; }
.next-msg-out-5 { opacity: 0 !important; transform: skewX(30deg) translateX(120px) scaleY(0.4) !important; filter: hue-rotate(45deg) blur(8px) !important; }
.next-msg-out-6 { opacity: 0 !important; transform: translateY(-60px) scale(0.6) rotate(8deg) !important; filter: brightness(2.8) blur(14px) !important; }

/* Efeitos Aleatórios de Reconstrução do Cockpit ao Fechar */
.next-reconstruct-1 { animation: kfReconstruct1 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards !important; }
@keyframes kfReconstruct1 {
    0% { opacity: 0; transform: scale(0.3) translateY(120px); filter: brightness(3) blur(16px); }
    100% { opacity: 1; filter: brightness(1) blur(0); }
}
.next-reconstruct-2 { animation: kfReconstruct2 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards !important; }
@keyframes kfReconstruct2 {
    0% { opacity: 0; transform: perspective(900px) rotateY(90deg) scale(0.5); filter: brightness(2.5); }
    100% { opacity: 1; filter: brightness(1); }
}
.next-reconstruct-3 { animation: kfReconstruct3 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards !important; }
@keyframes kfReconstruct3 {
    0% { opacity: 0; transform: scale(1.65); filter: brightness(4) blur(22px); }
    100% { opacity: 1; filter: brightness(1) blur(0); }
}
.next-reconstruct-4 { animation: kfReconstruct4 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards !important; }
@keyframes kfReconstruct4 {
    0% { opacity: 0; transform: perspective(900px) rotateX(-85deg) translateY(-140px); filter: blur(12px); }
    100% { opacity: 1; filter: blur(0); }
}
.next-reconstruct-5 { animation: kfReconstruct5 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards !important; }
@keyframes kfReconstruct5 {
    0% { opacity: 0; transform: rotate(-180deg) scale(0.1); filter: brightness(3) drop-shadow(0 0 25px #00e5ff); }
    100% { opacity: 1; filter: brightness(1); }
}
.next-reconstruct-6 { animation: kfReconstruct6 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards !important; }
@keyframes kfReconstruct6 {
    0% { opacity: 0; transform: skewX(-35deg) scaleY(2.2); filter: contrast(3) brightness(2.5) blur(10px); }
    100% { opacity: 1; filter: contrast(1) brightness(1) blur(0); }
}

@keyframes nextSanctuaryReveal {
    0% {
        opacity: 0;
        filter: brightness(2.5) blur(16px);
        transform: scale(1.06);
    }
    100% {
        opacity: 1;
        filter: brightness(1) blur(0px);
        transform: scale(1);
    }
}

.next-tetra-divine-rays {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(0, 229, 255, 0.22) 0%, rgba(2, 132, 199, 0.08) 36%, transparent 70%),
        conic-gradient(from 0deg at 50% 42%, transparent 0deg, rgba(0, 229, 255, 0.06) 30deg, transparent 60deg, rgba(0, 229, 255, 0.06) 120deg, transparent 150deg, rgba(0, 229, 255, 0.06) 210deg, transparent 240deg, rgba(0, 229, 255, 0.06) 300deg, transparent 330deg);
    pointer-events: none;
    animation: nextDivinePulse 4s ease-in-out infinite alternate;
}

@keyframes nextDivinePulse {
    0% { opacity: 0.7; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1.04); }
}

.next-tetra-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.next-gold-spark {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, #00e5ff 55%, transparent 100%);
    box-shadow: 0 0 12px #00e5ff, 0 0 24px #0284c7;
    animation: nextGoldSparkFloat 4.5s ease-in-out infinite;
}

@keyframes nextGoldSparkFloat {
    0%, 100% { transform: translateY(0) scale(0.8); opacity: 0.35; }
    50% { transform: translateY(-28px) scale(1.4); opacity: 0.98; }
}

/* Botões superiores desnecessários ocultados permanentemente */
.next-tetra-effect-badge,
.next-tetra-restore-btn {
    display: none !important;
}

/* Quando o Santuário do Tetragrama está ativo, ocultar a caixa antiga (#tetragrama-verse-container) para não duplicar "Carregando mensagem..." */
body.next-tetragrama-active #tetragrama-verse-container {
    display: none !important;
}

/* --- OS 18 EFEITOS DE DESTRUIÇÃO CINEMATOGRÁFICA --- */

/* 1. Estilhaçar Vidro 3D */
.next-destruct-1 {
    animation: kfDestruct1 0.85s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards !important;
}
@keyframes kfDestruct1 {
    0% { transform: scale(1) rotate3d(0,0,0,0deg); opacity: 1; filter: brightness(1); }
    30% { transform: scale(1.06) skewX(8deg) skewY(-6deg); filter: brightness(2.2) contrast(1.8); }
    100% { transform: perspective(600px) translate3d(0, 260px, -450px) rotateX(75deg) rotateZ(28deg) scale(0.1); opacity: 0; filter: blur(10px); }
}

/* 2. Implosão Quântica Singular */
.next-destruct-2 {
    animation: kfDestruct2 0.85s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards !important;
}
@keyframes kfDestruct2 {
    0% { transform: scale(1); opacity: 1; }
    35% { transform: scale(1.12); filter: brightness(2.4) drop-shadow(0 0 25px #00e5ff); }
    100% { transform: scale(0.001) rotate(540deg); opacity: 0; filter: brightness(4) blur(14px); }
}

/* 3. Explosão Supernova Radial */
.next-destruct-3 {
    animation: kfDestruct3 0.85s ease-in forwards !important;
}
@keyframes kfDestruct3 {
    0% { transform: scale(1); opacity: 1; }
    25% { filter: brightness(3) drop-shadow(0 0 35px #00e5ff); }
    100% { transform: scale(2.35) rotate(-18deg); opacity: 0; filter: brightness(4) blur(22px); }
}

/* 4. Vórtice Espiral 720° */
.next-destruct-4 {
    animation: kfDestruct4 0.88s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}
@keyframes kfDestruct4 {
    0% { transform: rotate(0deg) scale(1); opacity: 1; }
    100% { transform: rotate(720deg) scale(0.02) skewX(35deg); opacity: 0; filter: blur(12px); }
}

/* 5. Corte por Feixe Laser Diagonal */
.next-destruct-5 {
    animation: kfDestruct5 0.85s ease-in-out forwards !important;
}
@keyframes kfDestruct5 {
    0% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); opacity: 1; }
    35% { filter: drop-shadow(0 0 25px #00f6ff) brightness(2.5); transform: translateX(-14px) skewX(-18deg); }
    100% { clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); transform: translateX(180px) skewX(45deg); opacity: 0; }
}

/* 6. Desintegração em Poeira de Partículas */
.next-destruct-6 {
    animation: kfDestruct6 0.88s ease-in forwards !important;
}
@keyframes kfDestruct6 {
    0% { opacity: 1; filter: blur(0px) contrast(1); transform: translateY(0); }
    40% { filter: contrast(3.5) brightness(2) blur(3px); transform: translateY(-18px) scale(1.04); }
    100% { opacity: 0; filter: blur(28px) brightness(3); transform: translateY(-140px) scale(1.25); }
}

/* 7. Colapso Eletromagnético Glitch RGB */
.next-destruct-7 {
    animation: kfDestruct7 0.85s steps(6, end) forwards !important;
}
@keyframes kfDestruct7 {
    0% { transform: translate(0, 0); opacity: 1; }
    20% { transform: translate(-25px, 8px) skewX(25deg); filter: brightness(2.2) drop-shadow(0 0 20px #00e5ff); }
    40% { transform: translate(28px, -12px) skewX(-30deg); filter: brightness(2.5) drop-shadow(0 0 20px #38bdf8); }
    60% { transform: translate(-35px, 15px) scaleY(0.25); opacity: 0.7; }
    80% { transform: translate(40px, 0) scaleX(1.8) scaleY(0.05); opacity: 0.35; }
    100% { transform: scale(0); opacity: 0; }
}

/* 8. Esmagamento por Hiper-Gravidade */
.next-destruct-8 {
    animation: kfDestruct8 0.85s cubic-bezier(0.6, 0.04, 0.98, 0.335) forwards !important;
}
@keyframes kfDestruct8 {
    0% { transform: translateY(0) scaleY(1) scaleX(1); opacity: 1; }
    30% { transform: translateY(-22px) scaleY(1.1) scaleX(0.92); }
    100% { transform: translateY(520px) scaleY(0.04) scaleX(1.75); opacity: 0; filter: blur(10px); }
}

/* 9. Incineração em Plasma Quântico Ciano */
.next-destruct-9 {
    animation: kfDestruct9 0.88s ease-in forwards !important;
}
@keyframes kfDestruct9 {
    0% { opacity: 1; filter: brightness(1); }
    40% { filter: brightness(2.4) drop-shadow(0 -15px 30px #00e5ff); transform: scale(1.05); }
    100% { opacity: 0; filter: brightness(4) blur(20px); transform: translateY(-95px) scale(0.6); }
}

/* 10. Dissolução Fotónica em Cascata Matrix */
.next-destruct-10 {
    animation: kfDestruct10 0.85s ease-in forwards !important;
}
@keyframes kfDestruct10 {
    0% { transform: scaleY(1); opacity: 1; }
    45% { transform: scaleY(1.45) scaleX(0.65); filter: brightness(2.2) drop-shadow(0 0 25px #00e5ff); }
    100% { transform: translateY(420px) scaleY(2.8) scaleX(0.02); opacity: 0; filter: blur(12px); }
}

/* 11. Onda de Choque Concêntrica */
.next-destruct-11 {
    animation: kfDestruct11 0.85s cubic-bezier(0.19, 1, 0.22, 1) forwards !important;
}
@keyframes kfDestruct11 {
    0% { transform: scale(1); opacity: 1; border-radius: 12px; }
    30% { transform: scale(0.82); border-radius: 50%; filter: brightness(2.6); }
    100% { transform: scale(2.1); border-radius: 50%; opacity: 0; filter: blur(18px); }
}

/* 12. Fenda Dimensional (Ruptura Central) */
.next-destruct-12 {
    animation: kfDestruct12 0.85s ease-in forwards !important;
}
@keyframes kfDestruct12 {
    0% { transform: perspective(800px) rotateY(0deg); opacity: 1; }
    40% { transform: perspective(800px) rotateY(55deg) scaleX(1.25); filter: brightness(2.2); }
    100% { transform: perspective(800px) rotateY(115deg) translateZ(-500px); opacity: 0; }
}

/* 13. Queda Sequencial em Dominó 3D */
.next-destruct-13 {
    transform-origin: bottom center !important;
    animation: kfDestruct13 0.85s ease-in forwards !important;
}
@keyframes kfDestruct13 {
    0% { transform: perspective(900px) rotateX(0deg); opacity: 1; }
    100% { transform: perspective(900px) rotateX(-105deg) translateY(120px); opacity: 0; filter: blur(8px); }
}

/* 14. Furacão Centrífugo 3D */
.next-destruct-14 {
    animation: kfDestruct14 0.88s ease-in forwards !important;
}
@keyframes kfDestruct14 {
    0% { transform: perspective(800px) rotateY(0deg) rotateZ(0deg) scale(1); opacity: 1; }
    100% { transform: perspective(800px) rotateY(540deg) rotateZ(-180deg) translate3d(0, -240px, 350px) scale(0.05); opacity: 0; }
}

/* 15. Fratura Cristalina Prismática */
.next-destruct-15 {
    animation: kfDestruct15 0.85s ease-in forwards !important;
}
@keyframes kfDestruct15 {
    0% { opacity: 1; filter: saturate(1); }
    35% { filter: brightness(2.5) drop-shadow(0 0 25px #00e5ff); transform: skew(15deg, -15deg) scale(1.08); }
    100% { opacity: 0; filter: blur(16px); transform: skew(-45deg, 35deg) scale(0.15); }
}

/* 16. Clarão Celestial de Purificação */
.next-destruct-16 {
    animation: kfDestruct16 0.85s ease-out forwards !important;
}
@keyframes kfDestruct16 {
    0% { opacity: 1; filter: brightness(1); }
    35% { opacity: 1; filter: brightness(6) drop-shadow(0 0 50px #00e5ff); transform: scale(1.06); }
    100% { opacity: 0; filter: brightness(10) blur(25px); transform: scale(0.88); }
}

/* 17. Dobra de Horizonte de Eventos (Buraco Negro) */
.next-destruct-17 {
    animation: kfDestruct17 0.88s cubic-bezier(0.7, 0, 0.84, 0) forwards !important;
}
@keyframes kfDestruct17 {
    0% { transform: scale(1) skew(0deg, 0deg); opacity: 1; }
    50% { transform: scale(0.55) skew(35deg, -25deg) rotate(-90deg); filter: brightness(2.4) drop-shadow(0 0 25px #00e5ff); }
    100% { transform: scale(0) skew(70deg, -60deg) rotate(-360deg); opacity: 0; }
}

/* 18. Transmutação em Luz Quântica Ciano */
.next-destruct-18 {
    animation: kfDestruct18 0.88s ease-in-out forwards !important;
}
@keyframes kfDestruct18 {
    0% { opacity: 1; transform: scale(1); }
    40% { filter: brightness(2.8) drop-shadow(0 0 35px #00e5ff); transform: scale(1.08) translateY(-10px); }
    100% { opacity: 0; filter: brightness(5) blur(18px); transform: scale(0.2) translateY(-120px); }
}

