/* ==========================================================
   NEXABEE ASSISTANT
   Bee + message launcher; friendly site-specific assistant.
   ========================================================== */
#nx-chat-root{font-family:'Poppins',sans-serif}

.nx-chat-launcher{
  position:fixed;right:22px;bottom:22px;z-index:1600;
  width:70px;height:70px;padding:0;border:0;border-radius:0;
  background:transparent;appearance:none;-webkit-appearance:none;
  display:grid;place-items:center;cursor:pointer;
  box-shadow:none;
  transition:transform .22s ease,filter .22s ease;
}
.nx-chat-launcher:hover{transform:translateY(-3px) scale(1.035);filter:drop-shadow(0 8px 18px rgba(0,0,0,.18))}
.nx-chat-launcher:focus-visible{outline:2px solid rgba(247,183,25,.55);outline-offset:5px;border-radius:10px}
.nx-chat-launcher-glow{display:none}
.nx-chat-launcher-bee{position:relative;width:60px;height:60px;object-fit:contain;z-index:1;filter:drop-shadow(0 0 7px rgba(255,236,168,.96)) drop-shadow(0 0 16px rgba(247,183,25,.34)) drop-shadow(0 4px 13px rgba(247,183,25,.18))}
.nx-chat-launcher-message{position:absolute;right:-1px;bottom:0;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#071821;color:#ffd35a;border:2px solid #f5c341;box-shadow:0 0 12px rgba(247,183,25,.28);z-index:2}
.nx-chat-launcher-message svg{width:13px;height:13px}

.nx-chat-panel{
  position:fixed;right:22px;bottom:98px;z-index:1599;
  width:min(410px,calc(100vw - 28px));height:min(610px,calc(100vh - 118px));
  display:flex;flex-direction:column;overflow:hidden;
  border:1px solid rgba(247,183,25,.30);border-radius:18px;
  background:linear-gradient(160deg,#06141d 0%,#0b2230 55%,#06131c 100%);
  box-shadow:0 28px 80px rgba(0,0,0,.48),0 0 44px rgba(247,183,25,.08);
  opacity:0;visibility:hidden;transform:translateY(16px) scale(.98);
  transition:opacity .22s ease,transform .22s ease,visibility .22s ease;
}
.nx-chat-panel.open{opacity:1;visibility:visible;transform:translateY(0) scale(1)}

.nx-chat-head{padding:14px 15px;border-bottom:1px solid rgba(255,255,255,.09);display:flex;align-items:center;justify-content:space-between;gap:12px}
.nx-chat-brand{display:flex;align-items:center;gap:11px;min-width:0}
.nx-chat-avatar{position:relative;width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;background:transparent;border:0;box-shadow:none}
.nx-chat-avatar::before{content:"";position:absolute;inset:-7px;border-radius:50%;background:radial-gradient(circle,rgba(255,214,91,.22) 0%,rgba(255,193,37,.10) 34%,rgba(255,183,25,0) 72%);filter:blur(4px);z-index:0;pointer-events:none}
.nx-chat-avatar img{position:relative;z-index:1;width:39px;height:39px;object-fit:contain;filter:drop-shadow(0 0 5px rgba(255,236,168,.95)) drop-shadow(0 0 13px rgba(247,183,25,.42))}
.nx-chat-avatar-badge{position:absolute;right:-1px;bottom:0;width:10px;height:10px;border-radius:50%;background:#67d38a;border:2px solid #0b2230;box-shadow:0 0 10px rgba(103,211,138,.65)}
.nx-chat-title{min-width:0}.nx-chat-title strong{display:block;color:#fff;font-size:13px;letter-spacing:.065em;white-space:nowrap}.nx-chat-title span{display:block;margin-top:3px;color:#90a8b4;font-size:9px;letter-spacing:.08em;white-space:nowrap}
.nx-chat-close{width:31px;height:31px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.02);color:#cbd8de;border-radius:8px;cursor:pointer;font-size:18px;line-height:1}.nx-chat-close:hover{border-color:rgba(247,183,25,.40);color:#ffd564}

.nx-chat-body{flex:1;overflow:auto;padding:16px 14px 8px;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:rgba(247,183,25,.35) transparent}
.nx-chat-msg{display:flex;align-items:flex-end;gap:7px;margin:0 0 13px}.nx-chat-msg.user{justify-content:flex-end}.nx-chat-msg-avatar{position:relative;width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;background:transparent;border:0;box-shadow:none}.nx-chat-msg-avatar::before{content:"";position:absolute;inset:-6px;border-radius:50%;background:radial-gradient(circle,rgba(255,214,91,.16) 0%,rgba(255,193,37,.07) 38%,rgba(255,183,25,0) 74%);filter:blur(3px);z-index:0;pointer-events:none}.nx-chat-msg-avatar img{position:relative;z-index:1;width:27px;height:27px;object-fit:contain;filter:drop-shadow(0 0 5px rgba(255,236,168,.9)) drop-shadow(0 0 10px rgba(247,183,25,.32))}
.nx-chat-bubble{max-width:84%;padding:11px 13px;border-radius:14px 14px 14px 4px;font-size:13px;line-height:1.58;color:#dbe7ec;background:rgba(15,45,59,.92);border:1px solid rgba(255,255,255,.07);box-shadow:0 6px 18px rgba(0,0,0,.12)}.nx-chat-msg.user .nx-chat-bubble{border-radius:14px 14px 4px 14px;background:#c99316;color:#071219;border-color:#f7b719;box-shadow:0 7px 18px rgba(247,183,25,.10)}
.nx-chat-bubble strong{color:#fff}.nx-chat-msg.user .nx-chat-bubble strong{color:#071219}.nx-chat-bubble a{color:#ffd866;font-weight:800;text-decoration:none}.nx-chat-bubble a:hover{text-decoration:underline}.nx-chat-link-wrap{margin-top:9px}.nx-chat-link-wrap a{display:inline-flex;gap:6px;align-items:center}
.nx-chat-list{margin:8px 0 0 18px;padding:0}.nx-chat-list li{margin:3px 0}

.nx-chat-quick{padding:9px 14px 7px;display:flex;gap:7px;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.06)}
.nx-chat-chip{border:1px solid rgba(247,183,25,.30);background:rgba(247,183,25,.06);color:#f1cf73;padding:7px 10px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.04em;cursor:pointer;transition:background .2s ease,border-color .2s ease,transform .2s ease}.nx-chat-chip:hover{background:rgba(247,183,25,.13);border-color:rgba(247,183,25,.48);transform:translateY(-1px)}

.nx-chat-note{padding:3px 14px 9px;color:#718a96;font-size:9px;line-height:1.45}
.nx-chat-input{padding:11px 13px;border-top:1px solid rgba(255,255,255,.09);display:flex;gap:8px;background:rgba(3,13,19,.28)}.nx-chat-input input{flex:1;min-width:0;border:1px solid rgba(255,255,255,.13);background:#06141d;color:#fff;border-radius:11px;padding:11px 12px;outline:none;font:inherit;font-size:13px}.nx-chat-input input::placeholder{color:#718994}.nx-chat-input input:focus{border-color:rgba(247,183,25,.58);box-shadow:0 0 0 3px rgba(247,183,25,.08)}
.nx-chat-input button{width:44px;height:44px;border:0;border-radius:11px;background:#f7b719;color:#081118;cursor:pointer;display:grid;place-items:center;box-shadow:0 7px 18px rgba(247,183,25,.16)}.nx-chat-input button:hover{background:#ffd45b}.nx-chat-input button:focus-visible{outline:3px solid rgba(247,183,25,.28);outline-offset:3px}.nx-chat-input svg{width:18px;height:18px}

.nx-chat-typing{display:inline-flex;gap:4px;align-items:center;height:12px}.nx-chat-typing i{width:5px;height:5px;border-radius:50%;background:#f7b719;animation:nxChatTyping 1s ease-in-out infinite}.nx-chat-typing i:nth-child(2){animation-delay:.12s}.nx-chat-typing i:nth-child(3){animation-delay:.24s}@keyframes nxChatTyping{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}

@media (max-width:640px){
  .nx-chat-launcher{right:14px;bottom:14px;width:64px;height:64px}.nx-chat-launcher-bee{width:54px;height:54px}.nx-chat-launcher-message{width:24px;height:24px}.nx-chat-launcher-message svg{width:12px;height:12px}
  .nx-chat-panel{right:14px;bottom:80px;width:calc(100vw - 28px);height:min(640px,calc(100vh - 96px));border-radius:16px}
}

@media (prefers-reduced-motion:reduce){.nx-chat-launcher,.nx-chat-panel,.nx-chat-chip{transition:none}.nx-chat-typing i{animation:none}}
