#ai-fab-btn { position: fixed; bottom: 24px; right: 24px; z-index: 9999; width: 120px; height: 120px; border: none; border-radius: 0; cursor: grab; outline: none; padding: 0; background: transparent; box-shadow: none; display: block; overflow: visible; transition: transform 0.2s; user-select: none; -webkit-user-select: none;
}
#ai-fab-btn:hover { transform: scale(1.06) !important; }
#ai-fab-btn:active { cursor: grabbing; transform: scale(0.97) !important; }
#ai-fab-btn.dragging { cursor: grabbing; transform: none !important; transition: none !important; }
#ai-fab-btn img { width: 120px; height: 120px; border-radius: 0; object-fit: contain; display: block; pointer-events: none; -webkit-user-drag: none; user-select: none; }
#ai-fab-btn .pulse-ring { display: none; }
#ai-chat-window { position: fixed; z-index: 9999; display: none; width: 380px; height: 520px; bottom: 160px; right: 24px; background: #fff; border-radius: 20px; box-shadow: 0 12px 48px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08); flex-direction: column; overflow: hidden; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; opacity: 0; transform: scale(0.7) translateY(20px); transform-origin: bottom right; transition: opacity 0.3s cubic-bezier(.4,0,.2,1), transform 0.3s cubic-bezier(.4,0,.2,1);
}
#ai-chat-window.open { display: flex; opacity: 1; transform: scale(1) translateY(0); }
@media (max-width: 440px) { #ai-chat-window { width: calc(100vw - 24px); right: 12px; bottom: 156px; height: 60vh; }
}
#ai-chat-header { background: linear-gradient(135deg, #004ac6, #2563eb); color: #fff; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
#ai-chat-header .header-info { display: flex; flex-direction: column; }
#ai-chat-header .header-title { font-size: 16px; font-weight: 700; }
#ai-chat-header .header-subtitle { font-size: 12px; opacity: 0.8; margin-top: 2px; }
#ai-chat-header .close-btn { background: rgba(255,255,255,0.2); border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
#ai-chat-header .close-btn:hover { background: rgba(255,255,255,0.35); }
#ai-chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #f7f9fb;
}
#ai-chat-messages::-webkit-scrollbar { width: 4px; }
#ai-chat-messages::-webkit-scrollbar-thumb { background: #c3c6d7; border-radius: 2px; }
.ai-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.6; word-break: break-word; }
.ai-msg.bot { background: #e6e8ea; color: #191c1e; align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-msg.user { background: #2563eb; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-msg.typing { background: #e6e8ea; color: #434655; align-self: flex-start; font-style: italic; }
.ai-quick-btns { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; background: #f7f9fb; }
.ai-quick-btn { background: #fff; border: 1px solid #c3c6d7; color: #004ac6; border-radius: 20px; padding: 6px 14px; font-size: 13px; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.ai-quick-btn:hover { background: #dbe1ff; border-color: #2563eb; }
#ai-chat-input-area { display: flex; align-items: center; padding: 12px 14px; gap: 8px; border-top: 1px solid #e6e8ea; background: #fff; flex-shrink: 0;
}
#ai-chat-input { flex: 1; border: 1px solid #c3c6d7; border-radius: 24px; padding: 10px 16px; font-size: 14px; outline: none; transition: border-color 0.2s; background: #f7f9fb;
}
#ai-chat-input:focus { border-color: #2563eb; }
#ai-chat-send { width: 40px; height: 40px; border-radius: 50%; border: none; background: #2563eb; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; flex-shrink: 0;
}
#ai-chat-send:hover { background: #004ac6; }
#ai-chat-send svg { width: 18px; height: 18px; fill: currentColor; }
.ai-progress-bar { width: 100%; height: 4px; background: #e6e8ea; border-radius: 2px; margin-top: 8px; overflow: hidden; }
.ai-progress-bar .fill { height: 100%; background: linear-gradient(90deg, #004ac6, #4edea3); border-radius: 2px; width: 0%; transition: width 1.5s ease; }
