.help-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;

  color: var(--text);
  background:
    radial-gradient(
      circle at 18% 0%,
      rgba(249, 201, 47, 0.045),
      transparent 30%
    ),
    radial-gradient(
      circle at 100% 24%,
      rgba(231, 53, 53, 0.045),
      transparent 32%
    ),
    var(--black);
}

.help-app {
  min-height: 100vh;
}

.help-header {
  position: sticky;
  top: 0;
  z-index: 100;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;

  min-height: var(--header-height);
  padding: 10px var(--page-padding);

  background:
    linear-gradient(
      90deg,
      rgba(8, 8, 8, 0.98),
      rgba(18, 17, 15, 0.98),
      rgba(13, 13, 13, 0.98)
    );

  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.help-logo {
  display: inline-flex;
  align-items: center;
}

.help-logo img {
  width: 225px;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.help-header-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.help-header-navigation a {
  padding: 10px 14px;

  color: var(--muted);
  border-radius: 999px;

  font-size: 0.7rem;
  font-weight: 800;

  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.help-header-navigation a:hover,
.help-header-navigation a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.help-header-navigation a.active {
  color: #171207;
  background: var(--yellow);
}

.help-header-profile {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.help-header-avatar {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  color: var(--white);
  background:
    linear-gradient(
      135deg,
      #7d5b20,
      #d99f26,
      #7d2727
    );

  border-radius: 50%;

  font-size: 0.8rem;
  font-weight: 900;
}

.help-header-profile-text {
  display: grid;
  min-width: 100px;
}

.help-header-profile-text strong {
  color: var(--white);
  font-size: 0.72rem;
}

.help-header-profile-text span {
  color: var(--green);
  font-size: 0.6rem;
}

.help-logout-button {
  min-height: 40px;
  padding: 0 14px;

  color: #d6d0c7;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  border-radius: 999px;

  font-size: 0.64rem;
  font-weight: 850;
  cursor: pointer;
}

.help-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 320px;
  align-items: start;
  gap: 20px;

  width: 100%;
  padding: 20px;
}

.help-leftbar,
.help-rightbar {
  position: sticky;
  top: calc(var(--header-height) + 20px);

  display: grid;
  gap: 14px;

  max-height:
    calc(
      100vh -
      var(--header-height) -
      40px
    );

  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.help-leftbar::-webkit-scrollbar,
.help-rightbar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.help-leftbar {
  padding: 12px;

  background:
    linear-gradient(
      145deg,
      #171717,
      #101010
    );

  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-small);
}

.help-side-navigation {
  display: grid;
  gap: 4px;
}

.help-side-navigation a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;

  min-height: 45px;
  padding: 0 11px;

  color: #c2bcb3;
  border-radius: 11px;

  font-size: 0.74rem;
  font-weight: 750;

  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.help-side-navigation a > span {
  display: grid;
  place-items: center;

  width: 31px;
  height: 31px;

  background: rgba(255, 255, 255, 0.055);
  border-radius: 9px;
}

.help-side-navigation a:hover,
.help-side-navigation a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.065);
}

.help-side-navigation a.active {
  box-shadow: inset 3px 0 0 var(--yellow);
}

.help-leftbar-card {
  display: grid;
  gap: 10px;

  margin-top: 8px;
  padding: 17px;

  background:
    linear-gradient(
      145deg,
      rgba(249, 201, 47, 0.095),
      rgba(255, 255, 255, 0.025)
    );

  border: 1px solid rgba(249, 201, 47, 0.16);
  border-radius: 16px;
}

.help-leftbar-label,
.help-hunk-badge,
.help-eyebrow {
  color: var(--yellow);

  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.help-leftbar-card strong {
  color: var(--white);
  font-size: 0.8rem;
}

.help-leftbar-card p {
  margin: 0;

  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.65;
}

.help-leftbar-card small {
  color: #7e786f;
  font-size: 0.58rem;
}

.help-main {
  min-width: 0;
}

.help-hero {
  position: relative;
  overflow: hidden;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;

  min-height: 260px;
  padding: 34px;

  background-image:
    linear-gradient(
      90deg,
      rgba(8, 8, 8, 0.94),
      rgba(8, 8, 8, 0.7),
      rgba(8, 8, 8, 0.36)
    ),
    url("../images/hero.png");

  background-position: center 48%;
  background-size: cover;

  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-small);
}

.help-hero::after {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 18% 30%,
      rgba(249, 201, 47, 0.09),
      transparent 42%
    );

  content: "";
  pointer-events: none;
}

.help-hero-content,
.help-hero-statistics {
  position: relative;
  z-index: 2;
}

.help-hero-content {
  width: min(680px, 100%);
}

.help-hero h1 {
  margin: 9px 0 12px;

  color: var(--white);

  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.help-hero p {
  max-width: 650px;
  margin: 0;

  color: #d0cbc2;
  font-size: 0.82rem;
  line-height: 1.75;
}

.help-hero-statistics {
  display: grid;
  grid-template-columns: repeat(2, 145px);
  gap: 10px;
}

.help-hero-statistics article {
  display: grid;
  gap: 4px;

  min-height: 92px;
  padding: 17px;

  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;

  backdrop-filter: blur(12px);
}

.help-hero-statistics strong {
  color: var(--white);
  font-size: 1.8rem;
}

.help-hero-statistics span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 750;
}

.help-search-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;

  margin-top: 18px;
  padding: 0 17px;

  min-height: 52px;

  background: #121212;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.help-search-card > span {
  color: var(--muted);
  font-size: 1rem;
}

.help-search-card input {
  width: 100%;
  height: 50px;

  color: var(--white);
  background: transparent;
  border: 0;
  outline: none;

  font-size: 0.72rem;
}

.help-search-card:focus-within {
  border-color: rgba(249, 201, 47, 0.5);
  box-shadow: 0 0 0 4px rgba(249, 201, 47, 0.08);
}

.help-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 14px;
}

.help-categories button {
  min-height: 38px;
  padding: 0 14px;

  color: #d6d0c7;
  background: #1d1d1d;
  border: 1px solid var(--border);
  border-radius: 999px;

  font-size: 0.62rem;
  font-weight: 850;
  cursor: pointer;
}

.help-categories button:hover,
.help-categories button.active {
  color: #171207;
  background: var(--yellow);
  border-color: var(--yellow);
}

.faq-list {
  display: grid;
  gap: 10px;

  margin-top: 16px;
}

.faq-item {
  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      #181818,
      #101010
    );

  border: 1px solid var(--border);
  border-radius: 17px;

  transition: border-color 180ms ease;
}

.faq-item:hover,
.faq-item.open {
  border-color: rgba(249, 201, 47, 0.28);
}

.faq-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;

  width: 100%;
  padding: 19px 20px;

  color: var(--white);
  background: transparent;

  text-align: left;
  cursor: pointer;
}

.faq-question-text {
  display: grid;
  gap: 4px;
}

.faq-question-text strong {
  color: var(--white);
  font-size: 0.75rem;
}

.faq-question-text small {
  color: var(--yellow);
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-toggle {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  color: #d8d2c9;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 50%;

  font-size: 1rem;

  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.faq-item.open .faq-toggle {
  color: #171207;
  background: var(--yellow);
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;

  transition: grid-template-rows 220ms ease;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-content {
  padding: 0 20px 20px;

  color: #c6c0b7;
  font-size: 0.7rem;
  line-height: 1.75;
}

.help-empty-state {
  padding: 28px;

  color: var(--muted);
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 17px;

  text-align: center;
}

.help-empty-state strong {
  display: block;
  margin-bottom: 5px;

  color: var(--white);
}

.help-contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  margin-top: 18px;
  padding: 25px;

  background:
    linear-gradient(
      145deg,
      rgba(249, 201, 47, 0.1),
      #13120f 45%,
      #101010
    );

  border: 1px solid rgba(249, 201, 47, 0.2);
  border-radius: var(--radius-large);
}

.help-contact-panel h2 {
  margin: 7px 0 7px;

  color: var(--white);
  font-size: 1.15rem;
}

.help-contact-panel p {
  max-width: 660px;
  margin: 0;

  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.65;
}

.help-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.help-primary-action,
.help-secondary-action,
.help-moderator-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;
  padding: 0 15px;

  border-radius: 999px;

  font-size: 0.63rem;
  font-weight: 900;
}

.help-primary-action,
.help-moderator-button {
  color: #171207;
  background: var(--yellow);
}

.help-secondary-action {
  color: #d6d0c7;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
}

.help-right-card {
  padding: 17px;

  background:
    linear-gradient(
      145deg,
      #171717,
      #101010
    );

  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-small);
}

.help-right-card > header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-right-card > header > span {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;

  background: rgba(249, 201, 47, 0.09);
  border-radius: 11px;
}

.help-right-card > header > div {
  display: grid;
}

.help-right-card > header strong,
.help-right-card h2 {
  color: var(--white);
  font-size: 0.76rem;
}

.help-right-card > header small {
  color: var(--green);
  font-size: 0.58rem;
}

.help-right-card h2 {
  margin: 0 0 13px;
}

.help-moderator-person {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-top: 13px;
  padding: 10px;

  background: rgba(255, 255, 255, 0.035);
  border-radius: 12px;
}

.help-moderator-avatar {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  color: var(--white);
  background: #7f342e;
  border-radius: 50%;

  font-size: 0.75rem;
  font-weight: 900;
}

.help-moderator-person > div {
  display: grid;
}

.help-moderator-person strong {
  color: var(--white);
  font-size: 0.7rem;
}

.help-moderator-person span {
  color: var(--muted);
  font-size: 0.58rem;
}

.help-moderator-button {
  width: 100%;
  margin-top: 10px;
}

.help-quick-links {
  display: grid;
  gap: 5px;
}

.help-quick-links a {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 8px;

  min-height: 44px;
  padding: 0 10px;

  color: #d1cbc3;
  border-radius: 10px;

  font-size: 0.66rem;
  font-weight: 750;
}

.help-quick-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
}

.help-quick-links span {
  display: grid;
  place-items: center;

  width: 31px;
  height: 31px;

  background: rgba(255, 255, 255, 0.055);
  border-radius: 9px;
}

.help-hunk-card {
  background:
    linear-gradient(
      145deg,
      rgba(249, 201, 47, 0.09),
      #15140f 42%,
      #101010
    );

  border-color: rgba(249, 201, 47, 0.17);
}

.help-hunk-card h2 {
  margin: 9px 0 8px;
}

.help-hunk-card p {
  margin: 0;

  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.65;
}

.help-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;

  max-width: 360px;
  padding: 13px 16px;

  color: var(--white);
  background: rgba(24, 24, 24, 0.97);
  border: 1px solid var(--border-strong);
  border-radius: 13px;

  box-shadow: var(--shadow-large);

  font-size: 0.68rem;
  font-weight: 800;
}

@media (max-width: 1350px) {
  .help-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .help-rightbar {
    position: static;
    grid-column: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 1050px) {
  .help-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .help-header-navigation {
    display: none;
  }

  .help-layout {
    grid-template-columns: 1fr;
  }

  .help-leftbar {
    position: static;

    grid-template-columns: 1fr;

    max-height: none;
    overflow: visible;
  }

  .help-side-navigation {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .help-leftbar-card {
    display: none;
  }

  .help-main,
  .help-rightbar {
    grid-column: 1;
  }

  .help-rightbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .help-header {
    gap: 10px;
    padding: 9px 14px;
  }

  .help-logo img {
    width: 170px;
  }

  .help-header-profile-text {
    display: none;
  }

  .help-logout-button {
    display: none;
  }

  .help-layout {
    padding: 12px;
  }

  .help-leftbar {
    padding: 9px;
  }

  .help-side-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .help-hero-statistics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .help-contact-actions {
    justify-content: flex-start;
  }

  .help-rightbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .help-logo img {
    width: 145px;
  }

  .help-header-avatar {
    width: 38px;
    height: 38px;
  }

  .help-side-navigation {
    grid-template-columns: 1fr;
  }

  .help-hero {
    min-height: 300px;
    padding: 21px;
  }

  .help-hero h1 {
    font-size: 2.35rem;
  }

  .help-hero-statistics {
    grid-template-columns: 1fr 1fr;
  }

  .faq-question {
    padding: 17px;
  }

  .faq-answer-content {
    padding: 0 17px 17px;
  }

  .help-contact-actions {
    display: grid;
    width: 100%;
  }

  .help-contact-actions a {
    width: 100%;
  }
}
