/* Shared site shell: header + footer (used by all main site pages) */

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(11,11,18,0.78), rgba(11,11,18,0.30));
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.apsEnvBanner{
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.10), rgba(255, 122, 24, 0.12));
}

.apsEnvBanner .container{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 0 8px;
}

.apsEnvBanner__text{
  font-weight: 900;
  letter-spacing: 0.35px;
  font-size: 12px;
  color: rgba(255,255,255,0.86);
  text-transform: none;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo{
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.brand-title{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.7px;
  font-size: 14px;
  color: rgba(255,255,255,0.90);
  text-shadow:
    0 14px 40px rgba(0,0,0,0.55),
    0 0 16px rgba(0, 200, 255, 0.16);
}

.nav{
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Header account (Alpha-Core-RGS-Mini) */
.aps-auth{
  display: flex;
  align-items: center;
  gap: 10px;
}

.aps-auth__out,
.aps-auth__in{
  display: flex;
  align-items: center;
  gap: 10px;
}

.apsAuthBtn{
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.90);
  font-weight: 900;
  letter-spacing: 0.25px;
  font-size: 12.5px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform 160ms ease, opacity 160ms ease, border-color 160ms ease, background 160ms ease;
}

.apsAuthBtn:disabled,
.apsAuthBtn[aria-disabled="true"],
.apsAuthBtn.is-disabled{
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.apsAuthBtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(0, 200, 255, 0.28);
}

.apsAuthBtn:disabled:hover,
.apsAuthBtn[aria-disabled="true"]:hover,
.apsAuthBtn.is-disabled:hover{
  transform: none;
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.14);
}

/* Global spinner + busy overlay (used by auth, dashboard, session launch) */
.apsSpinner{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.16);
  border-top-color: rgba(0, 200, 255, 0.70);
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.12);
  animation: apsSpin 780ms linear infinite;
}

@keyframes apsSpin{ to{ transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce){
  .apsSpinner{ animation: none; }
}

.apsBusyOverlay{
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.apsBusyOverlay.is-visible{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.apsBusyOverlay__panel{
  max-width: 520px;
  width: min(520px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(11,11,18,0.86);
  box-shadow:
    0 18px 58px rgba(0,0,0,0.68),
    0 0 28px rgba(0, 200, 255, 0.10);
  padding: 16px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.apsBusyOverlay__text{
  font-weight: 900;
  letter-spacing: 0.25px;
  color: rgba(255,255,255,0.86);
}

@media (prefers-reduced-motion: reduce){
  .apsBusyOverlay{ transition: none; }
}

.apsAuthBtn:focus-visible{
  outline: 2px solid rgba(255, 216, 74, 0.7);
  outline-offset: 3px;
}

.apsAuthBtn--primary{
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.18), rgba(255, 122, 24, 0.20));
  border-color: rgba(0, 200, 255, 0.30);
}

.apsAuthBtn--wide{
  width: 100%;
}

.apsAuthBtn.is-loading{
  opacity: 0.78;
}

.apsAuthBtn.is-loading::before{
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.16);
  border-top-color: rgba(0, 200, 255, 0.70);
  margin-right: 10px;
  animation: apsSpin 780ms linear infinite;
}

.apsAuthStatus{
  margin: 10px 0 0;
  color: rgba(255,255,255,0.74);
  font-weight: 800;
  line-height: 1.5;
}

.apsWalletPill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.42),
    0 0 18px rgba(255, 216, 74, 0.10);
}

.apsWalletPill__icon{
  filter: drop-shadow(0 0 10px rgba(255, 216, 74, 0.18));
}

.apsWalletPill__value{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.35px;
  color: rgba(255,255,255,0.92);
}

.apsWalletPill--wide{
  width: 100%;
  justify-content: center;
}

.aps-auth--mobile{
  display: grid;
  gap: 10px;
  padding: 12px 4px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Auth modal */
.apsAuthModal{
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: auto;
}

.apsAuthModal[hidden]{
  display: none !important;
}

.apsAuthModal:not([hidden]) .apsAuthModal__backdrop{
  animation: apsFadeIn 160ms ease-out;
}

.apsAuthModal:not([hidden]) .apsAuthModal__panel{
  animation: apsPopIn 180ms ease-out;
}

@keyframes apsFadeIn{ from{ opacity: 0; } to{ opacity: 1; } }
@keyframes apsPopIn{ from{ opacity: 0; transform: translateY(10px) scale(0.985); } to{ opacity: 1; transform: translateY(0) scale(1); } }

@media (prefers-reduced-motion: reduce){
  .apsAuthModal:not([hidden]) .apsAuthModal__backdrop,
  .apsAuthModal:not([hidden]) .apsAuthModal__panel{ animation: none; }
}

.apsAuthModal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(18px);
}

.apsAuthModal__panel{
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100dvh - 44px);
  max-height: calc(100vh - 44px);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  box-shadow:
    0 30px 120px rgba(0,0,0,0.70),
    0 0 40px rgba(0, 200, 255, 0.12);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
}

.apsAuthModal__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(11,11,18,0.92), rgba(11,11,18,0.78));
}

.apsAuthModal__title{
  margin: 0;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 16px;
}

.apsAuthModal__close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.90);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.apsAuthModal__close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(0, 200, 255, 0.26);
}

.apsAuthModal__close:focus-visible{
  outline: 2px solid rgba(0, 200, 255, 0.55);
  outline-offset: 3px;
}

.apsAuthForm{
  display: grid;
  gap: 10px;
  padding: 12px 0 0;
}

.apsAuthField{
  display: grid;
  gap: 6px;
}

.apsAuthField__label{
  font-weight: 900;
  letter-spacing: 0.25px;
  color: rgba(255,255,255,0.86);
  font-size: 12.5px;
}

.apsAuthField__control{
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.24);
  color: rgba(255,255,255,0.92);
  padding: 0 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  outline: none;
}

.apsAuthField__control:focus{
  border-color: rgba(0, 200, 255, 0.50);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.18);
}

.apsAuthError{
  margin: 2px 0 0;
  color: rgba(255, 216, 74, 0.95);
  font-weight: 900;
  line-height: 1.4;
}

.apsAuthSwitch{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 10px;
}

.apsAuthSwitch__hint{
  color: rgba(255,255,255,0.72);
  font-weight: 800;
  font-size: 12.5px;
}

.apsAuthSwitch__btn{
  appearance: none;
  border: 0;
  background: none;
  color: rgba(0, 200, 255, 0.92);
  font-weight: 900;
  letter-spacing: 0.25px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 12px;
}

.apsAuthSwitch__btn:hover{
  background: rgba(255,255,255,0.04);
}

/* Never allow author styles to override the `hidden` attribute */
[hidden]{
  display: none !important;
}

/* Shared scroll lock helper (used by age-gate / auth modal) */
body.is-locked{
  overflow: hidden;
}

.aps-nav-check{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.nav a{
  text-decoration: none;
  color: rgba(255,255,255,0.82);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav a:hover{
  background: rgba(255,255,255,0.05);
  border-color: rgba(0, 200, 255, 0.28);
  transform: translateY(-1px);
}

.nav a[aria-current="page"]{
  background: rgba(255,255,255,0.05);
  border-color: rgba(255, 216, 74, 0.20);
}

.nav a:focus-visible{
  outline: 2px solid rgba(0, 200, 255, 0.55);
  outline-offset: 3px;
}

.nav-toggle{
  display: none;
  appearance: none;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.90);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-toggle-icon{
  display: block;
}

.nav-toggle:hover{
  background: rgba(255,255,255,0.05);
  border-color: rgba(0, 200, 255, 0.28);
  transform: translateY(-1px);
}

.nav-toggle:focus-visible{
  outline: 2px solid rgba(0, 200, 255, 0.55);
  outline-offset: 3px;
}

.mobile-drawer{
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
}

.mobile-drawer-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.48);
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: 0;
  cursor: pointer;
}

.mobile-drawer-panel{
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(340px, 86vw);
  background: rgba(11,11,18,0.86);
  backdrop-filter: blur(16px);
  border-left: 1px solid rgba(255,255,255,0.10);
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
  transform: translateX(100%);
  transition: transform 220ms ease;
  z-index: 1;
  display: grid;
  align-content: start;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  pointer-events: auto;
  color: rgba(255,255,255,0.92);
}

.mobile-drawer-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-drawer-title{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 13px;
  color: rgba(255,255,255,0.88);
}

.mobile-drawer-close{
  appearance: none;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.mobile-drawer-close:hover{
  background: rgba(255,255,255,0.05);
  border-color: rgba(0, 200, 255, 0.26);
  transform: translateY(-1px);
}

.mobile-drawer-close:focus-visible{
  outline: 2px solid rgba(0, 200, 255, 0.55);
  outline-offset: 3px;
}

.mobile-nav{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 12px;
  position: relative;
  z-index: 2;
}

.mobile-nav a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.mobile-nav a:hover{
  background: rgba(255,255,255,0.04);
  border-color: rgba(0, 200, 255, 0.20);
  transform: translateY(-1px);
}

.mobile-nav a:focus-visible{
  outline: 2px solid rgba(0, 200, 255, 0.55);
  outline-offset: 3px;
}

.aps-nav-check:checked ~ .mobile-drawer{
  opacity: 1;
  pointer-events: auto;
}

.aps-nav-check:checked ~ .mobile-drawer .mobile-drawer-backdrop{
  opacity: 1;
}

.aps-nav-check:checked ~ .mobile-drawer .mobile-drawer-panel{
  transform: translateX(0);
}

html.aps-menu-open{
  overflow: hidden;
}

/* Sticky footer helper (opt-in) */
.apsStickyFooter{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.apsStickyFooter > main{
  flex: 1 0 auto;
}

.apsStickyFooter > [data-aps-footer]{
  margin-top: auto;
}

/* Footer */
.footer{
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
}

.footer-inner{
  padding: 26px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.footer-brand{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.footer-logo{
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  margin-bottom: 10px;
}

.footer-brandTitle{
  font-size: 14px;
  line-height: 1.2;
}

.footer-brandSub{
  margin-top: 6px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.72);
}

.footer-contact{
  display: inline-flex;
  margin-top: 10px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.15px;
  color: rgba(255,255,255,0.76);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}

.footer-contact:hover{
  border-color: rgba(0, 200, 255, 0.22);
  background: rgba(255,255,255,0.05);
}

.footer-nav{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-nav a{
  text-decoration: none;
  color: rgba(255,255,255,0.80);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.footer-nav a:hover{
  border-color: rgba(255, 122, 24, 0.26);
  background: rgba(255,255,255,0.04);
}

.footer-meta{
  grid-column: 1 / -1;
  color: rgba(255,255,255,0.60);
  font-size: 12.5px;
  line-height: 1.5;
}

.footer-sep{
  margin: 0 8px;
}

.footer-disclaimer{
  color: rgba(255,255,255,0.60);
}

.footer-legal{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.footer-legal a,
.footer-linkBtn{
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  font: inherit;
}

.footer-legal a:hover,
.footer-linkBtn:hover{
  border-color: rgba(255, 122, 24, 0.26);
  background: rgba(255,255,255,0.04);
}

.footer-legal a:focus-visible,
.footer-linkBtn:focus-visible{
  outline: 2px solid rgba(255, 216, 74, 0.7);
  outline-offset: 3px;
}

/* Auth modal privacy note */
.apsAuthPrivacy{
  margin: 10px 0 0;
  color: rgba(255,255,255,0.70);
  font-size: 12.5px;
  line-height: 1.55;
}

.apsAuthPrivacy a{
  color: rgba(0, 200, 255, 0.92);
  text-decoration: none;
  font-weight: 900;
}

.apsAuthPrivacy a:hover{
  text-decoration: underline;
}

/* Policy / legal pages */
.apsPolicy{
  padding: 22px;
}

.apsPolicy h1,
.apsPolicy h2,
.apsPolicy h3{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.apsPolicy h2{
  margin-top: 18px;
  font-size: 16px;
}

.apsPolicy p,
.apsPolicy li{
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
}

.apsPolicy ul{
  padding-left: 18px;
}

.apsPolicyNote{
  margin: 14px 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.76);
  font-size: 12.5px;
  line-height: 1.6;
}

.apsPolicyCta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0 16px;
}

.apsPolicyDisclaimer{
  margin-top: 18px;
  color: rgba(255,255,255,0.62);
  font-size: 12.5px;
  line-height: 1.6;
}

/* Cookie consent (banner + preferences) */
.apsCookieBanner{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
}

.apsCookieBanner[hidden]{
  display: none !important;
}

.apsCookiePanel{
  width: min(1120px, calc(100% - 12px));
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  box-shadow:
    0 26px 100px rgba(0,0,0,0.70),
    0 0 32px rgba(0, 200, 255, 0.10);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.apsCookiePanel__inner{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.apsCookieTitle{
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 13px;
  margin: 0 0 6px;
}

.apsCookieText{
  margin: 0;
  color: rgba(255,255,255,0.74);
  font-size: 12.5px;
  line-height: 1.55;
}

.apsCookieText a,
.apsLinkBtn{
  color: rgba(0, 200, 255, 0.92);
  text-decoration: none;
  font-weight: 900;
}

.apsCookieText a:hover,
.apsLinkBtn:hover{
  text-decoration: underline;
}

.apsLinkBtn{
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.apsCookieActions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.apsCookieBtn{
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.90);
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 12.5px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.apsCookieBtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(0, 200, 255, 0.22);
}

.apsCookieBtn:focus-visible{
  outline: 2px solid rgba(255, 216, 74, 0.7);
  outline-offset: 3px;
}

.apsCookieBtn--primary{
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.18), rgba(255, 122, 24, 0.20));
  border-color: rgba(0, 200, 255, 0.30);
}

.apsCookieModal{
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: auto;
}

.apsCookieModal[hidden]{
  display: none !important;
}

.apsCookieModal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(18px);
}

.apsCookieModal__panel{
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: calc(100dvh - 44px);
  max-height: calc(100vh - 44px);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  box-shadow:
    0 30px 120px rgba(0,0,0,0.70),
    0 0 40px rgba(0, 200, 255, 0.12);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
}
.apsCookieModal:not([hidden]) .apsCookieModal__backdrop{
  animation: apsFadeIn 160ms ease-out;
}
.apsCookieModal:not([hidden]) .apsCookieModal__panel{
  animation: apsPopIn 180ms ease-out;
}

.apsCookieModal__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(11,11,18,0.92), rgba(11,11,18,0.78));
}

.apsCookieModal__title{
  margin: 0;
  font-family: Orbitron, Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 16px;
}

.apsCookieModal__close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.90);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.apsCookieModal__close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(0, 200, 255, 0.26);
}

.apsCookieModal__close:focus-visible{
  outline: 2px solid rgba(0, 200, 255, 0.55);
  outline-offset: 3px;
}

/* Prevent header overflow on very narrow screens */
.header-inner,
.brand,
.aps-auth{
  min-width: 0;
}

@media (max-width: 420px){
  .brand-title{
    max-width: 32vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 360px){
  .brand-title{ display: none; }
}

.apsCookiePrefs{
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.apsCookiePref{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  border-radius: 16px;
  padding: 12px;
}

.apsCookiePref__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.apsCookiePref__name{
  font-weight: 900;
  letter-spacing: 0.2px;
}

.apsCookiePref__desc{
  margin: 6px 0 0;
  color: rgba(255,255,255,0.72);
  font-size: 12.5px;
  line-height: 1.55;
}

.apsCookieToggle{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.apsCookieToggle input{
  width: 18px;
  height: 18px;
}

.apsCookieModal__actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
}

/* Responsive shell rules */
@media (max-width: 720px){
  .nav-desktop{ display: none; }
  .nav-toggle{ display: inline-flex; align-items: center; justify-content: center; }
}

@media (min-width: 721px){
  .mobile-drawer{ display: none; }
}

@media (max-width: 620px){
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-nav{ justify-content: flex-start; }
  .footer-legal{ justify-content: flex-start; }
  .apsCookiePanel__inner{ grid-template-columns: 1fr; }
  .apsCookieActions{ justify-content: flex-start; }
}
