#nc-chat-widget { font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif; }
#nc-chat-toggle { position: fixed; bottom: 24px; right: 24px; z-index: 9999; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border: none; cursor: pointer; box-shadow: 0 4px 20px rgba(99,102,241,0.35); display: flex; align-items: center; justify-content: center; transition: transform 0.2s, box-shadow 0.2s; }
#nc-chat-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(99,102,241,0.45); }
#nc-chat-toggle svg { width: 26px; height: 26px; }
#nc-chat-toggle .close-icon { display: none; }
#nc-chat-toggle.open .chat-icon { display: none; }
#nc-chat-toggle.open .close-icon { display: block; }
#nc-chat-panel { position: fixed; bottom: 90px; right: 24px; z-index: 9998; width: 360px; max-height: 520px; background: #fff; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.12); border: 1px solid #e2e8f0; display: none; flex-direction: column; overflow: hidden; animation: ncSlideUp 0.25s ease-out; }
#nc-chat-panel.open { display: flex; }
@keyframes ncSlideUp { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.nc-chat-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.nc-chat-header-avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.nc-chat-header-info { flex: 1; min-width: 0; }
.nc-chat-header-title { font-weight: 700; font-size: 14px; }
.nc-chat-header-sub { font-size: 11px; opacity: 0.8; }
.nc-chat-messages { flex: 1; overflow-y: auto; padding: 16px; background: #f8fafc; display: flex; flex-direction: column; gap: 12px; }
.nc-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; word-wrap: break-word; animation: ncMsgIn 0.25s ease-out; }
@keyframes ncMsgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.nc-msg.user { align-self: flex-end; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border-bottom-right-radius: 4px; }
.nc-msg.assistant { align-self: flex-start; background: #fff; color: #1e293b; border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; }
.nc-msg-time { font-size: 10px; color: #94a3b8; margin-top: 4px; }
.nc-msg.user .nc-msg-time { text-align: right; color: rgba(255,255,255,0.6); }
.nc-typing { display: flex; gap: 4px; padding: 12px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; border-bottom-left-radius: 4px; align-self: flex-start; width: fit-content; }
.nc-typing span { width: 7px; height: 7px; background: #cbd5e1; border-radius: 50%; animation: ncTypingBounce 1.4s infinite both; }
.nc-typing span:nth-child(2) { animation-delay: 0.16s; }
.nc-typing span:nth-child(3) { animation-delay: 0.32s; }
@keyframes ncTypingBounce { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.nc-chat-input-area { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #e2e8f0; background: #fff; }
.nc-chat-input { flex: 1; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 12px; font-size: 13px; font-family: inherit; outline: none; transition: border-color 0.2s; }
.nc-chat-input:focus { border-color: #6366f1; }
.nc-chat-send { width: 36px; height: 36px; border-radius: 10px; border: none; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: opacity 0.2s; }
.nc-chat-send:disabled { opacity: 0.4; cursor: default; }
.nc-chat-send svg { width: 16px; height: 16px; }
.nc-greeting { text-align: center; color: #94a3b8; font-size: 12px; padding: 12px; }
@media (max-width: 480px) {
    #nc-chat-panel { right: 10px; left: 10px; width: auto; bottom: 80px; max-height: 70vh; }
    #nc-chat-toggle { bottom: 16px; right: 16px; width: 48px; height: 48px; }
}
