/* ============================================
   Coinlio — help centre (exchange export guides)
   Emitted pages link this file; see scripts/generate-help-pages.js
   ============================================ */

.help-hero {
  text-align: center;
  padding: 84px var(--gutter) 40px;
  position: relative;
  overflow: hidden;
}

.help-hero::before {
  content: '';
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 480px;
  background: radial-gradient(ellipse, rgba(255, 138, 102, 0.13), transparent 70%);
  pointer-events: none;
}

.help-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  border: 1px solid var(--border-brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-start);
  margin-bottom: 20px;
}

.help-hero h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.help-hero p {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.help-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px var(--gutter) 88px;
}

.help-page h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 14px;
}

.help-page h3 {
  font-size: 18px;
  font-weight: 650;
  color: var(--text-primary);
  margin: 28px 0 10px;
}

.help-page p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.78;
  margin-bottom: 16px;
}

.help-page a {
  color: var(--brand-start);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 138, 102, 0.3);
}

.help-page a:hover {
  border-bottom-color: var(--brand-start);
}

.help-page code {
  font-family: var(--font-mono);
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--brand-start);
}

.help-page pre {
  background: var(--surface-sunken);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 18px;
  overflow-x: auto;
  margin: 20px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Language switcher ── */
.lang-switcher {
  display: inline-flex;
  margin-top: 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 4px;
  background: var(--bg-secondary);
}

.lang-switcher a {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.lang-switcher a.active {
  background: var(--brand-gradient);
  color: var(--text-on-brand);
}

/* ── Numbered steps ── */
.steps-list {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 18px 20px 18px 66px;
  margin-bottom: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-secondary);
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  top: 17px;
  left: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--text-on-brand);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps-list li strong {
  color: var(--text-primary);
  font-weight: 650;
}

.screenshot-placeholder {
  margin: 24px 0;
  padding: 38px 20px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ── Exchange index ── */
.exchange-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.exchange-card {
  display: block;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}

.exchange-card:hover {
  border-color: var(--border-brand);
  transform: translateY(-2px);
}

.exchange-card h3 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 4px;
}

.exchange-card p {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ── CTA + related ── */
.cta-box {
  margin-top: 48px;
  padding: 34px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface-brand), var(--bg-secondary) 70%);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-lg);
}

.cta-box h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.cta-box p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.related-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}

.related-section h3 {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-start);
  margin-bottom: 16px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.related-grid a {
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--bg-secondary);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.related-grid a:hover {
  border-color: var(--border-brand);
  color: var(--text-primary);
}

/* ── Bilingual content toggling ── */
.vi {
  display: none;
}

[data-lang='vi'] .en {
  display: none;
}

[data-lang='vi'] .vi {
  display: block;
}

[data-lang='vi'] li.en,
[data-lang='vi'] a.en,
[data-lang='vi'] span.en {
  display: none;
}

[data-lang='vi'] li.vi,
[data-lang='vi'] a.vi {
  display: list-item;
}

[data-lang='vi'] span.vi {
  display: inline;
}
