/* ALVIRAN Header */

:root {
  --gold: #f9c86c;
  --gold-dark: #e8a93a;
  --gold-light: #fde68a;
  --purple: #8b5cf6;
  --text: #f3f1fa;
  --text-muted: rgba(243, 241, 250, 0.52);
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(13, 12, 22, 0.74);
  --bg: #0a0a0f;
  --green: #34d399;
  --radius: 14px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100000;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gold);
  color: #09090e;
  font-weight: 800;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease;
}

.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ah-shell {
  position: sticky;
  top: 12px;
  z-index: 9999;
  padding: 0 20px;
  pointer-events: none;
}

.admin-bar .ah-shell {
  top: 44px;
}

.ah-card {
  pointer-events: all;
  margin: 0 auto;
  max-width: 1400px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 14px 38px -10px rgba(0, 0, 0, 0.58),
    0 4px 12px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.ah-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 200, 108, 0.5) 30%, rgba(249, 200, 108, 0.72) 50%, rgba(249, 200, 108, 0.5) 70%, transparent);
}

.ah-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04) 50%, transparent);
}

.ah-inner {
  display: flex;
  align-items: center;
  height: 68px;
  padding: 0 28px;
  gap: 0;
}

.ah-wordmark {
  display: flex;
  align-items: baseline;
  gap: 0;
  flex-shrink: 0;
  margin-right: 8px;
  text-decoration: none;
  user-select: none;
}

.ah-wordmark-text {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  color: var(--gold);
  background: linear-gradient(180deg, #fde68a 0%, #f9c86c 35%, #d4982e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ah-wordmark-dot {
  width: 5px;
  height: 5px;
  margin-left: 3px;
  margin-bottom: 2px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold);
  opacity: .85;
  box-shadow: 0 0 8px rgba(249, 200, 108, .28);
}

.ah-divider {
  width: 1px;
  height: 22px;
  margin: 0 20px;
  flex-shrink: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .1) 50%, transparent);
}

.ah-nav {
  display: flex;
  align-items: center;
}

.ah-nav ul,
.ah-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-nav a {
  display: flex;
  align-items: center;
  position: relative;
  padding: 8px 16px;
  border-radius: 9px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.ah-nav a:hover,
.ah-nav a:focus-visible {
  color: rgba(243, 241, 250, .9);
  background: transparent;
}

.ah-nav a:focus-visible {
  outline: 1px solid rgba(249, 200, 108, .42);
  outline-offset: 4px;
}

.ah-nav a[aria-current="page"],
.ah-nav .current-menu-item > a,
.ah-nav .current_page_item > a,
.ah-nav a.is-current {
  color: var(--text);
  background: transparent;
}

.ah-nav a[aria-current="page"]::after,
.ah-nav .current-menu-item > a::after,
.ah-nav .current_page_item > a::after,
.ah-nav a.is-current::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  opacity: .72;
  transform: translateX(-50%);
}

.ah-spacer {
  flex: 1;
  min-width: 24px;
}

.ah-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ah-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  color: rgba(243, 241, 250, .58);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.ah-discord-btn:hover,
.ah-discord-btn:focus-visible {
  color: rgba(243, 241, 250, .88);
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
}

.ah-discord-btn svg {
  width: 15px;
  height: 15px;
  opacity: .55;
  transition: opacity .2s ease;
}

.ah-discord-btn:hover svg,
.ah-discord-btn:focus-visible svg {
  opacity: .85;
}

.ah-live {
  display: none;
  align-items: center;
  gap: 5px;
  margin-left: 4px;
  padding: 2px 8px 2px 6px;
  border: 1px solid rgba(52, 211, 153, .15);
  border-radius: 6px;
  background: rgba(52, 211, 153, .08);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 700;
}

.ah-live.visible {
  display: inline-flex;
}

.ah-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(52, 211, 153, .4);
  animation: ah-pulse 2.5s ease-in-out infinite;
}

@keyframes ah-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: .45;
    transform: scale(.75);
  }
}

.ah-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.ah-burger:focus-visible,
.ah-mob-close:focus-visible,
.ah-mob-link:focus-visible,
.ah-wordmark:focus-visible,
.ah-mob-wordmark:focus-visible {
  outline: 2px solid rgba(249, 200, 108, .75);
  outline-offset: 3px;
}

.ah-burger-bar {
  width: 21px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-muted);
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.ah-burger.open .ah-burger-bar:nth-child(1) {
  background: var(--gold);
  transform: translateY(7px) rotate(45deg);
}

.ah-burger.open .ah-burger-bar:nth-child(2) {
  opacity: 0;
}

.ah-burger.open .ah-burger-bar:nth-child(3) {
  background: var(--gold);
  transform: translateY(-7px) rotate(-45deg);
}

.ah-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(8, 7, 14, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.ah-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ah-mobile {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(14, 12, 22, .98);
  border-right: 1px solid rgba(249, 200, 108, .08);
  visibility: hidden;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility .28s;
}

.ah-mobile.active {
  visibility: visible;
  transform: translateX(0);
}

.ah-mobile::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 200, 108, .3) 50%, transparent);
}

.ah-mob-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.ah-mob-wordmark {
  color: var(--gold);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  background: linear-gradient(180deg, #fde68a 0%, #f9c86c 35%, #d4982e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ah-mob-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

.ah-mob-close:hover {
  background: rgba(249, 200, 108, .08);
  border-color: rgba(249, 200, 108, .2);
}

.ah-mob-close svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, .7);
  stroke-width: 2.5;
}

.ah-mob-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 32px 24px;
}

.ah-mob-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.ah-mob-link:hover,
.ah-mob-link:active {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .12);
  color: #fff;
  transform: translateX(3px);
}

.ah-mob-link.is-current {
  border-color: rgba(249, 200, 108, .25);
  background: rgba(249, 200, 108, .06);
  color: #fff;
}

.ah-mob-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid rgba(139, 92, 246, .18);
  border-radius: 10px;
  background: rgba(139, 92, 246, .12);
}

.ah-mob-icon svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, .75);
  stroke-width: 2;
  fill: none;
}

.ah-mob-link.cta {
  border-color: rgba(249, 200, 108, .2);
  background: linear-gradient(135deg, rgba(249, 200, 108, .1), rgba(249, 200, 108, .04));
  color: #fff;
}

.ah-mob-link.cta .ah-mob-icon {
  border-color: rgba(249, 200, 108, .3);
  background: linear-gradient(135deg, rgba(249, 200, 108, .25), rgba(232, 169, 58, .15));
}

.ah-mob-link.cta .ah-mob-icon svg {
  stroke: var(--gold);
}

.ah-mob-link.discord .ah-mob-icon {
  border-color: rgba(88, 101, 242, .3);
  background: rgba(88, 101, 242, .2);
}

.ah-mob-link.discord .ah-mob-icon svg {
  fill: #8fa3f5;
  stroke: none;
}

.ah-mob-live {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid rgba(52, 211, 153, .2);
  border-radius: 5px;
  background: rgba(52, 211, 153, .1);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.ah-mob-live.visible {
  display: inline-flex;
}

.ah-mob-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: ah-pulse 2.5s ease-in-out infinite;
}

.ah-mob-ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.ah-mob-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(249, 200, 108, .58);
  font-size: 12px;
}

.ah-mob-trust svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: rgba(249, 200, 108, .58);
  stroke-width: 2;
}

.ah-mob-ft p {
  margin: 0;
  color: rgba(255, 255, 255, .28);
  font-size: 12px;
}

body.ah-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 880px) {
  .ah-nav,
  .ah-actions,
  .ah-divider,
  .ah-spacer {
    display: none;
  }

  .ah-burger {
    display: flex;
  }

  .ah-inner {
    height: 60px;
    padding: 0 20px;
  }

  .ah-shell {
    top: 8px;
    padding: 0 12px;
  }
}

@media (max-width: 782px) {
  .admin-bar .ah-shell {
    top: 58px;
  }
}

@media (max-width: 420px) {
  .ah-mob-nav {
    padding-inline: 24px;
  }

  .ah-mob-link {
    padding: 15px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-card,
  .ah-overlay {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .ah-live-dot,
  .ah-mob-live-dot {
    animation: none;
  }

  .ah-mobile,
  .ah-overlay,
  .ah-burger-bar,
  .ah-mob-link,
  .ah-discord-btn,
  .ah-nav a {
    transition-duration: .01ms;
  }
}
