:root {
    --wowbot-color: #6d5dfc;
}

.wowbot-root,
.wowbot-root *,
.wowbot-root *::before,
.wowbot-root *::after {
    box-sizing: border-box;
}

.wowbot-root {
    position: fixed;
    bottom: 20px;
    z-index: 2147483000;
    width: 82px;
    height: 82px;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.4;
    color: #242438;
    -webkit-font-smoothing: antialiased;
}

.wowbot-root.wowbot-right { right: 20px; }
.wowbot-root.wowbot-left { left: 20px; }
.wowbot-root[hidden] { display: none !important; }

.wowbot-launcher {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding: 0;
    border: 0;
    border-radius: 29px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--wowbot-color) 88%, #fff), color-mix(in srgb, var(--wowbot-color) 72%, #17152c));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 18px 45px rgba(33, 28, 79, .26), inset 0 1px 0 rgba(255, 255, 255, .28);
    opacity: 0;
    overflow: visible;
    transform: translateY(130px) rotate(18deg) scale(.68);
    transform-origin: 50% 100%;
    transition: filter .2s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.wowbot-left .wowbot-launcher { left: 0; right: auto; }
.wowbot-launcher:hover { filter: brightness(1.04); box-shadow: 0 21px 52px rgba(33, 28, 79, .32), inset 0 1px 0 rgba(255, 255, 255, .32); }
.wowbot-launcher.has-arrived { animation: wowbot-jump-in 1.05s cubic-bezier(.2, .8, .2, 1) both, wowbot-idle-float 4.3s ease-in-out 1.15s infinite; }
.wowbot-launcher.wowbot-force-visible { opacity: 1 !important; }

.wowbot-launcher-ring {
    position: absolute;
    inset: -6px;
    border: 2px solid color-mix(in srgb, var(--wowbot-color) 54%, transparent);
    border-radius: 34px;
    pointer-events: none;
    animation: wowbot-pulse 2.8s ease-out infinite;
}

.wowbot-creature {
    position: relative;
    display: block;
    width: 58px;
    height: 61px;
    transform-origin: 50% 76%;
}

.wowbot-face {
    position: absolute;
    left: 5px;
    top: 8px;
    width: 48px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, .38);
    border-radius: 20px 20px 18px 18px;
    background: linear-gradient(150deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
    box-shadow: inset 0 1px 7px rgba(255,255,255,.12), 0 5px 12px rgba(20, 18, 52, .16);
}

.wowbot-ear {
    position: absolute;
    top: 5px;
    width: 15px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.38);
    background: rgba(255,255,255,.13);
    z-index: -1;
}
.wowbot-ear-left { left: 3px; border-radius: 13px 4px 9px 6px; transform: rotate(-22deg); }
.wowbot-ear-right { right: 3px; border-radius: 4px 13px 6px 9px; transform: rotate(22deg); }

.wowbot-eye {
    position: absolute;
    top: 15px;
    width: 7px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,.85);
    transform-origin: center;
    animation: wowbot-blink 5.2s infinite;
}
.wowbot-eye-left { left: 11px; }
.wowbot-eye-right { right: 11px; }

.wowbot-brow {
    position: absolute;
    top: 9px;
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255,255,255,.72);
}
.wowbot-brow-left { left: 9px; transform: rotate(5deg); }
.wowbot-brow-right { right: 9px; transform: rotate(-5deg); }

.wowbot-mouth {
    position: absolute;
    left: 18px;
    bottom: 7px;
    width: 12px;
    height: 6px;
    border-bottom: 2px solid rgba(255,255,255,.9);
    border-radius: 0 0 50% 50%;
}

.wowbot-antenna {
    position: absolute;
    left: 28px;
    top: -2px;
    width: 3px;
    height: 13px;
    border-radius: 3px;
    background: #fff;
    transform: rotate(7deg);
    transform-origin: bottom;
}
.wowbot-antenna i {
    position: absolute;
    left: -3px;
    top: -5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #8fffe0;
    box-shadow: 0 0 12px #8fffe0;
}

.wowbot-paw {
    position: absolute;
    bottom: 1px;
    width: 18px;
    height: 11px;
    border: 2px solid rgba(255,255,255,.34);
    border-radius: 12px 12px 8px 8px;
    background: rgba(255,255,255,.12);
}
.wowbot-paw-left { left: 8px; transform: rotate(-5deg); }
.wowbot-paw-right { right: 8px; transform: rotate(5deg); }

.wowbot-tail {
    position: absolute;
    right: -4px;
    bottom: 7px;
    width: 15px;
    height: 23px;
    border-right: 4px solid rgba(255,255,255,.65);
    border-bottom: 4px solid rgba(255,255,255,.65);
    border-radius: 0 0 16px 0;
    transform: rotate(-16deg);
    transform-origin: top;
    animation: wowbot-tail-wag 3.8s ease-in-out infinite;
    z-index: -1;
}

.wowbot-body-mark {
    position: absolute;
    left: 22px;
    bottom: 0;
    display: grid;
    place-items: center;
    width: 15px;
    height: 15px;
    color: #fff;
    font-size: 11px;
    text-shadow: 0 0 9px rgba(255,255,255,.92);
}

.wowbot-online-dot {
    position: absolute;
    right: 3px;
    top: 3px;
    width: 13px;
    height: 13px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #40e59b;
    box-shadow: 0 0 0 3px rgba(64,229,155,.18);
}

.wowbot-sparks {
    position: absolute;
    inset: -9px;
    pointer-events: none;
}
.wowbot-sparks i {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    box-shadow: 0 0 9px #fff;
}
.wowbot-sparks i:nth-child(1) { top: 3px; left: 11px; }
.wowbot-sparks i:nth-child(2) { top: 16px; right: 2px; }
.wowbot-sparks i:nth-child(3) { bottom: 4px; left: 1px; }

.wowbot-teaser {
    position: absolute;
    bottom: 98px;
    width: min(322px, calc(100vw - 42px));
    padding: 14px 43px 14px 15px;
    border: 1px solid rgba(32, 29, 57, .09);
    border-radius: 20px 20px 5px 20px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 20px 58px rgba(28, 24, 63, .2);
    color: #252437;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(13px) scale(.95) rotate(1deg);
    transform-origin: bottom right;
    transition: opacity .23s ease, transform .28s cubic-bezier(.2,.8,.2,1);
    backdrop-filter: blur(18px);
}
.wowbot-right .wowbot-teaser { right: 2px; }
.wowbot-left .wowbot-teaser { left: 2px; right: auto; border-radius: 20px 20px 20px 5px; transform-origin: bottom left; }
.wowbot-teaser::after {
    content: "↗";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: color-mix(in srgb, var(--wowbot-color) 10%, white);
    color: var(--wowbot-color);
    font-weight: 800;
    transform: translateY(-50%);
}
.wowbot-teaser.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1) rotate(0); }
.wowbot-teaser.is-section { border-left: 4px solid var(--wowbot-color); }
.wowbot-teaser.is-cta { border-left: 4px solid #34c98b; }
.wowbot-teaser-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--wowbot-color);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.wowbot-teaser-text {
    display: block;
    color: #28273a;
    font-size: 14px;
    font-weight: 720;
    line-height: 1.42;
}
.wowbot-teaser-hint {
    display: block;
    margin-top: 6px;
    color: #8a8999;
    font-size: 10px;
    font-weight: 600;
}

.wowbot-panel {
    position: absolute;
    bottom: 98px;
    width: 382px;
    height: min(625px, calc(100vh - 135px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(30, 28, 54, .1);
    border-radius: 27px;
    background: rgba(252,252,255,.99);
    box-shadow: 0 32px 100px rgba(26, 22, 67, .29);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(.94);
    transform-origin: bottom right;
    transition: opacity .24s ease, transform .31s cubic-bezier(.2,.8,.2,1), visibility .24s;
    backdrop-filter: blur(20px);
}
.wowbot-right .wowbot-panel { right: 0; }
.wowbot-left .wowbot-panel { left: 0; transform-origin: bottom left; }
.wowbot-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.wowbot-header {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 75px;
    padding: 14px 16px;
    color: #fff;
    background: linear-gradient(125deg, color-mix(in srgb, var(--wowbot-color) 88%, #131225), var(--wowbot-color) 57%, #25243d);
    box-shadow: 0 8px 32px rgba(30,20,90,.16);
}
.wowbot-header strong { display: block; font-size: 15px; letter-spacing: .01em; }
.wowbot-header span { display: block; margin-top: 1px; color: rgba(255,255,255,.76); font-size: 10.5px; }
.wowbot-mini-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(255,255,255,.27);
    border-radius: 16px;
    background: rgba(255,255,255,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.26);
    animation: wowbot-mini-breathe 3.8s ease-in-out infinite;
}
.wowbot-mini-avatar span { color: #fff; font-size: 19px; text-shadow: 0 0 10px #fff; }
.wowbot-close {
    margin-left: auto;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.11);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.wowbot-close:hover { background: rgba(255,255,255,.2); }

.wowbot-context-strip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(30,30,50,.07);
    background: color-mix(in srgb, var(--wowbot-color) 6%, white);
    color: #6f6d82;
    font-size: 10px;
}
.wowbot-context-strip[hidden] { display: none; }
.wowbot-context-strip span { color: var(--wowbot-color); font-size: 8px; animation: wowbot-context-pulse 1.8s ease infinite; }
.wowbot-context-strip strong { max-width: 310px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wowbot-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 17px 15px 10px;
    scroll-behavior: smooth;
    background:
        radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--wowbot-color) 5%, transparent), transparent 28%),
        #fbfbfe;
}
.wowbot-message { display: flex; margin: 0 0 11px; animation: wowbot-message-in .26s ease both; }
.wowbot-message > div {
    max-width: 86%;
    padding: 11px 13px;
    border-radius: 17px;
    font-size: 14px;
    line-height: 1.44;
    box-shadow: 0 5px 17px rgba(24,20,61,.055);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.wowbot-message > div > span:last-child { display: block; }
.wowbot-message-bot { justify-content: flex-start; }
.wowbot-message-bot > div { border: 1px solid rgba(30,30,50,.07); border-bottom-left-radius: 5px; background: #fff; color: #29283b; }
.wowbot-message-user { justify-content: flex-end; }
.wowbot-message-user > div { border-bottom-right-radius: 5px; background: var(--wowbot-color); color: #fff; }
.wowbot-message-observation > div {
    border-left: 3px solid var(--wowbot-color);
    background: linear-gradient(145deg, color-mix(in srgb, var(--wowbot-color) 6%, white), #fff);
}
.wowbot-message-badge {
    display: inline-flex !important;
    margin: 0 0 6px;
    color: var(--wowbot-color);
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: .11em;
}

.wowbot-typing {
    align-self: flex-start;
    margin: 0 15px 10px;
    padding: 10px 13px;
    border: 1px solid rgba(30,30,50,.07);
    border-radius: 16px 16px 16px 5px;
    background: #fff;
}
.wowbot-typing[hidden] { display: none; }
.wowbot-typing i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--wowbot-color); animation: wowbot-dot 1s infinite ease-in-out; }
.wowbot-typing i:nth-child(2) { animation-delay: .14s; }
.wowbot-typing i:nth-child(3) { animation-delay: .28s; }

.wowbot-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 12px 11px;
    background: #fbfbfe;
}
.wowbot-quick-replies[hidden] { display: none; }
.wowbot-quick-reply {
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid color-mix(in srgb, var(--wowbot-color) 30%, #ddd);
    border-radius: 999px;
    background: #fff;
    color: color-mix(in srgb, var(--wowbot-color) 78%, #202033);
    font: inherit;
    font-size: 11.5px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}
.wowbot-quick-reply:hover { transform: translateY(-1px); background: var(--wowbot-color); color: #fff; }

.wowbot-input-row {
    display: flex;
    gap: 8px;
    padding: 11px 12px 7px;
    border-top: 1px solid rgba(30,30,50,.08);
    background: #fff;
}
.wowbot-input-row input {
    flex: 1;
    min-width: 0;
    height: 45px;
    padding: 0 14px;
    border: 1px solid #dedee8;
    border-radius: 15px;
    background: #f8f8fc;
    color: #242438;
    font: inherit;
    font-size: 14px;
    outline: none;
    box-shadow: none;
}
.wowbot-input-row input:focus { border-color: var(--wowbot-color); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--wowbot-color) 12%, transparent); }
.wowbot-input-row input:disabled { opacity: .62; }
.wowbot-input-row button {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    border: 0;
    border-radius: 15px;
    background: var(--wowbot-color);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}
.wowbot-input-row button:hover { transform: translateX(2px); filter: brightness(.96); }
.wowbot-privacy-note { padding: 0 12px 10px; background: #fff; color: #8a8a9a; text-align: center; font-size: 9.5px; }

.wowbot-launcher[class*="wowbot-react-"] .wowbot-sparks i { animation: wowbot-spark-pop .85s ease both; }
.wowbot-launcher[class*="wowbot-react-"] .wowbot-sparks i:nth-child(2) { animation-delay: .1s; }
.wowbot-launcher[class*="wowbot-react-"] .wowbot-sparks i:nth-child(3) { animation-delay: .2s; }

.wowbot-launcher.wowbot-react-hero .wowbot-creature { animation: wowbot-reaction-hop 1.25s cubic-bezier(.2,.8,.2,1); }
.wowbot-launcher.wowbot-react-pricing .wowbot-creature { animation: wowbot-reaction-shiver 1.15s ease; }
.wowbot-launcher.wowbot-react-pricing .wowbot-eye { height: 7px; border-radius: 2px; }
.wowbot-launcher.wowbot-react-proof .wowbot-creature { animation: wowbot-reaction-nod 1.25s ease; }
.wowbot-launcher.wowbot-react-feature .wowbot-creature { animation: wowbot-reaction-scan 1.3s ease; }
.wowbot-launcher.wowbot-react-about .wowbot-creature { animation: wowbot-reaction-peek 1.35s ease; }
.wowbot-launcher.wowbot-react-faq .wowbot-creature { animation: wowbot-reaction-tilt 1.25s ease; }
.wowbot-launcher.wowbot-react-contact .wowbot-creature,
.wowbot-launcher.wowbot-react-cta .wowbot-creature { animation: wowbot-reaction-point 1.35s ease; }
.wowbot-launcher.wowbot-react-portfolio .wowbot-creature { animation: wowbot-reaction-spin 1.25s ease; }
.wowbot-launcher.wowbot-react-content .wowbot-creature { animation: wowbot-reaction-think 1.35s ease; }
.wowbot-launcher.wowbot-react-generic .wowbot-creature { animation: wowbot-reaction-bounce 1.25s ease; }
.wowbot-launcher.wowbot-react-scroll-down .wowbot-creature { transform: rotate(4deg) translateY(2px); }
.wowbot-launcher.wowbot-react-scroll-up .wowbot-creature { transform: rotate(-4deg) translateY(-2px); }

.wowbot-energy-calm .wowbot-launcher[class*="wowbot-react-"] .wowbot-creature { animation-duration: 1.7s; }
.wowbot-energy-wild .wowbot-launcher[class*="wowbot-react-"] .wowbot-creature { animation-duration: .95s; }
.wowbot-energy-wild .wowbot-launcher-ring { animation-duration: 1.8s; }

@keyframes wowbot-jump-in {
    0% { opacity: 0; transform: translateY(135px) rotate(18deg) scale(.65); }
    54% { opacity: 1; transform: translateY(-28px) rotate(-9deg) scale(1.09); }
    72% { transform: translateY(10px) rotate(5deg) scale(.96); }
    87% { transform: translateY(-8px) rotate(-2deg) scale(1.03); }
    100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
@keyframes wowbot-idle-float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-1.7deg); } }
@keyframes wowbot-pulse { 0% { opacity: .54; transform: scale(.91); } 80%,100% { opacity: 0; transform: scale(1.24); } }
@keyframes wowbot-blink { 0%,44%,48%,100% { transform: scaleY(1); } 46% { transform: scaleY(.12); } }
@keyframes wowbot-tail-wag { 0%,100% { transform: rotate(-16deg); } 50% { transform: rotate(9deg); } }
@keyframes wowbot-mini-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes wowbot-context-pulse { 0%,100% { opacity: .45; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes wowbot-message-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes wowbot-dot { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes wowbot-spark-pop { 0% { opacity: 0; transform: scale(.2); } 45% { opacity: 1; transform: scale(1.4); } 100% { opacity: 0; transform: translateY(-9px) scale(.7); } }
@keyframes wowbot-reaction-hop { 0%,100% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-18px) rotate(-8deg) scale(1.08); } 62% { transform: translateY(3px) rotate(4deg) scale(.98); } }
@keyframes wowbot-reaction-shiver { 0%,100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-4px) rotate(-3deg); } 35% { transform: translateX(5px) rotate(3deg); } 50% { transform: translateX(-4px) rotate(-2deg); } 66% { transform: translateX(3px) rotate(2deg); } }
@keyframes wowbot-reaction-nod { 0%,100% { transform: rotate(0) translateY(0); } 25% { transform: rotate(0) translateY(5px) scaleY(.96); } 48% { transform: rotate(0) translateY(-3px); } 70% { transform: translateY(3px); } }
@keyframes wowbot-reaction-scan { 0%,100% { transform: translateX(0) rotate(0); } 28% { transform: translateX(-8px) rotate(-5deg); } 56% { transform: translateX(8px) rotate(5deg); } 78% { transform: translateX(-2px); } }
@keyframes wowbot-reaction-peek { 0%,100% { transform: translateX(0) rotate(0); } 35% { transform: translateX(13px) rotate(9deg); } 60% { transform: translateX(8px) rotate(5deg); } }
@keyframes wowbot-reaction-tilt { 0%,100% { transform: rotate(0); } 35% { transform: rotate(-15deg) translateY(-2px); } 62% { transform: rotate(8deg); } }
@keyframes wowbot-reaction-point { 0%,100% { transform: translateX(0) rotate(0); } 34% { transform: translateX(-10px) rotate(-9deg) scale(1.05); } 60% { transform: translateX(-6px) rotate(-5deg); } }
@keyframes wowbot-reaction-spin { 0% { transform: rotate(0) scale(1); } 55% { transform: rotate(360deg) scale(1.08); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes wowbot-reaction-think { 0%,100% { transform: rotate(0) translateY(0); } 30% { transform: rotate(-9deg) translateY(-4px); } 58% { transform: rotate(-9deg) translateY(-4px) scale(1.04); } }
@keyframes wowbot-reaction-bounce { 0%,100% { transform: translateY(0); } 28% { transform: translateY(-12px) scale(1.05); } 54% { transform: translateY(3px) scale(.98); } 73% { transform: translateY(-5px); } }

@media (max-width: 600px) {
    .wowbot-root { bottom: 13px; width: 72px; height: 72px; }
    .wowbot-root.wowbot-right { right: 13px; }
    .wowbot-root.wowbot-left { left: 13px; }
    .wowbot-launcher { width: 72px; height: 72px; border-radius: 25px; }
    .wowbot-creature { transform: scale(.9); }
    .wowbot-launcher-ring { border-radius: 30px; }
    .wowbot-panel { position: fixed; left: 9px !important; right: 9px !important; bottom: 91px; width: auto; height: min(630px, calc(100vh - 108px)); border-radius: 23px; transform-origin: bottom center; }
    .wowbot-teaser { position: fixed; left: 13px !important; right: 13px !important; bottom: 91px; width: auto; }
    .wowbot-message > div { max-width: 88%; }
}

@media (prefers-reduced-motion: reduce) {
    .wowbot-root *,
    .wowbot-root *::before,
    .wowbot-root *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
