/* ─────────────────────────────────────────────────────────────────────────
   FAQ / Help Center — searchable, topic-filtered accordion.
   Solid icefire (NO gradients). Scoped under .page-faq.
   ───────────────────────────────────────────────────────────────────────── */
.page-faq .faq-x { display: flex; flex-direction: column; gap: 22px; }

/* ── Search bar ─────────────────────────────────────────────────────────── */
.page-faq .faq-search { position: relative; display: flex; align-items: center; }
.page-faq .faq-search__icon {
  position: absolute; left: 20px; font-size: 1rem; color: #52a7ff; pointer-events: none;
}
.page-faq .faq-search__input {
  width: 100%; box-sizing: border-box;
  padding: 17px 108px 17px 50px; border-radius: 14px;
  background: rgba(8, 12, 22, 0.9); border: 1px solid rgba(82, 167, 255, 0.28);
  color: #eceff1; font-family: var(--font-inter, "Inter", sans-serif); font-size: 0.98rem; font-weight: 500;
  outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.page-faq .faq-search__input::placeholder { color: rgba(176, 190, 197, 0.55); }
.page-faq .faq-search__input:focus {
  border-color: #52a7ff; box-shadow: 0 0 0 3px rgba(82, 167, 255, 0.16);
}
.page-faq .faq-search__hint {
  position: absolute; right: 20px; font-size: 0.76rem; color: rgba(176, 190, 197, 0.6);
  text-transform: uppercase; letter-spacing: 0.08em; pointer-events: none;
}
.page-faq .faq-search__hint b { color: #e9b949; font-weight: 800; }
.page-faq .faq-search__clear {
  position: absolute; right: 12px; width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: #cfd8dc; background: rgba(82, 167, 255, 0.12); border: 1px solid rgba(82, 167, 255, 0.3);
  font-size: 0.82rem; transition: background 0.15s ease, color 0.15s ease;
}
.page-faq .faq-search__clear:hover { background: rgba(82, 167, 255, 0.24); color: #fff; }

/* ── Topic pills ────────────────────────────────────────────────────────── */
.page-faq .faq-pills { display: flex; flex-wrap: wrap; gap: 9px; }
.page-faq .faq-pill {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 14px; border-radius: 11px;
  font-family: var(--font-cinzel, "Cinzel", serif); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em;
  color: rgba(207, 216, 220, 0.82);
  background: rgba(10, 14, 26, 0.78); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.page-faq .faq-pill i { font-size: 0.86em; color: #52a7ff; transition: color 0.15s ease; }
.page-faq .faq-pill:hover { border-color: rgba(82, 167, 255, 0.4); color: #eceff1; }
.page-faq .faq-pill__n {
  font-family: var(--font-inter, "Inter", sans-serif); font-size: 0.68rem; font-weight: 800;
  padding: 1px 7px; border-radius: 999px; color: rgba(176, 190, 197, 0.9);
  background: rgba(4, 8, 16, 0.55); border: 1px solid rgba(255, 255, 255, 0.08);
}
.page-faq .faq-pill.is-active {
  color: #1a1206; background: #e9b949; border-color: #f6d98a;
}
.page-faq .faq-pill.is-active i { color: #1a1206; }
.page-faq .faq-pill.is-active .faq-pill__n {
  color: #1a1206; background: rgba(26, 18, 6, 0.14); border-color: rgba(26, 18, 6, 0.28);
}

/* ── Blocks / headers ───────────────────────────────────────────────────── */
.page-faq .faq-block { display: flex; flex-direction: column; }
.page-faq .faq-cat-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.page-faq .faq-cat-head__icon {
  width: 42px; height: 42px; flex: none; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #52a7ff; background: rgba(82, 167, 255, 0.1); border: 1px solid rgba(82, 167, 255, 0.28);
}
.page-faq .faq-cat-head__title {
  margin: 0; font-family: var(--font-cinzel, "Cinzel", serif); font-size: 1.28rem; font-weight: 900; color: #eceff1;
}
.page-faq .faq-cat-head__count {
  margin-left: auto; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(176, 190, 197, 0.6);
}
.page-faq .faq-results-head {
  margin: 2px 0 14px; font-size: 0.9rem; color: rgba(188, 178, 160, 0.9);
}
.page-faq .faq-results-head b { color: #e9b949; font-weight: 800; font-size: 1.05rem; }

/* ── Accordion ──────────────────────────────────────────────────────────── */
.page-faq .faq-list { display: flex; flex-direction: column; gap: 10px; }
.page-faq .faq-item {
  border-radius: 12px; overflow: hidden;
  background: rgba(10, 14, 26, 0.82); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.page-faq .faq-item:hover { border-color: rgba(82, 167, 255, 0.28); }
.page-faq .faq-item.is-open {
  border-color: rgba(82, 167, 255, 0.4); box-shadow: inset 3px 0 0 0 #52a7ff;
}
.page-faq .faq-q {
  width: 100%; box-sizing: border-box; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; background: transparent; border: none;
}
.page-faq .faq-q__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.page-faq .faq-q__tag {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-family: var(--font-inter, "Inter", sans-serif); font-size: 0.64rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: #8fcaff;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(82, 167, 255, 0.1); border: 1px solid rgba(82, 167, 255, 0.26);
}
.page-faq .faq-q__text {
  font-family: var(--font-cinzel, "Cinzel", serif); font-size: 0.98rem; font-weight: 700; color: #eceff1; line-height: 1.35;
}
.page-faq .faq-item.is-open .faq-q__text { color: #8fcaff; }
.page-faq .faq-chevron {
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #52a7ff; background: rgba(4, 8, 16, 0.5); border: 1px solid rgba(82, 167, 255, 0.28);
  font-size: 0.74rem; transition: transform 0.22s ease, background 0.15s ease;
}
.page-faq .faq-item.is-open .faq-chevron { transform: rotate(180deg); background: rgba(82, 167, 255, 0.18); }

/* Smooth height animation without magic numbers (grid 0fr → 1fr). */
.page-faq .faq-ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.26s ease; }
.page-faq .faq-item.is-open .faq-ans { grid-template-rows: 1fr; }
.page-faq .faq-ans__inner { overflow: hidden; }
.page-faq .faq-ans p {
  margin: 0; padding: 14px 18px 18px; border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem; line-height: 1.68; color: rgba(207, 216, 220, 0.88);
}

/* ── Empty state ────────────────────────────────────────────────────────── */
.page-faq .faq-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 44px 24px; border-radius: 14px;
  background: rgba(10, 14, 26, 0.7); border: 1px dashed rgba(255, 255, 255, 0.14);
}
.page-faq .faq-empty__icon {
  width: 56px; height: 56px; border-radius: 15px; margin-bottom: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #52a7ff; background: rgba(82, 167, 255, 0.1); border: 1px solid rgba(82, 167, 255, 0.28);
}
.page-faq .faq-empty__title { font-family: var(--font-cinzel, "Cinzel", serif); font-size: 1.1rem; font-weight: 800; color: #eceff1; }
.page-faq .faq-empty__text { font-size: 0.88rem; color: rgba(176, 190, 197, 0.85); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.page-faq .faq-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 18px 24px; border-radius: 14px; margin-top: 4px;
  background: rgba(13, 18, 32, 0.86); border: 1px solid rgba(233, 185, 73, 0.24); border-left: 4px solid #e9b949;
}
.page-faq .faq-foot__text { font-size: 0.88rem; line-height: 1.55; color: rgba(188, 178, 160, 0.9); }
.page-faq .faq-link { color: #52a7ff; text-decoration: none; font-weight: 700; }
.page-faq .faq-link:hover { color: #8fcaff; }
.page-faq .faq-foot__guide {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-family: var(--font-cinzel, "Cinzel", serif); font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
  color: #1a1206; background: #e9b949; border: 1px solid #f6d98a; padding: 11px 20px; border-radius: 11px;
  transition: background 0.15s ease;
}
.page-faq .faq-foot__guide:hover { background: #f6d98a; }

@media (max-width: 760px) {
  .page-faq .faq-cat-head__title { font-size: 1.14rem; }
  .page-faq .faq-cat-head__count { display: none; }
  .page-faq .faq-q__text { font-size: 0.92rem; }
  .page-faq .faq-search__input { padding-right: 50px; }
  .page-faq .faq-search__hint { display: none; }
}
