/* ========================================
   NOVA OS - Monstre Cognitif v6.0
   Cyberpunk SaaS Dashboard Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --nova-red: #ff0044;
  --nova-cyan: #00f0ff;
  --nova-purple: #a855f7;
  --nova-orange: #f97316;
  --surface-dark: #09090b;
  --surface-900: #18181b;
  --surface-800: #27272a;
}

body {
  font-family: 'JetBrains Mono', 'VT323', monospace;
  background: var(--surface-dark);
  color: #e4e4e7;
}

/* Futuristic ambient grid */
.ambient-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 0, 68, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 68, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 20%, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(80px); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-900); }
::-webkit-scrollbar-thumb { background: var(--surface-800); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #52525b; }

/* Scanline overlay */
.scanline-overlay {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 240, 255, 0.03) 2px,
    rgba(255, 0, 68, 0.02) 4px
  );
  pointer-events: none;
  z-index: 50;
  animation: scanline-drift 8s linear infinite;
  backdrop-filter: contrast(1.05) brightness(0.98);
}

@keyframes scanline-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

/* Futuristic glass header */
.nova-header {
  background: linear-gradient(180deg, rgba(9,9,11,0.85) 0%, rgba(9,9,11,0.55) 100%);
  box-shadow: 0 4px 30px rgba(255,0,68,0.08);
}
.nova-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff0044, #a855f7, #00f0ff, transparent);
  background-size: 200% 100%;
  opacity: 0.7;
  animation: header-neon 6s linear infinite;
}
@keyframes header-neon {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Avatar SVG glow */
.avatar-svg {
  filter: drop-shadow(0 0 20px rgba(255, 0, 68, 0.4));
}

.avatar-eye {
  animation: eye-pulse 3s ease-in-out infinite;
}

@keyframes eye-pulse {
  0%, 100% { opacity: 1; r: 3; }
  50% { opacity: 0.5; r: 2; }
}

/* Monster hologram animation */
.monster-holo {
  animation: monster-breathe 1.5s ease-in-out infinite alternate,
             monster-glitch 4s infinite;
  filter: drop-shadow(0 0 40px rgba(255, 0, 68, 0.6));
}

@keyframes monster-breathe {
  0% { transform: scale(0.94) translateY(4px); opacity: 0.85; }
  100% { transform: scale(1.02) translateY(-4px); opacity: 1; }
}

@keyframes monster-glitch {
  0%, 85%, 87%, 89%, 91%, 100% { transform: scale(0.94) translateY(4px); }
  86% { transform: scale(1.06) translateX(-6px) skewX(2deg); filter: drop-shadow(0 0 80px rgba(255, 0, 68, 0.9)) hue-rotate(20deg); }
  88% { transform: scale(0.9) translateX(4px) skewX(-2deg); filter: drop-shadow(0 0 60px rgba(0, 240, 255, 0.8)); }
  90% { transform: scale(1.08) translateY(-8px); filter: drop-shadow(0 0 100px rgba(168, 85, 247, 0.7)); }
}

/* Speaking state — visor pulses + speaker animates */
.monster-holo.speaking {
  animation: monster-speak 0.25s infinite alternate;
  filter: drop-shadow(0 0 60px rgba(255, 0, 68, 0.8));
}

.monster-holo.speaking .avatar-svg {
  filter: drop-shadow(0 0 30px rgba(255, 0, 68, 0.6));
}

.monster-holo.speaking .speaker-line {
  animation: speaker-pulse 0.3s infinite alternate;
}

.monster-holo.speaking .energy-conduit {
  animation: energy-conduit-pulse 0.4s infinite alternate;
}

.monster-holo.speaking .visor-led {
  animation: visor-led-speaking 0.2s infinite alternate;
}

@keyframes monster-speak {
  0% { transform: scale(0.96); }
  100% { transform: scale(1.04); }
}

/* Alert state — red glow + visor flash */
.monster-holo.alert {
  filter: drop-shadow(0 0 80px rgba(255, 0, 0, 0.9)) drop-shadow(0 0 120px rgba(255, 0, 0, 0.4));
  animation: monster-alert 0.4s infinite;
}

.monster-holo.alert .avatar-eye,
.monster-holo.alert .lens-core {
  fill: #ff0000 !important;
}

.monster-holo.alert .visor-led {
  fill: #ff0000 !important;
  opacity: 1 !important;
}

.monster-holo.alert .energy-conduit {
  fill: #ff0000 !important;
  opacity: 0.6 !important;
}

/* Listening state — cyan visor */
.monster-holo.listening {
  filter: drop-shadow(0 0 60px rgba(0, 240, 255, 0.8));
  animation: monster-listen 1s ease-in-out infinite alternate;
}

/* === HOLOGRAM LIFE — Idle micro-movements === */
.monster-holo {
  animation: monster-breathe 1.5s ease-in-out infinite alternate,
             monster-glitch 4s infinite,
             holo-idle-sway 8s ease-in-out infinite;
}

@keyframes holo-idle-sway {
  0%, 100% { transform: scale(0.94) translateY(4px) rotate(0deg); }
  25% { transform: scale(0.95) translateY(2px) rotate(0.5deg); }
  50% { transform: scale(1.02) translateY(-4px) rotate(-0.3deg); }
  75% { transform: scale(0.96) translateY(3px) rotate(0.2deg); }
}

/* Eyes look around when idle */
.monster-holo .avatar-eye {
  animation: eye-pulse 3s ease-in-out infinite,
             eye-look-around 12s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

@keyframes eye-look-around {
  0%, 85%, 100% { transform: translateX(0) translateY(0); }
  15% { transform: translateX(-1.5px) translateY(0.5px); }
  30% { transform: translateX(1.5px) translateY(-0.5px); }
  50% { transform: translateX(0) translateY(1px); }
  65% { transform: translateX(-1px) translateY(0); }
}

/* Data fragments floating */
.data-fragment-text {
  animation: fragment-float 4s ease-in-out infinite;
}

@keyframes fragment-float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.15; }
  25% { transform: translateY(-6px) translateX(2px); opacity: 0.4; }
  50% { transform: translateY(-3px) translateX(-2px); opacity: 0.3; }
  75% { transform: translateY(-8px) translateX(1px); opacity: 0.5; }
}

/* Memory flash — when NOVA recalls something */
.monster-holo.memory-active {
  animation: monster-breathe 1.5s ease-in-out infinite alternate,
             memory-flash 0.8s ease-in-out !important;
}

@keyframes memory-flash {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(255, 0, 68, 0.6)); }
  30% { filter: drop-shadow(0 0 80px rgba(0, 240, 255, 0.9)) brightness(1.3); }
  60% { filter: drop-shadow(0 0 60px rgba(168, 85, 247, 0.7)) brightness(1.1); }
}

/* Core pulse when thinking */
.monster-holo.thinking .avatar-core {
  animation: core-think 0.6s ease-in-out infinite alternate !important;
}

@keyframes core-think {
  0% { opacity: 0.5; r: 6; }
  100% { opacity: 1; r: 9; }
}

/* Orbital rings speed up when active */
.monster-holo.speaking .ring-outer {
  animation: ring-spin-fast 4s linear infinite !important;
}

.monster-holo.speaking .ring-inner {
  animation: ring-spin-reverse-fast 6s linear infinite !important;
}

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

@keyframes ring-spin-reverse-fast {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Default ring rotation */
.ring-outer {
  transform-origin: 100px 78px;
  animation: ring-spin 30s linear infinite;
}

.ring-inner {
  transform-origin: 100px 78px;
  animation: ring-spin-reverse 45s linear infinite;
}

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

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

/* Thought ripple effect */
.thought-ripple {
  position: absolute;
  border: 2px solid rgba(168, 85, 247, 0.4);
  border-radius: 50%;
  pointer-events: none;
  animation: ripple-expand 1.5s ease-out forwards;
}

@keyframes ripple-expand {
  0% { width: 0; height: 0; opacity: 0.8; transform: translate(-50%, -50%); }
  100% { width: 300px; height: 300px; opacity: 0; transform: translate(-50%, -50%); }
}

/* Consciousness pulse — visual breathing of awareness */
.consciousness-pulse {
  position: absolute;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: consciousness-expand 2s ease-out forwards;
}

@keyframes consciousness-expand {
  0% { width: 0; height: 0; opacity: 0.6; border-color: rgba(0, 240, 255, 0.4); }
  50% { border-color: rgba(168, 85, 247, 0.3); }
  100% { width: 400px; height: 400px; opacity: 0; border-color: rgba(255, 0, 68, 0.1); }
}

/* Cognitive layer active state */
.cog-layer {
  transition: all 0.3s ease;
}
.cog-layer.cog-active {
  background: rgba(0, 240, 255, 0.08) !important;
  border-color: rgba(0, 240, 255, 0.4) !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}
.cog-layer.cog-active .cog-label {
  color: #00f0ff !important;
}

/* Personality trait bars */
.pers-bar {
  transition: width 0.5s ease;
}

/* Bond level colors */
.bond-stranger { color: #71717a; }
.bond-acquaintance { color: #f97316; }
.bond-ally { color: #00f0ff; }
.bond-trusted { color: #a855f7; }
.bond-bonded { color: #ff0044; text-shadow: 0 0 10px rgba(255, 0, 68, 0.5); }

/* Memory pulse on cards */
.memory-pulse {
  animation: mem-pulse 0.6s ease-out;
}

@keyframes mem-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 240, 255, 0); }
  50% { transform: scale(1.05); box-shadow: 0 0 25px rgba(0, 240, 255, 0.4); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 240, 255, 0); }
}

@keyframes monster-listen {
  0% { transform: scale(0.98); }
  100% { transform: scale(1.02); }
}

.monster-holo.listening .lens-core,
.monster-holo.listening .visor-led {
  fill: #00f0ff !important;
  stroke: #00f0ff !important;
}

@keyframes monster-alert {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.08) skewX(-2deg); }
  75% { transform: scale(0.95) skewX(2deg); }
}

/* Hologram container glow */
.holo-container {
  background: linear-gradient(145deg, #09090b 0%, #0f0f14 50%, #0a0810 100%);
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 0, 68, 0.2),
    0 0 60px rgba(255, 0, 68, 0.12),
    inset 0 0 80px rgba(255, 0, 68, 0.04);
}

.holo-container::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, rgba(255,0,68,0.3), transparent, rgba(168,85,247,0.2), transparent);
  border-radius: 24px;
  z-index: -1;
  animation: border-glow 5s ease-in-out infinite;
}

@keyframes border-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Radial pulse inside hologram */
.radial-pulse {
  animation: radial 4s ease-in-out infinite;
}

@keyframes radial {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 0.4; transform: scale(1.1); }
}

/* Memory cards */
.memory-card {
  transition: all 0.3s ease;
}
.memory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

/* Futuristic glass card treatment */
.futuristic-card {
  background: rgba(9, 9, 11, 0.65) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 1px rgba(255, 0, 68, 0.08),
    0 10px 40px -10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.futuristic-card:hover {
  box-shadow:
    0 0 0 1px rgba(255, 0, 68, 0.18),
    0 20px 60px -15px rgba(255, 0, 68, 0.15),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Chat messages */
.chat-user {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  border: 1px solid rgba(255, 0, 68, 0.3);
}

.chat-nova {
  background: rgba(39, 39, 42, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Voice button */
.voice-btn.listening {
  background: linear-gradient(135deg, #dc2626, #991b1b) !important;
  box-shadow: 0 0 20px rgba(255, 0, 68, 0.4);
  animation: mic-pulse 1.2s infinite;
}

@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 68, 0.4); }
  50% { box-shadow: 0 0 40px rgba(255, 0, 68, 0.8); }
}

/* Security badge animation */
.sec-badge-alert {
  background: rgba(220, 38, 38, 0.3) !important;
  border-color: rgba(220, 38, 38, 0.5) !important;
  color: #fca5a5 !important;
  animation: badge-pulse 1.5s infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Particles canvas */
#particles-canvas {
  opacity: 0.6;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .avatar-svg {
    width: 150px !important;
  }
}

/* Attack log entries */
.attack-entry {
  animation: log-fade-in 0.3s ease;
}

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

/* Typing indicator */
.typing-dots span {
  animation: typing-bounce 1.2s infinite;
}

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

/* Agent cards */
.agent-card:hover {
  transform: translateX(4px);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.08);
}

/* Domain badge */
.domain-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 16px;
  padding: 12px 8px;
  background: rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  text-align: center;
}
.domain-badge:hover {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.12);
  transform: translateY(-2px);
}
.domain-badge i {
  font-size: 1.6rem;
  margin-bottom: 6px;
  color: #00f0ff;
  opacity: 0.8;
}
.domain-badge .domain-name {
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #a1a1aa;
}
.domain-badge .domain-status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 2px;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  padding: 2px 8px;
  border-radius: 16px;
}
.domain-badge.active .domain-status {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}
.domain-badge.active i {
  color: #10b981;
}

.agent-card.active {
  border-color: rgba(0, 240, 255, 0.5) !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

/* Glitch text effect for title */
.glitch-text {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  animation: glitch-1 2s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  -webkit-text-stroke: 2px rgba(255, 0, 68, 0.3);
}

.glitch-text::after {
  animation: glitch-2 3s infinite linear alternate-reverse;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  -webkit-text-stroke: 2px rgba(168, 85, 247, 0.3);
}

@keyframes glitch-1 {
  0% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-1px); }
  80% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

@keyframes glitch-2 {
  0% { transform: translateX(0); }
  30% { transform: translateX(2px); }
  50% { transform: translateX(-2px); }
  70% { transform: translateX(1px); }
  100% { transform: translateX(0); }
}

/* Neon border pulse for containers */
.neon-border {
  position: relative;
}

.neon-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(45deg, rgba(255,0,68,0.3), transparent, rgba(168,85,247,0.2), transparent);
  z-index: -1;
  animation: neon-rotate 8s linear infinite;
}

@keyframes neon-rotate {
  0% { opacity: 0.3; }
  50% { opacity: 0.8; }
  100% { opacity: 0.3; }
}

/* Auto Voice Active State */
.auto-voice-active {
  position: relative;
}

.auto-voice-active::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(0,240,255,0.4), rgba(168,85,247,0.3), rgba(0,240,255,0.4));
  background-size: 200% 100%;
  animation: auto-voice-border 2s linear infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auto-voice-active::after {
  opacity: 1;
}

@keyframes auto-voice-border {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Auto voice pulse indicator */
.auto-voice-active .fa-ear-listen {
  animation: ear-pulse 1s ease-in-out infinite;
}

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

/* Data stream effect */
.data-stream {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(0, 240, 255, 0.15);
  line-height: 1.2;
  overflow: hidden;
  white-space: pre;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

/* ========================================
   POWER SYSTEM — Overclock, Deep Scan, Purge
   ======================================== */

/* Overclock active state */
.monster-holo.overclocked {
  filter: drop-shadow(0 0 80px rgba(255, 0, 68, 0.9)) drop-shadow(0 0 120px rgba(168, 85, 247, 0.6));
  animation: monster-overclock 0.3s infinite alternate !important;
}

@keyframes monster-overclock {
  0% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 80px rgba(255, 0, 68, 0.9)) hue-rotate(0deg); }
  50% { transform: scale(1.05) translateY(-3px); filter: drop-shadow(0 0 100px rgba(168, 85, 247, 0.8)) hue-rotate(15deg); }
  100% { transform: scale(1.02) translateY(2px); filter: drop-shadow(0 0 90px rgba(0, 240, 255, 0.7)) hue-rotate(-10deg); }
}

/* Overclock rings spin faster */
.monster-holo.overclocked .ring-outer {
  animation: ring-spin 2s linear infinite !important;
}
.monster-holo.overclocked .ring-inner {
  animation: ring-spin-reverse 3s linear infinite !important;
}
.monster-holo.overclocked .avatar-core {
  animation: core-overclock 0.4s ease-in-out infinite alternate !important;
}

@keyframes core-overclock {
  0% { opacity: 0.8; r: 6; }
  100% { opacity: 1; r: 12; }
}

/* Deep scan state — cyan scanning effect */
.monster-holo.deep-scanning {
  filter: drop-shadow(0 0 60px rgba(0, 240, 255, 0.9));
  animation: monster-deepscan 1s ease-in-out infinite !important;
}

@keyframes monster-deepscan {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 60px rgba(0, 240, 255, 0.9)); }
  50% { transform: scale(1.03); filter: drop-shadow(0 0 100px rgba(0, 240, 255, 1)) brightness(1.3); }
}

.monster-holo.deep-scanning .scan-line {
  animation: scan-sweep 1s linear infinite !important;
  opacity: 0.8 !important;
  stroke-width: 2 !important;
  stroke: #00f0ff !important;
}

@keyframes scan-sweep {
  0% { transform: translateY(-60px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(60px); opacity: 0; }
}

/* Purge state — purple flames */
.monster-holo.purging {
  filter: drop-shadow(0 0 80px rgba(168, 85, 247, 0.9)) drop-shadow(0 0 120px rgba(255, 0, 68, 0.5));
  animation: monster-purge 0.5s infinite !important;
}

@keyframes monster-purge {
  0%, 100% { transform: scale(1) skewX(0deg); }
  25% { transform: scale(1.04) skewX(-1deg); filter: drop-shadow(0 0 100px rgba(168, 85, 247, 1)); }
  75% { transform: scale(0.98) skewX(1deg); filter: drop-shadow(0 0 120px rgba(255, 0, 68, 0.8)); }
}

/* Power button active states */
.power-btn.active {
  transform: scale(0.95) !important;
  box-shadow: 0 0 30px rgba(255, 0, 68, 0.5) inset !important;
}

.power-btn.cooldown {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(0.5);
}

.power-btn.cooldown::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff0044, #a855f7);
  width: var(--cooldown, 0%);
  transition: width 0.1s linear;
  border-radius: 0 0 16px 16px;
}

/* Power surge effect — screen flash */
.power-surge {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  animation: surge-flash 0.6s ease-out forwards;
}

@keyframes surge-flash {
  0% { background: radial-gradient(circle, rgba(255, 0, 68, 0.4) 0%, transparent 70%); opacity: 0.8; }
  50% { background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%); opacity: 0.5; }
  100% { opacity: 0; }
}

/* Lightning bolt effect around hologram */
.lightning-bolt {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  animation: lightning-strike 0.4s ease-out forwards;
}

@keyframes lightning-strike {
  0% { opacity: 0; transform: scale(0); }
  30% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* Heat warning */
.heat-warning {
  animation: heat-pulse 1s ease-in-out infinite;
}

@keyframes heat-pulse {
  0%, 100% { color: #f97316; }
  50% { color: #ef4444; text-shadow: 0 0 10px rgba(239, 68, 68, 0.6); }
}

/* Power level up notification */
.power-levelup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  pointer-events: none;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 900;
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: transparent;
  background: linear-gradient(135deg, #ff0044, #a855f7, #00f0ff);
  -webkit-background-clip: text;
  background-clip: text;
  animation: levelup-anim 2s ease-out forwards;
}

@keyframes levelup-anim {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

/* Auto voice wave bars */
.voice-wave-bar {
  width: 3px;
  background: linear-gradient(to top, rgba(0,240,255,0.3), rgba(0,240,255,0.8));
  border-radius: 2px;
  animation: voice-wave 0.6s ease-in-out infinite alternate;
}

@keyframes voice-wave {
  0% { transform: scaleY(0.3); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* Flame rise animation for purge */
@keyframes flame-rise {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-200px) scale(0.2); opacity: 0; }
}

/* Data node pulse animation */
.data-node-pulse {
  animation: node-pulse 2s ease-in-out infinite;
}

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

/* Hex pulse animation */
.hex-pulse {
  animation: hex-pulse 3s ease-in-out infinite;
}

@keyframes hex-pulse {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.3; }
}