*{box-sizing:border-box}html,body{height:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,'Noto Sans',sans-serif;background:#0b1220;color:#e6e8ee}
#av-bubble{position:fixed;right:18px;bottom:18px;height:56px;width:56px;border-radius:999px;border:0;background:#6366f1;color:#fff;font-size:24px;cursor:pointer;box-shadow:0 10px 30px rgba(99,102,241,.35);z-index:99999}
#av-bubble:hover{filter:brightness(1.1)}
#av-chat{position:fixed;right:18px;bottom:86px;width:340px;max-height:70vh;display:flex;flex-direction:column;background:#0f162a;border:1px solid rgba(255,255,255,.08);border-radius:14px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.5);z-index:99999}
#av-chat.hidden{display:none}
.av-header{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:linear-gradient(90deg,#374151,#1f2937);color:#fff}
.av-title{font-weight:600}
#av-close{background:transparent;border:0;color:#cbd5e1;font-size:18px;cursor:pointer}
.av-messages{padding:12px;display:flex;flex-direction:column;gap:10px;overflow:auto}
.av-form{display:flex;gap:8px;padding:10px;border-top:1px solid rgba(255,255,255,.06);background:#0b1220}
.av-form input{flex:1;background:#0f162a;border:1px solid rgba(255,255,255,.08);color:#fff;border-radius:8px;padding:10px}
.av-form button{background:#22c55e;border:0;color:#07121f;border-radius:8px;padding:10px 14px;font-weight:600;cursor:pointer}
.msg{display:flex;gap:8px;align-items:flex-end}
.msg.bot .bubble{background:rgba(99,102,241,.15);border:1px solid rgba(99,102,241,.35);color:#eef2ff}
.msg.user{justify-content:flex-end}
.bubble{max-width:80%;padding:10px 12px;border-radius:14px;line-height:1.3}
.msg.user .bubble{background:rgba(34,197,94,.18);border:1px solid rgba(34,197,94,.35)}
.meta{font-size:11px;color:#94a3b8;margin-top:2px}
.av-suggest{display:flex;gap:6px;flex-wrap:wrap;padding:10px;border-top:1px solid rgba(255,255,255,.06);background:#0b1220}
.av-suggest .suggest{background:transparent;border:1px dashed rgba(255,255,255,.15);color:#cbd5e1;border-radius:999px;padding:6px 10px;cursor:pointer}
.typing{opacity:.7;font-style:italic}
