/* BPL Season 02 Premium AI Chatbot Styling */
#ai-help-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #ffc400 0%, #d49a00 100%);
  color: #06111f;
  border: 3px solid #06111f;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  box-shadow: 0 8px 30px rgba(255, 196, 0, 0.4);
  font-size: 32px;
  cursor: pointer;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#ai-help-btn:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 12px 40px rgba(255, 196, 0, 0.6);
}

#ai-chat-modal {
  display: none;
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 380px;
  max-width: 92vw;
  background: #06111f;
  color: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(255, 196, 0, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  z-index: 2100;
  overflow: hidden;
  flex-direction: column;
  animation: fadeInUp .3s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

#ai-chat-header {
  background: linear-gradient(90deg, #06111f 0%, #0a1931 100%);
  color: #ffc400;
  padding: 16px 20px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 196, 0, 0.2);
}

#ai-chat-close {
  cursor: pointer;
  font-size: 24px;
  color: #ffffff;
  opacity: 0.6;
  transition: opacity 0.2s;
}
#ai-chat-close:hover { opacity: 1; color: #ffc400; }

#ai-chat-body {
  padding: 18px;
  height: 320px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  background: #040a14;
  scroll-behavior: smooth;
}

/* Scrollbar for chat */
#ai-chat-body::-webkit-scrollbar { width: 4px; }
#ai-chat-body::-webkit-scrollbar-thumb { background: #ffc400; border-radius: 10px; }

.ai-msg {
  margin-bottom: 12px;
  display: flex;
}
.ai-msg.user { justify-content: flex-end; }
.ai-msg .bubble {
  padding: 10px 15px;
  border-radius: 16px;
  max-width: 82%;
  word-break: break-word;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ai-msg.user .bubble {
  background: #ffc400;
  color: #06111f;
  font-weight: 700;
  border-bottom-right-radius: 4px;
}

.ai-msg.ai .bubble {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 4px;
}

#ai-chat-input-row {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #06111f;
  padding: 8px;
}

#ai-chat-input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  font-size: 13px;
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}
#ai-chat-input:focus {
  border-color: #ffc400;
}

#ai-chat-send {
  background: #ffc400;
  color: #06111f;
  border: none;
  border-radius: 14px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 8px;
  transition: transform 0.2s;
}
#ai-chat-send:hover {
  transform: scale(1.05);
  background: #e5b000;
}

@media (max-width: 550px) {
  #ai-chat-modal { right: 4vw; bottom: 4vw; width: 92vw; }
  #ai-help-btn { right: 4vw; bottom: 4vw;}
  #ai-chat-body { height: 300px; }
}
