:root {
  --primary: #5b35f5;
  --primary-dark: #4324d8;
  --primary-soft: #f0ecff;
  --blue: #2f80ed;
  --green: #16a34a;
  --pink: #d91f62;
  --bg: #f5f6ff;
  --surface: #ffffff;
  --text-main: #151827;
  --text-muted: #6f7890;
  --border: #e5e7f2;
  --shadow-card: 0 18px 50px rgba(24, 20, 70, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(91, 53, 245, 0.12), transparent 32%),
    linear-gradient(180deg, #fbfbff 0%, var(--bg) 100%);
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.help-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.help-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.help-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.help-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.help-brand strong {
  display: block;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.help-brand span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.help-back-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #66708f;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(24, 20, 70, 0.07);
}

.help-back-button:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.help-hero {
  margin-bottom: 20px;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(91, 53, 245, 0.1), transparent 36%),
    #ffffff;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.help-eyebrow {
  width: fit-content;
  margin: 0 auto 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #66708f;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.help-eyebrow.small {
  margin-left: 0;
}

.help-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.help-hero > p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
}

.help-search {
  height: 58px;
  max-width: 620px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 30px auto 0;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fbfbff;
  text-align: left;
}

.help-search i {
  color: #8b92a8;
}

.help-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-weight: 700;
}

.help-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.help-topic-card,
.help-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.help-topic-card {
  min-height: 174px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.help-topic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 53, 245, 0.28);
  box-shadow: 0 22px 54px rgba(24, 20, 70, 0.11);
}

.help-topic-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  font-size: 21px;
}

.help-topic-icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #5b35f5);
}

.help-topic-icon.blue {
  background: linear-gradient(135deg, #2f80ed, #1768d3);
}

.help-topic-icon.green {
  background: linear-gradient(135deg, #16a34a, #0f8a3b);
}

.help-topic-icon.pink {
  background: linear-gradient(135deg, #ff4d8d, #d91f62);
}

.help-topic-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.help-topic-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.help-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.help-card {
  padding: 28px;
}

.help-card-header {
  margin-bottom: 20px;
}

.help-card-header h2,
.report-card h2,
.quick-links-card h2 {
  margin-bottom: 8px;
  font-size: 32px;
  letter-spacing: -0.045em;
}

.help-card-header p,
.report-card p {
  color: var(--text-muted);
  line-height: 1.5;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fbfbff;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  background: transparent;
  color: var(--text-main);
  text-align: left;
  font-weight: 800;
}

.faq-question i {
  color: #8b92a8;
  transition: transform 0.18s ease;
}

.faq-answer {
  display: none;
  padding: 0 18px 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.help-side-column {
  display: grid;
  gap: 20px;
}

.report-card {
  display: grid;
  gap: 14px;
}

.report-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff4d8d, #d91f62);
  color: #ffffff;
  font-size: 22px;
}

.report-card textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfbff;
  color: var(--text-main);
  resize: vertical;
  outline: none;
  line-height: 1.5;
}

.report-card textarea:focus {
  border-color: rgba(217, 31, 98, 0.38);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(217, 31, 98, 0.08);
}

.report-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 16px;
  background: #ffe6ef;
  color: var(--pink);
  font-weight: 800;
}

.quick-links-card {
  display: grid;
  gap: 12px;
}

.quick-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfbff;
}

.quick-link span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--primary-soft);
  color: var(--primary);
}

.quick-link strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.quick-link small {
  color: var(--text-muted);
  font-weight: 700;
}

.quick-link > i {
  color: #9aa2b8;
}

@media (max-width: 980px) {
  .help-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .help-shell {
    width: min(100% - 24px, 520px);
    padding: 18px 0 34px;
  }

  .help-back-button {
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
  }

  .help-back-button {
    font-size: 0;
  }

  .help-back-button i {
    font-size: 15px;
  }

  .help-brand img {
    width: 42px;
    height: 42px;
  }

  .help-brand strong {
    font-size: 18px;
  }

  .help-hero {
    padding: 28px 22px;
    border-radius: 28px;
  }

  .help-hero h1 {
    font-size: 44px;
  }

  .help-hero > p {
    font-size: 16px;
  }

  .help-topic-grid {
    grid-template-columns: 1fr;
  }

  .help-topic-card {
    min-height: 120px;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
  }

  .help-topic-card p {
    grid-column: 2;
  }

  .help-card {
    padding: 22px;
    border-radius: 26px;
  }

  .help-card-header h2,
  .report-card h2,
  .quick-links-card h2 {
    font-size: 28px;
  }
}