/* ── Full header (index, market, news) ── */
header {
  background: #fff;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(30,46,92,.08);
  transition: transform .3s ease;
}
header:not(.hdr-simple)::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  height: 3px; width: var(--scroll-pct, 0%);
  background: linear-gradient(90deg, var(--amber), var(--amber-dark));
  transition: width .08s linear; pointer-events: none;
}
header.hdr-hidden { transform: translateY(-100%); }
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 46px; display: block; }
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-name { font-family: 'Syne', sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--navy); letter-spacing: -.04em; line-height: 1.1; }
.logo-know { color: var(--amber); }
.logo-name-row { display: flex; align-items: center; gap: 6px; }
.header-tagline { font-size: .7rem; color: var(--text-muted); line-height: 1; }
.header-nav { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 7px 14px; border-radius: 8px; font: 500 .875rem 'Inter', sans-serif; color: var(--text-muted); text-decoration: none; border: 1.5px solid transparent; background: #f0f2f7; transition: background .15s, color .15s; }
.nav-link:hover { background: #e2e5ed; color: var(--navy); }
.nav-link.active { background: #fff4ec; color: var(--amber-dark); border-color: #f8ddc5; }
.nav-link-cta { padding: 7px 16px; border-radius: 8px; font: 600 .875rem 'Inter', sans-serif; color: #fff; background: var(--amber); text-decoration: none; transition: background .15s; border: 1.5px solid transparent; }
.nav-link-cta:hover { background: var(--amber-dark); }
.beta-badge { background: #facc15; color: #422006; font-size: .62rem; font-weight: 700; letter-spacing: .09em; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; line-height: 1.6; pointer-events: none; vertical-align: middle; }

/* ── Simple header (faq, conditions) ── */
header.hdr-simple {
  background: var(--navy);
  padding: 16px 24px;
  height: auto;
  position: static;
  box-shadow: none;
  border-bottom: none;
}
header.hdr-simple .header-left { display: flex; align-items: center; gap: 12px; }
header.hdr-simple a { color: #fff; text-decoration: none; font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 700; }
header.hdr-simple a:hover { opacity: .8; }
header.hdr-simple .back { font-size: .78rem; font-weight: 500; opacity: .65; font-family: 'Inter', sans-serif; }

@media (max-width: 767px) {
  .header-tagline { display: none; }
  .nav-link-cta { display: none; }
}

@media (max-width: 600px) {
  header:not(.hdr-simple) { padding: 0 12px; height: 56px; }
  .logo-img { height: 28px; }
  .logo-name { font-size: .9rem; }
  .beta-badge { font-size: .52rem; padding: 1px 5px; }
  .header-nav { gap: 4px; }
  .nav-link { font-size: 0; padding: 7px 9px; line-height: 0; }
  .nav-link svg { width: 18px; height: 18px; margin: 0; vertical-align: middle; }
  .nav-link-cta { font-size: 0; padding: 7px 9px; line-height: 0; display: inline-flex !important; align-items: center; justify-content: center; }
  .nav-link-cta svg { width: 18px; height: 18px; margin: 0; }
  header.hdr-simple { padding: 12px 16px; }
  header.hdr-simple .back { display: none; }
}
