.hp-faq-page {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.hp-faq-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--hp-surface);
  box-shadow: var(--hp-header-shadow, 0 1px 0 rgba(15, 23, 42, 0.06));
}

.hp-faq-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.hp-faq-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hp-faq-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hp-text);
  background: var(--hp-surface-2);
  border: 1px solid var(--hp-border);
}

.hp-faq-back:hover {
  border-color: var(--hp-accent, #6e00ff);
  color: var(--hp-accent, #6e00ff);
}

.hp-faq-main {
  padding: 24px 0 48px;
}

.hp-faq-hero {
  text-align: center;
  padding: 28px 20px 32px;
  margin-bottom: 28px;
  border-radius: var(--hp-radius, 20px);
  background:
    radial-gradient(circle at top, rgba(110, 0, 255, 0.12), transparent 55%),
    linear-gradient(135deg, var(--hp-surface), var(--hp-surface-2));
  border: 1px solid var(--hp-border);
  box-shadow: var(--hp-shadow);
}

.hp-faq-hero__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--hp-accent-soft, rgba(110, 0, 255, 0.1));
  color: var(--hp-accent, #6e00ff);
  font-size: 1.6rem;
}

.hp-faq-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  color: var(--hp-text);
}

.hp-faq-hero > p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--hp-text-muted);
  line-height: 1.8;
}

.hp-faq-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 18px;
  font-size: 0.92rem;
}

.hp-faq-hero__meta span,
.hp-faq-hero__meta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hp-text-muted);
  text-decoration: none;
}

.hp-faq-hero__meta a:hover {
  color: var(--hp-accent, #6e00ff);
}

.hp-faq-list {
  display: grid;
  gap: 12px;
}

.hp-faq-item {
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-sm, 12px);
  background: var(--hp-surface);
  box-shadow: var(--hp-shadow);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-faq-item.is-open {
  border-color: var(--hp-accent-border, rgba(110, 0, 255, 0.35));
  box-shadow: var(--hp-shadow-hover, 0 10px 28px rgba(15, 23, 42, 0.08));
}

.hp-faq-item h2 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.hp-faq-item__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.hp-faq-item__trigger:hover {
  background: var(--hp-accent-soft, rgba(110, 0, 255, 0.1));
}

.hp-faq-item__num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--hp-accent-soft, rgba(110, 0, 255, 0.1));
  color: var(--hp-accent, #6e00ff);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hp-faq-item__q {
  line-height: 1.7;
  font-weight: 600;
  color: var(--hp-text);
}

.hp-faq-item__chev {
  color: var(--hp-text-muted);
  transition: transform 0.2s ease;
}

.hp-faq-item.is-open .hp-faq-item__chev {
  transform: rotate(180deg);
  color: var(--hp-accent, #6e00ff);
}

.hp-faq-item__panel {
  overflow: hidden;
}

.hp-faq-item__answer {
  padding: 0 18px 18px 62px;
  color: var(--hp-text-muted);
  line-height: 1.95;
  font-size: 0.96rem;
}

.hp-faq-empty {
  text-align: center;
  padding: 48px 24px;
  border-radius: var(--hp-radius, 20px);
  border: 1px dashed var(--hp-border);
  background: var(--hp-surface);
}

.hp-faq-empty i {
  font-size: 2.4rem;
  color: var(--hp-accent, #6e00ff);
  margin-bottom: 12px;
}

.hp-faq-empty h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--hp-text);
}

.hp-faq-empty p {
  margin: 0 0 20px;
  color: var(--hp-text-muted);
}

.hp-faq-support {
  margin-top: 32px;
  padding: 22px 20px;
  border-radius: var(--hp-radius, 20px);
  background: linear-gradient(135deg, rgba(110, 0, 255, 0.08), rgba(102, 126, 234, 0.08));
  border: 1px solid var(--hp-accent-border, rgba(110, 0, 255, 0.28));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hp-faq-support h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--hp-text);
}

.hp-faq-support p {
  margin: 0;
  color: var(--hp-text-muted);
}

.hp-faq-support__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hp-faq-empty .hp-btn,
.hp-faq-support .hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.hp-faq-empty .hp-btn--primary,
.hp-faq-support .hp-btn--primary {
  background: var(--hp-accent, #6e00ff);
  color: #fff;
}

.hp-faq-support .hp-btn--ghost {
  background: var(--hp-surface);
  color: var(--hp-text);
  border-color: var(--hp-border);
}

@media (max-width: 640px) {
  .hp-faq-item__answer {
    padding-inline: 18px;
  }

  .hp-faq-header__inner .hp-brand img {
    max-width: 130px;
    height: auto;
  }
}

@media (min-width: 992px) {
  .hp-faq-page {
    padding-bottom: 0;
  }

  .hp-faq-main .hp-container {
    max-width: 860px;
  }
}
