.help-body {
  background: #050518;
  color: #f9fafb;
  min-height: 100vh;
  overflow-x: clip;
}

.help-page {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 18px 80px;
}

.help-hero {
  display: flex;
  gap: 22px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.help-hero-left {
  flex: 1;
  min-width: 280px;
}

.help-hero-right {
  width: 360px;
  max-width: 100%;
}

.help-sub {
  opacity: 0.9;
  margin-top: 6px;
}

.help-mini-tip {
  margin-top: 12px;
  opacity: 0.85;
}

.help-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  background: #7c3aed;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.help-btn.ghost {
  background: rgba(255, 255, 255, 0.06);
}

.help-btn:hover {
  filter: brightness(1.05);
}

.help-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.help-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.help-card h3 {
  margin: 0 0 10px;
}

.help-card ol {
  margin: 0;
  padding-left: 18px;
  opacity: 0.92;
}

.help-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}

@media (max-width: 860px) {
  .help-layout {
    grid-template-columns: 1fr;
  }
}

.help-content {
  min-width: 0;
}

.help-topbar {
  position: sticky;
  top: 92px;
  z-index: 10;
  padding: 10px 0 12px;
  background: linear-gradient(to bottom, rgba(5, 5, 24, 0.92), rgba(5, 5, 24, 0));
  backdrop-filter: blur(10px);
}

.help-search {
  position: relative;
}

.help-search-row {
  position: relative;
  display: flex;
  align-items: center;
}

.help-search input {
  width: 100%;
  padding: 14px 44px 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
}

.help-search input:focus {
  border-color: rgba(124, 58, 237, 0.65);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
}

.help-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-search-clear:hover {
  background: rgba(255, 255, 255, 0.1);
}

.help-search-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.help-search-hint {
  font-size: 0.85rem;
  opacity: 0.7;
}

.help-search-count {
  font-size: 0.85rem;
  opacity: 0.9;
}

.help-no-results {
  margin: 14px 0;
}

.help-aside {
  position: relative;
}

@media (max-width: 860px) {
  .help-aside {
    display: none;
  }
}

.help-aside-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

  display: flex;
  flex-direction: column;

  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  overflow: hidden;
}

.help-aside-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.help-aside-top h3 {
  margin: 0;
}

.help-toc-close {
  display: none;
}

.help-toc {
  display: flex;
  flex-direction: column;
  gap: 8px;

  overflow: auto;
  min-height: 0;
  padding-right: 6px;

  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.help-toc-open .help-aside-card {
  overflow: auto;
}

.help-toc-open .help-toc {
  overflow: visible;
  padding-right: 0;
}


.help-toc a {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
  opacity: 0.92;
  transition: background 0.12s ease, opacity 0.12s ease, transform 0.12s ease;
}

.help-toc a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.help-toc a.active {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.45);
  opacity: 1;
}

.help-section {
  margin-top: 22px;
  scroll-margin-top: 140px;
}

.help-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.help-section h2 {
  margin: 0;
}

.help-anchor {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-anchor:hover {
  background: rgba(255, 255, 255, 0.1);
}

.help-box {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.help-callout {
  border-radius: 16px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.1);
  padding: 12px 14px;
  margin: 12px 0;
  color: #fff;
}

.help-note {
  opacity: 0.8;
  margin-top: 10px;
}

.help-link {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.help-h3 {
  margin-top: 14px;
}

.help-updated {
  opacity: 0.75;
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.help-content mark {
  border-radius: 6px;
  padding: 0 4px;
  background: rgba(124, 58, 237, 0.35);
  color: #fff;
}

.help-acc {
  border: none;
  background: transparent;
}

.help-acc > summary {
  display: none;
}

@media (max-width: 860px) {
  .help-section-head h2 {
    display: none;
  }

  .help-acc {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
  }

  .help-acc > summary {
    display: flex;
    cursor: pointer;
    padding: 14px;
    font-weight: 900;
    list-style: none;
    user-select: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .help-acc > summary::-webkit-details-marker {
    display: none;
  }

  .help-acc .help-box {
    border: none;
    background: transparent;
    padding: 0 14px 14px;
    border-radius: 0;
  }
}

.help-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.help-fab:hover {
  background: rgba(255, 255, 255, 0.14);
}

.help-fab-top {
  bottom: 76px;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 18px;
  font-size: 18px;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.help-fab-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .help-fab {
    display: inline-flex;
  }
}

.help-toc-open .help-aside {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  padding: 0;
}

.help-toc-open .help-aside-card {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 92px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.help-toc-open .help-toc-close {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.help-toc-open .help-toc-close:hover {
  background: rgba(255, 255, 255, 0.1);
}