/* ==========================================================================
   🎨 1. RESET GLOBAL & BASE (Wellness/Nova Theme)
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    background-image: url("recursos/fondo/fondopc.jpg");
    background-size: cover;
    background-position: center;
    color: #e0dfff;
    overflow: hidden; 
    user-select: none;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   ✨ 1b. KEYFRAMES — ANIMACIONES GLOBALES
   ========================================================================== */
@keyframes msgSlideInNova {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes msgSlideInUser {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes orbFadeIn {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 30px rgba(169,102,255,0.05); }
    50% { box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 30px rgba(169,102,255,0.05), 0 0 30px rgba(0,242,254,0.12); }
}

@keyframes particleWander {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    8%   { opacity: var(--p-opacity, 0.55); }
    50%  { transform: translateY(var(--dy-mid, -80px)) translateX(var(--dx-mid, 30px)) scale(1.1); }
    92%  { opacity: var(--p-opacity, 0.55); }
    100% { transform: translateY(var(--dy, -160px)) translateX(var(--dx, 50px)) scale(0.6); opacity: 0; }
}

@keyframes particleOrbit {
    from { transform: rotate(0deg) translateX(var(--orbit-r, 150px)) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(var(--orbit-r, 150px)) rotate(-360deg); }
}

@keyframes particlePulse {
    0%, 100% { transform: scale(1); opacity: var(--p-opacity, 0.5); box-shadow: 0 0 8px var(--glow-color, rgba(0,242,254,0.3)); }
    50%      { transform: scale(2.5); opacity: calc(var(--p-opacity, 0.5) * 1.5); box-shadow: 0 0 20px var(--glow-color, rgba(0,242,254,0.6)); }
}

@keyframes miniOrbBreath {
    0%   { transform: scale(1);    filter: hue-rotate(0deg);   }
    25%  { transform: scale(1.15); filter: hue-rotate(30deg);  }
    50%  { transform: scale(0.95); filter: hue-rotate(60deg);  }
    75%  { transform: scale(1.1);  filter: hue-rotate(30deg);  }
    100% { transform: scale(1);    filter: hue-rotate(0deg);   }
}

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

@keyframes particleAlive {
    0%   { filter: hue-rotate(0deg)   brightness(1);   }
    25%  { filter: hue-rotate(40deg)  brightness(1.1); }
    50%  { filter: hue-rotate(80deg)  brightness(0.9); }
    75%  { filter: hue-rotate(40deg)  brightness(1.05);}
    100% { filter: hue-rotate(0deg)   brightness(1);   }
}

@keyframes nebulaDrift {
    0%   { transform: translate(0, 0) scale(1);     opacity: 0.12; }
    33%  { transform: translate(30px, -20px) scale(1.05); opacity: 0.18; }
    66%  { transform: translate(-20px, 15px) scale(0.97); opacity: 0.14; }
    100% { transform: translate(0, 0) scale(1);     opacity: 0.12; }
}

@keyframes auroraSweep {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

@keyframes sendPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0.4); }
    50%      { box-shadow: 0 0 20px 4px rgba(168,85,247,0.25); }
}

@keyframes sendMorph {
    0%   { transform: scale(1) rotate(0deg); }
    50%  { transform: scale(1.15) rotate(180deg); background: rgba(0,242,254,0.4); }
    100% { transform: scale(1) rotate(360deg); }
}

@keyframes cosmicRipple {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 0.6; border-width: 3px; }
    100% { transform: translate(-50%, -50%) scale(4); opacity: 0; border-width: 1px; }
}

@keyframes typingBreathe {
    0%, 100% { transform: scale(1); opacity: 0.4; background: rgba(0,242,254,0.6); }
    50%      { transform: scale(1.4); opacity: 1; background: rgba(169,102,255,0.8); }
}

@keyframes messageAura {
    0%   { transform: scale(0.8); opacity: 0; box-shadow: 0 0 30px rgba(0,242,254,0.4); }
    60%  { transform: scale(1.02); opacity: 1; box-shadow: 0 0 20px rgba(0,242,254,0.2); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
}

@keyframes avatarFlash {
    0%   { box-shadow: 0 0 0 0 rgba(0,242,254,0.5); }
    50%  { box-shadow: 0 0 15px 5px rgba(0,242,254,0.3); }
    100% { box-shadow: 0 0 0 0 rgba(0,242,254,0); }
}

@keyframes btnShimmer {
    0%   { left: -100%; }
    100% { left: 200%; }
}

@keyframes chatFlash {
    0%   { box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 30px rgba(169,102,255,0.05), 0 0 40px rgba(0,242,254,0.2); }
    100% { box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 30px rgba(169,102,255,0.05), 0 0 0 rgba(0,242,254,0); }
}

@keyframes ambientGlow {
    0%, 100% { box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 30px rgba(169,102,255,0.05), 0 0 25px rgba(0,242,254,0.05); }
    50%      { box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 30px rgba(169,102,255,0.05), 0 0 35px rgba(0,242,254,0.15); }
}

/* ==========================================================================
   布局 2. LAYOUT PRINCIPAL CONTENEDOR
   ========================================================================== */
.nova-container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* ==========================================================================
   🚀 3. SIDEBAR (Navegación Lateral Izquierda - CORREGIDO MARGENES)
   ========================================================================== */
.menu-list { /* Ajustado al nombre de clase que usas en tu HTML */
    width: 280px;
    height: 100%;
    flex-shrink: 0; 
    padding: 40px 24px; /* Más aire arriba y a los lados para despegar del borde */
    background: rgba(10, 12, 22, 0.45); /* Más translúcido para fundirse con el fondo cósmico */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-right: 1px solid rgba(169, 102, 255, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    animation: fadeSlideLeft 0.6s ease-out both;
}

/* Título NOVA emparejado e imponente */
.menu-list h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(169, 102, 255, 0.6);
    margin-bottom: 8px;
    padding-left: 4px;
}

.menu-list p {
    font-size: 13px;
    color: rgba(200, 190, 255, 0.7);
    margin-bottom: 35px;
    padding-left: 4px;
    line-height: 1.4;
}

/* Botones del Sidebar */
.nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.nova-section {
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #c0b2ff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nova-section i {
    color: #a855f7;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
}

.nova-section.active {
    background: rgba(168, 85, 247, 0.15);
    color: white;
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 20px rgba(169, 102, 255, 0.25);
}

.nova-section .arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
    color: rgba(169, 102, 255, 0.6);
}

.nova-section.active .arrow {
    transform: rotate(180deg);
    color: #a855f7;
}

.nova-section:hover {
    background: rgba(168, 85, 247, 0.15);
    color: white;
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateX(4px);
    box-shadow: 0 0 20px rgba(169, 102, 255, 0.25);
}

/* Submenú */
.submenu {
    margin-top: 0;
    margin-left: 20px;
    padding-left: 12px;
    border-left: 1px solid rgba(169, 102, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.submenu.active {
    max-height: 300px;
    opacity: 1;
    margin-top: 4px;
}

.submenu button {
    height: 34px;
    border: 0;
    background: none;
    color: rgba(220, 210, 255, 0.65);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    padding-left: 8px;
    transition: all 0.2s ease;
}

.submenu button:hover {
    color: #00f2fe;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
    transform: translateX(2px);
}

/* Scrollbar Sidebar */
.menu-list::-webkit-scrollbar { width: 4px; }
.menu-list::-webkit-scrollbar-thumb { background: rgba(169, 102, 255, 0.2); border-radius: 10px; }

/* ==========================================================================
   ✨ 5g. SIDEBAR HOVER GLOW
   ========================================================================== */
.submenu button {
    position: relative;
    overflow: hidden;
}

.submenu button::before {
    content: '';
    position: absolute;
    top: 0; left: var(--mx, 50%);
    width: 60px; height: 100%;
    background: radial-gradient(circle, rgba(0,242,254,0.15) 0%, transparent 70%);
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.submenu button:hover::before {
    opacity: 1;
}

/* ==========================================================================
   ⭐ NOVA RECOMMENDATION CARD
   ========================================================================== */
.nova-recommendation {
    background: rgba(168, 85, 247, 0.08) !important;
    border: 1px solid rgba(169, 102, 255, 0.25) !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nova-recommendation__name {
    font-size: 1rem;
    font-weight: 700;
    color: #e0d4ff;
}

.nova-recommendation__desc {
    font-size: 0.85rem;
    color: rgba(200, 190, 255, 0.7);
    line-height: 1.5;
}

.nova-recommendation__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 20px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 12px;
    color: #c0b2ff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
}

.nova-recommendation__btn:hover {
    background: rgba(168, 85, 247, 0.35);
    color: #00f2fe;
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 20px rgba(169, 102, 255, 0.3), 0 0 40px rgba(0, 242, 254, 0.1);
    transform: translateX(4px);
}

/* ==========================================================================
   📝 NOVA MARKDOWN STYLES
   ========================================================================== */
.nova-msg strong {
    color: #ffffff;
    font-weight: 700;
}

.nova-msg em {
    color: #00f2fe;
    font-style: italic;
}

.nova-msg code {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(169, 102, 255, 0.2);
    border-radius: 6px;
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #e0d4ff;
}

.nova-msg pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(169, 102, 255, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 8px 0;
    overflow-x: auto;
}

.nova-msg pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.82rem;
    line-height: 1.5;
}

.nova-msg a {
    color: #00f2fe;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 242, 254, 0.3);
    transition: all 0.2s ease;
}

.nova-msg a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

.nova-msg ul {
    list-style: none;
    padding-left: 16px;
    margin: 6px 0;
}

.nova-msg li {
    position: relative;
    padding-left: 14px;
    margin: 3px 0;
    line-height: 1.5;
}

.nova-msg li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #a855f7;
    font-weight: bold;
}

/* ==========================================================================
   ✨ 4. LIENZO DE EXPLORACIÓN (Reemplaza el chat-container)
   ========================================================================== */
.exploration-canvas {
    flex: 1;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 30px;
    animation: fadeSlideUp 0.8s ease-out 0.1s both;
}

.canvas-header {
    text-align: center;
    animation: fadeSlideUp 0.8s ease-out 0.3s both;
}

.canvas-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 25px rgba(169, 102, 255, 0.5);
    margin-bottom: 8px;
}

.canvas-header p {
    font-size: 1rem;
    color: rgba(200, 190, 255, 0.7);
    max-width: 450px;
}

.prompt-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 700px;
    animation: fadeSlideUp 0.8s ease-out 0.5s both;
}

.prompt-card {
    padding: 24px;
    background: rgba(10, 12, 28, 0.4);
    border: 1px solid rgba(169, 102, 255, 0.2);
    border-radius: 18px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.prompt-card:hover {
    transform: translateY(-4px);
    background: rgba(10, 12, 28, 0.6);
    border-color: rgba(169, 102, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 40px rgba(169, 102, 255, 0.1);
}

.prompt-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #e0d4ff;
    margin-bottom: 6px;
}

.prompt-card p {
    font-size: 0.85rem;
    color: rgba(200, 190, 255, 0.6);
    line-height: 1.5;
}

/* ==========================================================================
   💻 4. CONTENIDO PRINCIPAL (Centrado Absoluto del Chat)
   ========================================================================== */
.main-content {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* 🔥 CENTRA TODO SU CONTENIDO HORIZONTALMENTE */
    padding: 40px;
    overflow: hidden;
    position: relative;
}

/* Mensajería e Interfaz */
.message {
    max-width: 75%;
    padding: 15px 20px;
    border-radius: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* NOVA (Izquierda) */
.nova-msg {
    background: rgba(0, 180, 255, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: #d1f2ff;
    border-bottom-left-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

/* USUARIO (Derecha) */
.user-msg {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #f3efff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.05);
}

/* ==========================================================================
   💬 4b. AVATARES EN MENSAJES
   ========================================================================== */
.msg-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 100%;
}

.msg-row--nova {
    flex-direction: row;
    align-self: flex-start;
}

.msg-row--user {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(169, 102, 255, 0.3);
    box-shadow: 0 0 10px rgba(169, 102, 255, 0.2);
}

.msg-avatar--user {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.25);
    color: #c0b2ff;
    font-size: 14px;
}

/* ==========================================================================
   💫 4c. ANIMACIONES DE ENTRADA DE MENSAJES
   ========================================================================== */
.msg-row--nova {
    animation: msgSlideInNova 0.3s ease-out both;
}

.msg-row--user {
    animation: msgSlideInUser 0.3s ease-out both;
}

/* ==========================================================================
   💫 4d. GLOW REACTIVO DEL CHAT CONTAINER
   ========================================================================== */
.chat-container--speaking {
    border-color: rgba(0, 242, 254, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                inset 0 0 30px rgba(169, 102, 255, 0.05),
                0 0 25px rgba(0, 242, 254, 0.1);
    transition: border-color 0.8s ease, box-shadow 0.8s ease;
}

.chat-container--new-msg {
    animation: glowPulse 0.6s ease-out;
}

/* ==========================================================================
   ⌨️ 5. INTERACCIÓN (Caja de Texto Inferior)
   ========================================================================== */
.prompt-area {
    width: 100%;
    max-width: 850px; /* Alineado exactamente con el ancho del chat */
    padding: 20px;
    background: rgba(8, 9, 18, 0.6);
    border-radius: 24px;
    border: 1px solid rgba(169, 102, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-shrink: 0;
    animation: fadeSlideUp 0.6s ease-out 0.3s both;
}

.chat-input-box { /* Ajustado al div real de tu HTML */
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    position: relative;
}

#prompt-input {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(169, 102, 255, 0.2);
    padding: 16px 20px;
    border-radius: 16px;
    outline: none;
    flex: 1;
    font-size: 1rem;
    transition: all 0.3s;
}
#prompt-input:focus {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
    background-image: linear-gradient(rgba(10,12,28,0.9), rgba(10,12,28,0.9)),
                      linear-gradient(90deg, rgba(0,242,254,0.4) 0%, rgba(169,102,255,0.4) 50%, rgba(0,242,254,0.4) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 200% 100%;
    animation: inputShimmer 3s linear infinite;
}
#prompt-input::placeholder { color: rgba(255, 255, 255, 0.35); }

.input-shimmer-active::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,242,254,0.15), transparent);
    animation: inputShimmer 2s ease-in-out infinite;
    pointer-events: none;
}

#send-button {
    background: rgba(168, 85, 247, 0.2);
    color: white;
    border: 1px solid rgba(168, 85, 247, 0.4);
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#send-button:hover {
    background: rgba(168, 85, 247, 0.35);
    border-color: rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.4);
}
#send-button:active { transform: scale(0.95); }
#send-button * { pointer-events: none; }

#prompt-input:focus-visible,
#send-button:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.8);
    outline-offset: 2px;
}

#send-button.has-text {
    animation: sendPulse 1.5s ease-in-out infinite;
    border-color: rgba(169, 102, 255, 0.6);
}

#send-button.send-morph {
    animation: sendMorph 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 242, 254, 0.4) !important;
}

/* ==========================================================================
   🎯 BOTONES RÁPIDOS INTERACTIVOS
   ========================================================================== */
.prompt-controls {
    display: flex;
    justify-content: flex-start;
    margin-top: 14px;
    gap: 10px;
    flex-wrap: wrap;
}

.prompt-button {
    background: rgba(169, 102, 255, 0.06);
    color: #c0b2ff;
    border: 1px solid rgba(169, 102, 255, 0.2);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
}

.prompt-button:hover {
    background: rgba(169, 102, 255, 0.18);
    color: #ffffff;
    border-color: rgba(169, 102, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(169, 102, 255, 0.2);
}

.prompt-button:active { transform: scale(0.97); }

.prompt-button::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,242,254,0.2), transparent);
    border-radius: 20px;
    animation: btnShimmer 5s ease-in-out infinite;
}
.prompt-button { position: relative; overflow: hidden; }

/* ==========================================================================
   🔒 5b. ESTADO DISABLED (Mientras Nova piensa)
   ========================================================================== */
.is-disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(0.3);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* ==========================================================================
   📡 5c. CHAT FLASH + AMBIENT GLOW
   ========================================================================== */
.chat-flash {
    animation: chatFlash 0.6s ease-out;
}

.chat-thinking {
    animation: ambientGlow 2.5s ease-in-out infinite;
}

/* ==========================================================================
   💬 5d. TYPING INDICATOR (Reemplaza "Nova está pensando...")
   ========================================================================== */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    background: rgba(0, 180, 255, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 20px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.6);
    animation: typingBreathe 1.5s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.3s; }
.typing-dot:nth-child(3) { animation-delay: 0.6s; }

/* ==========================================================================
   🌊 5e. COSMIC RIPPLE (Desde orb hacia chat)
   ========================================================================== */
#nova-avatar {
    position: relative;
}

.cosmic-ripple {
    position: absolute;
    top: 50%; left: 50%;
    width: 100px; height: 100px;
    border: 2px solid rgba(0, 242, 254, 0.5);
    border-radius: 50%;
    animation: cosmicRipple 0.8s ease-out forwards;
    pointer-events: none;
    z-index: 100;
}

/* ==========================================================================
   ✨ 5f. MESSAGE AURA + AVATAR PULSE
   ========================================================================== */
.message-aura {
    animation: messageAura 0.6s ease-out;
}

.msg-row--nova .msg-avatar-aura {
    animation: avatarFlash 0.8s ease-out;
}

/* ==========================================================================
   🌌 7. COSMIC LAYERS — Nebulas + Starfield + Aurora + Vignette
   ========================================================================== */

/* --- Cosmic Vignette: oscurece bordes, enfoca centro --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
}

/* --- Aurora Sweep: ola de color sutil que cruza el fondo --- */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0,242,254,0.04) 20%,
        rgba(169,102,255,0.06) 40%,
        rgba(142,45,226,0.04) 60%,
        transparent 80%
    );
    animation: auroraSweep 35s linear infinite;
}

/* --- Star Field: ~80 estrellas estáticas con box-shadow --- */
.bg-starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-starfield::before,
.bg-starfield::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 1px;
    border-radius: 50%;
}

.bg-starfield::before {
    box-shadow:
        42px 18px 0 0 rgba(255,255,255,0.7),
        180px 45px 0 0 rgba(200,220,255,0.5),
        320px 82px 0 0 rgba(255,255,255,0.6),
        490px 30px 0 0 rgba(180,200,255,0.4),
        650px 68px 0 0 rgba(255,255,255,0.5),
        780px 15px 0 0 rgba(200,220,255,0.6),
        920px 55px 0 0 rgba(255,255,255,0.4),
        1050px 28px 0 0 rgba(180,200,255,0.5),
        1200px 72px 0 0 rgba(255,255,255,0.6),
        1350px 40px 0 0 rgba(200,220,255,0.4),
        1500px 12px 0 0 rgba(255,255,255,0.5),
        1650px 60px 0 0 rgba(180,200,255,0.6),
        85px 120px 0 0 rgba(255,255,255,0.5),
        230px 155px 0 0 rgba(200,220,255,0.4),
        410px 188px 0 0 rgba(255,255,255,0.6),
        570px 135px 0 0 rgba(180,200,255,0.5),
        720px 170px 0 0 rgba(255,255,255,0.4),
        880px 142px 0 0 rgba(200,220,255,0.6),
        1020px 165px 0 0 rgba(255,255,255,0.5),
        1180px 128px 0 0 rgba(180,200,255,0.4),
        1340px 158px 0 0 rgba(255,255,255,0.6),
        1490px 140px 0 0 rgba(200,220,255,0.5),
        1620px 175px 0 0 rgba(255,255,255,0.4),
        60px 250px 0 0 rgba(255,255,255,0.6),
        195px 285px 0 0 rgba(180,200,255,0.5),
        370px 262px 0 0 rgba(255,255,255,0.4),
        530px 298px 0 0 rgba(200,220,255,0.6),
        690px 245px 0 0 rgba(255,255,255,0.5),
        850px 278px 0 0 rgba(180,200,255,0.4),
        1010px 255px 0 0 rgba(255,255,255,0.6),
        1160px 290px 0 0 rgba(200,220,255,0.5),
        1320px 268px 0 0 rgba(255,255,255,0.4),
        1480px 282px 0 0 rgba(180,200,255,0.6),
        1600px 250px 0 0 rgba(255,255,255,0.5),
        110px 380px 0 0 rgba(255,255,255,0.5),
        280px 410px 0 0 rgba(200,220,255,0.6),
        440px 365px 0 0 rgba(255,255,255,0.4),
        600px 400px 0 0 rgba(180,200,255,0.5),
        760px 375px 0 0 rgba(255,255,255,0.6),
        930px 405px 0 0 rgba(200,220,255,0.4);
}

.bg-starfield::after {
    box-shadow:
        55px 480px 0 0 rgba(255,255,255,0.5),
        220px 520px 0 0 rgba(180,200,255,0.6),
        390px 495px 0 0 rgba(255,255,255,0.4),
        560px 530px 0 0 rgba(200,220,255,0.5),
        710px 488px 0 0 rgba(255,255,255,0.6),
        870px 515px 0 0 rgba(180,200,255,0.4),
        1030px 478px 0 0 rgba(255,255,255,0.5),
        1190px 510px 0 0 rgba(200,220,255,0.6),
        1350px 485px 0 0 rgba(255,255,255,0.4),
        1510px 525px 0 0 rgba(180,200,255,0.5),
        75px 600px 0 0 rgba(255,255,255,0.6),
        240px 640px 0 0 rgba(200,220,255,0.4),
        420px 615px 0 0 rgba(255,255,255,0.5),
        580px 650px 0 0 rgba(180,200,255,0.6),
        740px 608px 0 0 rgba(255,255,255,0.4),
        900px 638px 0 0 rgba(200,220,255,0.5),
        1060px 605px 0 0 rgba(255,255,255,0.6),
        1220px 642px 0 0 rgba(180,200,255,0.4),
        1380px 620px 0 0 rgba(255,255,255,0.5),
        1540px 648px 0 0 rgba(200,220,255,0.6),
        130px 730px 0 0 rgba(255,255,255,0.5),
        310px 760px 0 0 rgba(180,200,255,0.4),
        480px 718px 0 0 rgba(255,255,255,0.6),
        660px 755px 0 0 rgba(200,220,255,0.5),
        830px 725px 0 0 rgba(255,255,255,0.4),
        990px 750px 0 0 rgba(180,200,255,0.6),
        1150px 735px 0 0 rgba(255,255,255,0.5),
        1310px 762px 0 0 rgba(200,220,255,0.4),
        1470px 720px 0 0 rgba(255,255,255,0.6),
        1600px 748px 0 0 rgba(180,200,255,0.5),
        95px 850px 0 0 rgba(255,255,255,0.4),
        265px 885px 0 0 rgba(200,220,255,0.6),
        435px 845px 0 0 rgba(255,255,255,0.5),
        610px 878px 0 0 rgba(180,200,255,0.4),
        775px 855px 0 0 rgba(255,255,255,0.6),
        945px 880px 0 0 rgba(200,220,255,0.5),
        1105px 848px 0 0 rgba(255,255,255,0.4),
        1265px 875px 0 0 rgba(180,200,255,0.6),
        1435px 858px 0 0 rgba(255,255,255,0.5);
}

/* --- Nebulas: 3 nubes difusas que derivan lentamente --- */
.bg-nebulas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: nebulaDrift ease-in-out infinite;
}

.bg-nebula--cyan {
    width: 500px;
    height: 500px;
    top: 10%;
    left: 5%;
    background: radial-gradient(circle, rgba(0,242,254,0.15) 0%, rgba(0,242,254,0.05) 40%, transparent 70%);
    animation-duration: 75s;
    animation-delay: 0s;
}

.bg-nebula--purple {
    width: 600px;
    height: 600px;
    top: 40%;
    right: 5%;
    background: radial-gradient(circle, rgba(169,102,255,0.12) 0%, rgba(142,45,226,0.04) 40%, transparent 70%);
    animation-duration: 85s;
    animation-delay: -20s;
}

.bg-nebula--deep {
    width: 450px;
    height: 450px;
    bottom: 15%;
    left: 35%;
    background: radial-gradient(circle, rgba(100,60,180,0.1) 0%, rgba(60,20,120,0.03) 40%, transparent 70%);
    animation-duration: 90s;
    animation-delay: -40s;
}

/* ==========================================================================
   🌌 8. BACKGROUND PARTICLES — CAMPO CÓSMICO DENSO
   ========================================================================== */
.bg-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-particle {
    position: absolute;
    border-radius: 50%;
}

/* --- WANDER: partículas con trayectoria curva/orgánica --- */
.bg-particle--wander {
    animation: particleWander linear infinite;
}

/* --- ORBIT: partículas en movimiento circular horario --- */
.bg-particle--orbit {
    animation: particleOrbit linear infinite;
}

/* --- PULSE: partículas que respiran con glow --- */
.bg-particle--pulse {
    animation: particlePulse ease-in-out infinite;
}

/* --- MINI ORB: seres vivos con anillo y halo --- */
.bg-particle--mini-orb {
    position: relative;
    z-index: 1;
}

.bg-particle--mini-orb::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: miniOrbitRing 6s linear infinite;
}

.bg-particle--mini-orb::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* --- ALIVE: hue-rotate + brightness para las 40 restantes --- */
.bg-particle--wander:not(.bg-particle--mini-orb) {
    animation: particleWander linear infinite,
               particleAlive var(--alive-dur, 24s) ease-in-out infinite;
}

.bg-particle--orbit:not(.bg-particle--mini-orb) {
    animation: particleOrbit linear infinite,
               particleAlive var(--alive-dur, 28s) ease-in-out infinite;
}

.bg-particle--pulse:not(.bg-particle--mini-orb) {
    animation: particlePulse ease-in-out infinite,
               particleAlive var(--alive-dur, 20s) ease-in-out infinite;
}

/* ===================== MINI ORBS × 10 (seres vivos) ===================== */

/* Wander #4 — cyan 8px */
.bg-particle--wander:nth-child(4).bg-particle--mini-orb {
    background: radial-gradient(circle, rgba(0,242,254,0.9) 0%, rgba(0,242,254,0.4) 40%, transparent 70%);
    animation: particleWander 26s linear -1s infinite, miniOrbBreath 4s ease-in-out infinite;
}
.bg-particle--wander:nth-child(4).bg-particle--mini-orb::before {
    border-color: rgba(0,242,254,0.35);
    animation: miniOrbitRing 6s linear infinite;
}
.bg-particle--wander:nth-child(4).bg-particle--mini-orb::after {
    background: radial-gradient(circle, rgba(0,242,254,0.15) 0%, transparent 70%);
}

/* Wander #8 — purple 8px */
.bg-particle--wander:nth-child(8).bg-particle--mini-orb {
    background: radial-gradient(circle, rgba(169,102,255,0.9) 0%, rgba(169,102,255,0.4) 40%, transparent 70%);
    animation: particleWander 27s linear -6s infinite, miniOrbBreath 4.5s ease-in-out infinite;
}
.bg-particle--wander:nth-child(8).bg-particle--mini-orb::before {
    border-color: rgba(169,102,255,0.35);
    animation: miniOrbitRing 5s linear infinite;
}
.bg-particle--wander:nth-child(8).bg-particle--mini-orb::after {
    background: radial-gradient(circle, rgba(169,102,255,0.15) 0%, transparent 70%);
}

/* Wander #14 — purple 8px */
.bg-particle--wander:nth-child(14).bg-particle--mini-orb {
    background: radial-gradient(circle, rgba(169,102,255,0.9) 0%, rgba(169,102,255,0.4) 40%, transparent 70%);
    animation: particleWander 23s linear -1s infinite, miniOrbBreath 3.5s ease-in-out infinite;
}
.bg-particle--wander:nth-child(14).bg-particle--mini-orb::before {
    border-color: rgba(169,102,255,0.35);
    animation: miniOrbitRing 7s linear infinite;
}
.bg-particle--wander:nth-child(14).bg-particle--mini-orb::after {
    background: radial-gradient(circle, rgba(169,102,255,0.15) 0%, transparent 70%);
}

/* Wander #19 — cyan 8px */
.bg-particle--wander:nth-child(19).bg-particle--mini-orb {
    background: radial-gradient(circle, rgba(0,242,254,0.9) 0%, rgba(0,242,254,0.4) 40%, transparent 70%);
    animation: particleWander 24s linear -4s infinite, miniOrbBreath 4s ease-in-out infinite;
}
.bg-particle--wander:nth-child(19).bg-particle--mini-orb::before {
    border-color: rgba(0,242,254,0.35);
    animation: miniOrbitRing 8s linear infinite;
}
.bg-particle--wander:nth-child(19).bg-particle--mini-orb::after {
    background: radial-gradient(circle, rgba(0,242,254,0.15) 0%, transparent 70%);
}

/* Orbit #23 — white 10px */
.bg-particle--orbit:nth-child(23).bg-particle--mini-orb {
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 40%, transparent 70%);
    animation: particleOrbit 28s linear -2s infinite, miniOrbBreath 4s ease-in-out infinite;
}
.bg-particle--orbit:nth-child(23).bg-particle--mini-orb::before {
    border-color: rgba(255,255,255,0.35);
    animation: miniOrbitRing 5s linear infinite;
}
.bg-particle--orbit:nth-child(23).bg-particle--mini-orb::after {
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
}

/* Orbit #29 — white 10px */
.bg-particle--orbit:nth-child(29).bg-particle--mini-orb {
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 40%, transparent 70%);
    animation: particleOrbit 26s linear -4s infinite, miniOrbBreath 4.5s ease-in-out infinite;
}
.bg-particle--orbit:nth-child(29).bg-particle--mini-orb::before {
    border-color: rgba(255,255,255,0.35);
    animation: miniOrbitRing 6s linear infinite;
}
.bg-particle--orbit:nth-child(29).bg-particle--mini-orb::after {
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
}

/* Orbit #35 — white 10px */
.bg-particle--orbit:nth-child(35).bg-particle--mini-orb {
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 40%, transparent 70%);
    animation: particleOrbit 36s linear -8s infinite, miniOrbBreath 3.5s ease-in-out infinite;
}
.bg-particle--orbit:nth-child(35).bg-particle--mini-orb::before {
    border-color: rgba(255,255,255,0.35);
    animation: miniOrbitRing 7s linear infinite;
}
.bg-particle--orbit:nth-child(35).bg-particle--mini-orb::after {
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
}

/* Pulse #44 — cyan 12px */
.bg-particle--pulse:nth-child(44).bg-particle--mini-orb {
    background: radial-gradient(circle, rgba(0,242,254,0.9) 0%, rgba(0,242,254,0.4) 40%, transparent 70%);
    animation: particlePulse 9s ease-in-out -1s infinite, miniOrbBreath 4s ease-in-out infinite;
}
.bg-particle--pulse:nth-child(44).bg-particle--mini-orb::before {
    border-color: rgba(0,242,254,0.35);
    animation: miniOrbitRing 5s linear infinite;
}
.bg-particle--pulse:nth-child(44).bg-particle--mini-orb::after {
    background: radial-gradient(circle, rgba(0,242,254,0.15) 0%, transparent 70%);
}

/* Pulse #47 — cyan 12px */
.bg-particle--pulse:nth-child(47).bg-particle--mini-orb {
    background: radial-gradient(circle, rgba(0,242,254,0.9) 0%, rgba(0,242,254,0.4) 40%, transparent 70%);
    animation: particlePulse 8.5s ease-in-out -2s infinite, miniOrbBreath 4.5s ease-in-out infinite;
}
.bg-particle--pulse:nth-child(47).bg-particle--mini-orb::before {
    border-color: rgba(0,242,254,0.35);
    animation: miniOrbitRing 8s linear infinite;
}
.bg-particle--pulse:nth-child(47).bg-particle--mini-orb::after {
    background: radial-gradient(circle, rgba(0,242,254,0.15) 0%, transparent 70%);
}

/* Pulse #50 — cyan 12px */
.bg-particle--pulse:nth-child(50).bg-particle--mini-orb {
    background: radial-gradient(circle, rgba(0,242,254,0.9) 0%, rgba(0,242,254,0.4) 40%, transparent 70%);
    animation: particlePulse 9s ease-in-out -3s infinite, miniOrbBreath 3.5s ease-in-out infinite;
}
.bg-particle--pulse:nth-child(50).bg-particle--mini-orb::before {
    border-color: rgba(0,242,254,0.35);
    animation: miniOrbitRing 6s linear infinite;
}
.bg-particle--pulse:nth-child(50).bg-particle--mini-orb::after {
    background: radial-gradient(circle, rgba(0,242,254,0.15) 0%, transparent 70%);
}

/* ===================== WANDER × 20 (curva orgánica) ===================== */
.bg-particle--wander:nth-child(1)  { left:  5%; top: 12%; width: 6px; height: 6px; --dx: 35px; --dy: -160px; --dx-mid: 15px; --dy-mid: -80px; --p-opacity: 0.6; --alive-dur: 22s; animation-duration: 20s; animation-delay: 0s; background: rgba(0,242,254,0.7); box-shadow: 0 0 10px rgba(0,242,254,0.5); }
.bg-particle--wander:nth-child(2)  { left: 18%; top: 48%; width: 7px; height: 7px; --dx: -22px; --dy: -185px; --dx-mid: -10px; --dy-mid: -95px; --p-opacity: 0.55; --alive-dur: 26s; animation-duration: 24s; animation-delay: -3s; background: rgba(169,102,255,0.65); box-shadow: 0 0 12px rgba(169,102,255,0.5); }
.bg-particle--wander:nth-child(3)  { left: 32%; top: 78%; width: 5px; height: 5px; --dx: 45px; --dy: -200px; --dx-mid: 22px; --dy-mid: -100px; --p-opacity: 0.5; --alive-dur: 20s; animation-duration: 22s; animation-delay: -7s; background: rgba(255,255,255,0.55); box-shadow: 0 0 8px rgba(255,255,255,0.4); }
.bg-particle--wander:nth-child(4)  { left: 48%; top: 22%; width: 8px; height: 8px; --dx: -38px; --dy: -170px; --dx-mid: -18px; --dy-mid: -85px; --p-opacity: 0.65; animation-duration: 26s; animation-delay: -1s; background: rgba(0,242,254,0.6); box-shadow: 0 0 14px rgba(0,242,254,0.5); }
.bg-particle--wander:nth-child(5)  { left: 62%; top: 65%; width: 6px; height: 6px; --dx: 28px; --dy: -190px; --dx-mid: 12px; --dy-mid: -95px; --p-opacity: 0.55; --alive-dur: 24s; animation-duration: 23s; animation-delay: -5s; background: rgba(169,102,255,0.7); box-shadow: 0 0 10px rgba(169,102,255,0.5); }
.bg-particle--wander:nth-child(6)  { left: 75%; top: 15%; width: 7px; height: 7px; --dx: -42px; --dy: -175px; --dx-mid: -20px; --dy-mid: -88px; --p-opacity: 0.5; --alive-dur: 28s; animation-duration: 25s; animation-delay: -9s; background: rgba(255,255,255,0.5); box-shadow: 0 0 8px rgba(255,255,255,0.35); }
.bg-particle--wander:nth-child(7)  { left: 10%; top: 58%; width: 5px; height: 5px; --dx: 18px; --dy: -155px; --dx-mid: 8px; --dy-mid: -78px; --p-opacity: 0.6; --alive-dur: 19s; animation-duration: 21s; animation-delay: -2s; background: rgba(0,242,254,0.65); box-shadow: 0 0 10px rgba(0,242,254,0.5); }
.bg-particle--wander:nth-child(8)  { left: 42%; top: 88%; width: 8px; height: 8px; --dx: -30px; --dy: -210px; --dx-mid: -14px; --dy-mid: -105px; --p-opacity: 0.65; animation-duration: 27s; animation-delay: -6s; background: rgba(169,102,255,0.6); box-shadow: 0 0 14px rgba(169,102,255,0.5); }
.bg-particle--wander:nth-child(9)  { left: 55%; top: 8%;  width: 6px; height: 6px; --dx: 32px; --dy: -140px; --dx-mid: 14px; --dy-mid: -70px; --p-opacity: 0.55; --alive-dur: 21s; animation-duration: 19s; animation-delay: -4s; background: rgba(255,255,255,0.6); box-shadow: 0 0 10px rgba(255,255,255,0.4); }
.bg-particle--wander:nth-child(10) { left: 88%; top: 42%; width: 7px; height: 7px; --dx: -50px; --dy: -185px; --dx-mid: -24px; --dy-mid: -92px; --p-opacity: 0.5; --alive-dur: 30s; animation-duration: 28s; animation-delay: -8s; background: rgba(0,242,254,0.55); box-shadow: 0 0 12px rgba(0,242,254,0.45); }
.bg-particle--wander:nth-child(11) { left: 25%; top: 35%; width: 5px; height: 5px; --dx: 14px; --dy: -165px; --dx-mid: 6px; --dy-mid: -82px; --p-opacity: 0.55; --alive-dur: 23s; animation-duration: 24s; animation-delay: -10s; background: rgba(169,102,255,0.7); box-shadow: 0 0 10px rgba(169,102,255,0.5); }
.bg-particle--wander:nth-child(12) { left: 68%; top: 82%; width: 7px; height: 7px; --dx: -26px; --dy: -200px; --dx-mid: -12px; --dy-mid: -100px; --p-opacity: 0.5; --alive-dur: 27s; animation-duration: 22s; animation-delay: -3s; background: rgba(255,255,255,0.5); box-shadow: 0 0 8px rgba(255,255,255,0.35); }
.bg-particle--wander:nth-child(13) { left: 82%; top: 72%; width: 6px; height: 6px; --dx: 40px; --dy: -160px; --dx-mid: 18px; --dy-mid: -80px; --p-opacity: 0.6; --alive-dur: 25s; animation-duration: 26s; animation-delay: -7s; background: rgba(0,242,254,0.65); box-shadow: 0 0 10px rgba(0,242,254,0.5); }
.bg-particle--wander:nth-child(14) { left: 15%; top: 92%; width: 8px; height: 8px; --dx: -18px; --dy: -220px; --dx-mid: -8px; --dy-mid: -110px; --p-opacity: 0.65; animation-duration: 23s; animation-delay: -1s; background: rgba(169,102,255,0.65); box-shadow: 0 0 14px rgba(169,102,255,0.5); }
.bg-particle--wander:nth-child(15) { left: 58%; top: 52%; width: 5px; height: 5px; --dx: 24px; --dy: -148px; --dx-mid: 10px; --dy-mid: -74px; --p-opacity: 0.5; --alive-dur: 18s; animation-duration: 20s; animation-delay: -5s; background: rgba(255,255,255,0.6); box-shadow: 0 0 8px rgba(255,255,255,0.4); }
.bg-particle--wander:nth-child(16) { left: 92%; top: 28%; width: 6px; height: 6px; --dx: -44px; --dy: -175px; --dx-mid: -20px; --dy-mid: -88px; --p-opacity: 0.55; --alive-dur: 29s; animation-duration: 25s; animation-delay: -9s; background: rgba(0,242,254,0.6); box-shadow: 0 0 10px rgba(0,242,254,0.5); }
.bg-particle--wander:nth-child(17) { left:  3%; top: 68%; width: 7px; height: 7px; --dx: 30px; --dy: -195px; --dx-mid: 14px; --dy-mid: -98px; --p-opacity: 0.5; --alive-dur: 20s; animation-duration: 21s; animation-delay: -2s; background: rgba(169,102,255,0.55); box-shadow: 0 0 12px rgba(169,102,255,0.45); }
.bg-particle--wander:nth-child(18) { left: 38%; top: 18%; width: 5px; height: 5px; --dx: -16px; --dy: -145px; --dx-mid: -7px; --dy-mid: -72px; --p-opacity: 0.55; --alive-dur: 26s; animation-duration: 28s; animation-delay: -6s; background: rgba(255,255,255,0.5); box-shadow: 0 0 8px rgba(255,255,255,0.35); }
.bg-particle--wander:nth-child(19) { left: 78%; top: 55%; width: 8px; height: 8px; --dx: 22px; --dy: -180px; --dx-mid: 10px; --dy-mid: -90px; --p-opacity: 0.65; animation-duration: 24s; animation-delay: -4s; background: rgba(0,242,254,0.7); box-shadow: 0 0 14px rgba(0,242,254,0.55); }
.bg-particle--wander:nth-child(20) { left: 45%; top: 42%; width: 6px; height: 6px; --dx: -36px; --dy: -165px; --dx-mid: -16px; --dy-mid: -82px; --p-opacity: 0.55; --alive-dur: 22s; animation-duration: 22s; animation-delay: -8s; background: rgba(169,102,255,0.7); box-shadow: 0 0 10px rgba(169,102,255,0.5); }

/* ===================== ORBIT × 20 (horario) ===================== */
.bg-particle--orbit:nth-child(21) { left: 12%; top: 20%; width: 7px; height: 7px; --orbit-r: 120px; --p-opacity: 0.6; --alive-dur: 30s; animation-duration: 32s; animation-delay: 0s; background: rgba(0,242,254,0.7); box-shadow: 0 0 12px rgba(0,242,254,0.55); }
.bg-particle--orbit:nth-child(22) { left: 30%; top: 60%; width: 6px; height: 6px; --orbit-r: 180px; --p-opacity: 0.55; --alive-dur: 34s; animation-duration: 38s; animation-delay: -5s; background: rgba(169,102,255,0.7); box-shadow: 0 0 12px rgba(169,102,255,0.5); }
.bg-particle--orbit:nth-child(23) { left: 50%; top: 35%; width: 10px; height: 10px; --orbit-r: 100px; --p-opacity: 0.65; animation-duration: 28s; animation-delay: -2s; background: rgba(255,255,255,0.6); box-shadow: 0 0 14px rgba(255,255,255,0.45); }
.bg-particle--orbit:nth-child(24) { left: 70%; top: 75%; width: 6px; height: 6px; --orbit-r: 200px; --p-opacity: 0.5; --alive-dur: 28s; animation-duration: 44s; animation-delay: -8s; background: rgba(0,242,254,0.6); box-shadow: 0 0 10px rgba(0,242,254,0.45); }
.bg-particle--orbit:nth-child(25) { left: 20%; top: 80%; width: 8px; height: 8px; --orbit-r: 150px; --p-opacity: 0.6; --alive-dur: 32s; animation-duration: 35s; animation-delay: -3s; background: rgba(169,102,255,0.65); box-shadow: 0 0 14px rgba(169,102,255,0.5); }
.bg-particle--orbit:nth-child(26) { left: 85%; top: 30%; width: 7px; height: 7px; --orbit-r: 130px; --p-opacity: 0.55; --alive-dur: 26s; animation-duration: 30s; animation-delay: -6s; background: rgba(255,255,255,0.5); box-shadow: 0 0 10px rgba(255,255,255,0.35); }
.bg-particle--orbit:nth-child(27) { left: 40%; top: 15%; width: 8px; height: 8px; --orbit-r: 170px; --p-opacity: 0.6; --alive-dur: 35s; animation-duration: 37s; animation-delay: -1s; background: rgba(0,242,254,0.6); box-shadow: 0 0 12px rgba(0,242,254,0.5); }
.bg-particle--orbit:nth-child(28) { left: 60%; top: 50%; width: 6px; height: 6px; --orbit-r: 220px; --p-opacity: 0.5; --alive-dur: 30s; animation-duration: 46s; animation-delay: -10s; background: rgba(169,102,255,0.6); box-shadow: 0 0 10px rgba(169,102,255,0.45); }
.bg-particle--orbit:nth-child(29) { left: 8%;  top: 45%; width: 10px; height: 10px; --orbit-r: 90px;  --p-opacity: 0.65; animation-duration: 26s; animation-delay: -4s; background: rgba(255,255,255,0.6); box-shadow: 0 0 14px rgba(255,255,255,0.45); }
.bg-particle--orbit:nth-child(30) { left: 92%; top: 60%; width: 7px; height: 7px; --orbit-r: 140px; --p-opacity: 0.55; --alive-dur: 29s; animation-duration: 33s; animation-delay: -7s; background: rgba(0,242,254,0.65); box-shadow: 0 0 12px rgba(0,242,254,0.5); }
.bg-particle--orbit:nth-child(31) { left: 25%; top: 40%; width: 8px; height: 8px; --orbit-r: 160px; --p-opacity: 0.6; --alive-dur: 33s; animation-duration: 40s; animation-delay: -2s; background: rgba(169,102,255,0.7); box-shadow: 0 0 14px rgba(169,102,255,0.55); }
.bg-particle--orbit:nth-child(32) { left: 75%; top: 20%; width: 6px; height: 6px; --orbit-r: 110px; --p-opacity: 0.5; --alive-dur: 25s; animation-duration: 29s; animation-delay: -9s; background: rgba(255,255,255,0.5); box-shadow: 0 0 10px rgba(255,255,255,0.35); }
.bg-particle--orbit:nth-child(33) { left: 55%; top: 85%; width: 8px; height: 8px; --orbit-r: 190px; --p-opacity: 0.6; --alive-dur: 31s; animation-duration: 42s; animation-delay: -5s; background: rgba(0,242,254,0.65); box-shadow: 0 0 12px rgba(0,242,254,0.5); }
.bg-particle--orbit:nth-child(34) { left: 15%; top: 70%; width: 7px; height: 7px; --orbit-r: 125px; --p-opacity: 0.55; --alive-dur: 27s; animation-duration: 31s; animation-delay: -3s; background: rgba(169,102,255,0.6); box-shadow: 0 0 10px rgba(169,102,255,0.45); }
.bg-particle--orbit:nth-child(35) { left: 65%; top: 10%; width: 10px; height: 10px; --orbit-r: 145px; --p-opacity: 0.65; animation-duration: 36s; animation-delay: -8s; background: rgba(255,255,255,0.6); box-shadow: 0 0 14px rgba(255,255,255,0.45); }
.bg-particle--orbit:nth-child(36) { left: 35%; top: 55%; width: 6px; height: 6px; --orbit-r: 175px; --p-opacity: 0.5; --alive-dur: 34s; animation-duration: 40s; animation-delay: -1s; background: rgba(0,242,254,0.55); box-shadow: 0 0 10px rgba(0,242,254,0.4); }
.bg-particle--orbit:nth-child(37) { left: 88%; top: 48%; width: 8px; height: 8px; --orbit-r: 105px; --p-opacity: 0.6; --alive-dur: 28s; animation-duration: 28s; animation-delay: -6s; background: rgba(169,102,255,0.7); box-shadow: 0 0 14px rgba(169,102,255,0.55); }
.bg-particle--orbit:nth-child(38) { left: 48%; top: 78%; width: 7px; height: 7px; --orbit-r: 210px; --p-opacity: 0.55; --alive-dur: 36s; animation-duration: 44s; animation-delay: -4s; background: rgba(255,255,255,0.5); box-shadow: 0 0 10px rgba(255,255,255,0.35); }
.bg-particle--orbit:nth-child(39) { left:  5%; top: 35%; width: 8px; height: 8px; --orbit-r: 135px; --p-opacity: 0.6; --alive-dur: 30s; animation-duration: 34s; animation-delay: -7s; background: rgba(0,242,254,0.7); box-shadow: 0 0 12px rgba(0,242,254,0.55); }
.bg-particle--orbit:nth-child(40) { left: 80%; top: 88%; width: 6px; height: 6px; --orbit-r: 155px; --p-opacity: 0.5; --alive-dur: 32s; animation-duration: 38s; animation-delay: -2s; background: rgba(169,102,255,0.6); box-shadow: 0 0 10px rgba(169,102,255,0.45); }

/* ===================== PULSE × 10 (respiración con glow) ===================== */
.bg-particle--pulse:nth-child(41) { left: 22%; top: 25%; width: 10px; height: 10px; --p-opacity: 0.55; --glow-color: rgba(0,242,254,0.5); --alive-dur: 18s; animation-duration: 6s; animation-delay: 0s; background: rgba(0,242,254,0.75); box-shadow: 0 0 16px rgba(0,242,254,0.6); }
.bg-particle--pulse:nth-child(42) { left: 58%; top: 18%; width: 8px; height: 8px; --p-opacity: 0.6; --glow-color: rgba(169,102,255,0.5); --alive-dur: 22s; animation-duration: 8s; animation-delay: -2s; background: rgba(169,102,255,0.7); box-shadow: 0 0 14px rgba(169,102,255,0.55); }
.bg-particle--pulse:nth-child(43) { left: 78%; top: 55%; width: 9px; height: 9px; --p-opacity: 0.5; --glow-color: rgba(255,255,255,0.4); --alive-dur: 20s; animation-duration: 7s; animation-delay: -4s; background: rgba(255,255,255,0.6); box-shadow: 0 0 12px rgba(255,255,255,0.45); }
.bg-particle--pulse:nth-child(44) { left: 35%; top: 72%; width: 12px; height: 12px; --p-opacity: 0.65; --glow-color: rgba(0,242,254,0.55); animation-duration: 9s; animation-delay: -1s; background: rgba(0,242,254,0.7); box-shadow: 0 0 20px rgba(0,242,254,0.6); }
.bg-particle--pulse:nth-child(45) { left: 12%; top: 50%; width: 8px; height: 8px; --p-opacity: 0.55; --glow-color: rgba(169,102,255,0.5); --alive-dur: 19s; animation-duration: 6.5s; animation-delay: -3s; background: rgba(169,102,255,0.75); box-shadow: 0 0 14px rgba(169,102,255,0.6); }
.bg-particle--pulse:nth-child(46) { left: 90%; top: 35%; width: 10px; height: 10px; --p-opacity: 0.5; --glow-color: rgba(255,255,255,0.4); --alive-dur: 24s; animation-duration: 7.5s; animation-delay: -5s; background: rgba(255,255,255,0.55); box-shadow: 0 0 12px rgba(255,255,255,0.4); }
.bg-particle--pulse:nth-child(47) { left: 45%; top: 88%; width: 12px; height: 12px; --p-opacity: 0.6; --glow-color: rgba(0,242,254,0.5); animation-duration: 8.5s; animation-delay: -2s; background: rgba(0,242,254,0.7); box-shadow: 0 0 18px rgba(0,242,254,0.55); }
.bg-particle--pulse:nth-child(48) { left: 68%; top: 42%; width: 9px; height: 9px; --p-opacity: 0.65; --glow-color: rgba(169,102,255,0.55); --alive-dur: 21s; animation-duration: 6s; animation-delay: -4s; background: rgba(169,102,255,0.7); box-shadow: 0 0 16px rgba(169,102,255,0.6); }
.bg-particle--pulse:nth-child(49) { left:  8%; top: 85%; width: 10px; height: 10px; --p-opacity: 0.5; --glow-color: rgba(255,255,255,0.4); --alive-dur: 17s; animation-duration: 7s; animation-delay: -1s; background: rgba(255,255,255,0.6); box-shadow: 0 0 12px rgba(255,255,255,0.45); }
.bg-particle--pulse:nth-child(50) { left: 52%; top: 62%; width: 12px; height: 12px; --p-opacity: 0.55; --glow-color: rgba(0,242,254,0.5); animation-duration: 9s; animation-delay: -3s; background: rgba(0,242,254,0.65); box-shadow: 0 0 18px rgba(0,242,254,0.55); }

/* ==========================================================================
   🔮 6. NOVA 3D CORE AVATAR CONSTRAINTS
   ========================================================================== */
#nova-avatar {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 280px;
  height: 280px;
  z-index: 10;
  pointer-events: none; 
  filter: drop-shadow(0 0 35px rgba(142, 45, 226, 0.55));
  animation: orbFadeIn 0.8s ease-out 0.25s both;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}
#nova-avatar.orb-minimized {
  transform: scale(0.3);
  opacity: 0.5;
  pointer-events: auto;
  cursor: pointer;
}
#nova-avatar.orb-minimized:hover {
  opacity: 0.8;
  transform: scale(0.35);
}

#orb-minimize-btn {
  position: fixed;
  bottom: 320px;
  right: 42px;
  z-index: 11;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--nova-bg-card);
  border: 1px solid var(--nova-border);
  color: var(--nova-text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 150ms;
}
#orb-minimize-btn:hover {
  color: var(--nova-text-primary);
  border-color: var(--nova-border-hover);
}

/* ==========================================================================
   ⚙ 6b. ORB SETTINGS PANEL
   ========================================================================== */

#orb-settings-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 38px;
  height: 38px;
  margin-bottom: 290px;
  border-radius: 50%;
  border: 1px solid rgba(169, 102, 255, 0.35);
  background: rgba(15, 10, 35, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(200, 190, 255, 0.8);
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 11;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: orbFadeIn 0.8s ease-out 0.4s both;
}
#orb-settings-btn:hover {
  background: rgba(88, 28, 135, 0.6);
  border-color: rgba(0, 242, 254, 0.6);
  color: #00f2fe;
  transform: rotate(60deg);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
}

.orb-settings-panel {
  position: fixed;
  bottom: 80px;
  right: 30px;
  width: 320px;
  max-height: 75vh;
  border-radius: 16px;
  border: 1px solid rgba(169, 102, 255, 0.25);
  background: rgba(12, 8, 30, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: orbPanelIn 0.3s ease-out;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 60px rgba(88, 28, 135, 0.15);
}

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

.orb-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(169, 102, 255, 0.15);
}
.orb-settings-header h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e0d6ff;
  letter-spacing: 0.02em;
}
.orb-settings-header h3 i {
  margin-right: 6px;
  color: #a855f7;
}
.orb-settings-close {
  background: none;
  border: none;
  color: rgba(200, 190, 255, 0.5);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.orb-settings-close:hover { color: #f87171; }

.orb-settings-body {
  overflow-y: auto;
  flex: 1;
  padding: 12px 16px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(169,102,255,0.3) transparent;
}
.orb-settings-body::-webkit-scrollbar { width: 5px; }
.orb-settings-body::-webkit-scrollbar-track { background: transparent; }
.orb-settings-body::-webkit-scrollbar-thumb { background: rgba(169,102,255,0.3); border-radius: 3px; }

.orb-settings-section {
  margin-bottom: 16px;
}
.orb-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(169, 102, 255, 0.7);
  margin: 0 0 10px;
}

/* Presets Grid */
.orb-presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.orb-preset {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: rgba(30, 20, 60, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
}
.orb-preset:hover {
  background: rgba(88, 28, 135, 0.3);
  border-color: rgba(169, 102, 255, 0.3);
}
.orb-preset.active {
  border-color: #00f2fe;
  background: rgba(0, 242, 254, 0.08);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
}
.orb-preset-swatch {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.orb-preset-name {
  font-size: 0.55rem;
  color: rgba(200, 190, 255, 0.7);
  letter-spacing: 0.03em;
}

/* Color pickers */
.orb-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.orb-color-row label {
  font-size: 0.75rem;
  color: rgba(200, 190, 255, 0.7);
}
.orb-color-row input[type="color"] {
  width: 32px;
  height: 26px;
  border: 1px solid rgba(169, 102, 255, 0.3);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  padding: 1px;
}
.orb-color-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.orb-color-row input[type="color"]::-webkit-color-swatch { border: none; border-radius: 4px; }

/* Advanced toggle */
.orb-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 20, 60, 0.4);
  border: 1px solid rgba(169, 102, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: rgba(200, 190, 255, 0.8);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.orb-section-toggle:hover {
  background: rgba(88, 28, 135, 0.25);
  border-color: rgba(169, 102, 255, 0.3);
}
.orb-section-toggle i:last-child {
  font-size: 0.6rem;
  transition: transform 0.3s;
}
.orb-section-toggle.open i:last-child {
  transform: rotate(180deg);
}

.orb-advanced-body {
  margin-top: 12px;
}

/* Sliders */
.orb-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.orb-slider-row label {
  flex: 0 0 110px;
  font-size: 0.7rem;
  color: rgba(200, 190, 255, 0.7);
  white-space: nowrap;
}
.orb-slider-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(169, 102, 255, 0.2);
  outline: none;
  cursor: pointer;
}
.orb-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #a855f7;
  border: 2px solid #00f2fe;
  box-shadow: 0 0 6px rgba(0, 242, 254, 0.3);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.orb-slider-row input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
}
.orb-slider-row input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #a855f7;
  border: 2px solid #00f2fe;
  box-shadow: 0 0 6px rgba(0, 242, 254, 0.3);
  cursor: pointer;
}
.orb-slider-val {
  flex: 0 0 32px;
  text-align: right;
  font-size: 0.65rem;
  color: #00f2fe;
  font-family: 'JetBrains Mono', monospace;
}

/* Toggles / Switches */
.orb-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.orb-toggle-row label:first-child {
  font-size: 0.7rem;
  color: rgba(200, 190, 255, 0.7);
}
.orb-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.orb-switch input { opacity: 0; width: 0; height: 0; }
.orb-switch-slider {
  position: absolute;
  inset: 0;
  background: rgba(50, 40, 80, 0.8);
  border-radius: 10px;
  border: 1px solid rgba(169, 102, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s;
}
.orb-switch-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: rgba(200, 190, 255, 0.5);
  transition: all 0.3s;
}
.orb-switch input:checked + .orb-switch-slider {
  background: rgba(0, 242, 254, 0.2);
  border-color: rgba(0, 242, 254, 0.5);
}
.orb-switch input:checked + .orb-switch-slider::before {
  transform: translateX(16px);
  background: #00f2fe;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

/* Dynamic theme section */
.orb-dynamic-section {
  border-top: 1px solid rgba(169, 102, 255, 0.12);
  padding-top: 14px;
}
.orb-dynamic-section .orb-section-title i {
  margin-right: 4px;
  color: #a855f7;
}
.orb-dynamic-sub {
  margin-top: 8px;
  padding-left: 10px;
  border-left: 2px solid rgba(169, 102, 255, 0.2);
}
.orb-dynamic-info {
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.15);
  font-size: 0.65rem;
  color: rgba(200, 255, 220, 0.7);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   🔐 8. AUTH OVERLAY + USER PANEL
   ========================================================================== */
@keyframes authFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes authModalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes authOrbMini {
    0%, 100% { box-shadow: 0 0 20px rgba(168,85,247,0.5), 0 0 40px rgba(0,242,254,0.2); }
    50% { box-shadow: 0 0 30px rgba(168,85,247,0.7), 0 0 60px rgba(0,242,254,0.35); }
}

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 6, 15, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: authFadeIn 0.5s ease-out;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.auth-overlay--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-modal {
    width: 100%;
    max-width: 400px;
    margin: 20px;
    padding: 40px 32px 32px;
    background: rgba(10, 12, 28, 0.8);
    border: 1px solid rgba(169, 102, 255, 0.3);
    border-radius: 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6),
                0 0 80px rgba(169, 102, 255, 0.1),
                inset 0 0 40px rgba(169, 102, 255, 0.03);
    animation: authModalIn 0.6s ease-out 0.1s both;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-orb-mini {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #a855f7, #4a00e0 60%, #1a0050);
    animation: authOrbMini 3s ease-in-out infinite;
}

.auth-logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(169, 102, 255, 0.6);
    margin-bottom: 6px;
}

.auth-logo p {
    font-size: 0.8rem;
    color: rgba(200, 190, 255, 0.6);
    letter-spacing: 0.5px;
}

.auth-tabs {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    border: 1px solid rgba(169, 102, 255, 0.15);
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    color: rgba(200, 190, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    transition: color 0.3s ease;
    z-index: 1;
    position: relative;
}

.auth-tab--active {
    color: #ffffff;
}

.auth-tab-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(200, 190, 255, 0.7);
    margin-bottom: 6px;
    padding-left: 2px;
}

.auth-field input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(169, 102, 255, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.auth-field input:focus {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.12);
    background-image: linear-gradient(rgba(10,12,28,0.9), rgba(10,12,28,0.9)),
                      linear-gradient(90deg, rgba(0,242,254,0.3) 0%, rgba(169,102,255,0.3) 50%, rgba(0,242,254,0.3) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(0, 242, 254, 0.15));
    color: #ffffff;
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 4px;
}

.auth-btn:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(0, 242, 254, 0.25));
    border-color: rgba(168, 85, 247, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.auth-btn:active {
    transform: scale(0.98);
}

.auth-btn i {
    margin-right: 8px;
}

.auth-error {
    color: #f87171;
    font-size: 0.82rem;
    text-align: center;
    min-height: 20px;
    line-height: 1.4;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 16px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.auth-divider span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-google-btn {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-google-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.auth-google-btn:active {
    transform: scale(0.98);
}

.auth-google-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-google-icon {
    flex-shrink: 0;
}

/* --- User Panel (Sidebar) --- */
.user-panel {
    margin-top: auto;
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(169, 102, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.user-panel-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.user-panel-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.25);
    border: 1px solid rgba(169, 102, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0b2ff;
    font-size: 13px;
    flex-shrink: 0;
}

.user-panel-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-panel-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-panel-email {
    font-size: 0.7rem;
    color: rgba(200, 190, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-panel-logout {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(248, 113, 113, 0.2);
    background: rgba(248, 113, 113, 0.08);
    color: rgba(248, 113, 113, 0.7);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.user-panel-logout:hover {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.4);
    box-shadow: 0 0 15px rgba(248, 113, 113, 0.15);
}

/* ==========================================================================
   📱 9. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .main-content { padding: 25px; }
    .menu-list { width: 240px; padding: 30px 18px; }
}

@media (max-width: 768px) {
    .nova-container { flex-direction: column; }
    .menu-list {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(169, 102, 255, 0.2);
        padding: 20px;
    }
    .menu-list h1, .menu-list p { text-align: center; padding: 0; }
    .main-content { padding: 15px; height: calc(100vh - 140px); }
    .chat-container, .prompt-area { max-width: 100%; }
    .message { max-width: 85%; }

    #orb-settings-btn {
        bottom: 15px;
        right: 15px;
        margin-bottom: 235px;
        width: 34px;
        height: 34px;
    }
    .orb-settings-panel {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-height: 60vh;
        border-radius: 16px 16px 0 0;
    }
    .orb-presets-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}