/* FAQ page — dark help-stack, search, filters */

.view-help .tt-main {
  background: #060a14;
}

.view-help .path-crumb ol {
  color: #64748b;
}

.view-help .path-crumb ol li[aria-hidden="true"] {
  color: #334155;
}

.view-help .path-crumb ol span[aria-current="page"] {
  color: #f1f5f9;
  font-weight: 500;
}

/* Hero */
.view-help .faq-hero {
  position: relative;
  overflow: hidden;
}

.view-help .faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(59, 130, 246, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 60%, rgba(56, 189, 248, 0.1), transparent 50%);
  pointer-events: none;
}

.view-help .faq-hero-inner {
  position: relative;
  z-index: 1;
}

.faq-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  justify-content: center;
}

.faq-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  animation: faq-pill-in 0.6s ease backwards;
}

.faq-stat-pill:nth-child(2) { animation-delay: 0.08s; }
.faq-stat-pill:nth-child(3) { animation-delay: 0.16s; }

.faq-stat-pill svg {
  width: 1rem;
  height: 1rem;
  color: #60a5fa;
}

@keyframes faq-pill-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section */
.faq-section {
  background: #060a14;
  padding-top: 0.5rem;
}

/* Toolbar */
.faq-toolbar {
  position: sticky;
  top: 4.25rem;
  z-index: 30;
  padding: 1rem 0 1.25rem;
  background: linear-gradient(to bottom, rgba(6, 10, 20, 0.97) 70%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.faq-toolbar-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-search-wrap {
  position: relative;
}

.faq-search-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  color: #64748b;
  pointer-events: none;
  transition: color 0.2s ease;
}

.faq-search {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  font-size: 0.9375rem;
  color: #f1f5f9;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-search:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 8px 24px rgba(37, 99, 235, 0.12);
}

.faq-search:focus + svg,
.faq-search-wrap:focus-within svg {
  color: #60a5fa;
}

.faq-search::placeholder {
  color: #64748b;
}

.faq-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.faq-filter-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-filter-btn:hover {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.faq-filter-btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.faq-expand-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: 1px dashed rgba(59, 130, 246, 0.25);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.faq-expand-btn:hover {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.08);
}

.faq-no-results {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
  color: #64748b;
}

.faq-no-results.is-visible {
  display: block;
  animation: faq-pill-in 0.4s ease;
}

/* Accordion cards */
.faq-help-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-card {
  opacity: 0;
  transform: translateY(16px);
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 0.5rem;
  background: #0f172a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}

.faq-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-card:hover {
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.12);
}

.faq-card.open {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow:
    0 12px 40px rgba(37, 99, 235, 0.15),
    0 0 0 1px rgba(59, 130, 246, 0.1);
  background: #0b1120;
}

.faq-card.is-hidden {
  display: none;
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.125rem 1.25rem;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  color: inherit;
}

.faq-trigger:hover {
  background: rgba(59, 130, 246, 0.06);
}

.faq-trigger-left {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  min-width: 0;
}

.faq-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.faq-card.open .faq-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transform: scale(1.05);
}

.faq-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.faq-q {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.45;
  padding-top: 0.2rem;
}

.faq-card.open .faq-q {
  color: #93c5fd;
}

.faq-chevron-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.12);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.faq-card.open .faq-chevron-wrap {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.25);
}

.faq-card .help-stack-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: #64748b;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.faq-card.open .help-stack-icon {
  color: #60a5fa;
  transform: rotate(180deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-panel-inner {
  padding: 0 1.25rem 1.25rem 4.375rem;
  border-top: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.faq-card.open .faq-panel-inner {
  border-top-color: rgba(59, 130, 246, 0.12);
  animation: faq-answer-in 0.4s ease;
}

@keyframes faq-answer-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-panel-inner p {
  margin: 0;
  padding-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #94a3b8;
}

.faq-panel-inner a {
  color: #60a5fa;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.faq-panel-inner a:hover {
  color: #93c5fd;
}

/* CTA block */
.faq-cta {
  margin-top: 3rem;
  padding: 2rem;
  text-align: center;
  border-radius: 0.5rem;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.faq-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #38bdf8, transparent);
}

.faq-cta p {
  color: #94a3b8;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 0.375rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
  color: #fff;
}

html[dir="rtl"] .faq-search-wrap svg {
  left: auto;
  right: 1rem;
}

html[dir="rtl"] .faq-search {
  padding: 0.875rem 2.75rem 0.875rem 1rem;
}

html[dir="rtl"] .faq-panel-inner {
  padding: 0 4.375rem 1.25rem 1.25rem;
}

html[dir="rtl"] .faq-trigger-left {
  flex-direction: row-reverse;
  text-align: right;
}

@media (max-width: 640px) {
  .faq-toolbar {
    top: 3.75rem;
  }

  .faq-panel-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  html[dir="rtl"] .faq-panel-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .faq-trigger-left {
    gap: 0.625rem;
  }

  .faq-icon {
    width: 2rem;
    height: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-card,
  .faq-stat-pill,
  .faq-panel-inner {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .faq-cta-btn:hover {
    transform: none;
  }
}
