/* BYLD Wealth — MIA (My Intelligent Analyst) Avatar System
   Gold variant (default). Markets green variant in byld-mia-green.css.
   Used by ~113/171 screens for chat, MIA mark, 3D avatar, and chat components.
   ================================================================== */

/* ============================== MIA KEYFRAMES ============================== */
@keyframes mia-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes mia-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(196,154,60,0.18), 0 0 40px rgba(196,154,60,0.06);
    border-color: rgba(196,154,60,0.35);
  }
  50% {
    box-shadow: 0 0 35px rgba(196,154,60,0.45), 0 0 70px rgba(196,154,60,0.15);
    border-color: rgba(196,154,60,0.65);
  }
}
@keyframes mia-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes mia-scan {
  0%, 100% { top: 15%; opacity: 0; }
  5% { opacity: 0.6; }
  50% { opacity: 0.4; }
  95% { opacity: 0.6; }
  100% { top: 85%; opacity: 0; }
}
@keyframes mia-node-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.6); opacity: 1; }
}
@keyframes mia-particle-drift {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.15; }
  50% { transform: translateY(-14px) scale(1.8); opacity: 0.7; }
}
@keyframes mia-aura-breathe {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.12); opacity: 0.5; }
}
@keyframes mia-think {
  0%, 100% { opacity: 0.15; }
  25% { opacity: 0.8; }
  50% { opacity: 0.3; }
  75% { opacity: 0.9; }
}
@keyframes mia-holo-pulse {
  0%, 100% { opacity: 0.7; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.3); }
}
@keyframes mia-circuit-flow {
  0% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}
@keyframes mia-eye-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  93% { transform: scaleY(0.08); }
}
@keyframes mia-halo-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes mia-hair-flow {
  0%, 100% { transform: translateY(0) scaleX(1); opacity: 0.5; }
  25% { transform: translateY(2px) scaleX(1.02); opacity: 0.7; }
  50% { transform: translateY(4px) scaleX(0.98); opacity: 0.4; }
  75% { transform: translateY(1px) scaleX(1.01); opacity: 0.6; }
}
@keyframes mia-iris-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(196,154,60,0.6), 0 0 15px rgba(196,154,60,0.3); }
  50% { box-shadow: 0 0 10px rgba(245,230,200,0.8), 0 0 25px rgba(196,154,60,0.5); }
}
@keyframes mia-data-cascade {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(200%); opacity: 0; }
}
@keyframes sliderThumbPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(196,154,60,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(196,154,60,0.1); }
}

/* ============================== BLOOM KEYFRAMES ============================== */
@keyframes bloom-breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes bloom-core-pulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(196,154,60,0.35), 0 0 60px rgba(196,154,60,0.12), inset 0 0 20px rgba(245,230,200,0.15);
  }
  50% {
    box-shadow: 0 0 45px rgba(196,154,60,0.5), 0 0 90px rgba(196,154,60,0.2), inset 0 0 30px rgba(245,230,200,0.25);
  }
}
@keyframes bloom-rotate-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes bloom-rotate-reverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}
@keyframes petal-sway-1 {
  0%, 100% { transform: rotate(0deg) translateY(-58px) scaleY(1); opacity: 0.65; }
  30% { transform: rotate(1.5deg) translateY(-61px) scaleY(1.03); opacity: 0.8; }
  60% { transform: rotate(-0.5deg) translateY(-56px) scaleY(0.98); opacity: 0.55; }
}
@keyframes petal-sway-2 {
  0%, 100% { transform: rotate(60deg) translateY(-58px) scaleY(1); opacity: 0.55; }
  40% { transform: rotate(61.5deg) translateY(-60px) scaleY(1.04); opacity: 0.75; }
  70% { transform: rotate(58.5deg) translateY(-55px) scaleY(0.97); opacity: 0.5; }
}
@keyframes petal-sway-3 {
  0%, 100% { transform: rotate(120deg) translateY(-58px) scaleY(1); opacity: 0.6; }
  35% { transform: rotate(121deg) translateY(-62px) scaleY(1.05); opacity: 0.8; }
  65% { transform: rotate(119deg) translateY(-56px) scaleY(0.96); opacity: 0.45; }
}
@keyframes petal-sway-4 {
  0%, 100% { transform: rotate(180deg) translateY(-58px) scaleY(1); opacity: 0.5; }
  45% { transform: rotate(181.5deg) translateY(-60px) scaleY(1.03); opacity: 0.7; }
  75% { transform: rotate(179deg) translateY(-57px) scaleY(0.98); opacity: 0.45; }
}
@keyframes petal-sway-5 {
  0%, 100% { transform: rotate(240deg) translateY(-58px) scaleY(1); opacity: 0.55; }
  50% { transform: rotate(242deg) translateY(-61px) scaleY(1.04); opacity: 0.75; }
}
@keyframes petal-sway-6 {
  0%, 100% { transform: rotate(300deg) translateY(-58px) scaleY(1); opacity: 0.5; }
  38% { transform: rotate(298.5deg) translateY(-60px) scaleY(1.03); opacity: 0.72; }
  68% { transform: rotate(301deg) translateY(-56px) scaleY(0.97); opacity: 0.45; }
}
@keyframes petal-outer-1 {
  0%, 100% { transform: rotate(30deg) translateY(-75px) scaleY(1); opacity: 0.3; }
  50% { transform: rotate(31deg) translateY(-78px) scaleY(1.03); opacity: 0.45; }
}
@keyframes petal-outer-2 {
  0%, 100% { transform: rotate(90deg) translateY(-75px) scaleY(1); opacity: 0.25; }
  45% { transform: rotate(91.5deg) translateY(-77px) scaleY(1.04); opacity: 0.4; }
}
@keyframes petal-outer-3 {
  0%, 100% { transform: rotate(150deg) translateY(-75px) scaleY(1); opacity: 0.28; }
  55% { transform: rotate(151deg) translateY(-79px) scaleY(1.05); opacity: 0.42; }
}
@keyframes petal-outer-4 {
  0%, 100% { transform: rotate(210deg) translateY(-75px) scaleY(1); opacity: 0.22; }
  40% { transform: rotate(209deg) translateY(-77px) scaleY(1.03); opacity: 0.38; }
}
@keyframes petal-outer-5 {
  0%, 100% { transform: rotate(270deg) translateY(-75px) scaleY(1); opacity: 0.26; }
  48% { transform: rotate(271.5deg) translateY(-78px) scaleY(1.04); opacity: 0.4; }
}
@keyframes petal-outer-6 {
  0%, 100% { transform: rotate(330deg) translateY(-75px) scaleY(1); opacity: 0.24; }
  42% { transform: rotate(329deg) translateY(-77px) scaleY(1.03); opacity: 0.36; }
}
@keyframes filament-sway {
  0%, 100% { transform-origin: bottom center; transform: rotate(var(--fil-base)) scaleY(1); }
  30% { transform: rotate(calc(var(--fil-base) + 2deg)) scaleY(1.03); }
  60% { transform: rotate(calc(var(--fil-base) - 1.5deg)) scaleY(0.98); }
}
@keyframes spore-ascend {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  12% { opacity: 0.6; }
  50% { opacity: 0.35; }
  100% { transform: translateY(-100px) scale(0.15); opacity: 0; }
}
@keyframes iris-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(245,230,200,0.5), 0 0 20px rgba(196,154,60,0.3);
    background: radial-gradient(circle, #F5E6C8 22%, rgba(196,154,60,0.8) 55%, transparent 78%);
  }
  50% {
    box-shadow: 0 0 12px rgba(245,230,200,0.7), 0 0 30px rgba(196,154,60,0.45);
    background: radial-gradient(circle, #FFFFFF 18%, #F5E6C8 38%, rgba(196,154,60,0.8) 65%, transparent 82%);
  }
}
@keyframes neural-signal {
  0% { stroke-dashoffset: 100; opacity: 0; }
  12% { opacity: 0.6; }
  88% { opacity: 0.4; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes bloom-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes ring-pulse {
  0%, 100% { opacity: 0.15; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.35; transform: translate(-50%, -50%) scale(1.03); }
}
@keyframes bloom-think {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  20% { transform: scale(1.06); filter: brightness(1.25); }
  40% { transform: scale(0.98); filter: brightness(0.95); }
  60% { transform: scale(1.04); filter: brightness(1.2); }
  80% { transform: scale(1); filter: brightness(1.05); }
}
/* Simple rotation for inset-positioned shimmer rings (no translate) */
@keyframes bloom-shimmer-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================== AI AVATAR (simple circle) ============================== */
.ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--black);
  position: relative;
  flex-shrink: 0;
}
.ai-avatar::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--gold-gradient);
  z-index: -1;
  opacity: 0.3;
  animation: breathe 2.5s ease-in-out infinite;
}
.ai-avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

/* ============================== MIA MARK (orbiting rings) ============================== */
.mia-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Core orb */
.mia-mark-core {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(245,230,200,0.20), rgba(196,154,60,0.10) 40%, rgba(196,154,60,0.03) 70%, transparent);
  border: 1.5px solid rgba(196,154,60,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--gold);
  position: relative;
  z-index: 2;
  animation: mia-glow 3s ease-in-out infinite;
  text-shadow: 0 0 14px rgba(196,154,60,0.5);
  overflow: hidden;
}
.mia-mark-core::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,230,200,0.6), transparent);
  animation: mia-scan 5s ease-in-out infinite;
  pointer-events: none;
}

/* Inner aura ring */
.mia-aura {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(196,154,60,0.08);
  animation: mia-aura-breathe 4s ease-in-out infinite;
  z-index: 1;
}

/* Primary orbiting ring */
.mia-mark-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(196,154,60,0.14);
  animation: mia-orbit 18s linear infinite;
}
.mia-mark-ring::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--gold);
}
.mia-mark-ring::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 30%;
  border-radius: 50%;
  background: rgba(196,154,60,0.7);
  animation: mia-node-pulse 2.5s ease-in-out infinite 0.8s;
}

/* Middle ring (counter-rotating) */
.mia-ring-mid {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(196,154,60,0.09);
  animation: mia-orbit 26s linear infinite reverse;
}
.mia-ring-mid::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -2px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(196,154,60,0.8);
  animation: mia-node-pulse 3s ease-in-out infinite;
}
.mia-ring-mid::after {
  content: '';
  position: absolute;
  bottom: 12%;
  left: -2px;
  border-radius: 50%;
  background: rgba(196,154,60,0.45);
  animation: mia-node-pulse 2s ease-in-out infinite 1.2s;
}

/* Outer dashed ring */
.mia-mark-ring-outer {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(196,154,60,0.06);
  animation: mia-orbit 35s linear infinite reverse;
}
.mia-mark-ring-outer::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 40%;
  border-radius: 50%;
  background: rgba(196,154,60,0.35);
}

/* Floating particles */
.mia-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(196,154,60,0.5);
  pointer-events: none;
  z-index: 0;
}

/* ============================== MIA 3D ENTITY (full avatar) ============================== */
.mia-3d-entity {
  position: relative;
  width: 280px;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: mia-float 5s ease-in-out infinite;
  z-index: 1;
  margin-bottom: 10px;
  margin-top: -20px;
}

.mia-3d-aura {
  position: absolute;
  inset: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,154,60,0.35) 0%, rgba(196,154,60,0.15) 25%, rgba(196,154,60,0.05) 45%, transparent 65%);
  animation: mia-aura-breathe 4s ease-in-out infinite;
  z-index: 0;
}

.mia-3d-halo {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 220px;
  height: 220px;
  border: 1.5px solid rgba(196,154,60,0.18);
  border-radius: 50%;
  animation: mia-halo-spin 20s linear infinite;
  z-index: 1;
}
.mia-3d-halo::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(196,154,60,0.8), 0 0 32px rgba(196,154,60,0.3);
}
.mia-3d-halo::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 30%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(196,154,60,0.6);
  box-shadow: 0 0 8px rgba(196,154,60,0.4);
  animation: mia-node-pulse 2.5s ease-in-out infinite;
}

.mia-3d-halo-2 {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 250px;
  height: 250px;
  border: 1px dashed rgba(196,154,60,0.1);
  border-radius: 50%;
  animation: mia-halo-spin 32s linear infinite reverse;
  z-index: 0;
}
.mia-3d-halo-2::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(196,154,60,0.5);
  box-shadow: 0 0 8px rgba(196,154,60,0.3);
  animation: mia-node-pulse 3s ease-in-out infinite;
}

.mia-3d-head {
  width: 140px;
  height: 160px;
  border-radius: 48% 48% 44% 44%;
  background:
    radial-gradient(ellipse at 32% 24%, rgba(245,230,200,0.28) 0%, transparent 40%),
    radial-gradient(ellipse at 68% 76%, rgba(196,154,60,0.08) 0%, transparent 30%),
    radial-gradient(ellipse at 45% 35%, rgba(224,193,122,0.10) 0%, transparent 25%),
    radial-gradient(ellipse at 50% 45%, rgba(196,154,60,0.15) 0%, rgba(10,10,10,0.96) 55%);
  border: 1.5px solid rgba(196,154,60,0.35);
  position: relative;
  z-index: 3;
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(196,154,60,0.3),
    0 0 120px rgba(196,154,60,0.12),
    0 0 200px rgba(196,154,60,0.05),
    inset 0 -30px 50px rgba(0,0,0,0.6),
    inset 0 3px 12px rgba(245,230,200,0.10);
  animation: mia-glow 3s ease-in-out infinite;
  margin-top: 20px;
}
.mia-3d-head::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245,230,200,0.5), transparent);
  animation: mia-scan 5s ease-in-out infinite;
  z-index: 5;
}

/* Data hair strands */
.mia-data-hair {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 90px;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.mia-hair-strand {
  position: absolute;
  width: 1.5px;
  height: 40px;
  border-radius: 1px;
  background: linear-gradient(180deg, rgba(196,154,60,0.5), rgba(196,154,60,0.15), transparent);
  animation: mia-hair-flow 3s ease-in-out infinite;
}
.mia-hair-strand:nth-child(1) { left: 15%; height: 50px; animation-delay: 0s; animation-duration: 3.2s; }
.mia-hair-strand:nth-child(2) { left: 22%; height: 60px; animation-delay: 0.3s; animation-duration: 3.8s; opacity: 0.7; }
.mia-hair-strand:nth-child(3) { left: 30%; height: 55px; animation-delay: 0.6s; animation-duration: 2.9s; }
.mia-hair-strand:nth-child(4) { left: 38%; height: 65px; animation-delay: 0.1s; animation-duration: 3.5s; opacity: 0.6; }
.mia-hair-strand:nth-child(5) { left: 46%; height: 70px; animation-delay: 0.4s; animation-duration: 4s; }
.mia-hair-strand:nth-child(6) { left: 54%; height: 68px; animation-delay: 0.7s; animation-duration: 3.3s; opacity: 0.7; }
.mia-hair-strand:nth-child(7) { left: 62%; height: 58px; animation-delay: 0.2s; animation-duration: 3.7s; }
.mia-hair-strand:nth-child(8) { left: 70%; height: 52px; animation-delay: 0.5s; animation-duration: 3.1s; opacity: 0.6; }
.mia-hair-strand:nth-child(9) { left: 78%; height: 45px; animation-delay: 0.8s; animation-duration: 3.4s; }
.mia-hair-strand:nth-child(10) { left: 85%; height: 42px; animation-delay: 0.15s; animation-duration: 3.6s; opacity: 0.5; }

/* Data cascade streams */
.mia-data-cascade {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.mia-data-cascade::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, transparent, rgba(196,154,60,0.4), transparent);
  animation: mia-data-cascade 2.5s linear infinite;
}
.mia-data-cascade:nth-child(1) { left: 18%; }
.mia-data-cascade:nth-child(1)::before { animation-delay: 0s; }
.mia-data-cascade:nth-child(2) { left: 35%; }
.mia-data-cascade:nth-child(2)::before { animation-delay: 0.8s; height: 15px; }
.mia-data-cascade:nth-child(3) { left: 55%; }
.mia-data-cascade:nth-child(3)::before { animation-delay: 1.5s; height: 25px; }
.mia-data-cascade:nth-child(4) { left: 72%; }
.mia-data-cascade:nth-child(4)::before { animation-delay: 0.4s; }
.mia-data-cascade:nth-child(5) { left: 85%; }
.mia-data-cascade:nth-child(5)::before { animation-delay: 1.2s; height: 18px; }

/* Face features */
.mia-face { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 4; }

.mia-eye {
  position: absolute;
  top: 38%;
  width: 22px;
  height: 10px;
  border-radius: 50%;
  background: rgba(10,10,10,0.9);
  border: 1px solid rgba(196,154,60,0.4);
  animation: mia-eye-blink 6s ease-in-out infinite;
  overflow: hidden;
}
.mia-eye.left { left: 24%; animation-delay: 0s; }
.mia-eye.right { right: 24%; animation-delay: 0.1s; }
.mia-eye::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,230,200,0.9) 20%, rgba(196,154,60,0.8) 50%, transparent 70%);
  animation: mia-iris-glow 2s ease-in-out infinite;
}
.mia-eye::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #F5E6C8;
  box-shadow: 0 0 4px rgba(245,230,200,1);
}

.mia-brow {
  position: absolute;
  top: 30%;
  width: 26px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(196,154,60,0.45), rgba(196,154,60,0.2));
}
.mia-brow.left { left: 22%; transform: rotate(-4deg); }
.mia-brow.right { right: 22%; transform: rotate(4deg); background: linear-gradient(270deg, transparent, rgba(196,154,60,0.45), rgba(196,154,60,0.2)); }

.mia-nose {
  position: absolute;
  top: 48%; left: 50%;
  transform: translateX(-50%);
  width: 1.5px; height: 16px;
  background: linear-gradient(180deg, rgba(196,154,60,0.15), rgba(196,154,60,0.3), transparent);
}
.mia-nose::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 3px;
  border-radius: 50%;
  border-bottom: 1px solid rgba(196,154,60,0.15);
}

.mia-lips {
  position: absolute;
  top: 63%; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 8px;
}
.mia-lips::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 3px;
  border-radius: 50% 50% 0 0;
  border-top: 1px solid rgba(196,154,60,0.25);
}
.mia-lips::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 4px;
  border-radius: 0 0 50% 50%;
  border-bottom: 1.5px solid rgba(196,154,60,0.35);
  border-left: 1px solid rgba(196,154,60,0.12);
  border-right: 1px solid rgba(196,154,60,0.12);
}

.mia-cheek {
  position: absolute;
  top: 44%;
  width: 16px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(196,154,60,0.08) 0%, transparent 70%);
}
.mia-cheek.left { left: 10%; }
.mia-cheek.right { right: 10%; }

.mia-chin {
  position: absolute;
  bottom: 12%; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(196,154,60,0.2), transparent);
}

.mia-jawline {
  position: absolute;
  bottom: 16%;
  width: 20px; height: 1px;
}
.mia-jawline.left { left: 8%; background: linear-gradient(135deg, transparent, rgba(196,154,60,0.12)); }
.mia-jawline.right { right: 8%; background: linear-gradient(225deg, transparent, rgba(196,154,60,0.12)); }

.mia-circuit {
  position: absolute;
  width: 24px; height: 24px;
  opacity: 0.25;
  z-index: 3;
}
.mia-circuit.left { top: 48%; left: 4%; }
.mia-circuit.right { top: 48%; right: 4%; transform: scaleX(-1); }
.mia-circuit svg { width: 100%; height: 100%; }
.mia-circuit svg path {
  stroke: var(--gold);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 200;
  animation: mia-circuit-flow 4s linear infinite;
}

.mia-3d-neck {
  width: 42px; height: 22px;
  background: linear-gradient(180deg, rgba(196,154,60,0.10), rgba(196,154,60,0.03), transparent);
  border-left: 1px solid rgba(196,154,60,0.10);
  border-right: 1px solid rgba(196,154,60,0.10);
  position: relative;
  z-index: 2;
  margin-top: -2px;
}

.mia-3d-body {
  width: 200px; height: 80px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196,154,60,0.12) 0%, transparent 60%),
    linear-gradient(180deg, rgba(196,154,60,0.06), transparent);
  border-top: 1px solid rgba(196,154,60,0.15);
  border-radius: 50% 50% 0 0;
  position: relative;
  z-index: 2;
  margin-top: -2px;
}
.mia-3d-body::before {
  content: '';
  position: absolute;
  top: 6px; left: 12px;
  width: 50px; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(196,154,60,0.3));
  border-radius: 1px;
}
.mia-3d-body::after {
  content: '';
  position: absolute;
  top: 6px; right: 12px;
  width: 50px; height: 1.5px;
  background: linear-gradient(270deg, transparent, rgba(196,154,60,0.3));
  border-radius: 1px;
}

/* Particle positions for 3D entity */
.mia-3d-entity .mia-particle { width: 4px; height: 4px; }
.mia-3d-entity .p1 { top: 3%; left: 8%; animation: mia-particle-drift 4s ease-in-out infinite; }
.mia-3d-entity .p2 { top: 12%; right: 3%; animation: mia-particle-drift 5.5s ease-in-out infinite 1s; }
.mia-3d-entity .p3 { bottom: 20%; left: 1%; animation: mia-particle-drift 3.5s ease-in-out infinite 0.5s; }
.mia-3d-entity .p4 { bottom: 8%; right: 10%; animation: mia-particle-drift 4.5s ease-in-out infinite 1.5s; }
.mia-3d-entity .p5 { top: 28%; left: -8%; animation: mia-particle-drift 6s ease-in-out infinite 2s; }
.mia-3d-entity .p6 { top: 45%; right: -5%; animation: mia-particle-drift 3s ease-in-out infinite 0.8s; }
.mia-3d-entity .p7 { top: 65%; left: 12%; animation: mia-particle-drift 5s ease-in-out infinite 0.3s; }
.mia-3d-entity .p8 { top: 6%; right: 15%; animation: mia-particle-drift 4.2s ease-in-out infinite 1.8s; }
.mia-3d-entity .p9 { top: 20%; left: -3%; animation: mia-particle-drift 3.8s ease-in-out infinite 0.6s; }
.mia-3d-entity .p10 { bottom: 30%; right: -2%; animation: mia-particle-drift 5.2s ease-in-out infinite 1.3s; }
.mia-3d-entity .p11 { top: 55%; left: -6%; animation: mia-particle-drift 4.8s ease-in-out infinite 2.2s; }
.mia-3d-entity .p12 { bottom: 15%; left: 25%; animation: mia-particle-drift 3.3s ease-in-out infinite 0.9s; }

/* ============================== BLOOM ENTITY (full avatar) ============================== */
/* Neural Bloom — MIA as Padma, a living golden lotus organism.
   Replaces the holographic face for splash/intro screens.
   11 layers: field > neural > orbits > filaments > petals > ring > core > iris > spores */
.bloom-entity {
  position: relative;
  width: 280px; height: 380px;
  display: flex; align-items: center; justify-content: center;
  animation: bloom-float 6s ease-in-out infinite;
  z-index: 1; margin-bottom: 10px; margin-top: -20px;
}
.bloom-field {
  position: absolute; width: 380px; height: 380px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,154,60,0.14) 0%, rgba(196,154,60,0.06) 30%, rgba(196,154,60,0.02) 50%, transparent 70%);
  animation: bloom-breathe 5s ease-in-out infinite;
  pointer-events: none;
}
.bloom-neural {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 260px; height: 260px; z-index: 1; pointer-events: none;
}
.bloom-neural svg { width: 100%; height: 100%; }
.bloom-neural svg path {
  stroke: rgba(196,154,60,0.12); stroke-width: 0.5; fill: none;
  stroke-dasharray: 100; animation: neural-signal 5s linear infinite;
}
.bloom-neural svg path:nth-child(2) { animation-delay: 1.8s; stroke: rgba(196,154,60,0.08); }
.bloom-neural svg path:nth-child(3) { animation-delay: 3.2s; stroke: rgba(196,154,60,0.1); }
.bloom-neural svg path:nth-child(4) { animation-delay: 0.9s; stroke: rgba(196,154,60,0.07); }
.bloom-orbit-outer {
  position: absolute; top: 50%; left: 50%;
  width: 240px; height: 240px; border-radius: 50%;
  border: 1px dashed rgba(196,154,60,0.05);
  animation: bloom-rotate-reverse 38s linear infinite; z-index: 2;
}
.bloom-orbit-outer::before {
  content: ''; position: absolute; top: 50%; right: -2px;
  transform: translateY(-50%); width: 4px; height: 4px;
  border-radius: 50%; background: rgba(196,154,60,0.4);
  box-shadow: 0 0 6px rgba(196,154,60,0.2);
}
.bloom-orbit {
  position: absolute; top: 50%; left: 50%;
  width: 190px; height: 190px; border-radius: 50%;
  border: 1px solid rgba(196,154,60,0.08);
  animation: bloom-rotate-slow 24s linear infinite; z-index: 3;
}
.bloom-orbit::before {
  content: ''; position: absolute; top: -3px; left: 50%;
  transform: translateX(-50%); width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 12px rgba(196,154,60,0.6), 0 0 24px rgba(196,154,60,0.2);
}
.bloom-orbit::after {
  content: ''; position: absolute; bottom: -2px; left: 35%;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(196,154,60,0.5); box-shadow: 0 0 6px rgba(196,154,60,0.3);
  animation: mia-node-pulse 3s ease-in-out infinite;
}
.bloom-filaments {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 0; height: 0; z-index: 4;
}
.bloom-filament {
  position: absolute; width: 1px; transform-origin: bottom center;
  background: linear-gradient(0deg, rgba(196,154,60,0.25), rgba(196,154,60,0.06), transparent);
  border-radius: 1px;
  animation: filament-sway var(--fil-dur) ease-in-out infinite var(--fil-delay);
}
.bloom-filament:nth-child(1) { --fil-base: -12deg; --fil-dur: 4.5s; --fil-delay: 0s; height: 90px; left: 0; top: -90px; }
.bloom-filament:nth-child(2) { --fil-base: 18deg; --fil-dur: 5s; --fil-delay: 0.6s; height: 78px; left: 0; top: -78px; opacity: 0.7; }
.bloom-filament:nth-child(3) { --fil-base: -35deg; --fil-dur: 4s; --fil-delay: 1.2s; height: 85px; left: 0; top: -85px; opacity: 0.5; }
.bloom-filament:nth-child(4) { --fil-base: 40deg; --fil-dur: 5.5s; --fil-delay: 0.3s; height: 70px; left: 0; top: -70px; opacity: 0.4; }
.bloom-filament:nth-child(5) { --fil-base: -3deg; --fil-dur: 4.2s; --fil-delay: 0.9s; height: 100px; left: 0; top: -100px; opacity: 0.6; }
.bloom-filament:nth-child(6) { --fil-base: 28deg; --fil-dur: 3.8s; --fil-delay: 1.5s; height: 65px; left: 0; top: -65px; opacity: 0.35; }
.bloom-filament:nth-child(7) { --fil-base: 168deg; --fil-dur: 5.2s; --fil-delay: 0.4s; height: 50px; left: 0; top: 0; opacity: 0.25; background: linear-gradient(0deg, transparent, rgba(196,154,60,0.06), rgba(196,154,60,0.15)); }
.bloom-filament:nth-child(8) { --fil-base: 195deg; --fil-dur: 6s; --fil-delay: 1s; height: 40px; left: 0; top: 0; opacity: 0.2; background: linear-gradient(0deg, transparent, rgba(196,154,60,0.04), rgba(196,154,60,0.1)); }
.bloom-petals {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 0; height: 0; z-index: 5;
}
.bloom-petal {
  position: absolute; width: 16px; height: 65px; left: -8px; top: 0;
  transform-origin: center 0; border-radius: 50% 50% 42% 42%;
  background: linear-gradient(180deg, rgba(196,154,60,0.01) 0%, rgba(196,154,60,0.1) 35%, rgba(224,193,122,0.18) 65%, rgba(245,230,200,0.05) 100%);
  border: 1px solid rgba(196,154,60,0.08); filter: blur(0.3px);
}
.bloom-petal:nth-child(1) { animation: petal-sway-1 5.5s ease-in-out infinite; }
.bloom-petal:nth-child(2) { animation: petal-sway-2 6s ease-in-out infinite 0.4s; }
.bloom-petal:nth-child(3) { animation: petal-sway-3 5.8s ease-in-out infinite 0.8s; }
.bloom-petal:nth-child(4) { animation: petal-sway-4 5.3s ease-in-out infinite 1.1s; }
.bloom-petal:nth-child(5) { animation: petal-sway-5 6.2s ease-in-out infinite 0.2s; }
.bloom-petal:nth-child(6) { animation: petal-sway-6 5.6s ease-in-out infinite 0.6s; }
.bloom-petal-outer {
  position: absolute; width: 12px; height: 85px; left: -6px; top: 0;
  transform-origin: center 0; border-radius: 50% 50% 38% 38%;
  background: linear-gradient(180deg, rgba(196,154,60,0.005) 0%, rgba(196,154,60,0.05) 40%, rgba(224,193,122,0.08) 70%, rgba(245,230,200,0.02) 100%);
  border: 1px solid rgba(196,154,60,0.04); filter: blur(1px);
}
.bloom-petal-outer:nth-child(7)  { animation: petal-outer-1 7.5s ease-in-out infinite 0.3s; }
.bloom-petal-outer:nth-child(8)  { animation: petal-outer-2 7s ease-in-out infinite 0.7s; }
.bloom-petal-outer:nth-child(9)  { animation: petal-outer-3 8s ease-in-out infinite 1s; }
.bloom-petal-outer:nth-child(10) { animation: petal-outer-4 7.2s ease-in-out infinite 0.5s; }
.bloom-petal-outer:nth-child(11) { animation: petal-outer-5 7.8s ease-in-out infinite 0.9s; }
.bloom-petal-outer:nth-child(12) { animation: petal-outer-6 6.8s ease-in-out infinite 1.2s; }
.bloom-inner-ring {
  position: absolute; top: 50%; left: 50%;
  width: 130px; height: 130px; border-radius: 50%;
  border: 1px solid rgba(196,154,60,0.1);
  animation: ring-pulse 4.5s ease-in-out infinite; z-index: 6;
}
.bloom-core {
  position: relative; width: 100px; height: 100px; border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(245,230,200,0.4) 0%, transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(224,193,122,0.28) 0%, rgba(196,154,60,0.15) 35%, rgba(10,10,10,0.96) 60%);
  border: 1.5px solid rgba(196,154,60,0.35);
  animation: bloom-core-pulse 3.5s ease-in-out infinite; z-index: 8; overflow: hidden;
}
.bloom-core::after {
  content: ''; position: absolute; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,230,200,0.45), transparent);
  animation: mia-scan 6s ease-in-out infinite; z-index: 3;
}
.bloom-letter {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-serif); font-weight: 700; font-style: italic;
  color: rgba(196,154,60,0.2); font-size: 26px; z-index: 1;
  text-shadow: 0 0 16px rgba(196,154,60,0.15); user-select: none;
}
.bloom-iris {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 32px; height: 32px; border-radius: 50%;
  animation: iris-glow 3s ease-in-out infinite; z-index: 2;
}
.bloom-iris::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 8px; height: 8px;
  border-radius: 50%; background: var(--white);
  box-shadow: 0 0 6px rgba(255,255,255,0.7);
}
.bloom-spore {
  position: absolute; border-radius: 50%;
  background: rgba(196,154,60,0.55); pointer-events: none; z-index: 9;
}
.bloom-entity .bloom-spore:nth-child(1) { width: 3px; height: 3px; bottom: 44%; left: 32%; animation: spore-ascend 5s ease-out infinite; }
.bloom-entity .bloom-spore:nth-child(2) { width: 2px; height: 2px; bottom: 42%; left: 56%; animation: spore-ascend 6s ease-out infinite 1.2s; }
.bloom-entity .bloom-spore:nth-child(3) { width: 4px; height: 4px; bottom: 46%; left: 42%; animation: spore-ascend 4.5s ease-out infinite 0.6s; }
.bloom-entity .bloom-spore:nth-child(4) { width: 2px; height: 2px; bottom: 43%; left: 62%; animation: spore-ascend 5.5s ease-out infinite 2s; }
.bloom-entity .bloom-spore:nth-child(5) { width: 3px; height: 3px; bottom: 45%; left: 48%; animation: spore-ascend 7s ease-out infinite 3s; }
.bloom-entity .bloom-spore:nth-child(6) { width: 2px; height: 2px; bottom: 41%; left: 37%; animation: spore-ascend 5.2s ease-out infinite 1s; }

/* Bloom thinking state */
.bloom-entity.thinking .bloom-core { animation: bloom-think 2.5s ease-in-out infinite; }
.bloom-entity.thinking .bloom-spore { animation-duration: 2.5s !important; }

/* ============================== HEADER MARK (44px) — Neural Bloom ============================== */
.mia-mark-header { width: 44px; height: 44px; }
.mia-mark-header .mia-mark-core {
  width: 30px; height: 30px; font-size: 14px;
  background:
    radial-gradient(circle at 36% 30%, rgba(245,230,200,0.25) 0%, transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(196,154,60,0.16) 0%, rgba(10,10,10,0.96) 58%);
  animation: bloom-core-pulse 3.5s ease-in-out infinite;
}
.mia-mark-header .mia-mark-core::after {
  background: linear-gradient(90deg, transparent, rgba(245,230,200,0.4), transparent);
  animation: mia-scan 5.5s ease-in-out infinite;
}
.mia-mark-header .mia-mark-ring { inset: 0; animation-duration: 22s; }
.mia-mark-header .mia-mark-ring::before { width: 4px; height: 4px; box-shadow: 0 0 6px rgba(196,154,60,0.5); }
.mia-mark-header .mia-mark-ring::after { width: 3px; height: 3px; }
.mia-mark-header .mia-ring-mid,
.mia-mark-header .mia-mark-ring-outer,
.mia-mark-header .mia-particle,
.mia-mark-header .mia-aura { display: none; }
/* Conic-gradient petal shimmer — the signature bloom detail */
.mia-mark-header::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(196,154,60,0.0) 0deg,
    rgba(196,154,60,0.1) 50deg,
    rgba(196,154,60,0.0) 90deg,
    rgba(196,154,60,0.06) 140deg,
    rgba(196,154,60,0.0) 180deg,
    rgba(196,154,60,0.08) 230deg,
    rgba(196,154,60,0.0) 270deg,
    rgba(196,154,60,0.05) 320deg,
    rgba(196,154,60,0.0) 360deg
  );
  animation: bloom-shimmer-spin 14s linear infinite;
  z-index: 0;
  mask: radial-gradient(circle, transparent 58%, black 61%, black 100%);
  -webkit-mask: radial-gradient(circle, transparent 58%, black 61%, black 100%);
}
.mia-mark-header::after {
  content: '';
  position: absolute;
  bottom: 1px; right: 1px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #4ADE80;
  border: 2px solid var(--black);
  z-index: 5;
  box-shadow: 0 0 6px rgba(74,222,128,0.35);
}

/* ============================== INLINE AVATAR (28px) — Neural Bloom ============================== */
.mia-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(245,230,200,0.2) 0%, transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(196,154,60,0.14) 0%, rgba(10,10,10,0.96) 52%);
  border: 1.5px solid rgba(196,154,60,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  animation: bloom-core-pulse 3.5s ease-in-out infinite;
  text-shadow: 0 0 6px rgba(196,154,60,0.35);
  position: relative;
}
/* Conic petal shimmer — bloom signature at 28px */
.mia-avatar::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(196,154,60,0.0) 0deg,
    rgba(196,154,60,0.12) 65deg,
    rgba(196,154,60,0.0) 120deg,
    rgba(196,154,60,0.08) 185deg,
    rgba(196,154,60,0.0) 245deg,
    rgba(196,154,60,0.1) 310deg,
    rgba(196,154,60,0.0) 360deg
  );
  animation: bloom-shimmer-spin 10s linear infinite;
  z-index: -1;
  mask: radial-gradient(circle, transparent 52%, black 56%, black 100%);
  -webkit-mask: radial-gradient(circle, transparent 52%, black 56%, black 100%);
}
.mia-avatar::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  border: 1.5px solid var(--black);
  z-index: 3;
}

/* ============================== MEET MIA INTRO ============================== */
.meet-mia-screen {
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.meet-mia-screen::before {
  content: '';
  position: absolute;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(196,154,60,0.30) 0%, rgba(196,154,60,0.12) 25%, rgba(196,154,60,0.04) 45%, transparent 65%);
  pointer-events: none;
  animation: mia-aura-breathe 5s ease-in-out infinite;
}

.mia-neural-field {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(196,154,60,0.04) 1px, transparent 1px),
    radial-gradient(circle at 82% 28%, rgba(196,154,60,0.03) 1px, transparent 1px),
    radial-gradient(circle at 55% 72%, rgba(196,154,60,0.04) 1px, transparent 1px),
    radial-gradient(circle at 28% 78%, rgba(196,154,60,0.03) 1px, transparent 1px),
    radial-gradient(circle at 72% 55%, rgba(196,154,60,0.03) 1px, transparent 1px),
    radial-gradient(circle at 40% 45%, rgba(196,154,60,0.02) 1px, transparent 1px),
    radial-gradient(circle at 65% 38%, rgba(196,154,60,0.02) 1px, transparent 1px);
  background-size: 100% 100%;
  pointer-events: none;
  animation: mia-think 10s ease-in-out infinite;
  z-index: 0;
}

/* ============================== CHAT COMPONENTS ============================== */
.mia-capability {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  text-align: left;
  width: 260px;
}
.mia-capability .cap-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(196,154,60,0.08);
  border: 1px solid rgba(196,154,60,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.mia-capability .cap-text {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--gray-300);
  line-height: 1.4;
}
.mia-capability .cap-text strong {
  color: var(--white);
  font-weight: 600;
}

/* Chat header text */
.chat-header .header-text { flex: 1; }
.chat-header .header-title { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--white); }
.chat-header .header-sub { font-family: var(--font-body); font-size: 11px; color: var(--gray-400); margin-top: 1px; }
.chat-header .header-sub .online-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 4px;
  vertical-align: middle;
}

/* Progress indicator */
.chat-progress { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 20px; flex-shrink: 0; }
.chat-progress .step-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.chat-progress .step-dot.active { background: var(--gold); box-shadow: 0 0 8px rgba(196,154,60,0.4); }
.chat-progress .step-dot.done { background: var(--gold); opacity: 0.5; }
.chat-progress .step-label { font-family: var(--font-mono); font-size: 10px; color: var(--gray-500); margin-left: 6px; letter-spacing: 0.05em; }

/* Chat area */
.chat-area { flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 10px; }

/* Message rows */
.msg-row { display: flex; gap: 8px; animation: fadeInUp 0.4s ease both; }
.msg-row.ai { align-items: flex-start; }
.msg-row.user { justify-content: flex-end; }
.msg-row .avatar-col { flex-shrink: 0; padding-top: 2px; }

/* Message bubbles */
.msg-bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; position: relative; }
.msg-bubble.ai-bubble {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--gold);
  color: var(--white);
  border-radius: 4px 16px 16px 4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.msg-bubble.user-bubble {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  border-radius: 16px 16px 4px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Message badges */
.msg-badge { display: inline-block; padding: 2px 8px; border-radius: 8px; font-family: var(--font-head); font-weight: 600; font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.msg-badge.educational { background: rgba(99,130,150,0.25); color: #8EAEC0; border: 1px solid rgba(99,130,150,0.3); }
.msg-badge.personalized { background: linear-gradient(135deg, rgba(196,154,60,0.2), rgba(196,154,60,0.08)); color: var(--gold-light); border: 1px solid rgba(196,154,60,0.3); }

/* Typing dots */
.typing-dots {
  display: flex; gap: 4px;
  padding: 10px 14px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--gold);
  border-radius: 4px 16px 16px 4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.typing-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: typingBounce 1.4s ease-in-out infinite; }
.typing-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dots .dot:nth-child(3) { animation-delay: 0.4s; }

/* Quick-reply chips */
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 4px 36px; animation: chipPop 0.4s ease both; }
.chip {
  padding: 7px 14px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11.5px;
  color: var(--gray-300);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.chip:hover { border-color: rgba(196,154,60,0.4); color: var(--gold-light); }
.chip.selected { background: linear-gradient(135deg, rgba(196,154,60,0.2), rgba(196,154,60,0.08)); border-color: var(--gold); color: var(--gold-light); box-shadow: 0 0 12px rgba(196,154,60,0.15); }
.chip.btn-gold-cta { background: var(--gold-gradient); border-color: var(--gold); color: var(--black); font-weight: 700; }

/* Card carousel */
.card-carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 0 6px 36px; scrollbar-width: none; }
.card-carousel::-webkit-scrollbar { display: none; }
.carousel-card {
  flex-shrink: 0; width: 120px; padding: 14px 12px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  scroll-snap-align: start;
  cursor: pointer;
  transition: all 0.25s ease;
  animation: cardSlideIn 0.4s ease both;
}
.carousel-card:nth-child(2) { animation-delay: 0.08s; }
.carousel-card:nth-child(3) { animation-delay: 0.16s; }
.carousel-card:nth-child(4) { animation-delay: 0.24s; }
.carousel-card:nth-child(5) { animation-delay: 0.32s; }
.carousel-card .card-icon { font-size: 28px; margin-bottom: 6px; }
.carousel-card .card-title { font-family: var(--font-head); font-weight: 600; font-size: 11.5px; color: var(--white); }
.carousel-card.selected { border-color: var(--gold); background: rgba(196,154,60,0.1); box-shadow: 0 0 16px rgba(196,154,60,0.15); }

/* Inline widget */
.inline-widget { margin: 4px 0 4px 36px; padding: 14px 16px; border-radius: 14px; background: var(--glass-bg-strong); border: 1px solid var(--glass-border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: slideUp 0.5s ease both; }

/* Chat input bar */
.chat-input-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px 28px; border-top: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.chat-input {
  flex: 1; padding: 10px 16px;
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input:focus, .chat-input.focused { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,154,60,0.1); }
.chat-input::placeholder { color: var(--gray-600); }

.send-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(196,154,60,0.3);
  transition: transform 0.15s;
}
.send-btn:hover { transform: scale(1.08); }
.send-btn svg { width: 16px; height: 16px; fill: var(--black); }

/* Slider widget */
.widget-slider-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.widget-slider-row .slider-label { font-family: var(--font-head); font-weight: 600; font-size: 10px; color: var(--gray-400); min-width: 60px; text-transform: uppercase; letter-spacing: 0.05em; }
.widget-slider-row .slider-track { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); position: relative; }
.widget-slider-row .slider-fill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 2px; background: var(--gold-gradient); }
.widget-slider-row .slider-thumb { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 2px solid var(--black); box-shadow: 0 0 0 4px rgba(196,154,60,0.15); animation: sliderThumbPulse 2s ease-in-out infinite; }
.widget-slider-row .slider-value { font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--gold-light); min-width: 50px; text-align: right; }

/* Result card */
.result-card { margin: 4px 0 4px 36px; padding: 14px 16px; border-radius: 14px; background: var(--glass-bg-strong); border: 1px solid rgba(196,154,60,0.2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: slideUp 0.5s ease both; }
.result-card .result-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.result-card .result-label { font-size: 12px; color: var(--gray-400); }
.result-card .result-value { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--white); }
.result-card .result-value.gold { background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; }

/* Action button row */
.action-btn-row { display: flex; gap: 8px; margin: 6px 0 2px 36px; animation: chipPop 0.4s ease both; }
.action-btn { padding: 9px 16px; border-radius: 12px; font-family: var(--font-head); font-weight: 700; font-size: 12px; border: none; cursor: pointer; transition: all 0.2s; }
.action-btn.primary { background: var(--gold-gradient); color: var(--black); box-shadow: 0 2px 12px rgba(196,154,60,0.25); }
.action-btn.secondary { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: var(--gray-300); }

/* Service card */
.service-card { flex-shrink: 0; width: 220px; padding: 18px 16px; border-radius: 16px; background: var(--glass-bg-strong); border: 1px solid var(--glass-border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); scroll-snap-align: start; animation: cardSlideIn 0.5s ease both; }
.service-card.recommended { border-color: var(--gold); background: rgba(196,154,60,0.06); }
.service-card .rec-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-family: var(--font-head); font-weight: 700; font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--gold-gradient); color: var(--black); margin-bottom: 8px; }
.service-card .sc-title { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--white); margin-bottom: 4px; }
