/* Duunijobs — lightweight AI help panel (no external API) */
#dj-ai-help-root {
  --dj-ai-bg: #0f172a;
  --dj-ai-panel: #1e293b;
  --dj-ai-border: rgba(148, 163, 184, 0.25);
  --dj-ai-text: #e2e8f0;
  --dj-ai-muted: #94a3b8;
  --dj-ai-accent: #22c55e;
  --dj-ai-blue: #3b82f6;
  font-family: 'Lato', 'DM Sans', system-ui, sans-serif;
}

#dj-ai-help-root .dj-ai-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #22c55e);
  box-shadow: 0 10px 36px rgba(59, 130, 246, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}
#dj-ai-help-root .dj-ai-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(34, 197, 94, 0.35);
}
#dj-ai-help-root .dj-ai-fab:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}
#dj-ai-help-root .dj-ai-fab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

#dj-ai-help-root .dj-ai-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9991;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#dj-ai-help-root.dj-ai-open .dj-ai-backdrop {
  opacity: 1;
  pointer-events: auto;
}

#dj-ai-help-root .dj-ai-panel {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 9992;
  width: min(400px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--dj-ai-panel);
  color: var(--dj-ai-text);
  border-radius: 16px;
  border: 1px solid var(--dj-ai-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.2s;
}
#dj-ai-help-root.dj-ai-open .dj-ai-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

#dj-ai-help-root .dj-ai-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--dj-ai-border);
  background: rgba(15, 23, 42, 0.5);
}
#dj-ai-help-root .dj-ai-panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
#dj-ai-help-root .dj-ai-panel-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--dj-ai-muted);
  font-weight: 500;
  line-height: 1.45;
}
#dj-ai-help-root .dj-ai-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--dj-ai-border);
  background: transparent;
  color: var(--dj-ai-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
#dj-ai-help-root .dj-ai-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--dj-ai-text);
}

#dj-ai-help-root .dj-ai-panel-body {
  padding: 14px 18px 18px;
  overflow-y: auto;
  flex: 1;
}
#dj-ai-help-root .dj-ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
#dj-ai-help-root .dj-ai-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--dj-ai-border);
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
#dj-ai-help-root .dj-ai-chip:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}

#dj-ai-help-root .dj-ai-answer {
  font-size: 13px;
  line-height: 1.65;
  color: #cbd5e1;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--dj-ai-border);
  min-height: 48px;
}
#dj-ai-help-root .dj-ai-answer a {
  color: var(--dj-ai-accent);
  font-weight: 700;
}
#dj-ai-help-root .dj-ai-links {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#dj-ai-help-root .dj-ai-links a {
  display: block;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  text-decoration: none;
  border: 1px solid rgba(59, 130, 246, 0.25);
  transition: background 0.15s;
}
#dj-ai-help-root .dj-ai-links a:hover {
  background: rgba(59, 130, 246, 0.28);
}

@media (max-width: 480px) {
  #dj-ai-help-root .dj-ai-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 72px;
  }
  #dj-ai-help-root .dj-ai-fab span.dj-ai-fab-text {
    display: none;
  }
  #dj-ai-help-root .dj-ai-fab {
    padding: 14px;
    border-radius: 50%;
  }
}
