/* 1 Purple Nation — shared mobile navigation styles (pairs with /js/pn-nav.js) */

:root {
  --pn-purple: #8B5CF6;
  --pn-purple-deep: #5B21B6;
  --pn-gold: #F5C518;
  --pn-ink: #0C0914;
  --pn-line: rgba(255,255,255,.08);
  --pn-ease: cubic-bezier(.22,.9,.3,1);
}

/* ── Header hamburger (restyled, works with existing .menu-btn markup) ── */
header .menu-btn {
  width: 46px; height: 46px; padding: 0;
  border-radius: 14px;
  background: #F4F4F5; border: 1px solid #E4E4E7;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  transition: background .2s, transform .15s;
}
header .menu-btn:active { transform: scale(.94); }
header .menu-btn span { display: block; height: 2px; margin: 0; border-radius: 2px; background: #18181B; transition: width .25s var(--pn-ease); }
header .menu-btn span:nth-child(1) { width: 20px; }
header .menu-btn span:nth-child(2) { width: 20px; }
header .menu-btn span:nth-child(3) { width: 12px; align-self: flex-end; margin-right: 13px; }
header .menu-btn:hover span:nth-child(3) { width: 20px; margin-right: 13px; }
@media (max-width: 768px) { header .menu-btn { display: flex; } }

/* ── Backdrop ── */
.pn-backdrop {
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(6,4,12,.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.pn-menu-open .pn-backdrop { opacity: 1; pointer-events: auto; }
.pn-menu-open, .pn-menu-open body { overflow: hidden; }

/* ── Drawer ── */
.pn-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1002;
  width: min(380px, 90vw);
  display: flex; flex-direction: column;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(139,92,246,.28), transparent 70%),
    radial-gradient(300px 200px at 0% 100%, rgba(245,197,24,.08), transparent 70%),
    var(--pn-ink);
  border-left: 1px solid rgba(139,92,246,.22);
  box-shadow: -30px 0 80px rgba(0,0,0,.5);
  color: #fff; font-family: 'Manrope', -apple-system, sans-serif;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(104%);
  transition: transform .42s var(--pn-ease);
  visibility: hidden;
}
.pn-menu-open .pn-drawer { transform: translateX(0); visibility: visible; }

.pn-d-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.pn-d-logo { display: inline-flex; background: #fff; border-radius: 14px; padding: 6px 10px; }
.pn-d-logo img { height: 40px; display: block; border-radius: 8px; }
.pn-d-close {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--pn-line); color: #fff; cursor: pointer;
  transition: background .2s, transform .3s var(--pn-ease);
}
.pn-d-close:hover { background: rgba(255,255,255,.12); transform: rotate(90deg); }
.pn-d-close .pn-i { width: 20px; height: 20px; }

/* Shop card */
.pn-d-shop {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  min-height: 108px; padding: 16px;
  border-radius: 20px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 55%, #2E1065 100%);
  box-shadow: 0 18px 40px rgba(91,33,182,.4), inset 0 1px 0 rgba(255,255,255,.14);
  margin-bottom: 22px;
}
.pn-d-shop::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(46,16,101,.2), rgba(46,16,101,.85) 60%);
  pointer-events: none;
}
.pn-d-shop-img {
  position: absolute; inset: 0 auto 0 0; width: 55%;
  background: center / cover no-repeat;
  opacity: .9;
}
.pn-d-shop-txt { position: relative; z-index: 1; margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.pn-d-shop-txt small { font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--pn-gold); }
.pn-d-shop-txt strong { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.pn-d-shop-go {
  position: relative; z-index: 1; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--pn-gold); color: #000;
  transition: transform .3s var(--pn-ease);
}
.pn-d-shop:hover .pn-d-shop-go { transform: rotate(45deg); }
.pn-d-shop-go .pn-i { width: 18px; height: 18px; stroke-width: 2.4; }

/* Links */
.pn-d-label { font-size: 10.5px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: rgba(255,255,255,.4); margin: 0 4px 8px; }
.pn-d-links { display: flex; flex-direction: column; gap: 2px; }
.pn-d-link {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 10px; border-radius: 14px;
  color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 600; letter-spacing: -.005em;
  transition: background .2s, transform .2s;
  opacity: 0; transform: translateX(18px);
}
.pn-menu-open .pn-d-link {
  opacity: 1; transform: none;
  transition: opacity .4s ease calc(.08s + var(--i) * .035s), transform .45s var(--pn-ease) calc(.08s + var(--i) * .035s), background .2s;
}
.pn-d-link:hover, .pn-d-link:active { background: rgba(255,255,255,.05); }
.pn-d-ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.22);
  color: #C4B5FD;
}
.pn-d-ico .pn-i { width: 20px; height: 20px; }
.pn-d-txt { flex: 1; }
.pn-d-chev { width: 16px; height: 16px; color: rgba(255,255,255,.28); transition: transform .2s, color .2s; }
.pn-d-link:hover .pn-d-chev { transform: translateX(3px); color: rgba(255,255,255,.6); }
.pn-d-link.is-active { background: rgba(245,197,24,.08); }
.pn-d-link.is-active .pn-d-ico { background: var(--pn-gold); border-color: var(--pn-gold); color: #000; }
.pn-d-link.is-active .pn-d-txt { color: var(--pn-gold); }

/* Footer */
.pn-d-foot { margin-top: auto; padding-top: 22px; }
.pn-d-wa {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; border-radius: 14px;
  background: rgba(37,211,102,.1); border: 1px solid rgba(37,211,102,.35);
  color: #4ADE80; font-weight: 700; font-size: 14.5px; text-decoration: none;
  transition: background .2s;
}
.pn-d-wa:hover { background: rgba(37,211,102,.18); }
.pn-d-wa svg { width: 20px; height: 20px; }
.pn-d-social { display: flex; justify-content: center; gap: 10px; margin: 18px 0 12px; }
.pn-d-social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--pn-line);
  color: rgba(255,255,255,.7); transition: color .2s, background .2s, border-color .2s;
}
.pn-d-social a:hover { color: #fff; background: var(--pn-purple); border-color: var(--pn-purple); }
.pn-d-social svg { width: 17px; height: 17px; }
.pn-d-copy { text-align: center; font-size: 11px; color: rgba(255,255,255,.35); margin: 0; }

/* ── Floating tab bar (mobile only) ── */
.pn-tabbar { display: none; }
@media (max-width: 768px) {
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
  .pn-tabbar {
    position: fixed; z-index: 998;
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    height: 66px; padding: 0 6px;
    background: rgba(14,10,24,.86);
    backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
    font-family: 'Manrope', -apple-system, sans-serif;
    transition: transform .35s var(--pn-ease), opacity .35s;
  }
  .pn-tabbar.is-hidden { transform: translateY(calc(100% + 24px)); opacity: 0; }
  .pn-menu-open .pn-tabbar { transform: translateY(calc(100% + 24px)); opacity: 0; }
}
.pn-tab {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  height: 66px; padding: 0;
  background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,.55); text-decoration: none;
  font: inherit; -webkit-tap-highlight-color: transparent;
  transition: color .2s;
}
.pn-t-ico {
  position: relative; width: 44px; height: 30px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .2s;
}
.pn-t-ico .pn-i { width: 22px; height: 22px; }
.pn-t-lbl { font-size: 10.5px; font-weight: 600; letter-spacing: .2px; }
.pn-tab:active .pn-t-ico { transform: scale(.9); }
.pn-tab.is-active { color: #fff; }
.pn-tab.is-active .pn-t-ico { background: rgba(139,92,246,.22); color: var(--pn-gold); }

/* Center Shop button — raised gold disc */
.pn-tab-center .pn-t-ico {
  width: 56px; height: 56px; border-radius: 50%;
  margin-top: -30px;
  background: linear-gradient(145deg, #FBD24F, #F5C518 55%, #D4A20B);
  color: #111;
  box-shadow: 0 10px 24px rgba(245,197,24,.35), 0 0 0 5px rgba(14,10,24,.95);
}
.pn-tab-center .pn-t-ico .pn-i { width: 24px; height: 24px; stroke-width: 2.1; }
.pn-tab-center { color: rgba(255,255,255,.8); }
.pn-tab-center.is-active .pn-t-ico { background: linear-gradient(145deg, #FBD24F, #F5C518 55%, #D4A20B); color: #111; }

.pn-t-badge {
  position: absolute; top: -4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--pn-purple); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px rgba(14,10,24,.95);
}
.pn-t-badge[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .pn-drawer, .pn-d-link, .pn-tabbar, .pn-backdrop { transition: none !important; }
}

/* Focus: visible for keyboard, quiet for touch */
.pn-drawer :focus:not(:focus-visible) { outline: none; }
.pn-drawer :focus-visible, .pn-tab:focus-visible { outline: 2px solid var(--pn-gold); outline-offset: 2px; }

/* ── Header upgrade (injected by pn-nav.js) ── */
header.pn-header {
  position: sticky; top: 0;
  background: #fff;
  box-shadow: 0 8px 30px rgba(15,10,28,.14);
  border-bottom: 0;
}
header.pn-header::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #7C3AED, #A78BFA 30%, #F5C518 55%, #A78BFA 80%, #7C3AED);
}
header.pn-header .header-inner { gap: 14px; padding-top: 12px; padding-bottom: 12px; }
header.pn-header .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
header.pn-header .logo img { height: 64px; width: auto; border-radius: 10px; }
.pn-brandline { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.pn-brandline strong { font-family: 'Anton', Impact, sans-serif; font-weight: 400; font-size: 21px; letter-spacing: .02em; text-transform: uppercase; color: #1A1033; white-space: nowrap; }
.pn-brandline small { font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7C3AED; margin-top: 3px; white-space: nowrap; }
header.pn-header nav { margin-left: auto; }
.pn-hicons { display: flex; align-items: center; gap: 8px; }
.pn-hicon {
  position: relative; width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #1A1033; background: #F4F2FA; border: 1px solid #E7E2F3;
  transition: background .2s, color .2s;
}
.pn-hicon:hover { background: #EDE7FB; color: #7C3AED; }
.pn-hicon .pn-i { width: 22px; height: 22px; }
.pn-hicon .pn-t-badge { top: -5px; right: -5px; box-shadow: 0 0 0 2px #fff; }
@media (min-width: 769px) {
  .pn-hicon-account { display: none; } /* desktop nav already has Account */
}
@media (max-width: 1080px) and (min-width: 769px) { .pn-brandline small { display: none; } }
@media (max-width: 768px) {
  header.pn-header .header-inner { padding: 10px 14px; }
  header.pn-header .logo img { height: 58px; }
  .pn-brandline strong { font-size: 19px; }
  .pn-brandline small { font-size: 9.5px; letter-spacing: .1em; }
  .pn-hicons { margin-left: auto; gap: 6px; }
  .pn-hicon, header .menu-btn { width: 42px; height: 42px; border-radius: 12px; }
}
@media (max-width: 400px) {
  .pn-hicon-account { display: none; }
  .pn-brandline strong { font-size: 17px; }
}
@media (max-width: 340px) { .pn-brandline { display: none; } }

/* ═════════════ Smart header (fixed; compacts on scroll, hides going down, returns going up) ═════════════ */
header.pn-header {
  position: fixed !important; top: 0; left: 0; right: 0; z-index: 999;
  transition: transform .35s cubic-bezier(.22,.9,.3,1), box-shadow .3s, background .3s;
  will-change: transform;
}
body.pn-hdr-fixed { padding-top: var(--pn-hdr, 88px); }
header.pn-header.is-hidden { transform: translateY(calc(-100% - 6px)); box-shadow: none; }
header.pn-header .header-inner, header.pn-header .logo img, .pn-brandline small, .pn-hicon, header.pn-header .menu-btn {
  transition: padding .3s ease, height .3s ease, width .3s ease, opacity .25s ease, margin .3s ease;
}
header.pn-header.is-scrolled { background: rgba(255,255,255,.94); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 10px 30px rgba(15,10,28,.18); }
header.pn-header.is-scrolled .header-inner { padding-top: 7px; padding-bottom: 7px; }
header.pn-header.is-scrolled .logo img { height: 46px; }
header.pn-header.is-scrolled .pn-brandline small { opacity: 0; height: 0; margin: 0; overflow: hidden; }
@media (max-width: 768px) {
  header.pn-header.is-scrolled .logo img { height: 42px; }
  header.pn-header.is-scrolled .pn-hicon, header.pn-header.is-scrolled .menu-btn { width: 38px; height: 38px; }
}
.pn-menu-open header.pn-header, .pnq-lock header.pn-header { transform: none; }

/* ═════════════ Footer ═════════════ */
footer.pn-foot {
  position: relative; padding: 48px 20px calc(28px + env(safe-area-inset-bottom)); border-top: 0;
  background:
    radial-gradient(640px 300px at 12% 62%, rgba(124,58,237,.18), transparent 70%),
    linear-gradient(180deg, rgba(11,7,22,0) 0%, rgba(11,7,22,0) 110px, #0B0716 360px);
  color: rgba(255,255,255,.72); font-family: 'Manrope', -apple-system, sans-serif;
}
footer.pn-foot a { text-decoration: none; }
.pn-foot-cta {
  max-width: 1100px; margin: 0 auto 56px; position: relative; top: 0;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  padding: 28px 30px; border-radius: 26px;
  background: linear-gradient(120deg, #7C3AED 0%, #5B21B6 55%, #3B0F7A 100%);
  box-shadow: 0 24px 60px rgba(76,29,149,.45), inset 0 1px 0 rgba(255,255,255,.14);
  overflow: hidden;
}
.pn-foot-cta::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(245,197,24,.28), transparent 70%); pointer-events: none; }
.pn-foot-cta-ico { width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: #fff; color: #FF0033; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.pn-foot-cta-ico svg { width: 30px; height: 30px; }
.pn-foot-cta-txt h3 { font-family: 'Anton', Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: 28px; line-height: 1.05; color: #fff; margin: 0 0 6px; }
.pn-foot-cta-txt p { margin: 0; color: rgba(255,255,255,.8); font-size: 15px; }
.pn-foot-cta-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 24px; border-radius: 50px; background: #fff; color: #1A1033; font-weight: 800; font-size: 15px; white-space: nowrap; transition: transform .2s, background .2s; }
.pn-foot-cta-btn:hover { transform: translateY(-2px); background: #F5C518; }

.pn-foot-main { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(167,139,250,.14); }
.pn-foot-brand { display: flex; gap: 18px; align-items: flex-start; }
.pn-foot-logo {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 96px; height: 96px; padding: 10px; border-radius: 24px; background: #fff;
  box-shadow: 0 0 0 6px rgba(139,92,246,.18), 0 18px 40px rgba(0,0,0,.4);
}
.pn-foot-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; border-radius: 10px; }
.pn-foot-name { display: block; font-family: 'Anton', Impact, sans-serif; font-weight: 400; font-size: 24px; letter-spacing: .02em; text-transform: uppercase; color: #fff; margin: 4px 0 8px; }
.pn-foot-brand p { margin: 0; font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,.62); max-width: 320px; }
.pn-foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pn-foot-col { display: flex; flex-direction: column; gap: 11px; }
.pn-foot-col h4 { font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #F5C518; margin: 4px 0 4px; }
.pn-foot-col a { color: rgba(255,255,255,.72); font-size: 14.5px; font-weight: 600; transition: color .2s; }
.pn-foot-col a:hover { color: #fff; }

.pn-foot-strip { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 0; border-bottom: 1px solid rgba(167,139,250,.14); }
.pn-foot-social { display: flex; flex-wrap: wrap; gap: 10px; }
.pn-foot-social a { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); border: 1px solid rgba(167,139,250,.18); color: rgba(255,255,255,.8); transition: background .2s, color .2s, transform .2s; }
.pn-foot-social a:hover { background: #8B5CF6; color: #fff; transform: translateY(-2px); }
.pn-foot-social svg { width: 18px; height: 18px; }
.pn-foot-pay { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.pn-foot-pay li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 50px; background: rgba(255,255,255,.05); border: 1px solid rgba(167,139,250,.16); font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.78); }
.pn-foot-pay svg { color: #F5C518; }

.pn-foot-bottom { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; font-size: 13px; color: rgba(255,255,255,.5); }
.pn-foot-credit a { color: #F5C518; font-weight: 700; }
.pn-foot-credit a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
  .pn-foot-main { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  footer.pn-foot { padding: 32px 16px calc(24px + env(safe-area-inset-bottom)); }
  .pn-foot-cta { grid-template-columns: 1fr; text-align: left; gap: 16px; padding: 24px 22px; margin-bottom: 44px; border-radius: 22px; }
  .pn-foot-cta-txt h3 { font-size: 26px; }
  .pn-foot-cta-btn { justify-content: center; width: 100%; }
  .pn-foot-brand { flex-direction: column; align-items: center; text-align: center; }
  .pn-foot-brand p { margin: 0 auto; }
  .pn-foot-cols { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .pn-foot-col:last-child { grid-column: 1 / -1; }
  .pn-foot-strip { flex-direction: column; justify-content: center; }
  .pn-foot-social, .pn-foot-pay { justify-content: center; }
  .pn-foot-bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* Footer runs to the very bottom on phones; it reserves the floating tab bar's space itself */
@media (max-width: 768px) {
  html body.pn-has-foot { padding-bottom: 0 !important; }
  body.pn-has-foot footer.pn-foot { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
}
