/* ====================================================
   GLOBAL BASE & THEME
==================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Shared theme variables (match homepage feel) */
:root {
  --purple: #4b0082;
  --purple-glass: rgba(75, 0, 130, 0.7);
  --purple-deep: rgba(20, 0, 60, 0.95);
  --white: #ffffff;
  --gold: #ffcc00;
  --gold-deep: #ffaa00;
  --hover-glow: rgba(255, 255, 255, 0.18);
}

body {
  font-family: Arial, sans-serif;
  color: #ffffff;

  background-image: url("/Photos/background/Backgroundsubs.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  position: relative;
}

body.no-scroll {
  overflow: hidden;
}


/* Layout wrapper so footer behaves */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* main fills space between fixed header and footer */
main {
  flex: 1 0 auto;
  padding-top: 145px;  /* clear fixed header */
  padding-bottom: 50px;

  /* 👇 needed for the dark glass overlay */
  position: relative;
  z-index: 0;
  overflow: hidden; /* keeps the overlay neatly clipped */
}

/* ============================================
   DARK GLASS OVERLAY BETWEEN HEADER & FOOTER
   (sits over background image, behind content)
============================================ */
main::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background: rgba(10, 10, 10, 0.65);   /* dark grey, semi-transparent */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: -1;          /* behind .terms-container & content */
  pointer-events: none; /* don't block clicks */
}


/* ============================================
   HEADER — MATCH HOMEPAGE STYLE EXACTLY
============================================ */

/* Glass header container */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;

  background: rgba(75, 0, 130, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* glossy overlay strip, like homepage */
header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 0;
  pointer-events: none;
}


/* keep header children above the gloss */
header * {
  position: relative;
  z-index: 1;
}
/* ====================================================
   HEADER — ORIGINAL HEIGHT + WHEEL BUTTON POSITION
==================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;

  z-index: 2000;

  /* ORIGINAL subscription sizing */
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(75, 0, 130, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  
  box-sizing: border-box;
}

.header-inner {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: none;

  margin: 0;

  /* ORIGINAL subscription vertical spacing */
  padding: 18px 24px;
}

.site-title {
  position: static;
  left: auto;
  transform: none;

  font-size: 2.5rem;
  font-weight: bold;
  color: #ffffff;

  /* remove the extra wheel margin */
  margin: 0;
  line-height: 1;

  white-space: nowrap;
  text-decoration: none;
}

/* contact page: never hide header on scroll */
header.hidden {
  top: 0;
  transition: none;
}

/* ====================================================
   HEADER BUTTONS — EXACT WHEEL POSITION + SPACING
==================================================== */

.header-buttons {
  position: absolute;
  right: 50px;

  display: flex;
  align-items: center;

  gap: 13px;

  margin: 0;
  padding: 0;
}

.header-icon-group {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 6px;

  margin: 0;
  padding: 0;
}

@media (min-width: 901px) {
  .header-icon-group {
    gap: 8px;
  }
}

/* ====================================================
   HEADER AUTH — WHEEL 1:1
==================================================== */

/* Header title link */
.header-inner .site-title .home-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.header-inner .site-title .home-link:hover {
  opacity: 0.9;
}

.header-inner .site-title .home-link:focus-visible {
  outline: 2px dashed currentColor;
  outline-offset: 4px;
  border-radius: 0.375rem;
}


/* Logged-in / logged-out wrappers */
#loggedInHeaderGroup,
#loggedOutHeaderGroup {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* Login + Register text buttons */
.header-auth-btn {
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 40px;
  min-height: 40px;

  padding: 0 12px;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;

  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.7);

  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;

  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

#loggedOutHeaderGroup .header-auth-btn {
  text-align: center;
  justify-content: center;
}


/* Register — blue primary */
.header-auth-btn--primary {
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #1f7aff,
      #3ac8ff
    );

  border-color:
    rgba(80, 180, 255, 0.95);

  color: #ffffff;

  box-shadow:
    0 0 6px rgba(80, 180, 255, 0.7),
    0 0 14px rgba(58, 200, 255, 0.4);
}


/* Register inner glass rim */
.header-auth-btn--primary::before {
  content: "";
  position: absolute;
  inset: 1px;

  border-radius: inherit;

  border:
    1px solid
    rgba(255, 255, 255, 0.26);

  pointer-events: none;
}


/* Login hover */
.header-auth-btn:not(.header-auth-btn--primary):hover,
.header-auth-btn:not(.header-auth-btn--primary):active {
  background:
    rgba(255, 255, 255, 0.18);

  border-color: #ffffff;
  color: #ffcc00;
}


/* Register stays blue */
.header-auth-btn--primary:hover,
.header-auth-btn--primary:focus-visible {
  color: #ffcc00;
}

.header-auth-btn--primary:active {
  color: #ffffff;
}

/* ====================================================
   CREDIT PILL — WHEEL 1:1
==================================================== */

.credit-pill {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 40px;
  min-height: 40px;

  padding: 0 12px;

  box-sizing: border-box;

  border-radius: 6px;

  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;

  letter-spacing: 0.03em;

  white-space: nowrap;

  background:
    radial-gradient(
      circle at top left,
      rgba(72, 225, 146, 0.32),
      rgba(24, 120, 72, 0.32)
    );

  border:
    1px solid
    rgba(140, 255, 195, 0.9);

  color: #eafff5;

  box-shadow:
    0 0 6px
    rgba(72, 225, 146, 0.7),
    0 0 14px
    rgba(24, 120, 72, 0.5);
}

/* ====================================================
   REGISTER FIELD ERROR HIGHLIGHT — WHEEL 1:1
==================================================== */

#registerForm .pu-field-error {
  border-color:
    rgba(255, 78, 112, 0.98) !important;

  background:
    rgba(255, 78, 112, 0.16) !important;

  color: #ffffff !important;

  box-shadow:
    0 0 0 3px rgba(255, 78, 112, 0.24),
    0 0 18px rgba(255, 78, 112, 0.65),
    0 0 34px rgba(255, 78, 112, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08)
    !important;

  animation:
    puFieldErrorFlash
    0.85s
    ease-in-out
    0s
    2;
}

#registerForm .pu-field-error:focus {
  border-color:
    rgba(255, 120, 150, 1) !important;

  box-shadow:
    0 0 0 4px rgba(255, 78, 112, 0.28),
    0 0 22px rgba(255, 78, 112, 0.78),
    0 0 42px rgba(255, 78, 112, 0.34)
    !important;
}

#registerForm .pu-field-error::placeholder {
  color:
    rgba(255, 225, 232, 0.9);
}

@keyframes puFieldErrorFlash {
  0% {
    transform: translateX(0);
    filter: brightness(1);
  }

  18% {
    transform: translateX(-4px);
    filter: brightness(1.18);
  }

  36% {
    transform: translateX(4px);
  }

  54% {
    transform: translateX(-3px);
  }

  72% {
    transform: translateX(3px);
  }

  100% {
    transform: translateX(0);
    filter: brightness(1);
  }
}


/* ====================================================
   REGISTRATION HELP — WHEEL 1:1
==================================================== */

#registerModal .registration-help-header {
  display: block;

  text-align: center;

  margin:
    14px auto 12px;

  width: 100%;
  max-width: 320px;

  background: transparent;

  border: 0;

  box-shadow: none;

  outline: 0;
}

#registerModal .registration-help-icon {
  display: none;
}

#registerModal
.registration-help-header h3 {
  margin: 0 0 4px;

  font-size: 1rem;
  line-height: 1.15;

  color: #ffffff;
}

#registerModal
.registration-help-header p {
  margin: 0 auto;

  max-width: 310px;

  font-size: 0.88rem;
  line-height: 1.45;

  color:
    rgba(255, 255, 255, 0.86);
}

#registerModal .registration-help-form {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 10px;

  width: 100%;
  max-width: 300px;

  margin:
    0 auto 8px;

  padding: 0;

  background: transparent;

  border: 0;

  box-shadow: none;

  outline: 0;
}

#registerModal
.registration-help-form input {
  width: 100%;
  max-width: 300px;

  box-sizing: border-box;

  margin: 0;
}

#registerModal
.registration-help-form button {
  width: 100%;
  max-width: 300px;

  padding: 10px;

  margin: 0 auto;

  white-space: nowrap;

  appearance: none;
  -webkit-appearance: none;

  background:
    linear-gradient(
      180deg,
      rgba(52, 42, 82, 0.96) 0%,
      rgba(28, 22, 48, 0.98) 55%,
      rgba(16, 12, 28, 1) 100%
    );

  color: #f8f5ff;

  font-weight: bold;
  font-size: 16px;

  border:
    1px solid
    rgba(255, 255, 255, 0.10);

  border-radius: 10px;

  cursor: pointer;

  display: block;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.28),
    0 0 16px rgba(155, 136, 255, 0.10);

  transition:
    color 0.3s ease,
    text-shadow 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.18s ease;
}

#registerModal
.registration-help-form button:hover {
  color: #8fd8ff;

  text-shadow:
    0 0 10px
    rgba(143, 216, 255, 0.45);

  background:
    linear-gradient(
      180deg,
      rgba(70, 56, 108, 0.98) 0%,
      rgba(38, 28, 64, 1) 55%,
      rgba(20, 14, 34, 1) 100%
    );

  border-color:
    rgba(143, 216, 255, 0.22);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(143, 216, 255, 0.06),
    0 0 18px rgba(143, 216, 255, 0.14),
    0 10px 22px rgba(0, 0, 0, 0.30);

  transform:
    translateY(-1px);
}

#registerModal
.registration-help-form button:active {
  transform:
    translateY(0);
}

#registerModal
.registration-help-form
button.button--busy {
  opacity: 0.6;

  pointer-events: none;

  filter:
    grayscale(10%);
}

/* ============================================
   ICON BUTTONS (cart, login, menu) — homepage match
============================================ */

.icon-btn,
.cart-btn,
.menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #ffffff;     /* pure white outline */
  background-color: transparent; /* transparent inside */
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

/* 🔥 Make the header hamburger match homepage size */
.menu-btn {
  font-size: 1.45rem;   /* makes lines longer */
  font-weight: 500;     /* thins the lines */
  line-height: 1;
}



/* Hover glow */
.icon-btn:hover,
.cart-btn:hover,
.menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.18); /* glass glow */
  transform: translateY(-1px);
}

/* Lucide icons inside buttons */
.icon-btn svg,
.cart-btn svg,
.menu-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

/* PNG login icon — use same black PNG but force it to render white */
.login-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* black → white */
  pointer-events: none;
}

/* tooltip anchor spans – we only use them for titles */
.tooltip-anchor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ====================================================
   SIDE MENU (slide-out)
==================================================== */
.menu {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -260px;
  width: 260px;

  /* ⛔️ NO height here */

  display: flex;
  flex-direction: column;
  padding-top: 80px;

  background: var(--purple-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: right 0.3s ease;
  z-index: 2500;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -6px 0 30px rgba(0, 0, 0, 0.4);
}

/* Overlay behind the side menu so tapping outside can close it */
.menu-overlay {
  position: fixed;
  inset: 0;                 /* top:0; right:0; bottom:0; left:0 */
  background: transparent;  /* no visual change – just a tap target */
  z-index: 2400;            /* below .menu (2500), above page content */
  display: none;
}

/* When active, it becomes clickable */
.menu-overlay.active {
  display: block;
}


.menu.open {
  right: 0;
}

.menu .close-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 26px;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
}

.menu a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 14px 0;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

.menu a:hover {
  background-color: var(--hover-glow);
}


/* ====================================================
   SUBSCRIPTION PANEL
==================================================== */
.terms-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 28px 42px;

  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(18, 0, 45, 0.88), rgba(0, 0, 0, 0.72));

  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  min-height: 560px;
}

.subscription-container {
  position: relative;
  overflow: hidden;
}

.subscription-container::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.2), transparent 68%);
  pointer-events: none;
}

.subscription-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.subscription-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;

  background: rgba(255, 204, 0, 0.12);
  border: 1px solid rgba(255, 204, 0, 0.38);
  color: #ffdd55;

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.subscription-hero h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 0 28px rgba(190, 90, 255, 0.55);
}

.subscription-hero p {
  max-width: 680px;
  margin: 16px auto 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
}

.subscription-trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.subscription-trust-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.88);
}

.subscription-section {
  position: relative;
  z-index: 1;
}

.subscription-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* ====================================================
   SUBSCRIPTION TIER CARDS
==================================================== */

/* --------------------------------------------
   TIER COLOUR DEFINITIONS
-------------------------------------------- */

/* ====================================================
   SUBSCRIPTION TIER CARDS
   Dark gradient + metallic border
==================================================== */


/* --------------------------------------------
   TIER 1 — SILVER / STEEL
-------------------------------------------- */

.tier-silver {
  --tier-accent: #bcc4cf;

  --tier-top: rgba(8, 9, 12, 0.98);
  --tier-mid: rgba(22, 25, 31, 0.97);
  --tier-bottom: rgba(72, 80, 92, 0.96);

  --tier-metal-dark: #353b43;
  --tier-metal-mid: #8e99a7;
  --tier-metal-bright: #d7dde5;

  --tier-glow: rgba(145, 160, 180, 0.12);
  --tier-glow-strong: rgba(180, 195, 215, 0.20);
}


/* --------------------------------------------
   TIER 2 — DEEP PURPLE
-------------------------------------------- */

.tier-purple {
  --tier-accent: #a67ac8;

  --tier-top: rgba(9, 5, 13, 0.98);
  --tier-mid: rgba(29, 11, 43, 0.97);
  --tier-bottom: rgba(72, 24, 108, 0.96);

  --tier-metal-dark: #321842;
  --tier-metal-mid: #83549e;
  --tier-metal-bright: #c6a0dc;

  --tier-glow: rgba(120, 55, 170, 0.13);
  --tier-glow-strong: rgba(155, 80, 210, 0.22);
}


/* --------------------------------------------
   TIER 3 — DEEP RUBY RED
-------------------------------------------- */

.tier-red {
  --tier-accent: #c85d68;

  --tier-top: rgba(11, 5, 7, 0.98);
  --tier-mid: rgba(43, 8, 14, 0.97);
  --tier-bottom: rgba(108, 17, 30, 0.96);

  --tier-metal-dark: #45141a;
  --tier-metal-mid: #9d414c;
  --tier-metal-bright: #d98891;

  --tier-glow: rgba(160, 32, 48, 0.13);
  --tier-glow-strong: rgba(205, 50, 70, 0.22);
}


/* --------------------------------------------
   TIER 4 — DIAMOND / DEEP BLUE
-------------------------------------------- */

.tier-diamond {
  --tier-accent: #77b4cf;

  --tier-top: rgba(4, 8, 13, 0.98);
  --tier-mid: rgba(5, 25, 42, 0.97);
  --tier-bottom: rgba(8, 62, 101, 0.96);

  --tier-metal-dark: #17384a;
  --tier-metal-mid: #4b8aa8;
  --tier-metal-bright: #a3d5e8;

  --tier-glow: rgba(40, 125, 170, 0.13);
  --tier-glow-strong: rgba(60, 165, 215, 0.22);
}


/* --------------------------------------------
   SHARED CARD DESIGN
-------------------------------------------- */

.subscription-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  display: flex;
  flex-direction: column;

  min-height: 520px;
  padding: 24px 22px 22px;

  border-radius: 10px;

  /* fallback dark fill + metallic border */
  background:
    linear-gradient(
      to top,
      color-mix(in srgb, var(--tier-metal-bright) 24%, rgba(6, 6, 10, 1) 76%) 100%,
      color-mix(in srgb, var(--tier-metal-bright) 18%, rgba(10, 10, 14, 1) 82%) 90%,
      color-mix(in srgb, var(--tier-metal-mid) 48%, rgba(16, 16, 20, 1) 52%) 76%,
      var(--tier-metal-dark) 56%,
      var(--tier-metal-mid) 28%,
      var(--tier-metal-bright) 0%
    ) border-box;

  background-color: #09080d;

  border: 1px solid transparent;

  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.72),
    0 0 18px var(--tier-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.subscription-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 9px;

  background-image: var(--tier-bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  z-index: 0;
  pointer-events: none;

  filter:
    brightness(0.52)
    contrast(1.08)
    saturate(1.02);
}

/* --------------------------------------------
   CARD HOVER
-------------------------------------------- */

.subscription-card:hover {
  transform: translateY(-6px);

  box-shadow:
    0 26px 58px rgba(0, 0, 0, 0.84),
    0 0 26px var(--tier-glow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}


/* --------------------------------------------
   INTERNAL COLOUR GLOW

   Concentrated toward the BOTTOM instead of
   washing the top of the card with colour.
-------------------------------------------- */

.subscription-glow {
  position: absolute;
  inset: 1px;
  border-radius: 9px;

  z-index: 1;
  pointer-events: none;

  background: rgba(0, 0, 0, 0.12);

  backdrop-filter:
    blur(5px)
    saturate(1.05);

  -webkit-backdrop-filter:
    blur(5px)
    saturate(1.05);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

/* --------------------------------------------
   FEATURED PRO TIER
-------------------------------------------- */

.featured-tier {
  transform: none;

  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.86),
    0 0 24px var(--tier-glow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.featured-tier:hover {
  transform: translateY(-6px);

  box-shadow:
    0 30px 72px rgba(0, 0, 0, 0.90),
    0 0 30px var(--tier-glow-strong),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------
   MOST POPULAR BADGE
-------------------------------------------- */

.popular-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;

  padding: 6px 10px;
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    #ffcc00,
    #ffaa00
  );

  color: #1a0b00;

  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;

  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.42);
}


/* --------------------------------------------
   KEEP CARD CONTENT ABOVE THE GLOW
-------------------------------------------- */

.tier-topline,
.subscription-card h3,
.tier-price,
.tier-description,
.tier-features,
.subscription-cta {
  position: relative;
  z-index: 1;
}


/* --------------------------------------------
   TIER LABEL
-------------------------------------------- */

.tier-topline {
  margin-bottom: 8px;

  color: var(--tier-accent);

  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* --------------------------------------------
   PLAN NAME
-------------------------------------------- */

.subscription-card h3 {
  margin: 0 0 16px;
  font-size: 1.65rem;
}

/* Keep Legendary title on one line so its price aligns */
.tier-diamond h3 {
  font-size: 1.5rem;
  white-space: nowrap;
}

/* --------------------------------------------
   PRICE
-------------------------------------------- */

.tier-price {
  margin-bottom: 16px;

  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.price-symbol {
  margin-right: 2px;

  color: var(--tier-accent);

  font-size: 1.5rem;
  vertical-align: top;
}

.price-cycle {
  display: inline-block;
  margin-left: 4px;

  font-size: 0.95rem;
  font-weight: 600;

  color: rgba(255, 255, 255, 0.68);
}


/* --------------------------------------------
   DESCRIPTION
-------------------------------------------- */

.tier-description {
  margin: 0 0 18px;

  color: rgba(255, 255, 255, 0.78);

  line-height: 1.55;
}


/* --------------------------------------------
   FEATURES
-------------------------------------------- */

.tier-features {
  list-style: none;

  padding: 0;
  margin: 0 0 24px;

  display: grid;
  gap: 10px;
}

.tier-features li {
  position: relative;

  padding-left: 26px;

  color: rgba(255, 255, 255, 0.88);

  font-size: 0.95rem;
  line-height: 1.35;
}

.tier-features li::before {
  content: "✓";

  position: absolute;
  left: 0;
  top: -1px;

  color: var(--tier-accent);

  font-weight: 900;
}

.subscription-cta {
  margin-top: auto;
  width: 100%;
  min-height: 46px;

  border: none;
  border-radius: 12px;

  background: linear-gradient(135deg, #ffcc00, #ffaa00);
  color: #170900;

  font-weight: 900;
  font-size: 0.98rem;
  cursor: pointer;

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.48);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.subscription-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.6);
}

.subscription-info-card {
  position: relative;
  z-index: 1;

  margin-top: 26px;
  padding: 20px 22px;

  border-radius: 18px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
}

.subscription-info-card h3 {
  margin: 0 0 8px;
  color: #ffdd55;
}

.subscription-info-card p {
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.tier-silver {
  --tier-bg-image: url("/Photos/Subscription/sub-tier-silver.jpg");
}

.tier-purple {
  --tier-bg-image: url("/Photos/Subscription/sub-tier-purple.png");
}

.tier-red {
  --tier-bg-image: url("/Photos/Subscription/sub-tier-red.png");
}

.tier-diamond {
  --tier-bg-image: url("/Photos/Subscription/sub-tier-diamond.png");
}

/* ====================================================
   AUTH MODALS — WHEEL 1:1
==================================================== */


/* Global dark blurred backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;

  background:
    rgba(0, 0, 0, 0.65);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  z-index: 9998;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.25s ease;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}


/* Modal layer */
.modal {
  display: none;

  position: fixed;
  inset: 0;

  background: transparent;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  z-index: 9999;

  overflow: auto;
  padding: 0;
}

.modal.hidden {
  display: none !important;
}


/* Main glass modal */
.modal .modal-content {
  position: relative;

  margin: 10% auto;

  width: 90%;
  max-width: 400px;

  padding: 30px;

  color: #ffffff;
  text-align: center;

  border-radius: 14px;

  overflow: hidden;

  animation:
    fadeIn 0.3s ease-in-out;

  will-change:
    opacity,
    transform;

  background:
    linear-gradient(
      135deg,
      rgba(170, 120, 255, 0.18) 0%,
      rgba(130, 70, 255, 0.22) 35%,
      rgba(90, 20, 180, 0.30) 100%
    );

  border:
    1px solid
    rgba(255, 255, 255, 0.24);

  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.52),
    0 0 36px rgba(140, 90, 255, 0.35),
    0 0 12px rgba(180, 130, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);

  backdrop-filter:
    blur(28px)
    saturate(130%);

  -webkit-backdrop-filter:
    blur(28px)
    saturate(130%);

  background-blend-mode: overlay;
}


/* Glass lighting layer */
#loginModal .modal-content::before,
#registerModal .modal-content::before,
#forgotPasswordModal .modal-content::before,
#logoutConfirmModal .modal-content.modal-confirm::before,
#subscriptionChangeConfirmModal .modal-content.modal-confirm::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at top right,
      rgba(200, 150, 255, 0.24),
      transparent 30%
    ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.04) 45%,
      rgba(255, 255, 255, 0.025) 100%
    );
}

/* Inner glass rim */
#loginModal .modal-content::after,
#registerModal .modal-content::after,
#forgotPasswordModal .modal-content::after,
#logoutConfirmModal .modal-content.modal-confirm::after,
#subscriptionChangeConfirmModal .modal-content.modal-confirm::after {
  content: "";

  position: absolute;
  inset: 1px;

  border-radius: inherit;

  pointer-events: none;

  border:
    1px solid
    rgba(255, 255, 255, 0.10);

  box-shadow:
    inset 0 0 24px
    rgba(255, 255, 255, 0.03);
}


/* Close button */
.modal .close {
  position: absolute;

  top: 10px;
  right: 10px;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  color: #2f2206;

  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  font-family: Arial, sans-serif;

  cursor: pointer;

  z-index: 10;

  border-radius: 10px;

  background:
    linear-gradient(
      180deg,
      rgba(214, 182, 102, 0.30) 0%,
      rgba(168, 132, 48, 0.26) 52%,
      rgba(110, 80, 20, 0.30) 100%
    );

  border:
    1px solid
    rgba(255, 245, 210, 0.20);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 0 0 1px rgba(255, 214, 92, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.22),
    0 0 12px rgba(255, 214, 92, 0.08);

  backdrop-filter:
    blur(12px)
    saturate(120%);

  -webkit-backdrop-filter:
    blur(12px)
    saturate(120%);

  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.modal .close:hover {
  color: #1f1604;

  background:
    linear-gradient(
      180deg,
      rgba(232, 200, 116, 0.40) 0%,
      rgba(188, 148, 58, 0.34) 50%,
      rgba(126, 92, 26, 0.38) 100%
    );

  border-color:
    rgba(255, 245, 210, 0.28);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(255, 222, 89, 0.07),
    0 0 14px rgba(255, 222, 89, 0.10),
    0 10px 22px rgba(0, 0, 0, 0.26);

  transform:
    translateY(-2px);
}

.modal .close:active {
  transform:
    translateY(-1px);
}


/* Modal headings */
.modal .modal-content h2 {
  margin-top: 0;
  margin-bottom: 14px;

  color: #ffffff;

  text-shadow:
    0 0 12px rgba(155, 136, 255, 0.30),
    0 0 24px rgba(75, 0, 130, 0.18);
}

.modal .modal-content p {
  color:
    rgba(255, 255, 255, 0.88);
}


/* Fields */
.modal .modal-content input,
.modal .modal-content select,
.modal .modal-content textarea {
  width: 100%;
  max-width: 300px;

  padding: 10px 12px;
  margin: 10px auto;

  border:
    1px solid
    rgba(255, 255, 255, 0.10);

  border-radius: 8px;

  font-size: 1rem;

  background:
    rgba(255, 255, 255, 0.10);

  color: #ffffff;

  display: block;

  box-sizing: border-box;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 2px 10px rgba(0, 0, 0, 0.12);

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.modal .modal-content input:focus,
.modal .modal-content select:focus,
.modal .modal-content textarea:focus {
  outline: none;

  border-color:
    rgba(179, 155, 255, 0.55);

  background:
    rgba(255, 255, 255, 0.13);

  box-shadow:
    0 0 0 3px rgba(155, 136, 255, 0.16),
    0 0 16px rgba(155, 136, 255, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.modal .modal-content input::placeholder,
.modal .modal-content textarea::placeholder {
  color:
    rgba(255, 255, 255, 0.76);

  opacity: 1;
}


/* Standard modal buttons */
.modal-content button {
  width: 100%;
  max-width: 300px;

  padding: 10px;
  margin: 10px auto;

  background:
    linear-gradient(
      180deg,
      rgba(52, 42, 82, 0.96) 0%,
      rgba(28, 22, 48, 0.98) 55%,
      rgba(16, 12, 28, 1) 100%
    );

  color: #f8f5ff;

  font-weight: bold;
  font-size: 16px;

  border:
    1px solid
    rgba(255, 255, 255, 0.10);

  border-radius: 10px;

  cursor: pointer;

  display: block;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.28),
    0 0 16px rgba(155, 136, 255, 0.10);

  transition:
    color 0.3s ease,
    text-shadow 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.18s ease;
}

.modal-content button:hover {
  color: #8fd8ff;

  text-shadow:
    0 0 10px
    rgba(143, 216, 255, 0.45);

  background:
    linear-gradient(
      180deg,
      rgba(70, 56, 108, 0.98) 0%,
      rgba(38, 28, 64, 1) 55%,
      rgba(20, 14, 34, 1) 100%
    );

  border-color:
    rgba(143, 216, 255, 0.22);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(143, 216, 255, 0.06),
    0 0 18px rgba(143, 216, 255, 0.14),
    0 10px 22px rgba(0, 0, 0, 0.30);

  transform:
    translateY(-1px);
}

.modal-content button:active {
  transform:
    translateY(0);
}


/* Secondary buttons */
.modal-sub-btn,
.modal-alt-btn,
.modal-switch-btn {
  flex: 1;

  padding: 8px 10px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.03) 100%
    );

  color: #f5f5f5;

  border:
    1px solid
    rgba(255, 255, 255, 0.14);

  border-radius: 8px;

  font-size: 14px;
  font-weight: bold;

  cursor: pointer;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 14px rgba(0, 0, 0, 0.16);

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.18s ease;
}

.modal-sub-btn:hover,
.modal-alt-btn:hover,
.modal-switch-btn:hover {
  color: #d9eeff;

  border-color:
    rgba(82, 216, 255, 0.34);

  background:
    linear-gradient(
      180deg,
      rgba(82, 216, 255, 0.12) 0%,
      rgba(82, 216, 255, 0.05) 100%
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 14px rgba(82, 216, 255, 0.10),
    0 8px 18px rgba(0, 0, 0, 0.18);

  transform:
    translateY(-1px);
}

.modal-sub-btn:active,
.modal-alt-btn:active,
.modal-switch-btn:active {
  transform:
    translateY(0);
}


/* Login modal secondary actions */
#loginModal .modal-action-buttons {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;

  width: 100%;
  max-width: 300px;

  margin: 12px auto 0;
}

#loginModal
.modal-action-buttons
.modal-sub-btn {
  width: 100%;
  max-width: none;
  min-width: 0;

  margin: 0;

  padding: 10px 8px;

  box-sizing: border-box;

  line-height: 1.15;
  white-space: normal;
  text-align: center;
}


/* Confirmation modals */
.modal-confirm {
  max-width: 360px;
  text-align: center;
}


.modal-confirm h2 {
  margin-top: 0;
  margin-bottom: 8px;
}


#logoutConfirmModal
.modal-confirm p,
#subscriptionChangeConfirmModal
.modal-confirm p {
  margin: 0 0 18px;

  font-size: 0.95rem;

  opacity: 0.9;
}


#subscriptionChangeConfirmModal
#subscriptionChangeConfirmText {
  margin-bottom: 8px;
}


#subscriptionChangeConfirmModal
.subscription-change-confirm-note {
  margin-bottom: 20px;

  font-size: 0.86rem;

  line-height: 1.5;

  color:
    rgba(
      255,
      255,
      255,
      0.68
    );

  opacity: 1;
}


#logoutConfirmModal
.modal-confirm-actions,
#subscriptionChangeConfirmModal
.modal-confirm-actions {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 6px;

  margin-top: 0;
}


.modal-confirm-actions button {
  width: 100%;
  max-width: 300px;
  margin: 0;
}


/* Dangerous logout button */
.modal-danger-btn {
  background:
    linear-gradient(
      180deg,
      rgba(58, 20, 28, 0.96) 0%,
      rgba(28, 10, 16, 0.98) 100%
    ) !important;

  border:
    1px solid
    rgba(255, 124, 150, 0.16)
    !important;
}

.modal-danger-btn:hover {
  color: #ff9db1 !important;

  border-color:
    rgba(255, 124, 150, 0.30)
    !important;

  box-shadow:
    0 0 14px rgba(255, 124, 150, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.28)
    !important;
}


/* Autofill */
.modal .modal-content input:-webkit-autofill,
.modal .modal-content input:-webkit-autofill:hover,
.modal .modal-content input:-webkit-autofill:focus,
.modal .modal-content input:-webkit-autofill:active {
  -webkit-box-shadow:
    0 0 0 1000px
    rgba(75, 0, 130, 0.45)
    inset !important;

  box-shadow:
    0 0 0 1000px
    rgba(75, 0, 130, 0.45)
    inset !important;

  -webkit-text-fill-color:
    #ffffff !important;
}


/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform:
      translateY(-8px);
  }

  to {
    opacity: 1;
    transform:
      translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform:
      translateY(0);
  }

  to {
    opacity: 0;
    transform:
      translateY(-8px);
  }
}

/* ====================================================
   AUTH TOASTS — WHEEL 1:1
==================================================== */

.pu-toast {
  position: fixed;

  top: 90px;
  right: 20px;

  z-index: 10000;

  display: flex;
  align-items: center;

  gap: 10px;

  max-width:
    min(
      420px,
      calc(100vw - 24px)
    );

  padding: 12px 16px;

  border-radius: 12px;

  border:
    1px solid
    rgba(255, 255, 255, 0.22);

  background:
    rgba(20, 20, 35, 0.78);

  color: #ffffff;

  backdrop-filter:
    blur(10px);

  -webkit-backdrop-filter:
    blur(10px);

  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  transform:
    translateY(-10px);

  opacity: 0;

  pointer-events: none;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.pu-toast.show {
  opacity: 1;

  transform:
    translateY(0);
}

.pu-toast-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  border-radius: 999px;

  font-weight: 900;
  line-height: 1;
}

.pu-toast-text {
  font-size: 14px;
  font-weight: 700;

  letter-spacing: 0.2px;
}


/* Success */
.pu-toast.is-success {
  background:
    rgba(20, 255, 140, 0.16);

  border-color:
    rgba(20, 255, 140, 0.38);
}

.pu-toast.is-success
.pu-toast-icon {
  background:
    rgba(20, 255, 140, 0.18);

  color: #83ffbf;
}


/* Error */
.pu-toast.is-error {
  background:
    rgba(255, 78, 112, 0.18);

  border-color:
    rgba(255, 78, 112, 0.42);
}

.pu-toast.is-error
.pu-toast-icon {
  background:
    rgba(255, 78, 112, 0.20);

  color: #ff9aad;
}


/* Login */
.pu-toast.is-login {
  background:
    rgba(80, 180, 255, 0.17);

  border-color:
    rgba(80, 180, 255, 0.40);
}

.pu-toast.is-login
.pu-toast-icon {
  background:
    rgba(80, 180, 255, 0.20);

  color: #9fe7ff;
}


/* Warning */
.pu-toast.is-warn {
  background:
    rgba(255, 204, 0, 0.16);

  border-color:
    rgba(255, 204, 0, 0.38);
}

.pu-toast.is-warn
.pu-toast-icon {
  background:
    rgba(255, 204, 0, 0.20);

  color: #ffe27a;
}


.pu-toast-spinner {
  width: 14px;
  height: 14px;

  border-radius: 999px;

  border:
    2px solid
    rgba(255, 255, 255, 0.35);

  border-top-color:
    #ffffff;

  animation:
    puToastSpin 0.75s
    linear infinite;
}

@keyframes puToastSpin {
  to {
    transform:
      rotate(360deg);
  }
}


@media (max-width: 600px) {
  .pu-toast {
    left: 12px;
    right: 12px;

    top: 80px;

    justify-content: center;

    max-width: none;
  }
}

/* ====================================================
   MONTHLY GIVEAWAY ENTRY STACK
==================================================== */

.entry-stack-section {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 980px;

  margin: 68px auto 0;
}


/* --------------------------------------------
   SECTION HEADER
-------------------------------------------- */

.entry-stack-header {
  max-width: 720px;

  margin: 0 auto 28px;

  text-align: center;
}


.entry-stack-kicker {
  display: inline-block;

  margin-bottom: 10px;

  font-size: 0.76rem;
  font-weight: 800;

  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: #d7b8ff;
}


.entry-stack-header h2 {
  margin: 0;

  font-size: clamp(
    1.9rem,
    3.5vw,
    2.6rem
  );

  line-height: 1.12;

  color: #ffffff;

  text-shadow:
    0 0 24px
    rgba(155, 80, 210, 0.30);
}


.entry-stack-header p {
  max-width: 620px;

  margin: 13px auto 0;

  font-size: 0.98rem;
  line-height: 1.6;

  color:
    rgba(
      255,
      255,
      255,
      0.76
    );
}


/* --------------------------------------------
   PLAN SELECTOR
-------------------------------------------- */

.entry-stack-tabs {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 6px;

  width: 100%;

  margin-bottom: 16px;
  padding: 6px;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.12
    );

  border-radius: 14px;

  background:
    rgba(
      5,
      4,
      10,
      0.58
    );

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, 0.05),
    0 12px 30px
    rgba(0, 0, 0, 0.26);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}


.entry-stack-tab {
  min-width: 0;
  min-height: 44px;

  padding: 10px 8px;

  border: 1px solid transparent;
  border-radius: 10px;

  background: transparent;

  color:
    rgba(
      255,
      255,
      255,
      0.66
    );

  font-size: 0.9rem;
  font-weight: 800;

  cursor: pointer;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.18s ease;
}


.entry-stack-tab:hover {
  color: #ffffff;

  background:
    rgba(
      255,
      255,
      255,
      0.07
    );
}


.entry-stack-tab:active {
  transform: scale(0.98);
}


.entry-stack-tab:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}


/* Starter */

.entry-stack-tab[
  data-entry-plan="starter"
].active {
  color: #f4f7fb;

  border-color:
    rgba(
      210,
      220,
      232,
      0.58
    );

  background:
    linear-gradient(
      135deg,
      rgba(104, 116, 132, 0.72),
      rgba(47, 54, 64, 0.90)
    );

  box-shadow:
    0 0 18px
    rgba(180, 195, 215, 0.16),
    inset 0 1px 0
    rgba(255, 255, 255, 0.12);
}


/* Pro */

.entry-stack-tab[
  data-entry-plan="pro"
].active {
  color: #f4e9ff;

  border-color:
    rgba(
      190,
      130,
      235,
      0.60
    );

  background:
    linear-gradient(
      135deg,
      rgba(118, 55, 165, 0.82),
      rgba(47, 20, 68, 0.94)
    );

  box-shadow:
    0 0 20px
    rgba(155, 80, 210, 0.22),
    inset 0 1px 0
    rgba(255, 255, 255, 0.12);
}


/* Elite */

.entry-stack-tab[
  data-entry-plan="elite"
].active {
  color: #ffecef;

  border-color:
    rgba(
      215,
      92,
      110,
      0.62
    );

  background:
    linear-gradient(
      135deg,
      rgba(150, 42, 58, 0.84),
      rgba(66, 15, 24, 0.95)
    );

  box-shadow:
    0 0 20px
    rgba(205, 50, 70, 0.22),
    inset 0 1px 0
    rgba(255, 255, 255, 0.12);
}


/* Legendary */

.entry-stack-tab[
  data-entry-plan="legendary"
].active {
  color: #eaf9ff;

  border-color:
    rgba(
      100,
      190,
      235,
      0.62
    );

  background:
    linear-gradient(
      135deg,
      rgba(28, 108, 150, 0.86),
      rgba(13, 48, 72, 0.96)
    );

  box-shadow:
    0 0 20px
    rgba(60, 165, 215, 0.22),
    inset 0 1px 0
    rgba(255, 255, 255, 0.12);
}


/* --------------------------------------------
   ENTRY CARD
-------------------------------------------- */

.entry-stack-card {
  --entry-accent: #bcc4cf;
  --entry-accent-rgb: 188, 196, 207;

  position: relative;

  overflow: hidden;

  padding: 28px;

  border:
    1px solid
    rgba(
      var(--entry-accent-rgb),
      0.34
    );

  border-radius: 18px;

  background:
    radial-gradient(
      circle at top right,
      rgba(
        var(--entry-accent-rgb),
        0.13
      ),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(20, 15, 29, 0.94),
      rgba(8, 7, 13, 0.97)
    );

  box-shadow:
    0 22px 50px
    rgba(0, 0, 0, 0.52),
    0 0 26px
    rgba(
      var(--entry-accent-rgb),
      0.08
    ),
    inset 0 1px 0
    rgba(255, 255, 255, 0.06);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}


/* Tier colours */

.entry-stack-card[
  data-active-plan="starter"
] {
  --entry-accent: #bcc4cf;
  --entry-accent-rgb: 188, 196, 207;
}


.entry-stack-card[
  data-active-plan="pro"
] {
  --entry-accent: #b178dc;
  --entry-accent-rgb: 177, 120, 220;
}


.entry-stack-card[
  data-active-plan="elite"
] {
  --entry-accent: #d76572;
  --entry-accent-rgb: 215, 101, 114;
}


.entry-stack-card[
  data-active-plan="legendary"
] {
  --entry-accent: #72c3e6;
  --entry-accent-rgb: 114, 195, 230;
}


/* Soft lighting layer */

.entry-stack-card::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.045),
      transparent 32%
    );
}


/* --------------------------------------------
   CARD HEADER
-------------------------------------------- */

.entry-stack-card-header {
  position: relative;
  z-index: 1;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 24px;
}


.entry-stack-plan-label {
  margin-bottom: 6px;

  color:
    rgba(
      var(--entry-accent-rgb),
      0.90
    );

  font-size: 0.72rem;
  font-weight: 900;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}


.entry-stack-card h3 {
  margin: 0;

  font-size: 1.6rem;
  line-height: 1.2;

  color: #ffffff;
}


.entry-stack-monthly-badge {
  flex: 0 0 auto;

  min-width: 116px;

  padding: 10px 14px;

  border:
    1px solid
    rgba(
      var(--entry-accent-rgb),
      0.30
    );

  border-radius: 12px;

  background:
    rgba(
      var(--entry-accent-rgb),
      0.10
    );

  text-align: center;
}


.entry-stack-monthly-badge strong {
  display: block;

  color: var(--entry-accent);

  font-size: 1.35rem;
  line-height: 1.1;
}


.entry-stack-monthly-badge span {
  display: block;

  margin-top: 3px;

  font-size: 0.7rem;

  color:
    rgba(
      255,
      255,
      255,
      0.66
    );
}


/* --------------------------------------------
   DESCRIPTION
-------------------------------------------- */

.entry-stack-card-description {
  position: relative;
  z-index: 1;

  margin: 18px 0 26px;

  color:
    rgba(
      255,
      255,
      255,
      0.72
    );

  font-size: 0.92rem;
  line-height: 1.55;
}


/* --------------------------------------------
   PROGRESS ROWS
-------------------------------------------- */

.entry-stack-progress {
  position: relative;
  z-index: 1;

  display: grid;

  gap: 16px;
}


.entry-stack-row {
  padding: 15px 16px;

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.07
    );

  border-radius: 12px;

  background:
    rgba(
      255,
      255,
      255,
      0.025
    );
}


.entry-stack-row-final {
  border-color:
    rgba(
      var(--entry-accent-rgb),
      0.24
    );

  background:
    rgba(
      var(--entry-accent-rgb),
      0.075
    );

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, 0.04);
}


.entry-stack-row-top {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 16px;

  margin-bottom: 9px;
}


.entry-stack-month {
  color:
    rgba(
      255,
      255,
      255,
      0.65
    );

  font-size: 0.76rem;
  font-weight: 800;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.entry-stack-value {
  color: #ffffff;

  font-size: 1.1rem;
  font-weight: 900;

  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    color 0.25s ease;
}


.entry-stack-row-final
.entry-stack-value {
  color: var(--entry-accent);

  font-size: 1.25rem;
}


/* --------------------------------------------
   PROGRESS BARS
-------------------------------------------- */

.entry-stack-track {
  position: relative;

  overflow: hidden;

  width: 100%;
  height: 7px;

  border-radius: 999px;

  background:
    rgba(
      255,
      255,
      255,
      0.065
    );

  box-shadow:
    inset 0 1px 3px
    rgba(0, 0, 0, 0.32);
}


.entry-stack-fill {
  width: var(--entry-progress);
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      rgba(
        var(--entry-accent-rgb),
        0.60
      ),
      var(--entry-accent)
    );

  box-shadow:
    0 0 12px
    rgba(
      var(--entry-accent-rgb),
      0.34
    );

  transition:
    width 0.65s
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    ),
    background 0.3s ease,
    box-shadow 0.3s ease;
}


/* Used by the JS animation later */

.entry-stack-card.is-updating
.entry-stack-fill {
  width: 0;
}


.entry-stack-card.is-updating
.entry-stack-value {
  opacity: 0.35;

  transform:
    translateY(3px);
}


/* --------------------------------------------
   YEAR TOTAL
-------------------------------------------- */

.entry-stack-total {
  position: relative;
  z-index: 1;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  margin-top: 22px;

  color:
    rgba(
      255,
      255,
      255,
      0.72
    );

  font-size: 0.9rem;
}


.entry-stack-total strong {
  color: var(--entry-accent);

  font-size: 1rem;
}


.entry-stack-total-icon {
  color: var(--entry-accent);

  font-size: 1.2rem;
  font-weight: 900;
}

/* ====================================================
   CURRENT SUBSCRIPTION STATUS
==================================================== */

.subscription-status {
  position: relative;
  z-index: 1;

  margin: 0 0 28px;
  padding: 18px 20px;

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 204, 0, 0.12),
      rgba(130, 40, 220, 0.12)
    ),
    rgba(0, 0, 0, 0.36);

  border:
    1px solid
    rgba(255, 204, 0, 0.28);

  box-shadow:
    0 14px 30px
    rgba(0, 0, 0, 0.42);
}

.subscription-status[hidden] {
  display: none;
}

.subscription-status-label {
  margin-bottom: 6px;

  color: #ffdd55;

  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.subscription-status h3 {
  margin: 0 0 7px;

  color: #ffffff;

  font-size: 1.3rem;
}

.subscription-status p {
  margin: 0;

  color:
    rgba(
      255,
      255,
      255,
      0.82
    );

  line-height: 1.5;
}


/* Current active tier */

.subscription-cta.current-plan {
  background:
    rgba(
      255,
      255,
      255,
      0.12
    );

  color:
    rgba(
      255,
      255,
      255,
      0.78
    );

  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.22
    );

  box-shadow: none;
}


/* Plan already selected for next renewal */

.subscription-cta.pending-plan {
  background:
    linear-gradient(
      135deg,
      #ffcc00,
      #ffaa00
    );

  color: #170900;

  opacity: 0.78;

  box-shadow:
    0 10px 24px
    rgba(
      255,
      170,
      0,
      0.16
    );
}

/* ====================================================
   SUBSCRIPTION CHECKOUT STATE
==================================================== */

.subscription-cta:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
  filter: none;
}

.subscription-cta:disabled:not(.current-plan):not(.pending-plan) {
  cursor: wait;
}

/* ====================================================
   SUBSCRIPTION FAQ / Q&A
==================================================== */

.subscription-faq {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 980px;

  margin: 64px auto 10px;
}


/* -----------------------------
   FAQ HEADER
----------------------------- */

.subscription-faq-header {
  text-align: center;

  max-width: 700px;

  margin: 0 auto 28px;
}


.subscription-faq-kicker {
  display: inline-block;

  margin-bottom: 10px;

  font-size: 0.76rem;
  font-weight: 800;

  letter-spacing: 0.16em;

  text-transform: uppercase;

  color: #d7b8ff;
}


.subscription-faq-header h2 {
  margin: 0;

  font-size: clamp(
    1.8rem,
    3vw,
    2.35rem
  );

  line-height: 1.15;

  color: #ffffff;

  text-shadow:
    0 2px 16px
    rgba(0, 0, 0, 0.55);
}


.subscription-faq-header p {
  max-width: 620px;

  margin: 12px auto 0;

  font-size: 0.98rem;
  line-height: 1.6;

  color:
    rgba(
      255,
      255,
      255,
      0.76
    );
}


/* -----------------------------
   FAQ LIST
----------------------------- */

.subscription-faq-list {
  display: flex;
  flex-direction: column;

  gap: 12px;

  width: 100%;
}


/* -----------------------------
   FAQ ITEM
----------------------------- */

.subscription-faq-item {
  position: relative;

  overflow: hidden;

  width: 100%;

  border:
    1px solid
    rgba(
      185,
      135,
      255,
      0.24
    );

  border-radius: 12px;

  background:
    linear-gradient(
      145deg,
      rgba(28, 18, 42, 0.88),
      rgba(12, 10, 20, 0.94)
    );

  box-shadow:
    0 12px 28px
    rgba(0, 0, 0, 0.36),
    inset 0 1px 0
    rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}


.subscription-faq-item:hover {
  border-color:
    rgba(
      196,
      151,
      255,
      0.48
    );

  box-shadow:
    0 16px 34px
    rgba(0, 0, 0, 0.42),
    0 0 20px
    rgba(129, 70, 190, 0.10),
    inset 0 1px 0
    rgba(255, 255, 255, 0.06);
}


/* -----------------------------
   QUESTION / SUMMARY
----------------------------- */

.subscription-faq-item summary {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  min-height: 66px;

  padding: 18px 20px;

  list-style: none;

  cursor: pointer;

  user-select: none;
  -webkit-user-select: none;

  color: #ffffff;
}


.subscription-faq-item summary::-webkit-details-marker {
  display: none;
}


.subscription-faq-item summary::marker {
  display: none;
  content: "";
}


.subscription-faq-question {
  flex: 1 1 auto;

  min-width: 0;

  font-size: 1rem;
  font-weight: 700;

  line-height: 1.45;

  color: #ffffff;
}


.subscription-faq-item summary:hover
.subscription-faq-question {
  color: #eadcff;
}


.subscription-faq-item summary:focus-visible {
  outline:
    2px solid
    rgba(
      196,
      151,
      255,
      0.9
    );

  outline-offset: -3px;

  border-radius: 10px;
}


/* -----------------------------
   PLUS ICON
----------------------------- */

.subscription-faq-icon {
  position: relative;

  flex: 0 0 32px;

  width: 32px;
  height: 32px;

  border-radius: 50%;

  border:
    1px solid
    rgba(
      210,
      180,
      255,
      0.34
    );

  background:
    rgba(
      126,
      72,
      180,
      0.16
    );

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, 0.06);

  transition:
    transform 0.28s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.subscription-faq-icon::before,
.subscription-faq-icon::after {
  content: "";

  position: absolute;

  top: 50%;
  left: 50%;

  width: 13px;
  height: 2px;

  border-radius: 999px;

  background: #ffffff;

  transform:
    translate(-50%, -50%);

  transition:
    transform 0.28s ease;
}


.subscription-faq-icon::after {
  transform:
    translate(-50%, -50%)
    rotate(90deg);
}


/* -----------------------------
   OPEN STATE
----------------------------- */

.subscription-faq-item[open] {
  border-color:
    rgba(
      201,
      159,
      255,
      0.52
    );

  background:
    linear-gradient(
      145deg,
      rgba(45, 24, 66, 0.92),
      rgba(14, 10, 24, 0.96)
    );

  box-shadow:
    0 18px 38px
    rgba(0, 0, 0, 0.46),
    0 0 24px
    rgba(135, 74, 200, 0.12),
    inset 0 1px 0
    rgba(255, 255, 255, 0.06);
}


.subscription-faq-item[open]
.subscription-faq-icon {
  transform: rotate(45deg);

  border-color:
    rgba(
      220,
      195,
      255,
      0.68
    );

  background:
    rgba(
      139,
      79,
      201,
      0.30
    );

  box-shadow:
    0 0 14px
    rgba(160, 100, 220, 0.20),
    inset 0 1px 0
    rgba(255, 255, 255, 0.08);
}


/* -----------------------------
   ANSWER
----------------------------- */

.subscription-faq-answer {
  padding:
    0
    20px
    20px;

  border-top:
    1px solid
    rgba(
      255,
      255,
      255,
      0.07
    );

  animation:
    subscriptionFaqOpen
    0.28s
    ease
    both;
}


.subscription-faq-answer p {
  margin:
    18px
    0
    0;

  font-size: 0.94rem;
  line-height: 1.7;

  color:
    rgba(
      255,
      255,
      255,
      0.78
    );
}


@keyframes subscriptionFaqOpen {
  from {
    opacity: 0;
    transform:
      translateY(-5px);
  }

  to {
    opacity: 1;
    transform:
      translateY(0);
  }
}

/* ====================================================
   FOOTER
==================================================== */
footer {
  text-align: center;
  padding: 10px;
  background: #333333;
  color: #ffffff;
}

/* Footer links – always visible, no purple visited */
footer a,
footer a:visited,
footer a:active {
  color: #ffffff;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

/* Soft underline, animates out from the centre */
footer a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;            /* slight gap under text */
  width: 0;
  height: 2px;
  background: #8a089b;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease-out, width 0.25s ease-out, opacity 0.25s ease-out;
  opacity: 0;
}

footer a:hover::after {
  width: 100%;
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

@media (min-width: 901px) and (max-width: 1150px) {
  .subscription-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

/* ====================================================
   RESPONSIVE
==================================================== */
@media (max-width: 900px) {
  main {
    padding-top: 130px;
    padding-bottom: 50px;
  }

  .subscription-grid {
    grid-template-columns: 1fr;
  }

  .featured-tier {
    transform: none;
  }

  .featured-tier:hover {
    transform: translateY(-6px);
  }

  .terms-container {
    padding: 24px 16px 30px;
  }

  .subscription-card {
    min-height: auto;
  }

  .subscription-hero {
    margin-bottom: 24px;
    text-align: left;
  }

  .subscription-trust-row {
    justify-content: flex-start;
  }

  /* Side menu – half-width, slides in from the right */
  .menu {
    width: 50vw;
    right: -50vw;

    /* 🔹 override desktop background on mobile */
    background: transparent;
  }

  .menu.open {
    right: 0;
  }

   /* 🔹 Single gradient background: old purple colour, strong fade to transparent at bottom */
  .menu::before {
    content: "";
    position: absolute;
    inset: 0;  /* fill entire menu area */
    z-index: -1;

    background: linear-gradient(
      to bottom,
      rgba(75, 0, 130, 0.9) 0%,    /* old purple, almost solid at top */
      rgba(75, 0, 130, 0.7) 40%,   /* match var(--purple-glass) mid-way */
      rgba(75, 0, 130, 0.0) 100%   /* fully transparent at bottom */
    );
  }

  .subscription-faq {
  margin-top: 46px;
}


.subscription-faq-header {
  margin-bottom: 22px;
  text-align: left;
}


.subscription-faq-header p {
  margin-left: 0;
  margin-right: 0;
}


.subscription-faq-item summary {
  min-height: 62px;
  padding: 16px 16px;
}


.subscription-faq-question {
  font-size: 0.94rem;
}


.subscription-faq-answer {
  padding:
    0
    16px
    17px;
}


.subscription-faq-answer p {
  margin-top: 15px;
  font-size: 0.9rem;
}


.subscription-faq-icon {
  flex-basis: 30px;

  width: 30px;
  height: 30px;
}

.entry-stack-section {
  margin-top: 48px;
}


.entry-stack-header {
  margin-bottom: 22px;

  text-align: left;
}


.entry-stack-header p {
  margin-left: 0;
  margin-right: 0;
}


.entry-stack-tabs {
  gap: 4px;
  padding: 4px;
}


.entry-stack-tab {
  min-height: 40px;

  padding: 8px 4px;

  font-size: 0.76rem;
}


.entry-stack-card {
  padding: 20px 16px;
}


.entry-stack-card-header {
  align-items: flex-start;

  gap: 14px;
}


.entry-stack-card h3 {
  font-size: 1.3rem;
}


.entry-stack-monthly-badge {
  min-width: 96px;

  padding: 9px 10px;
}


.entry-stack-monthly-badge strong {
  font-size: 1.15rem;
}


.entry-stack-monthly-badge span {
  font-size: 0.62rem;
}


.entry-stack-card-description {
  margin:
    16px
    0
    20px;
}


.entry-stack-progress {
  gap: 11px;
}


.entry-stack-row {
  padding: 13px 13px;
}


.entry-stack-total {
  margin-top: 18px;

  text-align: center;

  font-size: 0.82rem;
}

}
  /* ====================================================
   MOBILE HEADER — EXACT WHEEL POSITIONING
==================================================== */

@media (max-width: 768px) {

  header {
    position: fixed;
    inset: 0 0 auto 0;

    width: 100%;
    height: 60px;
    min-height: 60px;

    padding: 10px 8px;

    box-sizing: border-box;
    overflow: visible;
  }

  header.hidden {
    top: 0;
    transition: none;
  }

  .header-inner {
    width: 100%;
    max-width: 100%;

    height: 40px;
    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 6px;

    padding: 0;
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: 0;

    margin: 0;

    position: relative;
    box-sizing: border-box;
  }

  .site-title {
    position: static;
    left: auto;
    transform: none;

    margin: 0;

    flex: 0 1 auto;
    min-width: 0;

    font-size: 1.35rem;
    line-height: 1;
    letter-spacing: 0.35px;

    text-align: left;
    white-space: nowrap;
  }

  .header-buttons {
    position: static;

    margin-left: auto;
    margin-right: -8px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 6px;

    height: 40px;
    min-height: 40px;

    padding: 0;

    flex: 0 0 auto;
  }

.credit-pill {
  height: 28px;
  min-height: 28px;
  padding: 0 6px;
  font-size: 0.64rem;
  line-height: 28px;
  max-width: 74px;
  box-sizing: border-box;
}

  .header-icon-group {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 6px;

    height: 40px;
    min-height: 40px;

    padding: 0;
    margin: 0;
  }

  #loggedOutHeaderGroup,
#loggedInHeaderGroup {
  display: flex;
  align-items: center;
  gap: 6px;

  min-width: 0;

  flex: 0 1 auto;

  padding: 0;
  margin: 0;

  box-sizing: border-box;
}

#loggedOutHeaderGroup .header-auth-btn,
#loggedInHeaderGroup .header-auth-btn {
  height: 28px;
  min-height: 28px;

  padding: 0 6px;

  font-size: 0.62rem;
  line-height: 28px;

  flex: 0 1 auto;

  min-width: 0;
  width: auto;

  white-space: nowrap;

  box-sizing: border-box;
}

  .icon-btn,
  .cart-btn,
  .login-btn,
  .menu-btn {
    width: 28px;
    min-width: 28px;

    height: 28px;
    min-height: 28px;

    flex: 0 0 28px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
  }

  .icon-btn svg,
  .cart-btn svg,
  .menu-btn svg {
    width: 18px;
    height: 18px;
  }

  .login-btn img {
    width: 18px;
    height: 18px;
    display: block;
  }

  .menu-btn {
    font-size: 18px;
  }
}
