.chat-fab{position:fixed;right:18px;bottom:18px;z-index:95;width:62px;height:62px;border-radius:50%;border:0;cursor:pointer;color:#fff;font-size:26px;background:linear-gradient(135deg,#4F35E3,#BE185D);box-shadow:0 14px 34px rgba(79,53,227,.45);animation:fabPulse 2.8s infinite}
@keyframes fabPulse{0%{box-shadow:0 0 0 0 rgba(79,53,227,.45),0 14px 34px rgba(79,53,227,.45)}70%{box-shadow:0 0 0 16px rgba(79,53,227,0),0 14px 34px rgba(79,53,227,.45)}100%{box-shadow:0 0 0 0 rgba(79,53,227,0),0 14px 34px rgba(79,53,227,.45)}}
.chat-tip{position:fixed;right:90px;bottom:30px;z-index:94;background:#fff;color:#1B1F33;padding:10px 14px;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.15);font:600 13px "Plus Jakarta Sans",sans-serif;max-width:220px;animation:tipIn .5s .8s both}
@keyframes tipIn{from{opacity:0;transform:translateY(10px)}}
.wa-float{bottom:92px!important}
.chat-box{position:fixed;right:18px;bottom:92px;z-index:96;width:min(380px,calc(100vw - 24px));height:min(600px,calc(100vh - 120px));background:#fff;border-radius:22px;box-shadow:0 30px 80px rgba(20,10,60,.3);display:flex;flex-direction:column;overflow:hidden;transform:translateY(16px) scale(.97);opacity:0;pointer-events:none;transition:all .3s cubic-bezier(.2,.7,.2,1);font-family:"Plus Jakarta Sans",sans-serif}
.chat-box.open{transform:none;opacity:1;pointer-events:auto}
.chat-head{padding:16px 18px;color:#fff;background:linear-gradient(120deg,#4F35E3,#7C3AED,#BE185D);background-size:200% 200%;animation:gradShift 10s ease infinite;display:flex;gap:12px;align-items:center}
.chat-head .av{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.2);display:grid;place-items:center;font-weight:800}
.chat-head small{display:block;opacity:.85;font-size:12px}.chat-head small:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#4ADE80;margin-right:5px}
.chat-head button{margin-left:auto;background:none;border:0;color:#fff;font-size:22px;cursor:pointer}
.chat-body{flex:1;overflow-y:auto;padding:16px;background:#F7F7FB;display:flex;flex-direction:column;gap:10px}
.msg{max-width:85%;padding:10px 13px;border-radius:16px;font-size:14px;line-height:1.45;white-space:pre-line;animation:msgIn .3s ease both}
@keyframes msgIn{from{opacity:0;transform:translateY(6px)}}
.msg.bot{background:#fff;border:1px solid #ECEDF3;border-bottom-left-radius:4px;align-self:flex-start;color:#1B1F33}
.msg.me{background:#4F35E3;color:#fff;border-bottom-right-radius:4px;align-self:flex-end}
.msg a.cl{display:inline-block;margin:8px 6px 0 0;padding:6px 10px;border-radius:10px;background:#EFEBFF;color:#4F35E3;font-weight:700;font-size:13px;text-decoration:none}
.chips{display:flex;flex-wrap:wrap;gap:6px}.chips button{border:1.5px solid #DCD6FF;background:#fff;color:#4F35E3;border-radius:999px;padding:6px 11px;font:600 12.5px inherit;cursor:pointer}
.chips button:hover{background:#EFEBFF}
.typing{display:flex;gap:4px;padding:12px 14px}.typing i{width:7px;height:7px;border-radius:50%;background:#B7BAD3;animation:blink 1.2s infinite}.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,80%,100%{opacity:.3}40%{opacity:1}}
.chat-foot{display:flex;gap:8px;padding:12px;border-top:1px solid #ECEDF3;background:#fff}
.chat-foot input{flex:1;border:1.5px solid #E6E7EF;border-radius:12px;padding:10px 12px;font:14px inherit}
.chat-foot button,.chat-start button{background:#4F35E3;color:#fff;border:0;border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer}
.chat-start{padding:18px;display:flex;flex-direction:column;gap:10px}.chat-start input{border:1.5px solid #E6E7EF;border-radius:12px;padding:11px 12px;font:14px inherit}
.chat-start p{font-size:13px;color:#4B5168;margin:0}
@media(max-width:520px){.chat-box{right:12px;bottom:86px;height:calc(100vh - 110px)}}
@media(max-width:1024px){.chat-tip{display:none}}
@media(max-width:640px){.wa-float{display:none!important}.chat-fab{width:52px;height:52px;right:12px;bottom:12px;font-size:22px}.chat-box{bottom:74px}}
