/* Canonical site header + language switcher.
   Single source of truth for kizuna.trading's header — every page links to
   this file instead of inlining its own copy, so the header can't drift
   between pages again. link.kizuna.trading also links to this file live
   (https://kizuna.trading/assets/header.css) for the same reason; it keeps
   its own markup for the extra nav links it needs (Modes/How it works/Flash
   back-links, the self-referencing "Have a GB-Link?" state) but shares this
   CSS for the shared classes (.kz-hdr*, .kz-lang*). */

header.kz-hdr{ position:sticky; top:0; z-index:60;
  background:color-mix(in srgb,var(--bg) 82%, transparent); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line); }
.kz-hdr-in{ max-width:1160px; margin-inline:auto; padding-inline:clamp(16px,4vw,36px);
  display:flex; align-items:center; justify-content:space-between; height:66px; gap:16px; }
.kz-hdr-brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink);
  font-weight:800; font-size:19px; letter-spacing:-.02em; }
.kz-hdr-brand:hover{ text-decoration:none; }
.kz-hdr-brand img{ width:26px; height:26px; object-fit:contain; display:block; }
.kz-hdr-nav{ display:flex; align-items:center; gap:22px; }
.kz-hdr-nav a{ text-decoration:none; color:var(--muted); font-weight:600; font-size:14.5px; white-space:nowrap; transition:color .15s; }
.kz-hdr-nav a:hover{ color:var(--ink); text-decoration:none; }
.kz-hdr-nav a[aria-current="page"]{ color:var(--fire); }
.kz-hdr-btn{ display:inline-flex; align-items:center; gap:9px; text-decoration:none; cursor:pointer;
  font-weight:700; font-size:14px; border:0; border-radius:999px; padding:10px 20px;
  transition:transform .18s cubic-bezier(.2,.9,.3,1.3), filter .18s; }
.kz-hdr-btn:hover{ text-decoration:none; }
.kz-hdr-btn-primary{ background:linear-gradient(120deg,var(--fire),#ff7a2d); }
.kz-hdr-btn-primary:hover{ transform:translateY(-2px) scale(1.02); filter:saturate(1.1); }
.kz-hdr-btn-ghost{ background:transparent; border:1.5px solid var(--line); }
.kz-hdr-gbl{ font-size:12.5px; font-weight:600; border-left:1px solid var(--line); padding-left:18px; margin-left:-6px; }
/* These three repeat ".kz-hdr-nav a" in their own selector so they reliably beat its
   color:var(--muted) default (same specificity otherwise — a plain .kz-hdr-btn-primary
   or .kz-hdr-gbl loses that fight and silently inherits the muted grey; that's why
   Pre-order and Log in were rendering muted instead of their real colors). */
.kz-hdr-nav a.kz-hdr-btn-primary{ color:#fff; }
.kz-hdr-nav a.kz-hdr-btn-ghost{ color:var(--ink); }
.kz-hdr-nav a.kz-hdr-btn-ghost:hover{ border-color:var(--fire); color:var(--fire); transform:translateY(-2px); }
.kz-hdr-nav a.kz-hdr-gbl{ color:var(--faint); }
.kz-hdr-nav a.kz-hdr-gbl:hover{ color:var(--fire); }
.kz-hdr-toggle{ display:none; align-items:center; justify-content:center; width:40px; height:40px;
  border:1.5px solid var(--line); border-radius:12px; background:transparent; color:var(--ink); cursor:pointer; }
.kz-hdr-toggle:hover{ border-color:var(--fire); color:var(--fire); }
.kz-hdr-toggle svg{ width:20px; height:20px; display:block; }
@media (max-width:820px){
  .kz-hdr-toggle{ display:inline-flex; }
  .kz-hdr-nav{
    position:absolute; top:66px; left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--panel); border-bottom:1px solid var(--line);
    box-shadow:0 18px 40px -22px rgba(29,22,54,.35);
    padding:10px clamp(16px,4vw,36px) 18px;
    max-height:calc(100dvh - 66px); overflow-y:auto;
    display:none;
  }
  .kz-hdr-nav.open{ display:flex; }
  .kz-hdr-nav a{ font-size:16px; color:var(--ink); padding:14px 2px; border-bottom:1px solid var(--line); white-space:normal; }
  .kz-hdr-nav a.kz-hdr-gbl{ border-left:0; padding-left:2px; margin-left:0; font-size:16px; color:var(--ink); }
  .kz-hdr-nav a.kz-hdr-btn{ border-bottom:0; justify-content:center; margin-top:12px; }
}

/* ---- language switcher ---- */
.kz-lang{ position:relative; }
.kz-lang-btn{ display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px;
  border:1.5px solid var(--line); border-radius:11px; background:transparent; color:var(--muted); cursor:pointer; padding:0; }
.kz-lang-btn:hover{ border-color:var(--fire); color:var(--fire); }
.kz-lang-btn svg{ width:18px; height:18px; display:block; }
.kz-lang-menu{ position:absolute; top:calc(100% + 8px); right:0; min-width:150px;
  background:var(--panel); border:1px solid var(--line); border-radius:14px; box-shadow:0 18px 40px -22px rgba(29,22,54,.35);
  padding:6px; display:none; flex-direction:column; gap:1px; z-index:70; }
.kz-lang-menu.open{ display:flex; }
.kz-lang-menu a.hdr-lang{ display:block; padding:9px 12px; border-radius:9px; font-size:14px; font-weight:600;
  color:var(--ink); white-space:nowrap; }
.kz-lang-menu a.hdr-lang:hover{ background:var(--fire-soft); color:var(--fire); text-decoration:none; }
@media (max-width:820px){
  .kz-lang{ margin-top:16px; display:flex; flex-direction:column; align-items:center; }
  .kz-lang-menu{ position:static; margin-top:8px; display:none; width:100%; max-width:220px; }
  .kz-lang-menu.open{ display:flex; }
}
