#nx-ai{position:fixed;right:20px;bottom:20px;z-index:999999;font-family:Arial,sans-serif}
#nx-ai-toggle{background:#00a6a6;color:white;border:0;border-radius:40px;padding:15px 20px;font-weight:bold;cursor:pointer;box-shadow:0 5px 25px #0003}
#nx-ai-panel{display:none;position:absolute;right:0;bottom:65px;width:350px;max-width:calc(100vw - 30px);height:450px;max-height:calc(100dvh - 100px);background:white;border-radius:16px;box-shadow:0 8px 35px #0004;overflow:hidden;flex-direction:column}
#nx-ai-panel.open{display:flex}
#nx-ai-header{background:#00a6a6;color:white;padding:15px;display:flex;justify-content:space-between;align-items:center;font-weight:bold}
#nx-ai-close{background:transparent;color:white;border:0;font-size:24px;cursor:pointer}
#nx-ai-messages{flex:1;overflow:auto;padding:15px;background:#f5f8fa;display:flex;flex-direction:column;gap:10px}
.nx-ai-message{padding:10px 12px;border-radius:12px;max-width:85%;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.nx-ai-user{background:#00a6a6;color:white;align-self:flex-end}
.nx-ai-bot{background:white;color:#183238;border:1px solid #ddd;align-self:flex-start}
#nx-ai-form{display:flex;gap:7px;padding:10px;border-top:1px solid #ddd}
#nx-ai-input{flex:1;min-width:0;padding:10px;border:1px solid #ccc;border-radius:8px}
#nx-ai-send{background:#00a6a6;color:white;border:0;padding:10px 13px;border-radius:8px;cursor:pointer}
@media(max-width:480px){#nx-ai{right:12px;bottom:12px}#nx-ai-panel{width:calc(100vw - 24px)}}

/* QUB AI × NeerXpress — Premium UI V2 */
#nx-ai{
 position:fixed!important;
 right:22px!important;
 bottom:22px!important;
 left:auto!important;
 z-index:2147483000!important;
 font-family:Arial,sans-serif;
}
#nx-ai-toggle{
 background:linear-gradient(135deg,#00a6a6,#007b83)!important;
 color:#fff!important;
 border:0!important;
 border-radius:50px!important;
 padding:15px 22px!important;
 font-size:14px!important;
 font-weight:700!important;
 box-shadow:0 8px 28px #007b8355!important;
 cursor:pointer;
 transition:transform .2s;
}
#nx-ai-toggle:hover{transform:translateY(-3px)}
#nx-ai-panel{
 position:absolute!important;
 right:0!important;
 left:auto!important;
 bottom:72px!important;
 width:370px!important;
 max-width:calc(100vw - 28px)!important;
 height:490px!important;
 max-height:calc(100dvh - 110px)!important;
 background:#fff!important;
 border:1px solid #d9eeee!important;
 border-radius:20px!important;
 box-shadow:0 18px 60px #003b4440!important;
 overflow:hidden!important;
 flex-direction:column!important;
}
#nx-ai-panel:not(.open){display:none!important}
#nx-ai-panel.open{display:flex!important}
#nx-ai-header{
 background:linear-gradient(120deg,#008d96,#00b1ad)!important;
 color:#fff!important;
 padding:17px!important;
 min-height:64px;
 display:flex!important;
 justify-content:space-between!important;
 align-items:center!important;
}
#nx-ai-header span{font-size:15px;font-weight:700}
#nx-ai-header span:before{
 content:'●';
 color:#baffdb;
 font-size:10px;
 margin-right:8px;
}
#nx-ai-messages{
 flex:1!important;
 min-height:0;
 padding:16px!important;
 background:#f3f9fa!important;
 display:flex!important;
 flex-direction:column!important;
 gap:12px!important;
 overflow-y:auto!important;
}
.nx-ai-message{
 font-size:13px!important;
 line-height:1.65!important;
 padding:12px 14px!important;
 border-radius:14px!important;
 max-width:88%!important;
 white-space:pre-wrap;
 overflow-wrap:anywhere;
}
.nx-ai-bot{
 background:#fff!important;
 color:#19383d!important;
 border:1px solid #e1ecee!important;
 border-bottom-left-radius:4px!important;
}
.nx-ai-user{
 background:#009e9e!important;
 color:#fff!important;
 border-bottom-right-radius:4px!important;
}
#nx-ai-form{
 display:flex!important;
 gap:8px!important;
 padding:12px!important;
 background:#fff!important;
 border-top:1px solid #e2ebed!important;
}
#nx-ai-input{
 flex:1!important;
 min-width:0!important;
 border:1px solid #d6e3e6!important;
 border-radius:10px!important;
 padding:12px!important;
 outline:none;
}
#nx-ai-input:focus{border-color:#00a6a6!important}
#nx-ai-send{
 background:#00a6a6!important;
 color:white!important;
 border:0!important;
 border-radius:10px!important;
 padding:10px 16px!important;
 font-weight:700!important;
}
#nx-ai-send:disabled{opacity:.5;cursor:wait}
@media(max-width:480px){
 #nx-ai{right:12px!important;bottom:12px!important}
 #nx-ai-panel{
  width:calc(100vw - 24px)!important;
  height:min(520px,calc(100dvh - 100px))!important;
 }
}

/* QUB AI Smart Features */
#nx-ai-quick{
 display:flex;
 gap:6px;
 flex-wrap:wrap;
 padding:9px 12px;
 background:#fff;
 border-top:1px solid #e4eeee;
}
#nx-ai-quick button{
 border:1px solid #b9e2e3;
 background:#effafa;
 color:#007b83;
 border-radius:20px;
 padding:7px 10px;
 font-size:11px;
 cursor:pointer;
}
#nx-ai-quick button:hover{
 background:#00a6a6;
 color:white;
}
#nx-ai-typing{
 align-self:flex-start;
 padding:9px 12px;
 background:#fff;
 color:#008c91;
 border:1px solid #d9e9e9;
 border-radius:12px;
 font-size:12px;
}
