@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap";.popup-button{position:fixed;bottom:10px;right:10px;width:72px;height:72px;border:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#6366f1,#8b5cf6,#ec4899);color:#fff;cursor:pointer;transform:translateY(0);transition:transform .2s cubic-bezier(.22,1,.36,1);overflow:hidden}.popup-button:before{content:"";position:absolute;inset:-10px;border-radius:50%;opacity:0;transition:opacity .3s ease;pointer-events:none}.popup-button:hover:before,.popup-button:focus-visible:before{opacity:1}.popup-button:focus-visible{outline:none;outline-offset:4px}.popup-button .icon{width:42px;height:42px;filter:drop-shadow(0 10px 18px rgba(15,23,42,.35))}.popup-button.popup-button--hidden{opacity:0;transform:scale(.7);transform:translateY(10px);pointer-events:none}@media(max-width:680px){.popup-button{bottom:10px;right:10px;width:68px;height:68px}}:root{--chat-widget-spacing: 20px;--chat-widget-button-size: 80px;--chat-widget-button-gap: 16px;--chat-brand-primary: #6366f1;--chat-brand-primary-strong: #4f46e5;--chat-brand-accent: #ec4899;--chat-brand-soft: rgba(99, 102, 241, .16);--chat-surface: rgba(255, 255, 255, .94);--chat-surface-muted: rgba(248, 250, 252, .9);--chat-border: rgba(148, 163, 184, .28);--chat-border-strong: rgba(148, 163, 184, .45);--chat-shadow: 0 3px 8px -4px rgba(3, 7, 5, .45);--chat-shadow-soft: 0 18px 45px -20px rgba(99, 102, 241, .45);--chat-radius-lg: 22px;--chat-radius-md: 16px;--chat-radius-pill: 999px;--chat-glass-blur: 18px;--chat-message-user: linear-gradient( 135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100% );--chat-message-user-glow: rgba(236, 72, 153, .25);--chat-message-bot: #ffffff;--chat-message-system: rgba(99, 102, 241, .12);--chat-scrollbar-track: rgba(226, 232, 240, .6);--chat-scrollbar-thumb: rgba(99, 102, 241, .65)}.chat-window{position:fixed;bottom:var(--chat-widget-spacing);right:0;width:min(420px,calc(100vw - 48px));min-height:min(540px,calc(100vh - 160px));max-height:min(720px,calc(100vh - 96px));display:flex;flex-direction:column;border-radius:var(--chat-radius-lg);border:1px solid var(--chat-border);background:#fff;overflow:hidden;-webkit-backdrop-filter:blur(var(--chat-glass-blur));backdrop-filter:blur(var(--chat-glass-blur));transform-origin:bottom right;transition:opacity .2s ease,transform .2s cubic-bezier(.22,1,.36,1),visibility .15s ease;z-index:999999}.chat-window.chat-window--hidden{opacity:0;transform:translate3d(0,24px,0) scale(.98);visibility:hidden;pointer-events:none}.chat-window:not(.chat-window--hidden){opacity:1;transform:translateZ(0) scale(1);visibility:visible;pointer-events:auto}.chat-window.chat-window--full{position:absolute;inset:var(--chat-widget-spacing);bottom:var(--chat-widget-spacing);width:auto;max-width:none;max-height:none;border-radius:var(--chat-radius-lg);border:1px solid var(--chat-border);box-shadow:var(--chat-shadow)}.chat-window.chat-window--full .chat-window__messages{background:#fff}.chat-window.chat-window--full.chat-window--hidden{transform:translate3d(0,18px,0) scale(.97)}.chat-window.chat-window--full:not(.chat-window--hidden){transform:translateZ(0) scale(1)}@supports not (backdrop-filter: blur(1px)){.chat-window{background:#fff}}.chat-window__header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px 18px;background:linear-gradient(135deg,var(--chat-brand-primary) 0%,#8b5cf6 45%,var(--chat-brand-accent) 100%);color:#fff;box-shadow:inset 0 -1px #fff3}.chat-window__header:before{content:"";position:absolute;inset:0;background:linear-gradient(160deg,#ffffff40,#ffffff0d 55%,#fff0);opacity:.65;pointer-events:none}.chat-window__header:after{content:"";position:absolute;inset:8px;border-radius:calc(var(--chat-radius-lg) - 8px);border:1px solid rgba(255,255,255,.16);opacity:.35;pointer-events:none}.chat-window__heading{position:relative;display:flex;align-items:center;gap:16px;z-index:1}.chat-window__avatar{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-weight:700;font-size:.95rem;letter-spacing:.04em;color:#ffffffeb;background:#ffffff3d;box-shadow:0 12px 24px -16px #0f172a73,inset 0 1px #ffffff61;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.chat-window__title-group{display:flex;flex-direction:column;gap:4px}.chat-window__title{margin:0;font-size:1.08rem;font-weight:700;letter-spacing:-.01em}.chat-window__subtitle{margin:0;font-size:.78rem;color:#ffffffe0;max-width:260px}.chat-window__status{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;margin-top:4px;padding:4px 10px;border-radius:var(--chat-radius-pill);background-color:#0f172a47;color:#fffc;font-size:.65rem;letter-spacing:.08em;text-transform:uppercase}.chat-window__status:before{content:"";width:6px;height:6px;border-radius:50%;background-color:#4ade80;box-shadow:0 0 0 4px #4ade803d}.chat-window__actions{display:flex;align-items:center;gap:8px;z-index:1}.chat-window__close{width:32px;height:32px;display:grid;place-items:center;border:none;border-radius:var(--chat-radius-pill);background-color:#ffffff2e;color:#fff;font-size:1.25rem;cursor:pointer;transition:transform .24s ease,background-color .24s ease,box-shadow .24s ease;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.chat-window__close:hover,.chat-window__close:focus-visible{transform:translateY(-1px);background-color:#ffffff52;box-shadow:0 12px 24px -16px #0f172a73}.chat-window__close:focus-visible{outline:2px solid rgba(255,255,255,.55);outline-offset:2px}.chat-window__messages{position:relative;flex:1;overflow-y:auto;background:#fff;padding:24px;display:flex;flex-direction:column;gap:14px;scrollbar-width:thin;scrollbar-color:var(--chat-scrollbar-thumb) var(--chat-scrollbar-track)}.chat-window__messages--typing-active{padding-bottom:96px}.chat-window__messages:after{content:"";position:sticky;bottom:0;left:0;right:0;height:16px;pointer-events:none;background:linear-gradient(0deg,#fffffff2,#fff0)}.chat-window__messages::-webkit-scrollbar{width:8px}.chat-window__messages::-webkit-scrollbar-track{background:var(--chat-scrollbar-track);border-radius:999px}.chat-window__messages::-webkit-scrollbar-thumb{background:var(--chat-scrollbar-thumb);border-radius:999px}.chat-message{display:flex;flex-direction:column;gap:6px;max-width:82%;animation:chat-message-in .32s ease}.chat-message--user{margin-left:auto;align-items:flex-end}.chat-message--bot{align-items:flex-start}.chat-message--system{margin:0 auto;align-items:center}.chat-message__bubble{padding:12px 16px;border-radius:var(--chat-radius-md);background:#f3f4f7;border:1px solid rgba(148,163,184,.18);box-shadow:none;color:#0f172a;line-height:1.4;font-size:.9rem;white-space:pre-wrap;word-break:break-word;letter-spacing:.01em}.chat-message--user .chat-message__bubble{border:none;color:#fff;background:var(--chat-message-user);box-shadow:0 20px 35px -18px var(--chat-message-user-glow)}.chat-message--bot .chat-message__bubble{background:#f3f4f7}.chat-message--system .chat-message__bubble{background:var(--chat-message-system);color:#312e81;border:1px solid rgba(99,102,241,.26)}.chat-message__meta{display:flex;align-items:center;gap:10px;font-size:.75rem;color:#0f172a80}.chat-message--user .chat-message__meta{color:#ffffffc2}.chat-window__input{display:flex;align-items:center;gap:12px;padding:18px 20px 20px;border-top:1px solid rgba(148,163,184,.18);background:var(--chat-surface-muted);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.chat-window__text-field{flex:1;padding:12px 18px;border-radius:var(--chat-radius-pill);border:1px solid rgba(148,163,184,.35);background:#ffffffeb;font-size:.9rem;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}.chat-window__text-field::placeholder{color:#64748bb3}.chat-window__text-field:focus{outline:none;border-color:#6366f1a6;box-shadow:0 0 0 4px #6366f12e}.chat-window__send{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border:none;border-radius:var(--chat-radius-pill);background:linear-gradient(135deg,var(--chat-brand-primary) 0%,var(--chat-brand-accent) 100%);color:#fff;font-weight:600;font-size:.88rem;letter-spacing:.03em;cursor:pointer;box-shadow:var(--chat-shadow-soft);transition:transform .24s ease,box-shadow .24s ease,filter .24s ease}.chat-window__send:after{content:"›";font-size:1rem;transform:translate(0);transition:transform .24s ease}.chat-window__send:hover,.chat-window__send:focus-visible{transform:translateY(-2px);box-shadow:0 26px 45px -22px #6366f18c}.chat-window__send:hover:after,.chat-window__send:focus-visible:after{transform:translate(4px)}.chat-window__send:active{transform:translateY(0);filter:brightness(.95);box-shadow:0 18px 32px -24px #6366f173}.chat-window__send:focus-visible{outline:2px solid rgba(255,255,255,.65);outline-offset:3px}.chat-window__typing-indicator{width:100%;display:none;opacity:0;padding:8px 24px 0;transition:opacity .25s ease}.chat-window__typing-indicator--visible{display:flex;opacity:1}.chat-window__typing-indicator-bubble{display:inline-flex;align-items:center;gap:14px;max-width:84%;padding:10px 16px;border-radius:var(--chat-radius-md);background:#6366f11a;border:1px solid rgba(99,102,241,.18);box-shadow:0 12px 26px -18px #6366f18c;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);margin-bottom:10px}.chat-window__typing-label{font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:#4f46e5bf;font-weight:600}.chat-window__typing-dots{display:inline-flex;align-items:center;gap:8px}.chat-window__typing-dot{width:8px;height:8px;border-radius:999px;background:linear-gradient(135deg,var(--chat-brand-primary),var(--chat-brand-accent));box-shadow:0 0 12px #6366f173;animation:chat-typing-dot 1.2s ease-in-out infinite;animation-delay:calc(var(--dot-index, 0) * .15s);opacity:.45}@keyframes chat-typing-dot{0%{transform:translateY(0);opacity:.4}30%{transform:translateY(-4px);opacity:1}60%{transform:translateY(0);opacity:.6}to{opacity:.4}}@media(prefers-reduced-motion:reduce){.chat-window__typing-dot{animation:none;opacity:.75}}@keyframes chat-message-in{0%{opacity:0;transform:translate3d(0,12px,0) scale(.98)}to{opacity:1;transform:translateZ(0) scale(1)}}@media(prefers-reduced-motion:reduce){.chat-window,.chat-window__send,.chat-message{transition:none!important;animation:none!important}}@media(max-width:680px){.chat-window{right:16px;bottom:var(--chat-widget-spacing);width:calc(100vw - 32px);min-height:min(500px,calc(100vh - 140px));max-height:calc(100vh - 88px)}.chat-window__header{padding:18px 18px 16px}.chat-window__avatar{width:40px;height:40px;border-radius:12px;font-size:.9rem}.chat-window__messages{padding:18px 16px}.chat-window__input{padding:16px}}@media(max-width:480px){.chat-window{border-radius:18px}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,sans-serif}
