/* Shared voice orb (Talk with your AI agent + auth) */

.voice-orb-wrap,
.as-test-orb-wrap {
  position: relative;
  width: 152px;
  height: 152px;
  flex-shrink: 0;
}

.as-test-orb-wrap .as-test-orb {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.as-test-orb-wrap:hover .as-test-orb,
.as-test-orb-hit:focus-visible .as-test-orb {
  outline: none;
}

.as-test-orb-hit:focus-visible {
  outline: 2px solid #6b9bff;
  outline-offset: 4px;
  border-radius: 50%;
}

.voice-orb,
.as-test-orb {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #6b9bff 0%, #7eabff 36%, #9bc0ff 68%, #cfe0ff 100%);
  box-shadow: 0 14px 36px rgba(107, 155, 255, 0.32);
  animation: voice-orb-breathe 3.2s ease-in-out infinite;
}

.voice-orb::before,
.voice-orb::after,
.as-test-orb::before,
.as-test-orb::after {
  content: "";
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.voice-orb::before,
.as-test-orb::before {
  background: radial-gradient(
    ellipse 120% 78% at 50% 92%,
    #fff 0%,
    rgba(255, 255, 255, 0.88) 24%,
    rgba(186, 208, 255, 0.32) 46%,
    transparent 64%
  );
  animation: voice-orb-fog 3.4s ease-in-out infinite;
}

.voice-orb::after,
.as-test-orb::after {
  background: radial-gradient(
    ellipse 90% 55% at 42% 100%,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.22) 38%,
    transparent 62%
  );
  animation: voice-orb-fog-drift 4.8s ease-in-out infinite;
}

.voice-orb-wrap:hover .voice-orb,
.as-test-orb-wrap:hover .as-test-orb {
  animation-duration: 2.4s;
}

.voice-orb-wrap:hover .voice-orb::before,
.as-test-orb-wrap:hover .as-test-orb::before {
  animation-duration: 2.6s;
}

.voice-orb-wrap.is-live .voice-orb,
.voice-orb-wrap.is-live .voice-orb::before,
.voice-orb-wrap.is-live .voice-orb::after,
.as-test-orb-wrap.is-live .as-test-orb,
.as-test-orb-wrap.is-live .as-test-orb::before,
.as-test-orb-wrap.is-live .as-test-orb::after {
  animation-duration: 1.8s;
}

.as-test-orb-wrap.is-live.is-speaking .as-test-orb {
  animation-name: voice-orb-breathe-speak;
  animation-duration: 0.75s;
  animation-timing-function: ease-in-out;
}

.as-test-orb-wrap.is-live.is-speaking .as-test-orb::before {
  animation-name: voice-orb-fog-speak;
  animation-duration: 0.85s;
}

.as-test-orb-wrap.is-live.is-speaking .as-test-orb::after {
  animation-name: voice-orb-fog-drift-speak;
  animation-duration: 0.65s;
}

@keyframes voice-orb-breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 12px 28px rgba(107, 155, 255, 0.24);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 18px 44px rgba(107, 155, 255, 0.4);
  }
}

@keyframes voice-orb-fog {
  0%,
  100% {
    transform: translate3d(0, 14%, 0) scale(1);
  }
  50% {
    transform: translate3d(5%, -18%, 0) scale(1.1);
  }
}

@keyframes voice-orb-fog-drift {
  0%,
  100% {
    transform: translate3d(-8%, 10%, 0) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translate3d(10%, -16%, 0) scale(1.12);
    opacity: 0.9;
  }
}

@keyframes voice-orb-breathe-speak {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 14px 36px rgba(107, 155, 255, 0.35);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 22px 52px rgba(79, 130, 255, 0.55);
  }
}

@keyframes voice-orb-fog-speak {
  0%,
  100% {
    transform: translate3d(0, 8%, 0) scale(1.05);
  }
  50% {
    transform: translate3d(8%, -24%, 0) scale(1.2);
  }
}

@keyframes voice-orb-fog-drift-speak {
  0%,
  100% {
    transform: translate3d(-12%, 6%, 0) scale(1.05);
    opacity: 0.65;
  }
  50% {
    transform: translate3d(14%, -20%, 0) scale(1.22);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-orb,
  .voice-orb::before,
  .voice-orb::after,
  .as-test-orb,
  .as-test-orb::before,
  .as-test-orb::after,
  .as-test-orb-wrap.is-live.is-speaking .as-test-orb,
  .as-test-orb-wrap.is-live.is-speaking .as-test-orb::before,
  .as-test-orb-wrap.is-live.is-speaking .as-test-orb::after {
    animation: none;
  }
}
