/* ============================================================
   PSGChrome — shared header + footer styles (see chrome.js).
   Token-driven (var(--*)); both hosts provide the tokens (site:
   src/styles/tokens/*, WHMCS: psg-tokens.generated.css). All classes
   are `psg-`-prefixed to avoid collisions with WHMCS/Bootstrap.
   Mobile collapse breakpoint: 900px.
   ============================================================ */

.psg-icon { display: inline-block; vertical-align: middle; }

/* ---------- Header bar ---------- */
.psg-header-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 21, 29, 0.78); /* --ink-950 @ 78% (no alpha token) */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 32px;
}
.psg-header-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 58px;
}

/* Brand */
.psg-brand,
.psg-foot-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.psg-brand:hover,
.psg-foot-logo:hover {
  text-decoration: none;
}
.psg-brand-logo {
  display: block;
  width: auto;
  height: 43px;
  max-width: 76px;
  object-fit: contain;
}
.psg-foot-logo .psg-brand-logo {
  height: 49px;
  max-width: 86px;
}

/* Nav */
.psg-collapse {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 28px;
}
.psg-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-left: 18px;
}
.psg-nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 120ms;
}
.psg-nav-link:hover,
.psg-dropdown.psg-open > .psg-nav-link { color: var(--text-primary); }

/* Actions cluster (right) */
.psg-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.psg-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  padding: 7px 10px;
  cursor: pointer;
  line-height: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
.psg-action-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.psg-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.psg-account-btn { position: relative; }
.psg-notif-dot {
  position: absolute;
  top: 4px;
  right: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-500);
}

/* Cart button — a dropdown toggle occupying the actions slot the currency
   selector used to hold. Always shown (it hosts the currency selector). */
.psg-cart-btn { position: relative; text-decoration: none; }
.psg-cart-btn:hover { text-decoration: none; }
.psg-cart-label { display: none; } /* icon-only on desktop; shown when flattened on mobile */
.psg-cart-count {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  min-width: 16px;
  padding: 0 5px;
  text-align: center;
  background: var(--orange-500);
  color: var(--ink-950);
  border-radius: 999px;
}

/* Cart dropdown menu — a summary row at top, the currency selector below it. */
.psg-cart-menu { min-width: 230px; }
.psg-cart-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
}
.psg-cart-empty { color: var(--text-muted); }
.psg-cart-resume {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--orange-400);
  text-decoration: none;
}
.psg-cart-resume:hover { color: var(--orange-500); text-decoration: none; }

/* Nested currency disclosure inside the cart dropdown: a "current currency"
   button that expands the full list of currency options in place. */
.psg-cur-current { justify-content: flex-start; }
.psg-cur-current-symbol { color: var(--text-secondary); }
.psg-sub-chevron { margin-left: auto; display: inline-flex; transition: transform 120ms; }
.psg-subdropdown.psg-sub-open .psg-sub-chevron { transform: rotate(180deg); }
.psg-sub-menu { display: none; }
.psg-subdropdown.psg-sub-open .psg-sub-menu { display: block; }

/* CTA (Deploy) */
.psg-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-500);
  color: var(--ink-950);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: 14px;
  padding: 8px 14px;
  text-decoration: none;
  border: 1px solid var(--orange-500);
  transition: background 120ms;
}
.psg-cta:hover { background: var(--orange-400); border-color: var(--orange-400); color: var(--ink-950); }

/* ---------- Dropdowns ---------- */
.psg-dropdown { position: relative; }
.psg-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 200;
  padding: 4px 0;
}
.psg-dropdown-menu--right { left: auto; right: 0; }
/* The account menu carries the most text (name, company, credit balance,
   notification messages), so it gets more room than the other dropdowns. */
.psg-account .psg-dropdown-menu { min-width: 260px; }
.psg-dropdown.psg-open > .psg-dropdown-menu { display: block; }

/* Editorial game catalog: wide desktop panel and compact image-led mobile menu. */
.psg-nav-item--mega { position: static; }
.psg-mega-menu {
  top: calc(100% + var(--border-1));
  left: 50%;
  width: min(var(--content-max-width), calc(100vw - var(--space-8) - var(--space-8)));
  min-width: 0;
  transform: translateX(-50%);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.78fr);
  gap: var(--space-0);
  padding: var(--space-0);
  background: var(--surface-card);
  box-shadow: var(--shadow-lg), var(--edge-highlight);
}
.psg-dropdown.psg-open > .psg-mega-menu { display: grid; }
.psg-mega-column + .psg-mega-column { border-left: var(--border-1) solid var(--border-subtle); padding: var(--space-6); }
.psg-mega-heading,
.psg-mega-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--text-muted);
}
.psg-mega-heading { margin-bottom: var(--space-3); }
.psg-mega-column--lead { display: flex; flex-direction: column; min-height: 100%; padding: var(--space-0); position: relative; }
.psg-mega-column--lead > .psg-mega-heading {
  inset: var(--space-0) var(--space-0) auto;
  margin: var(--space-0);
  padding: var(--space-6) var(--space-6) var(--space-3);
  pointer-events: none;
  position: absolute;
  z-index: 3;
}
.psg-mega-leads {
  position: relative;
  display: flex;
  flex: 1;
  min-height: var(--space-0);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-900);
}
.psg-mega-lead {
  position: absolute;
  inset: var(--space-0);
  display: flex;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--ink-900);
  backface-visibility: hidden;
  transition: opacity var(--duration-slower) var(--ease-out), visibility 0s linear var(--duration-slower);
  will-change: opacity;
}
.psg-mega-lead--active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}
.psg-mega-lead::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--ink-950), rgba(22, 21, 29, 0.54) 52%, rgba(22, 21, 29, 0.04));
}
.psg-mega-lead:hover { color: var(--text-primary); text-decoration: none; }
.psg-mega-lead:focus-visible,
.psg-mega-list-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.psg-mega-lead-art { position: absolute; inset: 0; z-index: 0; display: block; background: var(--ink-900); }
.psg-mega-lead-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.psg-mega-lead-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 54%;
  margin-right: auto;
  gap: var(--space-2);
  padding: var(--space-6);
}
.psg-mega-lead-logo { width: auto; max-width: var(--space-32); max-height: var(--space-8); object-fit: contain; object-position: left center; }
.psg-mega-lead-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-bold); }
.psg-mega-lead-description { color: var(--text-primary); font-family: var(--font-body); font-size: var(--text-sm); line-height: 1.45; }
.psg-mega-lead-cta { display: inline-flex; align-items: center; gap: var(--space-1); margin-top: var(--space-2); color: var(--orange-400); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
@keyframes psg-mega-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.psg-mega-lead-controls {
  align-items: center;
  bottom: var(--space-4);
  display: flex;
  gap: var(--space-0);
  position: absolute;
  right: var(--space-4);
  z-index: 4;
}
.psg-mega-dot {
  align-items: center;
  background: none;
  border: 0;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  padding: var(--space-3) var(--space-1);
}
.psg-mega-dot-bar {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  display: block;
  height: var(--space-1);
  overflow: hidden;
  position: relative;
  transition: width var(--duration-slow) var(--ease-out);
  width: var(--space-2);
}
.psg-mega-dot--active .psg-mega-dot-bar { width: var(--space-6); }
.psg-mega-progress-fill {
  background: var(--orange-500);
  border-radius: 999px;
  display: none;
  inset: 0;
  position: absolute;
  transform-origin: left;
}
.psg-mega-dot--active .psg-mega-progress-fill {
  animation: psg-mega-progress 6000ms linear forwards;
  animation-delay: var(--psg-mega-progress-delay, 0ms);
  display: block;
}
.psg-mega-carousel--interaction-paused .psg-mega-progress-fill { animation-play-state: paused; }
.psg-mega-dot:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.psg-mega-list { display: grid; gap: var(--space-1); }
.psg-mega-list-link {
  display: block;
  padding: var(--space-2) 0;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.25;
  text-decoration: none;
}
.psg-mega-list-link:hover { color: var(--orange-400); text-decoration: none; }
.psg-mega-catalog-all {
  align-items: center;
  color: var(--orange-400);
  display: flex;
  gap: var(--space-1);
  white-space: nowrap;
}
.psg-mega-mobile-featured { display: none; }
.psg-mega-heading-mobile { display: none; }
.psg-mega-column:nth-child(2) .psg-mega-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); }
.psg-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  text-align: left;
}
.psg-dropdown-item:last-child { border-bottom: none; }
.psg-dropdown-item:hover { background: var(--surface-raised); color: var(--text-primary); text-decoration: none; }
/* Notification rows are wrapped text, not link-shaped actions — the host's
   global `a:hover` underline made them look broken across two lines. */
.psg-item-muted { color: var(--text-muted); }
.psg-item-muted:hover { text-decoration: none; }
.psg-ext { margin-left: auto; color: var(--text-muted); display: inline-flex; }
.psg-badge {
  margin-left: auto;
  background: var(--orange-500);
  color: var(--ink-950);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
}

/* Account menu section headings + identity */
.psg-menu-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 14px 4px;
}
/* The account half of the menu (identity, notifications, billing links, sign
   out) as one block: a slightly lighter surface than the menu itself, lifted
   with a subtle shadow cast UPWARD onto the control-panel links above it, so
   the two halves read as clearly separate. z-index so that shadow paints over
   them. The negative bottom margin swallows the menu's own 4px bottom padding —
   without it a strip of the darker menu background showed under the panel. */
.psg-menu-panel {
  position: relative;
  background: var(--surface-overlay);
  /* Inset at the top, so the shadow falls ONTO the billing panel — it reads as
     the control-panel links above casting down onto it, rather than the panel
     lifting off the menu. */
  box-shadow: inset 0 3px 6px -3px rgba(0, 0, 0, 0.55);
  margin-bottom: -4px;
}
.psg-menu-panel .psg-menu-heading { padding-top: 12px; }
/* The panel's own shading + inset shadow already mark the boundary, so the last
   control-panel row above it doesn't need its divider too — a line AND a shadow
   read as a double rule. */
.psg-dropdown-item:has(+ .psg-menu-panel) { border-bottom: none; }

.psg-menu-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 14px 11px;
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  border-bottom: 1px solid var(--border-subtle);
}
/* A legacy top-slot identity keeps its own separator above. */
.psg-dropdown-menu > .psg-menu-identity:first-child {
  padding-top: 11px;
  border-top: none;
}
.psg-menu-identity-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.psg-menu-identity-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.psg-menu-identity-company,
.psg-menu-identity-credit {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--weight-regular);
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.psg-menu-identity-credit {
  margin-top: 2px;
  color: var(--text-secondary);
}

/* Currency dropdown items */
.psg-cur-item.psg-active { background: var(--surface-raised); }
.psg-cur-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  width: 30px;
}

/* Burger (mobile only) */
.psg-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
.psg-footer {
  background: var(--ink-950);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 32px 40px;
}
.psg-footer-inner { max-width: var(--content-max-width); margin: 0 auto; }
.psg-foot-cols {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr 0.85fr 0.85fr;
  gap: 32px;
}
.psg-foot-logo { margin-bottom: 14px; }
.psg-foot-blurb {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.5;
  margin: 0;
}
.psg-foot-social { display: flex; gap: 14px; margin-top: 16px; }
.psg-foot-social a { color: var(--text-muted); }
.psg-foot-social a:hover { color: var(--orange-400); }
.psg-foot-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.psg-foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.psg-foot-links a { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.psg-foot-links a:hover { color: var(--orange-400); }
.psg-foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.psg-foot-legal { display: flex; align-items: center; gap: 16px; }
.psg-foot-legal a { color: var(--text-muted); text-decoration: none; }
.psg-foot-legal a:hover { color: var(--orange-400); }

/* Left of the bottom bar: the copyright with the site note stacked beneath it. */
.psg-foot-bottom-left { display: flex; flex-direction: column; gap: 6px; }

/* Currency selector + legal links, grouped on the RIGHT of the bottom bar. */
.psg-foot-legalwrap { display: flex; align-items: center; gap: 16px; }
.psg-foot-legalwrap .psg-currency .psg-action-btn { padding: 5px 8px; }
/* The footer sits at the page bottom and on its right edge, so open its currency
   menu UPWARD and align it to the button's right edge (overrides the default
   down/right menu) to keep it on-screen. */
.psg-foot-legalwrap .psg-currency .psg-dropdown-menu {
  left: auto;
  right: 0;
  top: auto;
  bottom: calc(100% + 6px);
}

/* ---------- Mobile (< 900px) ---------- */
@media (max-width: 899.98px) {
  .psg-burger { display: inline-flex; }
  .psg-collapse {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-950);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 32px 20px;
    /* Keep the panel inside the viewport and let IT scroll. Without this a menu
       taller than the screen simply ran off the bottom of a sticky header, so
       the only way to reach its end was to scroll the PAGE to the bottom first.
       58px is the header bar's min-height; dvh (where supported) tracks mobile
       browser chrome as it hides/shows, vh is the fallback. overscroll-behavior
       stops the scroll chaining into the page once the panel hits its end. */
    max-height: calc(100vh - 58px);
    max-height: calc(100dvh - 58px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .psg-collapse--open { display: flex; }
  .psg-nav { flex-direction: column; align-items: stretch; gap: 0; margin-left: 0; width: 100%; }
  .psg-nav-item,
  .psg-nav-link { width: 100%; }
  .psg-nav-link {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .psg-nav-item--mobile-hidden { display: none; }
  /* Flatten the nav dropdowns into rows (hide the toggle). */
  .psg-nav .psg-dropdown-toggle { display: none; }
  .psg-nav .psg-dropdown-menu {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    min-width: 0;
  }
  .psg-nav .psg-dropdown-item {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 13px 0;
  }
  /* The editorial panel becomes a compact card and sampled catalog on mobile. */
  .psg-nav .psg-mega-menu {
    display: block;
    width: auto;
    transform: none;
  }
  .psg-mega-column { padding: var(--space-5) 0; }
  .psg-mega-column--lead > .psg-mega-heading {
    display: block;
    left: calc(0px - var(--space-8));
    padding: var(--space-3) var(--space-8);
    right: auto;
    width: calc(100% + var(--space-16));
  }
  .psg-mega-column + .psg-mega-column { border-left: 0; border-top: 0; padding-left: 0; }
  .psg-mega-column--lead { border-top: 0; padding: var(--space-0) 0 var(--space-4); }
  .psg-mega-leads {
    flex: none;
    touch-action: pan-y;
    left: calc(0px - var(--space-8));
    min-height: 210px;
    width: calc(100% + var(--space-16));
  }
  .psg-mega-lead-copy {
    gap: var(--space-1);
    padding: var(--space-8);
    width: 76%;
  }
  .psg-mega-lead-logo { max-height: var(--space-6); max-width: var(--space-32); }
  .psg-mega-lead-description { font-size: var(--text-xs); line-height: 1.4; }
  .psg-mega-lead-cta { font-size: 10px; margin-top: var(--space-1); }
  .psg-mega-lead-controls { bottom: var(--space-3); right: var(--space-8); }
  .psg-mega-mobile-featured {
    display: block;
    padding-top: var(--space-4);
  }
  .psg-mega-heading {
    color: var(--text-muted);
    font-size: 10px;
    margin-bottom: var(--space-3);
  }
  .psg-mega-heading-desktop { display: none; }
  .psg-mega-heading-mobile { display: inline; }
  .psg-mega-list { gap: 0; }
  .psg-mega-column--catalog { display: none; }
  .psg-mega-list--mobile-games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-4);
  }
  .psg-mega-column--products .psg-mega-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-4);
  }
  .psg-mega-mobile-all {
    align-items: center;
    border-bottom: 0;
    color: var(--orange-400);
    display: flex;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    gap: var(--space-2);
    justify-content: space-between;
    letter-spacing: normal;
    margin-top: var(--space-1);
    padding: var(--space-3) 0 var(--space-4);
    text-decoration: none;
    text-transform: none;
  }
  .psg-mega-mobile-all:hover { color: var(--orange-300); }
  .psg-mega-mobile-featured .psg-mega-list-link,
  .psg-mega-column--products .psg-mega-list-link { border-bottom: 0; }
  .psg-mega-list-link {
    padding: var(--space-2) 0;
    border-bottom: var(--border-1) solid var(--border-subtle);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    letter-spacing: normal;
    text-transform: none;
  }
  .psg-mega-list-link:last-child { border-bottom: 0; }
  .psg-actions {
    align-items: stretch;
    border-top: var(--border-1) solid var(--border-subtle);
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    width: 100%;
  }
  /* Flatten currency + account into stacked sections. */
  .psg-actions .psg-action-btn {
    justify-content: flex-start;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 13px 0;
    width: 100%;
  }
  /* Account flattens into an always-visible section (like the site's old "My
     PSG" mobile block). */
  .psg-account .psg-dropdown-toggle { display: none; }
  .psg-account {
    border-top: 0;
    margin-top: var(--space-2);
    padding-top: var(--space-2);
  }
  .psg-account .psg-dropdown-menu {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    min-width: 0;
    width: 100%;
  }
  /* Currency stays a COLLAPSIBLE toggle (tap the button to expand) — not
     always-open like nav/account. The base .psg-open rule controls display; here
     we just flow the open menu in place. Collapsed, it reads as a plain button,
     matching WHMCS's mobile currency. */
  .psg-currency .psg-dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    min-width: 0;
    width: 100%;
  }
  .psg-currency .psg-action-btn { justify-content: space-between; }
  .psg-menu-heading { padding-left: 0; margin-top: 8px; }
  /* Flattened into the mobile panel, the menu has no padding to swallow and no
     surface of its own to sit on — so drop the desktop panel treatment. */
  .psg-menu-panel {
    margin-bottom: 0;
    background: transparent;
    box-shadow: none;
  }
  .psg-account .psg-dropdown-item,
  .psg-currency .psg-dropdown-item,
  .psg-cart .psg-dropdown-item {
    border-bottom: 0;
    padding: 12px 0;
  }
  /* Cart flattens into an always-visible section (like account): hide the toggle
     and flow its summary + currency selector inline. The nested currency list
     stays collapsible (tap the current-currency row to expand). */
  .psg-cart .psg-dropdown-toggle { display: none; }
  .psg-cart .psg-dropdown-menu {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    min-width: 0;
    width: 100%;
  }
  .psg-cart-summary { padding: 12px 0; }
  .psg-cart-empty { display: none; }
  .psg-cta { justify-content: center; margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .psg-mega-lead { transition: none; }
  .psg-mega-progress-fill { animation: none; transform: scaleX(1); }
}

/* ---------- Footer mobile (< 640px) ---------- */
/* The 5-column grid can't shrink below its content (long labels like
   "Dedicated servers"), so it overflows off-screen on phones. Collapse to two
   columns with the brand full-width + a stacked bottom bar, like SiteFooter. */
@media (max-width: 640px) {
  .psg-footer { padding: 40px 20px 28px; }
  .psg-foot-cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .psg-foot-brand { grid-column: 1 / -1; }
  .psg-foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .psg-foot-legalwrap { flex-wrap: wrap; }
}
