/* ============================================================
   PREMIUM HEADER + FOOTER (px-* namespace)
   Refined editorial style · single nav bar · magazine footer
   Loaded on every page, separate from glass/pro CSS.
   ============================================================ */

:root {
  --px-bg:        #07091a;
  --px-bg-2:      #0f1228;
  --px-bg-3:      #181c3a;
  --px-line:      rgba(255, 255, 255, 0.08);
  --px-line-2:    rgba(255, 255, 255, 0.14);
  --px-ink:       #ffffff;
  --px-ink-2:     #b6bdd6;
  --px-ink-3:     #757b95;
  --px-amber:     #ff8a00;
  --px-amber-2:   #ff5a00;
  --px-amber-glow:rgba(255,138,0,0.4);
  --px-green:     #22c55e;
  --px-grad-amber:linear-gradient(135deg,#ff8a00 0%,#ff5a00 100%);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
}

/* ----------- HIDE old chrome (so old + new don't overlap) ----------- */
.glass-topbar,
.glass-header,
.glass-ticker,
.glass-newsletter,
.glass-footer,
.glass-totop,
.notout-footer.bottom-footer { display: none !important; }
.glass-mobile-panel { display: none !important; }

/* ============ TOP UTILITY ============ */
.px-top {
  background: var(--px-bg);
  border-bottom: 1px solid var(--px-line);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .76rem;
  color: var(--px-ink-3);
  position: relative;
  z-index: 1001;
}
.px-top__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: .45rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.px-top__live { display: inline-flex; align-items: center; gap: .5rem; color: var(--px-ink-2); font-weight: 500; }
.px-top__dot {
  width: 6px; height: 6px;
  background: var(--px-green); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: px-pulse 1.6s ease-out infinite;
}
@keyframes px-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%     { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
.px-top__right { display: inline-flex; align-items: center; gap: 1rem; }
.px-top__link {
  color: var(--px-ink-3);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .35rem;
  transition: color .18s ease;
}
.px-top__link:hover { color: var(--px-amber); }
.px-top__link i { font-size: .85rem; opacity: .8; }
.px-top__sep { width: 1px; height: 12px; background: var(--px-line-2); display: inline-block; }

/* ============ MAIN HEADER ============ */
.px-header {
  position: sticky; top: 0;
  z-index: 1000;
  background: rgba(7, 9, 26, 0.85);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--px-line);
  font-family: 'Inter', system-ui, sans-serif;
  transition: padding .25s ease, background .25s ease;
}
.px-header.is-scrolled {
  background: rgba(7, 9, 26, 0.96);
  border-bottom-color: var(--px-line-2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.px-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.px-header.is-scrolled .px-header__inner { padding: .65rem 1.5rem; }

/* Brand / Logo */
.px-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
  margin: 0; padding: 0;
}
.px-brand .custom-logo-link,
.px-brand a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  margin: 0; padding: 0;
  transition: opacity .2s;
}
.px-brand .custom-logo-link:hover,
.px-brand a:hover { opacity: .85; }
.px-brand img,
.px-brand .custom-logo {
  display: block !important;
  max-height: 42px !important;
  height: auto !important;
  width: auto !important;
  max-width: none !important;
}
.px-brand__text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.3rem;
  background: var(--px-grad-amber);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Nav — clean horizontal, no pill, underline-on-hover */
.px-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.px-nav__menu {
  display: flex;
  gap: .25rem;
  list-style: none;
  margin: 0; padding: 0;
}
.px-nav__menu li { position: relative; }
.px-nav__menu a {
  display: inline-block;
  padding: .65rem .9rem;
  color: var(--px-ink-2) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .15px;
  text-decoration: none !important;
  position: relative;
  transition: color .18s ease;
}
.px-nav__menu a::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .25rem;
  height: 2px;
  background: var(--px-amber);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1);
  border-radius: 1px;
}
.px-nav__menu a:hover,
.px-nav__menu .current-menu-item > a {
  color: var(--px-ink) !important;
}
.px-nav__menu a:hover::after,
.px-nav__menu .current-menu-item > a::after {
  transform: scaleX(1);
}

/* Actions / CTAs */
.px-actions {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}
.px-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.05rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .15px;
  text-decoration: none !important;
  transition: all .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.px-btn--ghost {
  color: var(--px-ink-2) !important;
  background: transparent;
  border-color: var(--px-line-2);
}
.px-btn--ghost:hover {
  color: var(--px-ink) !important;
  border-color: var(--px-amber);
  background: rgba(255, 138, 0, 0.06);
}
.px-btn--primary {
  color: #fff !important;
  background: var(--px-grad-amber);
  box-shadow: 0 6px 18px var(--px-amber-glow);
}
.px-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px var(--px-amber-glow);
  filter: brightness(1.06);
}
.px-btn--lg { padding: .85rem 1.6rem; font-size: .95rem; border-radius: 10px; }

/* Burger */
.px-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--px-line-2);
  border-radius: 8px;
  padding: .45rem .55rem;
  cursor: pointer;
}
.px-burger span {
  display: block; width: 18px; height: 2px;
  background: var(--px-ink); margin: 4px 0; border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.px-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.px-burger.is-open span:nth-child(2) { opacity: 0; }
.px-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile panel */
.px-mobile {
  background: var(--px-bg);
  border-top: 1px solid var(--px-line);
  padding: 1rem 1.5rem;
}
.px-mobile__menu {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid; gap: .25rem;
}
.px-mobile__menu a {
  display: block;
  padding: .85rem 1rem;
  border-radius: 10px;
  color: var(--px-ink) !important;
  font-weight: 500;
  text-decoration: none !important;
  border: 1px solid var(--px-line);
  background: var(--px-bg-2);
}
.px-mobile__menu a:hover {
  background: rgba(255,138,0,0.08);
  border-color: var(--px-amber);
}
.px-mobile__cta { display: flex; gap: .5rem; }
.px-mobile__cta > * { flex: 1; justify-content: center; }

@media (max-width: 1024px) {
  .px-nav, .px-actions { display: none; }
  .px-burger { display: inline-block; margin-left: auto; }
  .px-header__inner { padding: .85rem 1.25rem; }
}
@media (min-width: 1025px) {
  .px-mobile { display: none !important; }
}
@media (max-width: 720px) {
  .px-brand img, .px-brand .custom-logo { max-height: 34px !important; }
  .px-top__inner { padding: .35rem 1rem; gap: .5rem; }
  .px-top__right { gap: .65rem; }
}

/* ============ FOOTER CTA STRIP ============ */
.px-foot-cta {
  background: linear-gradient(180deg, transparent, rgba(255,138,0,0.04));
  border-top: 1px solid var(--px-line);
  padding: 3rem 1.5rem;
  margin-top: 4rem;
  font-family: 'Inter', sans-serif;
}
.px-foot-cta__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 720px) {
  .px-foot-cta { padding: 2rem 1rem; text-align: center; }
  .px-foot-cta__inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
    justify-items: center;
  }
  .px-foot-cta__copy { text-align: center; }
  .px-foot-cta__copy small { display: block; text-align: center; }
  .px-foot-cta__copy h3 { text-align: center; }
  .px-foot-cta__action { display: flex; justify-content: center; width: 100%; }
  .px-foot-cta__action .px-btn { width: 100%; max-width: 320px; justify-content: center; }
}
.px-foot-cta__copy small {
  color: var(--px-amber);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: .72rem;
  text-transform: uppercase;
}
.px-foot-cta__copy h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--px-ink);
  letter-spacing: -0.02em;
  margin: .35rem 0 0;
  line-height: 1.2;
}

/* ============ MAIN FOOTER ============ */
.px-footer {
  background: var(--px-bg);
  border-top: 1px solid var(--px-line);
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--px-ink-2);
  position: relative;
}
.px-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 400px at 80% 0%, rgba(255,138,0,0.04), transparent 60%);
}

.px-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  position: relative;
}
@media (max-width: 980px) {
  .px-footer__inner { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
  .px-footer__brand-col { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .px-footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Brand column */
.px-footer__brand-col .px-brand img,
.px-footer__brand-col .px-brand .custom-logo { max-height: 34px !important; }
.px-footer__tagline {
  margin: 1rem 0 1.5rem;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--px-ink-2);
  max-width: 360px;
}
.px-newsletter label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--px-amber);
  margin-bottom: .5rem;
  font-family: 'Space Grotesk', sans-serif;
}
.px-newsletter form { display: flex; gap: .4rem; max-width: 360px; }
.px-newsletter input {
  flex: 1; min-width: 0;
  padding: .55rem .75rem;
  border-radius: 8px;
  background: var(--px-bg-2);
  border: 1px solid var(--px-line);
  color: var(--px-ink);
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  transition: border-color .2s;
}
.px-newsletter input::placeholder { color: var(--px-ink-3); }
.px-newsletter input:focus {
  outline: none;
  border-color: var(--px-amber);
  background: var(--px-bg-3);
}

/* Link columns — <details> elements (act as columns on desktop, accordions on mobile) */
.px-footer__col {
  /* Reset details default */
  display: block;
}
.px-footer__col > summary {
  list-style: none;
  cursor: default;
  display: block;
  padding: 0;
  margin: 0 0 1rem;
}
.px-footer__col > summary::-webkit-details-marker { display: none; }
.px-footer__col > summary::marker { content: ""; }
.px-footer__caret { display: none; }

.px-footer__col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: 1.5px;
  color: var(--px-ink);
  margin: 0;
  text-transform: uppercase;
}
.px-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.px-footer__col a {
  color: var(--px-ink-2);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 400;
  transition: color .18s, transform .18s;
  display: inline-block;
}
.px-footer__col a:hover {
  color: var(--px-amber);
  transform: translateX(3px);
}

/* ────── MOBILE — accordion behaviour ────── */
@media (max-width: 720px) {
  .px-footer__inner {
    padding: 2rem 1rem 1.5rem;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .px-footer__brand-col {
    text-align: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--px-line);
  }
  .px-footer__brand-col .px-brand { justify-content: center; }
  .px-footer__brand-col .px-footer__tagline { margin-left: auto; margin-right: auto; max-width: 320px; }
  .px-footer__brand-col .px-social { justify-content: center; }

  /* Reset open state — collapse by default on mobile */
  .px-footer__col[open] { /* default behaviour */ }
  .px-footer__col {
    border-bottom: 1px solid var(--px-line);
    padding: 0;
  }
  .px-footer__col > summary {
    cursor: pointer;
    padding: 1rem .25rem;
    margin: 0;
    display: flex; align-items: center; justify-content: center;
    gap: .65rem;
    text-align: center;
    transition: color .2s;
    position: relative;
  }
  .px-footer__col > summary .px-footer__caret { position: absolute; right: .25rem; }
  .px-footer__col > summary:hover h4 { color: var(--px-amber); }
  .px-footer__col h4 {
    font-size: .82rem;
    color: var(--px-ink);
    transition: color .2s;
  }
  .px-footer__caret {
    display: inline-block;
    width: 24px; height: 24px;
    border-radius: 6px;
    background: var(--px-bg-2);
    border: 1px solid var(--px-line);
    position: relative;
    transition: transform .25s, background .2s, border-color .2s;
    flex-shrink: 0;
  }
  .px-footer__caret::before, .px-footer__caret::after {
    content: ""; position: absolute;
    background: var(--px-amber);
    transition: transform .25s, opacity .25s;
    top: 50%; left: 50%;
  }
  .px-footer__caret::before { width: 10px; height: 2px; transform: translate(-50%, -50%); }
  .px-footer__caret::after  { width: 2px; height: 10px; transform: translate(-50%, -50%); }
  .px-footer__col[open] .px-footer__caret { background: rgba(255,138,0,0.1); border-color: rgba(255,138,0,0.4); }
  .px-footer__col[open] .px-footer__caret::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
  .px-footer__col[open] .px-footer__caret::before { transform: translate(-50%, -50%) rotate(180deg); }
  .px-footer__col[open] h4 { color: var(--px-amber); }

  .px-footer__col ul {
    padding: 0 .25rem 1rem;
    gap: .65rem;
    text-align: center;
    animation: pxfoot-open .25s ease;
  }
  @keyframes pxfoot-open {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .px-footer__col li { text-align: center; }
  .px-footer__col a {
    font-size: .92rem;
    padding: .35rem .25rem;
    display: inline-block;
  }
  .px-footer__col a:hover { transform: none; }

  /* Payment band tighter & centered */
  .px-footer__band-inner { padding: 1rem 1rem; text-align: center; }
  .px-footer__band-group { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
  .px-footer__band-label { text-align: center; display: block; }
  .px-pays, .px-trust { justify-content: center; }

  /* Footer signature — fully centered on mobile */
  .px-footer__sig {
    text-align: center;
  }
  .px-footer__sig-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .5rem;
    padding: 1rem 1rem;
  }
  .px-footer__sig small,
  .px-footer__sig-inner small {
    text-align: center !important;
    width: 100%;
    display: block;
  }

  /* Footer brand block — fully centered */
  .px-footer__brand-col { text-align: center; }
  .px-footer__brand-col p,
  .px-footer__brand-col .px-social,
  .px-footer__brand-col .px-brand { text-align: center; justify-content: center; margin-left: auto; margin-right: auto; }
}

/* Band — payment methods + license */
.px-footer__band {
  border-top: 1px solid var(--px-line);
  border-bottom: 1px solid var(--px-line);
  background: rgba(7, 9, 26, 0.6);
  position: relative;
}
.px-footer__band-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 720px) { .px-footer__band-inner { grid-template-columns: 1fr; gap: 1rem; } }
.px-footer__band-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .65rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--px-ink-3);
  text-transform: uppercase;
  margin-bottom: .55rem;
}
.px-pays, .px-trust { display: flex; flex-wrap: wrap; gap: .4rem; }
/* All pills uniform size — no per-brand tweaks */
.px-pays {
  gap: .65rem;
  align-items: center;
  flex-wrap: wrap;
}
.px-pays .px-pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;                  /* uniform width */
  height: 52px;                  /* uniform height */
  padding: 10px 16px;
  border-radius: var(--r-md, 12px);
  background: #ffffff;
  border: none;
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform .2s, box-shadow .2s;
}
.px-pays .px-pay-logo img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-height: 26px;              /* uniform logo height */
  max-width: 100%;
  object-fit: contain;
  vertical-align: middle;
}
.px-pays .px-pay-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);
}

.px-trust span {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .7rem; border-radius: 6px;
  background: var(--px-bg-2); border: 1px solid var(--px-line);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: .72rem; letter-spacing: .8px;
  color: var(--px-ink-2);
  transition: all .2s;
}
.px-trust span i { color: var(--px-green); font-size: .82rem; }

/* Bottom signature */
.px-footer__sig {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
}
.px-footer__sig-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.px-footer__sig small {
  font-size: .78rem;
  color: var(--px-ink-3);
}
.px-footer__sig small:last-child { text-align: right; }
.px-social {
  display: flex;
  gap: .4rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.px-social a {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--px-bg-2);
  border: 1px solid var(--px-line);
  color: var(--px-ink-2);
  text-decoration: none;
  font-size: .82rem;
  transition: all .2s;
}
.px-social a:hover {
  background: var(--px-grad-amber);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px var(--px-amber-glow);
}
@media (max-width: 720px) {
  .px-footer__sig-inner { grid-template-columns: 1fr; text-align: center; gap: .65rem; }
  .px-footer__sig small:last-child { text-align: center; }
}

/* Back to top */
.px-totop {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 999;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--px-grad-amber);
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  box-shadow: 0 8px 24px var(--px-amber-glow);
  transition: transform .2s;
}
.px-totop:hover { transform: translateY(-3px) scale(1.05); color: #fff; }
