:root {
  color-scheme: light dark;
  --accent: #ff8a9a;
  --accent-strong: #ff6f84;
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-muted: #f2f0ed;
  --border: #e9e5df;
  --text: #1f2530;
  --muted: #7a7b80;
  --muted-strong: #63656c;
  --shadow: 0 18px 70px rgba(25, 25, 25, 0.08);
  --shadow-soft: 0 8px 28px rgba(25, 25, 25, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.help-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.help-sidebar {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid rgba(233, 229, 223, 0.6);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  padding: 28px 24px 20px;
  backdrop-filter: blur(18px);
}

.help-brand {
  color: var(--text);
}

.help-brand a,
.help-brand small {
  display: block;
}

.help-brand a {
  color: #FF8E98;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}

.help-brand a:hover {
  color: var(--accent-strong);
}

.help-brand small {
  margin-top: 4px;
  color: var(--muted-strong);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.help-language-switch {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.help-language-switch a {
  border: 1px solid rgba(226, 221, 214, 0.8);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 10px;
  text-decoration: none;
}

.help-language-switch a:hover,
.help-language-switch a[aria-current="true"] {
  border-color: rgba(255, 138, 154, 0.35);
  color: var(--accent-strong);
}

.help-search {
  display: block;
  margin-top: 32px;
}

.help-search span,
.help-nav-group h2 {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.help-search input {
  width: 100%;
  border: 1px solid rgba(226, 221, 214, 0.8);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  padding: 10px 14px;
  transition: border-color 160ms ease;
}

.help-search input:focus {
  border-color: var(--accent);
}

.help-nav {
  margin-top: 24px;
}

.help-nav-group {
  margin-top: 22px;
}

.help-nav-group a {
  display: block;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 12px;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.help-nav-group a:hover,
.help-nav-group a.active {
  background: rgba(255, 138, 154, 0.1);
  color: var(--accent-strong);
}

.help-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 28px;
  border-top: 1px solid rgba(226, 221, 214, 0.8);
  padding-top: 14px;
}

.help-legal a {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}

.help-legal a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.help-main {
  min-width: 0;
  border: 1px solid rgba(233, 229, 223, 0.6);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  padding: 20px clamp(20px, 4vw, 56px) 56px;
  backdrop-filter: blur(18px);
}

.help-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.help-topbar span {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.help-close-button {
  border: 1px solid rgba(226, 221, 214, 0.7);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  transition:
    border-color 160ms ease,
    color 160ms ease;
}

.help-close-button:hover {
  border-color: rgba(255, 138, 154, 0.35);
  color: var(--accent-strong);
}

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

.help-content {
  margin-top: 40px;
  border: 1px solid rgba(233, 229, 223, 0.7);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 4vw, 44px);
}

.help-results {
  margin-top: 24px;
  border: 1px solid rgba(233, 229, 223, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.help-results h2 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.help-result {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 12px 4px;
  text-align: left;
  transition: background-color 120ms ease;
  border-radius: 4px;
  text-decoration: none;
}

.help-result:hover {
  background: rgba(255, 138, 154, 0.04);
}

.help-result:hover strong {
  color: var(--accent-strong);
}

.help-result strong,
.help-result span {
  display: block;
}

.help-result strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.help-result span {
  margin-top: 3px;
  font-size: 0.85rem;
  color: var(--muted);
}

.help-search-summary {
  margin: -4px 0 18px;
}

.help-content h1 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.help-content h2 {
  margin: 32px 0 10px;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 700;
}

.help-content h3 {
  margin: 26px 0 8px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.help-content blockquote {
  margin: 12px 0 28px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 138, 154, 0.08);
  padding: 14px 18px;
}

.help-content blockquote p {
  margin: 0;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.55;
}

.help-content blockquote p + p {
  margin-top: 4px;
}

.help-content p,
.help-content li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.help-content ul,
.help-content ol {
  padding-left: 1.1rem;
}

.help-content li + li {
  margin-top: 0.3rem;
}

.help-content a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
}

.help-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.help-content table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.9rem;
}

.help-content th,
.help-content td {
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.help-content th {
  background: var(--surface-muted);
  color: var(--text);
  font-weight: 800;
}

.help-content tr:last-child td {
  border-bottom: 0;
}

.help-landing-hero {
  padding: clamp(8px, 2vw, 18px) 0 26px;
}

.help-landing-hero p {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.help-landing-hero h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 7vw, 4.9rem);
  line-height: 0.98;
}

.help-landing-hero div {
  max-width: 680px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 600;
  line-height: 1.7;
}

.help-primary-link {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface) !important;
  font-weight: 800;
  padding: 11px 16px;
  text-decoration: none;
}

.help-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.help-topic-card {
  min-height: 150px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 18px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.help-topic-card:hover {
  border-color: rgba(255, 138, 154, 0.45);
  transform: translateY(-1px);
}

.help-topic-card span,
.help-topic-card small {
  display: block;
  color: var(--muted);
}

.help-topic-card span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.help-topic-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.05rem;
}

.help-topic-card small {
  margin-top: 8px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.help-content-landing > h1:first-child,
.help-content-pricing > h1:first-child {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.help-content-pricing table {
  min-width: 620px;
}

.help-content-pricing {
  overflow-x: auto;
}

.help-loading,
.help-error {
  margin: 0;
}

.help-error {
  color: #dc2626;
}

@media (max-width: 820px) {
  .help-shell {
    display: block;
    padding: 12px;
  }

  .help-sidebar {
    position: static;
    height: auto;
    border-radius: 20px;
    padding: 22px 18px;
  }

  .help-main {
    margin-top: 12px;
    border-radius: 20px;
    padding: 16px 14px 40px;
  }

  .help-content {
    margin-top: 20px;
    border-radius: 18px;
    padding: 22px 18px;
  }

  .help-content h1 {
    font-size: 1.6rem;
  }

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121317;
    --surface: #191b20;
    --surface-muted: #23262d;
    --border: #2a2d34;
    --text: #f4f5f7;
    --muted: #b8bdc7;
    --muted-strong: #9da4b2;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.22);
  }

  .help-sidebar {
    border-color: rgba(54, 58, 68, 0.7);
    background: rgba(25, 27, 32, 0.84);
  }

  .help-main,
  .help-content,
  .help-results {
    border-color: rgba(54, 58, 68, 0.7);
    background: rgba(25, 27, 32, 0.8);
  }

  .help-search input,
  .help-close-button,
  .help-language-switch a {
    border-color: rgba(54, 58, 68, 0.8);
    background: rgba(31, 34, 40, 0.88);
  }

  .help-legal {
    border-top-color: rgba(54, 58, 68, 0.8);
  }
}
