.nx-chat-float { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999999; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }
.nx-chat-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  background: #25d366; color: #fff; border: none; border-radius: 50%;
  cursor: pointer; box-shadow: 0 4px 16px rgba(37,211,102,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nx-chat-toggle:hover { background: #20bd5a; transform: scale(1.05); }
.nx-chat-toggle-pulse { animation: nx-chat-pulse 1.6s ease-out infinite; }
@keyframes nx-chat-pulse {
  0%   { box-shadow: 0 4px 16px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.6); }
  70%  { box-shadow: 0 4px 16px rgba(37,211,102,0.5), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 16px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0); }
}
.nx-chat-window[hidden] { display: none; }
.nx-chat-window {
  width: 360px; max-height: 540px; background: #12131a; border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4); border: 1px solid #23242e;
  display: flex; flex-direction: column; overflow: hidden;
  animation: nx-chat-in 0.25s ease;
  color: #e5e7eb;
}
@keyframes nx-chat-in { from{opacity:0;transform:scale(0.95) translateY(10px)} to{opacity:1;transform:none} }
.nx-chat-header { background: #1a1b24; padding: 0.9rem 1rem; display: flex; align-items: center; gap: 0.75rem; border-bottom: 2px solid #2563eb; }
.nx-chat-avatar { width: 32px; height: 32px; border-radius: 8px; background: #2563eb; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.nx-chat-header-info { flex: 1; }
.nx-chat-header-name { font-size: 0.875rem; font-weight: 700; color: #fff; }
.nx-chat-header-status { font-size: 0.75rem; color: #9ca3af; }
.nx-chat-close { background: none; border: none; color: #9ca3af; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0.25rem; }
.nx-chat-close:hover { color: #fff; }
.nx-chat-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; background: #0c0d12; max-height: 340px; }
.nx-chat-bubble { max-width: 85%; padding: 0.6rem 0.9rem; border-radius: 12px; font-size: 0.875rem; line-height: 1.5; }
.nx-chat-bubble.bot { background: #1e2029; color: #e5e7eb; border: 1px solid #2a2c38; align-self: flex-start; border-bottom-left-radius: 2px; }
.nx-chat-bubble.user { background: #2563eb; color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.nx-chat-options { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.75rem 1rem; border-top: 1px solid #23242e; background: #12131a; }
.nx-chat-opt { flex: 0 0 auto; padding: 0.35rem 0.75rem; background: #1e2029; border: 1.5px solid #2a2c38; border-radius: 50px; font-size: 0.78rem; font-weight: 500; color: #e5e7eb; cursor: pointer; transition: all 0.2s ease; }
.nx-chat-opt:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
.nx-chat-input-row { display: flex; gap: 0.5rem; padding: 0.75rem 1rem; border-top: 1px solid #23242e; background: #12131a; }
.nx-chat-input { flex: 1; padding: 0.5rem 0.75rem; border: 1.5px solid #2a2c38; border-radius: 50px; font-size: 0.85rem; outline: none; background: #1e2029; color: #e5e7eb; }
.nx-chat-input::placeholder { color: #6b7280; }
.nx-chat-input:focus { border-color: #2563eb; }
.nx-chat-send { background: #2563eb; color: #fff; border: none; border-radius: 50%; width: 34px; height: 34px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; flex-shrink: 0; }
.nx-chat-send:hover { background: #1d4ed8; }
.nx-chat-typing { display: flex; gap: 4px; align-items: center; padding: 0.7rem 0.9rem; }
.nx-chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: #6b7280; animation: nx-chat-typing-dot 1.1s infinite ease-in-out; }
.nx-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.nx-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes nx-chat-typing-dot { 0%,60%,100%{opacity:.3; transform:translateY(0)} 30%{opacity:1; transform:translateY(-3px)} }
.nx-btn-whatsapp-fallback { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 50px; font-weight: 600; font-size: 0.85rem; background: #25d366; color: #fff; text-decoration: none; margin-top: 0.25rem; }
@media (max-width: 480px) { .nx-chat-window { width: calc(100vw - 2rem); } }
