/* ── FinVista Help Center ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #02040a;
  --bg-soft:  #0a0f1c;
  --card:     #0d1220;
  --border:   rgba(255,255,255,.07);
  --text:     #eef2ff;
  --text-mid: #b4c0d9;
  --text-dim: #8693ae;
  --blue:     #6366f1;
  --blue-l:   #818cf8;
  --accent:   #8b5cf6;
}

html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: var(--blue-l); text-decoration: none; }
a:hover { color: #fff; }

/* ── Header ─────────────────────────────────────────── */
.hc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 8, 16, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.hc-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: -.3px;
}
.hc-brand:hover { color: var(--text); }
.hc-gem { font-size: 1.3rem; filter: drop-shadow(0 2px 8px rgba(99,102,241,.55)); }
.hc-sep { color: var(--text-dim); }
.hc-help-tag { color: var(--text-mid); font-weight: 500; }
.hc-head-nav { display: flex; gap: 20px; font-size: .88rem; }
.hc-head-nav a { color: var(--text-mid); font-weight: 500; }
.hc-head-nav a:hover { color: var(--text); }

/* ── Hero ──────────────────────────────────────────── */
.hc-hero {
  text-align: center;
  padding: 72px 24px 56px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(99,102,241,.15), transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 30%, rgba(236,72,153,.08), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.hc-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff, #a5b4fc 60%, #fbcfe8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hc-hero p {
  color: var(--text-mid);
  font-size: 1rem;
  margin-bottom: 28px;
}
.hc-search {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  transition: border-color .2s;
}
.hc-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(99,102,241,.2); }
.hc-search svg { width: 18px; height: 18px; color: var(--text-dim); flex-shrink: 0; }
.hc-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
}
.hc-search input::placeholder { color: var(--text-dim); }

/* ── Main layout ───────────────────────────────────── */
.hc-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}

/* Sidebar collections */
.hc-sidebar { position: sticky; top: 80px; align-self: start; }
.hc-sidebar-title {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 14px;
  padding-left: 4px;
}
.hc-collections {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hc-coll {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-mid);
  transition: background .18s, color .18s;
  border: 1px solid transparent;
  align-items: flex-start;
}
.hc-coll:hover { background: var(--card); color: var(--text); }
.hc-coll.active { background: var(--card); border-color: var(--blue); color: var(--text); }
.hc-coll-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,.12);
  border-radius: 8px;
}
.hc-coll b { display: block; font-size: .9rem; font-weight: 600; color: inherit; margin-bottom: 2px; }
.hc-coll small { display: block; font-size: .76rem; color: var(--text-dim); line-height: 1.35; }

/* Article */
.hc-article {
  min-width: 0;
}
.hc-breadcrumb {
  font-size: .82rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.hc-breadcrumb a { color: var(--text-mid); }
.hc-breadcrumb a:hover { color: var(--text); }
.hc-breadcrumb span { margin: 0 6px; }

.hc-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.8px;
  margin-bottom: 22px;
  line-height: 1.15;
}
.hc-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 26px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.hc-author { display: flex; align-items: center; gap: 12px; }
.hc-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.hc-author-name { font-size: .88rem; font-weight: 600; color: var(--text); }
.hc-updated { font-size: .78rem; color: var(--text-dim); }

/* Article body */
.hc-body { font-size: 1rem; color: var(--text-mid); }
.hc-body .lead {
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 28px;
}
.hc-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.4px;
  margin: 36px 0 14px;
}
.hc-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}
.hc-body p { margin-bottom: 14px; line-height: 1.65; }
.hc-body ul, .hc-body ol { margin: 0 0 16px 22px; }
.hc-body li { margin-bottom: 8px; line-height: 1.6; }
.hc-body code {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .88em;
  color: var(--blue-l);
}
.hc-body b, .hc-body strong { color: var(--text); font-weight: 600; }

.hc-tip {
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(139,92,246,.04));
  border: 1px solid rgba(99,102,241,.25);
  border-left: 3px solid var(--blue);
  padding: 16px 20px;
  border-radius: 10px;
  margin: 20px 0 24px;
}
.hc-tip b { display: block; color: var(--blue-l); margin-bottom: 6px; font-size: .88rem; }
.hc-tip p { margin: 0; color: var(--text-mid); font-size: .92rem; }

/* Related */
.hc-related-section {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hc-related-heading {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 18px;
}
.hc-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.hc-related {
  display: block;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  transition: all .18s;
}
.hc-related:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,.15);
  color: var(--text);
}
.hc-related-cat {
  font-size: .72rem;
  font-weight: 700;
  color: var(--blue-l);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.hc-related-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

/* Footer */
.hc-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .8rem;
  color: var(--text-dim);
}
.hc-footer strong { color: var(--text-mid); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 860px) {
  .hc-main { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px; }
  .hc-sidebar { position: static; }
  .hc-header-inner { padding: 16px 20px; }
  .hc-hero { padding: 52px 20px 40px; }
  .hc-footer { flex-direction: column; text-align: center; padding: 20px; }
}
