/* ============================================================
   ORÁCULO AURA FINAL v9.8 — GLOW OVER EVERYTHING
   Idle = MUITO lento. Speaking = expressivo. Brilho NUNCA cortado.
   ============================================================ */

:root {
  color-scheme: dark;
  --aura-bg: #03030a;
  --aura-bg-2: #070714;
  --aura-ink: #f6f2ff;
  --aura-muted: rgba(246,242,255,.62);
  --aura-faint: rgba(246,242,255,.38);
  --aura-line: rgba(210,196,255,.12);
  --aura-purple: #8a5cff;
  --aura-violet: #b48cff;
  --aura-lilac: #d8ccff;
  --aura-blue: #80dcff;
  --aura-cyan: #65e6ff;
  --aura-pink: #ff7bf8;
  --aura-mint: #8ef7d4;
  --aura-gold: #ffd166;
  --aura-danger: #ff4d6d;
  --oracle-audio-level: .065;
}

/* @property: permite animar border-radius e raios individuais de forma FLUIDA */
@property --r1 { syntax: '<percentage>'; inherits: false; initial-value: 44%; }
@property --r2 { syntax: '<percentage>'; inherits: false; initial-value: 56%; }
@property --r3 { syntax: '<percentage>'; inherits: false; initial-value: 52%; }
@property --r4 { syntax: '<percentage>'; inherits: false; initial-value: 48%; }
@property --r5 { syntax: '<percentage>'; inherits: false; initial-value: 45%; }
@property --r6 { syntax: '<percentage>'; inherits: false; initial-value: 42%; }
@property --r7 { syntax: '<percentage>'; inherits: false; initial-value: 58%; }
@property --r8 { syntax: '<percentage>'; inherits: false; initial-value: 55%; }

/* ============================================================
   1) Scrollbars invisíveis
   ============================================================ */

* { scrollbar-width: none !important; -ms-overflow-style: none !important; }
*::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }

html, body { overflow: hidden !important; }

.chat, .modal-card, .quick-replies, .profile-area, .profile-insights,
.vision-menu, textarea, select {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.chat::-webkit-scrollbar, .modal-card::-webkit-scrollbar,
.quick-replies::-webkit-scrollbar, .profile-area::-webkit-scrollbar,
.profile-insights::-webkit-scrollbar, .vision-menu::-webkit-scrollbar,
textarea::-webkit-scrollbar, select::-webkit-scrollbar {
  display: none !important;
}

/* ============================================================
   2) Base visual antiga restaurada
   ============================================================ */

html, body, body[data-theme="light"], body[data-theme="dark"] {
  background:
    radial-gradient(950px 620px at 30% -8%, rgba(158,124,255,.26), transparent 58%),
    radial-gradient(720px 520px at 76% 6%, rgba(112,223,255,.14), transparent 58%),
    radial-gradient(900px 680px at 50% 105%, rgba(255,123,248,.10), transparent 62%),
    linear-gradient(180deg, #060611 0%, #020207 74%, #010105 100%) !important;
  color: var(--aura-ink) !important;
}

body::before {
  opacity: .46 !important;
  background:
    radial-gradient(820px 520px at 50% 8%, rgba(177,150,255,.16), transparent 64%),
    radial-gradient(920px 520px at 50% 82%, rgba(0,0,0,.78), transparent 70%) !important;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 28%, black 0%, transparent 70%);
}

#btn-theme, #btn-mute { display: none !important; }
.topbar .brand { display: none !important; }

.topbar {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  height: 62px;
  min-height: 62px !important;
  z-index: 80;
  background: linear-gradient(180deg, rgba(3,3,10,.70), rgba(3,3,10,0)) !important;
  border-bottom: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

.topbar .top-actions { margin-left: auto; pointer-events: auto; }

.avatar-btn {
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.22), transparent 26%),
    linear-gradient(135deg, rgba(180,140,255,.92), rgba(128,220,255,.68)) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: 0 10px 34px rgba(0,0,0,.40), 0 0 34px rgba(160,124,255,.18) !important;
}

.split-container {
  min-height: 100dvh;
  padding-top: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

.split-mode .voice-pane, .voice-pane {
  flex: 0 0 clamp(245px, 38dvh, 390px) !important;
  min-height: clamp(245px, 38dvh, 390px);
  border: none !important;
  background:
    radial-gradient(620px 340px at 50% 48%, rgba(160,124,255,.15), transparent 70%),
    radial-gradient(480px 300px at 50% 34%, rgba(128,220,255,.09), transparent 62%) !important;
}

.split-mode .chat-pane, .chat-pane {
  flex: 1 1 auto !important;
  min-height: 0;
  background: transparent !important;
}

.pane-divider { display: none !important; }

.voice-inner {
  justify-content: center !important;
  gap: 14px !important;
  padding: 40px 20px 16px !important;
}

#btn-voice-toggle, .voice-toggle-btn { display: none !important; }

/* ============================================================
   3) Botão Olho / upload fundido
   ============================================================ */

#btn-attach { display: none !important; }

.vision-wrapper { display: inline-flex !important; position: relative !important; }

#btn-vision {
  position: relative !important;
  isolation: isolate;
  color: white !important;
  border-color: rgba(180,140,255,.28) !important;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.22), transparent 28%),
    linear-gradient(135deg, rgba(138,92,255,.28), rgba(128,220,255,.12)) !important;
}

#btn-vision::after,
#btn-vision.has-upload-active::after,
#btn-vision.oracle-v82-file-fused::after {
  content: none !important;
  display: none !important;
}

#btn-vision::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background:
    conic-gradient(from 210deg,
      transparent, rgba(128,220,255,.55), rgba(255,123,248,.48),
      rgba(180,140,255,.58), transparent);
  opacity: .38;
  filter: blur(7px);
  z-index: -1;
}

#btn-vision .oracle-eye-label { display: none !important; }

#btn-vision .oracle-eye-icon {
  width: 19px !important;
  height: 19px !important;
  display: inline-block !important;
  border-radius: 50%;
  border: 1px solid rgba(216,204,255,.76) !important;
  background:
    radial-gradient(circle at 50% 50%, #f6f2ff 0 12%, #80dcff 13% 25%, transparent 27%),
    radial-gradient(ellipse at 50% 50%, rgba(180,140,255,.68), rgba(128,220,255,.16) 62%, transparent 64%);
  box-shadow: 0 0 14px rgba(180,140,255,.54), inset 0 0 10px rgba(128,220,255,.28);
}

#btn-vision .oracle-eye-icon::before,
#btn-vision .oracle-eye-icon::after { content: none !important; display: none !important; }

#btn-vision.active {
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.26), transparent 28%),
    linear-gradient(135deg, rgba(255,77,109,.68), rgba(255,159,28,.42)) !important;
  border-color: rgba(255,77,109,.45) !important;
}

.vision-menu {
  min-width: 290px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(216,204,255,.16) !important;
  background: linear-gradient(160deg, rgba(24,20,42,.94), rgba(5,5,12,.94)) !important;
  backdrop-filter: blur(28px) saturate(170%) !important;
  box-shadow: 0 28px 90px rgba(0,0,0,.62), 0 0 46px rgba(138,92,255,.12) !important;
}

.vision-menu-item { border-radius: 16px !important; color: rgba(246,242,255,.88) !important; }
.vision-menu-item:hover { background: rgba(180,140,255,.12) !important; }

.vision-preview {
  border-color: rgba(128,220,255,.75) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.55), 0 0 34px rgba(128,220,255,.24) !important;
}

.vision-preview.expanded { width: min(72vw, 860px) !important; z-index: 1200 !important; }

/* ============================================================
   4) ORBE + BLOB VIVO REATIVO — RITMO CALMO
   ============================================================ */

.voice-core {
  --orb-size: clamp(148px, 18vw, 224px);
  --level: var(--oracle-audio-level);

  width: var(--orb-size) !important;
  height: var(--orb-size) !important;
  cursor: pointer;
  position: relative !important;
  isolation: isolate !important;
  overflow: visible !important;

  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;

  border-radius:
    var(--r1) var(--r2) var(--r3) var(--r4) /
    var(--r5) var(--r6) var(--r7) var(--r8) !important;

  filter:
    drop-shadow(0 0 30px rgba(180,140,255,.42))
    drop-shadow(0 0 76px rgba(128,220,255,.18))
    drop-shadow(0 0 118px rgba(255,123,248,.10)) !important;

  /* IDLE BASE — MUITO LENTO, contemplativo, "respirando lentamente" */
  animation:
    oracleOrbFloat      22s  ease-in-out infinite,
    oracleAmoebaR_A     28s  ease-in-out infinite,
    oracleAmoebaR_B     37s  ease-in-out infinite,
    oracleAmoebaR_C     43s  ease-in-out infinite,
    oracleAmoebaR_D     33s  ease-in-out infinite,
    oracleAmoebaShake   55s  ease-in-out infinite !important;

  will-change: transform, border-radius, filter;

  transition:
    filter .4s ease-out,
    animation-duration 1s ease-out;
}

/* ============================================================
   4.5) GLOW OVER EVERYTHING
   O brilho do orbe transborda os limites do voice-pane.
   Aqui garantimos que ele seja pintado POR CIMA do chat-pane,
   sem bloquear cliques nos elementos abaixo.
   ============================================================ */

/* Containers permitem o brilho transbordar livremente */
.voice-pane,
.voice-inner,
.voice-pane .pane-toolbar,
.split-mode .voice-pane,
body.oracle-chat-expanded .split-container,
body.oracle-v82-chat-full .split-container {
  overflow: visible !important;
}

/* Voice-pane fica acima do chat-pane na pilha de pintura */
.voice-pane {
  position: relative !important;
  z-index: 60 !important;
  /* pane inteira não captura clique — só seus filhos interativos */
  pointer-events: none !important;
}

/* Re-habilita interação apenas no conteúdo real do pane */
.voice-pane .voice-inner,
.voice-pane .voice-core,
.voice-pane .voice-status,
.voice-pane .pane-toolbar,
.voice-pane .pane-toolbar * {
  pointer-events: auto;
}

/* Chat-pane fica embaixo */
.chat-pane {
  position: relative !important;
  z-index: 1 !important;
}

/* Topbar continua acima de tudo */
.topbar { z-index: 200 !important; }

/* Composer continua acima de tudo */
.composer { z-index: 220 !important; }

/* ============================================================
   ESTADOS — velocidade da contorção reflete o ritmo da fala
   Transições suaves entre estados (sem solavanco)
   ============================================================ */

/* USUÁRIO FALANDO — calmo mas atento (aprox 50% mais rápido que idle) */
.voice-core.oracle-listening,
.voice-core.listening {
  animation-duration:
    13s, 17s, 23s, 28s, 21s, 35s !important;
}

/* ORÁCULO FALANDO — expressivo, mas sem virar epiléptico */
.voice-core.oracle-speaking {
  animation-duration:
    7s, 9.5s, 13s, 16s, 12s, 21s !important;
}

/* PENSANDO — ritmo médio */
.voice-core.oracle-thinking {
  animation-duration:
    10s, 13s, 17s, 21s, 16s, 27s !important;
}

.voice-core:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(180,140,255,.22);
}

.voice-core .voice-ring { display: none !important; }

.oracle-v82-orb-layer,
.voice-core .oracle-v82-orb-layer { display: none !important; }

/* Brilho esfumaçado grande em volta do orbe */
.voice-core .voice-core-glow {
  display: block !important;
  position: absolute !important;
  inset: -58% !important;
  width: auto !important;
  height: auto !important;
  z-index: -4 !important;
  border-radius: 999px !important;
  pointer-events: none !important;

  background:
    radial-gradient(circle at 50% 50%, rgba(190,150,255,.48), transparent 28%),
    radial-gradient(circle at 62% 42%, rgba(90,225,255,.25), transparent 38%),
    radial-gradient(circle at 38% 58%, rgba(255,105,235,.24), transparent 42%),
    radial-gradient(circle at 50% 54%, rgba(138,92,255,.18), transparent 64%) !important;

  filter: blur(46px) saturate(1.45) !important;
  opacity: calc(.76 + var(--oracle-audio-level) * 1.2) !important;
  transform: scale(calc(1.02 + var(--oracle-audio-level) * .30)) !important;
  animation: oracleAuraSmoke 14s ease-in-out infinite !important;
}

/* Aura externa adicional, não preta */
.voice-core::before {
  content: "" !important;
  position: absolute !important;
  inset: -34% !important;
  z-index: -3 !important;
  border-radius: inherit !important;
  pointer-events: none !important;

  background:
    radial-gradient(circle at 50% 50%, rgba(174,128,255,.54), transparent 31%),
    radial-gradient(circle at 62% 43%, rgba(63,221,255,.32), transparent 34%),
    radial-gradient(circle at 38% 58%, rgba(255,113,237,.30), transparent 38%) !important;

  filter: blur(34px) saturate(1.45) !important;
  opacity: calc(.72 + var(--oracle-audio-level) * .7) !important;
  transform: scale(calc(1 + var(--oracle-audio-level) * .20)) !important;
  animation: oracleAuraPulse 13s ease-in-out infinite !important;
}

/* Acelera o glow/aura externos quando há fala */
.voice-core.oracle-listening .voice-core-glow,
.voice-core.listening .voice-core-glow {
  animation-duration: 8s !important;
}
.voice-core.oracle-speaking .voice-core-glow {
  animation-duration: 5s !important;
}
.voice-core.oracle-listening::before,
.voice-core.listening::before {
  animation-duration: 7s !important;
}
.voice-core.oracle-speaking::before {
  animation-duration: 4.5s !important;
}

/* Corpo principal do orbe — scale reage ao áudio + acelera com estado */
.voice-core::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  border-radius: inherit !important;
  overflow: hidden !important;
  pointer-events: none !important;

  background:
    radial-gradient(circle at 31% 24%, rgba(255,255,255,.96) 0%, rgba(255,255,255,.58) 8%, transparent 23%),
    radial-gradient(circle at 67% 34%, rgba(104,229,255,.98) 0%, rgba(104,229,255,.54) 21%, transparent 42%),
    radial-gradient(circle at 35% 69%, rgba(255,105,240,.96) 0%, rgba(205,99,255,.62) 28%, transparent 52%),
    radial-gradient(circle at 72% 72%, rgba(88,121,255,.88) 0%, rgba(88,121,255,.44) 26%, transparent 54%),
    conic-gradient(from 220deg at 48% 48%,
      #ff8af3, #a577ff, #63ddff, #89f7ff, #c084fc, #ff8af3) !important;

  box-shadow:
    inset 14px 18px 28px rgba(255,255,255,.24),
    inset -22px -24px 38px rgba(21,7,50,.46),
    inset 0 0 42px rgba(255,255,255,.12),
    0 0 0 1px rgba(255,255,255,.14),
    0 0 38px rgba(143,104,255,.72),
    0 0 88px rgba(101,215,255,.30),
    0 0 142px rgba(201,93,255,.24) !important;

  filter: saturate(1.7) contrast(1.13) brightness(1.18) !important;
  transform: scale(calc(1 + var(--oracle-audio-level) * .035));
  animation: oracleOrbGradient 24s ease-in-out infinite !important;
}

/* Quando fala/escuta, o corpo "pulsa" muito mais com o nível de áudio */
.voice-core.oracle-listening::after,
.voice-core.listening::after {
  transform: scale(calc(1 + var(--oracle-audio-level) * .12)) !important;
  animation-duration: 14s !important;
}

.voice-core.oracle-speaking::after {
  transform: scale(calc(1 + var(--oracle-audio-level) * .16)) !important;
  animation-duration: 8s !important;
}

.voice-core.oracle-thinking::after {
  animation-duration: 12s !important;
}

/* Blob líquido interno — VIDA PRÓPRIA, IDLE MUITO LENTO */
.oracle-blob-layer {
  position: absolute !important;
  inset: 16% !important;
  z-index: 1 !important;
  border-radius: 48% 52% 45% 55% / 48% 44% 56% 52% !important;
  pointer-events: none !important;
  mix-blend-mode: screen !important;
  filter: blur(.2px) saturate(1.55) url(#oracleAmoebaTurb) !important;
  opacity: .96 !important;

  /* IDLE — quase parado, só "respira" */
  animation:
    oracleAmoebaInner      24s ease-in-out infinite,
    oracleAmoebaInnerBlur  32s ease-in-out infinite,
    oracleAmoebaInnerSpin  72s linear      infinite !important;

  will-change: transform, border-radius, filter;
  transition: opacity .5s ease-out;
}

/* Listening: blob respira no ritmo calmo da fala do usuário */
.voice-core.oracle-listening .oracle-blob-layer,
.voice-core.listening .oracle-blob-layer {
  animation-duration: 13s, 18s, 48s !important;
  opacity: 1 !important;
}

/* Speaking: contorções expressivas mas não caóticas */
.voice-core.oracle-speaking .oracle-blob-layer {
  animation-duration: 7s, 10s, 28s !important;
  opacity: 1 !important;
}

/* Thinking: agitação interna média */
.voice-core.oracle-thinking .oracle-blob-layer {
  animation-duration: 9s, 13s, 36s !important;
  opacity: 1 !important;
}

.oracle-blob-layer::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 22% 26%, rgba(255,255,255,.82) 0 8%, transparent 23%),
    radial-gradient(circle at 62% 24%, rgba(118,239,255,.98) 0 12%, transparent 31%),
    radial-gradient(circle at 43% 58%, rgba(255,126,240,.95) 0 13%, transparent 34%),
    radial-gradient(circle at 72% 72%, rgba(116,91,255,.94) 0 18%, transparent 39%),
    radial-gradient(circle at 24% 77%, rgba(255,210,255,.64) 0 12%, transparent 32%);
  filter: blur(13px);
  transform-origin: 52% 48%;
  animation: oracleLiquidDriftWild 42s ease-in-out infinite;
}

.voice-core.oracle-listening .oracle-blob-layer::before,
.voice-core.listening .oracle-blob-layer::before {
  animation-duration: 26s !important;
}
.voice-core.oracle-speaking .oracle-blob-layer::before {
  animation-duration: 14s !important;
}
.voice-core.oracle-thinking .oracle-blob-layer::before {
  animation-duration: 19s !important;
}

.oracle-blob-layer::after {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: inherit;
  background:
    linear-gradient(140deg, rgba(255,255,255,.40), transparent 30%, transparent 68%, rgba(255,255,255,.14)),
    radial-gradient(circle at 35% 26%, rgba(255,255,255,.44), transparent 22%);
  filter: blur(1px);
  opacity: .76;
  animation: oracleSpecularMove 18s ease-in-out infinite;
}

.voice-core.oracle-listening .oracle-blob-layer::after,
.voice-core.listening .oracle-blob-layer::after {
  animation-duration: 9s !important;
}
.voice-core.oracle-speaking .oracle-blob-layer::after {
  animation-duration: 5.5s !important;
}

/* Highlight branco superior */
.oracle-orb-highlight {
  position: absolute !important;
  left: 25% !important;
  top: 18% !important;
  z-index: 3 !important;
  width: 34% !important;
  height: 24% !important;
  border-radius: 60% 40% 65% 35% / 55% 45% 55% 45% !important;
  background: radial-gradient(ellipse at center,
    rgba(255,255,255,.86), rgba(255,255,255,.30) 44%, transparent 72%) !important;
  filter: blur(5px) !important;
  opacity: .92 !important;
  pointer-events: none !important;
  transform: rotate(-22deg);
  animation: oracleHighlightBreath 16s ease-in-out infinite !important;
}

.voice-core.oracle-listening .oracle-orb-highlight,
.voice-core.listening .oracle-orb-highlight {
  animation-duration: 8s !important;
}
.voice-core.oracle-speaking .oracle-orb-highlight {
  animation-duration: 4.5s !important;
}

/* Estados — overlays de cor/brilho */
.voice-core.oracle-listening::before,
.voice-core.listening::before {
  opacity: calc(.88 + var(--oracle-audio-level) * .95) !important;
  filter: blur(36px) saturate(1.6) !important;
}

.voice-core.oracle-speaking::after,
.voice-core.oracle-thinking::after {
  filter: saturate(1.95) contrast(1.2) brightness(1.24) !important;
}

.voice-core.oracle-muted {
  filter:
    drop-shadow(0 0 20px rgba(160,124,255,.20))
    saturate(.82) brightness(.76) !important;
  opacity: .78;
  /* Mute = quase dormindo */
  animation-duration:
    40s, 50s, 65s, 75s, 58s, 95s !important;
}

.voice-core.oracle-muted::before,
.voice-core.oracle-muted .voice-core-glow { opacity: .34 !important; }

.voice-core.oracle-muted .oracle-blob-layer {
  animation-duration: 40s, 55s, 120s !important;
  opacity: .72 !important;
}

.voice-status {
  margin-top: 24px !important;
  color: rgba(246,242,255,.55) !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: .24em !important;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(160,126,255,.34);
}

body.voice-silenced .voice-status::after {
  content: " · texto ativo";
  color: rgba(255,209,102,.78);
}

/* ============================================================
   5) Chat / composer antigos restaurados
   ============================================================ */

.chat-wrap {
  position: relative;
  mask-image: linear-gradient(to bottom, transparent 0%, black 13%, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 13%, black 82%, transparent 100%);
}

.chat {
  max-width: min(1040px, calc(100vw - 28px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 8px !important;
  padding-bottom: 132px !important;
  gap: 18px !important;
}

.msg { animation: aura-msg-in .36s cubic-bezier(.2,.8,.2,1) forwards !important; }

@keyframes aura-msg-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0)    scale(1);     filter: blur(0); }
}

.msg.assist .body, .msg.user {
  border-radius: 24px !important;
  border: 1px solid rgba(216,204,255,.12) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.028)) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.06) !important;
  backdrop-filter: blur(22px) saturate(155%) !important;
}

.msg.user {
  background: linear-gradient(135deg, rgba(138,92,255,.26), rgba(128,220,255,.12)) !important;
}

.composer {
  position: fixed !important;
  left: 0; right: 0; bottom: 0;
  padding: 18px 18px max(18px, env(safe-area-inset-bottom)) !important;
  background: linear-gradient(to top, rgba(2,2,7,.98) 0%, rgba(2,2,7,.76) 58%, transparent 100%) !important;
  z-index: 220;
}

.composer-inner {
  max-width: min(760px, calc(100vw - 28px)) !important;
  min-height: 58px;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(216,204,255,.16) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.032)) !important;
  box-shadow:
    0 22px 70px rgba(0,0,0,.52),
    0 0 50px rgba(138,92,255,.10),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
  backdrop-filter: blur(28px) saturate(170%) !important;
}

.composer-inner:focus-within {
  border-color: rgba(180,140,255,.42) !important;
  box-shadow:
    0 24px 80px rgba(0,0,0,.58),
    0 0 0 3px rgba(180,140,255,.10),
    0 0 72px rgba(128,220,255,.14) !important;
}

textarea#input {
  min-height: 42px !important;
  padding: 11px 10px !important;
  color: rgba(246,242,255,.90) !important;
  font-size: 14px !important;
}

textarea#input::placeholder { color: rgba(246,242,255,.36) !important; }

.composer .icon-btn, .composer #btn-vision, .composer #btn-mic, .send-btn {
  width: 42px !important; height: 42px !important;
  min-width: 42px !important; min-height: 42px !important;
  border-radius: 50% !important;
  flex: 0 0 42px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.composer .icon-btn {
  background: rgba(255,255,255,.052) !important;
  border: 1px solid rgba(216,204,255,.10) !important;
  color: rgba(246,242,255,.70) !important;
}

.composer .icon-btn:hover {
  background: rgba(180,140,255,.13) !important;
  border-color: rgba(180,140,255,.34) !important;
  color: white !important;
  transform: translateY(-1px) !important;
}

.send-btn {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.38), transparent 28%),
    linear-gradient(135deg, #8a5cff, #80dcff) !important;
  box-shadow: 0 10px 28px rgba(138,92,255,.36), 0 0 24px rgba(128,220,255,.20) !important;
}

/* ============================================================
   6) Cards antigos + play corrigido
   ============================================================ */

.cards-msg { max-width: 100% !important; width: 100% !important; align-self: center !important; }
.cards-body { width: 100%; }

.movie-cards, .oracle-v7-movie-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)) !important;
  gap: 16px !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}

.movie-card {
  min-height: 238px;
  border-radius: 28px !important;
  overflow: hidden;
  border: 1px solid rgba(216,204,255,.14) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.082), rgba(255,255,255,.030)) !important;
  box-shadow: 0 20px 70px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.08) !important;
  backdrop-filter: blur(24px) saturate(145%) !important;
  align-items: flex-start !important;
}

.movie-card::before { opacity: .34 !important; }

.movie-card:hover {
  transform: translateY(-3px) scale(1.006) !important;
  border-color: rgba(180,140,255,.36) !important;
  box-shadow: 0 28px 86px rgba(0,0,0,.58), 0 0 54px rgba(138,92,255,.16) !important;
}

.movie-poster {
  width: 118px !important;
  height: 176px !important;
  border-radius: 20px !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.52);
}

.movie-poster img { border-radius: inherit !important; }
.movie-info { gap: 8px !important; min-width: 0; }
.movie-title { font-size: 16px !important; font-weight: 760 !important; letter-spacing: -.02em; }

.movie-chip, .movie-score, .movie-meta-item, .movie-badge {
  font-size: 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(216,204,255,.14) !important;
  background: rgba(255,255,255,.055) !important;
  color: rgba(246,242,255,.72) !important;
}

.movie-score {
  color: var(--aura-gold) !important;
  background: rgba(255,209,102,.10) !important;
  border-color: rgba(255,209,102,.22) !important;
}

.oracle-reason {
  position: relative;
  margin: 4px 0;
  padding: 11px 12px 11px 14px;
  border-radius: 18px;
  border: 1px solid rgba(180,140,255,.26);
  background:
    radial-gradient(240px 120px at 10% 0%, rgba(180,140,255,.20), transparent 70%),
    linear-gradient(135deg, rgba(138,92,255,.18), rgba(128,220,255,.070));
  box-shadow: 0 12px 30px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08);
  max-width: 100%;
}

.oracle-reason::before {
  content: "";
  position: absolute;
  left: 10px; top: 13px; bottom: 13px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--aura-violet), var(--aura-blue));
  box-shadow: 0 0 14px rgba(180,140,255,.66);
}

.oracle-reason-label {
  margin-left: 10px;
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .18em;
  color: rgba(216,204,255,.66);
  text-transform: uppercase;
}

.oracle-reason-text {
  margin-left: 10px;
  color: rgba(255,255,255,.92);
  font-size: 12.6px;
  line-height: 1.45;
  font-weight: 560;
}

.movie-overview { color: rgba(246,242,255,.70) !important; font-size: 12.5px !important; }

.movie-details {
  border-radius: 16px !important;
  border-color: rgba(216,204,255,.10) !important;
  color: rgba(246,242,255,.62) !important;
  background: rgba(0,0,0,.20) !important;
}

.movie-actions, .card .row {
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.movie-actions button, .movie-actions a, .card .row button {
  width: 34px !important; height: 34px !important;
  min-width: 34px !important; min-height: 34px !important;
  padding: 0 !important; margin: 0 !important;
  border-radius: 999px !important;
  display: inline-grid !important;
  place-items: center !important;
  align-content: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  vertical-align: middle !important;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid rgba(216,204,255,.12) !important;
  background: rgba(255,255,255,.055) !important;
  color: rgba(246,242,255,.74) !important;
  text-decoration: none !important;
}

.movie-actions button:hover, .movie-actions a:hover, .card .row button:hover {
  background: rgba(180,140,255,.14) !important;
  border-color: rgba(180,140,255,.34) !important;
  color: #fff !important;
}

.movie-actions .accept, .card .row .accept { color: #d9fff0 !important; }
.movie-actions .reject, .card .row .reject { color: #ffd2d9 !important; }
.movie-actions .save,   .card .row .save   { color: #ffdae9 !important; }

.movie-actions .accept.active, .card .row .accept.active {
  background: rgba(142,247,212,.14) !important;
  border-color: rgba(142,247,212,.38) !important;
  color: var(--aura-mint) !important;
}

.movie-actions .reject.active, .card .row .reject.active {
  background: rgba(255,77,109,.13) !important;
  border-color: rgba(255,77,109,.34) !important;
  color: var(--aura-danger) !important;
}

.movie-actions .save.active, .card .row .save.active {
  background: rgba(255,123,248,.13) !important;
  border-color: rgba(255,123,248,.34) !important;
  color: var(--aura-pink) !important;
}

.trailer-link {
  background: linear-gradient(135deg, rgba(255,123,248,.26), rgba(138,92,255,.18)) !important;
  font-size: 0 !important;
}

.trailer-link::before { content: none !important; }

.trailer-link .oracle-play-glyph {
  display: block !important;
  width: 1em !important;
  height: 1em !important;
  font-size: 15px !important;
  line-height: 1 !important;
  transform: translateX(1px) translateY(0);
}

.watch-link {
  background: linear-gradient(135deg, rgba(142,247,212,.20), rgba(128,220,255,.10)) !important;
}

/* ============================================================
   7) Fullscreen chat antigo
   ============================================================ */

body.oracle-chat-expanded, body.oracle-v82-chat-full { overflow: hidden !important; }

body.oracle-chat-expanded .split-container,
body.oracle-v82-chat-full .split-container {
  display: block !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
}

body.oracle-chat-expanded .voice-pane,
body.oracle-v82-chat-full .voice-pane {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.oracle-chat-expanded .chat-pane,
body.oracle-v82-chat-full .chat-pane {
  position: fixed !important;
  inset: 0 !important;
  z-index: 950 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100vw !important;
  height: 100dvh !important;
  overflow: hidden !important;
  background:
    radial-gradient(1000px 620px at 50% -8%, rgba(153,120,255,.20), transparent 62%),
    radial-gradient(780px 520px at 78% 18%, rgba(128,220,255,.10), transparent 58%),
    linear-gradient(180deg, rgba(5,5,15,.995), rgba(1,1,6,.998)) !important;
}

body.oracle-chat-expanded .chat-wrap,
body.oracle-v82-chat-full .chat-wrap {
  flex: 1 1 auto !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  overflow: hidden !important;
  mask-image: linear-gradient(to bottom, transparent 0%, black 7%, black 86%, transparent 100%) !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 7%, black 86%, transparent 100%) !important;
}

body.oracle-chat-expanded .chat,
body.oracle-v82-chat-full .chat {
  width: min(1280px, calc(100vw - 32px)) !important;
  max-width: min(1280px, calc(100vw - 32px)) !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 76px !important;
  padding-bottom: 132px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}

body.oracle-chat-expanded .composer,
body.oracle-v82-chat-full .composer { z-index: 1100 !important; }

body.oracle-chat-expanded .topbar,
body.oracle-v82-chat-full .topbar { z-index: 1120 !important; }

.pane-toolbar {
  position: fixed !important;
  right: 18px !important;
  top: 50% !important;
  z-index: 1125 !important;
  opacity: .72 !important;
  pointer-events: auto !important;
}

.pane-toolbar button, #btn-layout, #btn-expand {
  width: 44px !important; height: 44px !important;
  min-width: 44px !important; min-height: 44px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(216,204,255,.20) !important;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.20), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035)) !important;
  color: rgba(246,242,255,.90) !important;
  box-shadow:
    0 18px 52px rgba(0,0,0,.52),
    0 0 34px rgba(138,92,255,.16),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
}

/* ============================================================
   8) Trailer modal
   ============================================================ */

.oracle-trailer-modal {
  position: fixed; inset: 0;
  z-index: 1600;
  display: grid; place-items: center;
  padding: 26px;
  background:
    radial-gradient(900px 560px at 50% 10%, rgba(160,124,255,.22), transparent 62%),
    rgba(0,0,0,.78);
  backdrop-filter: blur(18px) saturate(150%);
}

.oracle-trailer-card {
  width: min(980px, calc(100vw - 28px));
  border-radius: 30px;
  border: 1px solid rgba(216,204,255,.18);
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  box-shadow: 0 30px 110px rgba(0,0,0,.70), 0 0 80px rgba(138,92,255,.16);
  overflow: hidden;
}

.oracle-trailer-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px;
  color: rgba(246,242,255,.86);
  font-weight: 750;
}

.oracle-trailer-close {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(216,204,255,.16);
  background: rgba(255,255,255,.06);
  color: white;
  cursor: pointer;
}

.oracle-trailer-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.oracle-trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.oracle-trailer-fallback { padding: 18px; color: rgba(246,242,255,.72); }
.oracle-trailer-fallback a { color: #80dcff; }

/* ============================================================
   9) Profile
   ============================================================ */

.modal-card {
  border-radius: 34px !important;
  border: 1px solid rgba(216,204,255,.16) !important;
  background:
    radial-gradient(620px 380px at 50% 0%, rgba(180,140,255,.16), transparent 64%),
    linear-gradient(160deg, rgba(18,16,34,.94), rgba(5,5,12,.96)) !important;
  backdrop-filter: blur(28px) saturate(160%) !important;
}

.profile-settings, .profile-avatar-section, .profile-welcome-msg, .profile-insights {
  border-radius: 26px !important;
  border: 1px solid rgba(216,204,255,.12) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025)) !important;
}

/* ============================================================
   10) Animações — orbe + AMEBA VIVA
   ============================================================ */

@keyframes oracleOrbFloat {
  0%, 100% { transform: translateY(0)    rotate(0deg)   scale(1);     }
  50%      { transform: translateY(-5px) rotate(.35deg) scale(1.018); }
}

@keyframes oracleAmoebaR_A {
  0%,100% { --r1: 44%; --r5: 45%; }
  17%     { --r1: 64%; --r5: 36%; }
  34%     { --r1: 36%; --r5: 66%; }
  53%     { --r1: 70%; --r5: 40%; }
  71%     { --r1: 34%; --r5: 60%; }
  88%     { --r1: 56%; --r5: 48%; }
}
@keyframes oracleAmoebaR_B {
  0%,100% { --r2: 56%; --r6: 42%; }
  19%     { --r2: 36%; --r6: 64%; }
  41%     { --r2: 68%; --r6: 34%; }
  62%     { --r2: 32%; --r6: 70%; }
  83%     { --r2: 60%; --r6: 44%; }
}
@keyframes oracleAmoebaR_C {
  0%,100% { --r3: 52%; --r7: 58%; }
  23%     { --r3: 72%; --r7: 34%; }
  47%     { --r3: 34%; --r7: 68%; }
  68%     { --r3: 60%; --r7: 38%; }
  84%     { --r3: 40%; --r7: 64%; }
}
@keyframes oracleAmoebaR_D {
  0%,100% { --r4: 48%; --r8: 55%; }
  21%     { --r4: 70%; --r8: 34%; }
  43%     { --r4: 32%; --r8: 66%; }
  65%     { --r4: 60%; --r8: 40%; }
  87%     { --r4: 38%; --r8: 62%; }
}

@keyframes oracleAmoebaShake {
  0%,100% { transform: translate(0,0)         rotate(0deg)    skew(0deg,0deg)        scale(1);     }
  11%     { transform: translate(.6%,-.4%)    rotate(.7deg)   skew(1.6deg,-.9deg)    scale(1.014); }
  23%     { transform: translate(-.5%,.9%)    rotate(-.9deg)  skew(-1.9deg,1.3deg)   scale(.990);  }
  37%     { transform: translate(.9%,.2%)     rotate(1.2deg)  skew(.7deg,1.7deg)     scale(1.020); }
  52%     { transform: translate(-.7%,-.7%)   rotate(-1.3deg) skew(-1.3deg,-1.5deg)  scale(.986);  }
  68%     { transform: translate(.3%,1%)      rotate(.5deg)   skew(2.1deg,.4deg)     scale(1.022); }
  81%     { transform: translate(-.8%,.15%)   rotate(-.6deg)  skew(-.5deg,2.1deg)    scale(1.008); }
}

@keyframes oracleAmoebaInner {
  0%,100% { border-radius: 48% 52% 45% 55% / 48% 44% 56% 52%;  transform: translate(0,0)     scale(1);    }
  14%     { border-radius: 64% 36% 58% 42% / 39% 60% 40% 61%;  transform: translate(2%,-3%)  scale(1.05); }
  29%     { border-radius: 36% 64% 42% 58% / 60% 38% 62% 40%;  transform: translate(-3%,-1%) scale(.95);  }
  43%     { border-radius: 58% 42% 64% 36% / 42% 60% 38% 62%;  transform: translate(1%,3%)   scale(1.07); }
  58%     { border-radius: 40% 60% 38% 62% / 64% 36% 60% 40%;  transform: translate(-2%,2%)  scale(.97);  }
  72%     { border-radius: 62% 38% 50% 50% / 38% 62% 50% 50%;  transform: translate(3%,-2%)  scale(1.06); }
  86%     { border-radius: 44% 56% 60% 40% / 56% 44% 40% 60%;  transform: translate(-1%,1%)  scale(1.03); }
}

@keyframes oracleAmoebaInnerBlur {
  0%,100% { filter: blur(.2px) saturate(1.55) url(#oracleAmoebaTurb); }
  25%     { filter: blur(1.6px) saturate(1.90) url(#oracleAmoebaTurb); }
  50%     { filter: blur(.4px)  saturate(1.40) url(#oracleAmoebaTurb); }
  75%     { filter: blur(2.0px) saturate(2.00) url(#oracleAmoebaTurb); }
}

@keyframes oracleAmoebaInnerSpin { to { rotate: 360deg; } }

@keyframes oracleLiquidDriftWild {
  0%,100% { transform: translate(-2%,-1%)  rotate(0deg)    scale(1);    }
  13%     { transform: translate(8%,-6%)   rotate(42deg)   scale(1.16); }
  27%     { transform: translate(-7%,4%)   rotate(-58deg)  scale(.86);  }
  41%     { transform: translate(5%,8%)    rotate(118deg)  scale(1.20); }
  56%     { transform: translate(-9%,-3%)  rotate(-92deg)  scale(.92);  }
  71%     { transform: translate(6%,7%)    rotate(186deg)  scale(1.14); }
  84%     { transform: translate(-4%,-8%)  rotate(-148deg) scale(1.08); }
}

@keyframes oracleOrbGradient {
  0%, 100% {
    filter: saturate(1.7) contrast(1.13) brightness(1.18);
    transform: scale(calc(1 + var(--oracle-audio-level) * .035)) rotate(0deg);
  }
  50% {
    filter: saturate(2.05) contrast(1.20) brightness(1.30);
    transform: scale(calc(1.025 + var(--oracle-audio-level) * .05)) rotate(2deg);
  }
}

@keyframes oracleSpecularMove {
  0%, 100% { opacity: .55; transform: translate(-2%, -1%) rotate(-8deg); }
  50%      { opacity: .9;  transform: translate(4%, 2%)   rotate(5deg);  }
}

@keyframes oracleHighlightBreath {
  0%, 100% { opacity: .72; transform: rotate(-22deg) translate(0, 0)    scale(1);    }
  50%      { opacity: 1;   transform: rotate(-18deg) translate(4%, -3%) scale(1.12); }
}

@keyframes oracleAuraPulse {
  0%, 100% { opacity: .72; transform: scale(1);    }
  50%      { opacity: 1;   transform: scale(1.09); }
}

@keyframes oracleAuraSmoke {
  0%, 100% { opacity: .72; transform: scale(1.02) rotate(0deg); filter: blur(46px) saturate(1.35); }
  50%      { opacity: .98; transform: scale(1.12) rotate(3deg); filter: blur(54px) saturate(1.55); }
}

/* ============================================================
   11) Mobile
   ============================================================ */

@media (max-width: 760px) {
  .voice-pane { flex-basis: 260px !important; min-height: 260px !important; }
  .voice-inner { padding-top: 40px !important; }
  .chat { max-width: calc(100vw - 20px) !important; padding-bottom: 126px !important; }
  .movie-cards, .oracle-v7-movie-cards { grid-template-columns: 1fr !important; }
  .movie-card { gap: 12px !important; padding: 12px !important; }
  .movie-poster { width: 84px !important; height: 126px !important; border-radius: 16px !important; }
  .movie-title { font-size: 14px !important; }
  .movie-overview { font-size: 12px !important; }
  .composer { padding-left: 10px !important; padding-right: 10px !important; }
  .composer-inner { max-width: calc(100vw - 16px) !important; border-radius: 28px !important; }
  textarea#input { font-size: 13px !important; }
  .composer #btn-mic { display: none !important; }

  body.oracle-chat-expanded .chat, body.oracle-v82-chat-full .chat {
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    padding-top: 68px !important;
    padding-bottom: 126px !important;
  }

  .pane-toolbar { right: 12px !important; top: 46% !important; }
  .pane-toolbar button, #btn-layout, #btn-expand {
    width: 40px !important; height: 40px !important;
    min-width: 40px !important; min-height: 40px !important;
  }

  .movie-actions button, .movie-actions a, .card .row button {
    width: 32px !important; height: 32px !important;
    min-width: 32px !important; min-height: 32px !important;
    font-size: 14px !important;
  }

  .oracle-trailer-modal { padding: 10px; }
  .oracle-trailer-card { border-radius: 22px; }

  .voice-core { --orb-size: 148px; }
}

@media (max-width: 430px) {
  .composer .icon-btn, .composer #btn-vision, .composer #btn-mic, .send-btn {
    width: 38px !important; height: 38px !important;
    min-width: 38px !important; min-height: 38px !important;
    flex-basis: 38px !important;
  }
  textarea#input { padding-left: 6px !important; padding-right: 6px !important; }
  .voice-core { --orb-size: 138px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ============================================================
   12) Topbar transparente (remove faixa escura do topo)
   ============================================================ */

.topbar {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.topbar::before,
.topbar::after { background: transparent !important; }

/* ============================================================
   4.6) GLOW PASSA POR CIMA DO CHAT (fix definitivo)
   ============================================================ */

/* 1) Voice-pane sempre acima do chat, mas sem bloquear cliques */
.split-container .voice-pane{
  position: relative;
  z-index: 60 !important;
  overflow: visible !important;
  pointer-events: none;            /* área do glow não captura clique */
  background: transparent !important;
}
.split-container .voice-pane .voice-inner,
.split-container .voice-pane .voice-core,
.split-container .voice-pane .voice-status{
  pointer-events: auto;            /* mas o orbe e status continuam clicáveis */
}

/* 2) Chat-pane fica ATRÁS e SEM fundo sólido que tampe o glow */
.split-container .chat-pane{
  position: relative;
  z-index: 1 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
  overflow: visible !important;
}

/* 3) Containers internos do chat também transparentes */
.split-container .chat-pane > *,
.split-container .chat,
.split-container .chat-inner,
.split-container .messages,
.split-container .messages-wrap,
.split-container .chat-scroll{
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

/* 4) Bolhas de mensagem mantêm o estilo glass, mas não criam stacking
      context que tampe o glow vindo de cima */
.split-container .chat .bubble,
.split-container .messages .bubble,
.split-container .chat .message,
.split-container .messages .message{
  position: relative;
  z-index: 2;                      /* acima do fundo, mas abaixo do voice-pane (60) */
  isolation: auto !important;
}

/* 5) Garantia: nada no split-container deve recortar o glow */
.split-container,
.split-container > *{
  overflow: visible !important;
}

/* 6) Se houver um ::before/::after no chat-pane (gradiente/sombra), some com ele */
.split-container .chat-pane::before,
.split-container .chat-pane::after{
  background: transparent !important;
  box-shadow: none !important;
  content: none !important;
}

/* ============================================================
   13) Boot logo = miniatura do orbe real
   ============================================================ */
#loading-overlay { background: var(--aura-bg) !important; }

.boot-logo {
  width: 72px !important;
  height: 72px !important;
  border-radius: 44% 56% 52% 48% / 45% 42% 58% 55% !important;
  background:
    radial-gradient(circle at 31% 24%, rgba(255,255,255,.96) 0%, rgba(255,255,255,.58) 8%, transparent 23%),
    radial-gradient(circle at 67% 34%, rgba(104,229,255,.98) 0%, rgba(104,229,255,.54) 21%, transparent 42%),
    radial-gradient(circle at 35% 69%, rgba(255,105,240,.96) 0%, rgba(205,99,255,.62) 28%, transparent 52%),
    radial-gradient(circle at 72% 72%, rgba(88,121,255,.88) 0%, rgba(88,121,255,.44) 26%, transparent 54%),
    conic-gradient(from 220deg at 48% 48%,
      #ff8af3, #a577ff, #63ddff, #89f7ff, #c084fc, #ff8af3) !important;
  box-shadow:
    inset 8px 10px 16px rgba(255,255,255,.24),
    inset -12px -14px 22px rgba(21,7,50,.46),
    inset 0 0 24px rgba(255,255,255,.12),
    0 0 0 1px rgba(255,255,255,.14),
    0 0 28px rgba(143,104,255,.72),
    0 0 64px rgba(101,215,255,.30),
    0 0 110px rgba(201,93,255,.24) !important;
  filter:
    saturate(1.7) contrast(1.13) brightness(1.18)
    drop-shadow(0 0 20px rgba(180,140,255,.5))
    drop-shadow(0 0 48px rgba(128,220,255,.22)) !important;
  animation:
    bootOrbFloat 6s ease-in-out infinite,
    bootOrbSpin 14s linear infinite !important;
}

@keyframes bootOrbFloat {
  0%, 100% { transform: translateY(0)    scale(1);    }
  50%      { transform: translateY(-4px) scale(1.04); }
}
@keyframes bootOrbSpin {
  to { filter:
    saturate(1.9) contrast(1.18) brightness(1.25)
    drop-shadow(0 0 26px rgba(180,140,255,.6))
    drop-shadow(0 0 56px rgba(128,220,255,.28))
    hue-rotate(360deg);
  }
}

/* ============================================================
   13) Loading dots ("Oráculo pensando")
   ============================================================ */

.msg.assist .body .typing,
.typing {
  display: inline-flex !important;
  gap: 5px;
  align-items: center;
  padding: 4px 2px;
  min-height: 18px;
}

.typing > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b48cff, #80dcff);
  box-shadow:
    0 0 10px rgba(180,140,255,.55),
    0 0 18px rgba(128,220,255,.28);
  animation: oracleTypingDot 1.25s ease-in-out infinite;
  opacity: .25;
  transform: translateY(0) scale(.85);
}

.typing > span:nth-child(2) { animation-delay: .18s; }
.typing > span:nth-child(3) { animation-delay: .36s; }

@keyframes oracleTypingDot {
  0%, 80%, 100% { opacity: .25; transform: translateY(0)    scale(.85); }
  40%           { opacity: 1;   transform: translateY(-3px) scale(1);    }
}