/* ====================================================
   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;

  /* Shared desktop header 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;

  /* Shared desktop header 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);
}



/* ====================================================
   ACCOUNT MANAGEMENT CONTENT
==================================================== */
.account-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 30px 42px;

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

  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);

  position: relative;
  overflow: hidden;
}

.account-container::before {
  content: "";
  position: absolute;
  top: -170px;
  right: -150px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(118, 77, 255, 0.24) 0%,
      rgba(75, 0, 130, 0.08) 44%,
      transparent 70%
    );
  pointer-events: none;
}

.account-hero {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.account-kicker,
.account-card-kicker,
.account-summary-label {
  color: #cbb8ff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.account-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(131, 92, 255, 0.12);
  border: 1px solid rgba(177, 151, 255, 0.30);
}

.account-hero h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 0 28px rgba(150, 92, 255, 0.42);
}

.account-hero p {
  max-width: 650px;
  margin: 15px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.65;
}

.account-signed-out {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 10px auto 0;
  padding: 38px 30px;
  text-align: center;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.09),
      rgba(255, 255, 255, 0.035)
    );

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

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.account-signed-out[hidden],
.account-dashboard[hidden] {
  display: none !important;
}

.account-signed-out-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #e6dcff;
  background: rgba(123, 83, 255, 0.13);
  border: 1px solid rgba(184, 160, 255, 0.25);
}

.account-signed-out h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.account-signed-out p {
  margin: 0 auto 22px;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.account-dashboard {
  position: relative;
  z-index: 1;
}

.account-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 22px;

  background:
    linear-gradient(
      135deg,
      rgba(120, 82, 255, 0.16),
      rgba(255, 255, 255, 0.045) 48%,
      rgba(0, 0, 0, 0.18)
    );

  border: 1px solid rgba(205, 188, 255, 0.20);
  border-radius: 18px;

  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.account-summary-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-avatar {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;

  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;

  background:
    linear-gradient(
      145deg,
      rgba(150, 112, 255, 0.88),
      rgba(70, 25, 150, 0.92)
    );

  border: 1px solid rgba(235, 226, 255, 0.52);

  box-shadow:
    0 0 22px rgba(132, 86, 255, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

.account-summary-copy {
  min-width: 0;
}

.account-summary-copy h3 {
  margin: 5px 0 4px;
  font-size: 1.45rem;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.account-summary-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.70);
  overflow-wrap: anywhere;
}

.account-summary-side {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.account-credit-box {
  min-width: 170px;
  padding: 12px 16px;
  border-radius: 12px;

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

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

.account-credit-box span {
  display: block;
  margin-bottom: 4px;
  color: rgba(229, 255, 240, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-credit-box strong {
  color: #eafff5;
  font-size: 1.35rem;
}

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

.account-card {
  min-width: 0;
  padding: 24px;
  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.025)
    );

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

  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

.account-card--security {
  grid-column: 1 / -1;
}

.account-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.account-card-heading h3 {
  margin: 5px 0 0;
  color: #ffffff;
  font-size: 1.2rem;
}

.account-card-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #d9cdff;
  background: rgba(124, 83, 255, 0.10);
  border: 1px solid rgba(193, 172, 255, 0.18);
}

.account-detail-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.account-detail-row {
  min-height: 58px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(115px, 0.65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 14px;
  background: rgba(8, 5, 16, 0.54);
}

.account-detail-row span {
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.82rem;
}

.account-detail-row strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.account-card-description {
  max-width: 620px;
  margin: -4px 0 18px;
  color: rgba(255, 255, 255, 0.67);
  line-height: 1.55;
}

/* ====================================================
   MORE SETTINGS DROPDOWN
==================================================== */

.account-more-settings {
  width: 100%;
  margin-top: 22px;

  overflow: hidden;

  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.065),
      rgba(255, 255, 255, 0.025)
    );

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

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


.account-more-settings-toggle {
  min-height: 72px;

  width: 100%;

  display: flex;
  align-items: center;

  padding: 0 20px;

  cursor: pointer;
  user-select: none;

  list-style: none;

  transition:
    background 0.2s ease;
}


.account-more-settings-toggle::-webkit-details-marker {
  display: none;
}


.account-more-settings-toggle::marker {
  content: "";
}


.account-more-settings-toggle:hover {
  background:
    rgba(255, 255, 255, 0.045);
}


.account-more-settings-copy {
  display: flex;
  flex-direction: column;

  gap: 4px;
}


.account-more-settings-title {
  color: #ffffff;

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


.account-more-settings-subtitle {
  color:
    rgba(255, 255, 255, 0.55);

  font-size: 0.78rem;
}


/* Custom arrow */

.account-more-settings-toggle::after {
  content: "";

  width: 9px;
  height: 9px;

  margin-left: auto;

  border-right:
    2px solid
    rgba(215, 198, 255, 0.9);

  border-bottom:
    2px solid
    rgba(215, 198, 255, 0.9);

  transform:
    rotate(45deg);

  transition:
    transform 0.22s ease;
}


.account-more-settings[open]
.account-more-settings-toggle::after {
  transform:
    rotate(225deg);
}


.account-more-settings[open]
.account-more-settings-toggle {
  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.08);
}


.account-more-settings-panel {
  padding: 18px;

  animation:
    accountMoreSettingsOpen
    0.22s ease;
}


.account-more-settings-panel
.account-card--membership {
  margin: 0;
}


@keyframes accountMoreSettingsOpen {

  from {
    opacity: 0;

    transform:
      translateY(-5px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }
}

/* ====================================================
   MEMBERSHIP MANAGEMENT
==================================================== */

.account-card [hidden] {
  display: none !important;
}


.account-membership-status {
  justify-self: end;

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

  width: fit-content;
  min-height: 28px;

  padding: 4px 10px;

  border-radius: 999px;

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

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

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


.account-membership-status.is-active {
  color: #dfffee;

  border-color:
    rgba(95, 235, 160, 0.34);

  background:
    rgba(39, 145, 92, 0.14);
}


.account-membership-status.is-cancelling {
  color: #fff1c8;

  border-color:
    rgba(255, 199, 92, 0.34);

  background:
    rgba(163, 106, 18, 0.16);
}


.account-membership-status.is-cancelled {
  color: #ffdce4;

  border-color:
    rgba(255, 124, 150, 0.24);

  background:
    rgba(130, 24, 48, 0.16);
}


.account-membership-status.is-warning {
  color: #ffe6ba;

  border-color:
    rgba(255, 183, 82, 0.26);

  background:
    rgba(122, 73, 12, 0.16);
}


.account-membership-status.is-none {
  color:
    rgba(255, 255, 255, 0.72);

  border-color:
    rgba(255, 255, 255, 0.12);

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


.account-membership-actions {
  margin-top: 18px;
}


.account-membership-note {
  margin: 14px 0 0;

  max-width: 760px;

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

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


.account-link-btn {
  display: inline-flex;

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

  text-decoration: none;
}


#membershipCancelConfirmModal
.account-modal-note {
  color:
    rgba(255, 255, 255, 0.68);

  font-size: 0.86rem;
  line-height: 1.5;
}

.account-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-primary-btn,
.account-secondary-btn,
.account-danger-btn {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;

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

.account-primary-btn {
  color: #ffffff;
  background:
    linear-gradient(135deg, #6f42ff, #9a6dff);
  border: 1px solid rgba(206, 188, 255, 0.55);
  box-shadow: 0 10px 24px rgba(93, 48, 205, 0.28);
}

.account-secondary-btn {
  color: #f7f2ff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.account-danger-btn {
  color: #ffdce4;
  background: rgba(130, 24, 48, 0.16);
  border: 1px solid rgba(255, 124, 150, 0.22);
}

.account-primary-btn:hover,
.account-secondary-btn:hover,
.account-danger-btn:hover {
  transform: translateY(-1px);
}

.account-primary-btn:hover {
  box-shadow: 0 12px 28px rgba(113, 67, 229, 0.38);
}

.account-secondary-btn:hover {
  color: #dff5ff;
  border-color: rgba(143, 216, 255, 0.28);
  background: rgba(143, 216, 255, 0.08);
}

.account-danger-btn:hover {
  color: #ffb5c5;
  border-color: rgba(255, 124, 150, 0.34);
  background: rgba(130, 24, 48, 0.23);
}

.account-primary-btn:disabled,
.account-secondary-btn:disabled,
.account-danger-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.account-refresh-btn {
  min-width: 132px;
}

@media (max-width: 900px) {
  main {
    padding-top: 110px;
    padding-bottom: 40px;
  }

  .account-container {
    width: min(100% - 24px, 760px);
    padding: 26px 18px 30px;
  }

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

  .account-hero p {
    margin-left: 0;
    margin-right: 0;
  }

  .account-summary-card {
    align-items: stretch;
    flex-direction: column;
  }

  .account-summary-side {
    width: 100%;
  }

  .account-credit-box,
  .account-refresh-btn {
    flex: 1 1 0;
  }

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

  .account-card--security {
    grid-column: auto;
  }

  .menu {
    width: 50vw;
    right: -50vw;
    background: transparent;
  }

  .menu.open {
    right: 0;
  }

  .menu::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
      to bottom,
      rgba(75, 0, 130, 0.9) 0%,
      rgba(75, 0, 130, 0.7) 40%,
      rgba(75, 0, 130, 0.0) 100%
    );
  }
}

@media (max-width: 600px) {
  .account-container {
    width: calc(100% - 16px);
    padding: 22px 13px 24px;
    border-radius: 16px;
  }

  .account-hero h2 {
    font-size: 2rem;
  }

  .account-summary-card,
  .account-card,
  .account-signed-out {
    padding: 18px 15px;
  }

  .account-avatar {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .account-summary-copy h3 {
    font-size: 1.18rem;
  }

  .account-summary-side {
    flex-direction: column;
  }

  .account-credit-box,
  .account-refresh-btn {
    width: 100%;
  }

  .account-detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

.account-membership-status {
  justify-self: start;
}

  .account-action-stack {
    flex-direction: column;
  }

  .account-action-stack button {
    width: 100%;
  }
}
/*
   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,
#membershipCancelConfirmModal .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,
#membershipCancelConfirmModal .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,
#membershipCancelConfirmModal
.modal-confirm p {
  margin: 0 0 18px;

  font-size: 0.95rem;

  opacity: 0.9;
}

#logoutConfirmModal
.modal-confirm-actions,
#membershipCancelConfirmModal
.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;
  }
}

/* ====================================================

/* ====================================================
   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;
}



  /* ====================================================
   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;
  }
}
