/* HS AI chatbot */
#hs-chat-root, #hs-chat-root * { box-sizing: border-box; font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }


#hs-chat-toggle {
	position: fixed; bottom: 24px; right: 24px; z-index: 999998;
	width: 60px; height: 60px; border-radius: 50%;
	background: var(--accent, #bff747);
	border: 0;
	box-shadow: 0 4px 24px rgba(191, 247, 71, .4);
	cursor: pointer; display: flex; align-items: center; justify-content: center;
	transition: transform .25s ease;
	animation: hs-toggle-intro .6s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes hs-toggle-intro {
	0% { transform: scale(0) rotate(-60deg); opacity: 0; }
	60% { transform: scale(1.15) rotate(10deg); opacity: 1; }
	100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
#hs-chat-toggle:hover { transform: scale(1.08); }
#hs-chat-toggle::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--accent, #bff747); animation: hs-chat-pulse 2.6s infinite .6s; }
@keyframes hs-chat-pulse { from { transform: scale(1); opacity: .45; } 70%, to { transform: scale(1.5); opacity: 0; } }

#hs-chat-icon-open { font-size: 24px; color: #0a0a0a; }
#hs-chat-icon-close { font-size: 20px; color: #0a0a0a; }

@keyframes hs-icon-pop {
	0% { transform: scale(.4) rotate(-90deg); opacity: 0; }
	55% { transform: scale(1.25) rotate(8deg); opacity: 1; }
	100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
#hs-chat-icon-open.hs-icon-anim, #hs-chat-icon-close.hs-icon-anim { animation: hs-icon-pop .4s cubic-bezier(.34, 1.56, .64, 1); }

#hs-chat-panel {
	position: fixed; bottom: 96px; right: 24px; z-index: 999999;
	width: 380px; max-width: calc(100vw - 32px);
	height: 520px; max-height: calc(100vh - 140px);
	background: #0d0d0d; border: 1px solid rgba(191, 247, 71, .25);
	border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(191, 247, 71, .08);
	display: none; flex-direction: column; overflow: hidden;
}
#hs-chat-panel.hs-open { display: flex; animation: hs-panel-in .22s ease; }
@keyframes hs-panel-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }

#hs-chat-header {
	display: flex; align-items: center; gap: 12px; padding: 16px 18px;
	background: linear-gradient(135deg, #121212, #131a08);
	border-bottom: 1px solid rgba(191, 247, 71, .2);
}
#hs-chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: #bff747; flex-shrink: 0; overflow: hidden; }
#hs-chat-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%; display: block; }
#hs-chat-name { color: #fff; font-weight: 700; font-size: 14.5px; }
#hs-chat-status { color: #9CA3AF; font-size: 12px; margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.hs-dot { width: 6px; height: 6px; border-radius: 50%; background: #34D399; display: inline-block; box-shadow: 0 0 6px #34D399; }

#hs-chat-messages {
	flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px;
	background: radial-gradient(circle at top right, rgba(191, 247, 71, .06), transparent 60%), #0d0d0d;
}
#hs-chat-messages::-webkit-scrollbar { width: 5px; }
#hs-chat-messages::-webkit-scrollbar-thumb { background: rgba(191, 247, 71, .35); border-radius: 10px; }

.hs-msg { max-width: 84%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; word-wrap: break-word; white-space: pre-line; }
.hs-msg-bot { align-self: flex-start; background: #1a1a1a; color: #E5E7EB; border-bottom-left-radius: 4px; }
.hs-msg-user { align-self: flex-end; background: #bff747; color: #0a0a0a; font-weight: 600; border-bottom-right-radius: 4px; }

.hs-typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 13px; background: #1a1a1a; border-radius: 14px; border-bottom-left-radius: 4px; }
.hs-typing span { width: 6px; height: 6px; background: #9CA3AF; border-radius: 50%; animation: hs-bounce 1.2s infinite; }
.hs-typing span:nth-child(2) { animation-delay: .15s; }
.hs-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes hs-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.hs-buttons { display: flex; flex-wrap: wrap; gap: 7px; align-self: flex-start; max-width: 100%; margin-top: -2px; }
.hs-chat-btn {
	background: #1a1a1a; border: 1px solid rgba(191, 247, 71, .4); color: #E5E7EB;
	padding: 7px 12px; border-radius: 20px; font-size: 13px; cursor: pointer;
	transition: background .15s, border-color .15s;
}
.hs-chat-btn:hover { background: rgba(191, 247, 71, .18); border-color: rgba(191, 247, 71, .8); }
.hs-chat-btn:disabled { opacity: .4; cursor: default; }
.hs-chat-btn.hs-chat-btn-link { background: #bff747; border-color: #bff747; color: #0a0a0a; font-weight: 700; }

#hs-chat-inputbar { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(191, 247, 71, .18); background: #0d0d0d; }
#hs-chat-input { flex: 1; min-width: 0; background: #1a1a1a; border: 1px solid rgba(191, 247, 71, .2); border-radius: 10px; padding: 10px 12px; color: #fff; font-size: 14px; outline: none; }
#hs-chat-input:focus { border-color: rgba(191, 247, 71, .6); }
#hs-chat-input::placeholder { color: #9CA3AF; }
#hs-chat-send { width: 38px; height: 38px; border-radius: 10px; border: none; flex-shrink: 0; background: #bff747; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#hs-chat-send .hs-ico { font-size: 15px; color: #0a0a0a; }
#hs-chat-send:disabled { opacity: .5; cursor: default; }
#hs-chat-footer { text-align: center; font-size: 11px; color: #9CA3AF; padding: 6px 0 10px; }

@media (max-width: 480px) {
	#hs-chat-panel { right: 16px; left: 16px; width: auto; bottom: 90px; }
	#hs-chat-toggle { right: 16px; bottom: 16px; }
}
