:root {
  --help-sidebar-width: 260px;
  --help-content-max: 740px;
  --help-nav-height: 64px;
}

/* Help nav — slimmer than landing nav */
.help-nav {
  height: var(--help-nav-height);
  background: white;
  border-bottom: 1px solid #EFEFF1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.help-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #1B1A1D;
  text-decoration: none;
}
.help-nav-logo img { width: 26px; height: 26px; }
.help-nav-logo span.label { color: #9CA3AF; font-weight: 500; }
.help-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.help-nav-links a {
  font-size: 14px;
  color: #6B7280;
  text-decoration: none;
}
.help-nav-links a:hover { color: #1B1A1D; }
.help-nav-back {
  font-size: 14px;
  color: #6B7280;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.help-nav-back:hover { color: #3074FF; }

/* Hero search */
.help-hero {
  background: #F6F6F8;
  padding: 64px 24px;
  text-align: center;
}
.help-hero h1 {
  font-size: 40px;
  font-weight: 700;
  color: #1B1A1D;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.help-hero p {
  font-size: 18px;
  color: #6B7280;
  margin-bottom: 32px;
}
.help-search-box {
  max-width: 560px;
  margin: 0 auto 24px;
  position: relative;
}
.help-search-box input {
  width: 100%;
  padding: 16px 52px 16px 20px;
  font-size: 16px;
  border: 1.5px solid #EFEFF1;
  border-radius: 12px;
  outline: none;
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  box-sizing: border-box;
}
.help-search-box input:focus {
  border-color: #3074FF;
}
.help-search-box svg {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
}
.help-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #EFEFF1;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  max-height: 400px;
  overflow-y: auto;
  z-index: 200;
  display: none;
  text-align: left;
}
.help-search-results.active { display: block; }
.help-search-result-item {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  border-bottom: 1px solid #F6F6F8;
}
.help-search-result-item:hover { background: #F6F6F8; }
.help-search-result-item .result-title {
  font-size: 14px;
  font-weight: 500;
  color: #1B1A1D;
}
.help-search-result-item .result-excerpt {
  font-size: 13px;
  color: #6B7280;
  margin-top: 2px;
}
.help-search-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.help-search-chip {
  padding: 6px 14px;
  background: white;
  border: 1px solid #EFEFF1;
  border-radius: 100px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  text-decoration: none;
}
.help-search-chip:hover {
  border-color: #3074FF;
  color: #3074FF;
}

/* Topic grid */
.help-topics {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
}
.help-topics h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1B1A1D;
  margin-bottom: 32px;
}
.help-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.help-topic-card {
  display: block;
  padding: 24px;
  background: white;
  border: 1px solid #EFEFF1;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.help-topic-card:hover {
  border-color: #3074FF;
  box-shadow: 0 4px 24px rgba(48,116,255,0.08);
  transform: translateY(-2px);
}
.help-topic-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5398FF, #3074FF);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.help-topic-icon svg { color: white; width: 20px; height: 20px; }
.help-topic-name {
  font-size: 16px;
  font-weight: 600;
  color: #1B1A1D;
  margin-bottom: 4px;
}
.help-topic-count {
  font-size: 13px;
  color: #9CA3AF;
}

/* Popular articles */
.help-popular {
  background: #F6F6F8;
  padding: 64px 24px;
}
.help-popular-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.help-popular h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1B1A1D;
  margin-bottom: 32px;
}
.help-popular-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.help-popular-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: white;
  border: 1px solid #EFEFF1;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}
.help-popular-item:hover {
  border-color: #3074FF;
  color: #3074FF;
}
.help-popular-category {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  background: linear-gradient(135deg, #5398FF, #3074FF);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.help-popular-title {
  font-size: 14px;
  font-weight: 500;
  color: #1B1A1D;
}
.help-popular-item:hover .help-popular-title {
  color: #3074FF;
}

/* Category page */
.help-category-hero {
  background: #F6F6F8;
  padding: 48px 24px;
  border-bottom: 1px solid #EFEFF1;
}
.help-category-hero .inner { max-width: 740px; margin: 0 auto; }
.help-category-hero .breadcrumb {
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 16px;
}
.help-category-hero .breadcrumb a {
  color: #3074FF;
  text-decoration: none;
}
.help-category-hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: #1B1A1D;
  margin-bottom: 8px;
}
.help-category-hero p {
  font-size: 16px;
  color: #6B7280;
}
.help-article-list {
  max-width: 740px;
  margin: 48px auto;
  padding: 0 24px;
}
.help-article-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #EFEFF1;
  text-decoration: none;
  color: #1B1A1D;
}
.help-article-item:hover .help-article-title {
  color: #3074FF;
}
.help-article-title {
  font-size: 16px;
  font-weight: 500;
  transition: color 0.15s;
}
.help-article-arrow { color: #9CA3AF; font-size: 18px; }

/* Article page */
.help-article-page {
  display: grid;
  grid-template-columns: var(--help-sidebar-width) 1fr;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
  gap: 64px;
  align-items: start;
}
.help-sidebar {
  position: sticky;
  top: calc(var(--help-nav-height) + 24px);
}
.help-sidebar-section {
  margin-bottom: 32px;
}
.help-sidebar-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #9CA3AF;
  margin-bottom: 12px;
}
.help-sidebar-link {
  display: block;
  font-size: 14px;
  color: #6B7280;
  text-decoration: none;
  padding: 6px 0;
  line-height: 1.4;
}
.help-sidebar-link:hover { color: #1B1A1D; }
.help-sidebar-link.active {
  color: #3074FF;
  font-weight: 500;
}

/* Article content */
.help-article-content { min-width: 0; }
.help-article-content .breadcrumb {
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 16px;
}
.help-article-content .breadcrumb a { color: #3074FF; text-decoration: none; }
.help-article-content h1 {
  font-size: 36px;
  font-weight: 700;
  color: #1B1A1D;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.help-article-meta {
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #EFEFF1;
}
.help-article-meta a {
  color: #3074FF;
  text-decoration: none;
}
.help-article-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1B1A1D;
  margin: 36px 0 12px;
}
.help-article-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1B1A1D;
  margin: 24px 0 8px;
}
.help-article-content p {
  font-size: 16px;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 18px;
}
.help-article-content ul,
.help-article-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.help-article-content li {
  font-size: 16px;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 6px;
}
.help-article-content li::marker { color: #3074FF; }
.help-article-content code {
  background: #F6F6F8;
  border: 1px solid #EFEFF1;
  border-radius: 4px;
  padding: 2px 8px;
  font-family: monospace;
  font-size: 14px;
  color: #3074FF;
}
.help-article-content pre {
  background: #1B1A1D;
  border-radius: 12px;
  padding: 24px;
  overflow-x: auto;
  margin: 20px 0;
}
.help-article-content pre code {
  background: none;
  border: none;
  color: #86efac;
  font-size: 14px;
  padding: 0;
}
.help-callout {
  border-left: 3px solid #3074FF;
  background: #EFF6FF;
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.help-callout.warning {
  border-color: #F97316;
  background: #FFF7ED;
}
.help-callout.tip {
  border-color: #22C55E;
  background: #F0FDF4;
}
.help-callout p {
  margin: 0;
  font-size: 15px;
}
.help-callout-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #3074FF;
  margin-bottom: 4px;
}
.help-callout.warning .help-callout-label { color: #F97316; }
.help-callout.tip .help-callout-label { color: #22C55E; }

/* Step-by-step */
.help-steps { margin: 24px 0; }
.help-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.help-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5398FF, #3074FF);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.help-step-content { flex: 1; }
.help-step-content strong {
  font-size: 16px;
  color: #1B1A1D;
  display: block;
  margin-bottom: 4px;
}
.help-step-content p {
  margin: 0;
  font-size: 15px;
  color: #6B7280;
}

/* Was this helpful */
.help-feedback {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #EFEFF1;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: #6B7280;
}
.help-feedback button {
  border: 1px solid #EFEFF1;
  background: white;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
}
.help-feedback button:hover { border-color: #3074FF; color: #3074FF; }
.help-feedback button.chosen { border-color: #3074FF; background: #EFF6FF; color: #3074FF; }

/* Article navigation */
.help-article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #EFEFF1;
}
.help-article-nav a {
  font-size: 14px;
  color: #3074FF;
  text-decoration: none;
  font-weight: 500;
}

/* Contact band */
.help-contact-band {
  background: #F6F6F8;
  text-align: center;
  padding: 48px 24px;
  margin-top: 48px;
}
.help-contact-band h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1B1A1D;
  margin-bottom: 8px;
}
.help-contact-band p {
  color: #6B7280;
  margin-bottom: 20px;
}
.help-contact-band .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Help footer */
.help-footer {
  background: #1B1A1D;
  padding: 40px 24px;
}
.help-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.help-footer-logo {
  font-size: 16px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.help-footer-logo img { width: 24px; height: 24px; }
.help-footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}
.help-footer-col-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}
.help-footer-link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 10px;
}
.help-footer-link:hover { color: white; }
.help-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}

/* Responsive */
@media (max-width: 1024px) {
  .help-article-page {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .help-sidebar { position: static; order: 2; }
  .help-topic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .help-nav { padding: 0 20px; }
}
@media (max-width: 640px) {
  .help-topic-grid { grid-template-columns: 1fr; }
  .help-popular-grid { grid-template-columns: 1fr; }
  .help-hero h1 { font-size: 30px; }
  .help-article-content h1 { font-size: 28px; }
  .help-footer-inner { grid-template-columns: 1fr; }
  .help-nav-links { gap: 14px; }
}
