/*
 * Vinfoz's Buddhi AI on vinfoz.com — the app's own mascot, one-to-one: vinfoz-app
 * projects/vz-ui-lib/src/lib/buddhi/buddhi.component.ts (markup in includes/buddhi.php).
 * Copied, not redrawn, so the site's Buddhi is the one shops see; change both together.
 * Every rule sits under .bd-host so the site's own classes never reach in.
 */
.bd-host { --bd-t: 1s; display: inline-block; position: relative; width: var(--bd-size); height: var(--bd-size); }
.bd-host .bd-stage { position: absolute; left: 0; top: 0; width: 150px; height: 150px; transform-origin: 0 0; }
.bd-host .bd-morph { width: 150px; height: 150px; transform-origin: 50% 85%; }
.bd-host .morph-a { animation: bd-morph-a var(--bd-t) ease-in-out; }
.bd-host .morph-b { animation: bd-morph-b var(--bd-t) ease-in-out; }
.bd-host .bd-drop {
  position: relative; width: 150px; height: 150px; border-radius: 50%;
  backdrop-filter: blur(6px) saturate(200%); -webkit-backdrop-filter: blur(6px) saturate(200%);
  background: radial-gradient(circle at 50% 120%, rgba(46,125,50,.22) 0%, rgba(255,255,255,.02) 55%),
              radial-gradient(circle at 50% 50%, rgba(255,255,255,.06), rgba(255,255,255,.01) 70%);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 20px 44px rgba(0,0,0,.3), inset 0 3px 3px rgba(255,255,255,.85), inset 0 -14px 22px rgba(46,125,50,.22),
              inset 10px 0 18px rgba(255,255,255,.12), inset -10px 0 18px rgba(255,255,255,.08);
}
.bd-host .bd-shine { position: absolute; left: 30px; top: 13px; width: 72px; height: 30px; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,0)); transform: rotate(-14deg); }
.bd-host .bd-spark { position: absolute; right: 28px; top: 34px; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.95); }
.bd-host .bd-face { position: absolute; inset: 0; overflow: visible; }
.bd-host .ball { fill: #fff; fill-opacity: .92; stroke: #0f3d1a; stroke-opacity: .25; stroke-width: 1.5; }
.bd-host .line, .bd-host .line path { fill: none; stroke: #0f3d1a; stroke-linecap: round; stroke-linejoin: round; }
.bd-host .blush { fill: #fda4af; filter: blur(3px); }

/* every part morphs: hidden = faded + shrunk, shown = full */
.bd-host .p { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center;
     transition: opacity var(--bd-t) ease, transform var(--bd-t) cubic-bezier(.34,1.56,.64,1); }
.bd-host .x-think, .bd-host .x-found, .bd-host .x-thumb, .bd-host .x-oops, .bd-host .x-scan { position: absolute; inset: 0; transform-origin: 75px 75px; pointer-events: none; }
.bd-host .x-scan { border-radius: 50%; overflow: hidden; }
.bd-host .blink, .bd-host .pupil { transform-box: fill-box; transform-origin: center; }

/* idle */
.bd-host .m-idle .eyeL, .bd-host .m-idle .eyeR, .bd-host .m-idle .mSmile { opacity: 1; transform: none; }
.bd-host .m-idle .cheeks { opacity: .4; transform: none; }
.bd-host .m-idle .blink { animation: bd-blink 4.5s infinite; }
.bd-host .m-idle .bd-drop { animation: bd-bob 3.2s ease-in-out infinite; }

/* thinking: eyes grow and look up, brows rise, small o */
.bd-host .m-thinking .brows, .bd-host .m-thinking .mO, .bd-host .m-thinking .x-think { opacity: 1; transform: none; }
.bd-host .m-thinking .eyeL { opacity: 1; transform: translate(-1px, -8px) scale(1.15); }
.bd-host .m-thinking .eyeR { opacity: 1; transform: translate(1px, -8px) scale(1.15); }
.bd-host .m-thinking .pupil { animation: bd-look 4s ease-in-out infinite; }
.bd-host .m-thinking .brows { animation: bd-brow 4s ease-in-out infinite; }
.bd-host .m-thinking .cheeks { opacity: .45; transform: none; }
.bd-host .m-thinking .bd-drop { animation: bd-tilt 2.4s ease-in-out infinite; }

/* found: eyes squeeze into happy arcs, big grin, sparkles */
.bd-host .m-found .eyeL, .bd-host .m-found .eyeR { opacity: 0; transform: scale(1, .1); }
.bd-host .m-found .happyL, .bd-host .m-found .happyR, .bd-host .m-found .mGrin, .bd-host .m-found .x-found { opacity: 1; transform: none; }
.bd-host .m-found .cheeks { opacity: .42; transform: none; }
.bd-host .m-found .bd-drop { animation: bd-hop 1.6s ease-in-out infinite; }

/* thumbs: right eye winks, smile, glass thumb */
.bd-host .m-thumbs .eyeL, .bd-host .m-thumbs .mSmile, .bd-host .m-thumbs .happyR, .bd-host .m-thumbs .x-thumb { opacity: 1; transform: none; }
.bd-host .m-thumbs .eyeR { opacity: 0; transform: scale(1, .1); }
.bd-host .m-thumbs .cheeks { opacity: .4; transform: none; }
.bd-host .m-thumbs .bd-drop { animation: bd-bob 2.4s ease-in-out infinite; }

/* oops: wobble with > < eyes, then eyes pop open, and again */
.bd-host .m-oops .mOops, .bd-host .m-oops .x-oops { opacity: 1; transform: none; }
.bd-host .m-oops .eyeL, .bd-host .m-oops .eyeR { transform: none; animation: bd-open 2.4s infinite; }
.bd-host .m-oops .shut { transform: none; animation: bd-shut 2.4s infinite; }
.bd-host .m-oops .cheeks { opacity: .55; transform: none; }
.bd-host .m-oops .bd-drop { animation: bd-wobble 2.4s ease-in-out infinite; }

/* sad: eyes droop and look down, brows tilt up in the middle, a frown and a small tear */
.bd-host .m-sad .eyeL, .bd-host .m-sad .eyeR { opacity: 1; transform: translateY(3px) scale(1, .85); }
.bd-host .m-sad .pupil { transform: translateY(3px); }
.bd-host .m-sad .browsSad, .bd-host .m-sad .mFrown, .bd-host .m-sad .tear { opacity: 1; transform: none; }
.bd-host .m-sad .cheeks { opacity: .25; transform: none; }
.bd-host .m-sad .tear-drop { animation: bd-tear 2s ease-in infinite; }
.bd-host .m-sad .bd-drop { animation: bd-droop 2.4s ease-in-out infinite; }

/* scanning: wide dark eyes, small mouth, scan line */
.bd-host .m-scanning .eyeL, .bd-host .m-scanning .eyeR { opacity: 1; transform: none; }
.bd-host .m-scanning .pupil { transform: scale(1.8); }
.bd-host .m-scanning .mSmall, .bd-host .m-scanning .x-scan { opacity: 1; transform: none; }
.bd-host .m-scanning .bd-drop { animation: bd-bob 3.6s ease-in-out infinite; }
.bd-host .pupil { transition: transform var(--bd-t) cubic-bezier(.34,1.56,.64,1); }

.bd-host .bd-scanline { position: absolute; left: 12%; right: 12%; height: 3px; border-radius: 3px; background: #86efac; box-shadow: 0 0 12px #4ade80, 0 0 4px #bbf7d0; animation: bd-scan 2.2s ease-in-out infinite; }
.bd-host .glass-dot { position: absolute; border-radius: 50%; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.7); }
.bd-host .tb1 { left: 112px; top: 4px; width: 7px; height: 7px; animation: bd-bub 2s ease-in-out infinite; }
.bd-host .tb2 { left: 120px; top: -12px; width: 11px; height: 11px; animation: bd-bub 2s .3s ease-in-out infinite; }
.bd-host .glass-pill { position: absolute; left: 118px; top: -44px; display: flex; gap: 5px; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 1px 1px rgba(255,255,255,.8); animation: bd-bub 2s .6s ease-in-out infinite; }
.bd-host .d { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: bd-dot 1.2s infinite; }
.bd-host .d2 { animation-delay: .2s; } .d3 { animation-delay: .4s; }
.bd-host .star { position: absolute; animation: bd-pop 1.6s infinite; }
.bd-host .p2 { animation-delay: .35s; } .p3 { animation-delay: .7s; }
.bd-host .glass-ball { position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 2px 2px rgba(255,255,255,.8); display: flex; align-items: center; justify-content: center; }
.bd-host .thumb { left: 123px; top: 70px; width: 62px; height: 62px; box-shadow: inset 0 2px 2px rgba(255,255,255,.8), 0 10px 20px rgba(0,0,0,.35); transform-origin: 20% 90%; animation: bd-thumb 2.4s ease-in-out infinite; }
.bd-host .qmark { left: -21px; top: 4px; width: 44px; height: 44px; font: 700 24px/1 Inter, system-ui, sans-serif; color: #fde68a; animation: bd-qfloat 2.4s ease-in-out infinite; }
.bd-host .sweat { position: absolute; left: 121px; top: 30px; animation: bd-drip 2.6s ease-in infinite; }

@keyframes bd-morph-a { 0% { transform: scale(1,1) } 25% { transform: scale(1.08,.9) } 50% { transform: scale(.96,1.05) } 75% { transform: scale(1.02,.98) } 100% { transform: scale(1,1) } }
@keyframes bd-morph-b { 0% { transform: scale(1,1) } 25% { transform: scale(1.08,.9) } 50% { transform: scale(.96,1.05) } 75% { transform: scale(1.02,.98) } 100% { transform: scale(1,1) } }
@keyframes bd-bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }
@keyframes bd-blink { 0%,90%,100% { transform: scaleY(1) } 94% { transform: scaleY(.1) } }
@keyframes bd-tilt { 0%,100% { transform: rotate(0) translateY(0) } 50% { transform: rotate(5deg) translateY(-4px) } }
@keyframes bd-look { 0%,40%,100% { transform: translate(0,0) } 50%,85% { transform: translate(3px,-1px) } }
@keyframes bd-brow { 0%,40%,100% { transform: translateY(0) } 50%,85% { transform: translateY(-3px) } }
@keyframes bd-dot { 0%,100% { opacity: .25; transform: translateY(0) } 40% { opacity: 1; transform: translateY(-4px) } }
@keyframes bd-bub { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-3px) } }
@keyframes bd-hop { 0%,100% { transform: translateY(0) scale(1,1) } 30% { transform: translateY(-16px) scale(.96,1.04) } 55% { transform: translateY(0) scale(1.06,.94) } 70% { transform: translateY(0) scale(1,1) } }
@keyframes bd-pop { 0%,100% { transform: scale(0); opacity: 0 } 30% { transform: scale(1.15); opacity: 1 } 60% { transform: scale(.9); opacity: .9 } }
@keyframes bd-thumb { 0%,100% { transform: rotate(0) translateY(0) } 20% { transform: rotate(-14deg) translateY(-6px) } 40% { transform: rotate(6deg) translateY(0) } }
@keyframes bd-wobble { 0%,100% { transform: rotate(0) scale(1,1) } 12% { transform: rotate(-8deg) scale(1.05,.95) } 26% { transform: rotate(6deg) scale(.97,1.03) } 40% { transform: rotate(-3deg) scale(1,1) } 50% { transform: rotate(0) scale(1,1) } 58% { transform: scale(1.04,.97) } 64% { transform: scale(1,1) } }
@keyframes bd-shut { 0%,50% { opacity: 1 } 56%,94% { opacity: 0 } 100% { opacity: 1 } }
@keyframes bd-open { 0%,50% { opacity: 0 } 56%,94% { opacity: 1 } 100% { opacity: 0 } }
@keyframes bd-qfloat { 0%,100% { transform: translateY(0) rotate(-8deg); opacity: .9 } 50% { transform: translateY(-8px) rotate(8deg); opacity: 1 } }
@keyframes bd-drip { 0% { transform: translateY(0); opacity: 0 } 20% { opacity: 1 } 100% { transform: translateY(14px); opacity: 0 } }
@keyframes bd-droop { 0%,100% { transform: translateY(2px) scale(1.01,.99) } 50% { transform: translateY(5px) scale(1.03,.97) } }
@keyframes bd-tear { 0% { transform: translateY(0); opacity: 0 } 20% { opacity: 1 } 100% { transform: translateY(12px); opacity: 0 } }
@keyframes bd-scan { 0% { top: 18% } 50% { top: 78% } 100% { top: 18% } }

@media (prefers-reduced-motion: reduce) { .bd-host *, .bd-host *::before, .bd-host *::after { animation: none !important; transition: none !important; } }
  
