/* NeptuneLaunch — AI chat widget (shared) */
#chat-bubble { position: fixed; bottom: 24px; right: 24px; z-index: 950; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
#chat-bubble > * { pointer-events: auto; }
@media (max-width: 640px) { #chat-bubble { bottom: 86px; right: 16px; } }

#chat-toggle { width: 58px; height: 58px; border-radius: 50%; background: var(--orange); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 28px rgba(255,69,0,.42); transition: transform .2s var(--ease), box-shadow .2s; position: relative; }
#chat-toggle:hover { transform: scale(1.06); box-shadow: 0 10px 34px rgba(255,69,0,.5); }
#chat-toggle svg { width: 24px; height: 24px; }
.chat-notif { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; background: #fff; border-radius: 50%; font-size: .64rem; font-weight: 800; color: var(--orange); display: flex; align-items: center; justify-content: center; }

#chat-window { width: 358px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 120px); background: var(--black2); border: 1px solid rgba(255,69,0,.28); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.6); transform-origin: bottom right; transform: scale(.96); opacity: 0; pointer-events: none; transition: transform .22s var(--ease), opacity .22s; }
#chat-window.open { transform: scale(1); opacity: 1; pointer-events: auto; }

#chat-header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, #1a1a1a, #0f0f0f); border-bottom: 1px solid rgba(255,69,0,.2); }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.chat-h-name { font-family: var(--font-label); font-weight: 600; letter-spacing: .05em; color: #fff; font-size: .95rem; }
.chat-h-status { font-size: .72rem; color: var(--green); display: flex; align-items: center; gap: 5px; }
.chat-h-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
#chat-close { margin-left: auto; background: none; border: none; color: rgba(255,255,255,.5); font-size: 1.4rem; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; }
#chat-close:hover { color: #fff; background: rgba(255,255,255,.08); }

#chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { display: flex; gap: 8px; max-width: 100%; }
.chat-msg.user { flex-direction: row-reverse; }
.msg-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--black4); display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.msg-bubble { background: var(--black3); border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; font-size: .9rem; line-height: 1.55; color: var(--ink); }
.chat-msg.user .msg-bubble { background: var(--orange); border-color: transparent; color: #fff; }
.quick-replies { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.quick-reply { text-align: left; background: rgba(255,69,0,.08); border: 1px solid rgba(255,69,0,.3); color: var(--orange3); border-radius: 8px; padding: 8px 12px; font-size: .84rem; font-family: var(--font-body); cursor: pointer; }
.quick-reply:hover { background: rgba(255,69,0,.16); color: #fff; }
.typing-indicator { display: flex; gap: 4px; padding: 12px 14px; background: var(--black3); border: 1px solid var(--line); border-radius: 12px; }
.typing-indicator span { width: 7px; height: 7px; border-radius: 50%; background: var(--gray2); animation: chatblink 1.2s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }
@keyframes chatblink { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }

#chat-input-area { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
#chat-input { flex: 1; background: var(--black3); border: 1px solid var(--line); border-radius: 10px; color: #fff; font-family: var(--font-body); font-size: .9rem; padding: 10px 12px; resize: none; max-height: 90px; }
#chat-input:focus { outline: none; border-color: var(--orange3); }
#chat-send { width: 40px; height: 40px; flex-shrink: 0; background: var(--orange); border: none; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#chat-send:disabled { opacity: .5; cursor: not-allowed; }
#chat-send svg { width: 16px; height: 16px; }
.chat-disclaimer { font-size: .68rem; color: var(--gray3); text-align: center; padding: 0 12px 10px; }
