#hpc-chatbot-container { position: fixed; bottom: 30px; right: 30px; z-index: 999999; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
#hpc-chat-button { width: 60px; height: 60px; background: #0f172a; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; box-shadow: 0 8px 25px rgba(15, 23, 42, 0.3); transition: all 0.3s ease; }
#hpc-chat-button:hover { transform: scale(1.08) translateY(-3px); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.4); }
#hpc-chat-button svg { width: 30px; height: 30px; }

#hpc-chat-window { width: 380px; height: 650px; background: #fff; border-radius: 16px; box-shadow: 0 15px 50px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05); display: flex; flex-direction: column; overflow: hidden; position: absolute; bottom: 85px; right: 0; transform-origin: bottom right; animation: hpcPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2); }
@keyframes hpcPopIn { 0% { opacity: 0; transform: scale(0.8) translateY(20px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }

/* Intercom Style Header */
#hpc-chat-header { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #fff; padding: 25px 20px; display: flex; justify-content: space-between; align-items: flex-start; }
.hpc-header-brand { display: flex; flex-direction: column; gap: 12px; }
.hpc-avatar-group img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.hpc-header-text { display: flex; flex-direction: column; }
.hpc-name { font-weight: 700; font-size: 18px; letter-spacing: -0.3px; }
.hpc-status { font-size: 13px; color: #94a3b8; font-weight: 400; opacity: 0.9; margin-top: 2px; }
#hpc-chat-close { background: rgba(255,255,255,0.1); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
#hpc-chat-close:hover { background: rgba(255,255,255,0.2); }

/* Messages */
#hpc-chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; background: #f8fafc; }
.hpc-msg { padding: 12px 16px; border-radius: 12px; max-width: 85%; font-size: 14.5px; line-height: 1.5; animation: hpcFadeUp 0.3s ease forwards; opacity: 0; transform: translateY(10px); }
@keyframes hpcFadeUp { to { opacity: 1; transform: translateY(0); } }
.hpc-msg.bot { background: #fff; color: #334155; align-self: flex-start; border-bottom-left-radius: 2px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid #f1f5f9; }
.hpc-msg.user { background: #0f172a; color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2); }
.hpc-msg.typing { background: transparent; box-shadow: none; border: none; padding: 5px 10px; display: flex; gap: 4px; align-items: center; }

/* Typing Dots */
.hpc-dot { width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; animation: hpcBounce 1.4s infinite ease-in-out both; }
.hpc-dot:nth-child(1) { animation-delay: -0.32s; }
.hpc-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes hpcBounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* Quick Replies */
#hpc-quick-replies { display: flex; gap: 8px; padding: 10px 15px; overflow-x: auto; background: #f8fafc; scrollbar-width: none; }
#hpc-quick-replies::-webkit-scrollbar { display: none; }
.hpc-qr-btn { white-space: nowrap; background: #fff; border: 1px solid #cbd5e1; color: #0f172a; padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.hpc-qr-btn:hover { border-color: #0f172a; color: #0f172a; background: #f1f5f9; }

/* Input */
#hpc-chat-input-container { display: flex; border-top: 1px solid #f1f5f9; padding: 12px 15px; background: #fff; gap: 10px; align-items: center; }
#hpc-chat-input { flex: 1; padding: 12px 15px; border: none; outline: none; font-size: 14px; color: #1e293b; background: transparent; }
#hpc-chat-input::placeholder { color: #94a3b8; }
#hpc-chat-send { background: transparent; color: #0f172a; border: none; cursor: pointer; padding: 5px; transition: transform 0.2s; }
#hpc-chat-send:hover { transform: scale(1.1); }
#hpc-chat-send svg { width: 22px; height: 22px; }

/* Footer Brand */
.hpc-footer-brand { text-align: center; font-size: 11px; color: #94a3b8; padding: 8px; background: #fff; border-top: 1px solid #f8fafc; font-weight: 500; }

/* Rich Elements - Property Carousel */
.hpc-btn-whatsapp { display: inline-block; background: #25D366; color: #fff !important; padding: 8px 16px; border-radius: 8px; text-decoration: none !important; font-weight: 600; font-size: 14px; margin-top: 5px; transition: all 0.2s; }
.hpc-btn-whatsapp:hover { background: #1ebc59; }

.hpc-carousel-wrapper { width: 100%; margin-top: 10px; overflow: hidden; }
.hpc-carousel { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.hpc-carousel::-webkit-scrollbar { height: 4px; }
.hpc-carousel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.hpc-c-card { scroll-snap-align: start; flex: 0 0 200px; display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; text-decoration: none !important; color: inherit; transition: border-color 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.hpc-c-card:hover { border-color: #0f172a; }
.hpc-c-img { width: 100%; height: 110px; background-size: cover; background-position: center; }
.hpc-c-info { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.hpc-c-info strong { font-size: 13px; line-height: 1.3; color: #0f172a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hpc-c-info span { font-size: 12px; color: #10b981; font-weight: 700; }
