.chatbot-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #0B0F19;
  border: 1px solid rgba(212, 175, 55, 0.6);
  border-radius: 18px;
  overflow: hidden;
  z-index: 99999;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  color: #F9FAFB;
  font-family: 'Inter', 'Poppins', sans-serif;
}

.chatbot-widget.hidden {
  display: none !important;
}

.chatbot-header {
  background: linear-gradient(135deg, #D4AF37, #F5C542);
  color: #0B0F19;
  padding: 14px 16px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.chatbot-title {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
}

.chatbot-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  margin-top: 3px;
}

.chatbot-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.chatbot-header-actions {
  display: flex;
  gap: 8px;
}

.chatbot-header-actions button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 15, 25, 0.14);
  color: #0B0F19;
}

.chatbot-header-actions button:hover {
  background: rgba(11, 15, 25, 0.25);
}

.chatbot-body {
  height: 360px;
  overflow-y: auto;
  padding: 16px;
  background: #0B0F19;
  color: #F9FAFB;
  scrollbar-color: #D4AF37 #0B0F19;
}

.chatbot-message {
  display: flex;
  margin-bottom: 12px;
}

.chatbot-message.user {
  justify-content: flex-end;
}

.chatbot-bubble {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: #151B2B;
  color: #F9FAFB;
  font-size: 0.88rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.chatbot-message.user .chatbot-bubble {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.55);
}

.chatbot-quick-replies {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  background: #0B0F19;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.chatbot-quick-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  color: #F5C542;
  padding: 7px 10px;
  font-size: 0.76rem;
  font-weight: 800;
}

.chatbot-quick-btn:hover {
  background: rgba(212, 175, 55, 0.18);
}

.chatbot-typing {
  align-items: center;
  gap: 5px;
  padding: 0 14px 10px;
  background: #0B0F19;
  color: #9CA3AF;
  font-size: 0.78rem;
}

.chatbot-typing:not([hidden]) {
  display: flex;
}

.chatbot-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F5C542;
  animation: chatbotTypingPulse 1s infinite ease-in-out;
}

.chatbot-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chatbot-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chatbotTypingPulse {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.chatbot-input-area {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  background: #111827;
}

.chatbot-input-area input {
  flex: 1;
  min-width: 0;
  background: #0F172A;
  color: #F9FAFB;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  padding: 10px;
  outline: none;
}

.chatbot-input-area input::placeholder {
  color: #9CA3AF;
}

.chatbot-input-area input:focus {
  border-color: #F5C542;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

.chatbot-send-btn {
  background: #D4AF37;
  color: #0B0F19;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
}

.chatbot-send-btn:hover {
  background: #F5C542;
}

.chatbot-send-btn:disabled,
.chatbot-input-area input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.chatbot-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4AF37, #F5C542);
  color: #0B0F19;
  border: none;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  font-size: 1.2rem;
}

.chatbot-launcher.show {
  display: flex;
}

@media (max-width: 768px) {
  .chatbot-widget {
    right: 16px;
    bottom: 86px;
    width: calc(100vw - 32px);
  }

  .chatbot-body {
    height: min(360px, 48vh);
  }

  .chatbot-launcher {
    right: 20px;
    bottom: 20px;
  }
}
