/* ============================================================
   nc_styles.css — Sistema visual do NECTARYON CORE
   Tema escuro tático com paleta inviolável e Courier New
   Fidelidade às referências visuais fornecidas
   ============================================================ */

/* ============================================================
   VARIÁVEIS GLOBAIS — paleta oficial
   ============================================================ */
:root {
    --nc-black:      #000000;
    --nc-dark:       #050510;
    --nc-darker:     #050520;
    --nc-border:     #0d2040;
    --nc-cyan:       #00FFFF;
    --nc-violet:     #8A2BE2;
    --nc-purple:     #9D00FF;
    --nc-white:      #FFFFFF;
    --nc-green:      #00FFAA;
    --nc-red:        #FF3C5F;
    --nc-text:       #C8DAF0;
    --nc-gold:       #FFD700;
    --nc-font:       'Courier New', Courier, monospace;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background: var(--nc-black);
    color: var(--nc-text);
    font-family: var(--nc-font);
    font-size: 13px;
    letter-spacing: 0.05em;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   SCANLINES — efeito CRT em todas as telas
   ============================================================ */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.04) 2px,
        rgba(0, 0, 0, 0.04) 4px
    );
}

/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.nc-hidden { display: none !important; }

/* ============================================================
   SCROLLBAR CUSTOMIZADA
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--nc-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--nc-violet); }

/* ============================================================
   ANIMAÇÕES GLOBAIS
   ============================================================ */
@keyframes nc-pulse-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 255, 255, 0.3); }
    50% { box-shadow: 0 0 24px rgba(0, 255, 255, 0.6); }
}

@keyframes nc-pulse-opacity {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes nc-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes nc-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes nc-bounce-dot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes nc-slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes nc-slide-right {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

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

/* ============================================================
   CARD PADRÃO (referência img 6)
   ============================================================ */
.nc-card,
.nc-quest-card {
    background: rgba(5, 5, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--nc-border);
    border-radius: 8px;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.05),
        inset 0 1px 0 rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    padding: 16px;
}

.nc-card::before,
.nc-quest-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--nc-violet), var(--nc-cyan), var(--nc-violet));
}

/* ============================================================
   BOTÕES
   ============================================================ */
.nc-btn-primary {
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid var(--nc-cyan);
    border-radius: 4px;
    color: var(--nc-cyan);
    font-family: var(--nc-font);
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 14px 40px;
    cursor: pointer;
    transition: all 0.25s ease;
    animation: nc-pulse-glow 2.5s infinite ease-in-out;
}

.nc-btn-primary:hover {
    background: rgba(0, 255, 255, 0.18);
    box-shadow: 0 0 28px rgba(0, 255, 255, 0.5);
}

.nc-btn-primary:active { transform: scale(0.98); }
.nc-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; animation: none; }

.nc-btn-secondary {
    background: transparent;
    border: 1px solid var(--nc-border);
    border-radius: 4px;
    color: var(--nc-violet);
    font-family: var(--nc-font);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 10px 24px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nc-btn-secondary:hover {
    border-color: var(--nc-violet);
    color: var(--nc-cyan);
}

/* ============================================================
   INPUTS
   ============================================================ */
.nc-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--nc-border);
    border-radius: 4px;
    color: var(--nc-text);
    font-family: var(--nc-font);
    font-size: 13px;
    letter-spacing: 0.1em;
    padding: 12px 16px;
    transition: all 0.25s ease;
}

.nc-input::placeholder {
    color: var(--nc-text);
    opacity: 0.3;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.nc-input:focus {
    outline: none;
    border-color: var(--nc-cyan);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}

select.nc-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--nc-cyan) 50%),
                      linear-gradient(135deg, var(--nc-cyan) 50%, transparent 50%);
    background-position: calc(100% - 16px) center, calc(100% - 11px) center;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

/* ============================================================
   INDICADORES DE STATUS (ponto pulsante)
   ============================================================ */
.nc-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: nc-pulse-opacity 2s infinite ease-in-out;
}

.nc-status-active {
    background: var(--nc-green);
    box-shadow: 0 0 8px var(--nc-green);
}

.nc-status-processing {
    background: var(--nc-cyan);
    box-shadow: 0 0 8px var(--nc-cyan);
}

.nc-status-error {
    background: var(--nc-red);
    box-shadow: 0 0 8px var(--nc-red);
}

/* ============================================================
   DIVISOR
   ============================================================ */
.nc-divider {
    height: 1px;
    border: none;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.3), transparent);
    margin: 16px 0;
}

/* ============================================================
   CORNER BRACKETS TÁTICOS (refs imgs 4 e 5)
   ============================================================ */
.nc-corners {
    position: fixed;
    inset: 56px 12px 12px 12px;
    pointer-events: none;
    z-index: 5;
}

.nc-corner {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid var(--nc-cyan);
    filter: drop-shadow(0 0 4px var(--nc-cyan));
}

.nc-corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.nc-corner-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.nc-corner-bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.nc-corner-br { bottom: 0; right: 0; border-left: none; border-top: none; }

/* ============================================================
   BOOT — ANIMAÇÃO DE ABERTURA
   ============================================================ */
.nc-boot-stage {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000008;
    overflow: hidden;
}

.nc-boot-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.nc-boot-flash {
    position: absolute;
    inset: 0;
    background: #FFFFFF;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 3;
}

.nc-boot-flash-on { opacity: 1; }

.nc-boot-mission {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 460px;
    padding: 32px 24px;
    background: rgba(5, 5, 20, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--nc-border);
    border-radius: 8px;
    box-shadow:
        0 0 40px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(0, 255, 255, 0.1);
    text-align: center;
    animation: nc-fade-in 0.8s ease forwards;
    z-index: 2;
}

.nc-boot-mission::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--nc-violet), var(--nc-cyan), var(--nc-violet));
}

.nc-boot-mission-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--nc-cyan), transparent);
    margin: 12px 0;
}

.nc-boot-mission-logo {
    display: flex;
    justify-content: center;
    margin: 12px 0;
    filter: drop-shadow(0 0 12px var(--nc-cyan));
}

.nc-boot-welcome {
    color: var(--nc-cyan);
    font-size: 14px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin: 24px 0 16px;
    min-height: 22px;
    text-shadow: 0 0 8px var(--nc-cyan);
}

.nc-boot-question {
    color: var(--nc-text);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: nc-fade-in 0.6s ease forwards;
    opacity: 0.85;
}

.nc-boot-accept {
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid var(--nc-cyan);
    border-radius: 4px;
    color: var(--nc-cyan);
    font-family: var(--nc-font);
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 14px 32px;
    cursor: pointer;
    animation: nc-fade-in 0.6s ease forwards, nc-pulse-glow 2.5s infinite ease-in-out 0.6s;
}

.nc-boot-accept:hover {
    background: rgba(0, 255, 255, 0.18);
    box-shadow: 0 0 28px rgba(0, 255, 255, 0.5);
}

.nc-boot-fade-out { animation: nc-fade-out 0.5s ease forwards; }

.nc-boot-footer {
    margin-top: 20px;
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--nc-text);
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ============================================================
   LOGIN (referência img 3)
   ============================================================ */
.nc-login-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: var(--nc-black);
    animation: nc-fade-in 0.8s ease forwards;
}

.nc-login-card {
    width: 100%;
    max-width: 380px;
    padding: 32px 28px;
}

.nc-login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px var(--nc-cyan));
}

.nc-login-title {
    text-align: center;
    color: var(--nc-cyan);
    font-size: 26px;
    letter-spacing: 0.2em;
    text-shadow: 0 0 15px var(--nc-cyan);
    margin-bottom: 4px;
}

.nc-login-subtitle {
    text-align: center;
    color: var(--nc-violet);
    font-size: 14px;
    letter-spacing: 0.4em;
    margin-bottom: 32px;
}

.nc-login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nc-login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nc-login-field label {
    color: var(--nc-text);
    opacity: 0.6;
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.nc-login-error {
    color: var(--nc-red);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-align: center;
    min-height: 16px;
    text-transform: uppercase;
}

.nc-login-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--nc-text);
    opacity: 0.35;
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* ============================================================
   HUD GLOBAL (refs imgs 4, 5, 6)
   ============================================================ */
.nc-hud {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 48px;
    background: rgba(10, 10, 20, 0.95);
    border-bottom: 1px solid var(--nc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nc-hud-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nc-hud-sidebar-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    filter: drop-shadow(0 0 4px var(--nc-cyan));
    transition: transform 0.2s ease;
}

.nc-hud-sidebar-btn:hover { transform: scale(1.08); }
.nc-hud-sidebar-btn:active { transform: scale(0.95); }

.nc-hud-brand {
    display: flex;
    gap: 6px;
}

.nc-hud-brand-name {
    color: var(--nc-white);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-shadow: 0 0 6px rgba(255,255,255,0.4);
}

.nc-hud-brand-suffix {
    color: var(--nc-violet);
    font-size: 13px;
    letter-spacing: 0.3em;
}

.nc-hud-center {
    display: flex;
    align-items: center;
}

.nc-hud-clock {
    color: var(--nc-cyan);
    font-size: 13px;
    letter-spacing: 0.15em;
    text-shadow: 0 0 6px rgba(0,255,255,0.3);
}

.nc-hud-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nc-hud-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nc-hud-status-text {
    color: var(--nc-text);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.85;
}

.nc-hud-user {
    color: var(--nc-cyan);
    font-size: 13px;
    letter-spacing: 0.1em;
}

.nc-hud-menu-btn {
    background: transparent;
    border: 1px solid var(--nc-border);
    color: var(--nc-cyan);
    font-family: var(--nc-font);
    font-size: 18px;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nc-hud-menu-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--nc-cyan);
}

.nc-hud-menu {
    position: absolute;
    top: 52px;
    right: 16px;
    background: rgba(5, 5, 20, 0.97);
    border: 1px solid var(--nc-border);
    border-radius: 4px;
    padding: 8px;
    min-width: 200px;
    animation: nc-slide-down 0.2s ease forwards;
    z-index: 101;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.nc-hud-menu-item {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--nc-text);
    font-family: var(--nc-font);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
    border-radius: 3px;
}

.nc-hud-menu-item:hover {
    color: var(--nc-cyan);
    background: rgba(0,255,255,0.05);
}

.nc-hud-menu-danger { color: var(--nc-red) !important; }
.nc-hud-menu-danger:hover { background: rgba(255,60,95,0.08) !important; }

.nc-hud-menu-divider {
    height: 1px;
    background: var(--nc-border);
    margin: 4px 0;
}

/* ============================================================
   NOTIFICAÇÕES
   ============================================================ */
.nc-notifications {
    position: fixed;
    top: 60px;
    right: 16px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
}

.nc-notification {
    background: rgba(5, 5, 20, 0.96);
    border-left: 3px solid var(--nc-cyan);
    color: var(--nc-text);
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 11px;
    letter-spacing: 0.15em;
    animation: nc-slide-down 0.3s ease forwards;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nc-notif-info { border-left-color: var(--nc-cyan); }
.nc-notif-success { border-left-color: var(--nc-green); }
.nc-notif-error { border-left-color: var(--nc-red); }
.nc-notif-out { animation: nc-fade-out 0.4s ease forwards; }

/* ============================================================
   APP — CONTAINER PRINCIPAL
   ============================================================ */
.nc-app-stage {
    padding-top: 48px;
    min-height: 100vh;
    background: var(--nc-black);
}

/* ============================================================
   MODO VOZ (referência img 4)
   ============================================================ */
.nc-voice-stage {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 48px);
    overflow: hidden;
}

.nc-voice-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.nc-voice-content {
    position: relative;
    z-index: 10;
}


.nc-voice-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 48px);
    padding: 32px 16px;
    gap: 24px;
    pointer-events: auto;
}

.nc-voice-logo {
    width: 55%;
    max-width: 400px;
    min-width: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 20px rgba(0,255,255,0.3));
}

.nc-voice-logo-svg {
    width: 100%;
    height: auto;
}

.nc-voice-status {
    color: var(--nc-cyan);
    font-size: 12px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--nc-cyan);
    margin-top: 12px;
}

.nc-mic-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--nc-cyan);
    color: var(--nc-cyan);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    animation: nc-pulse-glow 2.5s infinite ease-in-out;
}

.nc-mic-btn:hover {
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 32px rgba(0, 255, 255, 0.7);
}

.nc-mic-btn:active { transform: scale(0.95); }

.nc-voice-instruction {
    color: var(--nc-text);
    opacity: 0.4;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
}

.nc-voice-instruction-key {
    color: var(--nc-cyan);
    opacity: 0.8;
}

/* ============================================================
   MODO CHAT (referência img 5)
   ============================================================ */
.nc-chat-stage {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 48px);
    padding: 0 16px;
}

.nc-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 0;
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nc-chat-welcome {
    text-align: center;
    margin: 16px 0;
    animation: nc-fade-in 0.8s ease forwards;
}

.nc-chat-welcome-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--nc-cyan), transparent);
    margin: 12px 0;
}

.nc-chat-welcome-text {
    color: var(--nc-cyan);
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-shadow: 0 0 8px var(--nc-cyan);
    line-height: 1.8;
}

.nc-chat-welcome-sub {
    color: var(--nc-violet);
    font-size: 10px;
    letter-spacing: 0.4em;
    display: inline-block;
    margin-top: 4px;
}

/* Bolhas */
.nc-msg-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    animation: nc-fade-in 0.4s ease forwards;
}

.nc-msg-user {
    align-self: flex-end;
    align-items: flex-end;
}

.nc-msg-system {
    align-self: flex-start;
    align-items: flex-start;
}

.nc-msg-label {
    font-size: 10px;
    letter-spacing: 0.3em;
    opacity: 0.7;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.nc-msg-label-user { color: var(--nc-violet); padding-right: 12px; }
.nc-msg-label-system { color: var(--nc-cyan); }

.nc-msg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.nc-msg-icon {
    filter: drop-shadow(0 0 4px var(--nc-cyan));
    margin-left: -8px;
}

.nc-msg-bubble {
    padding: 14px 18px;
    font-size: 13px;
    letter-spacing: 0.05em;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.nc-msg-bubble-user {
    background: rgba(100, 0, 180, 0.25);
    border: 1px solid rgba(138, 43, 226, 0.6);
    border-radius: 12px 12px 2px 12px;
    color: var(--nc-text);
}

.nc-msg-bubble-system {
    background: rgba(0, 20, 40, 0.85);
    border: 1px solid var(--nc-cyan);
    border-radius: 12px 12px 12px 2px;
    color: var(--nc-text);
    box-shadow: 0 0 12px rgba(0,255,255,0.1);
}

.nc-msg-bubble-error {
    background: rgba(255, 60, 95, 0.15) !important;
    border-color: rgba(255, 60, 95, 0.5) !important;
    color: var(--nc-red);
}

.nc-msg-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 0.15em;
}

.nc-msg-meta-user {
    color: var(--nc-violet);
    opacity: 0.85;
    padding-right: 12px;
}

.nc-msg-meta-system {
    color: var(--nc-cyan);
    opacity: 0.7;
    padding-left: 12px;
}

.nc-msg-check { color: var(--nc-cyan); }

.nc-listen-btn-wrap { margin-top: 8px; padding-left: 4px; }

.nc-listen-btn {
    background: transparent;
    border: 1px solid var(--nc-cyan);
    color: var(--nc-cyan);
    font-family: var(--nc-font);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nc-listen-btn:hover {
    background: rgba(0,255,255,0.1);
    box-shadow: 0 0 12px rgba(0,255,255,0.3);
}

.nc-listen-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Typing indicator */
.nc-typing-indicator {
    display: flex;
    padding: 12px 0;
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
}

.nc-typing-dots {
    display: flex;
    gap: 6px;
}

.nc-typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nc-cyan);
    box-shadow: 0 0 6px var(--nc-cyan);
    animation: nc-bounce-dot 1s infinite ease-in-out;
}

.nc-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.nc-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

.nc-typing-label {
    font-size: 0.65rem;
    font-family: var(--nc-font-mono, monospace);
    color: var(--nc-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-left: 12px;
    align-self: center;
    opacity: 0.8;
    animation: nc-pulse-label 2s infinite ease-in-out;
}

@keyframes nc-pulse-label {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

/* Input area */
.nc-chat-input-area {
    background: rgba(10, 10, 20, 0.95);
    border-top: 1px solid var(--nc-border);
    padding: 16px;
    display: flex;
    gap: 10px;
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    position: sticky;
    bottom: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nc-chat-input-wrap {
    flex: 1;
    border: 1px solid var(--nc-cyan);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 8px rgba(0,255,255,0.15);
    transition: all 0.25s ease;
}

.nc-chat-input-wrap:focus-within {
    box-shadow: 0 0 16px rgba(0,255,255,0.3);
}

.nc-chat-input {
    width: 100%;
    min-height: 44px;
    max-height: 120px;
    background: transparent;
    border: none;
    color: var(--nc-text);
    font-family: var(--nc-font);
    font-size: 13px;
    letter-spacing: 0.1em;
    padding: 12px 16px;
    resize: none;
    outline: none;
}

.nc-chat-input::placeholder {
    color: var(--nc-text);
    opacity: 0.35;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.nc-chat-send {
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid var(--nc-cyan);
    color: var(--nc-cyan);
    font-family: var(--nc-font);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 0 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.nc-chat-send:hover:not(:disabled) {
    background: rgba(0, 255, 255, 0.18);
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.4);
}

.nc-chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   MODO QUESTS (referência img 6)
   ============================================================ */
.nc-quest-stage {
    padding: 16px;
    min-height: calc(100vh - 48px);
}

.nc-quest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.nc-quest-col-left,
.nc-quest-col-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nc-card-title {
    color: var(--nc-cyan);
    font-size: 13px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 14px;
    text-shadow: 0 0 6px var(--nc-cyan);
}

/* Perfil card */
.nc-profile-card {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 18px;
    align-items: center;
}

.nc-profile-logo {
    filter: drop-shadow(0 0 6px var(--nc-cyan));
}

.nc-rank-badge {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, #2a1f00 0%, #050520 100%);
    border: 3px solid var(--nc-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--nc-gold);
}

.nc-rank-label {
    font-size: 8px;
    letter-spacing: 0.2em;
    color: var(--nc-gold);
    line-height: 1;
}

.nc-rank-letter {
    font-size: 26px;
    color: var(--nc-gold);
    font-weight: 700;
    text-shadow: 0 0 8px var(--nc-gold);
    line-height: 1;
}

/* Ranks individuais (cores diferentes) */
.nc-rank-s, .nc-rank-ss, .nc-rank-sss {
    border-color: var(--nc-gold);
    box-shadow: 0 0 20px var(--nc-gold);
}
.nc-rank-s .nc-rank-letter, .nc-rank-ss .nc-rank-letter, .nc-rank-sss .nc-rank-letter,
.nc-rank-s .nc-rank-label, .nc-rank-ss .nc-rank-label, .nc-rank-sss .nc-rank-label {
    color: var(--nc-gold);
}

.nc-rank-a { border-color: var(--nc-violet); box-shadow: 0 0 16px var(--nc-violet); }
.nc-rank-a .nc-rank-letter, .nc-rank-a .nc-rank-label { color: var(--nc-violet); }

.nc-rank-b { border-color: var(--nc-cyan); box-shadow: 0 0 16px var(--nc-cyan); }
.nc-rank-b .nc-rank-letter, .nc-rank-b .nc-rank-label { color: var(--nc-cyan); }

.nc-rank-c { border-color: #4a90e2; box-shadow: 0 0 12px #4a90e2; }
.nc-rank-c .nc-rank-letter, .nc-rank-c .nc-rank-label { color: #4a90e2; }

.nc-rank-d { border-color: var(--nc-green); box-shadow: 0 0 10px var(--nc-green); }
.nc-rank-d .nc-rank-letter, .nc-rank-d .nc-rank-label { color: var(--nc-green); }

.nc-rank-e { border-color: #6a6a7a; box-shadow: 0 0 8px #6a6a7a; }
.nc-rank-e .nc-rank-letter, .nc-rank-e .nc-rank-label { color: #9a9ab0; }

.nc-profile-level { display: flex; flex-direction: column; align-items: flex-start; }
.nc-level-label { font-size: 10px; letter-spacing: 0.25em; color: var(--nc-text); opacity: 0.7; }
.nc-level-value {
    font-size: 38px;
    color: var(--nc-cyan);
    text-shadow: 0 0 8px var(--nc-cyan);
    line-height: 1;
}

.nc-xp-section { grid-column: 1 / -1; }
.nc-xp-label {
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--nc-text);
    opacity: 0.7;
    margin-bottom: 6px;
}

.nc-xp-bar {
    height: 10px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--nc-border);
    border-radius: 6px;
    overflow: hidden;
}

.nc-xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--nc-cyan), var(--nc-purple));
    box-shadow: 0 0 8px var(--nc-cyan);
    transition: width 0.5s ease;
}

/* Atributos */
.nc-attributes-list { display: flex; flex-direction: column; gap: 10px; }

.nc-attr-row {
    display: grid;
    grid-template-columns: 120px 1fr 70px;
    gap: 10px;
    align-items: center;
}

.nc-attr-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--nc-text);
    text-transform: uppercase;
}

.nc-attr-bar {
    height: 10px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--nc-border);
    border-radius: 6px;
    overflow: hidden;
}

.nc-attr-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--nc-cyan), #00BFFF);
    box-shadow: 0 0 6px var(--nc-cyan);
    transition: width 0.5s ease;
}

.nc-attr-value {
    font-size: 11px;
    color: var(--nc-cyan);
    text-align: right;
    letter-spacing: 0.1em;
}

/* Quests */
.nc-quests-list { display: flex; flex-direction: column; gap: 10px; }

.nc-quest-row {
    display: grid;
    grid-template-columns: 90px 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.nc-quest-row:hover { background: rgba(0,255,255,0.05); }

.nc-diff-pill {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid;
}

.nc-diff-normal {
    color: var(--nc-cyan);
    border-color: var(--nc-cyan);
    box-shadow: 0 0 6px rgba(0,255,255,0.3);
}

.nc-diff-dificil {
    color: var(--nc-violet);
    border-color: var(--nc-violet);
    box-shadow: 0 0 6px rgba(138,43,226,0.3);
}

.nc-diff-epico {
    color: var(--nc-gold);
    border-color: var(--nc-gold);
    box-shadow: 0 0 6px rgba(255,215,0,0.3);
}

.nc-quest-title {
    font-size: 11px;
    color: var(--nc-text);
    letter-spacing: 0.1em;
}

.nc-quest-xp {
    font-size: 11px;
    color: var(--nc-cyan);
    letter-spacing: 0.1em;
}

.nc-quest-check {
    width: 22px;
    height: 22px;
    border: 1px solid var(--nc-cyan);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nc-cyan);
    font-size: 14px;
    transition: all 0.25s ease;
}

.nc-quest-check-on {
    background: var(--nc-cyan);
    color: var(--nc-black);
    box-shadow: 0 0 8px var(--nc-cyan);
}

/* Ranking */
.nc-rank-list { display: flex; flex-direction: column; gap: 8px; }

.nc-rank-row {
    display: grid;
    grid-template-columns: 30px 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.nc-rank-row-current {
    border-color: var(--nc-cyan);
    background: rgba(0,255,255,0.05);
    box-shadow: 0 0 8px rgba(0,255,255,0.2);
}

.nc-rank-pos {
    color: var(--nc-gold);
    font-size: 14px;
    letter-spacing: 0.1em;
}

.nc-rank-name {
    color: var(--nc-cyan);
    font-size: 11px;
    letter-spacing: 0.15em;
}

.nc-rank-badge-mini {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid;
}

.nc-rank-points {
    color: var(--nc-cyan);
    font-size: 11px;
    letter-spacing: 0.1em;
}

/* Calendário */
.nc-calendar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
}

.nc-cal-month {
    text-align: center;
    padding: 10px;
    border-right: 1px solid var(--nc-border);
}

.nc-cal-month-label {
    font-size: 10px;
    letter-spacing: 0.25em;
    color: var(--nc-cyan);
}

.nc-cal-month-num {
    font-size: 28px;
    color: var(--nc-white);
    font-weight: 700;
}

.nc-cal-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.nc-cal-day {
    text-align: center;
    padding: 4px 2px;
    border-radius: 3px;
}

.nc-cal-day-label {
    font-size: 9px;
    color: var(--nc-text);
    opacity: 0.6;
    letter-spacing: 0.1em;
}

.nc-cal-day-num {
    font-size: 13px;
    color: var(--nc-text);
}

.nc-cal-day-today {
    border: 1px solid var(--nc-cyan);
    background: rgba(0,255,255,0.08);
    box-shadow: 0 0 6px rgba(0,255,255,0.3);
}

.nc-cal-day-today .nc-cal-day-num {
    color: var(--nc-cyan);
    text-shadow: 0 0 4px var(--nc-cyan);
}

/* Relógio do sistema */
.nc-clock-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
}

.nc-clock-icon { font-size: 28px; color: var(--nc-cyan); }

.nc-clock-display {
    font-size: 32px;
    color: var(--nc-cyan);
    text-shadow: 0 0 10px var(--nc-cyan);
    letter-spacing: 0.1em;
}

.nc-clock-sublabel {
    grid-column: 1 / -1;
    font-size: 10px;
    color: var(--nc-text);
    opacity: 0.5;
    letter-spacing: 0.25em;
}

/* ============================================================
   SIDEBAR (referência img 8)
   ============================================================ */
.nc-sidebar-trigger {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    background: rgba(5, 5, 20, 0.95);
    border: 1px solid var(--nc-cyan);
    border-left: none;
    border-radius: 0 6px 6px 0;
    color: var(--nc-cyan);
    width: 32px;
    height: 56px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 0 12px rgba(0,255,255,0.15);
    transition: all 0.25s ease;
}

.nc-sidebar-trigger-icon {
    font-size: 18px;
    text-shadow: 0 0 4px var(--nc-cyan);
}

.nc-sidebar-trigger:hover {
    background: rgba(0,255,255,0.1);
    box-shadow: 4px 0 20px rgba(0,255,255,0.3);
}

.nc-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 300;
    transition: background 0.3s ease;
}

.nc-sidebar-overlay-on {
    background: rgba(0,0,0,0.7);
}

.nc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: rgba(5, 5, 20, 0.97);
    border-right: 2px solid var(--nc-cyan);
    box-shadow: 4px 0 30px rgba(0,255,255,0.2);
    z-index: 310;
    padding: 24px 20px;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nc-sidebar-open { transform: translateX(0); }

.nc-sb-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.nc-sb-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--nc-cyan);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(0,255,255,0.3);
}

.nc-sb-name {
    color: var(--nc-cyan);
    font-size: 14px;
    letter-spacing: 0.15em;
    text-shadow: 0 0 6px var(--nc-cyan);
}

.nc-sb-rank-badge {
    background: rgba(255,215,0,0.1);
    border: 1px solid var(--nc-gold);
    color: var(--nc-gold);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    letter-spacing: 0.25em;
    box-shadow: 0 0 8px rgba(255,215,0,0.3);
}

.nc-sb-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.nc-sb-status-text {
    color: var(--nc-green);
    font-size: 10px;
    letter-spacing: 0.25em;
}

.nc-sb-divider {
    height: 1px;
    border: none;
    background: linear-gradient(90deg, transparent, var(--nc-cyan), transparent);
    margin: 20px 0;
}

.nc-sb-section-title {
    color: var(--nc-violet);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.nc-sb-attr-row {
    display: grid;
    grid-template-columns: 90px 1fr 50px;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
}

.nc-sb-attr-label {
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--nc-text);
    text-transform: uppercase;
}

.nc-sb-attr-bar {
    height: 6px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--nc-border);
    border-radius: 4px;
    overflow: hidden;
}

.nc-sb-attr-fill {
    height: 100%;
    background: var(--nc-cyan);
    box-shadow: 0 0 4px var(--nc-cyan);
}

.nc-sb-attr-value {
    font-size: 9px;
    color: var(--nc-cyan);
    text-align: right;
    letter-spacing: 0.1em;
}

.nc-sb-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nc-sb-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--nc-text);
    font-family: var(--nc-font);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 4px;
}

.nc-sb-menu-item:hover {
    background: rgba(0,255,255,0.08);
    color: var(--nc-cyan);
}

.nc-sb-menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nc-sb-menu-danger { color: var(--nc-red); }
.nc-sb-menu-danger:hover { background: rgba(255,60,95,0.08); color: var(--nc-red); }

/* ============================================================
   MODAL DE CONFIGURAÇÕES
   ============================================================ */
.nc-settings-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    transition: background 0.3s ease;
}

.nc-settings-overlay-on { background: rgba(0,0,0,0.85); }

.nc-settings-card {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 24px;
    animation: nc-fade-in 0.4s ease forwards;
}

.nc-settings-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: 1px solid var(--nc-border);
    color: var(--nc-text);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.25s ease;
}

.nc-settings-close:hover {
    border-color: var(--nc-red);
    color: var(--nc-red);
}

.nc-settings-title {
    color: var(--nc-cyan);
    font-size: 16px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 0 0 8px var(--nc-cyan);
}

.nc-settings-section { margin-bottom: 16px; }

.nc-settings-section-title {
    color: var(--nc-violet);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.nc-settings-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.nc-settings-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid var(--nc-cyan);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(0,255,255,0.3);
}

.nc-settings-row { margin-bottom: 12px; }

.nc-settings-label {
    display: block;
    color: var(--nc-text);
    opacity: 0.7;
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.nc-settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.nc-settings-toggle-label {
    color: var(--nc-text);
    font-size: 12px;
    letter-spacing: 0.1em;
}

/* Toggle switch */
.nc-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.nc-toggle input { opacity: 0; width: 0; height: 0; }

.nc-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--nc-border);
    border-radius: 12px;
    transition: 0.3s;
}

.nc-toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: var(--nc-text);
    border-radius: 50%;
    transition: 0.3s;
}

.nc-toggle input:checked + .nc-toggle-slider {
    background: rgba(0,255,255,0.2);
    border-color: var(--nc-cyan);
    box-shadow: 0 0 6px rgba(0,255,255,0.3);
}

.nc-toggle input:checked + .nc-toggle-slider:before {
    transform: translateX(22px);
    background: var(--nc-cyan);
    box-shadow: 0 0 4px var(--nc-cyan);
}

.nc-settings-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    margin-bottom: 12px;
}

.nc-settings-status-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid var(--nc-border);
    border-radius: 12px;
}

.nc-settings-status-text {
    color: var(--nc-green);
    font-size: 10px;
    letter-spacing: 0.25em;
}

.nc-settings-full-btn { width: 100%; padding: 12px; }

.nc-settings-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 11px;
    letter-spacing: 0.1em;
}

.nc-settings-info-label {
    color: var(--nc-text);
    opacity: 0.6;
}

.nc-settings-info-value {
    color: var(--nc-cyan);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nc-settings-save-btn {
    width: 100%;
    margin-top: 16px;
}

/* ============================================================
   RESPONSIVIDADE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
    .nc-quest-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVIDADE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
    .nc-hud-brand-name { font-size: 11px; }
    .nc-hud-brand-suffix { display: none; }
    .nc-hud-clock { font-size: 11px; }
    .nc-hud-status-text { display: none; }
    .nc-hud-user { font-size: 11px; }

    .nc-corners { inset: 56px 8px 8px 8px; }
    .nc-corner { width: 24px; height: 24px; }

    .nc-msg-wrapper { max-width: 88%; }

    .nc-attr-row { grid-template-columns: 90px 1fr 56px; }

    .nc-quest-row {
        grid-template-columns: 80px 1fr;
        grid-template-areas:
            "diff title"
            "diff xp-check";
        gap: 6px;
    }
    .nc-diff-pill { grid-area: diff; align-self: center; }
    .nc-quest-title { grid-area: title; font-size: 10px; }
    .nc-quest-xp { font-size: 10px; }

    .nc-profile-card {
        grid-template-columns: auto auto;
        text-align: center;
        justify-items: center;
    }

    .nc-clock-display { font-size: 24px; }
    .nc-level-value { font-size: 28px; }
    .nc-rank-badge { width: 56px; height: 56px; }
    .nc-rank-letter { font-size: 20px; }

    .nc-sidebar { width: 260px; }

    .nc-login-title { font-size: 22px; }
}

/* ============================================================
   RESPONSIVIDADE — TELAS ULTRA PEQUENAS
   ============================================================ */
@media (max-width: 380px) {
    .nc-hud-brand { display: none; }
    .nc-attr-row { grid-template-columns: 80px 1fr 50px; }
    .nc-cal-day-label { font-size: 8px; }
    .nc-cal-day-num { font-size: 11px; }
}
/* ============================================================
   CHAT INPUT EXPANDIDO — audio + anexo + preview
   ============================================================ */

.nc-chat-input-area {
    align-items: stretch;
}

.nc-chat-iobtn {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    align-self: flex-end;
    border-radius: 50%;
    background: rgba(5, 5, 16, 0.9);
    border: 1px solid var(--nc-border);
    color: var(--nc-cyan);
    font-family: var(--nc-font);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.nc-chat-iobtn:hover {
    border-color: var(--nc-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.35);
}

.nc-chat-iobtn .nc-iobtn-icon {
    font-size: 18px;
    line-height: 1;
    color: var(--nc-cyan);
    opacity: 0.85;
    pointer-events: none;
}

.nc-chat-iobtn:hover .nc-iobtn-icon {
    opacity: 1;
}

/* Estado: gravando audio */
.nc-chat-audio.nc-chat-audio-rec {
    border-color: var(--nc-red);
    box-shadow: 0 0 0 0 rgba(255, 60, 95, 0.6);
    animation: nc-rec-pulse 1.1s ease-out infinite;
}

.nc-chat-audio.nc-chat-audio-rec .nc-iobtn-icon {
    color: var(--nc-white);
    opacity: 1;
}

@keyframes nc-rec-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 60, 95, 0.55); }
    70%  { box-shadow: 0 0 0 14px rgba(255, 60, 95, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 60, 95, 0); }
}

/* Estado: processando STT */
.nc-chat-audio.nc-chat-audio-proc {
    border-color: var(--nc-cyan);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.55);
}

/* Estado: anexo com arquivos */
.nc-chat-attach.nc-chat-attach-on {
    border-color: var(--nc-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

/* Badge numerico no botao de anexo */
.nc-attach-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--nc-cyan);
    color: var(--nc-black);
    font-family: var(--nc-font);
    font-size: 10px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
    border: 1px solid var(--nc-black);
    box-shadow: 0 0 6px rgba(0, 255, 255, 0.6);
}

/* ============================================================
   PREVIEW DE ANEXOS (acima do input bar)
   ============================================================ */

.nc-attach-preview {
    background: rgba(10, 10, 20, 0.95);
    border-top: 1px solid var(--nc-border);
    padding: 10px 16px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    scrollbar-width: thin;
    scrollbar-color: var(--nc-cyan) transparent;
}

.nc-attach-preview::-webkit-scrollbar {
    height: 6px;
}
.nc-attach-preview::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.4);
    border-radius: 3px;
}

.nc-attach-card {
    flex: 0 0 auto;
    width: 80px;
    height: 60px;
    background: var(--nc-dark);
    border: 1px solid var(--nc-border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nc-attach-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nc-attach-iconbox {
    font-size: 26px;
    color: var(--nc-cyan);
    line-height: 1;
}

.nc-attach-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    color: var(--nc-text);
    font-family: var(--nc-font);
    font-size: 9px;
    letter-spacing: 0.05em;
    padding: 2px 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nc-attach-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--nc-red);
    background: rgba(0, 0, 0, 0.75);
    color: var(--nc-red);
    font-family: var(--nc-font);
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nc-attach-remove:hover {
    background: var(--nc-red);
    color: var(--nc-black);
    box-shadow: 0 0 6px rgba(255, 60, 95, 0.6);
}

.nc-hidden { display: none !important; }

/* ================================================================
   QUEST MODE v2 — PENALIDADES + BOTÕES + ALERTAS
   ================================================================ */

@keyframes nc-fade-alert {
    0%   { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    15%  { opacity: 1; transform: translateX(-50%) translateY(0); }
    75%  { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-8px); }
}

/* Botões de ação da quest (✓ e ✗) */
.nc-quest-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.nc-quest-btn {
    background: transparent;
    border: 1px solid var(--nc-border);
    color: var(--nc-text);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    width: 28px;
    height: 28px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.nc-quest-btn-ok:hover {
    border-color: var(--nc-green);
    color: var(--nc-green);
    box-shadow: 0 0 6px var(--nc-green);
}

.nc-quest-btn-fail:hover {
    border-color: var(--nc-red);
    color: var(--nc-red);
    box-shadow: 0 0 6px var(--nc-red);
}

.nc-quest-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Histórico — linhas de sucesso e falha */
.nc-hist-success {
    border-left: 3px solid var(--nc-green);
}

.nc-hist-fail {
    border-left: 3px solid var(--nc-red);
}

.nc-hist-success .nc-hist-icon {
    color: var(--nc-green);
}

.nc-hist-fail .nc-hist-icon {
    color: var(--nc-red);
}

.nc-hist-success .nc-hist-xp {
    color: var(--nc-green);
}

.nc-hist-fail .nc-hist-xp {
    color: var(--nc-red);
}

/* Streak no perfil */
#nc-live-streak {
    font-weight: bold;
    color: var(--nc-gold);
}

/* XP text inline */
#nc-live-xp-text {
    float: right;
    color: var(--nc-cyan);
    font-size: 0.72em;
}

/* ================================================================
   VOICE MODE v2 — TRANSCRIÇÃO
   ================================================================ */

.nc-voice-transcription {
    min-height: 24px;
    max-width: 80%;
    margin: 8px auto 0;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.82em;
    color: var(--nc-cyan);
    opacity: 0.85;
    font-style: italic;
    letter-spacing: 0.04em;
    transition: opacity 0.3s ease;
    word-break: break-word;
}

/* ================================================================
   QUEST CRUD — formulário criar + botão deletar
   ================================================================ */

.nc-quest-create-form {
    display:        flex;
    flex-wrap:      wrap;
    gap:            8px;
    padding:        12px 0 4px 0;
    border-top:     1px solid var(--nc-border);
    margin-top:     12px;
}

.nc-create-input {
    flex:           1 1 180px;
    background:     transparent;
    border:         1px solid var(--nc-cyan);
    color:          var(--nc-cyan);
    font-family:    'Courier New', Courier, monospace;
    font-size:      0.78rem;
    padding:        6px 10px;
    outline:        none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nc-create-input::placeholder {
    color:          rgba(0,255,255,0.35);
}

.nc-create-input:focus {
    border-color:   var(--nc-purple);
    box-shadow:     0 0 8px rgba(157,0,255,0.3);
}

.nc-create-select {
    background:     #050510;
    border:         1px solid var(--nc-border);
    color:          var(--nc-text);
    font-family:    'Courier New', Courier, monospace;
    font-size:      0.72rem;
    padding:        6px 8px;
    outline:        none;
    cursor:         pointer;
    letter-spacing: 0.06em;
}

.nc-create-select:focus {
    border-color:   var(--nc-cyan);
}

.nc-create-btn {
    background:     transparent;
    border:         1px solid var(--nc-green);
    color:          var(--nc-green);
    font-family:    'Courier New', Courier, monospace;
    font-size:      0.78rem;
    padding:        6px 14px;
    cursor:         pointer;
    letter-spacing: 0.1em;
    transition:     all 0.2s;
}

.nc-create-btn:hover {
    background:     var(--nc-green);
    color:          #000;
}

.nc-quest-btn-del {
    background:     transparent;
    border:         1px solid rgba(255,60,95,0.4);
    color:          var(--nc-red);
    font-size:      0.75rem;
    padding:        3px 7px;
    cursor:         pointer;
    border-radius:  3px;
    transition:     all 0.2s;
    font-family:    'Courier New', Courier, monospace;
}

.nc-quest-btn-del:hover {
    background:     var(--nc-red);
    color:          #000;
    border-color:   var(--nc-red);
}

.nc-quest-empty {
    color:          rgba(200,218,240,0.35);
    font-size:      0.78rem;
    text-align:     center;
    padding:        16px 0;
    letter-spacing: 0.1em;
}

/* ================================================================
   BOOT RESUMIDO — card de rank
   ================================================================ */

.nc-boot-resumido {
    background: #000008;
}

.nc-boot-rank-card {
    position:        absolute;
    top:             50%;
    left:            50%;
    transform:       translate(-50%, -50%);
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    gap:             14px;
    padding:         40px 50px;
    border:          1px solid var(--nc-cyan);
    background:      rgba(5, 5, 16, 0.92);
    box-shadow:      0 0 40px rgba(0,255,255,0.15),
                     0 0 80px rgba(157,0,255,0.08);
    animation:       nc-rank-fade-in 0.8s ease forwards;
    min-width:       320px;
    text-align:      center;
}

@keyframes nc-rank-fade-in {
    from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1);    }
}

.nc-boot-rank-logo {
    filter: drop-shadow(0 0 12px rgba(0,255,255,0.5));
}

.nc-boot-rank-title {
    font-family:    'Courier New', Courier, monospace;
    font-size:      1.6rem;
    font-weight:    bold;
    color:          var(--nc-cyan);
    letter-spacing: 0.25em;
    text-shadow:    0 0 20px rgba(0,255,255,0.6);
}

.nc-boot-rank-badge {
    font-family:    'Courier New', Courier, monospace;
    font-size:      0.82rem;
    color:          var(--nc-gold);
    letter-spacing: 0.18em;
    border:         1px solid rgba(255,215,0,0.3);
    padding:        4px 16px;
}

.nc-boot-rank-greeting {
    font-family:    'Courier New', Courier, monospace;
    font-size:      0.72rem;
    color:          var(--nc-text);
    letter-spacing: 0.12em;
    max-width:      320px;
    line-height:    1.6;
    opacity:        0;
    animation:      nc-rank-greeting-in 0.8s 0.8s ease forwards;
}

@keyframes nc-rank-greeting-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0);   }
}

.nc-boot-rank-bar-wrap {
    width:           100%;
    height:          3px;
    background:      rgba(0,255,255,0.1);
    border:          1px solid rgba(0,255,255,0.15);
    margin-top:      4px;
}

.nc-boot-rank-bar {
    height:          100%;
    background:      linear-gradient(90deg, var(--nc-cyan), var(--nc-purple));
    box-shadow:      0 0 8px rgba(0,255,255,0.4);
    transition:      width 1.2s ease;
    width:           0%;
}

.nc-boot-rank-xp {
    font-family:    'Courier New', Courier, monospace;
    font-size:      0.68rem;
    color:          rgba(200,218,240,0.45);
    letter-spacing: 0.1em;
}



/* ═══════════════════════════════════════════════════════════
   MATRIZ DE ATRIBUTOS — BARRA IMERSIVA
   ═══════════════════════════════════════════════════════════ */

.nc-attrs-card-full {
    width: 100%;
}

.nc-attr-category {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--nc-violet);
    text-transform: uppercase;
    margin: 14px 0 6px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--nc-border);
}

.nc-attr-row {
    display: grid;
    grid-template-columns: 140px 1fr 52px;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.nc-attr-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--nc-text);
    text-transform: uppercase;
    white-space: nowrap;
}

.nc-attr-bar {
    height: 10px;
    background: #0a0a1a;
    border: 1px solid var(--nc-border);
    overflow: hidden;
    position: relative;
}

.nc-attr-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.nc-attr-bar-fill::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: rgba(255,255,255,0.6);
    filter: blur(1px);
}

.nc-attr-value {
    font-size: 10px;
    color: var(--nc-cyan);
    text-align: right;
    letter-spacing: 1px;
}

.nc-attr-perfect {
    color: var(--nc-green);
    font-weight: bold;
    animation: nc-attr-glow 2s ease-in-out infinite;
}

.nc-attr-pulse {
    animation: nc-attr-pulse-anim 1.5s ease-in-out 1;
}

@keyframes nc-attr-glow {
    0%, 100% { text-shadow: 0 0 6px var(--nc-green); }
    50%       { text-shadow: 0 0 16px var(--nc-green), 0 0 30px var(--nc-green); }
}

@keyframes nc-attr-pulse-anim {
    0%   { background: transparent; }
    30%  { background: rgba(0, 255, 170, 0.08); }
    100% { background: transparent; }
}

.nc-attributes-list {
    padding: 0 2px;
}


/* ═══════════════════════════════════════════════════════════
   CALENDÁRIO ANUAL — 12 MESES
   ═══════════════════════════════════════════════════════════ */

.nc-cal-y-card {
    width: 100%;
}

.nc-cal-y-legend {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 9px;
    letter-spacing: 1.5px;
}

.nc-cal-y-leg-done  { color: var(--nc-green); }
.nc-cal-y-leg-fail  { color: var(--nc-red); }
.nc-cal-y-leg-mixed { color: var(--nc-gold); }
.nc-cal-y-leg-today { color: var(--nc-cyan); }

.nc-cal-y-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .nc-cal-y-body {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nc-cal-y-body {
        grid-template-columns: 1fr;
    }
}

.nc-cal-y-month {
    background: #060612;
    border: 1px solid var(--nc-border);
    padding: 6px;
}

.nc-cal-y-month-label {
    text-align: center;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--nc-violet);
    margin-bottom: 4px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--nc-border);
}

.nc-cal-y-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.nc-cal-y-dayname {
    font-size: 8px;
    color: var(--nc-text);
    opacity: 0.4;
    text-align: center;
    padding: 2px 0;
}

.nc-cal-y-cell {
    font-size: 9px;
    color: var(--nc-text);
    text-align: center;
    padding: 3px 1px;
    position: relative;
    cursor: default;
    transition: background 0.3s ease;
}

.nc-cal-y-blank {
    visibility: hidden;
}

.nc-cal-y-today {
    color: var(--nc-cyan);
    font-weight: bold;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid var(--nc-cyan);
    animation: nc-cal-pulse 2s ease-in-out infinite;
}

@keyframes nc-cal-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(0, 255, 255, 0.2); }
    50%       { box-shadow: 0 0 12px rgba(0, 255, 255, 0.5); }
}

.nc-cal-y-done {
    background: rgba(0, 255, 170, 0.15);
    color: var(--nc-green);
}

.nc-cal-y-fail {
    background: rgba(255, 60, 95, 0.15);
    color: var(--nc-red);
}

.nc-cal-y-mixed {
    background: rgba(255, 215, 0, 0.15);
    color: var(--nc-gold);
}

.nc-cal-y-dot {
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
}


/* ═══════════════════════════════════════════════════
   VOICE MODE — REFINAMENTOS TECNOLÓGICOS
   (apenas CSS complementar, zero alteração de HTML/JS)
   ═══════════════════════════════════════════════════ */

/* Grid tecnológico sutil de fundo no modo voz */
.nc-voice-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

/* Círculo decorativo externo ao logo — sensação de radar */
.nc-voice-logo {
    position: relative;
}
.nc-voice-logo::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130%;
    height: 130%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
    animation: nc-voice-ring-slow 20s linear infinite;
}
.nc-voice-logo::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160%;
    height: 160%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(138,43,226,0.15);
    border-radius: 50%;
    pointer-events: none;
    animation: nc-voice-ring-reverse 40s linear infinite;
}

@keyframes nc-voice-ring-slow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes nc-voice-ring-reverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to   { transform: translate(-50%, -50%) rotate(0deg); }
}

/* Marcadores de coordenadas ao redor do logo */
.nc-voice-content {
    position: relative;
}
.nc-voice-content::before {
    content: "N";
    position: absolute;
    top: calc(50% - 200px);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0,255,255,0.35);
    font-family: var(--nc-font);
    font-size: 10px;
    letter-spacing: 0.3em;
    pointer-events: none;
    text-shadow: 0 0 6px rgba(0,255,255,0.4);
}
.nc-voice-content::after {
    content: "S";
    position: absolute;
    top: calc(50% + 180px);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0,255,255,0.35);
    font-family: var(--nc-font);
    font-size: 10px;
    letter-spacing: 0.3em;
    pointer-events: none;
    text-shadow: 0 0 6px rgba(0,255,255,0.4);
}

/* Ticker discreto na base — sensação de sistema vivo */
.nc-voice-stage {
    position: relative;
}
.nc-voice-stage > .nc-voice-canvas + .nc-voice-content::before,
.nc-voice-stage > .nc-voice-canvas + .nc-voice-content::after {
    z-index: 2;
}


/* ================================================
   VOICE DASHBOARD JARVIS v8
   Arquivo: nc_voice_dashboard.js
   APPEND ONLY — nao substituir bloco acima
   ================================================ */

#nc-voice-dashboard {
  position: fixed;
  inset: 0;
  pointer-events: none;
  font-family: 'Courier New', Courier, monospace;
  color: var(--nc-cyan);
  z-index: 5;
  display: none;
}

.nc-vd-panel {
  position: absolute;
  width: 200px;
  padding: 14px 16px;
  border: 1px solid var(--nc-border);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 12px rgba(0,255,255,0.15),
    inset 0 0 8px rgba(0,255,255,0.04);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

.nc-vd-panel h3 {
  margin: 0 0 8px 0;
  color: var(--nc-violet);
  font-size: 11px;
  letter-spacing: 2px;
  border-bottom: 1px solid var(--nc-border);
  padding-bottom: 4px;
}

.nc-vd-panel .top-left  { top: 80px;    left: 30px;  }
.nc-vd-panel .top-right { top: 80px;    right: 30px; }
.nc-vd-panel .bottom-left  { bottom: 60px; left: 30px;  }
.nc-vd-panel .bottom-right { bottom: 60px; right: 30px; }

#nc-voice-dashboard .top-left    { top: 80px;    left: 30px;  }
#nc-voice-dashboard .top-right   { top: 80px;    right: 30px; }
#nc-voice-dashboard .bottom-left  { bottom: 60px; left: 30px;  }
#nc-voice-dashboard .bottom-right { bottom: 60px; right: 30px; }

.vd-mission-item {
  color: var(--nc-text);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}


/* ESTADOS DINÂMICOS DO LOGO NECTARYON */
.nc-voice-logo.state-idle { filter: drop-shadow(0 0 15px var(--nc-cyan)); }
.nc-voice-logo.state-listening { filter: drop-shadow(0 0 25px var(--nc-green)); }
.nc-voice-logo.state-processing { filter: drop-shadow(0 0 25px var(--nc-purple)); }
.nc-voice-logo.state-speaking { filter: drop-shadow(0 0 25px var(--nc-gold)); }

.nc-voice-logo.state-listening .nc-voice-ring-slow { animation-duration: 5s; }
.nc-voice-logo.state-processing { animation: nc-pulse-fast 0.8s ease-in-out infinite; }

@keyframes nc-pulse-fast {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* ================================================
   TICKER INFERIOR MODO VOZ v8
   ================================================ */

.nc-vd-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 28px;
  background: rgba(0, 0, 0, 0.85);
  border-top: 1px solid var(--nc-border);
  overflow: hidden;
  pointer-events: none;
  z-index: 6;
  display: flex;
  align-items: center;
}

.nc-vd-ticker-inner {
  display: inline-block;
  white-space: nowrap;
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  color: var(--nc-cyan);
  letter-spacing: 1px;
  animation: nc-ticker-scroll 40s linear infinite;
  padding-left: 100%;
}

@keyframes nc-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ================================================
   HOLOGRAMA JARVIS v8 — ESTETICA SUPERIOR
   ================================================ */

.nc-vd-scanline {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--nc-cyan), transparent);
  opacity: 0.4;
  animation: nc-scanline-move 4s linear infinite;
  pointer-events: none;
  z-index: 6;
}

@keyframes nc-scanline-move {
  0%   { top: 0; }
  100% { top: 100vh; }
}

.nc-holo-border {
  border: 1px solid rgba(0,255,255,0.12);
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 20px rgba(0,255,255,0.08),
    inset 0 0 30px rgba(0,255,255,0.03),
    0 0 1px rgba(0,255,255,0.3);
  transition: box-shadow 0.3s ease;
}

.nc-holo-border:hover {
  box-shadow:
    0 0 30px rgba(0,255,255,0.15),
    inset 0 0 40px rgba(0,255,255,0.05),
    0 0 2px rgba(0,255,255,0.5);
}

.nc-holo-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--nc-cyan);
  border-style: solid;
  border-width: 0;
  opacity: 0.6;
}
.nc-holo-corner.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.nc-holo-corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.nc-holo-corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.nc-holo-corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.nc-vd-panel {
  position: absolute;
  width: 200px;
  padding: 14px 16px;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

.nc-vd-panel h3 {
  margin: 0 0 8px 0;
  color: var(--nc-violet);
  font-size: 10px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(138,43,226,0.5);
}

.nc-vd-big-text {
  font-size: 22px;
  color: var(--nc-cyan);
  text-shadow: 0 0 15px rgba(0,255,255,0.6);
  letter-spacing: 3px;
}

.nc-vd-dim {
  color: rgba(200,218,240,0.4);
  font-size: 9px;
  letter-spacing: 1px;
}

.nc-vd-status-on {
  color: var(--nc-green);
  text-shadow: 0 0 10px rgba(0,255,170,0.5);
}

.nc-vd-top-left     { top: 80px;    left: 30px;  }
.nc-vd-top-right    { top: 80px;    right: 30px; }
.nc-vd-bottom-left  { bottom: 70px; left: 30px;  }
.nc-vd-bottom-right { bottom: 70px; right: 30px; }

.nc-vd-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 28px;
  background: rgba(0,0,0,0.9);
  border-top: 1px solid rgba(0,255,255,0.15);
  overflow: hidden;
  pointer-events: none;
  z-index: 6;
  display: flex;
  align-items: center;
}

.nc-vd-ticker-inner {
  display: inline-block;
  white-space: nowrap;
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  color: rgba(0,255,255,0.6);
  letter-spacing: 1px;
  animation: nc-ticker-scroll 45s linear infinite;
  padding-left: 100%;
  text-shadow: 0 0 6px rgba(0,255,255,0.3);
}

@keyframes nc-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ==========================================
   NEURAL GRID DASHBOARD v9 — Substitui HUD antigo
   ========================================== */
#nc-neural-grid {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 120px;
  z-index: 5;
  pointer-events: none;
  display: none;
  overflow: hidden;
}

#ngrid-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(85vw, 500px);
  height: min(85vw, 500px);
  opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.35));
}

.ngrid-scanline {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00FFFF, transparent);
  animation: ngridScan 4s linear infinite;
  opacity: 0.6;
}

@keyframes ngridScan {
  0% { transform: translateY(0); }
  100% { transform: translateY(calc(100vh - 200px)); }
}

.ngrid-node {
  filter: drop-shadow(0 0 3px currentColor);
  animation: ngridNodePulse 2.2s ease-in-out infinite;
}

@keyframes ngridNodePulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.ngrid-pulse {
  animation: ngridPulseExpand 1.4s ease-out forwards;
}

@keyframes ngridPulseExpand {
  0% { r: 2; opacity: 1; stroke-width: 1.5; }
  100% { r: 24; opacity: 0; stroke-width: 0.3; }
}

.ngrid-status {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-family: 'Courier New', monospace;
  color: #00FFFF;
  font-size: 11px;
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.6);
  line-height: 1.6;
  padding: 8px 12px;
  border: 1px solid rgba(0, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

.ngrid-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 140px;
}

.ngrid-label {
  color: #8A2BE2;
  text-shadow: 0 0 4px rgba(138, 43, 226, 0.7);
}

.ngrid-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid #00FFFF;
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.5);
}
.ngrid-corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.ngrid-corner.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.ngrid-corner.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.ngrid-corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

/* Mobile ajustes */
@media (max-width: 600px) {
  #nc-neural-grid {
    top: 50px;
    bottom: 100px;
  }
  #ngrid-svg {
    width: 92vw;
    height: 92vw;
  }
  .ngrid-status {
    font-size: 10px;
    bottom: 12px;
    right: 12px;
    min-width: 110px;
  }
  .ngrid-line { min-width: 110px; }
  .ngrid-corner { width: 18px; height: 18px; }
}

/* Ocultar dashboard antigo se ainda existir */
#nc-voice-dashboard { display: none !important; }
