/* =========================
   ROOT VARIABLES
========================= */

:root {
  --primary: #8a3ee5;
  --primary-dark: #6e2cb8;
  --primary-light: #a461f5;
  --secondary: #ff6a00;
  --bg-dark: #121420;
  --bg-darker: #0c0d14;
  --bg-light: #f5f6f8;
  --text-light: #f4f4f5;
  --text-dark: #1a1a24;
  --muted-light: #a0a0b0;
  --muted-dark: #666;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.4);
  --container: 1600px;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

/* =========================
   RESET
========================= */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #533088; /* Matches footer to hide bottom gaps on scroll/bounce */
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  background: var(--bg-dark);
  font-family: var(--font-body);
  color: var(--text-light);
  scroll-behavior: smooth;
  overflow-wrap: break-word;
}




/* =========================
   PERFORMANCE & ADS FIXES
========================= */
ins.adsbygoogle {
  display: block !important;
  background: rgba(255,255,255,0.02);
  min-height: 90px; /* Reserves space */
  contain: content;
}
.ad-slot-header { min-height: 90px; margin: 10px 0; }
.ad-slot-sidebar { min-height: 250px; }
.ad-slot-footer { min-height: 100px; }

/* Hardware Acceleration for smooth scrolling */
.main, .hero, .card, .product-gallery {
  transform: translateZ(0);
  will-change: transform;
}
.bg-neon-anim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.bg-neon-anim::before,
.bg-neon-anim::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: neonFloat 25s infinite alternate ease-in-out;
  transform: translateZ(0);
  will-change: transform;
}

@media (max-width: 768px) {
  .bg-neon-anim::before,
  .bg-neon-anim::after {
    filter: blur(40px);
    opacity: 0.2;
    animation-duration: 40s;
  }
}

.bg-neon-anim::before {
  top: -10%;
  left: 10%;
  background: var(--primary);
  animation-delay: 0s;
}

.bg-neon-anim::after {
  bottom: -10%;
  right: 10%;
  background: var(--secondary);
  animation-delay: -12.5s;
  animation-duration: 35s;
}

@keyframes neonFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translate(5vw, 10vh) scale(1.1);
    opacity: 0.5;
  }

  100% {
    transform: translate(-5vw, 5vh) scale(1);
    opacity: 0.3;
  }
}

@media (max-width: 768px) {

  .bg-neon-anim::before,
  .bg-neon-anim::after {
    display: none; /* Disable expensive animations on low-power mobile devices */
  }
}


img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  margin-top: 0;
}

/* =========================
   LAYOUT
========================= */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }


  .filter-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 15px !important;
  }
  .filter-bar > div {
    width: 100% !important;
    justify-content: space-between !important;
  }
  .filter-bar input, .filter-bar select {
    width: 100% !important;
  }
}

.main {
  min-height: 70vh;
}

/* =========================
   NAVBAR
========================= */
.site-header {
  background: rgba(110, 65, 178, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  width: 100%;
  left: 0;
}


.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}


.hamburger {
  background: none;
  border: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  display: none;
}

.brand {
  display: flex !important;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0px;
}
@media (max-width: 480px) {
    .brand-title { font-size: 16px !important; }
    .brand-logo { width: 32px !important; height: 32px !important; }
}

.brand-logo {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: transparent !important;
  object-fit: contain;
}
.footer-logo img {
  background: transparent !important;
  border-radius: 50% !important;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  margin-right: 50px;
}

.nav-links a {
  position: relative;
  transition: all 0.3s ease;
  color: #fff;
  text-decoration: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background: #10b981;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

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

.nav-links a:hover {
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.nav-search {
  flex: 1;
  max-width: 350px;
  margin: 0 30px;
  position: relative;
}

.nav-search input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border-radius: 20px;
  border: none;
  background: #fff;
  color: #333;
  font-family: var(--font-body);
  font-size: 14px;
}

.nav-search::before {
  content: '🔍';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 14px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-right > a {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-right > a:hover {
  transform: translateY(-2px);
}

@keyframes cartBounce {
  0% { transform: translateY(0) scale(1); }
  33% { transform: translateY(-3px) scale(1.1) rotate(-5deg); }
  66% { transform: translateY(2px) scale(0.9) rotate(5deg); }
  100% { transform: translateY(0) scale(1); }
}

.cart-icon {
  position: relative;
  font-size: 20px;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.cart-icon:hover svg {
  animation: cartBounce 0.5s ease-in-out infinite;
  color: var(--primary-light);
}

.cart-icon .badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--secondary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

.login-link {
  font-weight: 600;
  font-size: 14px;
}

.mobile-cart {
  display: none !important;
}

.register-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}

.register-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* =========================
   BUTTONS
========================= */
.btn {
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}

.btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(138, 62, 229, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn.outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn.primary {
  background: var(--secondary);
}

.btn.primary:hover {
  background: #ff8533;
  box-shadow: 0 4px 15px rgba(255, 106, 0, 0.4);
}

.neon-glow {
  position: relative;
  overflow: hidden;
}

.neon-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, var(--primary), transparent 30%);
  animation: rotateGlow 3s linear infinite;
  z-index: 0;
  opacity: 0.3;
}

.neon-glow * {
  position: relative;
  z-index: 1;
}

@keyframes rotateGlow {
  100% {
    transform: rotate(360deg);
  }
}

/* =========================
   HERO SECTION
========================= */
.hero {
  position: relative;
  background-color: #1e202f;
  background-image: url('../assets/map-bg.png');
  background: radial-gradient(circle at right center, #26293f 0%, #1e202f 100%);
  padding: 30px clamp(15px, 5vw, 40px);
  overflow: hidden;

  display: flex;
  align-items: center;
  min-height: 280px; /* Reduced to 280px for a very compact look */
}

/* Constrain Offers Banner on Desktop */
@media (min-width: 1025px) {
  .offers-banner-container {
    max-width: 1200px !important; /* Reduced from 1600px to decrease height on desktop */
  }
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1.5" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
  pointer-events: none;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
  animation: slideUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.pill {
  display: inline-block;
  background: rgba(138, 62, 229, 0.2);
  color: #c996ff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin: 0 0 15px 0;
  font-weight: 800;
  color: #fff;
}

.hero h1 .highlight {
  color: var(--primary-light);
  display: block;
}

.hero p {
  font-size: 1rem; /* Reduced from 1.15rem */
  color: var(--muted-light);
  line-height: 1.5;
  margin-bottom: 25px; /* Reduced from 40px */
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  gap: 20px;
}

.hero-image {
  flex: 1;
  position: relative;
  max-width: 500px;
  animation: float 6s ease-in-out infinite, slideInRight 1s ease-out forwards;
  opacity: 0;
  filter: drop-shadow(0 0 30px rgba(138, 62, 229, 0.2));
}

.hero-image img {
  border-radius: var(--radius-lg);
  border: 4px solid var(--primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: none;
}

/* =========================
   TOP CATEGORIES
========================= */
.categories-section {
  padding: 80px 20px;
  background: var(--bg-darker);
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 10px rgba(138, 62, 229, 0.4);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 15px var(--primary);
}

.category-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: var(--container);
  margin: auto;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.cat-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(138, 62, 229, 0.05);
  border: 1px solid rgba(138, 62, 229, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary-light);
  transition: all 0.3s ease;
}

.cat-item:hover .cat-icon {
  background: var(--primary);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 0 20px var(--primary-light), inset 0 0 15px var(--primary-dark);
}

.cat-item span {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-light);
}

/* =========================
   FEATURED MODS
========================= */
.mods-section {
  padding: 80px 20px;
  background: var(--bg-dark);
}

.mods-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.mods-header h2 {
  font-size: 2rem;
  margin: 0;
}

.view-all {
  color: var(--primary-light);
  font-weight: 600;
}

.view-all:hover {
  text-decoration: underline;
}

.cards-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important; 
  gap: 30px;
  max-width: var(--container);
  margin: auto;
}



/* Homepage Horizontal Scroll overrides */
.home-cards-grid {
  display: flex !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  gap: 20px !important;
  padding: 10px 5px 30px 5px !important;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
  contain: layout;
  content-visibility: auto;
}

.home-cards-grid .card {
  flex: 0 0 calc(33.333% - 14px); /* Show roughly 3 cards on desktop */
  scroll-snap-align: start;
  min-width: 300px;
}

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
  }

  .home-cards-grid .card {
    flex: 0 0 70%;
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 10px;
  }
  .home-cards-grid .card {
    flex: 0 0 85%;
  }
}

@media (max-width: 500px) {
  .cards-grid {
    grid-template-columns: 1fr !important; 
    gap: 20px !important;
  }

  .card-title {
    font-size: 16px !important;
    line-height: 1.4 !important;
    height: auto !important;
  }
}

.upcoming-card .card-category { color: #aaa !important; }
.upcoming-card .card-title { color: #fff !important; }

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

/* Add stagger to cards */
.card:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.3s;
}

.card:nth-child(4) {
  animation-delay: 0.4s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.card-img {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  background: #000;
  contain: paint;
}

.card-img img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.anim-pulse {
  transition: all 0.3s;
}

.anim-pulse:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--primary-light);
}

.card:hover .card-img img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f5f0ff;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
}

.card-body {
  padding: 20px;
}

.card-category {
  font-size: 12px;
  color: var(--muted-dark);
  margin-bottom: 8px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.card-price.free {
  color: #10b981;
  /* green */
}

.card-btn {
  background: #f0e6ff;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.card-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* =========================
   WHY CHOOSE US
========================= */
.why-section {
  padding: 100px 20px;
  background: var(--bg-darker);
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 50px auto 0;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(138, 62, 229, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--muted-light);
  font-size: 0.95rem;
  line-height: 1.6;
}


/* =========================
   FOOTER
========================= */
.site-footer {
  background: #533088;
  /* footer purple */
  padding: 60px 20px 30px;
  color: #fff;
}

.footer-inner {
  max-width: var(--container);
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 28px;
  border-radius: 6px;
}

.footer-desc {
  color: #d8c4ff;
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
  margin-bottom: 20px;
}

.social-icons a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: background 0.3s;
  color: #fff;
}

.social-icons a:hover {
  background: var(--primary);
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: #d8c4ff;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--container);
  margin: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #bfa0ef;
}

/* =========================
   ANIMATIONS & RESPONSIVE
========================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Mobile Nav */
.slide-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: var(--bg-darker);
  z-index: 2000;
  padding: 20px;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), visibility .35s;
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
}

.slide-menu.open {
  transform: translateX(0);
  visibility: visible;
}

.slide-menu .menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
}

.slide-menu .mobile-nav-links {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slide-menu a {
  color: var(--text-light);
  font-size: 18px;
  font-weight: 600;
}

@media (max-width: 1024px) {

  .nav-links,
  .nav-right,
  .nav-search {
    display: none;
  }
  
  .mobile-search-bar {
    display: block !important;
  }

  .hamburger,
  .mobile-cart {
    display: flex !important;
  }

  .hero h1 {
    font-size: 2.8rem;
    line-height: 1.1;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-image {
    margin-top: 20px;
    order: -1; /* Logo moves above text on mobile for better flow */
  }

  .hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-top: 20px;
  }

  .hero-ctas {
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 30px auto 0;
    gap: 15px;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero::after {
    display: block; /* Ensure dots are visible on mobile */
  }

  .mods-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .site-footer {
    padding: 25px 15px 15px;
    width: 100%;
    overflow: hidden;
  }


  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 15px;
    margin-bottom: 20px;
  }

  .footer-inner > div:first-child {
    grid-column: 1 / -1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo,
  .social-icons {
    justify-content: center;
  }

  .footer-desc {
    margin: 0 auto 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .section-title {
    font-size: 1.75rem;
  }

  /* Improved Mobile Header (Feature 11) */
  .brand-title {
    font-size: 16px !important;
  }
  .brand-sub {
    font-size: 10px !important;
  }
  .nav-inner {
    padding: 10px 15px;
  }
  .nav-search {
    margin: 0 10px;
    max-width: none;
  }
  .nav-search input {
    padding: 8px 12px 8px 32px;
    font-size: 13px;
  }
  .nav-search::before {
    left: 10px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .category-grid {
    gap: 20px;
  }
  
  .nav-search {
    display: none;
  }
  .mobile-search-bar {
    display: block !important;
  }
  .brand-logo {
    width: 28px !important;
    height: 28px !important;
  }
  body {
      font-size: 15px; 
  }

  h2 {
      font-size: 1.8rem;
  }
}

/* =========================
   AUTH PAGES
========================= */
.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 40px 20px;
}

.auth-card {
  background: var(--bg-darker);
  max-width: 400px;
  width: 100%;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
  margin: auto;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--primary-light);
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-card input {
  padding: 12px 15px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: var(--font-body);
  outline: none;
  transition: border 0.3s;
}

.auth-card input:focus {
  border-color: var(--primary);
}

/* Date Input Fix for Calendar Visibility - CUSTOM SVG ICON */
input[type="date"] {
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    color-scheme: dark !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0 !important;
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 100%;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.auth-links,
.auth-note {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted-light);
}

/* =========================
   NEW ANIMATIONS & UTILS
========================= */
.card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  transition: transform 0.6s ease;
}

.btn:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-badge {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 106, 0, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 106, 0, 0);
  }
}

.badge-animated {
  animation: pulse-badge 2s infinite;
}

/* Specific Utilities */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-darker);
  padding: 15px 20px;
  border-radius: var(--radius);
}

.filter-bar select,
.filter-bar input {
  padding: 10px 15px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: var(--font-body);
}

.filter-bar select option {
  background: var(--bg-dark);
  color: #fff;
}

@media (max-width: 600px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
  }
  .filter-bar > * {
    width: 100%;
  }
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.product-main-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.product-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.product-thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s;
}

.product-thumbs img:hover,
.product-thumbs img.active {
  border-color: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.product-video {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
}

.product-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-main-img {
    height: auto;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 600px) {
  .product-main-img {
    height: auto;
    aspect-ratio: 16/9;
  }

  .hero {
    padding: 60px 20px 80px;
  }

  .neon-border-flicker {
    padding: 20px !important;
  }
}

.responsive-grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.responsive-grid-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

@media (max-width: 991px) {
  .responsive-grid-2-1,
  .responsive-grid-1-2 {
    grid-template-columns: 1fr !important;
  }
}

select option {
  background: var(--bg-dark);
  color: #fff;
}

/* =========================
   NEON TEXT & BORDERS (User Requested)
========================= */

.cards-grid .card:hover {
  box-shadow:
    0 0 10px var(--primary),
    0 0 20px var(--primary-light),
    0 0 40px var(--primary-dark);
  border-color: var(--primary);
}

/* Horizontal scroll for cards on mobile */
@media (max-width: 768px) {
  .home-cards-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 24px 15px;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    margin: 0 -15px;
    width: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .home-cards-grid::-webkit-scrollbar { display: none; }

  .home-cards-grid .card {
    flex: 0 0 260px;
    scroll-snap-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .nav-search { margin: 0 15px !important; }
}

@media (max-width: 768px) {
  .nav-search { display: none !important; }
  .hamburger { display: block !important; }
  .nav-inner { padding: 10px 15px !important; }
  .brand-title { font-size: 16px !important; }
  .brand-sub { font-size: 8px !important; }
}

@media (max-width: 480px) {
  .footer-logo div div:first-child { font-size: 18px !important; }
  .footer-logo img { width: 35px !important; height: 35px !important; }
}

  /* Form spacing on mobile */
  form input, form select, form textarea {
      font-size: 16px !important;
      padding: 14px !important;
  }


/* =========================
   ADDITIONAL NEON EFFECTS
========================= */

@keyframes borderFlicker {

  0%,
  18%,
  22%,
  25%,
  53%,
  57%,
  100% {
    box-shadow: 0 0 15px var(--primary), inset 0 0 15px var(--primary);
    border: 2px solid var(--primary);
  }

  20%,
  24%,
  55%,
  56% {
    box-shadow: none;
    border: 2px dashed rgba(255, 255, 255, 0.1);
  }
}

.neon-border-flicker {
  animation: borderFlicker 4s infinite alternate;
  border-radius: var(--radius-lg);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* =========================
   MOBILE UX IMPROVEMENTS
========================= */
.responsive-iframe {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: var(--radius);
}

.responsive-iframe iframe,
.responsive-iframe object,
.responsive-iframe embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-light);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 14px;
}

.back-btn:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .nav-right {
    display: none !important;
  }
  
  .footer-logo img {
      width: 40px !important;
      height: 40px !important;
  }
  .footer-logo div div {
      font-size: 16px !important;
  }

  /* Fix mobile search predictor width */
  #frontendSearchDropdown, #mobileSearchDropdown {
      min-width: unset !important;
      width: 100% !important;
      left: 0 !important;
  }
}


/* Global Responsive Table Utility (Removed forced min-width to fix mobile scroll) */
.table-responsive {
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
}

/* =========================
   POPUPS & COOKIE BANNER
========================= */

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(18, 20, 32, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 3px solid var(--primary);
  display: flex !important;
  justify-content: center;
  align-items: center;
  padding: 15px clamp(15px, 5vw, 40px);
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.8);
  z-index: 100005 !important;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  color: #fff;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 12px 15px;
    gap: 10px;
  }
  .cookie-text { font-size: 13px !important; margin-bottom: 5px; }
  .cookie-btns { width: 100%; justify-content: center; }
  .cookie-btns .btn { flex: 1; max-width: 150px; }
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-text {
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  max-width: 800px;
}

.cookie-btns {
  display: flex;
  gap: 10px;
}

/* Global Alert Popup Modal */
.global-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100010;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.global-modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.global-modal-box {
  background: var(--bg-darker);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.global-modal-overlay.show .global-modal-box {
  transform: scale(1);
}

.global-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: var(--muted-light);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s;
}

.global-modal-close:hover {
  color: #fff;
}

.global-modal-icon {
  font-size: 40px;
  margin-bottom: 15px;
  display: inline-block;
}

.global-modal-title {
  color: var(--primary-light);
  font-family: var(--font-heading);
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
}

.global-modal-desc {
  color: #ccc;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 25px;
}

/* =========================
   CORE ANIMATIONS
========================= */

@keyframes blink {
  0%, 100% { opacity: 1; text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary); }
  50% { opacity: 0.3; text-shadow: none; }
}

@keyframes neonPulse {
  0% { transform: scale(1); box-shadow: 0 0 10px var(--primary); }
  50% { transform: scale(1.05); box-shadow: 0 0 40px var(--primary-light); }
  100% { transform: scale(1); box-shadow: 0 0 10px var(--primary); }
}

.anim-pulse {
  animation: neonPulse 3s infinite ease-in-out;
}

.neon-glow {
  filter: drop-shadow(0 0 15px var(--primary-light));
}
/* =========================
   MRP PRICING & SEQUENTIAL ANIMATION
========================= */
.price-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mrp-price {
  color: #94a3b8; /* Clean Slate Gray */
  font-size: 0.85em;
  font-weight: 600;
  position: relative;
  display: inline-block;
  opacity: 0;
  animation: mrpFadeIn 0.5s ease-out forwards;
}

.mrp-price::after {
  content: "";
  position: absolute;
  left: 0;
  top: 55%;
  width: 0;
  height: 2px;
  background: #ff4757; /* Premium Vibrant Red */
  transform: translateY(-50%);
  border-radius: 2px;
}

.mrp-price.animate::after {
  animation: strikeThrough 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: 0.6s;
}

.final-price {
  color: var(--primary-light); /* Matching Theme (Violet) */
  font-weight: 800;
  text-shadow: 0 0 10px rgba(164, 97, 245, 0.3);
  opacity: 0;
  display: inline-block;
}

.final-price.animate {
  animation: finalPricePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 1.4s;
}

@keyframes mrpFadeIn {
  to { opacity: 0.6; }
}

@keyframes strikeThrough {
  to { width: 100%; }
}

@keyframes finalPricePop {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* =========================
   NEW HELPFUL ANIMATIONS
   ========================= */

/* 1. Sleek Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 2. Shimmering Text Gradient (For Headings) */
.shimmer-text {
  background: linear-gradient(
    to right,
    #fff 20%,
    var(--primary-light) 40%,
    var(--primary-light) 60%,
    #fff 80%
  );
  background-size: 200% auto;
  color: #000;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

/* 3. Premium Glow Pulse (For Badges) */
.premium-glow {
  animation: premiumPulse 2s infinite ease-in-out;
  box-shadow: 0 0 10px var(--primary);
  border: 1px solid rgba(255,255,255,0.2);
}

@keyframes premiumPulse {
  0% { box-shadow: 0 0 5px var(--primary); transform: scale(1); }
  50% { box-shadow: 0 0 20px var(--primary-light); transform: scale(1.05); }
  100% { box-shadow: 0 0 5px var(--primary); transform: scale(1); }
}

/* 4. Hover Reveal (Subtle underline expansion) */
.hover-reveal-link {
  position: relative;
  overflow: hidden;
}
.hover-reveal-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-out;
}
.hover-reveal-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 480px) {
  .price-container { gap: 6px; }
  .mrp-price { font-size: 0.75em; }
  .final-price { font-size: 1.1em; }
}

/* =========================
   ADMIN PANEL IMPROVEMENTS
   ========================= */
.admin-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-light);
  margin-bottom: 8px;
  margin-top: 15px;
}

.admin-form input, 
.admin-form select, 
.admin-form textarea {
  width: 100%;
  margin-bottom: 5px;
}

@media (max-width: 600px) {
  .admin-form {
    padding: 20px !important;
  }
}

/* =========================
   NAVBAR & MOBILE HEADER
   ========================= */
@media (max-width: 640px) {
  .nav-search {
    display: none !important;
  }
}

/* Fix mobile quantity inputs */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[readonly] {
  cursor: default;
  -webkit-text-fill-color: #fff; /* Fix iOS invisible text on readonly */
  opacity: 1;
}

@media (max-width: 600px) {
  .dash-card {
    padding: 12px !important;
  }
}

  .yt-card {
    flex-direction: column !important;
    text-align: center !important;
    gap: 15px !important;
  }
  .yt-card div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
}

/* =========================
   PREMIUM ANIMATIONS (Feature: Polish)
========================= */

/* Fade In Up */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

/* Pulse Glow for Buttons */
@keyframes buttonPulse {
  0% { box-shadow: 0 0 0 0 rgba(138, 62, 229, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(138, 62, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(138, 62, 229, 0); }
}

.anim-pulse {
  animation: buttonPulse 2s infinite;
}

/* Float Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* Glass Hover */
.glass-hover {
  transition: all 0.3s ease;
}

.glass-hover:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Smooth Slide In */
@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}

.slide-in {
  animation: slideInRight 1s ease-out forwards;
}

/* Smooth Image Scale on Hover */
.card-img img {
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover .card-img img {
  transform: scale(1.1);
}

/* Hover Reveal Detail */
.card-body {
  position: relative;
  z-index: 1;
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(138, 62, 229, 0.05));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}


