:root {
  --faq-bg: #061321;
  --faq-surface: #0d1d2e;
  --faq-surface-strong: #122438;
  --faq-border: #23384d;
  --faq-text: #f4f7fb;
  --faq-muted: #9bb0c7;
  --faq-blue: #1686ff;
  --faq-cyan: #22c5e5;
}

* {
  box-sizing: border-box;
}

.faq-body {
  margin: 0;
  background: var(--faq-bg);
  color: var(--faq-text);
  font-family: Inter, Arial, sans-serif;
}

.faq-main {
  min-height: 100vh;
  background: var(--faq-bg);
}

.faq-header {
  min-height: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--faq-border);
  background: #081726;
}

.faq-header-left,
.faq-header-actions,
.faq-brand,
.faq-support-actions {
  display: flex;
  align-items: center;
}

.faq-header-left {
  gap: 18px;
}

.faq-menu-toggle {
  width: 36px;
  height: 36px;
  padding: 7px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.faq-menu-toggle span {
  height: 2px;
  width: 21px;
  background: #e8eef5;
}

.faq-brand {
  gap: 10px;
  color: var(--faq-text);
  text-decoration: none;
}

.faq-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.faq-brand span {
  display: grid;
}

.faq-brand strong {
  font-size: 15px;
}

.faq-brand small {
  color: var(--faq-muted);
  font-size: 9px;
}

.faq-header-actions {
  gap: 18px;
}

.faq-header-actions a {
  color: #bfd0e2;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.faq-header-actions .faq-signup,
.faq-avatar {
  padding: 10px 15px;
  border-radius: 6px;
  color: #fff;
  background: var(--faq-blue);
}

.faq-page {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 70px;
}

.faq-intro {
  max-width: 760px;
}

.faq-back {
  color: var(--faq-cyan);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.faq-intro h1 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
}

.faq-intro > p {
  color: var(--faq-muted);
  line-height: 1.7;
}

.faq-search-wrap {
  height: 58px;
  margin-top: 28px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--faq-border);
  border-radius: 7px;
  background: var(--faq-surface);
}

.faq-search-wrap:focus-within {
  border-color: var(--faq-blue);
  box-shadow: 0 0 0 3px rgba(22, 134, 255, 0.16);
}

.faq-search-wrap svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--faq-muted);
  stroke-width: 2;
}

.faq-search-wrap input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--faq-text);
  background: transparent;
  font-size: 15px;
}

.faq-search-wrap input::placeholder {
  color: #71879e;
}

.faq-search-wrap button {
  border: 0;
  color: var(--faq-muted);
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.faq-result-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #7890a8;
  font-size: 12px;
}

.faq-category-nav {
  margin: 30px 0 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.faq-category-nav a {
  padding: 8px 12px;
  border: 1px solid var(--faq-border);
  border-radius: 5px;
  color: #b8c9db;
  background: var(--faq-surface);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.faq-category-nav a:hover {
  border-color: var(--faq-blue);
  color: #fff;
}

.faq-groups {
  display: grid;
  gap: 28px;
}

.faq-category {
  scroll-margin-top: 20px;
}

.faq-category-heading {
  margin-bottom: 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.faq-category-heading h2 {
  margin: 0;
  font-size: 21px;
}

.faq-category-heading span {
  color: var(--faq-muted);
  font-size: 12px;
}

.faq-list {
  border: 1px solid var(--faq-border);
  border-radius: 7px;
  overflow: hidden;
  background: var(--faq-surface);
}

.faq-item + .faq-item {
  border-top: 1px solid var(--faq-border);
}

.faq-item summary {
  min-height: 62px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 800;
}

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

.faq-item summary i {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-right: 2px solid var(--faq-cyan);
  border-bottom: 2px solid var(--faq-cyan);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] {
  background: var(--faq-surface-strong);
}

.faq-item[open] summary i {
  transform: rotate(225deg);
}

.faq-answer {
  padding: 0 20px 20px;
  color: #aec0d3;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-line;
}

.faq-empty,
.faq-no-results {
  padding: 42px 24px;
  border: 1px solid var(--faq-border);
  border-radius: 7px;
  text-align: center;
  background: var(--faq-surface);
}

.faq-empty h2,
.faq-no-results h2 {
  margin: 0 0 8px;
}

.faq-empty p,
.faq-no-results p {
  margin: 0;
  color: var(--faq-muted);
}

.faq-support {
  margin-top: 44px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--faq-border);
  border-radius: 7px;
  background: var(--faq-surface-strong);
}

.faq-support span {
  color: var(--faq-cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.faq-support h2 {
  margin: 6px 0;
  font-size: 24px;
}

.faq-support p {
  max-width: 620px;
  margin: 0;
  color: var(--faq-muted);
  line-height: 1.6;
}

.faq-support-actions {
  flex: 0 0 auto;
  gap: 10px;
}

.faq-contact-btn,
.faq-chat-btn {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.faq-contact-btn {
  border: 1px solid var(--faq-blue);
  color: #fff;
  background: var(--faq-blue);
}

.faq-chat-btn {
  border: 1px solid var(--faq-border);
  color: #dce8f4;
  background: transparent;
}

.faq-footer {
  padding: 32px max(28px, calc((100% - 1080px) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--faq-border);
  background: #081726;
}

.faq-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.faq-footer nav a,
.faq-footer p {
  color: var(--faq-muted);
  font-size: 12px;
  text-decoration: none;
}

.faq-footer p {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .faq-header {
    padding: 0 16px;
  }

  .faq-header-actions > a:not(.faq-avatar):not(.faq-signup) {
    display: none;
  }

  .faq-page {
    width: min(100% - 28px, 1080px);
    padding-top: 36px;
  }

  .faq-support {
    align-items: stretch;
    flex-direction: column;
  }

  .faq-support-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .faq-footer {
    grid-template-columns: 1fr;
  }

  .faq-footer nav {
    justify-content: flex-start;
  }
}
