.chatbot {
  position: fixed;
  bottom: 90px;
  right: 15px;
  width: 330px;
  background: #fff;
  border-radius: 16px;
  display: none;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  animation: slideUp 0.4s ease;
}
.chatbot.active {
  display: flex;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.chatbot-header {
  background: linear-gradient(135deg, #007bff, #00b4d8);
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chatbot-body {
  max-height: 420px;
  overflow-y: auto;
  padding: 15px;
  background: #f9fafc;
}
.chatbot-message {
  display: inline-block;
  border-radius: 12px;
  padding: 8px 12px;
  margin: 6px 0;
  animation: fadeIn 0.4s ease;
  line-height: 1.4;
}
.chatbot-message.bot {
  background: #e8f3ff;
  color: #333;
  align-self: flex-start;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.chatbot-message.user {
  background: #d1ffd9;
  color: #000;
  align-self: flex-end;
  text-align: right;
}
.fade-in {
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.typing {
  display: flex;
  gap: 5px;
  padding: 10px;
}
.typing span {
  width: 6px;
  height: 6px;
  background: #007bff;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}
.chatbot-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  font-size: 22px;
}
.chatbot-pulse {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0,123,255,0.4);
  animation: pulse 1.8s infinite;
  z-index: -1;
}

.chatbot-gificon {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /*background: rgba(0,123,255,0.4);*/
  /*animation: pulse 1.8s infinite;*/
  /*z-index: -1;*/
}

.chat-step {
  display: none;
}
.chat-step.active {
  display: block;
}


@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}
