#faq-bot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--accent-color, #00f0ff);
  color: #001f2e;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}
#faq-bot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0, 240, 255, 0.5);
}
#faq-bot-toggle svg {
  width: 24px;
  height: 24px;
}
#faq-bot-toggle .faq-close-icon { display: none; }
#faq-bot-toggle.open .faq-open-icon { display: none; }
#faq-bot-toggle.open .faq-close-icon { display: block; }

#faq-bot-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 48px);
  max-height: 500px;
  background: rgba(0, 19, 51, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  z-index: 9998;
  display: none;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  transform-origin: bottom right;
  animation: faqSlideUp 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
#faq-bot-panel.open { display: flex; }

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

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.faq-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq-header h3 span { color: var(--accent-color, #00f0ff); }

.faq-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.faq-messages::-webkit-scrollbar { width: 4px; }
.faq-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.faq-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  animation: faqMsgIn 0.3s ease forwards;
}
@keyframes faqMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-msg.bot {
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  border-bottom-left-radius: 4px;
}
.faq-msg.user {
  align-self: flex-end;
  background: var(--accent-color, #00f0ff);
  color: #001f2e;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.faq-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.faq-input-area input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}
.faq-input-area input::placeholder { color: rgba(255,255,255,0.35); }
.faq-input-area input:focus { border-color: var(--accent-color, #00f0ff); }

#faq-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: var(--accent-color, #00f0ff);
  color: #001f2e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
#faq-send-btn:hover { transform: scale(1.05); opacity: 0.9; }
#faq-send-btn svg { width: 16px; height: 16px; }

.faq-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.faq-typing span {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  animation: faqTyping 1.2s infinite;
}
.faq-typing span:nth-child(2) { animation-delay: 0.2s; }
.faq-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes faqTyping {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

@media (max-width: 480px) {
  #faq-bot-panel {
    right: 12px;
    bottom: 84px;
    width: calc(100vw - 24px);
    max-height: 60vh;
  }
  #faq-bot-toggle {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #faq-bot-panel { animation: none; }
  .faq-msg { animation: none; }
  .faq-typing span { animation: none; }
}
