/* Shared navigation. Scoped styles preserve every page's content layout. */
.universe-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  color: #edf4ff;
  background: rgba(4, 8, 22, .94);
  border-bottom: 1px solid rgba(140, 175, 255, .22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.universe-header,
.universe-header * { box-sizing: border-box; }
.universe-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  width: min(1240px, calc(100% - 48px));
  min-height: 76px;
  margin-inline: auto;
}
.universe-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  color: #edf4ff;
  text-decoration: none;
}
.universe-brand__image {
  display: block;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 0 10px rgba(101, 177, 255, .18));
}
.universe-brand__text { display: grid; gap: 3px; min-width: 0; }
.universe-brand__text strong {
  font: 700 16px/1.3 var(--display, "Comfortaa", sans-serif);
  letter-spacing: 0;
  white-space: nowrap;
}
.universe-brand__text small {
  color: #a6b4d0;
  font: 500 11px/1.4 var(--sans, "Manrope", sans-serif);
  white-space: nowrap;
}
.universe-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.universe-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: #c9d5ef;
  font: 600 14px/1.4 var(--sans, "Manrope", sans-serif);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.universe-nav a:hover,
.universe-nav a[aria-current] { color: #fff; background: rgba(123, 154, 255, .1); }
.universe-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  margin: 0;
  border: 1px solid rgba(140, 175, 255, .3);
  border-radius: 12px;
  color: #edf4ff;
  background: rgba(24, 41, 66, .5);
  font: 600 14px/1.3 var(--sans, "Manrope", sans-serif);
  cursor: pointer;
  white-space: nowrap;
}
.universe-cart:hover { border-color: #9dbdff; background: rgba(50, 69, 111, .5); }
.universe-cart svg { display: block; flex: 0 0 20px; }
.universe-cart__count {
  display: grid;
  place-items: center;
  position: static;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 10px;
  color: #d9e6ff;
  background: rgba(146, 166, 230, .15);
  font: 700 11px/1 var(--sans, "Manrope", sans-serif);
}
.universe-header a:focus-visible,
.universe-header button:focus-visible {
  outline: 3px solid #c4d8ff;
  outline-offset: 3px;
}
/* Anchor and sidebar offsets follow the shorter shared header. */
html { scroll-padding-top: 105px; }
.browse-sidebar { top: 90px; }
.browse-layout,
.catalog-section[id],
.quick-topup,
.guide-prose h2,
.guide-page :target,
.seo-section,
.seo-notice,
.seo-cta { scroll-margin-top: 105px; }
@media (max-width: 1000px) {
  .universe-header__inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; width: calc(100% - 32px); }
  .universe-nav { gap: 0; }
  .universe-nav a { padding-inline: 10px; }
}
@media (max-width: 900px) {
  .universe-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 44px 44px;
    min-height: 88px;
    width: calc(100% - 24px);
    gap: 0 12px;
  }
  .universe-brand { min-height: 44px; gap: 8px; }
  .universe-brand__image { flex-basis: 40px; width: 40px; height: 40px; }
  .universe-brand__text { gap: 2px; }
  .universe-brand__text strong { font-size: 15px; }
  .universe-brand__text small { font-size: 10px; }
  .universe-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; width: 100%; }
  .universe-nav a { flex: 1 1 0; min-width: 0; min-height: 44px; padding-inline: 4px; font-size: 12.5px; }
  .universe-cart { grid-column: 2; grid-row: 1; gap: 6px; padding-inline: 9px; font-size: 13px; }
}
@media (max-width: 380px) {
  .universe-header__inner { column-gap: 8px; }
  .universe-nav a { padding-inline: 3px; font-size: 12px; }
  .universe-brand__image { flex-basis: 36px; width: 36px; height: 36px; }
  .universe-brand__text strong { font-size: 14px; }
  .universe-cart { padding-inline: 8px; font-size: 12px; }
  .universe-cart svg { display: none; }
  .universe-cart__count { min-width: 18px; height: 18px; padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .universe-nav a { transition: none; }
}
