/* ============================================================
   UniCompare AI Chatbot
   ============================================================ */
.uc-ai-toggle{
    position:fixed;
    right:19px;
    bottom:150px;
    z-index:1090;
    width:50px;
    height:50px;
    border:0;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#7359a6,#5e4391);
    color:#fff;
    box-shadow:0 12px 28px rgba(67,43,112,.30),0 0 0 4px rgba(255,255,255,.72);
    cursor:pointer;
    transition:transform .2s ease,box-shadow .2s ease;
}
.uc-ai-toggle:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(67,43,112,.36),0 0 0 4px rgba(255,255,255,.8)}
.uc-ai-toggle i{font-size:1.45rem}
.uc-ai-toggle .uc-ai-dot{
    position:absolute;
    top:2px;
    right:1px;
    width:11px;
    height:11px;
    border-radius:50%;
    background:#21c56b;
    border:2px solid #fff;
}
.uc-ai-panel{
    position:fixed;
    right:100px;
    bottom:30px;
    z-index:1091;
    width:min(390px,calc(100vw - 32px));
    height:min(590px,calc(100vh - 200px));
    min-height:430px;
    display:none;
    flex-direction:column;
    overflow:hidden;
    background:#fff;
    border:1px solid rgba(115,89,166,.18);
    border-radius:22px;
    box-shadow:0 24px 70px rgba(23,25,56,.25);
}
.uc-ai-panel.is-open{display:flex;animation:ucAiIn .18s ease-out}
@keyframes ucAiIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.uc-ai-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 17px;
    background:linear-gradient(135deg,#7359a6,#5d438f);
    color:#fff;
}
.uc-ai-brand{display:flex;align-items:center;gap:11px;min-width:0}
.uc-ai-avatar{
    width:40px;height:40px;border-radius:13px;display:grid;place-items:center;
    background:rgba(255,255,255,.17);font-size:1.2rem;flex:0 0 auto;
}
.uc-ai-title{font-weight:800;font-size:.98rem;line-height:1.1}
.uc-ai-status{font-size:.72rem;opacity:.85;margin-top:3px}
.uc-ai-close{border:0;background:transparent;color:#fff;font-size:1.35rem;line-height:1;opacity:.9;padding:5px;cursor:pointer}
.uc-ai-messages{flex:1;overflow-y:auto;padding:15px;background:linear-gradient(180deg,#faf8ff 0%,#fff 100%)}
.uc-ai-message{display:flex;margin-bottom:12px}
.uc-ai-message.user{justify-content:flex-end}
.uc-ai-bubble{max-width:86%;padding:10px 12px;border-radius:15px;font-size:.86rem;line-height:1.48;white-space:pre-wrap;word-break:break-word}
.uc-ai-message.bot .uc-ai-bubble{background:#f0eafb;color:#27304a;border-bottom-left-radius:5px}
.uc-ai-message.user .uc-ai-bubble{background:#7359a6;color:#fff;border-bottom-right-radius:5px}
.uc-ai-bubble a{color:inherit;text-decoration:underline;font-weight:700}
.uc-ai-typing .uc-ai-bubble{display:flex;gap:4px;align-items:center}
.uc-ai-typing span{width:6px;height:6px;background:#8d78b7;border-radius:50%;animation:ucAiBounce 1s infinite ease-in-out}
.uc-ai-typing span:nth-child(2){animation-delay:.12s}.uc-ai-typing span:nth-child(3){animation-delay:.24s}
@keyframes ucAiBounce{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
.uc-ai-quick{display:flex;gap:7px;overflow-x:auto;padding:0 13px 10px;background:#fff;scrollbar-width:none}
.uc-ai-quick::-webkit-scrollbar{display:none}
.uc-ai-quick button{white-space:nowrap;border:1px solid #d8ccef;background:#faf8ff;color:#654b97;border-radius:999px;padding:7px 10px;font-size:.72rem;font-weight:700;cursor:pointer}
.uc-ai-quick button:hover{background:#eee7fb}
.uc-ai-form{display:flex;gap:8px;padding:11px;border-top:1px solid #ece9f2;background:#fff}
.uc-ai-input{flex:1;min-width:0;border:1px solid #ddd7e8;border-radius:14px;padding:10px 12px;outline:none;font:inherit;font-size:.86rem;color:#172442;background:#fff}
.uc-ai-input:focus{border-color:#8e73bf;box-shadow:0 0 0 3px rgba(115,89,166,.10)}
.uc-ai-send{width:43px;height:43px;border:0;border-radius:13px;background:#7359a6;color:#fff;display:grid;place-items:center;cursor:pointer;flex:0 0 auto}
.uc-ai-send:disabled{opacity:.55;cursor:not-allowed}
.uc-ai-note{font-size:.64rem;color:#8b91a1;text-align:center;padding:0 12px 9px;background:#fff}
@media(max-width:767.98px){
    .uc-ai-toggle{right:8px;bottom:120px;width:50px;height:50px}
    .uc-ai-panel{right:12px;bottom:40px;width:calc(100vw - 24px);height:min(600px,calc(100vh - 175px));min-height:400px;border-radius:20px}
}
