:root {
  /* Farben & Flächen kommen global aus styles.css, hier bleiben nur Layout-Variablen. */
  --nav-topbar-height: clamp(86px, 10vw, 128px);
  --nav-sidebar-width: clamp(220px, 18vw, 320px);
  --header-height: auto;
}

body.has-neon-shell {
  padding-left: 0;
  transition: padding-left 0.4s ease;
  background-color: var(--bg);
}

body.has-neon-shell.sidebar-open {
  padding-left: var(--nav-sidebar-width);
}

body.nav-locked {
  overflow: hidden;
}

@media (max-width: 1100px) {
  body.has-neon-shell,
  body.has-neon-shell.sidebar-open {
    padding-left: 0;
  }
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 2500;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
 background: transparent;
  box-shadow: none;
  border: 0;
}

.header-inner {
  width: 100%;
  max-width: none;
  padding: 0;
  display: block;
  position: relative;
}

.header-banner {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  object-fit: cover;
}

.quick-select {
  position: absolute;
  left: 50%;
  bottom: clamp(-1.4rem, -2.2vw, -0.9rem);
  transform: translateX(-50%);
  isolation: isolate;
  z-index: 5;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.4rem, 1vw, 0.7rem);
  padding: clamp(0.5rem, 1.4vw, 0.9rem) clamp(1rem, 2.3vw, 1.6rem) clamp(0.2rem, 0.8vw, 0.5rem);
}

.quick-select__rail {
  display: none;
}

.quick-select__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.01rem 0.01rem;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)) border-box,
    linear-gradient(140deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-soft-rgb), 0.12));
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 5px rgba(255, 255, 255, 0.14),
    inset 0 -10px 18px rgba(0, 0, 0, 0.38),
    0 12px 26px rgba(0, 0, 0, 0.38),
    0 0 20px rgba(var(--accent-soft-rgb), 0.28);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.25s ease, border-color 0.2s ease, background 0.25s ease;
  transform: translateY(34%);
  overflow: hidden;
}

.quick-select__item:hover,
.quick-select__item:focus-visible {
  transform: translateY(22%) scale(1.02);
  border-color: rgba(var(--accent-pop-rgb), 0.7);
  box-shadow:
    inset 0 1px 5px rgba(255, 255, 255, 0.14),
    inset 0 -12px 20px rgba(0, 0, 0, 0.45),
    0 16px 36px rgba(0, 0, 0, 0.5),
    0 0 26px rgba(var(--accent-pop-rgb), 0.35);
  outline: none;
}

.quick-select__item::before {
  content: '';
  position: absolute;
  inset: -36% -16% 38% -16%;
  background: radial-gradient(120% 120% at 50% 12%, rgba(255, 255, 255, 0.32), transparent 62%);
  opacity: 0.9;
  pointer-events: none;
}

.quick-select__item::after {
  content: '';
  position: absolute;
  inset: 62% 10% -6% 10%;
  background: radial-gradient(120% 110% at 50% 0%, rgba(0, 0, 0, 0.45), transparent 72%);
  pointer-events: none;
}

.quick-select__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  font-size: 1.05rem;
  color: var(--accent-ink, #041104);
  background: linear-gradient(
  1  135deg,
    rgba(var(--accent-pop-rgb), 0.9),
    rgba(var(--accent-rgb), 0.9) 42%,
    rgba(var(--accent-soft-rgb), 0.95) 100%
  );

  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.quick-select__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(var(--accent-pop-rgb), 0.98), rgba(var(--accent-rgb), 0.95) 56%, rgba(var(--accent-soft-rgb), 0.92) 100%);
  color: var(--accent-ink, #041104);
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid rgba(var(--accent-pop-rgb), 0.6);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), 0 0 10px rgba(var(--accent-pop-rgb), 0.44);
}

@media (max-width: 700px) {
  .quick-select {
    bottom: clamp(-0.35rem, -1vw, -0.1rem);
    gap: 0.45rem;
  }

  .quick-select__item {
    padding: 0.55rem 0.85rem;
    transform: translateY(28%);
    gap: 0.45rem;
  }

  .quick-select__icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
  }
}

.neon-topbar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text)
}

.topbar-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-soft-rgb), 0.1));
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 32px rgba(0, 0, 0, 0.55), 0 0 24px rgba(var(--accent-pop-rgb), 0.35);
}

.brand {
  display: block;
  max-width: clamp(260px, 35vw, 520px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-pop-rgb), 0.4);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65), 0 0 30px rgba(var(--accent-pop-rgb), 0.45);
}

.brand-banner {
  width: 100%;
  display: block;
  /*
    Verwende "contain", damit das Header-Logo vollständig sichtbar bleibt
    und seitlich nicht beschnitten wird.
  */
  object-fit: contain;
  transition: transform 0.45s ease, filter 0.45s ease;
  filter: saturate(120%) drop-shadow(0 0 18px rgba(var(--accent-pop-rgb), 0.55));
}

.brand:hover .brand-banner {
  transform: scale(1.03);
  filter: saturate(125%) drop-shadow(0 0 28px rgba(var(--accent-pop-rgb), 0.75));
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}

.brand-meta__title {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  color: var(--text);
  text-shadow: 0 0 12px rgba(var(--accent-pop-rgb), 0.6);
}

.brand-meta__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-pop-rgb), 0.4);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-soft-rgb), 0.12));
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255), 0.04;
}

.topbar-links::-webkit-scrollbar {
  height: 0;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(var(--accent-pop-rgb), 0.25), rgba(var(--accent-soft-rgb), 0.2));
  border: 1px solid rgba(var(--accent-pop-rgb), 0.55);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.topbar-link:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(var(--accent-pop-rgb), 0.9);
  background: linear-gradient(120deg, rgba(var(--accent-pop-rgb), 0.35), rgba(var(--accent-soft-rgb), 0.24));
  box-shadow: 0 10px 24px rgba(var(--accent-soft-rgb), 0.45);
}

.topbar-link__icon {
  font-size: 1rem;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
}

.rank-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(125deg, rgba(var(--accent-pop-rgb), 0.35), rgba(var(--accent-soft-rgb), 0.55));
  border: 1px solid rgba(var(--accent-pop-rgb), 0.55);
  box-shadow: 0 10px 20px rgba(var(--accent-soft-rgb), 0.35);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rank-chip__icon {
  font-size: 1rem;
}

.nav-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.35rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-pop-rgb), 0.7);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.35), rgba(var(--accent-soft-rgb), 0.45));
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(var(--accent-soft-rgb), 0.4);
}

.nav-action:hover,
.nav-action:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(var(--accent-pop-rgb), 0.4);
}

.nav-action:focus-visible {
  outline: 2px solid rgba(var(--accent-pop-rgb), 0.6);
  outline-offset: 2px;
}

.nav-action--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(var(--accent-rgb), 0.35);
}

.nav-action--outline {
  background: transparent;
  border-color: rgba(var(--accent-pop-rgb), 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255), 0.08;
}

.nav-action__icon {
  font-size: 1.1rem;
}

.nav-action__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.msg-count {
  display: inline-flex;
  min-width: 1.5rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(var(--accent-pop-rgb), 0.9), rgba(var(--accent-soft-rgb), 0.9));
  color: var(--accent-ink, #041104);
  font-size: 0.8rem;
  font-weight: 700;
}

.neon-sidebar {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  left: 1rem;
  width: var(--nav-sidebar-width);
  max-height: calc(100vh - var(--header-height) - 1rem);
  box-sizing: border-box;
  direction: rtl;
  overflow-y: auto;
  padding: 1.35rem 1.1rem 1.35rem 1.35rem;
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(8, 14, 11), 0.95), rgba(4, 9, 6, 0.96);
  border: 1px solid rgba(var(--accent-pop-rgb), 0.45);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 35px rgba(var(--accent-soft-rgb), 0.22), 0 0 28px rgba(var(--accent-pop-rgb), 0.28);
  color: var(--text);
  backdrop-filter: blur(22px);
  z-index: 1800;
  transform: translateX(-120%);
  transition: transform 0.4s ease, opacity 0.3s ease;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.65) rgba(255, 255, 255, 0.06);
}

.neon-sidebar::-webkit-scrollbar {
  width: 12px;
}

.neon-sidebar::-webkit-scrollbar-track {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.neon-sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--accent-pop-rgb), 0.9), rgba(var(--accent-soft-rgb), 0.85));
  border: 2px solid rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 20px rgba(var(--accent-soft-rgb), 0.35);
}

.neon-sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, rgba(var(--accent-pop-rgb), 1), rgba(var(--accent-soft-rgb), 0.95));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 26px rgba(var(--accent-soft-rgb), 0.42);
}

.neon-sidebar > * {
  direction: ltr;
}

.neon-sidebar.is-visible {
  transform: translateX(0);
}

.sidebar-tab {
  position: fixed;
  top: calc(var(--header-height) + 3.35rem);
  left: 0;
  transform: translateX(-30%);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.15rem 0.85rem;
  min-height: 150px;
  border-radius: 0 18px 18px 0;
  border: 0px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02))
      border-box,
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-soft-rgb), 0.12));
  color: var(--text);
  font-weight: 700;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  cursor: pointer;
  box-shadow:
    inset 0 1px 4px rgba(255, 255, 255, 0.18),
    inset 0 -8px 22px rgba(0, 0, 0, 0.45),
    0 12px 26px rgba(0, 0, 0, 0.42),
    0 0 22px rgba(var(--accent-soft-rgb), 0.24);
  backdrop-filter: blur(16px) saturate(135%);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.25s ease, top 0.3s ease;
  z-index: 2050;
}

.sidebar-tab::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.38), transparent 40%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.sidebar-tab::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
  opacity: 0.85;
  pointer-events: none;
}

.sidebar-tab:hover,
.sidebar-tab:focus-visible {
  transform: translateX(-10%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 28px rgba(var(--accent-pop-rgb), 0.34),
    inset 0 0 0 1px rgba(var(--accent-pop-rgb), 0.3);
}

.sidebar-tab:hover::after,
.sidebar-tab:focus-visible::after {
  opacity: 1;
}

.sidebar-tab:focus-visible {
  outline: 2px solid rgba(var(--accent-pop-rgb), 0.6);
  outline-offset: 2px;
}

body.has-neon-shell.sidebar-open .sidebar-tab {
  transform: translateX(calc(var(--nav-sidebar-width) + 1rem));
}

.sidebar-tab__icon {
  font-size: 1.1rem;
}

.sidebar-tab__label {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.neon-sidebar__header {
  margin-bottom: 1.25rem;
}

.neon-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.15rem;
}

.neon-sidebar__logo {
  display: block;
  width: min(190px, 72%);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.sidebar-section + .sidebar-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-section h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.sidebar-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-section a {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02)) border-box,
    linear-gradient(140deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-soft-rgb), 0.12));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 5px rgba(255, 255, 255, 0.14),
    inset 0 -10px 18px rgba(0, 0, 0, 0.38),
    0 12px 26px rgba(0, 0, 0, 0.38),
    0 0 20px rgba(var(--accent-soft-rgb), 0.28);
  backdrop-filter: blur(16px) saturate(135%);
  transition: transform 0.28s ease, box-shadow 0.25s ease, border-color 0.2s ease, background 0.25s ease;
}

.sidebar-section a::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
   background:
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.36), transparent 42%),
    linear-gradient(95deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.sidebar-section a::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
  opacity: 0.9;
  pointer-events: none;
}

.sidebar-section a:hover,
.sidebar-section a:focus-visible {
  border-color: rgba(var(--accent-pop-rgb), 0.7);
  box-shadow:
    inset 0 1px 5px rgba(255, 255, 255, 0.14),
    inset 0 -12px 20px rgba(0, 0, 0, 0.45),
    0 16px 36px rgba(0, 0, 0, 0.5),
    0 0 26px rgba(var(--accent-pop-rgb), 0.35);
  transform: translateY(-3px) scale(1.015);
}

.sidebar-section a:hover::after,
.sidebar-section a:focus-visible::after {
  opacity: 1;
}

.sidebar-section a span {
  line-height: 0.9;
}

.sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.2), transparent 65%),
    linear-gradient(135deg, rgba(36, 60, 46, 0.95), rgba(21, 35, 28, 0.75));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: #041205;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.sidebar-section a span:last-child {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.73rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .neon-sidebar {
    max-height: calc(100vh - var(--header-height));
  }
}

.mega-panel {
  position: fixed;
  top: calc(var(--nav-topbar-height) - 10px);
  left: 50%;
  transform: translate(-50%, -15px);
  width: min(1200px, calc(100% - 3rem));
  max-height: calc(100vh - var(--nav-topbar-height) - 1.5rem);
  overflow-y: auto;
  padding: 2rem;
  border-radius: 28px;
  background: radial-gradient(circle at 10% 0%, rgba(var(--accent-pop-rgb), 0.24), transparent 60%),
    radial-gradient(circle at 90% 10%, rgba(var(--accent-soft-rgb), 0.22), transparent 60%),
    linear-gradient(160deg, rgba(7, 14, 10, 0.95), rgba(4, 9, 6, 0.95));
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 45px rgba(var(--accent-pop-rgb), 0.28);
  color: var(--text);
  backdrop-filter: blur(26px);
  opacity: 0;
  pointer-events: none;
  z-index: 2400;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mega-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-panel__intro {
  margin-bottom: 1.5rem;
  max-width: 460px;
}

.mega-panel__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 0.8rem;
  opacity: 0.85;
}

.mega-panel__intro h2 {
  margin: 0.1rem 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: 0.04em;
}

.mega-panel__intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.mega-panel__content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.8rem;
}

.mega-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.mega-panel__section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mega-panel__section header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.mega-panel__section-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(var(--accent-pop-rgb), 0.2), rgba(var(--accent-soft-rgb), 0.25));
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  font-size: 1.1rem;
  box-shadow: 0 8px 18px rgba(var(--accent-soft-rgb), 0.25);
}

.mega-panel__section-label {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.9rem;
}

.mega-panel__links {
  display: grid;
  gap: 0.65rem;
}

.mega-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.7rem;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  color: var(--text);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.mega-link:hover {
  border-color: rgba(var(--accent-pop-rgb), 0.6);
  background: rgba(var(--accent-pop-rgb), 0.12);
  transform: translateY(-1px);
}

.mega-link__icon {
  font-size: 1.2rem;
}

.mega-link__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.mega-link__title {
  font-weight: 700;
}

.mega-link__desc {
  color: var(--muted);
  font-size: 0.92rem;
}

.mega-link__badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(var(--accent-pop-rgb), 0.35), rgba(var(--accent-soft-rgb), 0.35));
  color: #041205;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 8px 14px rgba(var(--accent-soft-rgb), 0.25);
}

.mega-panel__highlight {
  background: linear-gradient(160deg, rgba(var(--accent-soft-rgb), 0.2), rgba(var(--accent-pop-rgb), 0.08));
  border: 1px solid rgba(var(--accent-pop-rgb), 0.35);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.highlight-card {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.highlight-card__eyebrow {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.highlight-card h3 {
  margin: 0.2rem 0 0.4rem;
  letter-spacing: 0.04em;
}

.highlight-card__name {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
}

.highlight-card__xp {
  margin: 0.2rem 0 0.6rem;
  color: var(--muted);
}

.highlight-card__stats {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}

.highlight-card__stats li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 12px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.highlight-card__stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.highlight-card__stats strong {
  font-size: 1.1rem;
}

.highlight-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  text-decoration: none;
  background: linear-gradient(120deg, rgba(var(--accent-pop-rgb), 0.3), rgba(var(--accent-soft-rgb), 0.4));
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  color: #041205;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 22px rgba(var(--accent-soft-rgb), 0.25);
}

.highlight-card__secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1700;
}

.nav-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.header-offset {
  height: var(--header-height);
}

@media (max-width: 1100px) {
  .neon-topbar {
    align-items: stretch;
  }

  .topbar-links {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .mega-panel__content {
    grid-template-columns: 1fr;
  }

  .mega-panel__highlight {
    order: -1;
  }

  .header-offset {
    height: var(--header-height);
  }
}

@media (max-width: 720px) {
  .site-header {
    background-size: 220% 120%, 200% 120%, 720px;
  }

  .topbar-links {
    padding: 0.8rem;
  }

  .topbar-link {
    padding: 0.45rem 0.95rem;
  }

  .brand {
    max-width: 100%;
  }

  .mega-panel {
    width: calc(100% - 1.5rem);
    padding: 1.5rem;
  }

  .mega-panel__grid {
    grid-template-columns: 1fr;
  }

  .mega-panel__links {
    grid-template-columns: 1fr;
  }

  .nav-action {
    width: 100%;
    justify-content: center;
  }

  .topbar-actions {
    width: 100%;
  }

  .header-offset {
    height: var(--header-height);
  }
}
