/* ==========================================================================
   QCOIN AI STUDENT LEARNING ASSISTANT & MENTOR BOT - STYLES
   Designed for Qcoin Academy (Dark Neon Glassmorphism Aesthetics)
   ========================================================================== */

/* Variables scoped to bot */
:root {
  --bot-bg: rgba(10, 8, 22, 0.96);
  --bot-card-bg: rgba(22, 18, 42, 0.85);
  --bot-card-hover: rgba(33, 26, 64, 0.95);
  --bot-cyan: #00f0ff;
  --bot-pink: #7c3aed;
  --bot-magenta: #6200ea;
  --bot-purple: #8b5cf6;
  --bot-purple-light: #a855f7;
  --bot-gold: #f59e0b;
  --bot-green: #10b981;
  --bot-red: #ef4444;
  --bot-text: #f1f5f9;
  --bot-text-muted: #94a3b8;
  --bot-border: rgba(124, 58, 237, 0.3);
  --bot-border-glow: rgba(98, 0, 234, 0.45);
  --bot-glow-cyan: 0 0 25px rgba(0, 240, 255, 0.35);
  --bot-glow-pink: 0 0 25px rgba(98, 0, 234, 0.45);
  --bot-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85), 0 0 35px rgba(124, 58, 237, 0.25);
}

/* --------------------------------------------------------------------------
   1. FLOATING LAUNCHER BUTTON & TOOLTIP
   -------------------------------------------------------------------------- */
.qcoin-bot-launcher-wrap {
  position: fixed;
  bottom: 95px;
  right: 28px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Floating Tooltip Hint */
.qcoin-bot-tooltip {
  background: rgba(15, 12, 32, 0.94);
  border: 1px solid rgba(0, 240, 255, 0.45);
  backdrop-filter: blur(14px);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), var(--bot-glow-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  animation: qcoinPulseTooltip 3s infinite ease-in-out;
  transition: all 0.3s ease;
}

.qcoin-bot-tooltip i {
  color: var(--bot-cyan);
  font-size: 14px;
}

.qcoin-bot-tooltip:hover {
  transform: translateY(-2px);
  border-color: var(--bot-pink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), var(--bot-glow-pink);
}

@keyframes qcoinPulseTooltip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Floating Trigger Button */
.qcoin-bot-trigger-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff 0%, #6200ea 50%, #7c3aed 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4), 0 0 25px rgba(98, 0, 234, 0.45);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.qcoin-bot-trigger-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff, #7c3aed);
  z-index: -1;
  opacity: 0.6;
  animation: qcoinRingPulse 2.4s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes qcoinRingPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.2; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.qcoin-bot-trigger-btn:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 12px 35px rgba(98, 0, 234, 0.6), 0 0 35px rgba(0, 240, 255, 0.5);
}

.qcoin-bot-trigger-inner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #090714;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.bot-icon-idle,
.bot-icon-close {
  font-size: 24px;
  transition: all 0.3s ease;
  position: absolute;
}

.bot-icon-idle {
  background: linear-gradient(135deg, #00f0ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 1;
  transform: scale(1);
}

.bot-icon-close {
  color: #fff;
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

.qcoin-bot-launcher-wrap.is-open .bot-icon-idle {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}

.qcoin-bot-launcher-wrap.is-open .bot-icon-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Badge count / Pulse dot */
.qcoin-bot-badge-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #090714;
  box-shadow: 0 0 10px #10b981;
}

/* --------------------------------------------------------------------------
   2. BOT CHAT WINDOW PANEL
   -------------------------------------------------------------------------- */
.qcoin-bot-panel {
  position: fixed;
  bottom: 170px;
  right: 28px;
  width: 450px;
  max-width: calc(100vw - 36px);
  height: 680px;
  max-height: calc(100vh - 190px);
  background: var(--bot-bg);
  border: 1px solid var(--bot-border);
  border-radius: 24px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: var(--bot-shadow);
  z-index: 99998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.qcoin-bot-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Header */
.qcoin-bot-header {
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(30, 20, 60, 0.75) 0%, rgba(15, 12, 30, 0.6) 100%);
  border-bottom: 1px solid var(--bot-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 5;
}

.qcoin-bot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qcoin-bot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(236, 72, 153, 0.25));
  border: 1px solid rgba(0, 240, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--bot-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.bot-avatar-brand-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.qcoin-bot-avatar-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #090714;
  box-shadow: 0 0 8px #10b981;
}

.qcoin-bot-title-group h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

.bot-version-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.15);
  color: var(--bot-cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
  font-weight: 700;
}

.qcoin-bot-subtitle {
  font-size: 11px;
  color: var(--bot-text-muted);
  margin: 2px 0 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bot-status-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.qcoin-bot-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bot-btn-action {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--bot-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
}

.bot-btn-action:hover {
  background: rgba(236, 72, 153, 0.2);
  color: #fff;
  border-color: var(--bot-pink);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
}

/* --------------------------------------------------------------------------
   3. BOT NAVIGATION TABS
   -------------------------------------------------------------------------- */
.qcoin-bot-tabs {
  display: flex;
  padding: 8px 12px;
  background: rgba(12, 10, 24, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 6px;
  position: relative;
  z-index: 4;
}

.bot-tab-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--bot-text-muted);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.bot-tab-btn i {
  font-size: 13px;
}

.bot-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.bot-tab-btn.is-active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(236, 72, 153, 0.18));
  border-color: rgba(236, 72, 153, 0.45);
  color: #fff;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.2);
}

/* --------------------------------------------------------------------------
   4. BOT SCROLLABLE CONTENT BODY
   -------------------------------------------------------------------------- */
.qcoin-bot-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
  position: relative;
}

/* Custom Scrollbar */
.qcoin-bot-body::-webkit-scrollbar {
  width: 5px;
}
.qcoin-bot-body::-webkit-scrollbar-track {
  background: rgba(10, 8, 20, 0.5);
}
.qcoin-bot-body::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.35);
  border-radius: 10px;
}
.qcoin-bot-body::-webkit-scrollbar-thumb:hover {
  background: rgba(236, 72, 153, 0.6);
}

/* --------------------------------------------------------------------------
   5. CHAT MESSAGES & TYPOGRAPHY
   -------------------------------------------------------------------------- */
.bot-welcome-card {
  background: linear-gradient(135deg, rgba(23, 18, 48, 0.9), rgba(16, 12, 36, 0.9));
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 240, 255, 0.15);
  animation: botFadeIn 0.3s ease;
}

.bot-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(0, 240, 255, 0.12);
  color: var(--bot-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.bot-welcome-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.bot-welcome-desc {
  font-size: 13px;
  color: var(--bot-text-muted);
  line-height: 1.5;
  margin: 0 0 14px 0;
}

/* Message Rows */
.bot-msg-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: botFadeIn 0.25s ease-out;
  position: relative;
}

@keyframes botFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* User Message */
.bot-msg-row.is-user {
  flex-direction: row-reverse;
}

.bot-msg-row.is-user .bot-msg-avatar {
  background: linear-gradient(135deg, #7c3aed, #5800e0);
  color: #fff;
}

.bot-msg-row.is-user .bot-msg-bubble {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4) 0%, rgba(88, 0, 224, 0.45) 100%);
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-top-right-radius: 4px;
  border-top-left-radius: 16px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(88, 0, 224, 0.2);
}

/* Bot Message */
.bot-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00f0ff, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #090714;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
  overflow: hidden;
}

.bot-msg-avatar-brand {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.bot-msg-bubble {
  background: var(--bot-card-bg);
  border: 1px solid var(--bot-border);
  padding: 12px 16px;
  border-radius: 16px;
  border-top-left-radius: 4px;
  color: var(--bot-text);
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  max-width: 86%;
  word-wrap: break-word;
  position: relative;
}

.bot-msg-bubble p {
  margin: 0 0 8px 0;
}
.bot-msg-bubble p:last-child {
  margin-bottom: 0;
}

.bot-msg-bubble h3, 
.bot-msg-bubble h4 {
  color: var(--bot-cyan);
  font-size: 14px;
  font-weight: 700;
  margin: 10px 0 6px 0;
}
.bot-msg-bubble h3:first-child,
.bot-msg-bubble h4:first-child {
  margin-top: 0;
}

.bot-msg-bubble ul,
.bot-msg-bubble ol {
  margin: 6px 0 10px 0;
  padding-left: 20px;
}

.bot-msg-bubble li {
  margin-bottom: 5px;
  line-height: 1.5;
}

.bot-msg-bubble strong {
  color: #fff;
  font-weight: 700;
}

.bot-msg-bubble blockquote {
  border-left: 3px solid var(--bot-cyan);
  margin: 8px 0;
  padding: 6px 12px;
  background: rgba(0, 240, 255, 0.08);
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  color: #e2e8f0;
}

.bot-code-inline {
  background: rgba(139, 92, 246, 0.2);
  color: var(--bot-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.bot-code-block {
  background: rgba(9, 7, 20, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0;
  overflow-x: auto;
  font-family: monospace;
  font-size: 11px;
  color: #38bdf8;
}

.bot-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  margin: 4px 2px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--bot-cyan) !important;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.2s ease;
}

.bot-link-btn:hover {
  background: linear-gradient(135deg, var(--bot-cyan), var(--bot-pink));
  color: #07060f !important;
  border-color: transparent;
  transform: translateY(-1px);
}

/* Bubble Footer Actions */
.bot-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
  padding-top: 4px;
  font-size: 10px;
  color: var(--bot-text-muted);
}

.bot-msg-action-btn {
  background: transparent;
  border: none;
  color: var(--bot-text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 11px;
  transition: all 0.2s ease;
}

.bot-msg-action-btn:hover {
  color: var(--bot-cyan);
  background: rgba(255, 255, 255, 0.05);
}

/* Typing Indicator */
.bot-typing-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.bot-typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bot-card-bg);
  border: 1px solid var(--bot-border);
  padding: 10px 14px;
  border-radius: 14px;
  border-top-left-radius: 4px;
  width: fit-content;
}

.bot-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bot-cyan);
  animation: botTypingDot 1.4s infinite ease-in-out;
}

.bot-typing-dot:nth-child(2) {
  background: var(--bot-purple);
  animation-delay: 0.2s;
}

.bot-typing-dot:nth-child(3) {
  background: var(--bot-pink);
  animation-delay: 0.4s;
}

@keyframes botTypingDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* --------------------------------------------------------------------------
   6. QUICK PROMPT CHIPS
   -------------------------------------------------------------------------- */
.qcoin-bot-quick-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 14px;
  scrollbar-width: none;
  background: rgba(12, 10, 24, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.qcoin-bot-quick-chips::-webkit-scrollbar {
  display: none;
}

.bot-chip-btn {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.bot-chip-btn:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(236, 72, 153, 0.18));
  border-color: var(--bot-cyan);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.2);
}

/* --------------------------------------------------------------------------
   7. CHAT INPUT BAR & FOOTER
   -------------------------------------------------------------------------- */
.qcoin-bot-footer {
  background: rgba(10, 8, 20, 0.95);
  border-top: 1px solid var(--bot-border);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 5;
}

.qcoin-bot-input-form {
  padding: 10px 14px 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qcoin-bot-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 14, 38, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 14px;
  padding: 6px 8px 6px 14px;
  transition: all 0.25s ease;
}

.qcoin-bot-input-wrap:focus-within {
  border-color: var(--bot-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.qcoin-bot-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  resize: none;
  max-height: 100px;
  line-height: 1.4;
  padding: 4px 0;
  font-family: inherit;
}

.qcoin-bot-input::placeholder {
  color: var(--bot-text-muted);
  font-size: 12px;
}

.qcoin-bot-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed 0%, #5800e0 100%);
  border: none;
  color: #ffffff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.qcoin-bot-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
}

.qcoin-bot-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.bot-disclaimer-text {
  text-align: center;
  font-size: 10px;
  color: var(--bot-text-muted);
  letter-spacing: 0.2px;
}

/* --------------------------------------------------------------------------
   8. TAB 2: STUDENT GUIDELINE & ROADMAP
   -------------------------------------------------------------------------- */
.bot-guide-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: botFadeIn 0.3s ease;
}

.bot-guide-hero {
  background: linear-gradient(135deg, rgba(23, 18, 48, 0.9), rgba(16, 12, 36, 0.9));
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.bot-guide-hero h3 {
  font-size: 16px;
  color: #fff;
  font-weight: 800;
  margin: 0 0 4px 0;
}

.bot-guide-hero p {
  font-size: 12px;
  color: var(--bot-text-muted);
  margin: 0;
}

/* Step Timeline */
.bot-step-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-left: 10px;
}

.bot-step-item {
  display: flex;
  gap: 14px;
  background: var(--bot-card-bg);
  border: 1px solid var(--bot-border);
  border-radius: 14px;
  padding: 14px;
  transition: all 0.25s ease;
}

.bot-step-item:hover {
  border-color: var(--bot-pink);
  background: var(--bot-card-hover);
  transform: translateX(3px);
}

.bot-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bot-cyan), var(--bot-purple));
  color: #07060f;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bot-step-content {
  flex: 1;
}

.bot-step-content h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
}

.bot-step-content p {
  font-size: 12px;
  color: var(--bot-text-muted);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.bot-step-action {
  font-size: 11px;
  color: var(--bot-cyan);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.bot-step-action:hover {
  color: var(--bot-pink);
}

/* Course Syllabus Cards in Guide */
.bot-courses-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bot-course-mini-card {
  background: rgba(18, 14, 38, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  padding: 12px;
  transition: all 0.25s ease;
}

.bot-course-mini-card:hover {
  border-color: var(--bot-cyan);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.15);
}

.bot-course-mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.bot-course-level-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.tag-cyan { background: rgba(0, 240, 255, 0.2); color: var(--bot-cyan); }
.tag-purple { background: rgba(139, 92, 246, 0.25); color: #c084fc; }
.tag-pink { background: rgba(236, 72, 153, 0.2); color: var(--bot-pink); }
.tag-red { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.bot-course-mini-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
}

.bot-course-mini-desc {
  font-size: 11px;
  color: var(--bot-text-muted);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   9. TAB 3: TRADING TOOLS & CALCULATORS
   -------------------------------------------------------------------------- */
.bot-tools-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: botFadeIn 0.3s ease;
}

.bot-calc-card {
  background: linear-gradient(135deg, rgba(23, 18, 48, 0.95), rgba(16, 12, 36, 0.95));
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.bot-calc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.bot-calc-header i {
  color: var(--bot-cyan);
  font-size: 16px;
}

.bot-calc-header h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.bot-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.bot-calc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bot-calc-field label {
  font-size: 11px;
  color: var(--bot-text-muted);
  font-weight: 600;
}

.bot-calc-input {
  width: 100%;
  padding: 8px 10px;
  background: rgba(10, 8, 20, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.bot-calc-input:focus {
  border-color: var(--bot-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.bot-calc-btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bot-cyan), var(--bot-pink));
  color: #07060f;
  font-weight: 700;
  font-size: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bot-calc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.35);
}

.bot-calc-results {
  margin-top: 12px;
  padding: 12px;
  background: rgba(10, 8, 20, 0.8);
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: none;
}

.bot-calc-results.is-visible {
  display: block;
}

.bot-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.bot-result-row:last-child {
  border-bottom: none;
}

.bot-result-label {
  color: var(--bot-text-muted);
}

.bot-result-val {
  font-weight: 700;
  color: #fff;
}

.bot-result-val.highlight-green {
  color: #10b981;
}
.bot-result-val.highlight-cyan {
  color: var(--bot-cyan);
}
.bot-result-val.highlight-pink {
  color: var(--bot-pink);
}

/* Cheat Sheet Cards */
.bot-cheat-card {
  background: var(--bot-card-bg);
  border: 1px solid var(--bot-border);
  border-radius: 14px;
  padding: 12px 14px;
}

.bot-cheat-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--bot-cyan);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bot-cheat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bot-cheat-list li {
  font-size: 11px;
  line-height: 1.4;
  color: #e2e8f0;
}

/* --------------------------------------------------------------------------
   10. SETTINGS MODAL
   -------------------------------------------------------------------------- */
.qcoin-bot-settings-modal {
  position: absolute;
  inset: 0;
  background: rgba(7, 6, 15, 0.85);
  backdrop-filter: blur(12px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.qcoin-bot-settings-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.bot-settings-card {
  background: #120e26;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 18px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), var(--bot-glow-cyan);
  overflow: hidden;
}

.bot-settings-head {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bot-settings-head h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bot-settings-close {
  background: transparent;
  border: none;
  color: var(--bot-text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.bot-settings-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bot-form-group label {
  font-size: 11px;
  color: var(--bot-text-muted);
  font-weight: 600;
}

.bot-select,
.bot-input-field {
  width: 100%;
  padding: 9px 12px;
  background: rgba(9, 7, 20, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  outline: none;
  font-family: inherit;
}

.bot-select:focus,
.bot-input-field:focus {
  border-color: var(--bot-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.bot-help-text {
  font-size: 10px;
  color: var(--bot-text-muted);
  line-height: 1.3;
}

.bot-settings-status {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 8px;
  display: none;
}
.bot-settings-status.is-success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #10b981;
}
.bot-settings-status.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #ef4444;
}

.bot-settings-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.bot-btn-primary,
.bot-btn-secondary {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.bot-btn-primary {
  background: linear-gradient(135deg, var(--bot-cyan), var(--bot-pink));
  color: #07060f;
}
.bot-btn-primary:hover {
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
}

.bot-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.bot-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .qcoin-bot-panel {
    right: 12px;
    bottom: 85px;
    width: calc(100vw - 24px);
    height: calc(100vh - 105px);
    max-height: calc(100vh - 105px);
    border-radius: 18px;
  }
  .qcoin-bot-launcher-wrap {
    right: 16px;
    bottom: 20px;
  }
  .qcoin-bot-tooltip {
    display: none;
  }
  .bot-msg-bubble {
    max-width: 92%;
  }
}
