/* ====================================================
   ✅ GLOBAL VARIABLES (CSS Custom Properties)
==================================================== */
:root {
  --purple: #4b0082;
  --purple-glass: rgba(75, 0, 130, 0.4);
  --purple-deep: rgba(75, 0, 130, 0.9);
  --white: #ffffff;
  --hover-glow: rgba(255, 255, 255, 0.2);
  --modal-backdrop: rgba(0, 0, 0, 0.6);
  --green: #3ad169;
}

/* ✅ Hard reset to kill edge gaps everywhere */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  position: relative;
  background: #05000a;
  color: #fff;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  touch-action: pan-y pinch-zoom;
}

/* ✅ Background image layer (keep) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;

   background-image: image-set(
    url("/Photos/background/desktopbackground.webp") 1x,
    url("/Photos/background/desktopbackground.webp") 2x
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* CSS safety net */
#creditPill,
#cartBtn,
#loginBtn,
#depositBtn,
#loggedInHeaderGroup {
  display: none;
}

#loggedOutHeaderGroup {
  display: flex;
}

/* === Glass Header with Gloss === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 60px; /* or whatever your original height was */
  z-index: 3000;
  background: rgba(75, 0, 130, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: top 0.5s ease-in-out;
}

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

header * {
  position: relative;
  z-index: 1;
}

header.hidden {
  top: -90px;
  transition: top 0.6s ease-in-out;
}

header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--white);
  margin: 0;
  flex-grow: 1;
  text-align: center;
}



/* Center the title visually */
.site-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  margin: 0;
  white-space: nowrap;
  line-height: 1;
}

/* Right-aligned button group */
.header-buttons {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 10;
}


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

/* 💰 Credit balance pill in header */
.credit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 12px;
  border-radius: 999px;           /* pill shape */
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;

  /* Soft darker green glass */
  background: radial-gradient(
    circle at top left,
    rgba(72, 225, 146, 0.32),
    rgba(24, 120, 72, 0.32)
  );
  border: 1px solid rgba(72, 225, 146, 0.95);
  color: #eafff5;

  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 0 14px rgba(72, 225, 146, 0.75);
}

/* Default: assume logged OUT; JS will flip if token is present */
#loggedInHeaderGroup {
  display: none;
}

#loggedOutHeaderGroup {
  display: flex;
}

/* 🎁 Signup offer modal (wheel page) */
.modal-offer{
  max-width: 420px;
  text-align: center;
}

.modal-offer .offer-small{
  margin-top: 10px;
  font-size: 0.82rem;
  opacity: 0.75;
}

.modal-offer .offer-text{
  margin: 8px 0 14px;
  font-size: 0.98rem;
  opacity: 0.92;
}
.modal-offer .offer-text strong{
  color: var(--green);
  text-shadow: 0 0 10px rgba(58, 209, 105, 0.35);
}
@media (max-width: 600px){
  .modal-offer{ max-width: 340px; }
}

/* Header Login / Register buttons (logged-out state) */
.header-auth-btn {
  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: 1px;
  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;
}

.header-auth-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  color: #ffcc00;
}


/* Register button – blue primary with soft glow */
.header-auth-btn--primary {
  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);
  position: relative;
  overflow: hidden;
}

/* Subtle “practical” edge highlight when hovering */
.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;
}

/* Hover: slightly brighter + stronger glow */
.header-auth-btn--primary:hover {
  background: linear-gradient(135deg, #3a8bff, #52d8ff);
  box-shadow:
    0 0 10px rgba(80, 180, 255, 0.9),
    0 0 20px rgba(82, 216, 255, 0.6);
  border-color: #bfe6ff;
}


/* 🔘 Deposit Button (already present, unchanged) */
/* 🔘 Deposit Button – gold primary, green highlight */
.deposit-btn {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 230, 180, 0.9);
  background: linear-gradient(135deg, #b8860b, #ffd700);
  color: #141814;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;

  box-shadow:
    0 0 6px rgba(255, 215, 0, 0.7),
    0 0 14px rgba(184, 134, 11, 0.5);

  position: relative;
  overflow: hidden;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease;
}

/* Inner rim like the Register button */
.deposit-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

/* Hover/press – brighter gold + green text */
.deposit-btn:hover,
.deposit-btn:active {
  background: linear-gradient(135deg, #ffd700, #ffe87c);
  color: #209e4a; /* ✅ green text highlight */
  border-color: #fff3c2;
  box-shadow:
    0 0 10px rgba(255, 215, 0, 0.9),
    0 0 20px rgba(255, 248, 184, 0.7);
  transform: translateY(-1px);
}

/* 🔽 Popup Container (now fixed to viewport) */
.deposit-options {
  position: fixed;
  top: 70px; /* 👈 Below your header height */
  right: 140px; /* 👈 Adjust based on your layout */
  background: rgba(75, 0, 130, 0.95);
  border: 1px solid white;
  padding: 15px;
  border-radius: 10px;
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  min-width: 180px;
}

/* Show modal (JS toggles this) */
.deposit-options.show {
  display: flex;
}

/* Label */
.deposit-options h4 {
  margin: 0;
  color: white;
  font-size: 16px;
  font-weight: bold;
}

/* Button Row */
.deposit-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 🔄 4 buttons per row */
  gap: 10px;
  justify-items: center;
}

.deposit-buttons button {
  background: #222;
  border: 1px solid white;
  color: white;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.deposit-buttons button:hover {
  background: #00bfff;
  color: black;
}

.payment-security-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.payment-security-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.payment-security-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #3ad169; /* green shield/tick */
  filter: drop-shadow(0 0 3px rgba(58, 209, 105, 0.7));
}

.payment-security-text { white-space: normal; }


.payment-security-brands {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-brand-block {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* actual logo images */
.brand-logo-img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.35));
}

.brand-name {
  font-size: 10px;
}

.brand-logo-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.35));
}

/* Slightly larger Shopify logo only */
.brand-logo-img[alt="Shopify"] {
  width: 35px;
  height: 35px;
}


.brand-logo-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.payment-brand-block {
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-name {
  font-size: 10px;
}

/* Slightly larger shopify logo */
.brand-logo-img[alt="Shopify"] {
  width: 20px;
  height: 20px;
  /* transform: translateY(8px); /* height control */
}

/* 🔷 Custom Deposit Label Styled Like a Button */
.custom-label {
  background: #222;
  border: 1px solid white;
  color: white;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: default;
  transition: all 0.2s ease-in-out;
  font-size: 14px;
  text-transform: uppercase;
  opacity: 1;
  pointer-events: auto; /* ✅ Allow hover, block clicks */
}

/* Match other button hover effects */
.custom-label:hover {
  background: #00bfff;
  color: black;
}


/* Disabled look for deposit button when logged out */
#depositBtn.disabled,
#depositBtn[disabled]{
  opacity: 0.5;
  cursor: not-allowed;
  /* keep pointer-events so the JS can intercept and open the login modal */
  pointer-events: auto;
}


/* Left section (can be empty) */

.header-left {
  flex: 0;
}

/* Title and deposit inline, centered */
.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-shrink: 0;
}

/* === Menu Button === */
.menu-btn {
  font-size: 20px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--white);
  border-radius: 1px;
  background-color: transparent;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: static;
  transform: none;
  box-sizing: border-box;
}

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

/* === Side Menu === */
.menu {
  position: fixed;
  top: 0;
  right: -270px;
  width: 270px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 70px;
  background: var(--purple-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: right 0.3s ease;
  z-index: 5000;
  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 (5000), above page content */
  display: none;
}

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


.menu.open {
  right: 0;
  animation: slideInRight 0.4s ease forwards;
}

.menu.closing {
  animation: slideOutRight 0.4s ease forwards;
}

.menu .close-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 26px;
  color: var(--white);
  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);
}

/* ====================================================
   HERO REDESIGN
==================================================== */

.hero.hero--redesign {
  position: relative;
  padding: 118px 22px 34px;
  min-height: auto;
  display: block;
  text-align: unset;
}

.hero-shell {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 40px;
  padding: 26px 26px 30px;
  border: none;
  background: transparent;
  box-shadow: none;
}

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

.hero-title.hero-title--redesign {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 4.7vw, 4.2rem);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow:
    0 4px 16px rgba(0,0,0,0.42),
    0 0 18px rgba(255,255,255,0.10);
}

.hero-title.hero-title--redesign span {
  color: #ffd666;
  text-shadow:
    0 0 16px rgba(255, 204, 51, 0.32),
    0 3px 10px rgba(0,0,0,0.35);
}

.hero-tagline {
  margin: 0 0 22px;
  font-size: clamp(1rem, 1.35vw, 1.45rem);
  font-style: italic;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.hero--redesign .hero-deposit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  min-width: 310px;
  padding: 16px 38px;
  border-radius: 18px;
  border: 2px solid rgba(255, 238, 175, 0.92);
  background: linear-gradient(180deg, #ffe57b 0%, #ffbc26 42%, #e48a00 100%);
  color: #3a2500;
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 0 0 2px rgba(140, 80, 0, 0.45),
    0 0 22px rgba(255, 190, 50, 0.55),
    0 10px 26px rgba(0,0,0,0.42),
    inset 0 2px 0 rgba(255,255,255,0.55),
    inset 0 -3px 0 rgba(125, 70, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.hero--redesign .hero-deposit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.hero--redesign .hero-deposit-btn:active {
  transform: translateY(0);
}

.hero--redesign .hero-arrow {
  font-size: 1.15em;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-1px);
  margin-left: 8px;
}

.trust-card.trust-card--hero {
  margin: 0 auto;
  max-width: 430px;
}

.hero-stage {
  position: relative;
  min-height: 355px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 40px;
}

.hero-stage-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  will-change: transform, opacity, filter, width;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition:
    width 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease,
    filter 0.55s ease;
}

.hero-stage-item--center {
  width: 320px;
  z-index: 5;
  opacity: 0.95;
  transform: translate(-40%, -42%) scale(1);
}

.hero-stage-item--left {
  width: 198px;
  z-index: 3;
  opacity: 0.3;
  transform: translate(-150%, -40%) scale(0.78);
}

.hero-stage-item--right {
  width: 198px;
  z-index: 3;
  opacity: 0.3;
  transform: translate(65%, -40%) scale(0.78);
}

.hero-stage-item--far-left {
  width: 134px;
  z-index: 2;
  opacity: 0.12;
  transform: translate(-245%, -40%) scale(0.66);
}

.hero-stage-item--far-right {
  width: 134px;
  z-index: 2;
  opacity: 0.12;
  transform: translate(175%, -40%) scale(0.66);
}

.hero-stage-item--center img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: scale(0.72);
  transform-origin: center center;
}

.hero-stage-item--left img,
.hero-stage-item--right img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: scale(0.78);
  transform-origin: center center;
}

.hero-stage-item--far-left img,
.hero-stage-item--far-right img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: scale(0.82);
  transform-origin: center center;
}

.hero-stage-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  font-size: 2.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 30;
  pointer-events: auto;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.hero-stage-arrow:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.42);
  box-shadow: 0 10px 22px rgba(0,0,0,0.42);
}

.hero-stage-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.hero-stage-arrow--left {
  left: 0;
}

.hero-stage-arrow--right {
  right: 0;
}

.free-demo-cta-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -8px auto 18px;
  position: relative;
  z-index: 4;
}

.free-demo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-width: 220px;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;

  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;

  color: #06140a;
  background:
    linear-gradient(180deg, #9dffb8 0%, #3ad169 45%, #159341 100%);

  border: 1px solid rgba(215, 255, 225, 0.95);

  box-shadow:
    0 0 0 2px rgba(10, 80, 35, 0.45),
    0 0 18px rgba(58, 209, 105, 0.65),
    0 10px 24px rgba(0, 0, 0, 0.38),
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 0 rgba(0, 75, 28, 0.28);

  position: relative;
  overflow: hidden;

  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease;
}

.free-demo-cta::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.free-demo-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 0 0 2px rgba(10, 80, 35, 0.5),
    0 0 24px rgba(58, 209, 105, 0.78),
    0 12px 28px rgba(0, 0, 0, 0.42),
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 -3px 0 rgba(0, 75, 28, 0.3);
}

.free-demo-cta:active {
  transform: translateY(0);
}

.free-demo-cta__arrow {
  font-size: 1.35em;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-1px);
}

/* ====================================================
   HOW IT WORKS
==================================================== */

.how-it-works {
  position: relative;
  padding: 6px 22px 16px;
  z-index: 3;
}

.how-it-works__inner {
  position: relative;
  z-index: 3;
  max-width: 1380px;
  margin: 0 auto;
  padding: 6px 14px 10px;
  border-top: none;
  border-bottom: none;
  background: transparent;
  box-shadow: none;
}

.how-it-works__heading {
  position: relative;
  text-align: center;
  margin-bottom: 22px;
  padding: 8px 0 2px;
}

.how-it-works__heading::before,
.how-it-works__heading::after {
  content: "";
  position: absolute;
  top: 40px;
  width: clamp(90px, 18vw, 220px);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,170,255,0.75) 35%,
    rgba(255,190,255,1) 70%,
    rgba(255,210,255,0.35) 100%
  );
  box-shadow:
    0 0 10px rgba(255,170,255,0.55),
    0 0 20px rgba(255,120,255,0.25);
  pointer-events: none;
}

.how-it-works__heading::before {
  left: 0;
}

.how-it-works__heading::after {
  right: 0;
  transform: scaleX(-1);
}

.how-it-works__heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3.9vw, 3.9rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #f3ecff;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(255,255,255,0.35),
    0 4px 0 rgba(120, 70, 150, 0.85),
    0 10px 18px rgba(0,0,0,0.38),
    0 0 18px rgba(255,255,255,0.10);
}

.how-it-works__heading p {
  margin: 10px 0 0;
  font-size: clamp(1.1rem, 1.55vw, 1.9rem);
  font-style: italic;
  font-weight: 700;
  color: rgba(255,255,255,0.98);
  text-shadow:
    0 2px 8px rgba(0,0,0,0.35),
    0 0 12px rgba(255,255,255,0.08);
}

.how-it-works__grid {
  display: grid;
  grid-template-columns: minmax(280px, 430px) auto minmax(280px, 430px) auto minmax(280px, 430px);
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.how-card {
  position: relative;
  min-height: 0;
  padding: 14px 18px 18px;
  border-radius: 22px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.09) 0%, rgba(180, 95, 235, 0.08) 30%, rgba(22, 8, 45, 0.72) 100%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(255,255,255,0.05),
    0 10px 22px rgba(0,0,0,0.34),
    0 0 22px rgba(255, 165, 70, 0.08);
  overflow: hidden;
}

.how-card::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

.how-card::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.10);
  pointer-events: none;
}

.how-card__image {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.how-card__image img {
  max-width: 100%;
  max-height: 145px;
  object-fit: contain;
  filter: drop-shadow(0 20px 22px rgba(0,0,0,0.38));
}

/* fine-tune image centring inside each HOW IT WORKS card */
.how-card:nth-child(1) .how-card__image img {
  transform: translateX(55px);
}

.how-card:nth-child(3) .how-card__image img {
  transform: translateX(55px);
}

.how-card:nth-child(5) .how-card__image img {
  transform: translateX(55px);
}

.how-card h3 {
  margin: 4px 0 2px;
  font-size: clamp(1.5rem, 2vw, 2.25rem);
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 3px 10px rgba(0,0,0,0.42);
}

.how-card p {
  margin: 8px 0 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

.how-arrow {
  font-size: 4rem;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 0 14px rgba(255,255,255,0.18);
}

/* ====================================================
   RESPONSIVE
==================================================== */

@media (max-width: 1150px) {
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-copy {
    max-width: 860px;
  }

  .hero-stage {
    min-height: 290px;
  }

  .hero-stage-items {
    max-width: 560px;
    height: 280px;
  }

  .hero-stage-item--center { width: 230px; }
  .hero-stage-item--left { width: 165px; transform: translate(-165%, -45%) scale(0.84); }
  .hero-stage-item--right { width: 155px; transform: translate(82%, -43%) scale(0.82); }
  .hero-stage-item--far-left { width: 110px; transform: translate(-255%, -46%) scale(0.7); }
  .hero-stage-item--far-right { width: 105px; transform: translate(190%, -44%) scale(0.68); }

  .how-it-works__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .how-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .how-it-works__heading {
    transform: translateY(-50px);
  }

  .how-it-works__grid {
    transform: translateY(-34px);
  }

  .site-info-cta-wrap {
    margin-top: 12px;
    transform: translateY(-34px);
  }

  .site-info-cta {
    height: 42px;
    min-height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .how-it-works__heading::before,
  .how-it-works__heading::after,
  .giveaway-header::before,
  .giveaway-header::after {
    top: 28px;
    width: 70px;
    height: 3px;
  }
}

.site-info-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 45px;
}

.site-info-cta {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.site-info-cta:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-1px);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .hero.hero--redesign {
    padding: 96px 12px 20px;
  }

.hero-shell {
  padding: 18px 12px 20px;
  max-width: 100%;
  overflow-x: hidden;
}

  .hero-title.hero-title--redesign {
    font-size: 2.35rem;
  }

  .hero-tagline {
    font-size: 1.02rem;
    line-height: 1.45;
    padding: 0 6px;
  }

  .hero--redesign .hero-deposit-btn {
    min-width: 0;
    width: 100%;
    max-width: 330px;
    font-size: 1.35rem;
    padding: 14px 20px;
    border-radius: 16px;
  }

  .trust-card.trust-card--hero {
    width: 100%;
    max-width: 360px;
  }

.hero-stage {
  min-height: 205px;
  margin-top: -24px;
  padding: 0 30px;
  max-width: 100%;
  overflow-x: hidden;
  touch-action: pan-y;
}

  .hero-stage-items {
    height: 190px;
  }

  .hero-stage-item--center { width: 155px; }
  .hero-stage-item--left { width: 110px; transform: translate(-135%, -46%) scale(0.84); }
  .hero-stage-item--right { width: 104px; transform: translate(42%, -45%) scale(0.82); }
  .hero-stage-item--far-left { width: 70px; transform: translate(-215%, -46%) scale(0.72); }
  .hero-stage-item--far-right { width: 66px; transform: translate(150%, -45%) scale(0.68); }

  .hero-stage-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.65rem;
  }

  .free-demo-cta-wrap {
    margin: -14px auto 8px;
  }

  .free-demo-cta {
    width: calc(100% - 70px);
    max-width: 300px;
    height: 44px;
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.98rem;
    box-sizing: border-box;
  }

  .how-it-works {
    padding: 18px 12px 10px;
  }

  .how-it-works__inner {
    padding: 24px 0 8px;
  }

  .how-card {
    min-height: auto;
    padding: 16px 14px 18px;
  }

  .how-card__image {
    height: 120px;
  }

  .how-card__image img {
    max-height: 112px;
  }

  .how-card h3 {
    font-size: 1.7rem;
  }

  .how-card p {
    font-size: 0.98rem;
  }
}

.site-info-cta {
  width: 100%;
  max-width: 280px;
  padding: 10px 14px;
  font-size: 0.92rem;
}


/* =========================
   TRUST / SECURITY CARD (MERGED + CLEAN)
   - No overrides / duplicates
   - Includes: tighter mockup sizing, silver double rim, gloss, chips (logo + label), compact ABN
   ========================= */

.trust-card{
  margin: 0 auto 0;
  max-width: 500px;
  width: calc(100% - 32px);

  background: radial-gradient(
    circle at 30% 15%,
    rgba(255,255,255,0.12) 0%,
    rgba(140, 45, 190, 0.18) 35%,
    rgba(0,0,0,0.58) 100%
  );

  border-radius: 20px;
  border: 1px solid rgba(235, 240, 248, 0.92);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.14),
    0 12px 28px rgba(0,0,0,0.55);

  padding: 8px 14px 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* inner glossy edge (double rim look) */
.trust-card::before{
  content:"";
  position:absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.22);
  pointer-events:none;
}

/* top gloss sweep */
.trust-card::after{
  content:"";
  position:absolute;
  left:-20%;
  top:-42%;
  width:140%;
  height:75%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.14),
    rgba(255,255,255,0.05),
    rgba(255,255,255,0)
  );
  transform: rotate(-2deg);
  pointer-events:none;
}

.trust-card-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
}

/* Main copy area */
.trust-main {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-card p{
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0.95;
}

/* Logos row - supports BOTH formats:
   A) old: 3 <img>
   B) new: <span class="pay-chip"><img><span>Label</span></span>
*/
.payment-logos{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 2px 0 4px;
}

/* Old format support */
.payment-logos > img{
  height: 20px;
  width: auto;
  object-fit: contain;

  filter:
    brightness(1.25)
    saturate(1.15)
    drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}

/* New format (mockup): logo + word chip */
.pay-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 999px;

  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.pay-chip img{
  height: 18px;
  width: auto;
  object-fit: contain;

  filter:
    brightness(1.25)
    saturate(1.15)
    drop-shadow(0 5px 10px rgba(0,0,0,0.35));
}

.pay-chip span{
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.92;
  white-space: nowrap;
}

/* ABN line */
.trust-main small{
  display:block;
  margin-top: 2px;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  opacity: 0.9;
}

/* Mobile */
@media (max-width: 520px) {
  .trust-card.trust-card--hero {
    width: calc(100% - 64px);
    max-width: 300px;
    padding: 12px 12px 10px;
  }

  .trust-card-inner {
    gap: 10px;
  }

.trust-main {
  width: 100%;
  padding-left: 0;
  padding-top: 0;
  align-items: center;
}

.payment-logos {
  width: 100%;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
}

  .pay-chip {
    padding: 4px 7px;
  }

  .pay-chip img {
    height: 15px;
  }

  .pay-chip span {
    font-size: 0.76rem;
  }

  .trust-card p {
    margin: 0 0 6px;
  }
}

/* ============================================
   ℹ️ Site Info Bar (Socials + ABN)
   - Sits below scroll-strip and above #giveaways
============================================ */
.site-info-bar {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 20px;
  box-sizing: border-box;
  z-index: 2;
}

.site-info-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.9rem;
  color: #fff;
}

.info-left,
.info-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.info-label {
  font-weight: 600;
  opacity: 0.85;
}

/* ============================================
   🔒 Homepage Payment Security Banner
   - Sits under ABN bar, above Mystery Boxes
   - Right-aligned glass card
============================================ */
.payment-security-banner {
  width: 100%;
  padding: 0;
  margin: -6px 0 6px 0;  /* 🔼 pull it upwards, tiny gap above title */
  box-sizing: border-box;
  background: transparent;
  position: static;
}

.payment-security-banner-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;   /* align box to the right under ABN */
}

.home-security-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;

  /* Keep the glassy purple but a bit more “hardware” underneath */
  background: rgba(75, 0, 130, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* ✨ Apple-style silver rim */
  border: 1px solid rgba(222, 228, 236, 0.95); /* cool silver */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),       /* outer white edge */
    0 10px 24px rgba(0, 0, 0, 0.65);           /* deeper drop shadow */

  position: relative;
  overflow: hidden;
}

.home-security-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;

  /* subtle inner silver highlight */
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
  opacity: 0.9;
}


.home-security-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #3ad169; /* green tick */
  filter: drop-shadow(0 0 4px rgba(58, 209, 105, 0.9));
}

.home-security-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-security-text {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.home-security-brands {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Reuses existing brand logo styling */
.home-security-brands .payment-brand-block {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* On mobile, centre the box instead of locking hard right */
@media (max-width: 768px) {
  .payment-security-banner {
    padding: 8px 12px 0;
  }

  .payment-security-banner-inner {
    justify-content: center;
  }

  .home-security-card {
    width: 100%;
    justify-content: center;
    text-align: center;

    /* 🔁 override the desktop nudge */
    margin-right: 0;
  }

  .home-security-text {
    white-space: normal;
  }
}

/* ABN text */
.info-abn {
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* 📱 Mobile layout for info bar */
@media (max-width: 768px) {
  .site-info-bar {
    padding: 6px 12px;          /* smaller bar vertically + horizontally */
  }

  .site-info-inner {
    flex-direction: row;        /* ✅ keep socials + ABN on one line */
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;          /* slightly smaller text on mobile */
    flex-wrap: nowrap;          /* avoid ABN dropping under socials */
  }

  .info-left,
  .info-right {
    flex-wrap: nowrap;
  }

  .social-links a {
    width: 28px;
    height: 28px;               /* slightly smaller icon buttons on mobile */
  }

  .social-links a svg {
    width: 16px;
    height: 16px;
  }
}

/* 🔔 PU toast notifications */
.pu-toast {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 20000; /* ✅ above modal + backdrop + menu + header */

  display: flex;
  align-items: center;
  gap: 10px;

  max-width: min(520px, calc(100% - 40px));
  padding: 10px 16px;
  border-radius: 12px;

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

  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;

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

#puToast {
  isolation: isolate;
}

.pu-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pu-toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}

.pu-toast-text {
  font-size: 0.95rem;
  font-weight: 650;
  white-space: pre-line;
}

/* ✅ Success */
.pu-toast.is-success {
  background: rgba(14, 86, 50, 0.78);
  border-color: rgba(58, 209, 105, 0.55);
}
.pu-toast.is-success .pu-toast-icon {
  background: #3ad169;
  color: #021105;
  box-shadow: 0 0 10px rgba(58, 209, 105, 0.9);
}

/* ❌ Error */
.pu-toast.is-error {
  background: rgba(96, 18, 26, 0.82);
  border-color: rgba(255, 95, 95, 0.55);
}
.pu-toast.is-error .pu-toast-icon {
  background: #ff4d4d;
  color: #1a0404;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.85);
}

/* 👤 Login/info */
.pu-toast.is-login {
  background: rgba(22, 52, 96, 0.78);
  border-color: rgba(110, 171, 255, 0.55);
}
.pu-toast.is-login .pu-toast-icon {
  background: #6eabff;
  color: #08152a;
  box-shadow: 0 0 10px rgba(110, 171, 255, 0.85);
}

/* ⚠️ Warn */
.pu-toast.is-warn {
  background: rgba(108, 84, 10, 0.82);
  border-color: rgba(255, 210, 90, 0.55);
}
.pu-toast.is-warn .pu-toast-icon {
  background: #ffd25a;
  color: #241a02;
  box-shadow: 0 0 10px rgba(255, 210, 90, 0.85);
}

/* ⏳ Loading */
.pu-toast.is-loading {
  background: rgba(108, 84, 10, 0.86);
  border-color: rgba(255, 210, 90, 0.65);
}

.pu-toast.is-loading .pu-toast-icon {
  background: rgba(255, 210, 90, 0.18);
  color: #241a02;
  box-shadow: 0 0 10px rgba(255, 210, 90, 0.55);
}

.pu-toast-icon.is-spinner {
  font-size: 0;
}

.pu-toast-spinner {
  width: 14px;
  height: 14px;
  display: block;
  border-radius: 999px;
  border: 2px solid rgba(36, 26, 2, 0.28);
  border-top-color: #241a02;
  border-right-color: #241a02;
  animation: puToastSpin 0.75s linear infinite;
}

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

@media (max-width: 768px) {
  .pu-toast {
    left: 50%;
    right: auto;
    width: calc(100% - 40px);
    justify-content: center;
    transform: translate(-50%, -10px);
  }

  .pu-toast.show {
    transform: translate(-50%, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

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

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

.modal-confirm p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.modal-confirm-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 8px;
}

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

.modal-confirm-actions button + button {
  margin-top: -4px;
}

/* Secondary button (cancel) */
.modal-alt-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(120, 95, 170, 0.65);
  background: linear-gradient(180deg, #24153f 0%, #120923 100%);
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(0,0,0,0.22);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.2s ease;
}

.modal-alt-btn:hover {
  background: linear-gradient(180deg, #2b1a4b 0%, #160b2a 100%);
  border-color: rgba(155, 130, 205, 0.85);
  transform: translateY(-1px);
}

/* Destructive / confirm logout button */
.modal-danger-btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(150, 45, 65, 0.72);
  background: linear-gradient(180deg, #4a0612 0%, #26030a 100%);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 0 1px rgba(0,0,0,0.22);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease,
    border-color 0.2s ease;
}

.modal-danger-btn:hover {
  background: linear-gradient(180deg, #5a0817 0%, #2f040c 100%);
  border-color: rgba(190, 80, 105, 0.9);
  transform: translateY(-1px);
}

/* Destructive / confirm logout button */
.modal-danger-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 120, 120, 0.9);
  background: linear-gradient(135deg, #8b0000, #ff4c4c);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  box-shadow:
    0 0 6px rgba(255, 120, 120, 0.7),
    0 0 14px rgba(139, 0, 0, 0.5);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease,
    border-color 0.2s ease;
}

.modal-danger-btn:hover {
  background: linear-gradient(135deg, #ff5f5f, #ff8585);
  border-color: #ffd2d2;
  box-shadow:
    0 0 10px rgba(255, 150, 150, 0.9),
    0 0 20px rgba(255, 200, 200, 0.7);
  transform: translateY(-1px);
}


#giveaways {
  width: 100%;
  margin-top: calc(-1 * var(--blur-lift));
  padding-top: var(--blur-lift);
  padding-right: 0;
  padding-bottom: 40px;
  padding-left: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

/* Mobile blur control */
/* desktop: hidden */
@media (max-width: 768px) {
  .mobile-blur-band {
    display: none;
  }

#giveaways,
footer {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  left: auto;
  right: auto;
  overflow-x: hidden;
  touch-action: pan-y;
}

  #giveaways {
    margin-top: -996px;
    padding-top: 1328px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    position: relative;
    z-index: 2;
  }

.giveaway-wrapper {
  margin-top: -380px;
}
}
/* END of Mobile blur control */

.giveaway-wrapper {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 60px;
  text-align: center;
}

.giveaway-header {
  position: relative;
  text-align: center;
  margin-bottom: 30px;
  padding: 8px 0 2px;
}

.giveaway-header::before,
.giveaway-header::after {
  content: "";
  position: absolute;
  top: 40px;
  width: clamp(90px, 18vw, 220px);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,170,255,0.75) 35%,
    rgba(255,190,255,1) 70%,
    rgba(255,210,255,0.35) 100%
  );
  box-shadow:
    0 0 10px rgba(255,170,255,0.55),
    0 0 20px rgba(255,120,255,0.25);
  pointer-events: none;
}

.giveaway-header::before {
  left: 0;
}

.giveaway-header::after {
  right: 0;
  transform: scaleX(-1);
}

.giveaway-header h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3.9vw, 3.9rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #f3ecff;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(255,255,255,0.35),
    0 4px 0 rgba(120, 70, 150, 0.85),
    0 10px 18px rgba(0,0,0,0.38),
    0 0 18px rgba(255,255,255,0.10);
}

.giveaway-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}


/* 🔁 3D Wrapper for Perspective */
.giveaway-3d-wrapper {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.giveaway {
  background: #4b0082;
  color: white;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  text-align: center;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  height: 260px;         /* 💥 Fixed purple box height */
  overflow: hidden;      /* 🔒 Prevent content from expanding it */
}


  /* 🧊 Idle 3D tilt */
.giveaway {
  transform: rotateX(4deg) rotateY(-3deg) scale(1.01);
}

.giveaway:hover {
  transform: rotateX(0deg) rotateY(0deg) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.giveaway::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.giveaway:hover::before {
  opacity: 1;
}

/* HOME PAGE PURPLE BOXES AND IMAGES */

/* Global image dials */
#giveaways {
  --stage-h: 220px;
  --img-inset: 0px;
  --img-fit: contain;
  --img-scale: 1.45;
  --img-shift-x: 30px;
  --img-shift-y: 0px;
  --img-origin: center;
}

/* Stage stays fixed-size; image sits inside cleanly */
.giveaway-img-wrapper {
  position: relative;
  overflow: hidden;
  padding: var(--img-inset);
  box-sizing: border-box;
  height: var(--stage-h);
  width: 100%;
  margin-bottom: 10px;
}

/* Image fill logic */
.giveaway-img-wrapper img {
  position: absolute;
  inset: var(--img-inset);
  width: calc(100% - 2 * var(--img-inset));
  height: calc(100% - 2 * var(--img-inset));
  object-fit: var(--img-fit);
  object-position: calc(50% + var(--img-shift-x)) calc(50% + var(--img-shift-y));
  transform: scale(var(--img-scale));
  transform-origin: var(--img-origin);
  display: block;
  margin: 0;
  max-width: none;
  max-height: none;
}

/* Keep title spacing clean */
.giveaway h3 {
  margin: 10px 0 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  text-align: center;
  text-shadow: 1px 1px 2px black;
}


.giveaway h3 {
  margin: 10px 0 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  text-align: center;
  text-shadow: 1px 1px 2px black;
}

.giveaway-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* 💵 Giveaway price pill (base + inline variant) */
.giveaway { position: relative; } /* anchor for absolute pill */

/* === Full artwork cards: new homepage box layout === */
#giveaways .giveaway.giveaway--art-card {
  background: transparent;
  box-shadow: none;
  padding: 0;
  height: auto;
  border-radius: 0;
  overflow: visible;
  justify-content: flex-start;
}

#giveaways .giveaway.giveaway--art-card::before {
  display: none;
}

#giveaways .giveaway.giveaway--art-card:hover {
  box-shadow: none;
}

#giveaways .giveaway.giveaway--art-card .giveaway-img-wrapper {
  height: auto;
  margin-bottom: 0;
  padding: 0;
  overflow: visible;
}

#giveaways .giveaway.giveaway--art-card .giveaway-img-wrapper img {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center center !important;
  transform: none !important;
  transform-origin: center;
  display: block;
}

.price-pill{
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(75, 0, 130, 0.45); /* purple glass */
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  pointer-events: none; /* decorative badge */
  z-index: 2; /* stay above glossy overlays */
}

/* Inline variant: render directly under the <h3> title */
.price-pill.inline{
  position: static;            /* no absolute positioning */
  display: inline-block;
  margin: 8px auto 0;          /* space under title */
  padding: 6px 12px;           /* a touch wider for readability */
  border-radius: 10px;

  /* keep the glass look consistent */
  background: rgba(75, 0, 130, 0.45);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  pointer-events: none;
}

@media (max-width: 768px){
  .price-pill{
    font-size: 0.85rem;
    padding: 5px 8px;
    right: 8px;
    bottom: 8px;
  }
  .price-pill.inline{
    padding: 5px 10px;
    margin-top: 6px;
  }
}

/* ✅ Fairness tagline under the price */
.fairness-tag {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #4fa66a;         /* soft darker green */
  text-align: center;
  font-weight: 500;
  opacity: 0.9;
  pointer-events: none;   /* purely informational */
}

/* === Icon Buttons (Login & Cart) === */
.icon-btn,
.cart-btn {
  font-size: 20px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--white);
  border-radius: 1px;
  background-color: transparent;
  color: var(--white);
  position: static;
  transform: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
}

.icon-btn:hover,
.cart-btn:hover {
  background-color: var(--hover-glow);
}

.cart-btn svg {
  width: 22px;
  height: 22px;
  stroke: white;
}

/* 🔐 Login Icon Image */
.icon-btn.login-btn img,
.icon-img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  object-fit: contain;
  pointer-events: none;
}

/* 🎯 Position Adjustments */
.icon-btn.login-btn {
  right: 110px;
}

.cart-btn {
  right: 165px;
}

/* Register button busy/locked state */
.button--busy,
#registerForm button[type="submit"].button--busy {
  opacity: .6;
  pointer-events: none;        /* blocks extra clicks */
  filter: grayscale(10%);
}

/* Optional: subtle fade when entering busy */
.button--busy {
  transition: opacity .2s ease, filter .2s ease;
}


/* =========================
   MODALS — checkout visual style
========================= */

/* ✅ GLOBAL MODAL BACKDROP (matches checkout behaviour) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65); /* strong, consistent dark layer */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

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

  transition: opacity 0.25s ease;
}

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

.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;
}

.modal .modal-content{
  position: relative;
  margin: 10% auto;
  width: 90%;
  max-width: 400px;
  padding: 30px;
  color: #fff;
  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(42px) saturate(135%);
  -webkit-backdrop-filter: blur(42px) saturate(135%);
  background-blend-mode: overlay;
}

#loginModal .modal-content::before,
#registerModal .modal-content::before,
#forgotPasswordModal .modal-content::before,
#logoutConfirmModal .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), rgba(255,255,255,0.03) 22%, transparent 52%);
}

#loginModal .modal-content::after,
#registerModal .modal-content::after,
#forgotPasswordModal .modal-content::after,
#logoutConfirmModal .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);
}

.modal .close{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 0 0px 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 .25s ease,
    background .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    transform .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 .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);
}

.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:#fff;
  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 .25s ease,
    box-shadow .25s ease,
    background .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;
}

.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 .3s ease,
    text-shadow .3s ease,
    background .3s ease,
    border-color .3s ease,
    box-shadow .3s ease,
    transform .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);
}

.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 .25s ease,
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease,
    transform .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);
}

.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: #fff !important;
}

.modal .modal-content input:-moz-autofill{
  box-shadow: 0 0 0 1000px rgba(75, 0, 130, 0.45) inset !important;
  -moz-box-shadow: 0 0 0 1000px rgba(75, 0, 130, 0.45) inset !important;
  -moz-text-fill-color: #fff !important;
}

@media (max-width: 768px){
  .modal .modal-content{
    margin: 12vh auto 0;
    width: calc(100% - 28px);
    max-width: 460px;
    padding: 24px 18px;
    border-radius: 14px;
  }

  .modal .close{
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 22px;
  }
}

/* Keep register modal scrollable on mobile */
#registerModal .modal-content{
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px){
  #registerModal{
    padding: 8px 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  #registerModal .modal-content{
    width: min(92vw, 400px);
    max-width: 400px;
    margin: 0 auto 12px;
    max-height: none;
    overflow: visible;
  }
}

/* 🧷 Tooltip anchor covers button */
.tooltip-anchor {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.tooltip-anchor::after {
  content: attr(title);
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 9999;
}

.tooltip-anchor {
  position: absolute;
  inset: 0; /* shorthand for top/right/bottom/left: 0 */
  pointer-events: none; /* ✅ Prevent this span from intercepting clicks */
}

#loginBtn.logged-in {
  box-shadow:
    0 0 25px rgba(0, 123, 255, 1),  /* Even stronger inner glow */
    0 0 50px rgba(0, 123, 255, 0.9), /* Stronger outer glow */
    0 0 80px rgba(0, 123, 255, 0.7); /* Extra wide glow */
  transition: box-shadow 0.3s ease;
}


/* Chrome, Safari, Edge autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(75, 0, 130, 0.9) inset !important;
  box-shadow: 0 0 0 1000px rgba(75, 0, 130, 0.9) inset !important;
  -webkit-text-fill-color: #fff !important;
}

/* Firefox autofill fix */
input:-moz-autofill {
  box-shadow: 0 0 0 1000px rgba(75, 0, 130, 0.9) inset !important;
  -moz-box-shadow: 0 0 0 1000px rgba(75, 0, 130, 0.9) inset !important;
  -moz-text-fill-color: #fff !important;
}

/* For Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 10px; /* width of vertical scrollbar */
  height: 10px; /* height of horizontal scrollbar */
}

::-webkit-scrollbar-track {
  background: rgba(75, 0, 130, 0.3); /* light purple track */
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(75, 0, 130, 0.8); /* deep purple thumb */
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0.3); /* optional white border */
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(75, 0, 130, 1); /* brighter on hover */
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(75, 0, 130, 0.8) rgba(75, 0, 130, 0.3);
}


/* ✅ Header Flex Container */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

@media (max-width: 768px) {
.menu {
    width: 50vw;        /* half the screen */
    right: -50vw;       /* fully off-screen by default */
    background: transparent; /* let the gradient handle colour/fade */
  }

.menu::before {
    content: "";
    position: absolute;
    inset: 0;          /* fill entire menu panel */
    z-index: -1;

    background: linear-gradient(
      to bottom,
      rgba(75, 0, 130, 0.9) 0%,   /* solid purple at top */
      rgba(75, 0, 130, 0.7) 40%,  /* glassy mid-section */
      rgba(75, 0, 130, 0.0) 100%  /* fully transparent at bottom */
    );
  }

  .menu.open {
    right: 0;
  }

   .menu a {
    display: block;        /* override the desktop flex */
    width: 100%;
    padding: 14px 0;
    margin: 0 auto;
    font-size: 1.1rem;     /* slightly smaller so the long text sits nicer */
    text-align: center;    /* hard centre the text */
  }

  .giveaway-wrapper {
    padding: 0 16px;
  }

  .giveaway-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }


 /* 📱 Modal sizing on small screens */
.modal {
  padding: 16px 12px;
  overflow-y: auto;          /* keep scrollable if keyboard shrinks viewport */
}

.modal-content {
  box-sizing: border-box;    /* include padding in total width */
  width: 100%;
  max-width: calc(100% - 24px);  /* never wider than viewport minus side padding */
  margin: 10vh auto 0;       /* centred with a bit of space from the top */
  padding: 16px 14px;
  border-radius: 14px;
}

.modal-content h2 {
  font-size: 1.1rem;
}

.modal-content p,
.modal-content label {
  font-size: 0.95rem;
}

.modal-content input,
.modal-content button {
  width: 100%;               /* no side overflow */
  box-sizing: border-box;
  font-size: 1rem;
  padding: 8px;
}

/* Stack login/register/forgot action buttons on mobile */
.modal-action-buttons {
  flex-direction: column;
  align-items: stretch;
}

.modal-action-buttons button {
  width: 100%;
}

/* Keep logout modal buttons centred and tidy on mobile too */
.modal-confirm-actions {
  flex-direction: column;
  align-items: center;
}

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

.modal-sub-btn {
  font-size: 1rem;
  padding: 10px;
}

  body {
    background-attachment: scroll;
    background-size: cover;
  }
}


footer {
  text-align: center;
  padding: 10px;
  background: #333;
  color: white;
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
}

footer {
  text-align: center;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-main {
  margin: 0 0 6px;
}

.footer-social-text {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  text-transform: lowercase;
}

.footer-social-text a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-social-text a:hover {
  color: #ffcc00;
}
/* =========================
   MOBILE — Header (clean)
   ========================= */
@media (max-width: 768px) {
  header {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    min-height: 60px;
    height: 60px;
    padding: 10px 8px;
    box-sizing: border-box;
    overflow: visible;
    transition: none !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

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

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    height: 40px;
    min-height: 40px;
    padding: 0 8px 0 0;
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: 8px;
    flex-wrap: nowrap;
    position: relative;
    overflow: visible;
    z-index: 10;
  }

  .site-title,
  .header-title,
  .logo-title {
    position: static;
    left: auto;
    transform: none;
    margin: 0;
    text-align: left;
    order: -1;
    flex: 0 1 auto;
    min-width: 0;
    max-width: none;
    line-height: 1;
    font-size: 1.35rem;
    letter-spacing: 0.35px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-inline-start: 0;
  }

  .header-actions,
  .header-right,
  .header-buttons {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    order: 2;
    min-height: 40px;
    height: 40px;
    padding: 0;
    position: static;
    inset: auto;
    right: auto;
    left: auto;
    transform: none;
    margin-right: 0;
    flex: 1 1 auto;
    min-width: 0;
    z-index: 10;
    overflow: visible;
  }

  #loggedOutHeaderGroup,
  #loggedInHeaderGroup {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 0 1 auto;
  }

  .deposit-btn,
  .header-auth-btn {
    height: 28px;
    min-height: 28px;
    padding: 0 6px;
    font-size: 0.62rem;
    line-height: 28px;
    border-radius: 4px;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
  }

  .icon-btn,
  .menu-btn,
  .login-btn,
  .cart-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    flex: 0 0 28px;
    padding: 0;
  }

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

#giveaways .giveaway { overflow: hidden; }

/* Stage stays fixed-size; image sits absolutely inside */
#giveaways .giveaway-img-wrapper {
  position: relative;
  overflow: hidden;
  padding: var(--img-inset);
  box-sizing: border-box;
  height: var(--stage-h);              /* uniform stage across all boxes */
  width: 100%;
}

/* Pan with object-position; use transform only for zoom */
#giveaways .giveaway-img-wrapper img {
  position: absolute;
  inset: var(--img-inset);
  width: calc(100% - 2 * var(--img-inset));
  height: calc(100% - 2 * var(--img-inset));
  object-fit: var(--img-fit);

  /* precise pan (uses the same global shift vars) */
  object-position:
    calc(50% + var(--img-shift-x, 0px))
    calc(50% + var(--img-shift-y, 0px)) !important;

  transform-origin: var(--img-origin);
  transform: scale(var(--img-scale, 1)) !important;

  margin: 0;
  max-width: none;
  max-height: none;
  display: block;
  will-change: transform;
}

/* ABN visuals */
 .info-abn,
  .info-abn a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
  }

/* 📱 Mobile: centre + widen the deposit modal */
@media (max-width: 768px) {
  .deposit-options {
    top: 80px;                         /* small offset under header */
    left: 50%;
    right: auto;                       /* override desktop right: 140px */
    transform: translateX(-50%);       /* centre horizontally */
    width: min(360px, 95vw);           /* make it wider but keep it on-screen */
    min-width: 0;                      /* override min-width: 180px */
    box-sizing: border-box;            /* padding included in width */
  }

  .payment-security-note {
    max-width: 100%;                   /* let the inner text use full width */
  }

  .payment-security-text {
    white-space: normal;               /* allow wrapping instead of being cut */
  }
}

/* Mobile only: touch-friendly header sizing */
@media (max-width: 767px) {

  .deposit-options {
    position: fixed;
    top: 74px;
    right: 16px;
    left: auto;
    transform: none;
    min-width: 240px;
    max-width: min(420px, 92vw);
    max-height: 70vh;
    overflow: auto;
  }
}

/* Mobile: deposit modal + touch-friendly header sizing */
@media (max-width: 767px) {
  .deposit-options {
    position: fixed;
    top: 80px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(360px, 95vw);
    min-width: 0;
    max-height: 70vh;
    overflow: auto;
    box-sizing: border-box;
  }

  .deposit-buttons {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .payment-security-note {
    max-width: 100%;
  }

  .payment-security-text {
    white-space: normal;
  }
}

/* =========================
   iPad / Tablet
   ========================= */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Header: keep title centred, actions on the right */
  header {
    padding: 10px 16px;
    min-height: 64px;
  }

  .header-inner {
    gap: 10px;
    flex-wrap: nowrap;
  }

  .site-title,
  .header-title,
  .logo-title {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: none !important;
    white-space: nowrap !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: clamp(20px, 3vw, 32px) !important;
    line-height: 1.05 !important;
  }

  .header-actions,
  .header-right,
  .header-buttons {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    z-index: 10 !important;
  }

  .deposit-buttons {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }

  .menu {
    width: 320px;
    right: -320px;
    padding-top: 78px;
  }

  .giveaway-wrapper {
    padding: 0 24px;
  }

  .giveaway-container {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 22px;
  }

  #giveaways {
    --stage-h: 210px;
  }

  .giveaway {
    height: 270px;
  }

  .giveaway h3 {
    font-size: 1.05rem;
  }

  .modal-content {
    max-width: 460px;
    margin: 12vh auto 0;
    padding: 22px 20px;
  }

  .menu a,
  .header-auth-btn,
  .deposit-btn,
  .deposit-buttons button {
    -webkit-tap-highlight-color: transparent;
  }
}

/* iPad Pro / large tablets: 1025–1366 */
@media (min-width: 1025px) and (max-width: 1366px) {
  header {
    padding: 10px 18px;
  }

  .site-title {
    font-size: clamp(24px, 2.6vw, 36px);
  }

  .header-buttons {
    right: 18px;
    gap: 10px;
  }

  .deposit-options {
    right: 18px;
    max-width: 460px;
  }

  .giveaway-wrapper {
    padding: 0 32px;
  }

  .giveaway-container {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 24px;
  }
}