/* =========================================
   VAO WIDGET – FULLY ENCAPSULATED
   All rules scoped under .container-vao
   No global resets, no body overrides.
   ========================================= */

/* === ENCAPSULATION: block Bootstrap / external inherited styles === */

.container-vao, .container-vao *, .container-vao *::before, .container-vao *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  color: inherit;
  text-decoration: none;
  list-style: none;
  vertical-align: baseline;
  -webkit-appearance: none;
  appearance: none;
  float: none;
  clear: none;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  word-spacing: normal;
  text-indent: 0;
  text-shadow: none;
  box-shadow: none;
  transition: none;
  animation: none;
}

/* === THEME (CSS variables scoped to widget) === */

.container-vao {
  --bg: #050610;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.70);
  --text-dim: rgba(255, 255, 255, 0.55);
  --accent-1: #8E09F9;
  --accent-2: #0A3D62;
  --red: var(--accent-1);
  --blue: var(--accent-2);
  --green: #22c55e;
  --user-bubble: rgba(10, 61, 98, 0.62);
  --user-bubble-2: rgba(10, 61, 98, 0.38);
  --assistant-bubble: rgba(255, 255, 255, 0.10);
  --assistant-bubble-2: rgba(255, 255, 255, 0.05);
  --glow-user: rgba(10, 61, 98, 0.55);
  --glow-assistant: rgba(142, 9, 249, 0.55);
  --glow-listening: rgba(10, 61, 98, 0.85);
  --glow-speaking: rgba(142, 9, 249, 0.85);
}

/* =========================================
   WIDGET CONTAINER
   ========================================= */

.container-vao {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === ORB CHECKED STATE === */

.container-vao .input-orb:checked ~ .container-chat-ia {
  width: 340px;
  height: 380px;
  filter: blur(0px);
  opacity: 1;
}

.container-vao .input-orb:checked ~ .orb {
  filter: drop-shadow(0 0 12px rgba(142, 9, 249, 0.45)) drop-shadow(0 0 10px rgba(10, 61, 98, 0.40));
  transform-origin: center center;
  transform: translate(-50%, 150px);
}

.container-vao .input-orb:checked ~ .orb .icons .svg {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
}

.container-vao .input-orb:checked ~ .orb:hover {
  transform: translate(-50%, 150px) scale(1.1);
}

.container-vao .input-orb:checked ~ .orb:hover .icons .svg .mic {
  opacity: 0;
  transform: scale(1.1);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
}

.container-vao .input-orb:checked ~ .orb:hover .icons .svg .close {
  transform: scale(1.1);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
  opacity: 1;
}

.container-vao .input-orb:checked ~ .orb:active {
  transform: translate(-50%, 150px) scale(0.9);
}

/* === ORB UNCHECKED STATE === */

.container-vao .input-orb:not(:checked) ~ .container-chat-ia * {
  animation: none !important;
}

.container-vao .input-orb:not(:checked) ~ .orb {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 1)) drop-shadow(0 0 12px rgba(255, 255, 255, 1)) drop-shadow(0 0 12px rgba(142, 9, 249, 0.30)) drop-shadow(0 0 10px rgba(10, 61, 98, 0.28));
  transform: scale(1.2) translate(-50%, -50%);
}

.container-vao .input-orb:not(:checked) ~ .orb .ball {
  animation: vao-circle2 4.2s ease-in-out infinite;
}

.container-vao .input-orb:not(:checked) ~ .orb:hover {
  transform: scale(1.4) translate(-50%, -50%);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 1)) drop-shadow(0 0 8px rgba(255, 255, 255, 1)) drop-shadow(0 0 12px rgba(255, 255, 255, 1)) drop-shadow(0 0 12px rgba(142, 9, 249, 0.34)) drop-shadow(0 8px 30px rgba(10, 61, 98, 0.34));
}

.container-vao .input-orb:not(:checked) ~ .orb:hover .icons .svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
  opacity: 1;
}

.container-vao .input-orb:not(:checked) ~ .orb:active {
  transform: scale(1.2) translate(-50%, -50%);
}

.container-vao .input-orb:not(:checked) ~ .orb * {
  animation: none !important;
}

@keyframes vao-circle2 {
  0% {
    transform: scale(1.5);
  }
  15% {
    transform: scale(1.53);
  }
  30% {
    transform: scale(1.48);
  }
  45% {
    transform: scale(1.44);
  }
  60% {
    transform: scale(1.47);
  }
  85% {
    transform: scale(1.53);
  }
  100% {
    transform: scale(1.5);
  }
}

/* === CHAT CONTAINER === */

.container-vao .container-chat-ia {
  opacity: 0;
  filter: blur(50px);
  display: flex;
  flex-direction: column;
  width: 64px;
  height: 64px;
  padding: 0.5rem;
  border-radius: 2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 0 28px rgba(142, 9, 249, 0.16), 0 0 28px rgba(10, 61, 98, 0.16);
  gap: 6px;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

/* =========================================
   TITLE BAR
   ========================================= */

.container-vao .container-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  min-height: 32px;
  line-height: 1;
}

.container-vao .container-title svg {
  display: block;
  color: var(--red);
  animation: vao-animation-color-svg 8s 1s infinite both;
  filter: drop-shadow(0 0 8px rgba(142, 9, 249, 0.45));
}

.container-vao .container-title .text-title {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  height: 24px;
  font-size: 14px;
  font-weight: 650;
  gap: 4px;
  background-image: linear-gradient( to left, var(--red) 0% 20%, var(--blue) 50%, var(--red) 80% 100% );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-size: 800px;
  animation: vao-animation-color-text 8s infinite linear;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  margin-bottom: 0px !important;
}

/* Status dot */

.container-vao .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
  flex-shrink: 0;
}

.container-vao .status-dot.connected {
  background: var(--green);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.85);
}

@keyframes vao-animation-color-svg {
  0%, 30% {
    color: var(--red);
  }
  15% {
    color: var(--blue);
  }
}

@keyframes vao-animation-color-text {
  0% {
    background-position: -800px;
  }
  50% {
    background-position: 0px;
  }
}

/* =========================================
   CHAT AREA
   ========================================= */

.container-vao .container-chat {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  font-size: 13px;
  background-image: linear-gradient(135deg, rgba(142, 9, 249, 0.24), rgba(10, 61, 98, 0.24)), linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.container-vao .container-chat-limit {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  -webkit-mask: linear-gradient(0deg, white 85%, transparent 95% 100%);
  mask: linear-gradient(0deg, white 85%, transparent 95% 100%);
  z-index: 999;
}

/* === MESSAGES === */

.container-vao .chats {
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem 1rem 1rem;
  gap: 0.25rem;
  overflow-y: auto;
  flex: 1;
  scroll-behavior: smooth;
}

/* Empty state */

.container-vao .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  gap: 8px;
  padding: 2rem;
}

.container-vao .empty-state svg {
  opacity: 0.6;
}

/* User messages */

.container-vao .chat-user {
  display: flex;
  justify-content: end;
}

.container-vao .chat-user p {
  opacity: 0;
  transform: translateY(10px);
  width: 85%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  line-height: 1.25;
  padding: 0.75rem 0.85rem;
  color: rgba(255, 255, 255, 0.96);
  background: linear-gradient(135deg, var(--user-bubble), var(--user-bubble-2));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem 0.75rem 0 0.75rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 0 18px var(--glow-user);
  animation: vao-animation-chat 0.6s both cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.container-vao .chat-user p span {
  opacity: 0;
  transform: translateY(10px);
  display: block;
  animation: vao-animation-chat 0.6s calc(var(--word) * 0.08s) both cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Agent messages */

.container-vao .chat-ia {
  display: flex;
}

.container-vao .chat-ia p {
  opacity: 0;
  transform: translateY(10px);
  width: 85%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  line-height: 1.3;
  padding: 0.75rem 0.85rem;
  color: rgba(255, 255, 255, 0.93);
  background: linear-gradient(135deg, var(--assistant-bubble), var(--assistant-bubble-2));
  border: 1px solid rgba(142, 9, 249, 0.22);
  border-radius: 0.75rem 0.75rem 0.75rem 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.40), 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 0 18px rgba(142, 9, 249, 0.22);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  animation: vao-animation-chat 0.6s both cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.container-vao .chat-ia p span {
  opacity: 0;
  transform: translateY(10px);
  display: block;
  animation: vao-animation-chat 0.6s calc(var(--word) * 0.08s) both cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes vao-animation-chat {
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

/* =========================================
   SPEAKING / LISTENING STATES
   ========================================= */

@keyframes vao-pulseGlowBlue {
  0%, 100% {
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 0 26px rgba(10, 61, 98, 0.80), 0 0 44px rgba(10, 61, 98, 0.40);
  }
}

@keyframes vao-pulseGlowViolet {
  0%, 100% {
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 0 28px rgba(142, 9, 249, 0.80), 0 0 48px rgba(142, 9, 249, 0.40);
  }
}

/* Listening */

.container-vao .container-chat-ia.is-listening, .container-vao .container-chat.is-listening {
  border-color: rgba(10, 61, 98, 0.70);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 0 40px rgba(10, 61, 98, 0.55), 0 0 70px rgba(10, 61, 98, 0.25);
  animation: vao-pulseGlowBlue 1.2s ease-in-out infinite;
}

/* User speaking bubble */

.container-vao .chat-user.is-user-speaking p, .container-vao .chat-user p.is-user-speaking {
  background: linear-gradient(135deg, rgba(10, 61, 98, 0.82), rgba(10, 61, 98, 0.52));
  border-color: rgba(10, 61, 98, 0.75);
  outline: 2px solid rgba(10, 61, 98, 0.55);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.60), 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 0 34px rgba(10, 61, 98, 0.75), 0 0 60px rgba(10, 61, 98, 0.25);
}

/* Assistant speaking bubble */

.container-vao .chat-ia.is-assistant-speaking p, .container-vao .chat-ia p.is-assistant-speaking {
  background: linear-gradient(135deg, rgba(142, 9, 249, 0.18), rgba(255, 255, 255, 0.06));
  border-color: rgba(142, 9, 249, 0.78);
  outline: 2px solid rgba(142, 9, 249, 0.55);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.60), 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 0 36px rgba(142, 9, 249, 0.75), 0 0 66px rgba(142, 9, 249, 0.28);
}

/* Title highlights during states */

.container-vao .container-chat-ia.is-listening .container-title, .container-vao .container-chat.is-listening .container-title {
  background: linear-gradient(90deg, rgba(10, 61, 98, 0.22), rgba(10, 61, 98, 0.08));
  border-radius: 14px;
}

.container-vao .container-chat-ia.is-user-speaking .container-title, .container-vao .container-chat.is-user-speaking .container-title {
  background: linear-gradient(90deg, rgba(10, 61, 98, 0.26), rgba(10, 61, 98, 0.10));
  border-radius: 14px;
  animation: vao-pulseGlowBlue 1.1s ease-in-out infinite;
}

.container-vao .container-chat-ia.is-assistant-speaking .container-title, .container-vao .container-chat.is-assistant-speaking .container-title {
  background: linear-gradient(90deg, rgba(142, 9, 249, 0.22), rgba(142, 9, 249, 0.08));
  border-radius: 14px;
  animation: vao-pulseGlowViolet 1.1s ease-in-out infinite;
}

/* State labels */

.container-vao .container-chat-ia.is-listening .container-title::after, .container-vao .container-chat.is-listening .container-title::after {
  content: "ASCOLTO";
  margin-left: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: rgba(10, 61, 98, 0.55);
  border: 1px solid rgba(10, 61, 98, 0.65);
  box-shadow: 0 0 18px rgba(10, 61, 98, 0.55);
}

.container-vao .container-chat-ia.is-assistant-speaking .container-title::after, .container-vao .container-chat.is-assistant-speaking .container-title::after {
  content: "PARLO";
  margin-left: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: rgba(142, 9, 249, 0.35);
  border: 1px solid rgba(142, 9, 249, 0.65);
  box-shadow: 0 0 18px rgba(142, 9, 249, 0.55);
}

/* =========================================
   ORB
   ========================================= */

.container-vao .orb {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: left top;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: flex;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  z-index: 999999;
  filter: drop-shadow(0 10px 35px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 12px rgba(142, 9, 249, 0.22)) drop-shadow(0 0 10px rgba(10, 61, 98, 0.22));
  background: transparent !important;
}

.container-vao .orb .icons .svg .close {
  opacity: 0;
}

.container-vao .icons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease-in-out;
  z-index: 999;
}

.container-vao .icons .svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: all 0.3s ease-in-out;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.55));
}

.container-vao .ball {
  display: flex;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50px;
  background-color: var(--red);
  filter: url(#gooey);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 10px 30px rgba(0, 0, 0, 0.45);
}

.container-vao .container-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background-image: radial-gradient( ellipse at center, rgba(255, 255, 255, 0.48) 12%, rgba(10, 61, 98, 0.88) 52% );
  clip-path: polygon(50% 25%, 65% 30%, 75% 42%, 75% 58%, 65% 70%, 50% 75%, 35% 70%, 26% 58%, 25% 42%, 35% 30%);
  animation: vao-animation-ball 15s both ease;
  pointer-events: none;
}

@keyframes vao-animation-ball {
  2% {
    clip-path: polygon(50% 25%, 50% 0, 75% 42%, 75% 58%, 65% 70%, 50% 75%, 35% 70%, 26% 58%, 25% 42%, 50% 0);
  }
  4% {
    clip-path: polygon(50% 25%, 70% 0, 75% 42%, 85% 66%, 65% 100%, 50% 75%, 35% 100%, 15% 65%, 25% 42%, 30% 0);
  }
  6% {
    clip-path: polygon(50% 25%, 50% 15%, 75% 42%, 75% 58%, 65% 70%, 50% 75%, 35% 70%, 26% 58%, 25% 42%, 50% 15%);
  }
  7%, 59% {
    clip-path: polygon(50% 25%, 100% 12%, 75% 42%, 85% 66%, 65% 70%, 50% 75%, 35% 70%, 15% 65%, 25% 42%, 0 12%);
  }
  9%, 57% {
    clip-path: polygon(50% 25%, 50% 0, 75% 42%, 75% 58%, 65% 70%, 50% 75%, 35% 70%, 26% 58%, 25% 42%, 50% 0);
  }
  12%, 55%, 61% {
    clip-path: polygon(50% 25%, 65% 30%, 75% 42%, 75% 58%, 65% 70%, 50% 75%, 35% 70%, 26% 58%, 25% 42%, 35% 30%);
  }
}

.container-vao .container-rings {
  aspect-ratio: 1;
  border-radius: 50%;
  position: absolute;
  inset: 0;
  perspective: 11rem;
}

.container-vao .container-rings:before, .container-vao .container-rings:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 6px solid transparent;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  background: linear-gradient( 90deg, rgba(255, 255, 255, 0.92), rgba(10, 61, 98, 0.92), rgba(142, 9, 249, 0.92), rgba(255, 255, 255, 0.85) ) border-box;
}

.container-vao .container-rings::before {
  animation: vao-ring180 10s linear infinite;
}

.container-vao .container-rings::after {
  animation: vao-ring90 10s linear infinite;
}

@keyframes vao-ring180 {
  0% {
    transform: rotateY(180deg) rotateX(180deg) rotateZ(180deg);
  }
  50% {
    transform: rotateY(360deg) rotateX(360deg) rotateZ(360deg) scale(1.1);
  }
  100% {
    transform: rotateY(540deg) rotateX(540deg) rotateZ(540deg);
  }
}

@keyframes vao-ring90 {
  0% {
    transform: rotateY(90deg) rotateX(90deg) rotateZ(90deg);
  }
  50% {
    transform: rotateY(270deg) rotateX(270deg) rotateZ(270deg) scale(1.1);
  }
  100% {
    transform: rotateY(450deg) rotateX(450deg) rotateZ(450deg);
  }
}

/* === AUDIO REACTIVITY === */

.container-vao .input-orb:checked ~ .orb .ball {
  transition: transform 0.08s ease-out;
}

.container-vao .input-orb:checked ~ .orb .container-lines {
  transition: transform 0.08s ease-out, opacity 0.08s ease-out;
}

.container-vao .input-orb:checked ~ .orb {
  filter: drop-shadow( 0 0 calc(12px + 20px * var(--vao-orb-intensity, 0)) rgba(142, 9, 249, 0.55) );
}

/* =========================================
   LIGHT THEME – Bootstrap 5 [data-bs-theme="light"]
   Boost contrast on light backgrounds
   ========================================= */

[data-bs-theme="light"] .container-vao {
  --panel: rgba(30, 10, 60, 0.08);
  --border: rgba(142, 9, 249, 0.18);
  --text: rgba(15, 10, 40, 0.92);
  --text-muted: rgba(15, 10, 40, 0.60);
  --text-dim: rgba(15, 10, 40, 0.45);
  --user-bubble: rgba(10, 61, 98, 0.78);
  --user-bubble-2: rgba(10, 61, 98, 0.55);
  --assistant-bubble: rgba(142, 9, 249, 0.12);
  --assistant-bubble-2: rgba(142, 9, 249, 0.06);
  --glow-user: rgba(10, 61, 98, 0.35);
  --glow-assistant: rgba(142, 9, 249, 0.35);
}

/* Chat panel outer shell */

[data-bs-theme="light"] .container-vao .container-chat-ia {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(142, 9, 249, 0.16);
  box-shadow: 0 20px 60px rgba(142, 9, 249, 0.10), 0 0 0 1px rgba(142, 9, 249, 0.06) inset, 0 0 28px rgba(142, 9, 249, 0.08), 0 0 28px rgba(10, 61, 98, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Chat area inner background — violet much more visible */

[data-bs-theme="light"] .container-vao .container-chat {
  background-image: linear-gradient(135deg, rgba(142, 9, 249, 0.13), rgba(10, 61, 98, 0.10)), linear-gradient(180deg, rgba(142, 9, 249, 0.06), rgba(30, 10, 60, 0.14));
  border-color: rgba(142, 9, 249, 0.14);
}

/* Title gradient text — darker for readability */

[data-bs-theme="light"] .container-vao .container-title .text-title {
  background-image: linear-gradient(to left, #7006c9 0% 20%, #083352 50%, #7006c9 80% 100%);
  text-shadow: none;
}

[data-bs-theme="light"] .container-vao .container-title svg {
  filter: drop-shadow(0 0 6px rgba(142, 9, 249, 0.30));
}

/* Status dot idle */

[data-bs-theme="light"] .container-vao .status-dot {
  background: rgba(0, 0, 0, 0.18);
}

/* Status dot connected — stronger green on light bg */

[data-bs-theme="light"] .container-vao .status-dot.connected {
  background: #16a34a;
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.60), 0 0 16px rgba(22, 163, 74, 0.30);
  border: 1.5px solid rgba(22, 163, 74, 0.40);
}

/* Empty state */

[data-bs-theme="light"] .container-vao .empty-state {
  color: rgba(15, 10, 40, 0.55);
}

/* User bubbles — keep white text on darker bg */

[data-bs-theme="light"] .container-vao .chat-user p {
  color: rgba(255, 255, 255, 0.97);
  border-color: rgba(10, 61, 98, 0.25);
  border-bottom-color: rgba(10, 61, 98, 0.15);
  box-shadow: 0 8px 24px rgba(10, 61, 98, 0.18), 0 0 0 1px rgba(10, 61, 98, 0.08) inset, 0 0 14px rgba(10, 61, 98, 0.15);
}

/* Agent bubbles — violet tint visible on light */

[data-bs-theme="light"] .container-vao .chat-ia p {
  color: rgba(15, 10, 40, 0.90);
  background: linear-gradient(135deg, rgba(142, 9, 249, 0.10), rgba(142, 9, 249, 0.04));
  border-color: rgba(142, 9, 249, 0.18);
  box-shadow: 0 8px 22px rgba(142, 9, 249, 0.10), 0 0 0 1px rgba(142, 9, 249, 0.06) inset, 0 0 14px rgba(142, 9, 249, 0.10);
  text-shadow: none;
}

/* ORB — softer glow on light bg */

[data-bs-theme="light"] .container-vao .input-orb:not(:checked) ~ .orb {
  filter: drop-shadow(0 0 4px rgba(142, 9, 249, 0.50)) drop-shadow(0 0 12px rgba(142, 9, 249, 0.35)) drop-shadow(0 0 10px rgba(10, 61, 98, 0.25));
}

[data-bs-theme="light"] .container-vao .input-orb:not(:checked) ~ .orb:hover {
  filter: drop-shadow(0 0 6px rgba(142, 9, 249, 0.60)) drop-shadow(0 0 14px rgba(142, 9, 249, 0.45)) drop-shadow(0 0 12px rgba(10, 61, 98, 0.30)) drop-shadow(0 8px 30px rgba(142, 9, 249, 0.20));
}

[data-bs-theme="light"] .container-vao .input-orb:checked ~ .orb {
  filter: drop-shadow(0 0 calc(10px + 18px * var(--vao-orb-intensity, 0)) rgba(142, 9, 249, 0.50)) drop-shadow(0 0 8px rgba(10, 61, 98, 0.30));
}

/* Speaking / Listening states — light theme */

[data-bs-theme="light"] .container-vao .container-chat-ia.is-listening, [data-bs-theme="light"] .container-vao .container-chat.is-listening {
  border-color: rgba(10, 61, 98, 0.45);
  box-shadow: 0 16px 48px rgba(10, 61, 98, 0.12), 0 0 0 1px rgba(10, 61, 98, 0.10) inset, 0 0 30px rgba(10, 61, 98, 0.20);
}

[data-bs-theme="light"] .container-vao .chat-user.is-user-speaking p, [data-bs-theme="light"] .container-vao .chat-user p.is-user-speaking {
  box-shadow: 0 10px 30px rgba(10, 61, 98, 0.25), 0 0 0 1px rgba(10, 61, 98, 0.10) inset, 0 0 24px rgba(10, 61, 98, 0.30);
}

[data-bs-theme="light"] .container-vao .chat-ia.is-assistant-speaking p, [data-bs-theme="light"] .container-vao .chat-ia p.is-assistant-speaking {
  background: linear-gradient(135deg, rgba(142, 9, 249, 0.14), rgba(142, 9, 249, 0.06));
  border-color: rgba(142, 9, 249, 0.50);
  outline-color: rgba(142, 9, 249, 0.35);
  box-shadow: 0 10px 30px rgba(142, 9, 249, 0.15), 0 0 0 1px rgba(142, 9, 249, 0.10) inset, 0 0 26px rgba(142, 9, 249, 0.22);
}

/* State labels — light theme */

[data-bs-theme="light"] .container-vao .container-chat-ia.is-listening .container-title::after, [data-bs-theme="light"] .container-vao .container-chat.is-listening .container-title::after {
  color: rgba(255,255,255,0.95);
  background: rgba(10, 61, 98, 0.65);
  border-color: rgba(10, 61, 98, 0.50);
  box-shadow: 0 0 12px rgba(10, 61, 98, 0.30);
}

[data-bs-theme="light"] .container-vao .container-chat-ia.is-assistant-speaking .container-title::after, [data-bs-theme="light"] .container-vao .container-chat.is-assistant-speaking .container-title::after {
  color: rgba(255,255,255,0.95);
  background: rgba(142, 9, 249, 0.50);
  border-color: rgba(142, 9, 249, 0.45);
  box-shadow: 0 0 12px rgba(142, 9, 249, 0.30);
}

