/* ==========================================================================
   Help & Knowledge Base Modern Design System - Pro Studio Dark Edition
   ========================================================================== */

#help {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 28px 48px;
  font-family: 'Kantumruy Pro', 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  color: var(--text-main, #f8fafc);
}

#help button, #help input, #help select, #help textarea {
  font-family: 'Kantumruy Pro', 'Inter', system-ui, -apple-system, sans-serif;
}

#help code, #help .code-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

/* Hero Section with Modern Dark Gradient */
.help-hero-banner {
  background: linear-gradient(135deg, #090d16 0%, #111827 50%, #1e1b4b 100%);
  color: #fff;
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  position: relative;
  overflow: hidden;
}

.help-hero-banner::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.help-hero-content {
  position: relative;
  z-index: 1;
}

.help-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.help-pill-tag .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.help-hero-banner h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.help-hero-banner p {
  color: #94a3b8;
  font-size: 14px;
  margin: 0 0 20px;
  max-width: 820px;
}

/* Hero Search Box */
.help-search-wrapper {
  position: relative;
  max-width: 580px;
}

.help-search-input {
  width: 100%;
  background: rgba(10, 15, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 12px 18px 12px 42px;
  color: #ffffff;
  font-size: 13.5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.help-search-input:focus {
  border-color: #6366f1;
  background: rgba(10, 15, 26, 0.95);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28), 0 4px 20px rgba(0, 0, 0, 0.45);
  outline: none;
}

.help-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
  pointer-events: none;
}

/* Quick Filter Nav Pills */
.help-nav-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 24px;
}

.help-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #cbd5e1);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.help-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.help-filter-btn.active {
  background: var(--primary-gradient, linear-gradient(135deg, #6366f1, #8b5cf6));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* Main Grid & Cards */
.help-grid-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.help-full-col {
  grid-column: 1 / -1;
}

.help-card-panel {
  background: var(--bg-card, #131c31);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-card, 0 6px 20px -4px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.help-card-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.16);
}

.help-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.help-icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.icon-purple { background: rgba(147, 51, 234, 0.2); color: #c084fc; border: 1px solid rgba(147, 51, 234, 0.35); }
.icon-emerald { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.35); }
.icon-amber { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.35); }
.icon-sky { background: rgba(14, 165, 233, 0.2); color: #7dd3fc; border: 1px solid rgba(14, 165, 233, 0.35); }
.icon-rose { background: rgba(244, 63, 94, 0.2); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.35); }

.help-card-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.help-card-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.badge-purple { background: rgba(147, 51, 234, 0.18); color: #d8b4fe; border: 1px solid rgba(147, 51, 234, 0.3); }
.badge-emerald { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-amber { background: rgba(245, 158, 11, 0.18); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-sky { background: rgba(14, 165, 233, 0.18); color: #bae6fd; border: 1px solid rgba(14, 165, 233, 0.3); }

/* Visual Step Sequence */
.help-workflow-pipeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 14px 0 20px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.pipeline-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -9px;
  top: 14px;
  color: #64748b;
  font-size: 14px;
  font-weight: bold;
}

.pipeline-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #6366f1;
  color: #a5b4fc;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
}

.pipeline-step strong {
  font-size: 12px;
  color: #ffffff;
  display: block;
}

.pipeline-step small {
  font-size: 11px;
  color: #8492a6;
  margin-top: 2px;
}

/* Comparison Boxes */
.help-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

.comparison-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px;
  transition: border-color 0.2s ease;
}

.comparison-box:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.comparison-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.comparison-box-head strong {
  font-size: 15px;
  color: #ffffff;
}

.code-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.comparison-box p {
  font-size: 13px;
  color: var(--text-secondary, #cbd5e1);
  line-height: 1.55;
  margin: 0 0 10px;
}

.comparison-specs {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(10, 15, 26, 0.7);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-specs div {
  display: flex;
  justify-content: space-between;
}

.comparison-specs span.muted-label {
  color: #8492a6;
}

/* Feature Item Highlights */
.help-feature-items {
  display: grid;
  gap: 12px;
}

.help-feature-row {
  display: flex;
  gap: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 16px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.help-feature-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.feature-icon-badge {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-content h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.feature-content p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary, #cbd5e1);
  line-height: 1.5;
}

/* Rights Policy List */
.policy-cards {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.policy-badge-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.policy-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  min-width: 80px;
  text-align: center;
  flex-shrink: 0;
}

.policy-monetize { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.4); }
.policy-track { background: rgba(245, 158, 11, 0.2); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.4); }
.policy-block { background: rgba(244, 63, 94, 0.2); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.4); }

.policy-desc strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 2px;
}

.policy-desc p {
  margin: 0;
  font-size: 12px;
  color: #8492a6;
  line-height: 1.4;
}

/* Interactive FAQ Accordion */
.faq-accordion {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item[open] {
  background: rgba(19, 28, 49, 0.85);
  border-color: #6366f1;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.faq-summary {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  font-size: 18px;
  color: #818cf8;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 18px 16px;
  font-size: 13px;
  color: var(--text-secondary, #cbd5e1);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 4px;
  padding-top: 12px;
}

.faq-body p {
  margin: 0 0 8px;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .help-workflow-pipeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .pipeline-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .help-grid-container {
    grid-template-columns: 1fr;
  }
  .help-comparison-grid {
    grid-template-columns: 1fr;
  }
  .help-hero-banner {
    padding: 24px;
  }
  .help-hero-banner h2 {
    font-size: 22px;
  }
  .help-workflow-pipeline {
    grid-template-columns: repeat(2, 1fr);
  }
}
