#chat-toggle{position:fixed;bottom:24px;left:24px;width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,#6c63ff,#48c6ef);border:none;cursor:pointer;box-shadow:0 4px 16px rgba(108,99,255,.45);display:flex;align-items:center;justify-content:center;font-size:22px;z-index:9998;transition:transform .2s}
#chat-toggle:hover{transform:scale(1.08)}
.chat-badge{position:absolute;top:0;right:0;width:14px;height:14px;background:#ff4d6d;border-radius:50%;border:2px solid #fff;display:none}
#chat-toggle.has-notif .chat-badge{display:block}
#chat-panel{position:fixed;left:0;top:0;bottom:0;width:340px;max-width:100vw;background:#fff;box-shadow:4px 0 24px rgba(0,0,0,.14);display:flex;flex-direction:column;z-index:9999;transform:translateX(-100%);transition:transform .3s cubic-bezier(.4,0,.2,1);border-radius:0 16px 16px 0}
#chat-panel.open{transform:translateX(0)}
.chat-header{display:flex;align-items:center;gap:10px;padding:16px;background:linear-gradient(135deg,#6c63ff,#48c6ef);color:#fff;border-radius:0 16px 0 0;flex-shrink:0}
.chat-avatar{width:36px;height:36px;background:rgba(255,255,255,.25);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px}
.chat-header-title{font-weight:700;font-size:15px;color:#fff}
.chat-header-sub{font-size:11px;opacity:.8;color:#fff}
#chat-close{background:none;border:none;color:#fff;font-size:20px;cursor:pointer;opacity:.8;padding:2px 6px;border-radius:6px}
#chat-close:hover{opacity:1;background:rgba(255,255,255,.15)}
#chat-messages{flex:1;overflow-y:auto;padding:16px 12px;display:flex;flex-direction:column;gap:10px;background:#f8f9fe}
.chat-msg{max-width:85%;padding:9px 13px;border-radius:14px;font-size:13.5px;line-height:1.5;word-break:break-word}
.chat-msg.bot{background:#fff;border:1px solid #e8e8f0;align-self:flex-start;border-bottom-left-radius:4px;box-shadow:0 1px 4px rgba(0,0,0,.06);color:#1a1a2e}
.chat-msg.user{background:linear-gradient(135deg,#6c63ff,#48c6ef);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.typing-indicator{display:flex;gap:4px;align-items:center;padding:10px 14px;background:#fff;border:1px solid #e8e8f0;border-radius:14px;border-bottom-left-radius:4px;align-self:flex-start}
.typing-indicator span{width:7px;height:7px;background:#aaa;border-radius:50%;animation:typing-bounce .9s infinite}
.typing-indicator span:nth-child(2){animation-delay:.15s}
.typing-indicator span:nth-child(3){animation-delay:.3s}
@keyframes typing-bounce{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-6px)}}
.search-chip{display:inline-flex;align-items:center;gap:6px;margin-top:8px;background:linear-gradient(135deg,#6c63ff,#48c6ef);color:#fff;border:none;padding:6px 12px;border-radius:20px;font-size:12px;cursor:pointer}
.search-chip:hover{opacity:.85}
.chat-input-row{display:flex;align-items:center;gap:8px;padding:12px;border-top:1px solid #eee;background:#fff;flex-shrink:0;border-radius:0 0 16px 0}
#chat-input{flex:1;border:1.5px solid #e0e0f0;border-radius:20px;padding:9px 14px;font-size:13.5px;outline:none;resize:none;font-family:inherit;line-height:1.4;max-height:90px;overflow-y:auto;color:#1a1a2e}
#chat-input:focus{border-color:#6c63ff}
#chat-send{width:38px;height:38px;background:linear-gradient(135deg,#6c63ff,#48c6ef);border:none;border-radius:50%;color:#fff;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .15s}
#chat-send:hover{transform:scale(1.08)}
#chat-send:disabled{opacity:.4}
.chat-suggestions{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 10px;background:#fff;flex-shrink:0}
.chat-sug-btn{font-size:11.5px;padding:5px 10px;border:1.5px solid #e0e0f0;border-radius:14px;background:#fff;cursor:pointer;color:#333}
.chat-sug-btn:hover{border-color:#6c63ff;color:#6c63ff}
@media(max-width:480px){#chat-panel{width:100vw;border-radius:0}}