body, html {
  width: 100%;
  overflow-x: hidden;
}

/* --- LIQUID GLASS BOTTOM NAV --- */
:root {
  --c-glass: #bbbbbc;
  --c-light: #fff;
  --c-dark: #000;
  --glass-reflex-dark: 2;
  --glass-reflex-light: 0.3;
  --saturation: 150%;
  --nav-bg: #1b1b1d; /* Shoppy Dark Theme Background */
}
/* Top Nav */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1c1c1c;
  padding: 10px 20px;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: #3d82f2;
}
.search-input {
  flex: 1;
  margin: 0 20px;
  padding: 10px;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}
.login {
  background: #333;
  color: #fff;
}
.signup {
  background: #3d82f2;
  color: white;
}
.lang-select {
  background: #111;
  color: #fff;
  border: 1px solid #333;
  padding: 8px;
  border-radius: 5px;
}

/* Hero */
.hero-banner {
  padding: 20px;
}
.hero-banner .container {
  max-width: 90%;
  max-height: 400px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
}

/* Main Banner (Swiper) */
.main-banner {
  flex: 2;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.banner-slide {
  height: 100%;
  position: relative;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #3d82f2;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 5px;
}

/* Swiper Controls */
.swiper-button-next,
.swiper-button-prev {
  color: #fff;
}
.swiper-pagination-bullet {
  background: #fff;
}

/* Side Banners */
.side-banners {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.side-banners img {
  width: 100%;
  height: 135px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease;
}
.side-banners img:hover {
  transform: scale(1.02);
}

/* Platform Promo Section */
.platform-promo {
  margin: 30px auto;
}
.platform-promo .container {
  max-width: 90%;
  margin: 0 auto;
}
.promo-grid {
  display: flex;
  gap: 7px;
  justify-content: space-between;
  align-items: center;
}
.promo-grid img {
  width: 100%;
  max-width: calc(33.333% - 13.333px); /* 3 images with 20px gaps */
  height: 155px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
.promo-grid img:hover {
  transform: scale(1.02);
}

/* Product Cards */
.product-slider {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 20px;
}
.product-card {
  background: #1c1c1c;
  border-radius: 10px;
  min-width: 180px;
  overflow: hidden;
}
.product-card img {
  width: 100%;
  height: auto;
}
.info {
  padding: 10px;
}
.price {
  color: #3d82f2;
  font-weight: bold;
}

/* Platform Explorer */
.explore-platforms {
  text-align: center;
  padding: 40px 20px;
}
.platforms {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.platform {
  background: #222;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  color: white;
}

/*Product cards*/
.product-slider-wrap {
  position: relative;
  max-width: 90%;
  margin: 10px auto;
}

.section-title {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 10px;
  padding-left: 5px;
}

.product-row {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 15px;
  padding: 10px 0 30px 0;
  scroll-behavior: smooth;
}
.product-row::-webkit-scrollbar {
  height: 6px;
}
.product-row::-webkit-scrollbar-thumb {
  background: #3d82f2;
  border-radius: 10px;
}

.product-card {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 12px;
  background: #1c1c1c;
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid #333;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: #2e2e2e;
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
}
.scroll-arrow.left {
  left: -30px;
}
.scroll-arrow.right {
  right: -30px;
}
@media (min-width: 768px) {
  .scroll-arrow {
    display: block;
  }
}

.show-all {
  text-align: center;
  margin-top: 10px;
}
.show-all-btn {
  background: #2e2e2e;
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
}
/* Product Card Container */
.card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Hover effect */
.card:hover {
  /* darker glass when fixed */
  background: rgba(20, 20, 28, 0.4);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);

  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
  transform: scale(1.02);
}

/* Product Image */
.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #333;
  aspect-ratio: 1 / 1;      /* Reserves a 1:1 square space */
  background-color: #2a2a33; /* Placeholder color, matches your dark theme */
}

/* Card Content */
.card-content {
  padding: 10px;
}

/* Product Title */
.card-title {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
}

/* Product Metadata */
.card-meta {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 4px;
}

/* Price Styling */
.card-price {
  font-size: 14px;
  color: #4a78f0;
  font-weight: bold;
}

/* Original Price (Strikethrough) */
.card-strike {
  text-decoration: line-through;
  color: #888;
  font-size: 12px;
  margin-left: 5px;
}

/* SALE Badge */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e74c3c;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}
.product-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px;
  scroll-behavior: smooth;
}

.product-row .card {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
}

.product-row {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  overflow-x: auto;
}

.product-row::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.product-row {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.scroll-slider {
  max-width: 90%;
  margin: 40px auto;
  position: relative;
}

.arrow-wrapper {
  position: relative;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  display: none; /* hidden by default; JS shows them */
}
.scroll-arrow.left {
  left: 0;
}
.scroll-arrow.right {
  right: 0;
}

@media (min-width: 768px) {
  .scroll-arrow {
    display: block;
  }
}
@media (max-width: 768px) {
  .hero-banner .container {
    flex-direction: column;
    max-height: none;
    gap: 10px;
    max-width: 100%;
  }

  .main-banner {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .side-banners {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    overflow: hidden;   /* No horizontal scroll */
    flex-wrap: nowrap;  /* Prevent line breaks */
  }

  .side-banners img {
    flex: 1;             /* Share space equally */
    min-width: 0;        /* Allow shrinkage */
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    max-width: 100%;     /* Prevent overflow */
  }

  .promo-grid {
    flex-direction: column;
    gap: 10px;
  }

  .promo-grid img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .card-title {
    font-size: 13px;
  }

  .card-meta, .card-price, .card-strike {
    font-size: 12px;
  }
  

  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1c1c1c;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #333;
    z-index: 9999;
  }

  .bottom-nav a {
    color: #fff;
    font-size: 12px;
    text-align: center;
    flex: 1;
    text-decoration: none;
  }

  .bottom-nav a i {
    font-size: 18px;
    display: block;
    margin-bottom: 4px;
  }

  body {
    padding-bottom: 60px; /* space for nav bar */
  }
}
/* Bottom Navigation Bar */
.bottom-nav {
  height: auto;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1a1a1a;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0 5px;
  border-top: 1px solid #2c2c2c;
  z-index: 9999;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.4);
}

.nav-item {
  flex: 1;
  text-align: center;
  color: #aaa;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.2s ease;
}

.nav-item i {
  display: block;
  font-size: 20px;
  margin-bottom: 3px;
}

.nav-item.active,
.nav-item:hover {
  color: #4a90e2;
}

.nav-item.active i,
.nav-item:hover i {
  color: #4a90e2;
}

.nav-item span {
  display: block;
  font-size: 11px;
}

/* Show bottom nav only on small screens */
/* --- BOTTOM NAVIGATION (Liquid Glass Bar) --- */
@media (max-width: 768px) {
  
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px; /* Taller to fit the bubble */
    
    /* Dark Glass Background for the main bar */
    background: rgba(15, 15, 20, 0.85); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0; /* Padding handled by flex items */
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
  }

  /* The Sliding Liquid Bubble */
  .nav-lens {
    position: absolute;
    top: 50%;
    left: 0; /* JS moves this */
    transform: translateY(-50%);
    width: 65px; /* Width of the bubble */
    height: 55px; /* Height of the bubble */
    border-radius: 25px; /* Smooth rounded shape */
    
    /* GLASS EFFECT (Matches your image) */
    background: radial-gradient(circle at top left, rgba(255,255,255,0.15), rgba(255,255,255,0.01));
    border: 1px solid rgba(255, 255, 255, 0.3); /* The glass edge */
    box-shadow: 
      inset 0 0 15px rgba(255, 255, 255, 0.1), /* Inner glow */
      0 4px 15px rgba(0, 0, 0, 0.3), /* Drop shadow */
      0 0 20px rgba(70, 117, 189, 0.2); /* Blue outer glow */
      
    backdrop-filter: blur(5px) brightness(1.2); /* Distorts background slightly */
    -webkit-backdrop-filter: blur(5px) brightness(1.2);
    
    z-index: 1; /* Behind icons, but above background */
    transition: left 0.4s cubic-bezier(0.25, 1.5, 0.5, 1); /* Bouncy spring animation */
    pointer-events: none; /* Let clicks pass through to links */
  }

  .nav-item {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #888;
    z-index: 2; /* Sits ON TOP of the bubble */
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .nav-item span {
    font-size: 11px;
    font-weight: 500;
  }

  /* Active State */
  .nav-item.active {
    color: #fff; /* White text inside bubble */
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
  }

  .nav-item.active i {
    transform: translateY(-3px) scale(1.1); /* Float up slightly */
    color: #4675bd; /* Shoppy Blue Icon */
    filter: drop-shadow(0 0 8px rgba(70, 117, 189, 0.6)); /* Glow */
  }

  /* Reserve space */
  body {
    padding-bottom: 70px;
  }
}

@media (min-width: 769px) {
  .bottom-nav { display: none; }
}
.explore-platforms {
  padding: 30px 15px;
}
.explore-platforms h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: white;
}

.platform-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: #2a2a2a;
  padding: 15px 10px;
  border-radius: 12px;
  color: white;
  min-width: 110px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: bold;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 0 transparent;
}

.platform-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.platform-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
}

/* Gradient color themes */
.platform-card.steam {
  background: linear-gradient(135deg, #1b2838, #2a475e);
}
.platform-card.xbox {
  background: linear-gradient(135deg, #107c10, #185918);
}
.platform-card.Rockstar {
  background: linear-gradient(135deg, #2C135D, #AC0339, #91825e, #2362B4, #2C135D);
}
.platform-card.Window {
  background: linear-gradient(135deg, #0e0e0e, #8d8d8d);
}
.platform-card.epic {
  background: linear-gradient(135deg, #202020, #444);
}
.platform-card.giftcard {
  background: linear-gradient(135deg, #a8450b, #7a1c1c);
}
.platform-card.offline {
  background: linear-gradient(135deg, #062d66, #000000);
}
.platform-scroll {
  display: flex;
  justify-content: center;         /* Center horizontally */
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  flex-wrap: wrap;                 /* Allow wrapping on wider screens */
  text-align: center;
}
@media (max-width: 768px) {
  .platform-scroll {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 5px 10px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .platform-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: #2a2a2a;
    border-radius: 12px;
    padding: 10px;
    min-width: 90px;
    max-width: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    transition: transform 0.2s ease;
  }

  .platform-card img {
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
  }

  .platform-card:hover {
    transform: scale(1.05);
  }

  .explore-platforms h3 {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
}
@media (max-width: 768px) {
  .side-banners {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    padding: 0 10px;
    overflow: hidden;
  }

  .side-banners img.responsive-banner {
    flex: 1 1 0;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
}
@media (max-width: 1300px) {
  .side-banners {
    display: none;
  }
  .platform-promo
  {
    display: none;
  }
  #homeSearchInput {
    margin-left: 15px;
  }
  #homeSearchBtn {
    margin-right: 15px;
  }
}

/* --- SEARCH CONTAINER --- */
.home-search-container {
  position: relative;
  max-width: 800px;
  margin: 30px auto; /* Slightly more space */
  display: flex;
  z-index: 1000;
  
  /* Floating Shadow */
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

/* Hover Effect: Floats up slightly */
.home-search-container:hover {
  transform: translateY(-2px);
}

/* --- INPUT FIELD (Liquid Glass) --- */
#homeSearchInput {
  flex: 1;
  padding: 16px 20px; /* Taller, comfortable click area */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none; /* Connect to button */
  border-radius: 12px 0 0 12px; /* Rounder corners */
  
  /* Dark Glass Background */
  background: color-mix(in srgb, #0f1623 80%, transparent);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  
  /* Smooth transition for focus */
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4); /* Inner depth */
}

#homeSearchInput::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Focus State (Neon Glow) */
#homeSearchInput:focus {
  outline: none;
  background: color-mix(in srgb, #0f1623 95%, transparent); /* Darker on focus */
  border-color: #3d82f2;
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.4),
    0 0 15px rgba(61, 130, 242, 0.3); /* Blue Glow */
}

/* --- SEARCH BUTTON --- */
#homeSearchBtn {
  padding: 0 24px;
  
  /* Shoppy Blue Gradient */
  background: linear-gradient(135deg, #3d82f2, #2a5db0);
  
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 12px 12px 0;
  
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  
  /* Subtle inner light at top */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#homeSearchBtn:hover {
  /* Brighter Gradient */
  background: linear-gradient(135deg, #4d92ff, #3a6dc0);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 15px rgba(61, 130, 242, 0.6); /* Stronger Glow */
}

#homeSearchBtn:active {
  transform: scale(0.96); /* Press effect */
}

/* --- MOBILE ADJUSTMENT --- */
@media (max-width: 600px) {
  .home-search-container {
    margin: 20px 15px;
  }
  
  #homeSearchInput {
    /* FIX: Font size MUST be 16px or higher to prevent auto-zoom on iPhone */
    font-size: 16px !important; 
    padding: 12px 16px;
  }
}

@media (max-width: 768px) {
.card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  max-width: 45%;
}

/* Hover effect */
.card:hover {
  /* darker glass when fixed */
  background: rgba(20, 20, 28, 0.4);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);

  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
  transform: scale(1.02);
}

/* Product Image */
.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #333;
}

/* Card Content */
.card-content {
  padding: 8px;
}

/* Product Title */
.card-title {
  font-weight: 500;
  font-size: 11px;
  color: #fff;
  margin-bottom: 2px;
}

/* Product Metadata */
.card-meta {
  font-size: 10px;
  font-weight: 500;
  color: #aaa;
  margin-bottom: 2px;
}

/* Price Styling */
.card-price {
  font-size: 13px;
  font-weight: 570;
  color: #4a78f0;
  font-weight: bold;
}

/* Original Price (Strikethrough) */
.card-strike {
  text-decoration: line-through;
  color: #888;
  font-size: 11px;
  margin-left: 3px;
}

/* SALE Badge */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e74c3c;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}
.show-all-btn {
  background: #2e2e2e;
  color: #fff;
  padding: 6px 12px;
  border-radius: 30px;
  border: none;
  font-size: 0.65rem;
  cursor: pointer;
}
}
.card,
a.card {
  color: inherit; 
  text-decoration: none;
}

@media (max-width: 768px) {
  
  /* --- 1. MAIN NAVIGATION BAR --- */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 9999;
    
    /* Layout */
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    /* --- LIQUID GLASS EFFECT (Glitch-Free) --- */
    /* Dark Transparent Background */
    background-color: color-mix(in srgb, #000 60%, transparent);
    
    /* Use the #heavy-liquid filter (Fixes the ghost blob issue) */
    backdrop-filter: blur(6px) url(#heavy-liquid) saturate(160%);
    -webkit-backdrop-filter: blur(6px) url(#heavy-liquid) saturate(160%);
    
    /* Premium Shadows */
    box-shadow: 
      inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
      inset 0 0 20px rgba(255, 255, 255, 0.05),
      0 -10px 30px rgba(0, 0, 0, 0.5);
  }

  /* --- 2. THE MOVING LENS (Bubble) --- */
  .nav-lens {
    position: absolute;
    top: 50%;
    left: 0; 
    transform: translateY(-50%);
    width: 75px; 
    height: 50px;
    border-radius: 99em; 
    
    /* Glassy Look */
    background-color: color-mix(in srgb, var(--c-glass) 12%, transparent);
    
    /* Keep existing filter for the small pill (it works fine on small shapes) */
    /* Or change to url(#heavy-liquid) if you want it to match perfectly */
    backdrop-filter: blur(8px) url(#heavy-liquid) saturate(150%);
    -webkit-backdrop-filter: blur(8px) url(#heavy-liquid) saturate(150%);
    
    /* Complex 3D Lighting Shadows */
    box-shadow: 
      inset 0 0 0 1px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 10%), transparent),
      inset 1.8px 3px 0px -2px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 90%), transparent), 
      inset -2px -2px 0px -2px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 80%), transparent), 
      inset -3px -8px 1px -6px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 60%), transparent), 
      inset -0.3px -1px 4px 0px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 12%), transparent), 
      inset -1.5px 2.5px 0px -2px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 20%), transparent), 
      inset 0px 3px 4px -2px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 20%), transparent), 
      inset 2px -6.5px 1px -4px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 10%), transparent), 
      0px 1px 5px 0px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 10%), transparent), 
      0px 6px 16px 0px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 8%), transparent);
      
    z-index: 1; 
    transition: left 0.4s cubic-bezier(1, 0.0, 0.4, 1), width 0.4s cubic-bezier(1, 0.0, 0.4, 1);
    pointer-events: none;
  }
  
  .nav-lens.squeezing {
    animation: scaleToggle 440ms ease; 
  }

  /* --- 3. ICONS --- */
  .nav-item {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #666;
    z-index: 2;
    transition: color 0.3s ease;
  }

  .nav-item i { font-size: 20px; margin-bottom: 4px; }
  .nav-item span { font-size: 11px; font-weight: 600; }

  .nav-item.active {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  }
  
  body { padding-bottom: 70px; }
}

/* --- 4. APPLE FIX (Prevents Invisible Nav on iOS) --- */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .bottom-nav, .nav-lens {
      /* Darker solid glass for visibility */
      background-color: rgba(15, 22, 35, 0.4);
      
      /* Remove SVG URL to prevent glitch */
      -webkit-backdrop-filter: blur(20px) saturate(160%);
      backdrop-filter: blur(20px) saturate(160%);
    }
    
    /* Adjust lens transparency slightly for iOS */
    .nav-lens {
       background-color: rgba(255, 255, 255, 0.15);
    }
  }
}

@media (min-width: 769px) {
  .bottom-nav { display: none; }
}

/* 4. Squeeze Animation Keyframes */
@keyframes scaleToggle {
  0% { transform: translateY(-50%) scale(1, 1); }
  50% { transform: translateY(-50%) scale(1.2, 0.9); } /* Stretch width, squash height */
  100% { transform: translateY(-50%) scale(1, 1); }
}

#homeSearchSuggestions {
  /* --- LAYOUT --- */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: none;
  border-radius: 0 0 16px 16px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;

  border-top: 1px solid rgba(255, 255, 255, 0.1);

    /* --- LIQUID GLASS EFFECT (Glitch-Free) --- */
    /* Dark Transparent Background */
    background-color: color-mix(in srgb, #000 60%, transparent);
    
    /* Use the #heavy-liquid filter (Fixes the ghost blob issue) */
    backdrop-filter: blur(6px) url(#heavy-liquid) saturate(160%);
    -webkit-backdrop-filter: blur(6px) url(#heavy-liquid) saturate(160%);
    
    /* Premium Shadows */
    box-shadow: 
      inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
      inset 0 0 20px rgba(255, 255, 255, 0.05),
      0 -10px 30px rgba(0, 0, 0, 0.5);
}

/* --- APPLE FIX (iOS/Safari) --- */
/* iOS hates SVG filters. This forces a clean standard blur on iPhone. */
@supports (-webkit-touch-callout: none) {
  #homeSearchSuggestions {
    background: rgba(15, 22, 35, 0.8) !important; 
    
    /* Remove the 'url(#heavy-liquid)' part for iPhone */
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
  }
}

#homeSearchSuggestions div {
  padding: 10px 14px;
  color: #ccc;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03); /* Faint separator */
}

#homeSearchSuggestions div:hover {
  /* Highlight effect inside the glass */
  background-color: color-mix(in srgb, #fff 10%, transparent); /* White tint */
  color: #fff;
  padding-left: 18px; /* Small slide animation */
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
/* =========================================
   LOW PERFORMANCE MODE (No Liquid/Glass)
   ========================================= */

/* 1. Disable the heavy floating background animation */
body.low-perf .stage {
  display: none !important;
}

/* 2. Global Reset for Glass Elements */
body.low-perf .bottom-nav,
body.low-perf .nav-lens,
body.low-perf .site-header__wrapper.scrolled,
body.low-perf .flash-sale-notif,
body.low-perf #homeSearchInput,
body.low-perf #homeSearchSuggestions,
body.low-perf .account-popup {
  /* KILL THE LAG: Remove filters and transparency */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  background-image: none !important;
}

/* 3. Bottom Navigation (Solid Dark) */
body.low-perf .bottom-nav {
  background-color: #0f0f13 !important; /* Solid dark background */
  border-top: 1px solid #333;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.5) !important;
}

/* 4. The Nav Lens Bubble (Simple Pill) */
body.low-perf .nav-lens {
  background-color: #1c1c1c !important; /* Lighter grey pill */
  border: 1px solid #444;
  box-shadow: none !important; /* Remove the complex 10-layer shadow */
}

/* 5. Sticky Header (Solid) */
body.low-perf .site-header__wrapper.scrolled {
  background-color: #0f0f13 !important;
  border-bottom: 1px solid #333;
}

/* 6. Flash Sale Notification (Solid Card) */
body.low-perf .flash-sale-notif {
  background-color: #1f2937 !important; /* Solid slate color */
  border: 1px solid #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}

/* 7. Search Input (Solid) */
body.low-perf #homeSearchInput {
  background-color: #121212 !important;
  border: 1px solid #333;
}
body.low-perf #homeSearchSuggestions {
  background-color: #121212 !important;
  border: 1px solid #333;
}

/* 8. Account Popup (Solid) */
body.low-perf .account-popup {
  background-color: #0c0c0c !important;
}

/* =========================================
   DYNAMIC MEGA MENU (DESKTOP)
   ========================================= */
/* The main trigger link in navbar */
.nav-item-dynamic {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* The container for the massive dropdown */
.g2a-mega-dropdown {
    position: absolute;
    top: 100%;
    left: -150px; /* Adjust to center relative to trigger */
    width: 900px; /* Fixed wide width like G2A */
    background: rgba(20, 20, 25, 0.98); /* Deeper dark for contrast */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 25px;
    
    /* Hiding initially */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10000;
    
    /* G2A Layout: Grid splitting left links vs right banners */
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 parts links, 1 part banners */
    gap: 30px;
}

/* Show on hover */
.nav-item-dynamic:hover .g2a-mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* LEFT SIDE: Link Columns Area */
.g2a-links-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns of category links */
    gap: 20px;
}

.g2a-column h4 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(60, 130, 246, 0.3); /* Subtle blue line */
}

.g2a-column a {
    display: block;
    color: #bbb;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.g2a-column a:hover {
    color: #3b82f6; /* Shoppy Blue */
    transform: translateX(5px);
}

/* RIGHT SIDE: Featured Banners Area */
.g2a-featured-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 25px;
}

/* The Featured Card Style */
.featured-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9; /* Cinematic banner shape */
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Dark gradient overlay so text is readable */
.featured-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 2;
}

.featured-card h5 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 14px;
}

.featured-card span {
    color: #3b82f6;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.featured-card:hover img {
    transform: scale(1.05);
}

/* =========================================
   MOBILE MENU FIXES (SCROLL & ACCORDION)
   ========================================= */

/* 1. Fix the Container Layout for Scrolling */
.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%; /* Full height of screen */
    background: #121212; /* Dark background */
    width: 85%; /* Sidebar width */
    max-width: 320px;
}

.mobile-header {
    flex-shrink: 0; /* Header stays at top */
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* The Scrollable Area */
.mobile-nav-links {
    flex: 1; /* Takes remaining space */
    overflow-y: auto; /* ENABLE SCROLLING */
    padding-bottom: 50px; /* Space for bottom content */
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
}

/* 2. Fix the Accordion (Hide items by default) */
.mobile-dropdown-wrapper {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-drop-header {
    padding: 15px 20px;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    transition: background 0.2s;
}

.mobile-drop-header:active {
    background: rgba(255,255,255,0.05);
}

/* Chevron Rotation */
.mobile-drop-header .arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.mobile-dropdown-wrapper.active > .mobile-drop-header .arrow {
    transform: rotate(90deg);
    color: #3b82f6; /* Blue when active */
}

/* 3. The Logic to Hide/Show Sub-menus */
.mobile-sub-menu {
    /* HIDDEN BY DEFAULT */
    display: none; 
    background: #000; /* Darker background for nested items */
    padding: 5px 0;
}

/* SHOW when Parent has .active class */
.mobile-dropdown-wrapper.active > .mobile-sub-menu {
    display: block;
    animation: slideDown 0.3s ease-out;
}

/* Nested Sub-Menus (Indentations) */
.mobile-sub-menu .mobile-drop-header {
    padding-left: 35px; /* Level 2 Header Indent */
    font-size: 13px;
    color: #ccc;
    font-weight: normal;
}

.mobile-sub-menu .mobile-sub-menu a {
    padding: 12px 20px 12px 50px; /* Level 3 Link Indent */
    display: block;
    color: #999;
    text-decoration: none;
    font-size: 13px;
    border-left: 2px solid transparent;
}

.mobile-sub-menu .mobile-sub-menu a:hover {
    color: white;
    border-left: 2px solid #3b82f6;
    background: rgba(255,255,255,0.05);
}

/* Animation for smooth opening */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Static links in mobile menu */
.static-mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-item-dynamic{position:static!important}.g2a-mega-dropdown{width:90vw!important;left:5vw!important;transform:none!important;max-height:80vh;overflow-y:auto;grid-template-columns:1fr 300px!important}.g2a-links-area{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))!important}

/* =========================================
   PREMIUM GLASSMORPHISM HERO & PROMO UI
   ========================================= */

/* Base Glass Panel Style (Reusable) */
.glass-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

/* --- HERO SPLIT LAYOUT --- */
.premium-hero-section {
  padding: 15px 20px;
}
/* --- HERO SPLIT LAYOUT --- */
.hero-split-layout {
  display: flex;
  flex-direction: row; /* Force row layout */
  flex-wrap: nowrap;   /* Prevent wrapping on desktop */
  align-items: stretch; /* Make both sides match height */
  gap: 20px;
  max-width: 90%;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Main Banner (Left) */
.main-glass-banner {
  flex: 2.5; 
  min-width: 0; /* CRITICAL FIX: Prevents flex items from overflowing container on back navigation */
  border-radius: 20px;
  padding: 40px 50px;
  display: flex;
  flex-direction: row; /* Force text and image wrapper to stay side-by-side */
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  min-height: 320px;
  box-sizing: border-box;
  
  /* Added a fallback solid color in case the blur fails on back-cache */
  background-color: rgba(25, 25, 35, 0.5); 
}

/* Side Banners (Right) */
.side-glass-banners {
  flex: 1;
  min-width: 0; /* CRITICAL FIX */
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-sizing: border-box;
}

.side-glass-card {
  flex: 1;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.side-glass-card:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
}

.side-content h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.side-content span {
  color: #8a8a93;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Adjust Images to float nicely */
.side-img, .promo-img {
  max-height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5)); /* Adds depth to transparent PNGs */
  transition: transform 0.3s ease;
}

.side-glass-card:hover .side-img, 
.promo-glass-card:hover .promo-img {
  transform: scale(1.1) rotate(-3deg);
}

/* --- MAIN BANNER INNER STYLES --- */
.hero-content { z-index: 2; max-width: 55%; }
.hero-content h1 {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #ffffff;
  background: linear-gradient(to right, #ffffff, #a3bdff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content p {
  font-size: 0.9rem;
  color: #b0b0b5;
  line-height: 1.5;
  margin-bottom: 24px;
}

.cta-button {
  display: inline-block;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

/* 3D Floating Cards */
.hero-image-wrapper { position: relative; width: 40%; height: 200px; z-index: 1; perspective: 1000px; }
.card-mockup {
  position: absolute; width: 200px; height: 120px; border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6); border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: rgba(255,255,255,0.3);
}
.card-back { background: linear-gradient(135deg, #2a205c, #140e33); right: 5%; bottom: 10px; transform: rotate(15deg) translateZ(-50px); opacity: 0.8; }
.card-front { background: linear-gradient(135deg, #3d82f2, #1a3c7a); left: 0%; top: 10px; transform: rotate(5deg) translateZ(20px); backdrop-filter: blur(5px); }

/* Navigation & Dots */
.nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: white;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; z-index: 3;
  display: flex; justify-content: center; align-items: center; transition: all 0.2s ease;
}
.nav-arrow:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-50%) scale(1.1); }
.left-arrow { left: 15px; } .right-arrow { right: 15px; }
.carousel-indicators { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.dot { width: 6px; height: 6px; background: rgba(255, 255, 255, 0.2); border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }
.dot.active { width: 18px; border-radius: 10px; background: #ffffff; }


/* --- BOTTOM PROMO SECTION (3 Grid) --- */
.premium-promo-section {
  padding: 10px 20px 30px;
}
.promo-glass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 90%;
  margin: 0 auto;
}

.promo-glass-card {
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* Subtle underlying color glows for different categories */
.steam-glow { background: linear-gradient(135deg, rgba(27, 40, 56, 0.6), rgba(255,255,255,0.02)); }
.action-glow { background: linear-gradient(135deg, rgba(163, 44, 44, 0.4), rgba(255,255,255,0.02)); }
.best-glow { background: linear-gradient(135deg, rgba(46, 125, 50, 0.4), rgba(255,255,255,0.02)); }

.promo-glass-card:hover { transform: translateY(-5px); }

.promo-text h3 { color: #fff; font-size: 1.2rem; margin-bottom: 4px; }
.promo-text p { color: #8a8a93; font-size: 0.85rem; font-weight: 500; }
.promo-img { max-height: 90px; }


/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
  .hero-split-layout { flex-direction: column; }
  .main-glass-banner { flex: none; width: 100%; min-height: 280px; }
  .side-glass-banners { flex-direction: row; }
  .promo-glass-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-split-layout { max-width: 100%; gap: 10px; }
  .main-glass-banner { padding: 30px 20px; flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; margin-bottom: 30px; }
  .hero-image-wrapper { width: 100%; height: 160px; display: flex; justify-content: center; }
  .card-front { left: 10%; } .card-back { right: 10%; }
  
  .side-glass-banners { flex-direction: row; overflow: hidden; }
  .side-content h4 { font-size: 0.9rem; }
  .side-content span { display: none; /* Hide subtitle on mobile to save space */ }
  .side-img { max-height: 50px; }

  .promo-glass-grid { grid-template-columns: 1fr; max-width: 100%; gap: 12px;}
  .promo-glass-card { padding: 16px; }
  .promo-img { max-height: 70px; }
  .nav-arrow { display: none; }
}

/* =========================================
   TRUE CONTINUOUS SLIDING TRACK
   ========================================= */
.hero-inner-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  /* The track that moves the entire cards */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateX(0%);
}

/* The individual slide card */
.hero-slide-item {
  width: 100%;
  height: 100%;
  flex-shrink: 0; /* Prevents the slides from squishing together */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Ensure mobile layout applies to the new slide item */
@media (max-width: 768px) {
  .hero-slide-item {
    flex-direction: row !important; 
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
}
/* =========================================
   DYNAMIC HERO TEMPLATE STYLES
   ========================================= */

/* Common Helpers */
.tpl-left { max-width: 50%; }
.tpl-right { width: 45%; }
.tpl-center { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.mt-4 { margin-top: 24px; }

/* TPL-2: Showcase */
.showcase-img-wrap { width: 100%; display: flex; justify-content: center; }
.showcase-img { max-height: 140px; object-fit: contain; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6)); }

/* TPL-3: Box Art */
.box-art-img {
  max-height: 240px;
  border-radius: 12px;
  transform: perspective(800px) rotateY(-15deg);
  transition: transform 0.3s ease;
}
.box-art-img:hover { transform: perspective(800px) rotateY(0deg) scale(1.05); }

/* TPL-4: Compare Layout */
.compare-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 55%;
}
.compare-card {
  width: 45%;
  padding: 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}
.compare-card img { width: 100%; border-radius: 8px; margin-bottom: 10px; }
.compare-card h6 { font-size: 0.85rem; color: #fff; margin-bottom: 4px; letter-spacing: 1px;}
.compare-price { font-size: 1.1rem; font-weight: bold; color: #4a90e2; }
.compare-card.premium-glow { border: 1px solid rgba(255, 145, 0, 0.5); box-shadow: 0 0 20px rgba(255, 145, 0, 0.15); }
.compare-pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #3d82f2, #1a3c7a);
  padding: 6px 16px;
  border-radius: 20px;
  border: 2px solid #0f0f13;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.pill-text { font-size: 0.75rem; font-weight: bold; color: white; white-space: nowrap; }

/* TPL-5: Minimalist Grid */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 100%;
}
.min-badge {
  padding: 20px 15px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  transition: transform 0.2s ease;
}
.min-badge:hover { transform: translateY(-5px); }
.min-badge i { font-size: 1.8rem; color: #4a90e2; }
.min-badge span { font-size: 0.85rem; color: #ccc; font-weight: 500; }
.gradient-text-alt {
  background: linear-gradient(to right, #ffffff, #ff9100);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Floating Animation Utility */
@keyframes floatAnim {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
.floating-anim { animation: floatAnim 4s ease-in-out infinite; }

/* Responsive adjustments for new templates */
@media (max-width: 768px) {
  .tpl-left, .tpl-right, .compare-layout { max-width: 100%; width: 100%; }
  .box-art-img { max-height: 180px; transform: rotateY(0deg); }
  .compare-layout { margin-top: 20px; }
  .compare-card img { height: 100px; object-fit: cover; }
  .badge-grid { margin-top: 20px; }
}


/* =========================================
   PRE-MADE HOVER EFFECTS FOR DYNAMIC JSON
   ========================================= */

/* 1. Button Hover Effect */
.cta-button {
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.cta-button:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25) !important;
}

/* 2. Cyberpunk Box Art 3D Hover */
.box-art-img {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.box-art-img:hover {
  transform: perspective(800px) rotateY(0deg) scale(1.05) !important;
}

/* 3. Compare Cards Hover */
.compare-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.compare-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5) !important;
}

/* 4. Minimalist Badge Hover */
.min-badge {
  transition: transform 0.2s ease, background 0.2s ease !important;
}
.min-badge:hover {
  transform: translateY(-5px) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* 5. Classic 3D Cards Hover */
.card-mockup {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.hero-image-wrapper:hover .card-front {
  transform: rotate(0deg) translateZ(30px) scale(1.05) !important;
}
.hero-image-wrapper:hover .card-back {
  transform: rotate(10deg) translateZ(-40px) translateX(20px) !important;
}

/* =========================================
   3D FANNED CARD STACK (STEAM STYLE)
   ========================================= */

/* CRITICAL: Override hidden overflow so cards can pop out! */
.stack-parent {
  overflow: visible !important; 
}

/* Wrapper to hold the cards and apply 3D perspective */
.card-stack-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  transform-style: preserve-3d;
  /* Adjust margins if they hit the text */
  margin-right: 15px;
}

/* Base sizes for different sections */
.side-stack { width: 70px; height: 80px; }
.promo-stack { width: 90px; height: 90px; }

/* The individual cards inside the stack */
.layer-card {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.4s cubic-bezier(0.25, 1.5, 0.5, 1), filter 0.4s ease, box-shadow 0.4s ease;
}

/* Side banner specific card sizes */
.side-stack .layer-card { width: 50px; height: 70px; }

/* Promo grid specific card sizes */
.promo-stack .layer-card { width: 65px; height: 90px; }

/* --- DEFAULT POSITIONS (The Fan Spread) --- */
.left-card {
  transform: rotate(-15deg) translateX(-18px) translateY(5px) translateZ(-10px);
  z-index: 1;
  filter: brightness(0.6);
}

.right-card {
  transform: rotate(15deg) translateX(18px) translateY(5px) translateZ(-10px);
  z-index: 1;
  filter: brightness(0.6);
}

.center-card {
  transform: rotate(0deg) translateX(0) translateY(0) translateZ(0);
  z-index: 2;
  filter: brightness(0.9);
}

/* --- HOVER ANIMATIONS (Triggered by hovering over the parent box) --- */
.stack-parent:hover .left-card {
  transform: rotate(-25deg) translateX(-35px) translateY(5px) translateZ(5px);
  filter: brightness(0.85);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.stack-parent:hover .right-card {
  transform: rotate(25deg) translateX(35px) translateY(5px) translateZ(5px);
  filter: brightness(0.85);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.stack-parent:hover .center-card {
  /* Pops out towards the user and scales up */
  transform: rotate(0deg) translateX(0) translateY(-15px) translateZ(30px) scale(1.15);
  filter: brightness(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.1);
  z-index: 3;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .card-stack-wrapper {
    margin-right: 10px;
    margin-top: 10px;
  }
  .side-stack { width: 50px; height: 60px; }
  .side-stack .layer-card { width: 40px; height: 55px; }
  
  .promo-stack { width: 60px; height: 70px; }
  .promo-stack .layer-card { width: 45px; height: 65px; }

  /* Reduce hover spread slightly on mobile so it doesn't break the screen width */
  .stack-parent:hover .left-card { transform: rotate(-20deg) translateX(-20px) translateY(5px); }
  .stack-parent:hover .right-card { transform: rotate(20deg) translateX(20px) translateY(5px); }
}

/* =========================================
   MOBILE "APP ICON" PERFECT SQUARES (Max 768px)
   ========================================= */
@media (max-width: 768px) {
  
  /* Hide the now-empty side banner container on mobile */
  .side-glass-banners {
    display: none !important;
  }
  
  /* The unified swiping row (Holds all 5 cards) */
  .promo-glass-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px; 
    scrollbar-width: none; 
  }
  
  .promo-glass-grid::-webkit-scrollbar { 
    display: none; 
  }

  /* Force ALL cards into perfect 120x120 squares */
  .side-glass-card,
  .promo-glass-card {
    flex: 0 0 auto;
    width: 120px !important;
    height: 120px !important; 
    flex-direction: column-reverse !important; /* 3D Cards top, text bottom */
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
    padding: 10px !important;
    scroll-snap-align: start;
    box-sizing: border-box;
  }

  /* Text adjustments to fit the square */
  .side-content h4,
  .promo-text h3 {
    font-size: 0.8rem !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }
  
  /* Hide all subtext */
  .side-content span,
  .promo-text p {
    display: none !important; 
  }

  /* Standardize the 3D stack size for all squares */
  .card-stack-wrapper.side-stack,
  .card-stack-wrapper.promo-stack {
    margin: 0 auto !important; 
    width: 50px !important;
    height: 65px !important;
  }
  
  .side-stack .layer-card,
  .promo-stack .layer-card { 
    width: 40px !important; 
    height: 55px !important; 
  }

  /* Restrain hover animations on mobile so they don't pop out of the screen */
  .stack-parent:hover .left-card { transform: rotate(-15deg) translateX(-15px) translateY(2px) !important; }
  .stack-parent:hover .right-card { transform: rotate(15deg) translateX(15px) translateY(2px) !important; }
  .stack-parent:hover .center-card { transform: scale(1.05) translateZ(15px) !important; }
}

/* =========================================
   DYNAMIC HERO BANNER - MASTER CSS
   (Fixes overlapping, gaps, and window effect)
   ========================================= */

/* 1. The Outer Track (Completely Invisible, No Padding) */
.main-glass-banner {
  flex: 2.5;
  min-width: 0;
  position: relative;
  width: 100%;

  /* Strip everything to make it a naked track */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;

  /* Locked Desktop Height */
  height: 360px !important;
  min-height: 360px !important;
  max-height: 360px !important;

  /* Let JS toggle this to 'hidden' during animation, otherwise visible for 3D hover */
  overflow: visible;
}

/* 2. The Sliding Wrapper */
.hero-inner-wrapper {
  display: flex;
  flex-wrap: nowrap !important;
  width: 100%;
  height: 100%;
  gap: 0 !important; /* CRITICAL: Prevents gaps between slides during animation */
  margin: 0 !important;
  padding: 0 !important;
  /* JS controls transform and transition */
}

/* 3. The Actual Card (Holds ALL the Glass Style) */
.hero-slide-item {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;

  /* --- PREMIUM GLASS STYLES --- */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px 50px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 4. Inner Layouts */
.layout-split { flex-direction: row; justify-content: space-between; text-align: left; }
.layout-center { flex-direction: column; justify-content: center; text-align: center; }

.dyn-content-area { display: flex; flex-direction: column; justify-content: center; height: 100%; z-index: 2; }
.layout-split .dyn-content-area { width: 50%; align-items: flex-start; }
.layout-center .dyn-content-area { width: 100%; align-items: center; }

.dyn-visual-area { display: flex; justify-content: center; align-items: center; height: 100%; z-index: 1; }
.layout-split .dyn-visual-area { width: 45%; }
.layout-center .dyn-visual-area { width: 100%; margin-top: 20px; }

/* =========================================
   🚀 MASTER HERO SLIDER (CLEANED) 🚀
   ========================================= */

/* 1. DESKTOP LAYOUT */
.main-glass-banner {
  flex: 2.5;
  min-width: 0;
  position: relative;
  
  /* The Invisible Track */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  margin: 0 !important;
  
  /* CRITICAL: Permanently hide overflow to stop bleeding over other banners! */
  height: 360px !important;
  min-height: 360px !important;
  max-height: 360px !important;
  overflow: hidden !important; 
  border-radius: 24px !important;
}

.hero-inner-wrapper {
  display: flex;
  flex-wrap: nowrap !important;
  width: 100%;
  height: 100%;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  /* JS controls transform */
}

.hero-slide-item {
  width: 100% !important;
  height: 100% !important;
  flex: 0 0 100% !important; /* Forces exact width of parent, stops squishing */
  box-sizing: border-box !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;

  /* Premium Glass applied to the SLIDE, not the track */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  padding: 40px 50px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* 2. TABLET LAYOUT */
@media (max-width: 1024px) {
  .main-glass-banner { 
    height: 280px !important; 
    min-height: 280px !important; 
    max-height: 280px !important; 
  }
  .hero-slide-item { padding: 30px 40px !important; }
}

/* 3. MOBILE LAYOUT */
@media (max-width: 768px) {
  .main-glass-banner {
    height: 180px !important; 
    min-height: 180px !important; 
    max-height: 180px !important; 
  }
  
  .hero-slide-item {
    flex-direction: row !important; 
    padding: 15px 15px 25px 15px !important; 
    border-radius: 12px !important;
  }
  
  .hero-inner-wrapper, .layout-split {
    flex-direction: row !important; 
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  
  /* Left Side: Text Area */
  .layout-split .dyn-content-area { 
    width: 50% !important; 
    align-items: flex-start !important; 
    text-align: left !important; 
    padding-right: 10px !important; 
  }
  
  /* Right Side: Visuals Area */
  .layout-split .dyn-visual-area { 
    width: 50% !important; 
    margin-top: 0 !important; 
  }

  /* Miniature scaling */
  .dyn-content-area h1 { font-size: 1.1rem !important; line-height: 1.1 !important; margin-bottom: 6px !important; }
  .dyn-content-area p { font-size: 0.65rem !important; margin-bottom: 10px !important; line-height: 1.2 !important; }
  .dyn-content-area .cta-button { padding: 6px 12px !important; font-size: 0.65rem !important; border-radius: 50px !important; }
  .dyn-content-area div[style*="background"] { font-size: 0.55rem !important; padding: 3px 6px !important; margin-bottom: 6px !important; }

  .hero-image-wrapper { height: 100px !important; perspective: 500px !important; }
  .card-mockup { width: 90px !important; height: 55px !important; font-size: 1.2rem !important; border-radius: 6px !important; }
  .card-front { left: 0 !important; transform: rotate(5deg) translateZ(10px) !important; }
  .card-back { right: 0 !important; bottom: 10px !important; transform: rotate(15deg) translateZ(-20px) !important; }

  .compare-layout { width: 100% !important; }
  .compare-card { padding: 5px !important; border-radius: 6px !important; }
  .compare-card img { height: 50px !important; margin-bottom: 4px !important; border-radius: 4px !important;}
  .compare-card h6 { font-size: 0.5rem !important; margin-bottom: 2px !important; }
  .compare-price { font-size: 0.6rem !important; }
  .compare-pill { padding: 2px 6px !important; border: 1px solid #0f0f13 !important; }
  .pill-text { font-size: 0.5rem !important; }

  .box-art-img { max-height: 110px !important; border-radius: 6px !important; }
  .badge-grid { gap: 6px !important; }
  .min-badge { padding: 8px 5px !important; border-radius: 8px !important; }
  .min-badge i { font-size: 0.9rem !important; margin-bottom: 4px !important; }
  .min-badge span { font-size: 0.5rem !important; }

  /* Hide Arrows / Place Dots neatly inside card */
  .main-glass-banner .nav-arrow { display: none !important; }
  .carousel-indicators { bottom: 10px !important; z-index: 10;}
  .dot { width: 4px !important; height: 4px !important; margin: 0 2px !important; }
  .dot.active { width: 12px !important; }
}

/* =========================================
   LAYOUT 6: HALF-BACKGROUND FADE
   ========================================= */
.layout-half-fade {
  position: relative;
  justify-content: flex-start !important; /* Locks text to the left */
  overflow: hidden !important; /* Keeps the background image contained strictly inside the card */
}

.layout-half-fade .dyn-content-area {
  width: 50% !important;
  position: relative;
  z-index: 2; /* Keeps your text safely above the image */
}

.layout-half-fade .dyn-visual-area {
  position: absolute !important;
  top: 0;
  right: 0;
  width: 70% !important; /* Stretches the image slightly past the middle */
  height: 100% !important;
  margin: 0 !important;
  z-index: 1; /* Sends the image to the background */
}

.layout-half-fade .dyn-visual-area img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  animation: none !important; /* Stops the image from bobbing up and down */
  
  /* 🚀 THE MAGIC: Fades out the left side of the image into total transparency */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 45%);
  mask-image: linear-gradient(to right, transparent 0%, black 45%);
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
  .layout-half-fade .dyn-content-area {
    width: 100% !important;
    text-align: left !important;
    align-items: flex-start !important;
    padding-right: 20px !important;
  }
  .layout-half-fade .dyn-visual-area {
    width: 100% !important; /* Image takes the full width on small screens */
  }
  .layout-half-fade .dyn-visual-area img {
    /* Dim the image and push the fade further right so text is perfectly readable */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 80%);
    mask-image: linear-gradient(to right, transparent 0%, black 80%);
    opacity: 0.6 !important; 
  }
}

/* =========================================
   LAYOUT 7: FULL SCREEN IMAGE + BUTTON
   ========================================= */
.layout-full-image {
  padding: 0 !important; 
  position: relative;
  overflow: hidden !important;
  justify-content: center !important;
}

/* 1. Send the image to the absolute background */
.layout-full-image .dyn-visual-area {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  z-index: 1;
}

.layout-full-image .dyn-visual-area img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; 
  animation: none !important; 
  border-radius: 24px; 
}

/* 2. Float the Button container over the image */
.layout-full-image .dyn-content-area {
  position: relative;
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
  align-items: center !important;
  justify-content: flex-end !important; /* Pushes button to the bottom */
  padding-bottom: 45px !important; /* Perfect spacing above the dots */
  
  /* Adds a cinematic dark shadow at the bottom so the button pops */
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 40%);
  border-radius: 24px;
}

/* 3. Hide all text/headings, ONLY show the button */
.layout-full-image .dyn-content-area h1,
.layout-full-image .dyn-content-area p,
.layout-full-image .dyn-content-area div[style*="background"] {
  display: none !important; 
}

.layout-full-image .dyn-content-area .cta-button {
  display: inline-block !important; 
  box-shadow: 0 10px 20px rgba(0,0,0,0.5) !important; /* Give button 3D depth */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .layout-full-image .dyn-visual-area img,
  .layout-full-image .dyn-content-area {
    border-radius: 12px; 
  }
  .layout-full-image .dyn-content-area {
    padding-bottom: 35px !important; /* Tighter fit on phone screens */
  }
}

/* =========================================
   LAYOUT 8: CHARACTER SPLIT (Glow Edition)
   Inspired by gaming aesthetic provided by user.
   ========================================= */

/* 1. Container Positioning */
.layout-char-split {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important; /* Pushes content area to the right half */
  padding: 0 60px 0 0 !important; /* No left padding for img, large right padding for text */
  position: relative;
  overflow: hidden !important;
}

/* 2. Left Side: The Massive Image (Character) */
.layout-char-split .dyn-visual-area {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important; /* Full width for track, img handles positioning */
  height: 100% !important;
  z-index: 1;
  margin: 0 !important;
  justify-content: flex-start !important; /* Align img container to left */
  display: flex;
}

.layout-char-split .dyn-visual-area img {
  height: 140% !important; /* Scaled huge like in reference image to cut off */
  width: auto !important;
  object-fit: contain !important;
  /* Position left and slightly up/down for dynamic cut-off */
  transform: translateX(-15%) translateY(-10%) !important; 
  /* Subtle glow that matches the character image theme */
  filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.4)) drop-shadow(0 0 10px rgba(255, 0, 255, 0.3)); 
  animation: none !important; /* No floating animation */
}

/* 3. Right Side: The Text Area */
.layout-char-split .dyn-content-area {
  position: relative;
  z-index: 2; /* Sits above the scaled image */
  width: 50% !important; /* Occupies exactly right half */
  align-items: flex-start !important;
  text-align: left !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
  gap: 15px; /* List-like vertical spacing similar to reference image */
  padding: 40px 0 !important;
}

/* 4. Layout 8 Specific Typography & Color Palettes (Inspired by Reference) */
.layout-char-split h1 {
  font-family: 'Space Mono', monospace; /* Tech/Game style font */
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.1;
  /* Pink/Magenta glow from image */
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.7), 0 0 20px rgba(255, 0, 255, 0.4); 
}

.layout-char-split p {
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent box for readability over image */
  padding: 15px;
  /* Cyan accent line on the left from image */
  border-left: 3px solid #0ff; 
  border-radius: 4px;
  color: #c0c0ff;
  font-size: 0.95rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Glowing Yellow Button Inspired by Reference Image CTA */
.layout-char-split .cta-button {
  align-self: flex-start; /* Don't stretch */
  margin-top: 10px;
  border: 2px solid #fcee0a !important; /* Distinct Yellow */
  color: #fcee0a !important;
  background: transparent !important;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 14px 30px !important;
  border-radius: 4px !important; /* Angular shape */
  /* Heavy yellow glow effect */
  box-shadow: 0 0 15px rgba(252, 238, 10, 0.5), inset 0 0 5px rgba(252, 238, 10, 0.3) !important;
  transition: all 0.3s ease;
}

.layout-char-split .cta-button:hover {
  background: #fcee0a !important;
  color: #000 !important;
  box-shadow: 0 0 25px rgba(252, 238, 10, 0.8) !important;
}

/* =========================================
   RESPONSIVE Adjustments for Layout 8
   ========================================= */
@media (max-width: 1024px) {
  .layout-char-split { padding-right: 30px !important; }
  .layout-char-split .dyn-content-area { width: 55% !important; }
}

@media (max-width: 768px) {
  /* Keep exact layout on mobile, just scale typography down further */
  .layout-char-split {
    flex-direction: row !important;
    justify-content: space-between !important;
    padding: 15px 15px 25px 15px !important; /* Bottom padding for dots */
    border-radius: 12px !important;
  }

  .layout-char-split .dyn-visual-area img {
    height: 120% !important; /* Still huge but scaled down slightly */
    transform: translateX(-10%) translateY(-5%) !important; /* Tighter crop */
  }

  .layout-char-split .dyn-content-area {
    width: 60% !important; /* Give text area slightly more room on tiny screens */
    gap: 10px;
    padding: 0 !important;
  }

  /* Extreme Typography Scaling for Mobile Split */
  .layout-char-split h1 { font-size: 1.2rem !important; margin-bottom: 5px !important; }
  .layout-char-split p { font-size: 0.7rem !important; padding: 10px !important; line-height: 1.3 !important; }
  .layout-char-split .cta-button { padding: 8px 18px !important; font-size: 0.75rem !important; border-width: 1px !important;}
}

/* =========================================
   LAYOUT 9: FLASH SALE — TILTED MESH GRID
   ⚠️  ALL colors/fonts come from JSON via
       CSS custom properties set inline on
       .hero-slide-item.  NO hardcoded theme
       values live here.
   ========================================= */

/* ── 1. Container ─────────────────────────── */
.layout-flash-sale {
  position: relative;
  overflow: hidden !important;
  padding: 0 !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  background: var(--fs-bg, #1b2838) !important;
  border-radius: 16px;
}

/* Scanline texture — uses theme accent at low opacity */
.layout-flash-sale::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    var(--fs-stripe-angle, -55deg),
    var(--fs-stripe-color, rgba(103,193,245,0.03)) 0px,
    var(--fs-stripe-color, rgba(103,193,245,0.03)) 1px,
    transparent 1px,
    transparent 28px
  );
  z-index: 0;
  pointer-events: none;
}

/* Corner glow */
.layout-flash-sale::after {
  content: '';
  position: absolute;
  top: -60px; left: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle,
    var(--fs-glow, rgba(103,193,245,0.12)) 0%,
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

/* Bottom accent bar */
.layout-flash-sale .fs-bottom-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--fs-accent, #67c1f5) 0%,
    var(--fs-accent2, #1a9fff) 40%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* ── 2. Left — Content area ───────────────── */
.layout-flash-sale .dyn-content-area {
  position: relative;
  z-index: 4;
  width: 45% !important;
  min-width: 45%;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 32px 16px 32px 30px !important;
}

.layout-flash-sale .dyn-content-area h1 {
  font-family: var(--fs-font-heading, 'Arial Black', Impact, sans-serif) !important;
  font-weight: 900 !important;
  font-size: var(--fs-title-size, 1.9rem) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  line-height: 1.0 !important;
  color: var(--fs-title-color, #ffffff) !important;
  margin: 0 0 8px 0 !important;
  text-shadow: var(--fs-title-shadow, none) !important;
}

.layout-flash-sale .dyn-content-area p {
  color: var(--fs-text-color, rgba(255,255,255,0.6)) !important;
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
  margin: 0 0 14px 0 !important;
  max-width: 250px;
}

.layout-flash-sale .dyn-content-area .cta-button {
  background: var(--fs-btn-bg, linear-gradient(180deg,#47bfff 0%,#1a9fff 50%,#147abf 100%)) !important;
  color: var(--fs-btn-color, #fff) !important;
  font-family: var(--fs-font-heading, 'Arial Black', sans-serif) !important;
  font-weight: 900 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 11px 24px !important;
  border-radius: var(--fs-btn-radius, 3px) !important;
  border: var(--fs-btn-border, none) !important;
  box-shadow: var(--fs-btn-shadow, 0 1px 0 rgba(0,0,0,0.5)) !important;
  transition: filter 0.15s !important;
  width: max-content;
  cursor: pointer;
}
.layout-flash-sale .dyn-content-area .cta-button:hover {
  filter: brightness(1.15) !important;
  transform: none !important;
}

/* ── 3. Countdown ─────────────────────────── */
.flash-countdown-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}
.flash-countdown-wrap .cd-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--fs-accent, #67c1f5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-right: 4px;
}
.flash-cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--fs-cd-bg, rgba(255,255,255,0.06));
  border: 1px solid var(--fs-cd-border, rgba(103,193,245,0.25));
  border-radius: 4px;
  padding: 4px 9px;
  min-width: 38px;
}
.flash-cd-block .cd-num {
  font-family: 'Courier New', monospace;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--fs-accent, #67c1f5);
  line-height: 1;
}
.flash-cd-block .cd-unit {
  font-size: 8px;
  color: var(--fs-cd-unit-color, rgba(255,255,255,0.35));
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}
.flash-cd-sep {
  color: var(--fs-cd-sep-color, rgba(255,255,255,0.3));
  font-weight: 900;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* ── 4. Right — Tilted mesh visual ───────── */
.layout-flash-sale .dyn-visual-area {
  position: absolute !important;
  top: 0; right: 0;
  width: 60% !important;
  height: 100% !important;
  margin: 0 !important;
  z-index: 3;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

/* Left fade */
.layout-flash-sale .dyn-visual-area::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 42%; height: 100%;
  background: linear-gradient(to right,
    var(--fs-bg, #1b2838) 0%, transparent 100%
  );
  z-index: 6;
  pointer-events: none;
}
/* Right fade */
.layout-flash-sale .dyn-visual-area::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 12%; height: 100%;
  background: linear-gradient(to left,
    var(--fs-bg, #1b2838) 0%, transparent 100%
  );
  z-index: 6;
  pointer-events: none;
}

.flash-mesh-grid {
  display: grid;
  grid-template-columns: repeat(3, 105px);
  grid-template-rows: repeat(2, 128px);
  gap: 10px;
  transform: rotate(-11deg) translateX(22px) translateY(8px);
  position: relative;
  z-index: 4;
}

.flash-mesh-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--fs-card-bg, rgba(255,255,255,0.05));
  border: 1px solid var(--fs-card-border, rgba(255,255,255,0.08));
  box-shadow: 0 4px 16px rgba(0,0,0,0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.flash-mesh-card:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.9),
              0 0 16px var(--fs-card-glow, rgba(103,193,245,0.2));
  z-index: 10;
}
.flash-mesh-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.flash-mesh-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 55%);
  pointer-events: none;
}

/* Price chip — colors from theme vars */
.flash-mesh-card .mesh-price {
  position: absolute;
  bottom: 5px; left: 50%;
  transform: translateX(-50%);
  background: var(--fs-price-bg, rgba(255,69,0,0.9));
  color: var(--fs-price-color, #fff);
  font-size: 9px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: var(--fs-price-radius, 20px);
  z-index: 6;
  white-space: nowrap;
  font-family: 'Courier New', monospace;
}

/* HOT badge */
.flash-mesh-card .mesh-hot {
  position: absolute;
  top: 5px; right: 5px;
  background: var(--fs-hot-bg, #c2242a);
  color: var(--fs-hot-color, #fff);
  font-size: 8px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: var(--fs-hot-radius, 2px);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 6;
}

/* Discount badge */
.flash-mesh-card .mesh-discount {
  position: absolute;
  top: 5px; left: 5px;
  background: var(--fs-discount-bg, #4c7a00);
  color: var(--fs-discount-color, #a4d007);
  font-size: 8px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: var(--fs-discount-radius, 2px);
  z-index: 6;
  font-family: 'Courier New', monospace;
}

/* ── 5. Mobile Responsiveness for Flash Sale ── */
@media (max-width: 768px) {
  .layout-flash-sale {
    flex-direction: row !important; /* CRITICAL: Keep it side-by-side to fit the 180px height */
    padding: 0 !important;
    border-radius: 12px !important;
  }
  
  /* Left Side: Text & Countdown */
  .layout-flash-sale .dyn-content-area {
    width: 50% !important;
    min-width: 50% !important;
    padding: 15px 5px 25px 15px !important; /* Bottom padding for the navigation dots */
    justify-content: center !important;
    z-index: 5;
  }
  
  .layout-flash-sale .dyn-content-area h1 {
    font-size: 1.05rem !important; /* Miniature heading */
    margin-bottom: 4px !important;
  }
  
  .layout-flash-sale .dyn-content-area p {
    font-size: 0.6rem !important; /* Miniature subtext */
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
  }
  
  .layout-flash-sale .dyn-content-area .cta-button {
    font-size: 0.55rem !important;
    padding: 6px 10px !important;
  }

  /* Shrink the Countdown block */
  .flash-countdown-wrap {
    transform: scale(0.65);
    transform-origin: left center;
    margin-bottom: 6px !important;
    gap: 2px !important;
  }

  /* Right Side: The Visual Mesh Area */
  .layout-flash-sale .dyn-visual-area {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 50% !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  /* Smoothly blend the left edge of the grid into the dark background */
  .layout-flash-sale .dyn-visual-area::before { 
    width: 60% !important; 
    background: linear-gradient(to right, var(--fs-bg, #1b2838) 0%, transparent 100%) !important;
  }

  /* Miniature Grid Layout */
  .flash-mesh-grid {
    grid-template-columns: repeat(3, 55px) !important;
    grid-template-rows: repeat(2, 70px) !important;
    gap: 6px !important;
    transform: rotate(-11deg) translateX(10px) translateY(8px) !important;
  }
  
  /* Shrink grid text elements */
  .flash-mesh-card .mesh-price { font-size: 7px !important; padding: 1px 4px !important; }
  .flash-mesh-card .mesh-discount { font-size: 6px !important; padding: 1px 3px !important; }
  .flash-mesh-card .mesh-hot { font-size: 6px !important; padding: 1px 3px !important; }
}

/* ── 6. Isolation guard (Cleaned up) ── */
/* Prevents custom theme colors from leaking into Layouts 1-8 */
.hero-slide-item:not(.layout-flash-sale) .dyn-content-area h1,
.hero-slide-item:not(.layout-flash-sale) .dyn-content-area p,
.hero-slide-item:not(.layout-flash-sale) .dyn-content-area .cta-button,
.hero-slide-item:not(.layout-flash-sale) .dyn-visual-area {
  --fs-bg: initial;
  --fs-accent: initial;
  --fs-btn-bg: initial;
  --fs-title-color: initial;
  --fs-text-color: initial;
}
/* NOTE: The toxic 'Hard reset for layout-split' has been permanently deleted! */