/* Help Center — desktop polish + mobile-first layout */
.help-page { background: var(--blog-light); }

.help-hero {
  background: linear-gradient(135deg, #1a0a0e 0%, #2d1519 45%, #1a0a0e 100%);
  color: #fff;
  padding: 40px 20px 44px;
  padding-top: max(40px, env(safe-area-inset-top));
  position: relative;
  overflow: hidden;
}
.help-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 20%, rgba(227, 10, 23, 0.28), transparent 60%);
  pointer-events: none;
}
.help-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.help-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(227, 10, 23, 0.2);
  border: 1px solid rgba(227, 10, 23, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.help-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  color: #fff;
}
.help-hero-intro {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin: 0 0 20px;
  line-height: 1.65;
}
.help-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 420px;
}
.help-hero-stat {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.help-hero-stat strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  color: #fff;
  line-height: 1.2;
}
.help-hero-stat span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  line-height: 1.3;
}

.help-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  padding-bottom: max(48px, calc(24px + env(safe-area-inset-bottom)));
}

.help-search {
  margin-bottom: 20px;
}
.help-search-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blog-muted);
  margin-bottom: 8px;
}
.help-search-field {
  position: relative;
}
.help-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--blog-muted);
  pointer-events: none;
}
.help-search-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px 12px 46px;
  border: 1px solid var(--blog-border);
  border-radius: 14px;
  background: var(--blog-white);
  color: var(--blog-dark);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.help-search-input::placeholder { color: var(--blog-muted); }
.help-search-input:focus {
  border-color: rgba(227, 10, 23, 0.45);
  box-shadow: 0 0 0 3px rgba(227, 10, 23, 0.12);
}
.help-search-empty {
  margin: 8px 0 20px;
  padding: 18px 16px;
  border-radius: 14px;
  background: var(--blog-white);
  border: 1px dashed var(--blog-border);
  color: var(--blog-muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.help-quick-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blog-muted);
  margin-bottom: 12px;
}

.help-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.help-page a.help-quick-card,
.help-quick-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px;
  background: var(--blog-white);
  border: 1px solid var(--blog-border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  min-height: 88px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.help-quick-card:hover,
.help-quick-card:active {
  border-color: rgba(227, 10, 23, 0.35);
  box-shadow: 0 8px 24px rgba(227, 10, 23, 0.08);
  transform: translateY(-1px);
}
.help-quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blog-primary-soft);
  color: var(--blog-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.help-quick-icon svg { width: 20px; height: 20px; }
.help-quick-card strong {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--blog-dark);
  line-height: 1.25;
}
.help-quick-card span {
  font-size: 12px;
  color: var(--blog-muted);
  line-height: 1.45;
}

.help-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

/* Mobile: horizontal scroll topic pills (sticky below header) */
.help-sidebar {
  position: sticky;
  top: 60px;
  z-index: 40;
  margin: 0 -16px 4px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--blog-light) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--blog-border);
  border-bottom: 1px solid var(--blog-border);
}
.help-sidebar-title { display: none; }
.help-sidebar nav {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.help-sidebar nav::-webkit-scrollbar { display: none; }
.help-page .help-sidebar nav a,
.help-sidebar nav a {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 10px 14px;
  min-height: 40px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blog-dark);
  background: var(--blog-white);
  border: 1px solid var(--blog-border);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.help-page .help-sidebar nav a:hover,
.help-page .help-sidebar nav a.is-active,
.help-page .help-sidebar nav a[aria-current="true"] {
  background: var(--blog-primary-soft);
  color: var(--blog-primary);
  border-color: rgba(227, 10, 23, 0.25);
}

.help-section {
  scroll-margin-top: 120px;
  background: var(--blog-white);
  border: 1px solid var(--blog-border);
  border-radius: 18px;
  padding: 20px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(26, 10, 14, 0.03);
}
.help-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.help-section-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(227, 10, 23, 0.14), rgba(227, 10, 23, 0.04));
  color: var(--blog-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.help-section-icon svg { width: 22px; height: 22px; }
.help-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  color: var(--blog-dark);
  line-height: 1.25;
}
.help-section p {
  font-size: 15px;
  color: var(--blog-muted);
  line-height: 1.7;
  margin: 0 0 12px;
}

.help-steps {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  counter-reset: help-step;
}
.help-steps li {
  font-size: 14px;
  color: var(--blog-muted);
  line-height: 1.6;
  margin-bottom: 10px;
  padding-left: 36px;
  position: relative;
  counter-increment: help-step;
}
.help-steps li::before {
  content: counter(help-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--blog-primary-soft);
  color: var(--blog-primary);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.help-page a.help-section-link,
.help-section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blog-primary);
  background: var(--blog-primary-soft);
  border: 1px solid rgba(227, 10, 23, 0.15);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.help-page a.help-section-link:hover {
  background: rgba(227, 10, 23, 0.12);
  transform: translateY(-1px);
  color: var(--blog-primary);
}
.help-section-link-inline { margin-top: 12px; }

.help-platforms-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 24px 0 12px;
  color: var(--blog-dark);
  scroll-margin-top: 120px;
}
.help-platforms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.help-platform {
  background: var(--blog-white);
  border: 1px solid var(--blog-border);
  border-radius: 16px;
  padding: 18px 16px;
  scroll-margin-top: 120px;
}
.help-platform h3 {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--blog-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.help-platform-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blog-primary-soft);
  color: var(--blog-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.help-platform-icon svg { width: 20px; height: 20px; display: block; }
.help-platform p {
  font-size: 14px;
  color: var(--blog-muted);
  line-height: 1.65;
  margin: 0;
}

.help-faq-section {
  scroll-margin-top: 120px;
  margin-top: 8px;
}
.help-faq-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--blog-dark);
}
.help-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.help-faq-item {
  background: var(--blog-white);
  border: 1px solid var(--blog-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.help-faq-item[open] {
  border-color: rgba(227, 10, 23, 0.3);
  box-shadow: 0 4px 16px rgba(227, 10, 23, 0.06);
}
.help-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 18px;
  min-height: 52px;
  list-style: none;
  color: var(--blog-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.help-faq-item summary::-webkit-details-marker { display: none; }
.help-faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--blog-primary);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--blog-primary-soft);
}
.help-faq-item[open] summary::after { content: '−'; }
.help-faq-item p {
  padding: 0 18px 16px;
  margin: 0;
  font-size: 14px;
  color: var(--blog-muted);
  line-height: 1.65;
}

.help-cta {
  margin-top: 28px;
  padding: 28px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #E30A17 0%, #B90812 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 40px rgba(227, 10, 23, 0.25);
}
.help-cta h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.2;
  color: #fff;
}
.help-cta p {
  font-size: 14px;
  opacity: 0.9;
  margin: 0 0 18px;
  line-height: 1.6;
  color: #fff;
}
.help-page a.help-cta-btn,
.help-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  width: 100%;
  max-width: 320px;
  background: #fff;
  color: #B90812;
  font-weight: 800;
  font-size: 15px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.help-page a.help-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  color: #8a0610;
}

/* Tablet+ */
@media (min-width: 600px) {
  .help-quick {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  .help-quick-card { min-height: 120px; padding: 18px; }
  .help-quick-card strong { font-size: 15px; }
  .help-quick-card span { font-size: 13px; }
  .help-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .help-hero { padding: 48px 24px 52px; }
  .help-wrap { padding: 32px 20px 56px; }
  .help-quick { margin-bottom: 36px; }
  .help-layout {
    grid-template-columns: 240px 1fr;
    gap: 32px;
  }
  .help-sidebar {
    position: sticky;
    top: 84px;
    z-index: 1;
    margin: 0;
    padding: 16px;
    border-radius: 14px;
    background: var(--blog-white);
    border: 1px solid var(--blog-border);
    backdrop-filter: none;
  }
  .help-sidebar-title {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blog-muted);
    margin-bottom: 10px;
  }
  .help-sidebar nav {
    flex-direction: column;
    overflow: visible;
    gap: 2px;
  }
  .help-page .help-sidebar nav a,
  .help-sidebar nav a {
    display: block;
    width: 100%;
    border-radius: 10px;
    border: none;
    background: transparent;
    font-weight: 600;
    padding: 9px 12px;
    min-height: 0;
  }
  .help-section { padding: 22px 24px; scroll-margin-top: 88px; }
  .help-section h2 { font-size: 1.2rem; }
  .help-platforms { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .help-platforms-title,
  .help-faq-section,
  .help-platform { scroll-margin-top: 88px; }
  .help-cta { padding: 32px 28px; }
  .help-cta-btn { width: auto; }
}

@media (min-width: 900px) {
  .help-hero-stats {
    display: flex;
    gap: 28px;
    max-width: none;
  }
  .help-hero-stat {
    padding: 0;
    border: none;
    background: none;
    text-align: left;
  }
  .help-hero-stat strong { font-size: 22px; }
  .help-hero-stat span { font-size: 12px; }
}

@media (max-width: 380px) {
  .help-quick-card { min-height: 84px; padding: 14px 12px; }
  .help-quick-card span { font-size: 11px; }
}

/* Dark mode — explicit colors so landing/blog inherit rules cannot wash out cards */
body.theme-dark.help-page {
  background: #0d090b;
  color: #f0e9eb;
  color-scheme: dark;
}
body.theme-dark .help-search-label,
body.theme-dark .help-quick-label {
  color: #b39aa0;
}
body.theme-dark .help-search-input {
  background: #1a1416;
  border-color: rgba(255, 255, 255, 0.1);
  color: #f0e9eb;
}
body.theme-dark .help-search-input::placeholder { color: #8a757a; }
body.theme-dark .help-search-input:focus {
  border-color: rgba(255, 85, 102, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 85, 102, 0.18);
}
body.theme-dark .help-search-icon { color: #b39aa0; }
body.theme-dark .help-search-empty {
  background: #1a1416;
  border-color: rgba(255, 255, 255, 0.12);
  color: #c4b5b9;
}
body.theme-dark.help-page a.help-quick-card,
body.theme-dark .help-quick-card,
body.theme-dark .help-section,
body.theme-dark .help-platform,
body.theme-dark .help-faq-item {
  background: #1a1416;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  color: #e8dce0;
}
body.theme-dark .help-quick-card:hover,
body.theme-dark .help-quick-card:active {
  border-color: rgba(255, 85, 102, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
body.theme-dark .help-quick-card strong,
body.theme-dark .help-section h2,
body.theme-dark .help-platform h3,
body.theme-dark .help-platforms-title,
body.theme-dark .help-faq-section h2,
body.theme-dark .help-faq-item summary {
  color: #f5eef0;
}
body.theme-dark .help-quick-card span,
body.theme-dark .help-section p,
body.theme-dark .help-steps li,
body.theme-dark .help-platform p,
body.theme-dark .help-faq-item p {
  color: #c4b5b9;
}
body.theme-dark .help-quick-icon,
body.theme-dark .help-section-icon,
body.theme-dark .help-platform-icon,
body.theme-dark .help-steps li::before,
body.theme-dark .help-faq-item summary::after {
  background: rgba(255, 85, 102, 0.16);
  color: #FF5566;
}
body.theme-dark .help-sidebar {
  background: rgba(20, 16, 18, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
}
body.theme-dark.help-page .help-sidebar nav a,
body.theme-dark .help-sidebar nav a {
  background: #1a1416;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e8dce0;
}
body.theme-dark.help-page .help-sidebar nav a:hover,
body.theme-dark.help-page .help-sidebar nav a.is-active,
body.theme-dark.help-page .help-sidebar nav a[aria-current="true"] {
  background: rgba(255, 85, 102, 0.16);
  color: #FF5566;
  border-color: rgba(255, 85, 102, 0.3);
}
body.theme-dark.help-page a.help-section-link,
body.theme-dark .help-section-link {
  color: #FF5566;
  background: rgba(255, 85, 102, 0.14);
  border-color: rgba(255, 85, 102, 0.28);
}
body.theme-dark.help-page a.help-section-link:hover {
  background: rgba(255, 85, 102, 0.22);
  color: #ff8a96;
}
body.theme-dark .help-faq-item[open] {
  border-color: rgba(255, 85, 102, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
body.theme-dark .help-cta {
  box-shadow: 0 16px 44px rgba(160, 24, 48, 0.45);
}
body.theme-dark.help-page a.help-cta-btn,
body.theme-dark .help-cta-btn {
  background: #fff;
  color: #B90812;
}
body.theme-dark .help-platform-icon.is-dark-brand svg {
  color: #f5eef0 !important;
}

@media (min-width: 768px) {
  body.theme-dark .help-sidebar {
    background: #1a1416;
    border-color: rgba(255, 255, 255, 0.08);
  }
  body.theme-dark.help-page .help-sidebar nav a,
  body.theme-dark .help-sidebar nav a {
    background: transparent;
    border: none;
  }
  body.theme-dark.help-page .help-sidebar nav a:hover,
  body.theme-dark.help-page .help-sidebar nav a.is-active,
  body.theme-dark.help-page .help-sidebar nav a[aria-current="true"] {
    background: rgba(255, 85, 102, 0.16);
  }
}

@media (min-width: 900px) {
  body.theme-dark .help-hero-stat {
    background: none;
    border: none;
  }
}
