.help-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ui-text);
  font-family: var(--ui-font);
}

.help-main {
  flex: 1;
}

.help-shell {
  width: min(1120px, calc(100% - 80px));
  margin: 0 auto;
}

.help-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 88px;
  background:
    radial-gradient(circle at 14% 18%, rgba(209, 193, 242, 0.52), transparent 29%),
    radial-gradient(circle at 87% 5%, rgba(250, 221, 193, 0.58), transparent 27%),
    linear-gradient(145deg, #f8f3ed 0%, #fbf8f3 55%, #f6f0f9 100%);
}

.help-hero::after {
  position: absolute;
  right: -100px;
  bottom: -145px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(91, 67, 198, 0.1);
  border-radius: 50%;
  content: "";
}

.help-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.help-eyebrow,
.help-section-heading__eyebrow {
  margin: 0 0 12px;
  color: #725a9f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.help-hero h1 {
  margin: 0;
  font-family: "AritaBuriKR-Medium", "MaruBuri", serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.help-hero__description {
  margin: 18px auto 0;
  color: #6e6678;
  font-size: 17px;
  line-height: 1.7;
}

.help-search {
  width: min(680px, 100%);
  height: 62px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 34px auto 0;
  padding: 0 20px;
  border: 1px solid rgba(61, 43, 107, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(50, 36, 72, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-search:focus-within {
  border-color: var(--ui-primary-400);
  box-shadow: 0 12px 34px rgba(50, 36, 72, 0.1), 0 0 0 4px rgba(91, 67, 198, 0.1);
}

.help-search > svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  color: #716886;
}

.help-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ui-text);
  font: inherit;
  font-size: 16px;
}

.help-search input::placeholder {
  color: #9a93a4;
}

.help-search__clear {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: #f1edf5;
  color: #655c72;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.help-layout {
  padding: 82px 0 100px;
}

.help-popular,
.help-topics,
.help-actions {
  scroll-margin-top: 130px;
}

.help-topics,
.help-actions {
  margin-top: 92px;
}

.help-section-heading {
  margin-bottom: 28px;
}

.help-section-heading--center {
  text-align: center;
}

.help-section-heading h2 {
  margin: 0;
  color: #2c2635;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.help-popular__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.help-popular-card {
  min-height: 120px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid #e7e1e9;
  border-radius: 10px;
  background: #fff;
  color: #342e3d;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-popular-card:hover {
  transform: translateY(-2px);
  border-color: #cfc2dc;
  box-shadow: 0 10px 25px rgba(41, 31, 57, 0.08);
}

.help-popular-card__arrow {
  color: var(--ui-primary-500);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.help-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}

.help-category-tab {
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid #ded7e4;
  border-radius: 999px;
  background: #fff;
  color: #5f576a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.help-category-tab:hover {
  border-color: #b9abd0;
  color: #4b3879;
}

.help-category-tab[aria-pressed="true"] {
  border-color: #3d2b6b;
  background: #3d2b6b;
  color: #fff;
}

.help-results-status {
  min-height: 20px;
  margin: 0 0 10px;
  color: #827a8b;
  font-size: 13px;
}

.help-faq-list {
  border-top: 1px solid #dcd6df;
}

.help-faq-item {
  border-bottom: 1px solid #e7e2e9;
}

.help-faq-item__question {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 23px 4px;
  border: 0;
  background: transparent;
  color: #332d3a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.help-faq-item__question-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.help-faq-item__category {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 5px;
  background: #f1edf6;
  color: #6c5795;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.help-faq-item__toggle {
  width: 28px;
  height: 28px;
  position: relative;
  color: #6d6378;
}

.help-faq-item__toggle::before,
.help-faq-item__toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.help-faq-item__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.help-faq-item__question[aria-expanded="true"] .help-faq-item__toggle::after {
  transform: translate(-50%, -50%) rotate(0);
}

.help-faq-item__answer {
  padding: 0 48px 24px 4px;
  color: #625a6b;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-line;
}

.help-faq-item--targeted {
  animation: help-highlight 1.4s ease;
}

@keyframes help-highlight {
  0%, 100% { background: transparent; }
  35% { background: #f7f3fb; }
}

.help-empty {
  padding: 64px 20px;
  border-top: 1px solid #e6e0e8;
  text-align: center;
}

.help-empty h3 {
  margin: 0;
  font-size: 21px;
}

.help-empty p {
  margin: 10px 0 22px;
  color: #7c7485;
}

.help-actions {
  padding: 58px;
  border-radius: 14px;
  background: #f8f4ed;
}

.help-actions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.help-action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  border: 1px solid rgba(61, 43, 107, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
}

.help-action-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #eee7f5;
  color: #5c467f;
}

.help-action-card__icon svg {
  width: 25px;
  height: 25px;
}

.help-action-card h3 {
  margin: 20px 0 0;
  color: #332b3e;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.help-action-card p {
  margin: 10px 0 22px;
  color: #6e6677;
  font-size: 15px;
  line-height: 1.7;
}

.help-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 10px 18px;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.help-button--primary {
  border: 1px solid #3d2b6b;
  background: #3d2b6b;
  color: #fff;
}

.help-button--primary:hover {
  background: #4d397d;
}

.help-button--secondary {
  border: 1px solid #cfc5d7;
  background: #fff;
  color: #49365f;
}

.help-button--secondary:hover {
  border-color: #9884ae;
  background: #f8f4fb;
}

@media (max-width: 768px) {
  .help-shell {
    width: calc(100% - 40px);
  }

  .help-hero {
    padding: 56px 0 62px;
  }

  .help-hero h1 {
    font-size: 36px;
  }

  .help-hero__description {
    font-size: 14px;
  }

  .help-search {
    height: 56px;
    margin-top: 26px;
    padding: 0 16px;
  }

  .help-layout {
    padding: 58px 0 72px;
  }

  .help-topics,
  .help-actions {
    margin-top: 68px;
  }

  .help-popular__grid,
  .help-actions__grid {
    grid-template-columns: 1fr;
  }

  .help-popular-card {
    min-height: 0;
    padding: 20px;
  }

  .help-category-tabs {
    margin-right: -20px;
    padding-right: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .help-category-tabs::-webkit-scrollbar {
    display: none;
  }

  .help-category-tab {
    flex: 0 0 auto;
  }

  .help-faq-item__question-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .help-faq-item__answer {
    padding-right: 4px;
  }

  .help-actions {
    padding: 38px 20px 20px;
  }

  .help-action-card {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .help-popular-card,
  .help-search,
  .help-faq-item__toggle::after {
    transition: none;
  }

  .help-faq-item--targeted {
    animation: none;
  }
}
