.memory-expander.fading-out {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(.4,.8,.3,1);
}
:root {
  --bg: #0b0614;
  --bg-soft: #120a22;
  --card: #170f2a;
  --text: #f5eaff;
  --muted: #cdb8ff;
  --primary-start: #7a2fe3;
  --primary-end: #e450ff;
  --accent: #8ef0ff;
  --radius: 16px;
  --shadow:
    0 10px 30px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  color: var(--text);
  /* Keep a lightweight fallback background; heavy layers moved to body::before */
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  /* Create stacking context so ::before (z:-1) stays behind content but above canvas */
  position: relative;
  z-index: 0;
  line-height: 1.6;
}

/* Compositor-friendly fixed background layer to replace background-attachment: fixed */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  /* Behind all body content, above the root canvas */
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      1200px 800px at 10% -10%,
      rgba(122, 47, 227, 0.25),
      transparent 60%
    ),
    radial-gradient(
      1000px 600px at 100% 0%,
      rgba(228, 80, 255, 0.15),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  /* Hint GPU compositing; avoids main-thread scroll paint tax */
  transform: translateZ(0);
  will-change: transform;
}
a {
  color: var(--text);
  text-decoration: none;
}
a.button,
.btn,
.btn-primary {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  box-shadow: var(--shadow);
  font-weight: 700;
  letter-spacing: 0.2px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
a.button:hover,
.btn:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(
    180deg,
    rgba(15, 9, 28, 0.85),
    rgba(15, 9, 28, 0.5)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateZ(0);
  will-change: transform;
}
.nav .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  transition: padding 0.3s ease;
  will-change: padding, transform;
  transform: translateZ(0);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.brand img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(228, 80, 255, 0.2));
  transition: height 0.3s ease;
}

.nav.expanded .wrap {
  padding: 26px 20px;
}

.nav.expanded .brand img {
  height: 48px;
}
.logo img {
  height: 150px;
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .logo img {
    height: 100px;
  }
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text);
  margin: 5px 0;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.menu {
  margin-left: auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.menu a {
  opacity: 0.75;
}
.menu a:hover,
.menu a.active {
  opacity: 1;
}
.cart-link {
  position: relative;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.cart-count {
  background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 6px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  text-align: center;
}

@media (max-width: 800px) {
  .nav .wrap {
    padding: 18px 20px;
  }
  .brand {
    flex: 1;
    min-width: 0;
  }
  .brand span {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .nav-toggle {
    display: block;
  }
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 9, 28, 0.95);
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    margin: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  }
  .nav.open .menu {
    display: flex;
  }
  .menu a {
    padding: 6px 0;
  }
}

.nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 30px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  isolation: isolate;
  /* Avoid tiny horizontal overflow from rotated ribbon on mobile without affecting visuals */
  overflow-x: clip;
  /* Important: do NOT use paint containment here, it clips the ribbon/glow outside the hero */
  contain: layout style;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }
}

/* Fallback for browsers without overflow: clip */
@supports not (overflow: clip) {
  .hero { overflow-x: hidden; }
}

/* === Pancreatic Cancer Awareness Ribbon Background === */
.hero .ribbon-wrap { position:absolute; inset:0; z-index:0; display:flex; align-items:flex-start; justify-content:center; pointer-events:none; overflow:visible; 
  /* Defaults: nudge ribbon slightly down and right */
  --ribbon-shift-x: 12px; 
  --ribbon-base-shift: 14px; 
  transform: translate3d(var(--ribbon-shift-x, 0px), calc(var(--ribbon-base-shift, 0px) + var(--ribbon-shift, 0px)), 0) scaleY(var(--ribbon-scale, 1)); 
  transform-origin:50% 10%; will-change: transform; backface-visibility: hidden; }
.hero .ribbon-visual { position:relative; display:inline-block; filter: drop-shadow(0 18px 40px rgba(0,0,0,.65)); transform: translateZ(0); will-change: transform, opacity, filter; backface-visibility: hidden; }
.hero .ribbon-outline { position:absolute; inset:0; width:100%; height:100%; max-width:100%; max-height:100%; pointer-events:none; mix-blend-mode:screen; filter: drop-shadow(0 8px 20px rgba(170, 80, 255, 0.32)) blur(0.1px); opacity:0.88; transform: translateZ(0); will-change: opacity, transform; backface-visibility: hidden; object-fit: contain; }
/* GPU-friendly shimmer clipped to outline path (no JS) */
.hero .ribbon-outline-shimmer{ position:absolute; inset:0; pointer-events:none; mix-blend-mode:screen; opacity:.82; filter: drop-shadow(0 8px 20px rgba(170,80,255,.24));
  /* Animated gradient background */
  --shine-1: rgba(245,235,255,.55);
  --shine-2: rgba(142,240,255,.95);
  --shine-3: rgba(228,80,255,.95);
  background: linear-gradient(110deg, transparent 0%, transparent 38%, var(--shine-1) 44%, var(--shine-2) 52%, var(--shine-3) 58%, transparent 66%, transparent 100%);
  background-size: 220% 220%;
  background-position: -60% -40%;
  animation: ribbonShine 7.5s linear infinite;
  /* Clip the shimmer strictly to the outline shape using the SVG as mask */
  -webkit-mask-image: url('../images/hero/ribbon-outline-web.svg');
  mask-image: url('../images/hero/ribbon-outline-web.svg');
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: center; mask-position: center;
}
@keyframes ribbonShine { to { background-position: 160% 140%; } }
.hero .ribbon-wrap::before { /* soft ambient glow behind ribbon */ content:""; position:absolute; top:0; left:50%; width:820px; height:820px; transform:translate(-50%, -10%) scale(1); background:radial-gradient(circle at 50% 55%, rgba(148,60,210,.55), rgba(90,30,160,0) 70%); filter:blur(90px) saturate(1.2); opacity:.55; animation:ribbonAura 14s ease-in-out infinite alternate; }
.hero .ribbon-visual { width:740px; max-width:90vw; height:auto; transform-origin:50% 10%; transform:translate3d(0,-10%,0) rotate(-6deg) scale(1); opacity:.34; animation: ribbonFloat 18s cubic-bezier(.55,.15,.25,.9) infinite, ribbonSway 22s ease-in-out infinite; }
.hero .hero-ribbon { width:100%; height:auto; display:block; transform:none !important; filter:none; }
@media (max-width:1100px){ .hero .ribbon-visual { width:660px; transform:translate3d(0,-8%,0) rotate(-5deg) scale(0.98); } }
@media (max-width:900px){ .hero .ribbon-visual { width:580px; transform:translate3d(0,-6%,0) rotate(-4deg) scale(0.94); } }
@media (max-width:600px){ .hero .ribbon-visual { width:500px; transform:translate3d(0,-4%,0) rotate(-3deg) scale(0.9); } }
@media (max-width:460px){ .hero .ribbon-visual { width:420px; transform:translate3d(0,-2%,0) rotate(-2deg) scale(0.86); } }
/* Responsive ribbon offset tuning */
@media (max-width:1100px){ .hero .ribbon-wrap { --ribbon-shift-x: 10px; --ribbon-base-shift: 12px; } }
@media (max-width:900px){ .hero .ribbon-wrap { --ribbon-shift-x: 6px; --ribbon-base-shift: 10px; } }
@media (max-width:600px){ .hero .ribbon-wrap { --ribbon-shift-x: 14px; --ribbon-base-shift: 22px; } }
@media (max-width:460px){ .hero .ribbon-wrap { --ribbon-shift-x: 18px; --ribbon-base-shift: 28px; } }
@keyframes ribbonFloat {
  0% {
  transform: translate3d(0,-10%,0) rotate(-6deg) scale(1);
    filter: drop-shadow(0 18px 40px rgba(0,0,0,.65)) brightness(1) saturate(1);
  }
  45% {
  transform: translate3d(0,-8%,0) rotate(-6.7deg) scale(1.015);
    filter: drop-shadow(0 18px 40px rgba(0,0,0,.65)) brightness(1.05) saturate(1.05);
  }
  55% {
  transform: translate3d(0,-9%,0) rotate(-5.3deg) scale(1.01);
    filter: drop-shadow(0 18px 40px rgba(0,0,0,.65)) brightness(1) saturate(1);
  }
  100% {
  transform: translate3d(0,-10%,0) rotate(-6deg) scale(1);
    filter: drop-shadow(0 18px 40px rgba(0,0,0,.65)) brightness(1) saturate(1);
  }
}
@keyframes ribbonSway { 0% { transform:translate3d(0,-10%,0) rotate(-6deg) scale(1); } 50% { transform:translate3d(0,-10%,0) rotate(-7.5deg) scale(1.005); } 100% { transform:translate3d(0,-10%,0) rotate(-6deg) scale(1); } }
@keyframes ribbonAura { 0% { opacity:.45; transform:translate(-50%, -10%) scale(.95); } 50% { opacity:.65; transform:translate(-50%, -10%) scale(1.05); } 100% { opacity:.5; transform:translate(-50%, -10%) scale(.95); } }
.hero .ribbon-core { stroke:rgba(255,255,255,.08); stroke-width:12; paint-order:stroke fill; stroke-linejoin:round; stroke-linecap:round; filter: drop-shadow(0 18px 40px rgba(0,0,0,.65)); }
.hero .ribbon-shimmer { stroke-dasharray: 4200; stroke-dashoffset: 4200; animation: ribbonShimmer 10s ease-in-out infinite; mix-blend-mode: screen; opacity:.75; }
@keyframes ribbonShimmer { 0%, 35% { stroke-dashoffset: 4200; opacity:0; } 40% { opacity:.85; } 60% { stroke-dashoffset: 0; opacity:.85; } 70% { opacity:0; } 100% { stroke-dashoffset: 0; opacity:0; } }
@media (prefers-reduced-motion: reduce){ .hero .hero-ribbon, .hero .ribbon-wrap::before, .hero .ribbon-shimmer { animation:none !important; } .hero .hero-ribbon { opacity:.28; } }
@media (prefers-reduced-motion: reduce){ .hero .ribbon-outline-shimmer{ animation:none !important; opacity:.6; } }
/* Hide shimmer if CSS masking unsupported to avoid unmasked gradient overlay */
@supports not ((-webkit-mask-image: url('x')) or (mask-image: url('x'))){
  .hero .ribbon-outline-shimmer{ display:none; }
}

/* Safari performance tuning */
.is-safari .hero .ribbon-visual { animation: ribbonFloat 22s cubic-bezier(.55,.15,.25,.9) infinite, ribbonSway 26s ease-in-out infinite; }
.is-safari .hero .ribbon-outline-shimmer { opacity:.72; filter: drop-shadow(0 6px 16px rgba(170,80,255,.20)); animation-duration: 9.5s; }
.is-safari .page-hero.modern::after { opacity: .18; filter: saturate(1.05); }
.is-safari .page-hero.modern .hero-layer.glow { filter: blur(20px); opacity: .5; }
.is-safari .page-hero.modern .hero-content::after { opacity: .8; }

/* Avoid painting work for below-the-fold sections until needed */
main.container > section { content-visibility: auto; contain-intrinsic-size: 700px; }

/* Ensure hero content stays above ribbon */
.hero > div:not(.ribbon-wrap) { position:relative; z-index:1; }

.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(
    90deg,
    rgba(122, 47, 227, 0.7),
    rgba(228, 80, 255, 0.7)
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  margin: 14px 0 10px;
  font-weight: 900;
}
.subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  margin-bottom: 26px;
}

.hero-card {
  border-radius: var(--radius);
  background: linear-gradient(
    165deg,
    rgba(23, 15, 42, 0.8),
    rgba(23, 15, 42, 0.35)
  );
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 180deg at 50% 50%,
    rgba(142, 240, 255, 0),
    rgba(228, 80, 255, 0.35),
    rgba(142, 240, 255, 0) 70%
  );
  filter: blur(18px);
  opacity: 0.85;
  transform: rotate(0deg);
  animation: spinSlow 12s linear infinite;
  pointer-events: none;
}
@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

.progress {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
}
.progress .bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-start), var(--primary-end));
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.25);
  width: 0%;
}
.progress .gloss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0)
  );
  mix-blend-mode: screen;
}

.statline {
  display: flex;
  justify-content: space-between;
  margin: 10px 2px 0;
  font-size: 14px;
  color: var(--muted);
}
.big-cta {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.ghost {
  border-radius: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}
a.ghost {
  display: inline-block;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
a.ghost:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
}

main.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}
main.container, main.container * {
  overflow-wrap: anywhere;
}
.section {
  margin-top: 48px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0)
  );
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.section section + section {
  margin-top: 32px;
}

/* Responsive video wrapper */
#video .video-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
#video .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
/* Enhanced product grid spacing */
.products-grid {
  --tile-min: 240px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--tile-min), 1fr));
  gap: clamp(18px, 2vw, 28px);
  margin-top: 30px;
}
.photo-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 20px;
}
.card.photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  transform: translateY(6px);
  opacity: 0;
  transition:
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.6s ease,
    box-shadow 0.3s ease;
}
.card.revealed {
  transform: translateY(0);
  opacity: 1;
}
.card img { /* default images inside cards scale naturally; product tiles override further down */
  width: 100%;
  height: auto;
  display: block;
}
.card:not(.product-tile):not(.photo) img { height:200px; object-fit:cover; }
.card .pad,
.card .card-content {
  padding: 16px;
}
.card button.add-to-cart {
  margin-top: 6px;
  width: 100%;
  font-size: 14px;
  cursor: pointer;
  border: 0;
  display: block;
  text-align: center;
}
/* Product tile redesign */
.product-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(23,15,42,0.9), rgba(23,15,42,0.55));
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  box-shadow: 0 6px 24px -6px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
}
.product-tile::before {
  content:"";
  position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(circle at 70% 30%, rgba(142,240,255,0.12), transparent 65%),
              radial-gradient(circle at 20% 80%, rgba(228,80,255,0.12), transparent 65%);
  mix-blend-mode: overlay;
  opacity:0.6;
  transition: opacity .4s ease;
}
.product-tile:hover::before { opacity:0.9; }
.product-tile .card-link { display:flex; flex-direction:column; flex:1; }
.product-tile .media-wrap { position:relative; }
.product-tile .media-aspect { position:relative; width:100%; aspect-ratio: 4 / 3; background:rgba(255,255,255,0.04); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.product-tile img { max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; padding:10px; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.55)); transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .55s ease; }
.product-tile:hover img { transform: scale(1.04); filter: drop-shadow(0 10px 22px rgba(0,0,0,0.65)); }
.product-tile .card-content { padding:18px 18px 10px; display:flex; flex-direction:column; gap:6px; }
.product-tile .product-title { margin:0; font-size:16px; line-height:1.25; font-weight:700; letter-spacing:.3px; }
.product-tile .product-desc { margin:0; font-size:13px; color: var(--muted); line-height:1.4; min-height:2.8em; }
.product-tile .price-row { margin-top:4px; display:flex; align-items:center; justify-content:space-between; }
.product-tile .price { font-weight:700; font-size:15px; background: linear-gradient(90deg,var(--primary-start),var(--primary-end)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.product-tile .tile-actions { padding: 0 18px 18px; }
.product-tile .add-to-cart { font-size:13px; padding:10px 14px; border-radius:10px; letter-spacing:.4px; }
.product-tile:hover, .product-tile:focus-within { box-shadow: 0 16px 46px -10px rgba(0,0,0,0.65), inset 0 0 0 1px rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.15); }
.product-tile:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Smooth stagger reveal (optional if intersection observer present) */
.product-tile { opacity:0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.product-tile.show { opacity:1; transform: translateY(0); }

@media (max-width:600px){
  .product-tile .product-desc { display:none; }
  .product-tile .product-title { font-size:17px; }
  .product-tile .price { font-size:16px; }
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.cart-table th,
.cart-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 14px;
}
.cart-table img {
  height: 50px;
  width: 50px;
  object-fit: cover;
  border-radius: 8px;
}
.qty-input {
  width: 60px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 14px;
}
.remove-item {
  background: none;
  border: 0;
  color: #ff7b7b;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.cart-summary {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.05);
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.cart-summary h3 {
  margin: 0 0 12px;
}
.inline-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.checkout-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  max-width: 560px;
}
.checkout-form label {
  font-size: 14px;
  font-weight: 600;
}
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
}
.checkout-form textarea {
  min-height: 120px;
  resize: vertical;
}
.two-col {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
.empty-state {
  padding: 40px 20px;
  text-align: center;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  margin-top: 20px;
}
.badge-inline {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-left: 8px;
}

.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  text-align: center;
}
.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.page-hero .hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin: 0 0 10px;
}
.page-hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
}

/* Modern enhanced hero (applied when .modern class present) */
.page-hero.modern {
  --hero-img: none;
  --hero-overlay: rgba(15, 9, 28, 0.6);
  --hero-accent-1: rgba(122, 47, 227, 0.55);
  --hero-accent-2: rgba(228, 80, 255, 0.55);
  --hero-accent-3: rgba(142, 240, 255, 0.35);
  --hero-border: rgba(255, 255, 255, 0.12);
  --hero-panel-bg: linear-gradient(
    165deg,
    rgba(23, 15, 42, 0.72),
    rgba(23, 15, 42, 0.35)
  );
  --hero-panel-border: 1px solid rgba(255, 255, 255, 0.15);
  --hero-panel-shadow:
    0 10px 40px -10px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 120px;
  text-align: center;
  overflow: hidden;
  background: none;
  isolation: isolate;
}
.page-hero.modern .hero-content {
  position: relative;
  z-index: 5;
  max-width: 980px;
  margin: 0 auto;
  padding: 46px 50px 54px;
  border-radius: 32px;
  background: var(--hero-panel-bg);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: var(--hero-panel-border);
  box-shadow: var(--hero-panel-shadow);
  animation: heroFade 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s both;
}
.page-hero.modern .hero-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    140deg,
    rgba(142, 240, 255, 0.4),
    rgba(228, 80, 255, 0.25) 40%,
    rgba(142, 240, 255, 0.15)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}
.page-hero.modern .hero-content::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at 70% 10%,
      rgba(142, 240, 255, 0.18),
      transparent 55%
    ),
    radial-gradient(
      circle at 15% 85%,
      rgba(228, 80, 255, 0.15),
      transparent 60%
    );
  mix-blend-mode: overlay;
  opacity: 0.9;
  pointer-events: none;
  animation: heroPanelGlow 14s ease-in-out infinite alternate;
}
@keyframes heroPanelGlow {
  0% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.15) saturate(1.2);
  }
  100% {
    filter: brightness(1) saturate(1);
  }
}

.page-hero.modern .hero-content > * {
  position: relative;
  animation: heroSlideUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.page-hero.modern .hero-content > *:nth-child(1) {
  animation-delay: 0.1s;
}
.page-hero.modern .hero-content > *:nth-child(2) {
  animation-delay: 0.22s;
}
.page-hero.modern .hero-content > *:nth-child(3) {
  animation-delay: 0.34s;
}
@keyframes heroFade {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-hero.modern .hero-layers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.page-hero.modern .hero-layer {
  position: absolute;
  inset: 0;
}
.page-hero.modern .hero-layer.image {
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  filter: brightness(0.78) saturate(1.18);
  transform: translateY(var(--hero-parallax-y, 0))
    scale(var(--hero-parallax-scale, 1));
  transition: transform 0.25s ease-out;
}
.page-hero.modern .hero-layer.gradient {
  background:
    radial-gradient(circle at 18% 32%, var(--hero-accent-1), transparent 62%),
    radial-gradient(circle at 82% 68%, var(--hero-accent-2), transparent 58%),
    linear-gradient(115deg, rgba(15, 9, 28, 0.92), rgba(15, 9, 28, 0.3));
  mix-blend-mode: normal; /* previously overlay; normal improves contrast */
  animation: gradShift 20s ease-in-out infinite alternate;
  opacity: 0.9;
}
@keyframes gradShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  40% {
    transform: translate3d(0, -2%, 0) scale(1.025);
  }
  100% {
    transform: translate3d(0, 2%, 0) scale(1);
  }
}

.page-hero.modern .hero-layer.glow {
  background:
    radial-gradient(circle at 50% 110%, var(--hero-accent-3), transparent 72%),
    radial-gradient(
      circle at -10% -10%,
      rgba(228, 80, 255, 0.45),
      transparent 62%
    );
  mix-blend-mode: screen;
  filter: blur(24px);
  opacity: 0.6;
  animation: glowPulse 11s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.06);
  }
}

.page-hero.modern .hero-layer.noise {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.02) 0 2px,
      rgba(0, 0, 0, 0) 2px 4px
    ),
    linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  mix-blend-mode: overlay;
  opacity: 0.4;
  animation: noiseMove 9s linear infinite;
}
@keyframes noiseMove {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-6%, -6%, 0);
  }
}

.page-hero.modern h1 {
  /* Improved readability: switch from purple gradient text on purple panel
     to high-contrast luminous white while preserving premium feel */
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  letter-spacing: 0.5px;
  position: relative;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 6px 22px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(142, 240, 255, 0.15);
  font-weight: 900;
}
.page-hero.modern h1::before {
  /* Soft ambient glow behind heading */
  content: "";
  position: absolute;
  inset: -14px -24px;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.25), transparent 65%),
    radial-gradient(circle at 30% 40%, rgba(142, 240, 255, 0.18), transparent 70%),
    radial-gradient(circle at 70% 70%, rgba(228, 80, 255, 0.18), transparent 75%);
  filter: blur(28px) saturate(1.2);
  opacity: 0.65;
  pointer-events: none;
  z-index: -1;
}
.page-hero.modern h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary-start), var(--primary-end));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 4px 14px -4px rgba(0, 0, 0, 0.55),
    0 0 22px -4px rgba(142, 240, 255, 0.35);
  opacity: 0.88;
}

/* High-contrast variant for improved readability */
.page-hero.modern.contrast .hero-layer.image {
  filter: brightness(0.52) saturate(1.15) contrast(1.05);
}
.page-hero.modern.contrast .hero-layer.gradient {
  opacity: 0.85;
  background:
    linear-gradient(rgba(15, 9, 28, 0.85), rgba(15, 9, 28, 0.55)),
    radial-gradient(circle at 18% 32%, var(--hero-accent-1), transparent 62%),
    radial-gradient(circle at 82% 68%, var(--hero-accent-2), transparent 58%);
  mix-blend-mode: normal;
}
.page-hero.modern.contrast h1 {
  color: #ffffff;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.15),
    0 0 60px rgba(142, 240, 255, 0.25);
}
.page-hero.modern.contrast h1::before { /* soften existing glow */
  opacity: 0.5;
  filter: blur(20px) saturate(1.1);
}
.page-hero.modern.contrast p {
  color: #f2eaff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
.page-hero.modern p {
  color: #e9dcff;
  opacity: 0.98;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(16px, 1.9vw, 22px);
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

/* Floating particles */
.page-hero.modern::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(255, 255, 255, 0.18) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 90% 70%,
      rgba(255, 255, 255, 0.12) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 30% 80%,
      rgba(255, 255, 255, 0.15) 0 2px,
      transparent 3px
    );
  background-size:
    800px 800px,
    600px 600px,
    700px 700px;
  mix-blend-mode: overlay;
  animation: floatDots 28s linear infinite;
  opacity: 0.35;
}
@keyframes floatDots {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-10%, -6%, 0);
  }
}

/* Subtle wide sheen across entire hero */
.page-hero.modern::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0) 25%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0) 75%,
    rgba(255, 255, 255, 0.18)
  );
  mix-blend-mode: overlay;
  opacity: 0.22;
  animation: sheen 28s linear infinite;
}
@keyframes sheen {
  to {
    transform: translateX(-14%) translateY(-6%);
  }
}

@media (max-width: 900px) {
  .page-hero.modern {
    padding: 120px 20px 90px;
    min-height: 46vh;
  }
  .page-hero.modern .hero-content {
    padding: 40px 28px 48px;
    border-radius: 26px;
  }
  .page-hero.modern h1 {
    font-size: clamp(34px, 8vw, 56px);
  }
  .page-hero.modern h1::after {
    margin-top: 14px;
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .page-hero.modern .hero-layer.gradient,
  .page-hero.modern .hero-layer.glow,
  .page-hero.modern .hero-layer.noise,
  .page-hero.modern::after,
  .page-hero.modern::before,
  .page-hero.modern .hero-content::after {
    animation: none;
  }
  .page-hero.modern .hero-layer.image {
    transform: none !important;
  }
}

footer {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 60px;
}
footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
}
footer .wrap, footer .wrap * {
  overflow-wrap: anywhere;
}
footer .social a img {
  height: 22px;
  opacity: 0.85;
  filter: invert(1);
}
footer .social a img:hover {
  opacity: 1;
}

/* ===== Events Page Enhancements ===== */
.events-intro .lead, .upcoming-events .lead { color: var(--muted); max-width: 840px; }

/* Event Card Micro Snaps */
.event-snaps { display:flex; align-items:center; gap:8px; margin:0 0 14px; }
.event-snaps img { width:52px; height:52px; object-fit:cover; border-radius:14px; box-shadow:0 4px 14px -4px rgba(0,0,0,.6); outline:1px solid rgba(255,255,255,.15); transition: transform .4s cubic-bezier(.2,.7,.2,1), filter .5s ease; filter:saturate(1.1) contrast(1.05); }
.event-snaps img:hover { transform:translateY(-4px) scale(1.06); filter:saturate(1.2) brightness(1.05); }
.event-snaps .more-snaps { background:linear-gradient(135deg,var(--primary-start),var(--primary-end)); color:#fff; border:0; cursor:pointer; font:inherit; font-size:12px; font-weight:700; padding:10px 14px; border-radius:14px; box-shadow:0 4px 14px -4px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.15); transition: transform .3s ease, filter .3s ease; }
.event-snaps .more-snaps:hover { transform:translateY(-3px); filter:brightness(1.07); }
@media (max-width:600px){ .event-snaps img { width:46px; height:46px; } }

/* === Memories 3D Carousel === */
.memories-showcase { margin-top:70px; position:relative; min-height:650px; padding:40px 70px 40px 70px; }
.memories-showcase .memories-head { padding-top:4px; }
@media (max-width:900px){ .memories-showcase { padding:36px 52px 36px 52px; } }
@media (max-width:640px){ .memories-showcase { padding:32px 34px 32px 34px; } }
@media (max-width:480px){ .memories-showcase { padding:30px 22px 30px 22px; } }
.memories-showcase .memories-head { margin-bottom:34px; }
/* Carousel container */
.memories-carousel { position:relative; width:100%; max-width:900px; margin:0 auto; aspect-ratio: 16 / 7.2; perspective:1800px; --active:0; display:block; overflow:hidden; box-sizing:border-box; transform: scale(0.92); z-index:1; }
/* Moved glow to showcase wrapper so it's not clipped by carousel overflow */
.memories-showcase::before { content:""; position:absolute; top:54%; left:50%; width:620px; height:620px; transform:translate(-50%,-50%) scale(1); background:
  radial-gradient(circle at 50% 50%, rgba(170,60,255,.50), rgba(130,50,210,.34) 38%, rgba(90,30,170,.15) 60%, rgba(50,15,110,0) 78%);
  filter:blur(90px) saturate(1.25); opacity:.78; mix-blend-mode:normal; pointer-events:none; z-index:0; animation:memCenterGlow 16s ease-in-out infinite; }
@media (max-width:1050px){ .memories-showcase::before { width:520px; height:520px; top:55%; filter:blur(80px); } }
@media (max-width:780px){ .memories-showcase::before { width:440px; height:440px; top:55%; filter:blur(70px); } }
@media (max-width:560px){ .memories-showcase::before { width:360px; height:360px; top:56%; filter:blur(60px); } }
@keyframes memCenterGlow { 0% { transform:translate(-50%,-50%) scale(.92) rotate(0deg); opacity:.78; } 40% { transform:translate(-50%,-50%) scale(1.05) rotate(60deg); opacity:.9; } 70% { transform:translate(-50%,-50%) scale(.98) rotate(130deg); opacity:.82; } 100% { transform:translate(-50%,-50%) scale(.92) rotate(180deg); opacity:.78; } }
/* Remove default blue outline while keeping accessible focus on inner controls */
.memories-carousel:focus { outline:none; }
.memory-slide { position:absolute; top:50%; left:50%; border-radius:30px; overflow:hidden; background:linear-gradient(165deg, rgba(23,15,42,.9), rgba(23,15,42,.4)); box-shadow:0 26px 80px -30px rgba(0,0,0,.75), 0 10px 36px -14px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.06); display:flex; align-items:center; justify-content:center; transform-style:preserve-3d; cursor:pointer; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity 1.2s ease, box-shadow .6s ease; --mem-radius:30px; clip-path: inset(0 round var(--mem-radius)); }
.memory-slide, .memory-slide img { border-radius:var(--mem-radius); }
.memory-slide::before { content:""; position:absolute; inset:0; border-radius:inherit; padding:1.2px; background:linear-gradient(140deg, rgba(142,240,255,.55), rgba(228,80,255,.35) 45%, rgba(142,240,255,.4)); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none; opacity:.55; transition:opacity .8s ease; }
.memory-slide img { display:block; width:100%; height:100%; object-fit:contain; filter:saturate(1.1) contrast(1.05); transform:scale(1.06); transition: transform 1.6s cubic-bezier(.2,.7,.2,1), filter 1.2s ease; clip-path: inset(0 round var(--mem-radius)); border-radius:inherit; user-select:none; -webkit-user-drag:none; }
.memory-slide::after { content:""; position:absolute; inset:0; background:radial-gradient(circle at 70% 30%, rgba(142,240,255,.25),transparent 65%), radial-gradient(circle at 30% 80%, rgba(228,80,255,.22),transparent 70%); mix-blend-mode:overlay; pointer-events:none; opacity:.6; transition:opacity .8s ease; }
.memory-slide[aria-selected="true"], .memory-slide:hover { box-shadow:0 40px 120px -40px rgba(0,0,0,.85), 0 16px 50px -18px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.12); }
.memory-slide[aria-selected="true"]::before, .memory-slide:hover::before { opacity:.9; }
.memory-slide[aria-selected="true"] img, .memory-slide:hover img { transform:scale(1.12); filter:saturate(1.25) brightness(1.05); }
.memory-slide[aria-selected="true"]::after, .memory-slide:hover::after { opacity:.85; }
.memory-slide.loading { background:linear-gradient(110deg, rgba(40,30,60,.55) 25%, rgba(70,50,100,.65) 35%, rgba(40,30,60,.55) 45%) , radial-gradient(circle at 70% 30%, rgba(142,240,255,.15),transparent 65%); background-size:200% 100%, 100% 100%; animation:memSkeleton 1.4s linear infinite; }
.memory-slide.loading img { opacity:0; }
.memory-slide.error { background:linear-gradient(145deg, #45222a, #2a1418); }
.memory-slide.error::before, .memory-slide.loading::before, .memory-slide.loading::after { opacity:0 !important; }
@keyframes memSkeleton { 0% { background-position: 0% 0; } 100% { background-position: -200% 0; } }
.memories-nav { position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18); width:60px; height:60px; border-radius:20px; cursor:pointer; color:#fff; font-size:32px; line-height:1; display:flex; align-items:center; justify-content:center; backdrop-filter:blur(14px) saturate(1.4); -webkit-backdrop-filter:blur(14px) saturate(1.4); box-shadow:0 12px 36px -12px rgba(0,0,0,.7); transition: background .4s ease, transform .4s cubic-bezier(.2,.7,.2,1); z-index:650; pointer-events:auto; }
.memories-nav:hover { background:rgba(255,255,255,.22); transform:translateY(calc(-50% - 4px)); }
.memories-nav.prev { left:24px; }
.memories-nav.next { right:24px; }
@media (max-width:1100px){ .memory-slide { --mem-radius:26px; } }
@media (max-width:800px){ .memories-carousel { aspect-ratio: 4 / 5.2; } .memory-slide { --mem-radius:24px; } }
@media (max-width:580px){ .memories-carousel { aspect-ratio: 3 / 5; } .memory-slide { --mem-radius:22px; } .memories-nav { width:54px; height:54px; font-size:28px; } }
@media (max-width:430px){ .memory-slide { --mem-radius:20px; } }
@media (prefers-reduced-motion: reduce){ .memory-slide { transition:none !important; } .memory-slide img { transition:none !important; } }
body.carousel-paused .memory-slide { transition-duration:.6s; }
body.memory-modal-open { overflow:hidden; }

/* Expanded memory modal */
.memory-modal-overlay { position:fixed; inset:0; background:radial-gradient(circle at 30% 40%, rgba(122,47,227,.22), transparent 65%), radial-gradient(circle at 80% 70%, rgba(228,80,255,.2), transparent 70%), rgba(10,4,20,0.75); backdrop-filter:blur(16px) saturate(1.3); -webkit-backdrop-filter:blur(16px) saturate(1.3); opacity:0; pointer-events:none; transition:opacity .5s cubic-bezier(.4,.8,.3,1); z-index:300; will-change:opacity; }
.memory-modal-overlay.show { opacity:1; pointer-events:auto; }
.memory-modal { position:fixed; z-index:303; border-radius:34px; overflow:hidden; background:linear-gradient(165deg, rgba(23,15,42,.95), rgba(23,15,42,.55)); box-shadow:0 60px 160px -40px rgba(0,0,0,.85), 0 24px 80px -30px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.08); display:flex; flex-direction:column; opacity:0; pointer-events:none; transform:scale(.85); transition: opacity .38s ease, transform .5s cubic-bezier(.16,.8,.24,1); }
.memory-modal.open { opacity:1; transform:scale(1); pointer-events:auto; }
/* Removed complex ghost animation; keeping stub class in case of future enhancement */
.memory-ghost { display:none !important; }

/* Collapse other slides when expanding center */
.memories-carousel.memory-collapsing .memory-slide:not(.active) { opacity:0; transform:translate3d(0,0,-260px) scale(.4); pointer-events:none; }
.memories-carousel.memory-collapsing .memory-slide { transition:opacity .26s ease, transform .32s cubic-bezier(.4,.8,.3,1); will-change:transform,opacity; }

/* Expander (fullscreen growing element) */
.memory-expander { position:fixed; z-index:400; border-radius:34px; overflow:hidden; background:linear-gradient(165deg, rgba(23,15,42,.95), rgba(23,15,42,.55)); box-shadow:0 60px 160px -40px rgba(0,0,0,.85), 0 24px 80px -30px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.08); display:flex; flex-direction:column; will-change:transform,border-radius; transform-origin: top left; }
.memory-expander img { width:100%; height:100%; flex:1; object-fit:contain; filter:saturate(1.18) contrast(1.05); pointer-events:none; }
.memory-expander .memory-modal-caption { padding:18px 26px 24px; font-size:14px; letter-spacing:.3px; color:var(--muted); line-height:1.4; text-align:center; background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0)); }
.memory-expander { transition: transform .6s cubic-bezier(.16,.8,.24,1), border-radius .55s cubic-bezier(.16,.8,.24,1), box-shadow .55s cubic-bezier(.16,.8,.24,1); }
.memory-expander.shrinking { transition: transform .55s cubic-bezier(.5,.2,.2,1), border-radius .5s cubic-bezier(.5,.2,.2,1), box-shadow .5s cubic-bezier(.5,.2,.2,1); }
.memory-expander .memory-modal-close { position:absolute; top:14px; right:14px; }

/* Ghosts used to visually collapse other slides behind center */
.memory-collapse-ghost { position:fixed; z-index:350; pointer-events:none; border-radius:34px; overflow:hidden; filter:saturate(1.05) brightness(.95); transition: top .42s cubic-bezier(.55,.85,.25,1), left .42s cubic-bezier(.55,.85,.25,1), width .42s cubic-bezier(.55,.85,.25,1), height .42s cubic-bezier(.55,.85,.25,1), opacity .32s ease; will-change: top,left,width,height,opacity; }
.memory-collapse-ghost img { width:100%; height:100%; object-fit:cover; }
.memories-carousel.slides-hidden .memory-slide:not(.active) { visibility:hidden; }
/* Modal image fade to avoid flicker while ghost animates */
/* Remove prior fade gating to avoid flicker; show image immediately */
.memory-modal img[data-mem-modal-img]{ opacity:1; }
.memory-modal img { width:100%; height:100%; object-fit:cover; flex:1; filter:saturate(1.18) contrast(1.05); }
.memory-modal .memory-modal-caption { padding:18px 26px 24px; font-size:14px; letter-spacing:.3px; color:var(--muted); line-height:1.4; text-align:center; background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0)); }
.memory-modal-close { position:absolute; top:14px; right:14px; width:54px; height:54px; border:0; border-radius:18px; background:linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); color:#fff; font-size:32px; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 18px 46px -18px rgba(0,0,0,.75), 0 6px 22px -6px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.12); transition: background .4s ease, transform .4s cubic-bezier(.2,.7,.2,1); z-index:5; }
.memory-modal-close:hover { background:linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.1)); transform:translateY(-4px); }
.memory-modal-close:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media (max-width:700px){ .memory-modal-close { width:48px; height:48px; font-size:28px; } .memory-modal .memory-modal-caption { padding:14px 18px 20px; } }
@media (prefers-reduced-motion: reduce){ .memory-modal { transition:none !important; } .memory-modal-overlay { transition:none !important; } }

/* Floating Event Cards */
.events-floating-grid { position:relative; display:grid; gap:40px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top:46px; }
.event-card { position:relative; padding:30px 26px 36px; border-radius:28px; background:linear-gradient(165deg, rgba(23,15,42,.82), rgba(23,15,42,.38)); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border:1px solid rgba(255,255,255,.12); box-shadow:0 30px 80px -20px rgba(0,0,0,.65), 0 6px 28px -8px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.05); overflow:visible; transform:translateY(20px) scale(.96); opacity:0; transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease; }
.event-card.highlight { border-color:rgba(142,240,255,.5); }
.event-card.show { opacity:1; transform:translateY(0) scale(1); }
.event-card-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; }
.event-title { margin:0; font-size:clamp(20px,2.2vw,28px); font-weight:800; letter-spacing:.5px; background:linear-gradient(90deg,var(--primary-start),var(--primary-end)); -webkit-background-clip:text; background-clip:text; color:transparent; filter:drop-shadow(0 4px 12px rgba(0,0,0,.55)); }
.event-badge { display:inline-block; padding:6px 12px 7px; font-size:11px; letter-spacing:1px; text-transform:uppercase; font-weight:700; border-radius:999px; background:linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); color:var(--muted); box-shadow:inset 0 0 0 1px rgba(255,255,255,.15), 0 2px 8px -2px rgba(0,0,0,.5); backdrop-filter:blur(8px); white-space:nowrap; }
.event-badge.accent { background: linear-gradient(135deg, var(--primary-start), var(--primary-end)); color:#fff; }
.event-summary { margin:0 0 14px; font-size:15px; line-height:1.55; color:#e7dbff; }
.event-meta { list-style:none; padding:0; margin:0 0 20px; display:grid; gap:6px; font-size:14px; }
.event-meta li { background:rgba(255,255,255,.05); padding:8px 12px; border-radius:12px; display:flex; gap:6px; align-items:center; border:1px solid rgba(255,255,255,.06); }
.event-meta li strong { white-space:nowrap; }
.event-meta li .event-location-address { line-height:1.4; }
.event-actions { display:flex; gap:14px; flex-wrap:wrap; }
.event-actions { align-items: center; }
.event-actions .btn-primary, .event-actions .ghost { white-space: nowrap; }
.event-actions .ghost { display: inline-block; text-align: center; }
.event-actions .ghost[aria-disabled="true"] { opacity: .85; cursor: default; }
.event-card::before { content:""; position:absolute; inset:0; border-radius:inherit; background: radial-gradient(circle at 78% 18%, rgba(142,240,255,.2), transparent 60%), radial-gradient(circle at 18% 82%, rgba(228,80,255,.18), transparent 60%); mix-blend-mode:overlay; opacity:.85; pointer-events:none; }
.event-glow { position:absolute; inset:-1px; border-radius:inherit; padding:1px; background:linear-gradient(140deg, rgba(142,240,255,.55), rgba(228,80,255,.25) 40%, rgba(142,240,255,.2)); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; opacity:.5; pointer-events:none; transition:opacity .6s ease; }
.event-card:hover .event-glow, .event-card:focus-within .event-glow { opacity:.85; }
.event-card:hover, .event-card:focus-within { box-shadow:0 48px 120px -32px rgba(0,0,0,.75), 0 10px 40px -10px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.12); }

/* Animated lift glow effect */
.event-card::after { content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; background:
  radial-gradient(circle at 28% 35%, rgba(170,60,255,.55), rgba(120,40,200,0) 65%),
  radial-gradient(circle at 72% 70%, rgba(120,40,255,.5), rgba(80,20,150,0) 70%),
  radial-gradient(circle at 50% 50%, rgba(140,50,255,.35), rgba(90,30,180,0) 60%);
background-size:180% 180%; filter:blur(34px) saturate(1.25); opacity:0; pointer-events:none; transform:translateY(12px) scale(.9); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1), filter 1.2s ease;
animation:eventGlowMove 8s linear infinite;
mix-blend-mode:plus-lighter; }
.event-card:hover::after, .event-card:focus-within::after { opacity:.9; transform:translateY(22px) scale(1.05); filter:blur(40px) saturate(1.35); }

@keyframes eventGlowMove { 0% { background-position:0% 0%; } 50% { background-position:100% 100%; } 100% { background-position:0% 0%; } }

/* Tilt effect shadow accent */
.event-card[data-tilt] { --tiltX:0deg; --tiltY:0deg; --tiltRx:0; --tiltRy:0; }
.event-card[data-tilt] { transform: perspective(1400px) rotateX(var(--tiltX)) rotateY(var(--tiltY)) translateY(0) scale(1); transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease; }
.event-card[data-tilt]:hover { transition: transform .18s cubic-bezier(.2,.7,.2,1); transform: perspective(1400px) rotateX(var(--tiltX)) rotateY(var(--tiltY)) translateY(-16px) scale(1.03); }
/* Non-tilt environments (e.g., reduced motion / mobile) lift */
.event-card:not([data-tilt]):hover, .event-card:not([data-tilt]):focus-within { transform:translateY(-16px) scale(1.03); }
@media (prefers-reduced-motion: reduce){ .event-card::after { animation:none; } }
@media (max-width:600px) {
  .events-floating-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-left: -10px;
    margin-right: -10px;
  }
  .event-card {
    padding: 18px 8px 24px;
    border-radius: 18px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .event-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .event-title {
    font-size: 19px;
  }
  .event-snaps {
    gap: 6px;
  }
  .event-snaps img {
    width: 40px;
    height: 40px;
  }
  .event-actions {
    flex-direction: column;
    gap: 10px;
  }
  .event-actions .btn-primary, .event-actions .ghost { width: 100%; text-align: center; }
}
@media (max-width:600px) {
  .memories-showcase {
    padding: 0 2vw 18px 2vw;
    min-height: 380px;
  }
  .memories-carousel {
    aspect-ratio: 1 / 1.1;
    max-width: 98vw;
    min-height: 220px;
    transform: scale(1);
  }
  .memory-slide {
    min-width: 0;
    min-height: 0;
  }
}

@media (max-width:700px){ .event-card { padding:26px 22px 32px; } }
@media (prefers-reduced-motion: reduce){
  .gallery-3d-ring, .event-card[data-tilt] { transition:none !important; }
  .event-card[data-tilt] { transform:none !important; }
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.show {
  opacity: 1;
  transform: none;
}

.card.product-card:hover,
.card.product-card:focus-within {
  transform: translateY(-4px);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ===== Product Modal (Expanding Tile) ===== */
body.product-modal-open { overflow:hidden; }
/* Share blur effect with raffle modal as well */
body.product-modal-open main.container,
body.product-modal-open header.nav,
body.product-modal-open footer,
body.raffle-modal-open main.container,
body.raffle-modal-open header.nav,
body.raffle-modal-open footer { filter: blur(6px) brightness(.82) saturate(.9); transition: filter .55s cubic-bezier(.2,.7,.2,1); }
body.product-modal-open header.nav { backdrop-filter: blur(14px); }
.product-modal-overlay { background: radial-gradient(circle at 30% 40%, rgba(122,47,227,.28), transparent 65%), radial-gradient(circle at 80% 70%, rgba(228,80,255,.23), transparent 70%), rgba(10,4,20,0.72); backdrop-filter: blur(14px) saturate(1.35); -webkit-backdrop-filter: blur(14px) saturate(1.35); opacity:0; transition: opacity .55s ease; }
.product-modal-overlay.show { opacity:1; }
.product-modal-clone { border-radius:30px; display:flex; flex-direction:column; background: linear-gradient(165deg, rgba(23,15,42,0.92), rgba(23,15,42,0.55)); box-shadow:0 50px 160px -40px rgba(0,0,0,.85), 0 24px 70px -20px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.08); overflow:hidden; position:fixed; will-change:transform; }
.product-card.expanding { position:relative; }
.product-card.expanding.fade-out { opacity:0; transition: opacity .35s ease; pointer-events:none; }
.product-modal-clone:not(.open) { overflow:hidden !important; }
.product-tile-orig-wrap { pointer-events:none; }
.product-modal-clone::before { content:""; position:absolute; inset:0; border-radius:inherit; padding:1.2px; background:linear-gradient(140deg, rgba(142,240,255,.55), rgba(228,80,255,.32) 45%, rgba(142,240,255,.35)); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; opacity:.65; pointer-events:none; transition:opacity .6s ease; }
.product-modal-clone.open { box-shadow:0 70px 200px -50px rgba(0,0,0,.9), 0 30px 90px -28px rgba(0,0,0,.75), inset 0 0 0 1px rgba(255,255,255,.12); }
.product-modal-clone.open::before { opacity:.9; }
.product-modal-inner { display:grid; grid-template-columns: 1fr 1fr; gap:38px; padding:48px 54px 56px; height:100%; overflow:auto; position:relative; }
/* Morph animation: hide enlarged layout until container finishes size transition */
/* FLIP modal content fade subtle */
.product-modal-clone .product-modal-inner { opacity:0; }
.product-modal-clone.open .product-modal-inner { animation: modalContentIn .5s cubic-bezier(.2,.7,.2,1) .08s forwards; }
@keyframes modalContentIn { from { opacity:0; transform:translateY(10px) scale(.96); } to { opacity:1; transform:translateY(0) scale(1); } }

/* Old tile content wrapper fades out after growth */
.tile-morph-old { position:absolute; inset:0; }
@media (max-width:1060px){ .product-modal-inner { padding:42px 46px 50px; } }
@media (max-width: 860px){ .product-modal-inner { grid-template-columns:1fr; padding:30px 28px 34px; overflow:auto; } }
.product-modal-media { position:relative; border-radius:26px; background:linear-gradient(140deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); padding:18px; display:flex; align-items:center; justify-content:center; box-shadow:inset 0 0 0 1px rgba(255,255,255,.1), 0 30px 80px -30px rgba(0,0,0,.75), 0 10px 32px -10px rgba(0,0,0,.6); overflow:hidden; }
.product-modal-media img { width:100%; height:auto; object-fit:contain; max-height:560px; filter:drop-shadow(0 18px 40px rgba(0,0,0,.65)); transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.product-modal-clone.open .product-modal-media img { transform:scale(1.02); }
.product-modal-info h2 { margin:0 0 14px; font-size:clamp(28px,3.4vw,52px); line-height:1.05; letter-spacing:.6px; font-weight:900; background:linear-gradient(90deg,var(--primary-start),var(--primary-end)); -webkit-background-clip:text; background-clip:text; color:transparent; filter:drop-shadow(0 8px 26px rgba(0,0,0,.65)); }
.product-modal-info .desc { margin:0 0 28px; font-size:16px; line-height:1.65; color:#e7dbff; max-width:640px; }
.product-modal-info .price-row .price { font-size:30px; font-weight:800; background:linear-gradient(90deg,var(--primary-start),var(--primary-end)); -webkit-background-clip:text; background-clip:text; color:transparent; text-shadow:0 8px 24px rgba(0,0,0,.5); }
.product-modal-info .actions { margin-top:34px; }
.product-modal-info .actions .add-to-cart { font-size:16px; padding:16px 30px; border-radius:18px; box-shadow:0 12px 30px -10px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.15); }
.product-modal-info .actions .add-to-cart:hover { transform:translateY(-3px); }
.product-modal-close { position:absolute; top:16px; right:16px; background:linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.04)); color:#fff; border:0; width:54px; height:54px; border-radius:18px; font-size:30px; line-height:1; cursor:pointer; box-shadow:0 18px 46px -18px rgba(0,0,0,.75), 0 6px 20px -6px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.15); display:flex; align-items:center; justify-content:center; transition: background .45s ease, transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .55s ease; font-weight:600; }
.product-modal-close:hover { background:linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.08)); transform:translateY(-4px) scale(1.03); box-shadow:0 30px 70px -24px rgba(0,0,0,.85), 0 10px 30px -12px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.18); }
.product-modal-close:active { transform:translateY(-1px) scale(.97); }
.product-modal-close:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media (max-width:700px){ .product-modal-close { width:48px; height:48px; font-size:28px; top:12px; right:12px; } }
@media (prefers-reduced-motion: reduce){ .product-modal-clone { transition:none !important; } .product-modal-overlay { transition:none !important; } body.product-modal-open main.container, body.product-modal-open header.nav, body.product-modal-open footer { filter:none !important; } }

/* ===== Raffle Learn More Modal ===== */
.raffle-overlay { background: radial-gradient(circle at 30% 40%, rgba(122,47,227,.28), transparent 65%), radial-gradient(circle at 80% 70%, rgba(228,80,255,.23), transparent 70%), rgba(10,4,20,0.72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); position:fixed; inset:0; z-index:300; opacity:0; pointer-events:none; transition: opacity .45s ease; }
.raffle-overlay.show { opacity:1; pointer-events:auto; }
.raffle-expander { position:fixed; z-index:304; border-radius:28px; overflow:hidden; background:linear-gradient(165deg, rgba(23,15,42,.95), rgba(23,15,42,.6)); box-shadow:0 60px 160px -40px rgba(0,0,0,.85), 0 24px 80px -30px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.08); display:flex; flex-direction:column; opacity:1; transform-origin: top left; will-change: transform, border-radius; }
.raffle-expander.fading-out { opacity:0; transition: opacity .45s ease; }
.raffle-close { position:absolute; top:14px; right:14px; width:50px; height:50px; border:0; border-radius:16px; background:linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); color:#fff; font-size:28px; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 18px 46px -18px rgba(0,0,0,.75), 0 6px 20px -6px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.12); transition: background .35s ease, transform .35s cubic-bezier(.2,.7,.2,1); z-index:5; }
.raffle-close:hover { background:linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.1)); transform:translateY(-3px); }
.raffle-inner { display:grid; grid-template-columns: minmax(320px, .9fr) 1.1fr; gap:36px; padding:46px 52px 52px; height:100%; overflow:auto; align-items: stretch; }
@media (max-width: 900px){ .raffle-inner { grid-template-columns:1fr; padding:30px 28px 38px; } }
.raffle-title { margin:0 0 8px; font-size: clamp(26px, 3.2vw, 44px); line-height:1.05; font-weight:900; background:linear-gradient(90deg,var(--primary-start),var(--primary-end)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.raffle-lead { margin:0 0 14px; font-size:16px; color:#e7dbff; }
.raffle-specs { margin:0 0 10px; padding-left:18px; color:#e7dbff; line-height:1.55; }
.raffle-specs li { margin:6px 0; }
.raffle-cta { margin-top:16px; display:flex; gap:12px; flex-wrap:wrap; }
/* Single-image container: fixed landscape aspect, vertically centered with inner padding */
.raffle-media { border-radius:24px; background:linear-gradient(140deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); padding:16px; display:flex; align-items:center; justify-content:center; box-shadow:inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px -30px rgba(0,0,0,.75), 0 10px 32px -10px rgba(0,0,0,.6); height:auto; width:100%; aspect-ratio: 16 / 9; align-self:center; }
.raffle-media img { width:100%; height:100%; object-fit:contain; max-height:none; border-radius:14px; filter:drop-shadow(0 14px 34px rgba(0,0,0,.6)); }
/* Right visual column container */
.raffle-gallery { display:flex; flex-direction:column; gap:16px; width:100%; height:auto; min-height:320px; align-self:center; }
@media (max-width: 900px){ .raffle-gallery { min-height: 46vh; } }
@media (max-width:600px){ .raffle-close { width:46px; height:46px; font-size:26px; } }
@media (prefers-reduced-motion: reduce){ .raffle-overlay, .raffle-expander { transition:none !important; }
  body.raffle-modal-open main.container, body.raffle-modal-open header.nav, body.raffle-modal-open footer { filter:none !important; }
}

/* Raffle Carousel */
/* Carousel container: fixed landscape aspect with consistent inner padding */
.raffle-carousel { position:relative; width:100%; height:auto; aspect-ratio: 16 / 9; border-radius:24px; overflow:hidden; background:linear-gradient(140deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); box-shadow:inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px -30px rgba(0,0,0,.75), 0 10px 32px -10px rgba(0,0,0,.6); align-self:center; }
.raffle-slides { position:absolute; inset:16px; display:block; }
.raffle-slide { position:absolute; inset:0; opacity:0; transition: opacity .55s ease; border-radius:18px; overflow:hidden; }
.raffle-slide.active { opacity:1; }
.raffle-slide img { width:100%; height:100%; object-fit:contain; background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.04), rgba(0,0,0,0)); border-radius:16px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.5)); }
.raffle-nav { position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18); width:48px; height:48px; border-radius:16px; cursor:pointer; color:#fff; font-size:26px; line-height:1; display:flex; align-items:center; justify-content:center; backdrop-filter:blur(12px) saturate(1.3); -webkit-backdrop-filter:blur(12px) saturate(1.3); box-shadow:0 12px 36px -12px rgba(0,0,0,.7); transition: background .3s ease, transform .3s cubic-bezier(.2,.7,.2,1); z-index:2; }
.raffle-nav:hover { background:rgba(255,255,255,.22); transform:translateY(calc(-50% - 2px)); }
.raffle-nav.prev { left:12px; }
.raffle-nav.next { right:12px; }
.raffle-dots { position:absolute; bottom:10px; left:50%; transform:translateX(-50%); display:flex; gap:8px; z-index:2; }
.raffle-dot { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.45); box-shadow:0 2px 6px rgba(0,0,0,.5); transition: transform .25s ease, background .25s ease; }
.raffle-dot.active { background:linear-gradient(135deg, var(--primary-start), var(--primary-end)); transform:scale(1.25); }
@media (max-width:700px){ .raffle-nav { width:44px; height:44px; font-size:22px; } }

/* === New transform-first modal panel approach === */
.tile-hidden { visibility:hidden !important; }
.product-modal-panel { position:fixed; background:linear-gradient(165deg, rgba(23,15,42,.95), rgba(23,15,42,.6)); box-shadow:0 50px 160px -40px rgba(0,0,0,.85), 0 24px 70px -20px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.08); border-radius:28px; overflow:hidden; z-index:1002; display:flex; flex-direction:column; backdrop-filter:blur(14px) saturate(1.35); -webkit-backdrop-filter:blur(14px) saturate(1.35); }
.product-modal-panel.open { box-shadow:0 70px 200px -60px rgba(0,0,0,.9), 0 32px 90px -24px rgba(0,0,0,.75), inset 0 0 0 1px rgba(255,255,255,.12); }
.product-modal-panel .panel-body { display:grid; grid-template-columns:1fr 1fr; gap:40px; padding:52px 56px 60px; height:100%; overflow:hidden; position:relative; }
@media (max-width:900px){ .product-modal-panel .panel-body { grid-template-columns:1fr; padding:34px 32px 46px; } }
.product-modal-panel .panel-media { background:linear-gradient(140deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border-radius:26px; padding:20px; display:flex; align-items:center; justify-content:center; box-shadow:inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px -30px rgba(0,0,0,.75), 0 10px 32px -10px rgba(0,0,0,.6); }
.product-modal-panel .panel-media img { width:100%; height:auto; max-height:560px; object-fit:contain; filter:drop-shadow(0 18px 40px rgba(0,0,0,.65)); }
.product-modal-panel .panel-title { margin:0 0 18px; font-size:clamp(30px,3.4vw,54px); line-height:1.04; font-weight:900; background:linear-gradient(90deg,var(--primary-start),var(--primary-end)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.product-modal-panel .panel-desc { margin:0 0 30px; font-size:16px; line-height:1.62; color:#e7dbff; }
.product-modal-panel .panel-actions { margin-top:34px; }
.product-modal-panel .panel-actions .add-to-cart { font-size:16px; padding:16px 30px; border-radius:18px; }
.product-modal-panel .product-modal-close { position:absolute; top:16px; right:16px; background:linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); color:#fff; border:0; width:54px; height:54px; border-radius:18px; font-size:30px; cursor:pointer; box-shadow:0 18px 46px -18px rgba(0,0,0,.75), 0 6px 20px -6px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.15); display:flex; align-items:center; justify-content:center; transition: background .45s ease, transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .55s ease; font-weight:600; }
.product-modal-panel .product-modal-close:hover { background:linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.1)); transform:translateY(-4px) scale(1.03); }
@media (max-width:700px){ .product-modal-panel .product-modal-close { width:48px; height:48px; font-size:28px; top:12px; right:12px; } }
.morph-fade { opacity:0; transform:translateY(12px); transition: opacity .55s ease .08s, transform .55s cubic-bezier(.2,.7,.2,1) .08s; }
.product-modal-panel.open .morph-fade { opacity:1; transform:translateY(0); }
.morph-fade.out { opacity:0 !important; transform:translateY(8px) !important; transition: opacity .35s ease, transform .35s ease; }
@media (prefers-reduced-motion: reduce){ .product-modal-panel { transition:none !important; } .morph-fade { transition:none !important; } }

/* Updated clone morph modal adjustments - PERFECT SEAMLESS MORPHING */
.product-modal-clone { 
  transition: none; 
  overflow: hidden; 
}
.product-modal-clone.expanding { overflow: hidden; }
.product-modal-clone.open { transition: box-shadow .55s ease, border-radius .55s ease; }

/* Base structure - EXACTLY match original product tile */
.product-modal-clone { display: flex; flex-direction: column; }
.product-modal-clone .card-link { 
  display: flex; 
  flex-direction: column; 
  flex: 1; 
  padding: 0;
}

/* Initial state - match product tile exactly */
.product-modal-clone .media-wrap { 
  transition: all .65s cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.product-modal-clone .media-aspect { 
  transition: all .65s cubic-bezier(.2,.7,.2,1);
  position: relative; 
  width: 100%; 
  aspect-ratio: 4 / 3; 
  background: rgba(255,255,255,0.04); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  overflow: hidden;
}
.product-modal-clone .card-content { 
  transition: all .65s cubic-bezier(.2,.7,.2,1);
  padding: 18px 18px 10px;
  display: flex; 
  flex-direction: column; 
  gap: 6px;
}
.product-modal-clone .tile-actions { 
  transition: all .65s cubic-bezier(.2,.7,.2,1);
  padding: 0 18px 18px;
}
.product-modal-clone .product-title { 
  transition: all .65s cubic-bezier(.2,.7,.2,1);
  margin: 0; 
  font-size: 16px; 
  line-height: 1.25; 
  font-weight: 700; 
  letter-spacing: .3px;
}
.product-modal-clone .product-desc { 
  transition: all .65s cubic-bezier(.2,.7,.2,1);
  margin: 0; 
  font-size: 13px; 
  color: var(--muted); 
  line-height: 1.4; 
  min-height: 2.8em;
}
.product-modal-clone .price-row { 
  transition: all .65s cubic-bezier(.2,.7,.2,1);
  margin-top: 4px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
}
.product-modal-clone .price-row .price { 
  transition: all .65s cubic-bezier(.2,.7,.2,1);
  font-weight: 700; 
  font-size: 15px; 
  background: linear-gradient(90deg,var(--primary-start),var(--primary-end)); 
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent;
}
.product-modal-clone .add-to-cart { 
  transition: all .65s cubic-bezier(.2,.7,.2,1);
  font-size: 13px; 
  padding: 10px 14px; 
  border-radius: 10px; 
  letter-spacing: .4px;
}

/* EXPANDING STATE - smoothly transform layout and styles */
.product-modal-clone.expanding .card-link {
  padding: 48px 56px;
}

/* Desktop: Simple grid transformation */
@media (min-width: 861px) {
  .product-modal-clone.expanding .card-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    gap: 40px;
    align-items: start;
    padding: 48px 56px;
  }
  
  .product-modal-clone.expanding .media-wrap {
    grid-column: 1;
    grid-row: 1 / -1;
  }
  
  .product-modal-clone.expanding .card-content {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    gap: 16px;
  }
  
  .product-modal-clone.expanding .tile-actions {
    grid-column: 2;
    grid-row: 2;
    padding: 20px 0 0 0;
    justify-self: start;
  }
}

/* Mobile: Keep single column but adjust spacing */
@media (max-width: 860px) {
  .product-modal-clone.expanding .card-link {
    padding: 30px 28px;
    gap: 20px;
  }
  
  .product-modal-clone.expanding .card-content {
    padding: 0;
    gap: 16px;
  }
  
  .product-modal-clone.expanding .tile-actions {
    padding: 20px 0 0 0;
  }
}

/* Enhanced styling for modal state */
.product-modal-clone.expanding .media-aspect { 
  aspect-ratio: auto; 
  background: linear-gradient(140deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); 
  border-radius: 20px; 
  padding: 18px; 
  min-height: 280px;
}

.product-modal-clone.expanding .product-title { 
  font-size: clamp(24px, 4vw, 42px); 
  line-height: 1.1; 
  background: linear-gradient(90deg,var(--primary-start),var(--primary-end)); 
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
  letter-spacing: .4px; 
  margin: 0;
}

.product-modal-clone.expanding .product-desc { 
  font-size: 15px; 
  line-height: 1.5; 
  color: #e7dbff; 
  margin: 0;
  min-height: auto;
}

.product-modal-clone.expanding .price-row {
  margin-top: 0;
  margin-bottom: 0;
}

.product-modal-clone.expanding .price-row .price { 
  font-size: 24px; 
  font-weight: 800; 
}

.product-modal-clone.expanding .add-to-cart { 
  font-size: 15px; 
  padding: 14px 28px; 
  border-radius: 16px; 
  letter-spacing: .2px;
}
.product-modal-clone .modal-extra { opacity:0; transform:translateY(8px); transition: opacity .4s ease .15s, transform .55s cubic-bezier(.2,.7,.2,1) .15s; font-size:12px; letter-spacing:.5px; text-transform:uppercase; color:var(--muted); font-weight:600; }
.product-modal-clone.open .modal-extra { opacity:.85; transform:translateY(0); }
.product-modal-clone .product-modal-close { position:absolute; top:16px; right:16px; background:linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); color:#fff; border:0; width:54px; height:54px; border-radius:18px; font-size:30px; cursor:pointer; box-shadow:0 18px 46px -18px rgba(0,0,0,.75), 0 6px 20px -6px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.15); display:flex; align-items:center; justify-content:center; transition: background .45s ease, transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .55s ease, opacity .45s ease; font-weight:600; opacity:0; pointer-events:none; }
.product-modal-clone.expanding .product-modal-close { opacity:1; pointer-events:auto; transition-delay:.35s; }
.product-modal-clone .product-modal-close:hover { background:linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.1)); transform:translateY(-4px) scale(1.03); }
.product-modal-clone .product-modal-close:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media (max-width:700px){ .product-modal-clone .product-modal-close { width:48px; height:48px; font-size:28px; top:12px; right:12px; } }

/* Product option dropdowns */
.product-options { display:grid; gap:12px; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); margin:4px 0 8px; }
.product-option-group { display:flex; flex-direction:column; gap:4px; }
.product-option-label { font-size:11px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:var(--muted); }
.product-option-select { appearance:none; -webkit-appearance:none; font:inherit; padding:10px 12px; border-radius:12px; border:1px solid rgba(255,255,255,.15); background: linear-gradient(165deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); color:var(--text); cursor:pointer; box-shadow:0 4px 14px -6px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.04); position:relative; backdrop-filter:blur(8px) saturate(1.3); -webkit-backdrop-filter:blur(8px) saturate(1.3); }
.product-option-select:focus { outline:2px solid var(--accent); outline-offset:2px; }
.product-option-select:hover { filter:brightness(1.08); }
.fade-in-modal { opacity:0; transform:translateY(6px); transition: opacity .45s ease .2s, transform .55s cubic-bezier(.2,.7,.2,1) .2s; }
.product-modal-clone.open .fade-in-modal { opacity:1; transform:translateY(0); }

/* Cart option summary */
.cart-item-options { font-size:11px; font-weight:600; letter-spacing:.4px; color:var(--muted); margin-top:4px; opacity:.85; }

/* Donation Modal */
.donate-modal { position:fixed; inset:0; background:rgba(10,6,20,0.82); backdrop-filter:blur(22px) saturate(1.2); -webkit-backdrop-filter:blur(22px) saturate(1.2); display:flex; align-items:center; justify-content:center; padding:40px 24px; z-index:200; opacity:0; pointer-events:none; transition: opacity .45s ease; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.donate-modal.open { opacity:1; pointer-events:auto; }
/* Allow scrolling when PayPal card fields expand beyond viewport */
.donate-dialog { width:100%; max-width:540px; background:linear-gradient(165deg,#1a0f2f,#120a22); border-radius:28px; padding:38px 40px 44px; position:relative; box-shadow:0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.05); animation: popIn .6s cubic-bezier(.2,.7,.2,1); max-height:calc(100vh - 80px); overflow-y:auto; -webkit-overflow-scrolling:touch; }
/* When content fits, keep it visually centered; if taller, top-align naturally due to scroll */
.donate-modal:before { content:""; flex:0 0 auto; }
@media (max-width:600px){
  .donate-dialog { max-height:calc(100vh - 60px); }
}
@keyframes popIn { 0% { transform:translateY(24px) scale(.96); opacity:0; } 100% { transform:translateY(0) scale(1); opacity:1; } }
.donate-dialog:focus { outline:none; }
.donate-close { position:absolute; top:16px; right:16px; width:48px; height:48px; border-radius:16px; border:0; background:linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.05)); color:#fff; font-size:32px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 12px 34px -12px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.15); transition: background .35s ease, transform .4s cubic-bezier(.2,.7,.2,1); }
.donate-close:hover { background:linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.09)); transform:translateY(-4px); }
.donate-close:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
#donate-modal h2 { margin:0 0 10px; font-size: clamp(28px, 4vw, 40px); line-height:1.1; background: linear-gradient(90deg,var(--primary-start),var(--primary-end)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.donate-intro { margin:0 0 26px; font-size:15px; color:#e5d8ff; line-height:1.5; }
.donate-form { display:flex; flex-direction:column; gap:26px; }
.amount-row { display:flex; flex-direction:column; gap:18px; }
.quick-amounts { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(90px,1fr)); }
.quick-amt { font:inherit; font-weight:700; letter-spacing:.4px; padding:12px 8px; background:linear-gradient(135deg, var(--primary-start), var(--primary-end)); color:#fff; border:0; border-radius:14px; cursor:pointer; box-shadow:var(--shadow); transition: transform .3s ease, filter .3s ease; }
.quick-amt:hover { transform:translateY(-3px); filter:brightness(1.1); }
.quick-amt.active { outline:2px solid var(--accent); outline-offset:2px; }
.amount-input-label { display:flex; flex-direction:column; gap:8px; font-size:12px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; color:var(--muted); }
.amount-input-wrap { position:relative; display:flex; align-items:center; }
.amount-input-wrap .currency { position:absolute; left:16px; top:50%; transform:translateY(-50%); font-weight:700; opacity:.75; }
#donation-amount { width:100%; font:inherit; padding:16px 16px 16px 34px; border-radius:16px; border:1px solid rgba(255,255,255,.15); background:linear-gradient(165deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); color:var(--text); box-shadow:0 6px 20px -8px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.05); -webkit-appearance:textfield; appearance:textfield; }
#donation-amount:focus { outline:2px solid var(--accent); outline-offset:2px; }
#donation-amount::-webkit-inner-spin-button,#donation-amount::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.paypal-buttons { min-height:60px; display:flex; align-items:center; justify-content:center; position:relative; }
.paypal-msg { font-size:14px; font-weight:600; letter-spacing:.3px; margin-top:8px; }
.donate-secure { margin-top:24px; font-size:11px; letter-spacing:.5px; text-transform:uppercase; color:var(--muted); text-align:center; }
@media (max-width:600px){ .donate-dialog { padding:32px 26px 38px; border-radius:24px; } .quick-amt { padding:14px 4px; } }

/* Donation Thank You State */
.donate-dialog.thanks-mode { padding:60px 40px 56px; }
.donate-dialog.thanks-mode .donate-form,
.donate-dialog.thanks-mode #donate-modal-title,
.donate-dialog.thanks-mode .donate-intro,
.donate-dialog.thanks-mode .donate-secure { display:none !important; }
.donate-thanks { text-align:center; animation: fadeUp .65s cubic-bezier(.2,.7,.2,1); position:relative; z-index:5; }
@keyframes fadeUp { from { opacity:0; transform:translateY(14px);} to { opacity:1; transform:translateY(0);} }
.donate-thanks h2 { margin:0 0 14px; font-size: clamp(34px,4.5vw,50px); background: linear-gradient(90deg,var(--primary-start),var(--primary-end)); -webkit-background-clip:text; background-clip:text; color:transparent; letter-spacing:.6px; }
.thanks-msg { margin:0 0 22px; font-size:16px; line-height:1.55; color:#e7dbff; }
.thanks-icon { width:140px; height:140px; margin:0 auto 8px; filter: drop-shadow(0 10px 28px rgba(0,0,0,.55)); animation: popIcon .9s cubic-bezier(.2,.7,.2,1); }
@keyframes popIcon { 0% { transform:scale(.6) rotate(-15deg); opacity:0;} 60% { transform:scale(1.05) rotate(3deg); opacity:1;} 100% { transform:scale(1) rotate(0);} }
.auto-close-note { margin:0; font-size:12px; letter-spacing:.5px; text-transform:uppercase; color:var(--muted); opacity:.85; }
.donate-confetti { position:absolute; inset:0; overflow:hidden; z-index:1; pointer-events:none; }
.donate-modal.open .donate-confetti { animation: confettiFadeIn .4s ease; }
@keyframes confettiFadeIn { from { opacity:0; } to { opacity:1; } }
.confetti-piece { position:absolute; width:10px; height:14px; background:linear-gradient(135deg,var(--primary-start),var(--primary-end)); border-radius:3px; opacity:0; animation: confettiFullFall var(--dur) linear forwards; transform-origin:center; }
/* Performance hints */
.confetti-piece { will-change: transform, opacity; }
@keyframes confettiFullFall { 0% { opacity:0; transform:translate3d(var(--x-start), -20px, 0) rotateZ(0deg) rotateX(0deg) rotateY(0deg); } 5% { opacity:1; } 100% { opacity:0; transform:translate3d(var(--x-end), 120vh, 0) rotateZ(var(--rz)) rotateX(var(--rx)) rotateY(var(--ry)); } }
@media (prefers-reduced-motion: reduce){ .confetti-piece { animation:none !important; display:none; } }
