/* Original deployed navigation styles, isolated from homepage redesign. */
.site-header {
  color-scheme: light;
  --page: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f7f6f3;
  --text: #222220;
  --muted: #73716b;
  --border: #dfdbd4;
  --border-soft: #ebe8e2;
  --accent: #f15a38;
  --accent-hover: #db4b2b;
  --green: #10a66a;
  --blue: #2563eb;
  --header: rgba(255, 255, 255, 0.96);
  --shadow: 0 14px 42px rgba(42, 37, 31, 0.08);
}
html[data-theme="dark"] .site-header {
  color-scheme: dark;
  --page: #20211f;
  --surface: #292a27;
  --surface-soft: #31322f;
  --text: #f7f6f2;
  --muted: #b8b5ae;
  --border: #44443f;
  --border-soft: #3a3a36;
  --header: rgba(32, 33, 31, 0.96);
  --shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-soft);
  background: var(--header);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(430px, 1fr) auto;
  align-items: center;
  width: min(1540px, calc(100% - 48px));
  min-height: 74px;
  margin: 0 auto;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}
.brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
#brand-fallback {
  display: none;
  color: var(--accent);
  font-weight: 900;
}
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 30px;
}
.desktop-nav a {
  position: relative;
  padding: 26px 0 24px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.desktop-nav a:hover,
.desktop-nav a.active {
  color: #e95231;
}
.desktop-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  content: "";
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.header-link,
.auth-link,
.icon-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.header-link,
.auth-link {
  padding: 0 14px;
}
.purchase-link {
  border-color: rgba(241, 90, 56, 0.34);
  color: #d94c2d;
}
.header-link:hover,
.auth-link:hover,
.icon-button:hover {
  background: var(--surface-soft);
}
.icon-button {
  width: 38px;
  padding: 0;
  cursor: pointer;
}
.menu-button {
  display: none;
}
.mobile-menu {
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
  padding: 10px 18px 18px;
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu > a {
  display: block;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
  font-weight: 650;
}
.mobile-menu > a.active {
  color: var(--accent);
}
.mobile-promotions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.mobile-promotions a,
.mobile-promotions button {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 700;
}
.mobile-promotions button {
  border-color: #171716;
  background: #171716;
  color: #fff;
}
@media (max-width: 1320px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 18px;
  }
  .desktop-nav {
    gap: 20px;
  }
  .group-link,
  .purchase-link {
    display: none;
  }
}
@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }
  .desktop-nav,
  .header-actions > .group-link,
  .header-actions > .purchase-link {
    display: none;
  }
  .header-actions {
    justify-content: flex-end;
  }
  .menu-button {
    display: inline-flex;
  }
}
@media (max-width: 640px) {
  .header-inner {
    width: calc(100% - 24px);
    min-height: 62px;
  }
  .brand {
    gap: 8px;
    font-size: 19px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .auth-link {
    display: none;
  }
}
.site-header {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-strong: #e9edf7;
  --surface-soft: #f7f8fc;
  --text: #111827;
  --muted: #536079;
  --subtle: #7b879f;
  --border: #dce2ee;
  --border-strong: #c8d1e2;
  --accent: #5b5ce2;
  --accent-strong: #4546c7;
  --accent-glow: rgba(91, 92, 226, 0.18);
  --canvas: #0f9fba;
  --header-bg: rgba(244, 246, 251, 0.82);
  --shadow: 0 18px 45px rgba(38, 50, 87, 0.12);
}
html[data-theme="dark"] .site-header {
  --bg: #0b1020;
  --surface: #111a30;
  --surface-strong: #18233d;
  --surface-soft: #0f172b;
  --text: #f4f7ff;
  --muted: #acb8d0;
  --subtle: #7885a2;
  --border: #263452;
  --border-strong: #354466;
  --accent: #8b8df7;
  --accent-strong: #a6a7ff;
  --accent-glow: rgba(139, 141, 247, 0.2);
  --header-bg: rgba(11, 16, 32, 0.82);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}
.site-header {
  backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}
.brand-mark {
  box-shadow:
    0 0 0 5px var(--accent-glow),
    0 8px 18px var(--accent-glow);
}
.site-header {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.5;
  color: var(--text);
}
