/**
 * ATSTIX Components Stylesheet
 * Header, Hero, Collections, Product Cards, Pack Builder, Playground, Cart & Modals
 */

/* ==========================================================================
   1. INTRO LOADER
   ========================================================================== */
#site-loader {
  position: fixed;
  inset: 0;
  background-color: #050508;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

#site-loader.loader-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
  animation: pulse-glow 1.5s infinite alternate ease-in-out;
}

.loader-tagline {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}

.loader-tagline.reveal {
  opacity: 1;
  transform: translateY(0);
}

.loader-bar-wrap {
  width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.5rem;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  animation: load-progress 1.1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* ==========================================================================
   2. SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  padding: 0.8rem 0;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  user-select: none;
}

.logo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 12px var(--accent-pink);
  animation: pulse-dot 2s infinite ease-in-out;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-smooth);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: all var(--transition-smooth);
  position: relative;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.cart-btn-wrapper {
  position: relative;
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--accent-coral);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.6);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-count-badge.hidden {
  display: none;
}

.cart-bounce {
  animation: cart-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.mobile-menu-btn {
  display: none;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 10;
  max-width: 960px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  margin-bottom: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  animation: float-gentle 4s ease-in-out infinite;
}

.hero-badge-pill {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7.5vw, 5.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.8rem;
  text-transform: uppercase;
}

.hero-title-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 3rem auto;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-stat-icon {
  font-size: 1.5rem;
}

.hero-stat-text h4 {
  font-size: 1rem;
  color: var(--text-main);
}

.hero-stat-text p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Celestial Glowing Moon */
.hero-celestial-moon {
  position: absolute;
  top: 7%;
  right: 7%;
  width: 210px;
  height: 210px;
  pointer-events: none;
  z-index: 3;
  animation: float-moon 9s ease-in-out infinite alternate;
  transform-origin: center center;
  transition: transform 0.1s linear, opacity 0.3s ease;
}

.moon-svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.45)) drop-shadow(0 0 70px rgba(196, 181, 253, 0.35));
}

.moon-aura {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(196, 181, 253, 0.12) 40%, transparent 70%);
  filter: blur(25px);
  z-index: 1;
  animation: pulse-moon-aura 4s ease-in-out infinite alternate;
}

.moon-glow-ring {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 30px rgba(196, 181, 253, 0.2);
  z-index: 1;
}

/* Distant Cosmic Planet */
.hero-cosmic-planet {
  position: absolute;
  top: 14%;
  left: 6%;
  width: 95px;
  height: 95px;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 0 25px rgba(192, 132, 252, 0.4));
  animation: float-planet 11s ease-in-out infinite alternate;
}

.hero-cosmic-planet svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   5. MYSTERY THEMES & PACK SIZES SELECTOR
   ========================================================================== */
.mystery-themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.mystery-theme-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.mystery-theme-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.mystery-theme-card.active {
  border-color: var(--accent-purple);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.15) 0%, rgba(17, 17, 26, 0.95) 100%);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.35);
}

.mystery-theme-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.mystery-theme-tagline {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.mystery-theme-title {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.mystery-theme-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.mystery-theme-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c4b5fd;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.8rem;
}

.theme-check-icon {
  font-size: 1.1rem;
}

/* Pack Sizes Grid */
.pack-sizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.pack-size-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pack-size-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}

.pack-size-card.active {
  border-color: var(--accent-pink);
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.12) 0%, rgba(17, 17, 26, 0.95) 100%);
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.35);
}

.pack-size-card.popular-tier {
  border-color: rgba(245, 158, 11, 0.6);
}

.pack-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pack-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  color: #ffffff;
}

.pack-holo-info {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #fbbf24;
  font-weight: 700;
}

.pack-size-title {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.pack-price-display {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.pack-price-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

.pack-unit-price {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.pack-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

.pack-select-btn {
  width: 100%;
  padding: 0.7rem;
  font-size: 0.88rem;
}

/* ==========================================================================
   GACHA UNBOXING SIMULATOR
   ========================================================================== */
.unboxing-stage-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.unboxing-glow-fx {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.unboxing-cards-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin: 1.5rem 0;
}

.unboxing-card-slot {
  width: 160px;
  height: 210px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px dashed var(--border-active);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: border-box;
}

.unboxing-card-slot.slot-idle {
  color: var(--text-dim);
}

.card-mystery-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.card-slot-number {
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.unboxing-card-slot.is-revealed {
  background: #141420;
  border: 1.5px solid var(--accent-purple);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
  animation: reveal-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  padding: 0.8rem;
}

.card-rarity-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  color: #08080c;
}

.unboxing-sticker-art {
  width: 110px;
  height: 110px;
  margin: 0.6rem auto 0.3rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unboxing-sticker-art svg,
.unboxing-sticker-art img,
.unboxing-sticker-art .sticker-photo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.mystery-theme-thumb-wrap {
  width: 100%;
  height: 110px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  margin: 0.6rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mystery-theme-thumb {
  max-width: 90%;
  max-height: 90px;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

.mystery-theme-card:hover .mystery-theme-thumb {
  transform: scale(1.1);
}

.unboxing-sticker-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 135px;
}

@keyframes reveal-pop {
  0% { transform: scale(0.4) rotate(-10deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ==========================================================================
   TERMS BANNER & CGV MODAL
   ========================================================================= */
.terms-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: rgba(18, 18, 28, 0.95);
  border: 1px solid var(--accent-purple);
  border-radius: var(--radius-lg);
  padding: 1rem 1.8rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  max-width: 90%;
  width: 720px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.terms-banner.is-shown {
  transform: translateX(-50%) translateY(0);
}

.terms-banner p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

.terms-banner a {
  color: #c4b5fd;
  text-decoration: underline;
  cursor: pointer;
}

.terms-banner button {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.cgv-modal-inner {
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.cgv-article {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}

.cgv-article h3 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.cgv-article p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.checkout-terms-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 1.2rem;
  padding: 0.8rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
}

.checkout-terms-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-purple);
  margin-top: 2px;
  cursor: pointer;
}

.checkout-terms-row label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  cursor: pointer;
}

.checkout-terms-row a {
  color: #c4b5fd;
  text-decoration: underline;
}

.collection-art {
  width: 140px;
  height: 140px;
  margin: 1.5rem auto;
  position: relative;
  z-index: 2;
  transition: transform var(--transition-spring);
}

.collection-card:hover .collection-art {
  transform: scale(1.15) rotate(6deg);
}

.collection-bottom {
  position: relative;
  z-index: 2;
}

.collection-title {
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.collection-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.collection-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #c4b5fd;
}

.collection-arrow {
  transition: transform var(--transition-smooth);
}

.collection-card:hover .collection-arrow {
  transform: translateX(6px);
}

/* ==========================================================================
   6. PRODUCT GRID & FILTERS SECTION
   ========================================================================== */
.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all var(--transition-smooth);
}

.filter-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-active);
}

.filter-pill.active {
  background: #ffffff;
  color: #08080c;
  border-color: #ffffff;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.25);
}

.search-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  background: var(--bg-card);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 220px;
}

.search-input-wrap input {
  background: none;
  border: none;
  color: var(--text-main);
  outline: none;
  width: 100%;
}

.search-input-wrap input::placeholder {
  color: var(--text-dim);
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.sort-wrap select {
  background: #181824;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  outline: none;
}

.products-count {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2rem;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.product-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.product-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-quick-view {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-quick-view:hover {
  background: #ffffff;
  color: #08080c;
  transform: scale(1.1);
}

.sticker-container {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0.8rem 0 1.5rem 0;
  cursor: pointer;
  transform-style: preserve-3d;
}

.sticker-container svg,
.sticker-photo {
  max-width: 160px;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-spring);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

.product-card:hover .sticker-photo {
  transform: scale(1.1) rotate(4deg);
}

.sticker-photo-modal {
  max-width: 220px;
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6));
}

.product-card:hover .sticker-container svg {
  transform: scale(1.1) rotate(4deg);
}

.product-card-bottom {
  position: relative;
  z-index: 2;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.product-finish-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.product-rating {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #facc15;
}

.product-title {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 1.2rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.product-title:hover {
  color: var(--accent-pink);
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.btn-add-cart {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--transition-smooth);
}

.btn-add-cart:hover {
  background: var(--grad-primary);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
  transform: translateY(-2px);
}

/* Card Glare Layer */
.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   7. PACK BUILDER ("CREATE YOUR PACK")
   ========================================================================== */
.pack-builder-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.pack-size-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.pack-size-btn {
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
}

.pack-size-btn.active {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.pack-tray-section {
  background: #0b0b10;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.pack-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.pack-tray-header h3 {
  font-size: 1.2rem;
}

.pack-tray-slots {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  overflow-x: auto;
  padding-bottom: 0.8rem;
}

.pack-slot {
  min-width: 110px;
  height: 120px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--transition-smooth);
}

.pack-slot.empty {
  border: 2px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  color: var(--text-dim);
}

.pack-slot.empty:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.empty-plus {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.empty-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.pack-slot.filled {
  background: #171722;
  border: 1px solid var(--border-active);
  box-shadow: var(--shadow-sm);
}

.slot-art {
  width: 60px;
  height: 60px;
}

.slot-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.4rem;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-coral);
  color: #ffffff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Pack Discount Meter */
.pack-progress-wrap {
  margin-top: 1.2rem;
}

.pack-progress-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.pack-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.pack-progress-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Pack Picker Grid */
.pack-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.pack-picker-item {
  background: #14141e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.pack-picker-item:hover {
  background: #1c1c2b;
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.pack-picker-item.is-selected {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.pack-picker-art {
  width: 75px;
  height: 75px;
  margin-bottom: 0.6rem;
}

.pack-picker-name {
  font-size: 0.9rem;
  font-weight: 700;
  display: block;
}

.pack-picker-price {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.pack-picker-toggle {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #c4b5fd;
}

/* Pack Summary Footer */
.pack-summary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  flex-wrap: wrap;
}

.pack-pricing-group {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.pack-total-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
}

.pack-original-price {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.pack-discount-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--accent-emerald);
  color: #ffffff;
}

/* ==========================================================================
   8. INTERACTIVE PLAYGROUND (MACBOOK CUSTOMIZER)
   ========================================================================== */
.playground-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.playground-screen-wrap {
  background: #0d0d14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

/* Virtual MacBook Lid */
.laptop-lid {
  width: 100%;
  max-width: 680px;
  height: 420px;
  background: linear-gradient(145deg, #242430 0%, #15151f 100%);
  border-radius: 20px;
  border: 2px solid #3d3d52;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.laptop-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
  pointer-events: none;
}

.laptop-logo svg {
  width: 70px;
  height: 70px;
  fill: #ffffff;
}

.placed-sticker {
  position: absolute;
  width: 90px;
  height: 90px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: filter 0.2s ease;
}

.placed-sticker:hover {
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.8));
}

.placed-sticker.is-dragging {
  cursor: grabbing;
  transform: scale(1.1) !important;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
}

.placed-sticker-content {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sticker-controls {
  position: absolute;
  top: -12px;
  right: -12px;
  display: none;
  gap: 4px;
}

.placed-sticker:hover .sticker-controls {
  display: flex;
}

.ctrl-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #08080c;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ctrl-delete {
  background: var(--accent-coral);
  color: #ffffff;
}

.playground-toolbox-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.playground-toolbox-header {
  margin-bottom: 1.5rem;
}

.playground-toolbox-header h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.playground-toolbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.playground-thumb {
  background: #181826;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  height: 95px;
  transition: all var(--transition-smooth);
}

.playground-thumb:hover {
  background: #232338;
  border-color: var(--accent-purple);
  transform: scale(1.06);
}

.playground-actions {
  display: flex;
  gap: 0.8rem;
}

.playground-actions .btn {
  flex: 1;
}

/* ==========================================================================
   9. "WHY ATSTIX?" SECTION
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.8rem;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: all var(--transition-smooth);
}

.why-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.why-icon {
  font-size: 3rem;
  margin-bottom: 1.8rem;
  display: inline-block;
  transition: transform var(--transition-spring);
}

.why-card:hover .why-icon {
  transform: scale(1.2) rotate(10deg);
}

.why-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.why-card p {
  font-size: 1rem;
  line-height: 1.7;
}

.why-metric {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.why-metric-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-purple);
}

.why-metric-lbl {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   10. FINAL CTA SECTION
   ========================================================================== */
.cta-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 9rem 0;
}

.cta-box {
  background: linear-gradient(180deg, rgba(23, 23, 34, 0.8) 0%, rgba(13, 13, 20, 0.95) 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 5rem 2rem;
  position: relative;
  z-index: 10;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  max-width: 900px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  max-width: 580px;
  margin: 0 auto 3rem auto;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   11. CART DRAWER
   ========================================================================== */
#cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#cart-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

#cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background: #0d0d14;
  border-left: 1px solid var(--border-subtle);
  z-index: 99995;
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
}

#cart-drawer.is-open {
  transform: translate3d(0, 0, 0);
}

.cart-header {
  padding: 1.8rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h2 {
  font-size: 1.4rem;
}

.cart-free-shipping-box {
  padding: 1rem 1.8rem;
  background: #14141f;
  border-bottom: 1px solid var(--border-subtle);
}

.free-shipping-text {
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.free-shipping-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.free-shipping-bar {
  width: 0%;
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cart-item-row {
  display: flex;
  gap: 1.2rem;
  background: #13131c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
  position: relative;
}

.cart-item-thumb img,
.cart-item-thumb svg,
.cart-item-thumb .sticker-photo {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4)) !important;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.btn-remove-item {
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

.btn-remove-item:hover {
  color: var(--accent-coral);
}

.cart-item-finish {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.cart-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
}

.qty-controller {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #1c1c2b;
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
}

.qty-btn {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  color: #ffffff;
}

.qty-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-item-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.empty-cart-view {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.empty-cart-view h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.empty-cart-view p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.cart-footer {
  padding: 1.8rem;
  background: #12121b;
  border-top: 1px solid var(--border-subtle);
}

.promo-form-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.promo-form-row input {
  flex: 1;
  background: #181826;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  color: #ffffff;
  outline: none;
  font-size: 0.9rem;
}

.promo-msg {
  font-size: 0.8rem;
  margin-top: -0.6rem;
  margin-bottom: 0.8rem;
}

.promo-msg.success { color: var(--accent-emerald); }
.promo-msg.error { color: var(--accent-coral); }

.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.total-row.final {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
}

.cart-footer .btn-primary {
  width: 100%;
}

/* ==========================================================================
   12. CHECKOUT MODAL & QUICK VIEW MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #111118;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 20;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 3D Quick View Content */
.modal-quickview-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  padding: 2.8rem;
}

.modal-3d-stage {
  background: #09090e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  cursor: grab;
  position: relative;
  overflow: hidden;
}

.modal-preview-art {
  width: 190px;
  height: 190px;
  transition: transform 0.1s ease-out;
}

.modal-info-panel h2 {
  font-size: 2rem;
  margin: 0.6rem 0;
}

.modal-price-tag {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.modal-specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.modal-spec-row {
  display: flex;
  justify-content: space-between;
}

.modal-spec-label { color: var(--text-dim); }
.modal-spec-val { color: var(--text-main); font-weight: 600; }

.modal-actions-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

/* Checkout Modal Content */
.checkout-modal-inner {
  padding: 3rem;
}

.checkout-modal-inner h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.8rem 0;
}

.checkout-field-full {
  grid-column: span 2;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input, .form-group select {
  width: 100%;
  background: #181826;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: #ffffff;
  outline: none;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--accent-purple);
}

.order-success-view {
  text-align: center;
  padding: 2rem 1rem;
}

.success-icon-badge {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.order-id {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: #c4b5fd;
  margin: 1rem 0;
}

.success-desc {
  max-width: 500px;
  margin: 0 auto 2rem auto;
  line-height: 1.7;
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.site-footer {
  background: #050508;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2rem 0;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin: 1rem 0 1.5rem 0;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   14. TRACKING ROADMAP
   ========================================================================== */
.tracking-roadmap-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  max-width: 900px;
  margin: 2rem auto;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.tracking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tracking-order-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #c4b5fd;
  font-weight: 700;
}

.tracking-payment-pill {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
}

.tracking-payment-pill.paid {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tracking-payment-pill.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.tracking-road-container {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 3rem 1rem 2.5rem 1rem;
}

.tracking-road-line {
  position: absolute;
  top: 26px;
  left: 20px;
  right: 20px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  z-index: 1;
}

.tracking-road-progress {
  height: 100%;
  background: linear-gradient(90deg, #8B5CF6, #10B981);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.tracking-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 120px;
}

.step-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #141420;
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.tracking-step.active .step-icon-circle {
  border-color: #8B5CF6;
  background: rgba(139, 92, 246, 0.2);
  transform: scale(1.15);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
}

.tracking-step.completed .step-icon-circle {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.2);
}

.step-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.step-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.3;
}

.tracking-note-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  margin-top: 1.5rem;
}

.tracking-note-box p {
  font-size: 0.92rem;
  color: #e2e8f0;
  margin-bottom: 0.8rem;
}

.tracking-disclaimer {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.5;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 0.8rem;
}

/* ==========================================================================
   15. TWINT MODAL
   ========================================================================== */
.twint-card-wrap {
  text-align: center;
  padding: 1rem 0;
}

.twint-qr-display {
  width: 250px;
  height: 250px;
  border-radius: var(--radius-lg);
  margin: 1rem auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: #ffffff;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.twint-qr-display img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.twint-amount-highlight {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #10B981;
  margin: 0.5rem 0;
}

.twint-ref-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed #10B981;
  border-radius: var(--radius-md);
  padding: 0.8rem;
  margin: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #ffffff;
}

/* ==========================================================================
   16. ADMIN DASHBOARD
   ========================================================================== */
.admin-panel-wrap {
  background: #0d0d15;
  border: 1.5px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin: 2rem auto;
  max-width: 1100px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.admin-stat-card {
  background: #141422;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.admin-stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  display: block;
  margin-bottom: 0.3rem;
  color: #ffffff;
}

.admin-stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  padding: 0.9rem 1rem;
  background: #181828;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  vertical-align: middle;
}

.admin-select-status {
  background: #1a1a2b;
  color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  outline: none;
}

.status-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.status-pay-paid {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pay-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Lightbox Modal */
.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 80%);
  padding: 1.5rem;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.7));
}

.lightbox-img-wrap img:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   17. SWISS 3D MOUNTAIN ASCENDING ROADMAP (SUIVI D'ENVELOPPE HAUT DE GAMME)
   ========================================================================== */
.swiss-mountain-roadmap {
  background: radial-gradient(ellipse at top, #181b2c 0%, #0c0d16 100%);
  border: 1.5px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-xl);
  padding: 2.2rem 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.mountain-backdrop-contour {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.12;
  background-image: repeating-radial-gradient(circle at 10% 0%, transparent 0, transparent 40px, rgba(255, 255, 255, 0.1) 41px, transparent 42px);
}

.roadmap-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.roadmap-order-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
}

.roadmap-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.roadmap-status-pill.verified {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10B981;
}

.roadmap-status-pill.pending {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #F59E0B;
}

/* Ascending 3D Stations Grid with Mountain Slope */
.roadmap-stations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .roadmap-stations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .roadmap-stations-grid {
    grid-template-columns: 1fr;
  }
}

.roadmap-station-card {
  background: rgba(22, 24, 38, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.roadmap-station-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Elevation stepped offsets to represent mountain climb */
.roadmap-station-card:nth-child(1) {
  transform: translateY(0px);
}
.roadmap-station-card:nth-child(2) {
  transform: translateY(-8px);
}
.roadmap-station-card:nth-child(3) {
  transform: translateY(-16px);
}
.roadmap-station-card:nth-child(4) {
  transform: translateY(-24px);
}

@media (max-width: 900px) {
  .roadmap-station-card:nth-child(1),
  .roadmap-station-card:nth-child(2),
  .roadmap-station-card:nth-child(3),
  .roadmap-station-card:nth-child(4) {
    transform: none !important;
  }
}

.roadmap-station-card.completed {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(22, 24, 38, 0.8) 100%);
}

.roadmap-station-card.active {
  border-color: #8B5CF6;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.14) 0%, rgba(22, 24, 38, 0.9) 100%);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
}

.station-altitude-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.station-illustration-3d {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.8rem 0 1rem;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.roadmap-station-card.active .station-illustration-3d {
  animation: stationFloat 3s ease-in-out infinite alternate;
}

@keyframes stationFloat {
  0% { transform: translateY(0) scale(1); filter: drop-shadow(0 10px 18px rgba(0,0,0,0.5)); }
  100% { transform: translateY(-6px) scale(1.04); filter: drop-shadow(0 18px 25px rgba(139, 92, 246, 0.4)); }
}

.station-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.station-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.station-status-indicator {
  margin-top: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.station-status-indicator.done {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.station-status-indicator.current {
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
  animation: pulseNeon 2s infinite;
}

.station-status-indicator.upcoming {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

@keyframes pulseNeon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.97); }
}

/* ==========================================================================
   18. STOCK & INVENTORY MANAGEMENT STYLES
   ========================================================================== */
.admin-stock-wrap {
  margin-top: 2rem;
  padding: 1.8rem;
  background: rgba(18, 18, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
}

.admin-stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.admin-stock-card {
  background: #141422;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
}

.admin-stock-thumb {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.stock-qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stock-qty-input {
  width: 70px;
  padding: 0.4rem;
  text-align: center;
  background: #0d0d16;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.stock-pill-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.stock-pill-badge.instock {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.stock-pill-badge.low {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
}

.stock-pill-badge.out {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Storefront Out-of-Stock and Urgency Badges */
.theme-stock-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  margin-left: 0.4rem;
}

.theme-stock-badge.low {
  background: rgba(245, 158, 11, 0.2);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
  animation: pulseLowStock 2s infinite;
}

.theme-stock-badge.out {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes pulseLowStock {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.mystery-theme-card.theme-out-of-stock {
  opacity: 0.55;
  filter: grayscale(0.5);
  cursor: not-allowed;
}

/* User Navbar & Toast */
.atstix-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #10B981;
  color: #ffffff;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.atstix-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   19. ADMIN TABS, ARCHIVED ORDERS & CANCELLATION STYLES
   ========================================================================== */
.admin-tabs-row {
  display: inline-flex;
  background: rgba(10, 10, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
  flex-wrap: wrap;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
  background: #8B5CF6;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Delivered / Archived Order Rows (Greyed-out as requested by Stan) */
.admin-order-row.delivered-row {
  background: rgba(255, 255, 255, 0.02) !important;
  opacity: 0.72;
  filter: grayscale(0.25);
  border-left: 3px solid #64748b;
  transition: opacity 0.2s ease;
}

.admin-order-row.delivered-row:hover {
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.04) !important;
}

.admin-order-row.cancelled-row {
  background: rgba(239, 68, 68, 0.03) !important;
  opacity: 0.65;
  border-left: 3px solid #ef4444;
}

.archive-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 1px 6px;
  margin-top: 3px;
}

.cancelled-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 1px 6px;
  margin-top: 3px;
}

.btn-admin-cancel {
  border-color: rgba(239, 68, 68, 0.35) !important;
  color: #f87171 !important;
  font-size: 0.72rem !important;
  padding: 0.25rem 0.6rem !important;
}

.btn-admin-cancel:hover {
  background: rgba(239, 68, 68, 0.15) !important;
}


