/* Container styling for better card presentation */
.products-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 25px !important;
  padding: 20px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* Enhanced button styles */
.price-btn {
  background: transparent !important;
  color: #28a780 !important;
  border: 2px solid #28a780 !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  font-weight: normal !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
  font-size: 16px !important;
  margin-bottom: 12px !important;
  letter-spacing: 0.3px !important;
}

.price-btn:hover {
  background: #28a780 !important;
  color: white !important;
  box-shadow: none !important;
}

.add-to-cart-btn {
  background: linear-gradient(135deg, #28a780 0%, #1f8566 100%) !important;
  color: white !important;
  border: none !important;
  padding: 10px 24px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(40, 167, 128, 0.3) !important;
  width: 100% !important;
  margin-top: 8px !important;
  transition: all 0.3s ease !important;
  font-size: 16px !important;
  letter-spacing: 0.5px !important;
}

.add-to-cart-btn:hover {
  box-shadow: 0 4px 15px rgba(40, 167, 128, 0.4) !important;
  background: linear-gradient(135deg, #1f8566 0%, #1a7f60 100%) !important;
}

.buy-button {
  background: linear-gradient(135deg, #28a780 0%, #1f8566 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 8px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 15px rgba(40, 167, 128, 0.3) !important;
  transition: all 0.3s ease !important;
}

.buy-button:hover {
  box-shadow: 0 6px 20px rgba(40, 167, 128, 0.4) !important;
  transform: translateY(-2px) !important;
}

.cart-icon-btn {
  background: rgba(40, 167, 128, 0.1) !important;
  color: #28a780 !important;
  border: 1px solid rgba(40, 167, 128, 0.2) !important;
  border-radius: 12px !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0 !important;
  box-shadow: none !important;
}

.cart-icon-btn:hover {
  background: rgba(40, 167, 128, 0.25) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(40, 167, 128, 0.2) !important;
}

.cart-icon-btn i {
  font-size: 16px !important;
}

/* Professional card styles */
.card,
.product-card {
  background: linear-gradient(145deg, rgba(28, 35, 51, 0.9) 0%, rgba(15, 18, 24, 0.95) 100%) !important;
  border-radius: 20px !important;
  padding: 16px !important;
  text-align: center !important;
  position: relative !important;
  min-height: 310px !important;
  /* Reduced height to prevent jump */
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  margin: 0 auto 20px !important;
  box-sizing: border-box !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  border: 1px solid rgba(40, 167, 128, 0.3) !important;
  backdrop-filter: blur(12px) !important;
  overflow: hidden !important;
  color: #e6e9f0 !important;
  height: 100%;
  /* Fill grid cell */
}

/* Reserve space for images */
.product-image,
.sticker-img {
  aspect-ratio: 1/1;
  width: 100%;
  max-width: 140px;
  margin: 0 auto 15px;
  display: block;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  border-radius: 12px;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
  pointer-events: none !important;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%) !important;
  pointer-events: none !important;
}

.card:hover {
  transform: none !important;
  background: linear-gradient(160deg, #1c2438 0%, #0f1525 100%) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  /* subtle gold */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.1) !important;
}

.card-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  margin-bottom: 15px !important;
}

.name {
  font-weight: bold !important;
  font-size: 20px !important;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  flex-grow: 1 !important;
  text-align: left !important;
  padding-right: 10px !important;
  min-height: 54px;
  /* Fix layout shift */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  display: flex;
  /* Fallback/Alignment */
  align-items: center;
}

.quantity {
  font-size: 20px !important;
  color: #fdd835 !important;
  margin-bottom: 20px !important;
  font-weight: bold !important;
}

.sticker-img {
  width: 100px !important;
  height: 100px !important;
  margin: 15px auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.5)) !important;
  transition: transform 0.4s ease !important;
  /* removed rotate on hover for stability */
}

.sticker-img:hover {
  transform: none !important;
}

.info-icon {
  position: static !important;
  background: linear-gradient(135deg, #007aff, #0a5fff) !important;
  color: white !important;
  border-radius: 50% !important;
  width: 24px !important;
  height: 24px !important;
  font-size: 14px !important;
  line-height: 24px !important;
  cursor: pointer !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0 !important;
  margin-left: 10px !important;
}

.info-icon:hover {
  transform: rotate(30deg) scale(1.2) !important;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4) !important;
}

/* Section headers */
/* Section headers - Redefined for perfect alignment */
.section-header {
  text-align: left !important;
  color: #ffffff !important;
  font-size: 28px !important;
  margin: 20px 20px 10px 150px !important;
  /* Reduced from 40px */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  position: relative !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.section-header::after {
  content: '' !important;
  display: block !important;
  width: 60px !important;
  height: 4px !important;
  background: linear-gradient(90deg, #28a780, #1f8566) !important;
  margin: 8px 0 !important;
  /* Always left aligned relative to content */
  border-radius: 2px !important;
}

/* Mobile Header Left Align Fix */
@media (max-width: 768px) {
  .section-header {
    margin: 15px 20px 10px 20px !important;
    /* Reduced from 30px */
    text-align: left !important;
    font-size: 26px !important;
    /* Slightly larger for mobile */
  }

  .section-header::after {
    margin: 8px 0 !important;
    margin-left: 0 !important;
  }
}

/* Breadcrumb link style */
.breadcrumb {
  padding: 15px 20px 0px;
}

.breadcrumb-link {
  color: #1877f2;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Title and Subtitle Styles */
.title-section {
  padding: 0px 20px 5px;
  text-align: center;
}

.main-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #ccc;
  font-size: 14px;
}

.check-icon {
  color: #4caf50;
}

/* Beautiful Toast Notification - Robust Version */
.toast-container {
  position: fixed;
  top: 30px;
  right: 20px;
  z-index: 20000 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(28, 35, 51, 0.98);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(40, 167, 128, 0.5);
  color: white;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 240px;
  transform: translateX(120%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
}

/* Mobile specific - Position perfectly flush to the right */
@media (max-width: 500px) {
  .toast-container {
    top: 20px;
    right: -15px !important;
    /* Aggressively pushed past the edge */
    left: auto;
    align-items: flex-end;
    padding-right: 0 !important;
  }

  .toast {
    width: 210px;
    /* Adjusted width */
    margin-right: -5px !important;
    /* Double force to ensure no gap */
    transform: translateX(100%);
    /* Start from outside the screen */
    opacity: 0;
    border-right: none !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.4);
    /* Shadow only on left/bottom */
  }

  .toast.show {
    transform: translateX(0);
    /* Slide into view, touching the edge */
    opacity: 1;
  }
}

.toast-icon {
  background: #28a780;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(40, 167, 128, 0.5);
  color: white;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
  color: #28a780;
}

.toast-msg {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #28a780;
  width: 100%;
  border-radius: 0 0 12px 12px;
  transform-origin: left;
}

@keyframes toastProgress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}



.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  position: relative;
  background: #0f172a;
  /* Dark Premium Blue */
  color: #fff;
  width: min(1000px, 95vw);
  /* Wider width */
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content .close {
  position: absolute;
  right: 14px;
  top: 10px;
  cursor: pointer;
  font-size: 20px;
  opacity: 0.85;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Two equal columns */
  gap: 40px;
  padding: 40px;
  align-items: center;
}

.modal-image {
  width: 100%;
  height: 400px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin: 0;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Sticker mode: show full sticker and animate subtle movement */
.modal-image.sticker-mode {
  height: 350px;
  background-size: 80%;
  /* Smaller sticker to fit nicely */
  background-repeat: no-repeat;
  background-color: transparent;
  animation: float 6s ease-in-out infinite;
  border: none;
  box-shadow: none;
}

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

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

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

@keyframes stickerPan {
  0% {
    background-position: center top;
  }

  25% {
    background-position: right center;
  }

  50% {
    background-position: center bottom;
  }

  75% {
    background-position: left center;
  }

  100% {
    background-position: center top;
  }
}

.modal-info {
  text-align: left;
  /* Left align for premium feel */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-info h3 {
  margin: 0 0 15px 0;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(90deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.qv-rating {
  opacity: 0.9;
  margin-bottom: 8px;
}

.qv-price {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 10px 0 16px 0;
}

.qv-original {
  text-decoration: line-through;
  color: #aaa;
}

.qv-discount {
  color: #4ade80;
  font-weight: 700;
  font-size: 20px;
}

.qv-actions button {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

.qv-actions button:hover {
  transform: translateY(-1px);
}



/* Shimmer only on the animated span */
.tagline-anim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.25) 20%, rgba(255, 255, 255, 0.6) 35%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translate3d(-140%, 0, 0);
  pointer-events: none;
  border-radius: 999px;
  mix-blend-mode: screen;
  animation: shimmerSweep 4s linear infinite;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

@keyframes pulseGlow {

  0%,
  100% {
    text-shadow: 0 0 0 rgba(96, 165, 250, 0);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.12), inset 0 0 0 1px rgba(59, 130, 246, 0.18);
    transform: translateY(0);
  }

  50% {
    text-shadow: 0 0 14px rgba(96, 165, 250, 0.55), 0 0 28px rgba(34, 197, 94, 0.35);
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.2), inset 0 0 0 1px rgba(34, 197, 94, 0.35);
    transform: translateY(-1px);
  }
}

@keyframes shimmerSweep {
  0% {
    transform: translateX(-140%);
    opacity: .0;
  }

  8% {
    opacity: .85;
  }

  20% {
    transform: translateX(140%);
    opacity: 0;
  }

  100% {
    transform: translateX(140%);
    opacity: 0;
  }
}



/* Complete Mobile Responsive Design - Header to Footer */
@media (max-width: 768px) {
  .featured-section h2 {
    text-align: left !important;
    padding-left: 20px;
  }

  .featured-section h2::after {
    margin: 8px 0 0 0;
    left: 20px;
    transform: none;
  }

  /* Generic Section Header Alignment for Mobile - Removed to use global style */
  #stickers,
  #pucks,
  #gems {
    text-align: left !important;
    padding-left: 20px !important;
  }

  #stickers::after,
  #pucks::after,
  #coins::after,
  #gems::after {
    margin: 10px 0 !important;
    left: 20px !important;
    transform: none !important;
  }





  /* Reduce sticker image size on mobile */
  .modal-image.sticker-mode {
    height: 150px !important;
  }

  /* Add spacing between sticker image and buttons on mobile */
  .modal-info {
    margin-top: 10px;
  }

  .qv-actions {
    margin-top: 15px;
  }

  /* Reduce Add to Cart button size on mobile for stickers section */
  .buy-button {
    padding: 10px 16px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }

  @media (max-width: 768px) {
    .modal-content {
      width: 95vw;
    }

    .modal-body {
      grid-template-columns: 1fr;
      /* Stack on mobile */
      gap: 20px;
      padding: 20px;
      text-align: center;
    }

    .modal-image {
      height: 250px;
      width: 100%;
    }

    .modal-info {
      text-align: center;
      align-items: center;
    }

    .modal-info h3 {
      font-size: 24px;
    }

    .qv-price {
      justify-content: center;
    }


    /* Maximize container width on mobile */
    .products-container {
      padding: 10px 4px !important;
      gap: 12px !important;
      display: block !important;
      /* Often grid behaves weirdly with 1 col on some mobiles, block ensures full width */
    }

    /* Ensure cards take full width in the new block display or improved grid */
    .card,
    .product-card {
      width: 100% !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      box-sizing: border-box !important;
    }

    .modal-image.sticker-mode {
      height: 120px;
    }

    #stickersContainer .product-card,
    #pucksContainer .product-card,
    #gemsContainer .product-card,
    #cosmeticsContainer .product-card,
    #coinsContainer .product-card {
      background: linear-gradient(145deg, rgba(28, 35, 51, 0.9) 0%, rgba(15, 18, 24, 0.95) 100%) !important;
      border: 1px solid rgba(40, 167, 128, 0.3) !important;
      border-radius: 12px !important;
      padding: 6px 8px !important;
      /* Reduced padding to give more space to content */
      margin-bottom: 10px !important;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
      backdrop-filter: blur(12px) !important;
      position: relative !important;
      overflow: hidden !important;
      color: #e6e9f0 !important;
      cursor: pointer !important;
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      gap: 10px !important;
      /* Reduced gap */
      min-height: auto !important;
    }

    #stickersContainer .product-card:hover,
    #pucksContainer .product-card:hover,
    #gemsContainer .product-card:hover,
    #cosmeticsContainer .product-card:hover,
    #coinsContainer .product-card:hover {
      transform: translateY(-3px) !important;
      background: linear-gradient(145deg, rgba(28, 35, 51, 0.95) 0%, rgba(15, 18, 24, 0.98) 100%) !important;
      border-color: #28a780 !important;
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(245, 158, 11, 0.1) !important;
    }

    /* Fix image size in sticker cards - Adjusted for Row Layout */
    #stickersContainer .product-image,
    #pucksContainer .product-image,
    #gemsContainer .product-image,
    #cosmeticsContainer .product-image,
    #coinsContainer .product-image {
      flex: 0 0 auto !important;
      width: 110px !important;
      flex: 0 0 auto !important;
      width: 90px !important;
      /* Reduced image width */
      height: 110px !important;
      /* Reduced image height to match */
      justify-content: center !important;
      align-items: center !important;
      background: linear-gradient(135deg, #1e293b, #0f172a) !important;
      border-radius: 12px !important;
      border: 1px solid rgba(255, 255, 255, 0.15) !important;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5) !important;
    }

    #stickersContainer .product-image img,
    #pucksContainer .product-image img,
    #gemsContainer .product-image img,
    #cosmeticsContainer .product-image img,
    #coinsContainer .product-image img {
      width: 100% !important;
      height: 100% !important;
      object-fit: contain !important;
      /* Keep contain for stamps/pucks */
      margin: 0 !important;
      display: block !important;
      padding: 8px !important;
      /* Add padding so stickers don't touch edges */
    }

    /* Fix details alignment - LEFT aligned as requested */
    #stickersContainer .product-details,
    #pucksContainer .product-details,
    #gemsContainer .product-details,
    #cosmeticsContainer .product-details,
    #coinsContainer .product-details {
      text-align: left !important;
      padding-left: 10px;
    }

    #stickersContainer .product-name,
    #pucksContainer .product-name,
    #gemsContainer .product-name,
    #cosmeticsContainer .product-name,
    #coinsContainer .product-name {
      text-align: left !important;
      text-align: left !important;
      padding-left: 0 !important;
    }

    /* Allow details to take up space but not push button out */
    #stickersContainer .product-details,
    #pucksContainer .product-details,
    #gemsContainer .product-details,
    #cosmeticsContainer .product-details,
    #coinsContainer .product-details {
      flex: 1 !important;
      min-width: 0 !important;
      padding-right: 5px !important;
    }

    /* Fix footer alignment */
    #stickersContainer .product-footer,
    #pucksContainer .product-footer,
    #gemsContainer .product-footer,
    #cosmeticsContainer .product-footer,
    #coinsContainer .product-footer {
      justify-content: space-between !important;
      padding-left: 0 !important;
      padding-right: 15px !important;
      /* Force padding on the right to pull button in */
      gap: 5px !important;
      align-items: center !important;
      flex-wrap: nowrap !important;
      width: 100% !important;
      /* Ensure footer takes full width */
      box-sizing: border-box !important;
    }

    /* Further reduce Add to Cart button size on small mobile screens */
    .buy-button {
      padding: 6px 12px !important;
      font-size: 12px !important;
      border-radius: 8px !important;
      width: auto !important;
      min-width: 60px !important;
      height: 32px !important;
      margin-right: 2px !important;
      /* Ensure it's not touching the edge */
      transform: none !important;
      max-width: none !important;
      /* Allow it to fit text naturally */
      flex-shrink: 0 !important;
      /* Don't squash the button */
      line-height: normal !important;
      white-space: nowrap !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }

    .cart-icon-btn {
      width: 32px !important;
      height: 32px !important;
      border-radius: 8px !important;
    }

    .cart-icon-btn i {
      font-size: 12px !important;
    }
  }

  /* Navbar - Header Section */
  .navbar {
    padding: 8px 12px;
    gap: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1100;
    background: black;
  }

  .navbar .left-side {
    display: flex;
    align-items: center;
    gap: 8px;
    order: 1;
  }

  .navbar .title {
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
  }

  .navbar .logo {
    width: 32px;
    height: 32px;
  }

  .tagline {
    order: 3;
    padding: 6px 12px;
    font-size: 11px;
    white-space: nowrap;
    max-width: 95vw;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 5px 0;
    color: #93c5fd;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    position: relative;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(34, 197, 94, 0.15));
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15), inset 0 0 0 1px rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.25);
  }

  .tagline:hover {
    color: #ffffff;
    transform: translateY(-1px);
    text-shadow: 0 2px 8px rgba(96, 165, 250, 0.4);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25), inset 0 0 0 1px rgba(34, 197, 94, 0.35);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(34, 197, 94, 0.25));
  }

  .about-btn {
    order: 2;
    padding: 6px 12px;
    font-size: 12px;
    margin: 5px 0;
    background: linear-gradient(135deg, #00c853, #0099ff);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
    position: relative;
  }

  .about-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.4);
  }

  .notification-badge {
    background: #ff4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    vertical-align: top;
    margin-left: 4px;
    animation: blink 1s infinite;
  }

  @keyframes blink {
    0% {
      opacity: 1;
    }

    50% {
      opacity: 0.5;
    }

    100% {
      opacity: 1;
    }
  }

  .menu-icon {
    font-size: 1.8em;
    margin-right: 6px;
    text-decoration: none;
  }

  /* Tab Bar */
  .top-tab-bar {
    position: sticky;
    top: 0;
    z-index: 500;
    overflow-x: auto;
    white-space: nowrap;
    gap: 4px;
    padding: 6px 8px;
    background: #23232b;
  }

  .top-tab-bar .tab {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
  }

  /* Featured Section - 2 products per row with 50%-50% width */
  .featured-section {
    padding: 0 0 15px 0;
    background: transparent !important;
  }

  .featured-section h2 {
    font-size: 24px;
    margin: 0 0 20px 0;
    text-align: center;
    padding: 0 8px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
  }

  .featured-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #28a780, #1f8566);
    margin: 10px auto 0;
    border-radius: 2px;
  }

  .modern-cards-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2px;
    padding: 0;
    margin: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
  }

  .modern-card {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(40, 167, 128, 0.3) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    overflow: hidden !important;
  }

  .modern-card:hover {
    transform: translateY(-5px) scale(1.02) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
      0 0 20px rgba(25, 212, 202, 0.2) !important;
  }

  .modern-card .card-image-container {
    height: 140px;
  }

  .modern-card .action-buttons {
    top: 6px;
    right: 6px;
    gap: 3px;
  }

  .modern-card .action-btn {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .modern-card .card-content {
    padding: 8px;
  }

  .modern-card .card-title {
    font-size: 11px;
    line-height: 1.2;
    margin-bottom: 4px;
  }

  .modern-card .rating-container {
    margin-bottom: 4px;
  }

  .modern-card .stars {
    font-size: 10px;
  }

  .modern-card .rating-text {
    font-size: 9px;
  }

  .modern-card .price-container {
    gap: 4px;
  }

  .modern-card .original-price {
    font-size: 10px;
  }

  .modern-card .discounted-price {
    font-size: 13px;
  }

  .discount-badge,
  .hot-badge {
    font-size: 8px;
    padding: 2px 4px;
  }

  .featured-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 10px !important;
  }

  .featured-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(40, 167, 128, 0.3) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: transform 0.2s !important;
  }

  .featured-card:active {
    transform: scale(0.98) !important;
  }

  .featured-card .product-image {
    height: 120px !important;
    position: relative !important;
  }

  .featured-card .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: transparent !important;
  }

  .featured-card .discount-badge {
    top: auto !important;
    bottom: 5px !important;
    left: auto !important;
    right: 5px !important;
    font-size: 7px !important;
    padding: 2px 5px !important;
    border-radius: 4px !important;
    background: rgba(239, 10, 10, 0.85) !important;
    /* Slightly more transparent and smaller */
    font-weight: 800 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
  }

  /* .container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 2px;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
      } */

  .card {
    width: 100%;
    padding: 10px;
    min-height: 200px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    /* Lightened background */
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    box-sizing: border-box;
  }

  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 255, 100, 0.25);
  }

  .card .emoji-display img,
  .card img:not(.sticker-img) {
    width: 65px;
    height: 65px;
    margin-bottom: 6px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  /* Specific styling for sticker images to maintain their size */
  .card img.sticker-img {
    margin-bottom: 6px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .card-name,
  .name {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 4px;
    line-height: 1.1;
  }

  .quantity {
    font-size: 12px;
    margin-bottom: 6px;
    color: #fdd835;
  }

  .price-btn {
    background: transparent !important;
    border: 2px solid #28a780 !important;
    color: #28a780 !important;
    padding: 8px 16px !important;
    font-size: 16px !important;
    width: 80% !important;
    margin-bottom: 12px !important;
    border-radius: 20px !important;
    font-weight: normal !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.3px !important;
  }

  .price-btn:hover {
    background: #28a780 !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .info-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #007aff;
    color: white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    font-size: 9px;
    line-height: 12px;
  }

  /* Cleaned up duplicate section header rule */

  /* Modals */
  #proofsModal .modal-content,
  #quickViewModal .modal-content,
  #masterChestModal .modal-content,
  #eightBallModal .modal-content {
    width: 95vw;
    max-height: 90vh;
  }

  #proofsModal .modal-body,
  #quickViewModal .modal-body,
  #masterChestModal .modal-body {
    padding: 12px;
  }



  #quickViewModal .modal-body {
    flex-direction: column;
  }

  #qvImage {
    width: 100%;
    height: 200px;
  }

  .qv-actions button {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }



  /* Footer */
  .footer {
    padding: 40px 0 20px 0;
    margin-top: 30px;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
    padding: 0 15px;
  }

  .footer-social {
    justify-content: center;
    gap: 15px;
    font-size: 18px;
  }

  .footer-apps {
    justify-content: center;
    gap: 10px;
  }

  .footer-apps img {
    height: 38px !important;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin: 20px 0;
  }

  .footer-links a {
    font-size: 16px;
    padding: 8px;
  }

  .footer-copyright {
    font-size: 14px;
    text-align: center;
    padding: 0 15px;
  }

  .footer-bottom {
    padding: 0 15px;
  }
}

/* Small Mobile Devices (400px and below) */
@media (max-width: 400px) {



  /* Even smaller Add to Cart buttons for tiny screens */
  .add-to-cart-btn {
    padding: 6px 10px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
  }



  /* Navbar Optimization */
  .navbar {
    padding: 6px 8px;
  }

  .navbar .title {
    font-size: 12px;
  }

  .navbar .logo {
    width: 28px;
    height: 28px;
  }

  .tagline {
    font-size: 10px;
    padding: 4px 8px;
    max-width: 98vw;
    color: #93c5fd;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    position: relative;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(34, 197, 94, 0.15));
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15), inset 0 0 0 1px rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.25);
  }

  .tagline:hover {
    color: #ffffff;
    transform: translateY(-1px);
    text-shadow: 0 2px 8px rgba(96, 165, 250, 0.4);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25), inset 0 0 0 1px rgba(34, 197, 94, 0.35);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(34, 197, 94, 0.25));
  }

  .about-btn {
    padding: 4px 8px;
    font-size: 11px;
    background: linear-gradient(135deg, #00c853, #0099ff);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
    position: relative;
  }

  .menu-icon {
    font-size: 1.6em;
    text-decoration: none;
  }

  /* Tab Bar */
  .top-tab-bar {
    padding: 4px 6px;
  }

  .top-tab-bar .tab {
    padding: 4px 8px;
    font-size: 11px;
  }

  /* Featured Section - Small Mobile - 50%-50% width */
  .featured-section {
    padding: 10px 0;
    background: transparent !important;
  }

  .featured-section h2 {
    font-size: 20px;
    margin-bottom: 12px;
    padding: 0 10px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: left;
  }

  .featured-section h2::after {
    margin: 8px 0 0 0;
    left: 0;
    transform: none;
  }

  .modern-cards-container {
    gap: 1px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
    grid-template-columns: 1fr 1fr !important;
  }

  .modern-card .card-image-container {
    height: 110px;
  }

  .modern-card .action-btn {
    width: 20px;
    height: 20px;
    font-size: 8px;
  }

  .modern-card .card-content {
    padding: 6px;
  }

  .modern-card .card-title {
    font-size: 9px;
    margin-bottom: 3px;
  }

  .modern-card .stars {
    font-size: 8px;
  }

  .modern-card .rating-text {
    font-size: 7px;
  }

  .modern-card .original-price {
    font-size: 8px;
  }

  .modern-card .discounted-price {
    font-size: 11px;
  }

  .discount-badge,
  .hot-badge {
    font-size: 7px;
    padding: 1px 3px;
  }

  /* Removed conflicting legacy mobile styles to preserve premium design */

  /* Modals */
  .modal-content {
    width: 98vw !important;
    max-height: 95vh;
  }

  .modal-body {
    padding: 8px !important;
  }

  #qvImage {
    height: 150px;
  }

  .qv-actions button {
    padding: 10px;
    font-size: 12px;
  }



  /* Footer */
  .footer {
    background: linear-gradient(180deg, rgba(18, 24, 43, 0.95), rgba(12, 16, 30, 0.95));
    color: #94a3b8;
    padding: 50px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
  }

  .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
  }

  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .footer-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
  }

  .footer-column {
    display: flex;
    flex-direction: column;
  }

  .footer-brand {
    margin-bottom: 20px;
  }

  .footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .footer-tagline {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    max-width: 300px;
  }

  .footer-heading {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0 0 20px;
    letter-spacing: 0.5px;
    position: relative;
    text-transform: uppercase;
  }

  .footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, transparent);
    border-radius: 1px;
  }

  .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 4px 0;
  }

  .footer-links a:hover {
    color: #8b5cf6;
    transform: translateX(4px);
  }

  .footer-socials {
    display: flex;
    gap: 16px;
    margin-top: 20px;
  }

  .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
  }

  .social-icon:hover {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    transform: translateY(-3px);
  }

  .payment-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
  }

  .payment-icon {
    font-size: 24px;
    color: #94a3b8;
    transition: all 0.3s ease;
  }

  .payment-icon:hover {
    color: #8b5cf6;
    transform: scale(1.1);
  }

  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
  }

  .footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-copyright {
    font-size: 13px;
    color: #64748b;
  }

  .footer-copyright strong {
    color: #8b5cf6;
  }
}





@media (max-width: 480px) {

  /* .container {
        gap: 2px;
        padding: 0;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        grid-template-columns: 1fr 1fr !important;
      } */

  .card {
    padding: 12px !important;
    min-height: 220px !important;
    border-radius: 8px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
  }

  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 255, 100, 0.25);
  }

  .card .emoji-display img,
  .card img:not(.sticker-img) {
    width: 70px !important;
    height: 70px !important;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  /* Specific styling for sticker images to maintain their size even on 480px screens */
  .card img.sticker-img {
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .card-name,
  .name {
    font-size: 11px;
    margin-bottom: 5px;
    font-weight: bold;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .quantity {
    font-size: 13px;
    margin-bottom: 8px;
    color: #fdd835;
  }

  .price-btn {
    background: transparent !important;
    border: 2px solid #28a780 !important;
    color: #28a780 !important;
    padding: 8px 16px !important;
    font-size: 16px !important;
    width: 80% !important;
    margin-bottom: 12px !important;
    border-radius: 20px !important;
    font-weight: normal !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.3px !important;
    line-height: 1.2;
  }

  .quantity {
    font-size: 13px;
    margin-bottom: 8px;
    color: #fdd835;
  }

  .price-btn:hover {
    background: #28a780 !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .info-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #007aff;
    color: white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 10px;
    line-height: 14px;
  }

  /* Featured Section for 480px - 50%-50% width */
  .modern-cards-container {
    gap: 2px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
    grid-template-columns: 1fr 1fr !important;
  }

  .modern-card .card-image-container {
    height: 130px;
  }

  .modern-card .card-content {
    padding: 8px;
  }

  .modern-card .card-title {
    font-size: 10px;
  }

  .modern-card .action-btn {
    width: 22px;
    height: 22px;
    font-size: 9px;
  }

  /* Section Headers */
  .section-header {
    font-size: 18px;
    margin: 25px 0 15px 0;
    padding: 12px;
  }

  /* Mobile Footer Styles */
  @media (max-width: 768px) {
    .footer-main {
      grid-template-columns: 1fr;
      gap: 25px;
    }

    .footer-bottom-content {
      flex-direction: column;
      text-align: center;
    }

    .footer-socials {
      justify-content: center;
    }

    /* Additional mobile fixes for footer */
    .footer-container {
      padding: 0 15px;
    }

    .footer-main {
      gap: 30px;
    }

    .footer-column {
      align-items: center;
    }

    .footer-links {
      align-items: center;
    }

    .footer-links a {
      text-align: center;
    }

    .payment-icons {
      justify-content: center;
    }

    .footer-socials {
      justify-content: center;
    }
  }

  /* Extra small devices (phones, 480px and down) */
  @media (max-width: 480px) {
    .footer {
      padding: 30px 0 15px 0;
    }

    .footer-main {
      gap: 25px;
    }

    .footer-heading {
      font-size: 18px;
      margin: 0 0 15px;
    }

    .footer-links a {
      font-size: 16px;
      padding: 8px 0;
    }

    .social-icon {
      width: 45px;
      height: 45px;
      font-size: 20px;
    }

    .payment-icon {
      font-size: 28px;
    }

    .footer-copyright {
      font-size: 14px;
      text-align: center;
    }
  }
}



/* Sticker Quick View: border + continuous motion */
#quickViewModal .modal-content {
  position: relative;
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.25), 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Border around product cards on click */
.card.clicked {
  position: relative;
  border: 3px solid #00c853;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 200, 83, 0.5);
}

/* Static border for clicked cards */
.card.clicked::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid #00c853;
  border-radius: 15px;
  z-index: -1;
  pointer-events: none;
}



/* Category Tab Bar Styling */
/* Category Dropdown Styling */



/* Force Digital Prestige Background */
body {
  background:
    radial-gradient(1200px 800px at 10% -10%, #14203e, transparent),
    radial-gradient(900px 600px at 110% 10%, #1a2a5a33, transparent),
    #0b0f19 !important;
  background-attachment: fixed !important;
}

/* Ensure no container blocks it */
.container,
.main-content,
.product-list {
  background: transparent !important;
}






/* Bit Aim Gallery Modal - original style */
#bitAimGalleryModal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  /* Desktop: Center */
}

#bitAimGalleryModal.show {
  display: flex;
}

.gallery-modal {
  background: linear-gradient(145deg, #1c2333 0%, #0f1218 100%);
  border: 1px solid rgba(40, 167, 128, 0.3);
  border-radius: 24px;
  width: 95%;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
}

/* Animation for Gallery */
#bitAimGalleryModal.show .gallery-modal {
  animation: gallerySlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

.gallery-container {
  padding: 30px;
  text-align: center;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

.gallery-title {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  text-align: left;
}

.main-image-container {
  background: #000;
  border-radius: 20px;
  margin: 15px 0;
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

#bitAimMainImage {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.7);
  /* Darker professional background */
  border: 1px solid rgba(40, 167, 128, 0.3);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  z-index: 20;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.nav-btn i {
  font-size: 18px;
}

.nav-btn:hover {
  background: #28a780;
  border-color: #28a780;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(40, 167, 128, 0.4);
}

.prev-btn {
  left: -23px;
}

.next-btn {
  right: -23px;
}

@media (max-width: 900px) {
  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
  }
}

.thumbnail-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  overflow-x: auto;
  padding: 10px 5px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.3s ease;
  object-fit: cover;
  border-radius: 12px;
}

.thumbnail.active {
  opacity: 1;
  border-color: #28a780;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(40, 167, 128, 0.3);
}


.gallery-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 30px;
  padding: 0 10px;
}

.gallery-btn {
  padding: 18px 20px;
  border-radius: 14px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.add-cart-btn {
  background: #141f26 !important;
  color: #28a780 !important;
}

.add-cart-btn:hover {
  background: #1a2832 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.buy-btn {
  background: #28a780 !important;
  color: #fff !important;
}

.buy-btn:hover {
  background: #2fbc91 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 128, 0.4);
}

.image-counter {
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(40, 167, 128, 0.3);
}


.close-gallery-btn {
  color: #94a3b8;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(40, 167, 128, 0.3);
}

.close-gallery-btn:hover {
  color: #fff;
  background: rgba(40, 167, 128, 0.2);
  border-color: rgba(40, 167, 128, 0.4);
  transform: rotate(90deg);
}


/* Adjust Arrows for better fit */
@media (min-width: 901px) {
  .prev-btn {
    left: -60px;
  }

  .next-btn {
    right: -60px;
  }
}

/* Mobile Optimization for Gallery */
@media (max-width: 600px) {
  #bitAimGalleryModal {
    align-items: flex-end;
    /* Mobile: Bottom sheet */
  }

  .gallery-modal {
    width: 100% !important;
    max-width: none !important;
    border-radius: 24px 24px 0 0 !important;
    margin: 0 !important;
    min-height: 60vh;
    max-height: 98vh;
    animation: gallerySlideUpMobile 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  }

  @keyframes gallerySlideUpMobile {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }

  .gallery-container {
    padding: 20px 15px 30px;
  }

  .gallery-title {
    font-size: 16px;
    max-width: 60%;
    line-height: 1.2;
  }

  .main-image-container {
    height: 350px;
    border-radius: 12px;
    margin: 10px 0;
  }

  .nav-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .thumbnail {
    width: 65px;
    height: 65px;
    border-radius: 8px;
  }

  .gallery-buttons {
    gap: 10px;
    margin-top: 20px;
    padding: 0;
  }

  .gallery-btn {
    padding: 14px 10px;
    font-size: 15px;
    border-radius: 10px;
  }

  .close-gallery-btn {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .image-counter {
    font-size: 12px;
    padding: 3px 10px;
  }
}







.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 0 5px !important;
  }

  .related-card {
    flex-direction: column !important;
    text-align: center !important;
    padding: 10px 5px !important;
    gap: 5px !important;
  }

  .related-card img {
    width: 40px !important;
    height: 40px !important;
    margin: 0 auto !important;
  }

  .related-card .related-title {
    font-size: 0.7rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
  }

  .related-card .related-desc {
    display: none !important;
  }

  .section-header {
    font-size: 0.9rem !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
  }
}



/* New Product Card Design (copied from FREEFIRE.html) */
.product-list {
  padding: 0 40px 30px;
  /* Increased side padding for gap */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  /* Limit max width */
  margin: 0 auto;
  /* Center the container */
}

/* Desktop View: 4 Columns */
@media (min-width: 1200px) {
  .product-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet/Mobile */
@media (max-width: 1024px) {
  .product-list {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 20px 30px;
    /* Smaller gap on mobile but still there */
  }
}

@media (max-width: 768px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-list {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background-color: rgba(255, 255, 255, 0.05);
  /* Lightened background */
  color: #e6e9f0;
  border: 1px solid rgba(40, 167, 128, 0.3);
  /* Added border for definition */
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  /* Darker shadow */
  display: flex;
  flex-direction: column;
  /* Default column for better control */
  gap: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Desktop Specific Layout Fixes */
@media (min-width: 1024px) {
  .product-card {
    text-align: center;
    /* Center align texts generally */
    justify-content: space-between;
    /* Distribute vertical space */
    height: 100%;
    /* Uniform height */
  }

  .product-details {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
  }

  .product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Price Left, Button Right */
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Separator */
  }

  .price {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
  }

  .buy-button {
    width: auto !important;
    /* Prevent full width on desktop */
    padding: 8px 20px !important;
  }

  .stock-status {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 5px;
  }
}

/* Mobile stays as is (Flex Row/Col layout defined in earlier blocks) */
/* Mobile: Keep Horizontal (Row) - No Change */
@media (min-width: 1200px) {
  .product-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 300px;
    /* Reduced height for compact look */
    padding: 12px;
    /* Tighter padding */
    gap: 10px;
    justify-content: space-between;
  }

  .product-card .product-image {
    width: 100% !important;
    height: 140px !important;
    /* Reduced image size */
    margin-bottom: 8px;
  }

  .product-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .product-footer {
    width: 100%;
    justify-content: space-between;
    /* Spread price and button */
    padding-top: 5px;
  }
}

.product-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.product-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Changed from cover to contain for stickers */
}

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

.product-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #a0aec0;
}

.coins {
  display: inline-block;
  background-color: #fff9c4;
  color: #333;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  margin-top: 3px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 15px;
}

.add-to-cart-hint {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 5px;
  text-align: center;
}

.price {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  /* Prevent wrapping */
}

.buy-button {
  background-color: #1877f2;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.stock-status {
  color: #4ade80;
  /* Green text */
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Featured Section Design - Professional & Clean */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Default to 2 columns for mobile */
  gap: 15px;
  padding: 0 15px 30px;
}

/* Desktop View: 4 Columns & Taller Cards */
@media (min-width: 992px) {
  .featured-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .featured-card {
    min-height: 320px;
    /* Only tall on desktop */
  }
}

.featured-card {
  background: rgba(255, 255, 255, 0.05);
  /* Teal Border */
  border: 1px solid rgba(40, 167, 128, 0.3);
  border-radius: 16px;
  padding: 15px;
  min-height: auto;
  /* Let mobile height be natural */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  /* Softer, standard shadow */
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Subtle top highlight instead of messy gradient overlay */
.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0.6;
}

/* Mobile Styles for Featured Card (Premium Look) */
@media (max-width: 480px) {
  .featured-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(40, 167, 128, 0.25);
    border-radius: 12px;
    padding: 12px;
    min-height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
  }

  .featured-card .product-image {
    width: 100%;
    height: 150px;
    /* Reduced from 200px for better fit */
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: none;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }

  .featured-card .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    /* Prevent cropping of gems/icons */
    background: transparent !important;
    display: block;
  }

  .featured-card .product-name {
    font-size: 15px;
    /* Larger */
    font-weight: 800;
    /* Extra Bold */
    color: #ffffff;
    margin: 10px 0 15px;
    line-height: 1.3;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Pop effect */
    letter-spacing: 0.5px;
  }

  .featured-card .card-action {
    font-size: 13px;
    padding: 8px 12px;
    background: rgba(40, 167, 128, 0.15);
    border: 1px solid rgba(40, 167, 128, 0.4);
    border-radius: 8px;
    color: #4ade80;
    width: 100%;
    justify-content: center;
  }

  .featured-card:active {
    transform: scale(0.98);
    border-color: #28a780;
  }
}

/* Desktop hover state remains same */
.featured-card:hover {
  border-color: #28a780;
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.featured-card .product-image {

  width: 100%;
  height: 130px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.3);
  /* Darker inner bg */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
  overflow: hidden;
}

.featured-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.featured-card:hover .product-image img {
  transform: scale(1.05);
}

.featured-card .discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ef4444;
  /* Standard Tailwind Red */
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.featured-card .product-name {
  font-size: 13px;
  font-weight: 500;
  /* Lighter weight */
  color: #f1f5f9;
  /* Softer white */
  margin-bottom: 4px;
  line-height: 1.4;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.featured-card .price {
  font-size: 15px;
  font-weight: 700;
  color: #fbbf24;
  /* Solid Gold - easier on eyes */
  margin-bottom: 10px;
}

/* Refined Card Action */
.card-action {
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  margin-top: auto;
}

.featured-card:hover .card-action {
  background: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
  color: #3b82f6;
}

/* Mobile Grid Adjustment */
@media (max-width: 480px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 12px 25px;
  }

  .featured-card .product-image {
    height: 100px;
    /* Proper mobile size */
  }

  .featured-card .product-name {
    font-size: 12px;
    height: 34px;
  }

  .card-action {
    padding: 6px;
  }

  .card-action {
    padding: 6px;
  }
}

/* Premium Compact Product Timer - Non Obstructive */
.product-timer-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: 1px solid rgba(255, 77, 77, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.4s ease-out;
  min-width: 80px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.timer-status-bar {
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  color: #ff9f43;
  margin-bottom: 1px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.product-timer-badge .countdown-text {
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  font-family: 'Courier New', Courier, monospace;
  text-shadow: 0 0 5px rgba(255, 77, 77, 0.8);
}

.fire-flicker {
  animation: flicker 0.8s infinite alternate;
  color: #ff3e3e;
  font-size: 8px;
}

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

  100% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@media (max-width: 480px) {
  .product-timer-badge {
    padding: 4px 8px;
    min-width: 70px;
    top: 6px;
    right: 6px;
  }

  .product-timer-badge .countdown-text {
    font-size: 10px;
  }
}



/* Final Enforcement for Mobile Header Alignment */
@media (max-width: 768px) {

  #cosmetics,
  .section-header {
    text-align: left !important;
    margin-left: 20px !important;
    padding-left: 0 !important;
  }

  #cosmetics::after,
  .section-header::after {
    margin: 8px 0 !important;
    margin-left: 0 !important;
    left: 0 !important;
  }
}



/* Custom Purchase Modal Design */
/* Custom Purchase Modal Design */
.custom-modal {
  display: none;
  position: fixed;
  z-index: 10002;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 0;
}

.custom-modal.show {
  display: flex !important;
}

/* Auto Play Refined Styles */
.autoplay-header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(40, 167, 128, 0.3);
}

.autoplay-logo {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  margin-bottom: 12px;
}

.autoplay-title-section h3 {
  margin: 0 0 5px 0;
  font-size: 24px;
  color: white;
}

.autoplay-title-section p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
}

.autoplay-keys-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.key-card-full {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(40, 167, 128, 0.3);
  border-radius: 16px;
  padding: 16px;
  transition: all 0.2s ease;
}

.key-card-full:hover {
  border-color: #28a780;
  background: rgba(15, 23, 42, 0.8);
}

.key-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.key-name {
  font-size: 18px;
  font-weight: bold;
  color: white;
}

.key-stock {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
}

.key-stock.available {
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.key-stock.low {
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.2);
}

.key-price-large {
  font-size: 24px;
  font-weight: 800;
  color: #22c55e;
  margin-bottom: 15px;
}

.key-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-action-buy {
  background: linear-gradient(135deg, #28a780 0%, #1f8566 100%);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(40, 167, 128, 0.2);
}

.btn-action-buy:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 6px 15px rgba(40, 167, 128, 0.3);
}

.btn-action-cart {
  background: rgba(40, 167, 128, 0.15);
  color: #28a780;
  border: 1px solid #28a780;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-cart:hover {
  background: rgba(40, 167, 128, 0.25);
  color: #fff;
  border-color: #28a780;
  transform: translateY(-2px);
}

.modal-content {
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  border-radius: 20px;
  width: 100%;
  max-width: 650px;
  padding: 24px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(40, 167, 128, 0.3);
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.modal-handle {
  display: none;
  width: 40px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin: 10px auto 0;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Opening Animation for Modal */
.custom-modal.show .modal-content {
  animation: modalSlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0.5;
  }

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

/* Desktop Zoom-in effect */
@media (min-width: 769px) {
  .custom-modal.show .modal-content {
    animation: modalZoomIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  }

  @keyframes modalZoomIn {
    from {
      transform: scale(0.9);
      opacity: 0;
    }

    to {
      transform: scale(1);
      opacity: 1;
    }
  }
}

/* Keyframes removed */

/* Desktop center alignment */
@media (min-width: 768px) {
  .custom-modal {
    align-items: center;
  }

  .modal-content {
    border-radius: 20px;
    /* animation: zoomIn 0.3s ease; Removed */
  }

  /* Keyframes removed */
}

/* How to Use Button */
.btn-how-to-use {
  margin-top: 8px;
  background: transparent;
  border: 1px solid #4ade80;
  color: #4ade80;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.btn-how-to-use:hover {
  background: #4ade80;
  color: black;
}



/* How to Use Guide Styles */
.guide-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(40, 167, 128, 0.3);
  transition: all 0.2s;
}

.guide-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.guide-content-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 5px;
}

.guide-content-panel.open {
  margin-top: 10px;
  max-height: 500px;
  /* Approximate max height */
}

.guide-step-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.guide-step-card:last-child {
  border-bottom: none;
}

.step-number {
  background: #28a780;
  color: black;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-desc h4 {
  margin: 0 0 4px 0;
  color: white;
  font-size: 15px;
}

.step-desc p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.4;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
  .modal-content {
    border-radius: 24px 24px 0 0;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    min-height: 60vh;
    max-height: 95vh;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border: 1px solid rgba(40, 167, 128, 0.3);
    border-bottom: none;
    padding: 30px 18px 20px;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.7);
  }

  .modal-handle {
    display: block;
  }

  .modal-header-image {
    height: 180px !important;
    margin-bottom: 20px !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .modal-actions {
    position: sticky;
    bottom: 0;
    background: #0f172a;
    padding-top: 10px;
    z-index: 5;
  }
}

.close-modal {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 10005;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.close-modal:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
  transform: rotate(90deg) scale(1.1);
}

@media (max-width: 480px) {
  .close-modal {
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}

.modal-header-image {
  width: 100%;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.modal-header-image::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* Process Info Section */
.process-info-section {
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.process-header {
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.process-header:hover {
  background: rgba(255, 255, 255, 0.08);
}

.process-header span {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

.process-header i {
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.3s ease;
}

.process-header.active i {
  transform: rotate(180deg);
}

.process-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.process-steps {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.4;
}

.step-icon {
  font-size: 16px;
  line-height: 1;
}

.step strong {
  color: #fff;
  font-weight: 600;
}

.process-note {
  padding: 0 15px 15px;
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  text-align: center;
}


.modal-header-image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  position: relative;
  z-index: 1;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.modal-header-image:hover img {
  transform: scale(1.05);
}

/* Carousel Visuals */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-nav.prev {
  left: 10px;
}

.modal-nav.next {
  right: 10px;
}

.modal-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.modal-dots .dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.modal-dots .dot.active {
  background: #fff;
  width: 18px;
  border-radius: 10px;
}

#modalTitle {
  font-size: 20px;
  margin: 10px 0 20px;
  color: #fff;
  font-weight: 700;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  color: #94a3b8;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
}

/* Custom Dropdown Styling */
.custom-dropdown {
  position: relative;
  width: 100%;
  background-color: #1e293b;
  border: 1px solid rgba(40, 167, 128, 0.3);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.dropdown-selected {
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.selected-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-pill {
  background-color: #334155;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.dropdown-arrow {
  color: #22c55e;
  /* Green arrow as per design */
  transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-options {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #0f172a;
  /* Slightly darker for list */
  border-radius: 0 0 12px 12px;
}

.custom-dropdown.open .dropdown-options {
  max-height: 250px;
  /* Adjust based on content */
  overflow-y: auto;
}

.dropdown-option {
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.dropdown-option:last-child {
  border-bottom: none;
}

.dropdown-option:hover {
  background-color: #1e293b;
  color: white;
}

.dropdown-option .option-price {
  background-color: #334155;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: white;
}

.custom-dropdown.disabled {
  opacity: 0.7;
  pointer-events: none;
  cursor: default;
}


.price-section {
  background: #1e293b;
  padding: 15px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(40, 167, 128, 0.3);
}

.qty-selector {
  display: flex;
  align-items: center;
  background: #0f172a;
  border-radius: 8px;
  padding: 5px;
}

.qty-selector button {
  width: 30px;
  height: 30px;
  background: #334155;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}

.qty-selector span {
  width: 30px;
  text-align: center;
  color: white;
  font-weight: bold;
}

.total-price {
  font-size: 22px;
  font-weight: 700;
  color: #22c55e;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-actions button {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.1s;
}

.modal-actions button:active {
  transform: scale(0.98);
}

.btn-cart {
  background: rgba(40, 167, 128, 0.15);
  border: 1px solid #28a780;
  color: #28a780;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-cart:hover {
  background: rgba(40, 167, 128, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

.btn-buy {
  background: linear-gradient(135deg, #28a780 0%, #1f8566 100%);
  color: white;
  border: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-buy:hover {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 128, 0.3);
}

/* Force Featured Section to be transparent (remove black box) */
.featured-section {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding-top: 20px;
}

/* Mobile Optimization for Gallery Modal */
@media (max-width: 768px) {
  .gallery-modal {
    width: 95% !important;
    margin: 10px auto !important;
    padding: 15px !important;
    max-height: 90vh;
    overflow-y: auto;
  }

  .main-image-container {
    height: 350px !important;
    /* Larger image area for mobile */
    background: transparent !important;
    border: none !important;
  }

  #bitAimMainImage {
    max-height: 100% !important;
    object-fit: contain !important;
  }

  .nav-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px);
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  .nav-btn.prev {
    left: 5px !important;
  }

  .nav-btn.next {
    right: 5px !important;
  }

  #galleryCurrentPrice {
    position: absolute !important;
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: auto !important;
    background: rgba(0, 0, 0, 0.85) !important;
    border: 1px solid #4ade80 !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    white-space: nowrap;
    color: #4ade80 !important;
    z-index: 20;
  }

  .thumbnail-container {
    gap: 8px !important;
    padding: 10px 0 !important;
    overflow-x: auto;
    justify-content: flex-start !important;
    /* Allow scroll */
  }

  .thumbnail {
    width: 50px !important;
    height: 50px !important;
    flex-shrink: 0;
  }

  .gallery-buttons {
    position: sticky;
    bottom: 0;
    background: transparent !important;
    /* Removed black background */
    padding-top: 10px;
    z-index: 10;
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
  }

  .gallery-buttons button {
    flex: 1 !important;
    width: auto !important;
    margin: 0 !important;
  }

  .image-counter {
    top: 10px !important;
    right: 10px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border-radius: 12px !important;
    padding: 4px 10px !important;
  }

  /* Fix for Close Button on Mobile */
  .gallery-header {
    position: relative;
    padding-right: 40px !important;
    /* Make space for close button */
  }

  .gallery-header .close {
    position: absolute !important;
    top: -5px !important;
    right: 0 !important;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: #ef4444 !important;
    /* Red color for visibility */
    z-index: 50;
  }
}

/* Tinder Style Modal & Card Design */
.tinder-modal-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Let clicks pass through wrapper areas */
  justify-content: center;
  /* Default center for desktop */
  transition: all 0.3s ease;
}

/* Mobile: Bottom Align */
@media (max-width: 480px) {
  .tinder-modal-wrapper {
    justify-content: flex-end !important;
    padding-bottom: 0 !important;
  }
}


/* Close button - Floating outside */
.close-gallery-btn-floating {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  cursor: pointer;
  pointer-events: auto;
  z-index: 200;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.close-gallery-btn-floating:hover {
  background: rgba(255, 68, 68, 0.8);
  transform: rotate(90deg);
}

/* The Main Card */
.tinder-card {
  width: 360px;
  max-width: 90vw;
  height: 75vh;
  max-height: 650px;
  background: #1e293b;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  /* Re-enable clicks */
  border: 1px solid rgba(255, 255, 255, 0.1);

  /* Slide Up Animation Logic */
  transform: translateY(100vh) scale(0.9);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
}

.modal-overlay.show .tinder-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@media (max-width: 480px) {
  .tinder-card {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    /* Bottom sheet look */
    height: 85vh;
    /* Taller on mobile */
    margin-bottom: 0;
  }

  .tinder-modal-wrapper {
    padding: 0;
  }
}

/* 1. Image Area (Top 60-65%) */
.tinder-image-area {
  flex: 1;
  /* Takes remaining height */
  position: relative;
  background: #0f172a;
  overflow: hidden;
}

.tinder-image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cover usually looks better for profiles, or contain if full screenshot */
  object-fit: contain;
  /* Using contain to ensure full screenshot is visible */
  background: #000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.tinder-gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, #1e293b 0%, transparent 100%);
  pointer-events: none;
}

/* Badges on Image */
.tinder-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 8px;
}

.badge-verified {
  background: rgba(34, 197, 94, 0.9);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.badge-hot {
  background: rgba(239, 68, 68, 0.9);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Floating Price Tag */
.tinder-price-tag {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #fbbf24;
  color: #000;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
  transform: rotate(-2deg);
  z-index: 10;
}

/* 2. Info Area (Bottom) */
.tinder-info-area {
  background: #1e293b;
  padding: 20px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tinder-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tinder-header-row h3 {
  margin: 0;
  color: white;
  font-size: 22px;
  font-weight: 700;
}

.tinder-rating {
  color: #fbbf24;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

/* Stats Row */
.tinder-stats-row {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 15px;
  border-radius: 12px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-label {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
}

.stat-value {
  font-size: 13px;
  color: white;
  font-weight: 600;
}

/* Actions Row - Big Buttons */
.tinder-actions {
  display: flex;
  gap: 15px;
  margin-top: 5px;
}

.action-btn-cart {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #3b82f6;
  /* Blue border */
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.action-btn-cart:active {
  background: #3b82f6;
  color: white;
  transform: scale(0.95);
}

.action-btn-buy {
  flex: 1;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 25px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  transition: all 0.2s;
}

.action-btn-buy:active {
  transform: scale(0.98);
  box-shadow: 0 2px 5px rgba(16, 185, 129, 0.4);
}

/* Navigation Overlay Buttons (Left/Right edges) */
.tinder-nav-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 18px;
  cursor: pointer;
  z-index: 20;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.tinder-nav-btn:hover {
  background: white;
  color: black;
  transform: translateY(-50%) scale(1.1);
}

.tinder-nav-btn.prev {
  left: 10px;
}

.tinder-nav-btn.next {
  right: 10px;
}

/* Counter below card */
.tinder-counter {
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 12px;
  border-radius: 12px;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .tinder-card {
    width: 92vw;
    height: 70vh;
  }

  .tinder-image-area img {
    object-fit: contain;
  }

  .tinder-info-area {
    padding: 15px;
    gap: 10px;
  }

  .tinder-header-row h3 {
    font-size: 18px;
  }
}