/* Shared site header + mobile bottom nav, identical to the home page. */
:root {
  --container: min(1180px, calc(100% - 40px));
  --line: rgba(255, 255, 255, 0.11);
  --text: #f7fbff;
  --muted: #aab9d4;
  --blue: #56a7ff;
  --cyan: #63e7ff;
  --lime: #b7f06c;
}
.container { width: var(--container); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 18, 37, 0.80);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 20px;
  white-space: nowrap;
}
.brand-mark {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 5px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(183, 240, 108, 0.95), rgba(74, 197, 104, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 24px rgba(84, 208, 112, 0.22);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-link {
  padding: 9px 15px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav-link[aria-current="page"] { color: var(--cyan); }
.header-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.header-actions > .btn.ghost {
  flex: 0 0 auto;
  white-space: nowrap;
  word-break: keep-all;
}
.notify-bell {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 19px;
  cursor: pointer;
  flex: 0 0 42px;
}
.notify-bell:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(99, 231, 255, 0.45); }
.notify-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(145deg, #ff6b7a, #ef4d5c);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(239, 77, 92, 0.45);
}
.notify-badge[hidden] { display: none; }
.points-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(183, 240, 108, 0.35);
  border-radius: 999px;
  background: rgba(183, 240, 108, 0.10);
  color: var(--lime);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  word-break: keep-all;
  cursor: pointer;
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  text-decoration: none;
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn.ghost:active { background: rgba(255, 255, 255, 0.18); }
.btn.ghost:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Mobile bottom nav */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(8, 17, 38, 0.985);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  min-height: calc(76px + env(safe-area-inset-bottom));
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.32);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  isolation: isolate;
  transform: none;
}
.bottom-nav-item {
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 60px;
  display: grid;
  grid-template-rows: 30px 16px;
  align-content: center;
  justify-items: center;
  gap: 1px;
  margin: 0;
  padding: 6px 2px 5px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transform: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-icon {
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 25px;
  line-height: 30px;
}
.bottom-nav-label {
  display: block;
  height: 16px;
  font-size: 11.5px;
  line-height: 16px;
  letter-spacing: 0;
}
.bottom-nav-item.active {
  color: var(--cyan);
  background: linear-gradient(180deg, rgba(99, 231, 255, 0.14), rgba(99, 231, 255, 0.06));
  box-shadow: inset 0 0 0 1px rgba(99, 231, 255, 0.10);
}

@media (max-width: 900px) {
  .main-nav .nav-link { padding: 9px 10px; font-size: 14px; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-inner {
    grid-template-columns: auto 1fr;
    min-height: 64px;
    gap: 12px;
  }
  .header-actions { justify-content: flex-end; }
  .bottom-nav { display: grid; }
}
@media (max-width: 520px) {
  .points-chip { display: none; }
  .brand-name { font-size: 17px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .brand { min-width: 0; gap: 8px; }
  .brand-mark { flex-basis: 38px; width: 38px; height: 38px; }
  .header-actions { gap: 6px; }
}
@media (max-width: 420px) {
  .points-chip { display: none; }
  .brand-name { font-size: 17px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .brand { min-width: 0; gap: 8px; }
  .brand-mark { flex-basis: 38px; width: 38px; height: 38px; }
  .header-actions { min-width: 0; gap: 6px; }
  #accountBtn { min-height: 40px; padding-inline: 14px; white-space: nowrap; }
}
