/* Lancer Chatbot Widget */
#lx-chat-root{position:fixed;z-index:99999;font-family:"DM Sans",system-ui,sans-serif}
#lx-chat-btn{
  position:fixed;right:22px;bottom:22px;width:60px;height:60px;border-radius:50%;
  border:none;cursor:pointer;background:linear-gradient(135deg,#1770FF 0%,#0A4FCC 100%);
  box-shadow:0 8px 28px rgba(23,112,255,.45);display:flex;align-items:center;justify-content:center;
  transition:transform .2s,box-shadow .2s;color:#fff
}
#lx-chat-btn:hover{transform:scale(1.06);box-shadow:0 10px 32px rgba(23,112,255,.55)}
#lx-chat-btn svg{width:28px;height:28px;fill:currentColor}
#lx-chat-btn.open{background:#0A1730}
#lx-chat-panel{
  position:fixed;right:22px;bottom:94px;width:min(380px,calc(100vw - 28px));height:min(520px,calc(100vh - 120px));
  background:#fff;border-radius:18px;box-shadow:0 20px 60px rgba(10,23,48,.22);
  display:none;flex-direction:column;overflow:hidden;border:1px solid #e8eef8
}
#lx-chat-panel.open{display:flex;animation:lxPop .22s ease}
@keyframes lxPop{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
#lx-chat-head{
  background:linear-gradient(135deg,#0A1730 0%,#123056 100%);color:#fff;padding:16px 18px;
  display:flex;align-items:center;gap:12px;flex-shrink:0
}
#lx-chat-head .avatar{
  width:42px;height:42px;border-radius:50%;background:#1770FF;display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:15px;flex-shrink:0
}
#lx-chat-head h3{margin:0;font-size:15px;font-weight:700;letter-spacing:.2px}
#lx-chat-head p{margin:2px 0 0;font-size:12px;opacity:.75}
#lx-chat-head .dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#3DFFB0;margin-right:5px;vertical-align:middle}
#lx-chat-msgs{flex:1;overflow-y:auto;padding:16px;background:#F4F7FF;scroll-behavior:smooth}
.lx-msg{max-width:88%;margin-bottom:12px;line-height:1.45;font-size:13.5px}
.lx-msg.bot{align-self:flex-start}
.lx-msg.user{margin-left:auto}
.lx-msg .bubble{
  padding:11px 14px;border-radius:14px;display:inline-block;word-break:break-word
}
.lx-msg.bot .bubble{background:#fff;color:#0A1730;border:1px solid #e2eaf6;border-bottom-left-radius:4px;box-shadow:0 2px 8px rgba(10,23,48,.04)}
.lx-msg.user .bubble{background:#1770FF;color:#fff;border-bottom-right-radius:4px}
.lx-msg .bubble a{color:#1770FF;font-weight:600}
.lx-msg.user .bubble a{color:#fff;text-decoration:underline}
.lx-quick{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}
.lx-quick button{
  border:1px solid #c9d8f5;background:#fff;color:#0A4FCC;font-size:12px;padding:7px 11px;
  border-radius:20px;cursor:pointer;transition:background .15s,border-color .15s;font-family:inherit
}
.lx-quick button:hover{background:#eef4ff;border-color:#1770FF}
#lx-chat-input-wrap{
  display:flex;gap:8px;padding:12px 14px;border-top:1px solid #e8eef8;background:#fff;flex-shrink:0
}
#lx-chat-input{
  flex:1;border:1px solid #d5e0f2;border-radius:12px;padding:11px 14px;font-size:13.5px;
  outline:none;font-family:inherit;resize:none;max-height:80px
}
#lx-chat-input:focus{border-color:#1770FF;box-shadow:0 0 0 3px rgba(23,112,255,.12)}
#lx-chat-send{
  width:44px;height:44px;border:none;border-radius:12px;background:#1770FF;color:#fff;cursor:pointer;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s
}
#lx-chat-send:hover{background:#0A4FCC}
#lx-chat-send svg{width:18px;height:18px;fill:currentColor}
.lx-typing{display:flex;gap:4px;padding:10px 14px}
.lx-typing span{width:7px;height:7px;border-radius:50%;background:#9bb0d0;animation:lxBounce 1.2s infinite}
.lx-typing span:nth-child(2){animation-delay:.15s}
.lx-typing span:nth-child(3){animation-delay:.3s}
@keyframes lxBounce{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-5px);opacity:1}}
@media(max-width:480px){
  #lx-chat-panel{right:10px;bottom:84px;width:calc(100vw - 20px);height:min(70vh,520px)}
  #lx-chat-btn{right:14px;bottom:14px}
}
/* Keep above WhatsApp float if present */
.wa{z-index:99990 !important}
