/* Fund X help center — FAQ + trading rules */

.dash-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.nav-ico {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-page {
  padding-bottom: 5rem;
}

.help-hero {
  text-align: center;
  padding: 2.4rem 1rem 2.8rem;
}

.help-hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}

.help-hero p {
  margin: 0 0 1.4rem;
  color: rgba(226, 212, 255, 0.72);
  font-size: 1.05rem;
}

.help-search {
  width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  color: #1a1228;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  box-shadow: 0 18px 50px -24px rgba(162, 89, 255, 0.9);
}

.help-search .nav-ico {
  width: 1.2rem;
  height: 1.2rem;
  color: #6b5b8c;
}

.help-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
  color: #1a1228;
}

.help-wrap {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.help-block {
  margin-top: 1.75rem;
}

.help-block h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.help-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.help-featured a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  background: rgba(18, 10, 32, 0.88);
  border: 1px solid rgba(162, 139, 255, 0.22);
  font-weight: 650;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.help-featured a:hover {
  border-color: rgba(255, 159, 252, 0.45);
  transform: translateY(-1px);
}

.help-featured .nav-ico {
  width: 1.05rem;
  height: 1.05rem;
  color: #c4b5fd;
  flex-shrink: 0;
}

.help-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.help-cat {
  appearance: none;
  border: 1px solid rgba(162, 139, 255, 0.2);
  background: rgba(18, 10, 32, 0.88);
  color: #fff;
  border-radius: 18px;
  padding: 1.2rem 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.help-cat:hover,
.help-cat.is-on {
  border-color: rgba(255, 159, 252, 0.5);
  background: linear-gradient(180deg, rgba(82, 39, 255, 0.28), rgba(12, 6, 28, 0.92));
}

.help-cat .nav-ico {
  width: 1.45rem;
  height: 1.45rem;
  color: #c4b5fd;
  margin-bottom: 0.7rem;
}

.help-cat strong {
  display: block;
  font-size: 0.98rem;
}

.help-cat small {
  color: rgba(226, 212, 255, 0.62);
  font-size: 0.78rem;
}

.help-list {
  margin-top: 1.5rem;
  border: 1px solid rgba(162, 139, 255, 0.18);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(12, 6, 28, 0.55);
}

.help-item {
  border-bottom: 1px solid rgba(162, 139, 255, 0.14);
}

.help-item:last-child { border-bottom: 0; }

.help-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  color: #fff;
  font-weight: 650;
}

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

.help-item__plus {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: #e9d5ff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.help-item[open] .help-item__plus {
  background: rgba(82, 39, 255, 0.22);
  transform: rotate(45deg);
}

.help-item__body {
  padding: 0 1.25rem 1.2rem;
  color: rgba(226, 212, 255, 0.78);
  line-height: 1.7;
}

.help-item.is-hidden { display: none; }

.help-empty {
  display: none;
  padding: 1.5rem;
  text-align: center;
  color: rgba(226, 212, 255, 0.62);
}

.help-empty.is-on { display: block; }

.help-cta {
  margin-top: 2.2rem;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.help-btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
}

.help-btn--primary {
  color: #12081f;
  background: #fff;
}

.rule-grid .help-item summary span:first-child {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.rule-grid .help-item .nav-ico {
  width: 1.15rem;
  height: 1.15rem;
  color: #c4b5fd;
}

.rule-grid .help-item__body p { margin: 0 0 0.75rem; }
.rule-grid .help-item__body p:last-child { margin: 0; }
.rule-grid .help-item__body strong { color: #fff; }

@media (max-width: 900px) {
  .help-featured,
  .help-cats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .help-featured,
  .help-cats { grid-template-columns: 1fr; }
  .help-search { padding: 0.75rem 1rem; }
}
