.faq-wrap {
  width: 100%;
  max-width: 860px;
  margin: 150px auto 80px auto;
  padding: 0 16px;
  color: #dddddd;
  display: grid;
  gap: 18px;
  font-family: var(--main-font, "Nata Sans", sans-serif);
}

.glass {
  background: rgba(0, 0, 0, 0.09);
  border-radius: 25px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 2px solid rgba(179, 179, 179, 0.12);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[hidden] {
  display: none !important;
}

.faq-hero {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.faq-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.faq-head {
  min-width: 260px;
}

.faq-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  font-size: 28px;
  color: #e6eef8;
}

.faq-subtitle {
  margin: 10px 0 0 0;
  font-size: 18.5px;
  color: var(--muted, #b2c2da);
  line-height: 1.55;
}

.discord-cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 12px 14px;
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);

  transition: 0.2s ease;
  font-weight: 800;
  white-space: nowrap;
}

.discord-cta:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.discord-cta:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) inset;
}

.faq-tools {
  display: grid;
  gap: 12px;
}

.faq-search {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-search i {
  opacity: 0.8;
}

.faq-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-family: var(--main-font, "Nata Sans", sans-serif);
}

.faq-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.icon-btn {
  border: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
}

.icon-btn:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) inset;
}

.faq-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);

  cursor: pointer;
  transition: 0.2s ease;
  font-weight: 800;
  font-size: 13px;
  font-family: var(--main-font, "Nata Sans", sans-serif);
}

.pill-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.pill-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) inset;
}

.faq-chips {
  margin-top: 2px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);

  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s ease;
}

.chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
}

.chip.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.faq-list {
  padding: 12px;
}

.faq-empty {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 6px;
}

.faq-empty__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-empty__text {
  display: grid;
  gap: 2px;
}

.faq-empty__text b {
  color: #e6eef8;
}

.faq-empty__text span {
  color: var(--muted, #b2c2da);
  font-size: 13px;
}

.faq-item {
  border-radius: 20px;
  margin: 8px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);

  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.faq-item.is-open {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.faq-item.is-fading-out {
  opacity: 0;
  transform: translateY(8px);
}

.faq-item.is-fading-in {
  opacity: 0;
  transform: translateY(8px);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 14px 14px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;

  font-family: var(--main-font, "Nata Sans", sans-serif);
  transition: 0.2s ease;
}

.faq-q:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-q__left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.faq-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
}

.faq-q__text {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: #e6eef8;
  text-align: left;
}

.faq-q__right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.faq-link {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.9;
  transition: 0.2s ease;
}

.faq-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
}

.faq-chevron {
  opacity: 0.75;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.faq-a {
  max-height: 0px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a__inner {
  padding: 0 14px 14px 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.6;
}

.faq-a__inner p {
  margin: 10px 0 0 0;
}

.faq-a__inner ul {
  margin: 10px 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
}

.faq-a__inner a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  text-decoration: none;
}

.faq-a__inner a:hover {
  text-decoration: underline;
}

mark {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  padding: 0 4px;
  border-radius: 6px;
}

.faq-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  z-index: 99999;

  padding: 10px 14px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: 0.25s ease;
  font-weight: 800;
  font-size: 13px;
  font-family: var(--main-font, "Nata Sans", sans-serif);
}

.faq-toast.show {
  transform: translateX(-50%) translateY(0px);
  opacity: 1;
}

@media (max-width: 520px) {
  .discord-cta {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
