/* Global Reset for Mobile Stability */
html,
body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  position: relative;
  background-color: #1c1b22 !important;
}

.page-content,
.featured-section,
.category-section {
  background-color: #1c1b22 !important;
}

/* Navbar Login Button Hover */
.navbar .login-btn:hover {
  background: #0069d9 !important;
}
.navbar .login-btn:active {
  background: #0062cc !important;
}

/* Logout Button Hover */
.logout-btn:hover {
  background: #0069d9 !important;
}
.logout-btn:active {
  background: #0062cc !important;
}

body.no-scroll, html.no-scroll {
  overflow: hidden !important;
}






/* Fixed Header Styling */
.navbar {
  /* Dark Blue Type: Deep Navy/Slate Blend */
  background: linear-gradient(135deg, #020617 0%, #1e293b 100%) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: fixed !important;
  /* Changed from sticky to fixed */
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
}

/* Offset for fixed navbar */
body {
  padding-top: 160px !important;
}

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

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

.modal-content {
  position: relative;
  background: #111;
  color: #fff;
  width: min(900px, 92vw);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

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

.modal-body {
  display: flex;
  gap: 20px;
  padding: 22px;
  flex-wrap: wrap;
}

.modal-image {
  width: 300px;
  height: 180px;
  max-width: 100%;
  max-height: 200px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  flex: 1 1 300px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  padding: 15px;
}

/* Sticker mode: show full sticker and animate subtle movement */
.modal-image.sticker-mode {
  height: 160px;
  max-height: 180px;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #000;
  animation: stickerPan 6s ease-in-out infinite alternate;
}

@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 {
  flex: 1 1 300px;
}

.modal-info h3 {
  margin: 0 0 8px 0;
  font-size: 22px;
}

.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);
}

/* Add to Cart button specific styles */
.action-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
  transition: all 0.2s ease;
  margin-top: 8px;
}

/* Mobile-specific styles for Add to Cart button */
@media (max-width: 768px) {
  .action-btn {
    padding: 10px 14px;
    font-size: 13px;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .action-btn {
    padding: 12px 16px;
    font-size: 14px;
    margin-top: 12px;
  }
}

/* Tagline styling */
.tagline {
  color: #e2e8f0;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
  padding: 10px 30px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 90%;
  margin: 15px auto;
  width: fit-content;
  display: table;
  letter-spacing: 0.5px;
}

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

@keyframes taglineColorCycle {
  0% {
    color: #93c5fd;
  }

  25% {
    color: #34d399;
  }

  50% {
    color: #f59e0b;
  }

  75% {
    color: #ff6b6b;
  }

  100% {
    color: #93c5fd;
  }
}

.tagline {
  animation: pulseGlow 2s infinite;
}

/* Ensure the tagline container is isolated from the rest of the page */
#proofsTagline {
  isolation: isolate;
}

/* Animate only inner span so container/layout remains stable */
.tagline-anim {
  display: inline-block;
  position: relative;
  animation: taglineColorCycle 6s infinite ease-in-out;
  contain: layout paint style;
  will-change: color;
  transform: none !important;
  font-weight: bold;
}

.tagline::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: translateX(-140%);
  pointer-events: none;
  border-radius: inherit;
  mix-blend-mode: screen;
  animation: none;
}

/* 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;
  }
}

/* Menu Icon Styling */
.menu-icon {
  margin-right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease;
}

/* SEO Content Section Styling */
.seo-content-section {
  max-width: 1200px;
  margin: 60px auto 40px;
  padding: 0 20px;
}

.seo-content-wrapper {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.seo-content-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.3), transparent);
}

.seo-content-wrapper h2 {
  font-size: 26px;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.seo-content-wrapper p {
  color: #94a3b8;
  line-height: 1.8;
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.seo-content-wrapper strong {
  color: #4ade80;
  font-weight: 600;
}




/* Complete Mobile Responsive Design - Header to Footer */
@media (max-width: 768px) {

  /* Proofs Modal - Increased max-height for better mobile viewing */
  #proofsModal .proof-card img {
    max-height: 640px !important;
  }

  /* Master Chest Modal - Ensure images are visible on mobile */
  #masterChestModal .proof-card img {
    max-height: 640px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* SEO Content Responsive */
  .seo-content-section {
    margin: 20px 10px !important;
    padding: 20px !important;
  }

  .seo-content-wrapper {
    padding: 15px !important;
  }

  .seo-content-wrapper h2 {
    font-size: 18px !important;
  }

  .seo-content-wrapper p {
    font-size: 13px !important;
  }

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

  /* Compact centered popup design for mobile */
  .modal-content {
    width: 95vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px 15px 15px 15px;
    margin: 40px auto;
  }

  .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
    width: 100%;
  }

  .modal-image {
    width: 100%;
    max-width: 220px;
    height: 130px;
    margin: 0 auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .modal-info {
    width: 100%;
    text-align: center;
    margin-top: 0;
  }

  .modal-info h3 {
    text-align: center;
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.3;
  }

  .qv-rating {
    margin: 5px 0;
  }

  .qv-price {
    justify-content: center;
    margin: 8px 0;
    gap: 10px;
  }

  .qv-original {
    font-size: 14px;
  }

  .qv-discount {
    font-size: 18px;
  }

  .qv-quantity {
    font-size: 14px;
    margin-left: auto !important;
  }

  .qv-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
  }

  .qv-actions button {
    width: 100%;
    max-width: 250px;
    margin: 4px 0;
    padding: 12px;
    font-size: 14px;
  }

  /* 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: 8px 14px;
    font-size: 13px;
    margin: 5px 0;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .about-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #0da271, #2d6fd9);
  }

  .about-btn:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  }

  .telegram-icon {
    font-size: 15px;
    display: flex;
    align-items: center;
  }

  .live-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 8px;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: bold;
    vertical-align: top;
    margin-left: 6px;
    box-shadow: 0 1px 3px rgba(255, 107, 107, 0.3);
    display: inline-block;
  }

  /* Premium Gaming-Style Telegram Button */
  .enhanced-telegram-btn {
    background: linear-gradient(45deg, #0088cc, #00aaff, #0088cc, #0066cc);
    background-size: 300% 300%;
    animation: gradientShift 2.5s ease infinite, pulseGlow 1.5s ease-in-out infinite alternate, floatEffect 3s ease-in-out infinite;
    color: #ffffff !important;
    border: 2px solid #00aaff;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
      0 0 15px rgba(0, 136, 204, 0.7),
      /* Neon glow */
      0 6px 12px rgba(0, 0, 0, 0.3),
      /* Depth shadow */
      inset 0 2px 4px rgba(255, 255, 255, 0.2);
    /* Glossy effect */
    position: relative;
    overflow: hidden;
    padding: 12px 24px;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(0);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    backdrop-filter: none;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
  }

  .enhanced-telegram-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
      0 0 25px rgba(0, 136, 204, 0.9),
      /* Enhanced neon glow */
      0 8px 16px rgba(0, 0, 0, 0.4),
      /* Increased depth */
      inset 0 2px 6px rgba(255, 255, 255, 0.3);
    /* Enhanced gloss */
    background: linear-gradient(45deg, #0099ee, #00bbff, #0099ee, #0077ee);
    background-size: 300% 300%;
    border-color: #00ccff;
  }

  .enhanced-telegram-btn:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow:
      0 0 10px rgba(0, 136, 204, 0.6),
      0 4px 8px rgba(0, 0, 0, 0.3),
      inset 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .enhanced-telegram-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(25deg);
    transition: all 0.8s;
  }

  .enhanced-telegram-btn:hover::before {
    left: 120%;
  }

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

    50% {
      background-position: 100% 50%;
    }

    100% {
      background-position: 0% 50%;
    }
  }

  @keyframes pulseGlow {
    0% {
      box-shadow:
        0 0 15px rgba(0, 136, 204, 0.7),
        0 6px 12px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }

    100% {
      box-shadow:
        0 0 30px rgba(0, 136, 204, 0.9),
        0 8px 16px rgba(0, 0, 0, 0.4),
        inset 0 2px 6px rgba(255, 255, 255, 0.3);
    }
  }

  @keyframes floatEffect {

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

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


  .menu-icon {
    margin-right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .menu-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease;
  }

  @media (max-width: 768px) {
    .menu-img {
      width: 34px;
      /* Default larger for tablet/mobile */
      height: 34px;
    }
  }

  @media (max-width: 480px) {
    .menu-img {
      width: 38px;
      /* Even larger for small mobile */
      height: 38px;
    }
  }

  /* 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: 36px 0 15px;
  }

  .featured-section h2 {
    font-size: 18px;
    margin: 0 0 22px 0;
    text-align: center;
    padding: 4px 8px;
    line-height: 1.3;
    color: #fff;
  }

  .modern-cards-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .modern-card {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .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;
  }

  /* All Containers - Unified 2-column grid for all products */
  .container,
  #pucksContainer,
  #gemsContainer,
  #coinsContainer,
  #stickersContainer {
    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: 230px !important;
    height: 315px !important;
    border-radius: 2px;
    background-color: #2c2c3e;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    box-sizing: border-box;
  }

  .card .emoji-display img,
  .card img {
    object-fit: contain !important;
    width: 65px;
    height: 65px;
    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-color: #00c853;
    border: none;
    color: white;
    padding: 6px 8px;
    font-size: 11px;
    width: 90%;
    margin-bottom: 6px;
    border-radius: 2px;
    font-weight: bold;
    cursor: pointer;
  }

  .price-btn:hover {
    background-color: #00e676;
  }

  .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;
  }

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

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

  /* Desktop Modal Width Constraint */
  @media (min-width: 768px) {
    #proofsModal .modal-content {
      width: 700px !important;
      /* Fixed width for better aesthetics */
      max-width: 90vw !important;
      margin: auto;
      left: 0;
      right: 0;
    }

    #proofsModal .proof-card {
      max-width: 380px !important;
      /* Limit container width to phone size */
      margin: 0 auto !important;
      /* Center it */
    }
  }

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

  /* Master Chest Images - Medium screens */
  #masterChestModal .proof-card img {
    max-height: 500px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 15px auto !important;
  }

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

  #qvImage {
    width: 100%;
    height: 130px;
    max-height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    padding: 8px;
  }

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

  /* Sidebar */
  .sidebar {
    width: 280px;
    padding: 15px;
  }

  /* Enhanced Sidebar Items */
  .sidebar-item {
    list-style: none;
    margin: 12px 0;
    padding: 0;
  }

  .sidebar-item a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: #e2e8f0;
    text-decoration: none;
    background: rgba(30, 41, 59, 0.4);
    /* Glass styling */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 15px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .sidebar-item a span {
    margin-right: 12px;
    font-size: 1.2em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
  }

  .sidebar-item a:hover {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border-color: var(--accent-green, #22c55e);
    transform: translateX(5px);
    box-shadow: 0 8px 15px rgba(34, 197, 94, 0.15);
    color: #fff;
  }

  .sidebar-item a:hover span {
    transform: scale(1.2) rotate(5deg);
  }

  .sidebar-item.active a {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(6, 182, 212, 0.2));
    border-color: var(--accent-green, #22c55e);
    color: #fff;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
  }

  .sidebar-btn {
    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) {

  /* Proofs Modal */
  #proofsModal .proof-card img {
    max-height: 640px !important;
  }

  /* Master Chest Modal - Small screens */
  #masterChestModal .proof-card img {
    max-height: 640px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* Quick View Modal - Small screens */
  #qvImage {
    height: 120px !important;
    max-height: 140px !important;
    padding: 12px !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: 34px;
    line-height: 34px;
    /* Ensure line-height matches for alignment */
    display: flex;
    /* Help with alignment */
    align-items: center;
  }

  /* 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;
  }

  .featured-section h2 {
    font-size: 16px;
    margin-bottom: 12px;
    padding: 0 6px;
  }

  .modern-cards-container {
    gap: 10px;
    width: 100%;
    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;
  }

  /* All Card Containers - Unified 2-column grid for all products */
  .container,
  #pucksContainer,
  #gemsContainer,
  #coinsContainer,
  #stickersContainer {
    gap: 2px;
    padding: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    grid-template-columns: 1fr 1fr !important;
  }



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

  .card .emoji-display img,
  .card img {
    object-fit: contain !important;
    width: 55px !important;
    height: 55px !important;
    margin-bottom: 4px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

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

  .quantity {
    font-size: 11px;
    margin-bottom: 4px;
    color: #fdd835;
  }

  .price-btn {
    background-color: #00c853;
    border: none;
    color: white;
    padding: 5px 6px;
    font-size: 10px;
    width: 85%;
    margin-bottom: 4px;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
  }

  .price-btn:hover {
    background-color: #00e676;
  }

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

  /* Section Headers */
  .section-header {
    font-size: 16px;
    margin: 20px 0 12px 0;
    padding: 8px;
  }

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

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

  #qvImage {
    height: 120px;
  }

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

  /* Proofs Modal */
  #proofsModal .proof-card img {
    max-height: 640px !important;
  }

  /* Footer */
  .footer {
    padding: 30px 0 15px 0;
  }

  .footer-top {
    gap: 15px;
    padding: 0 10px;
  }

  .footer-social {
    gap: 12px;
    font-size: 16px;
  }

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

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    font-size: 14px;
    padding: 6px;
  }

  .footer-copyright {
    font-size: 12px;
  }
}




/* Mobile styles for Master Chest Sub Gallery modal */
@media (max-width: 768px) {
  #masterChestSubModal .modal-content {
    width: 95vw !important;
    max-width: 95vw !important;
  }

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

  #masterChestSubModal .qv-actions {
    flex-direction: column;
    gap: 8px;
  }

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

@media (max-width: 480px) {

  /* Enhanced mobile styling for 480px devices - Unified 2-column grid */
  .container,
  #pucksContainer,
  #gemsContainer,
  #coinsContainer,
  #stickersContainer {
    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: 230px !important;
    height: auto !important;
    border-radius: 2px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
  }

  .card .emoji-display img,
  .card img {
    object-fit: contain !important;
    width: 55px !important;
    height: 55px !important;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .card-name,
  .name {
    font-size: 12px;
    margin-bottom: 5px;
    font-weight: bold;
    line-height: 1.2;
  }

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

  .price-btn {
    background-color: #00c853;
    border: none;
    color: white;
    padding: 8px 10px;
    font-size: 12px;
    width: 85%;
    margin-bottom: 8px;
    border-radius: 5px;
    font-weight: bold;
    line-height: 1.2;
  }

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

  .price-btn {
    background-color: #00c853;
    border: none;
    color: white;
    padding: 8px 10px;
    font-size: 12px;
    width: 85%;
    margin-bottom: 8px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
  }

  .price-btn:hover {
    background-color: #00e676;
  }

  .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: 10px;
    width: 100%;
    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;
  }

  /* Quick View Modal Mobile */
  #qvImage {
    height: 120px !important;
    max-height: 140px !important;
    padding: 12px !important;
    width: 100% !important;
    max-width: 220px !important;
    margin: 0 auto !important;
  }

  .modal-image {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    max-width: 220px !important;
    margin: 0 auto !important;
  }

  .modal-content {
    width: 98vw !important;
    max-height: 85vh;
    padding: 8px;
  }

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

  .modal-info {
    text-align: center !important;
  }

  .modal-info h3 {
    text-align: center !important;
    font-size: 16px !important;
  }

  .qv-price {
    justify-content: center !important;
    margin: 6px 0 !important;
  }

  .qv-actions {
    gap: 6px !important;
  }

  .qv-actions button {
    width: 100% !important;
    max-width: 220px !important;
    padding: 8px !important;
    margin: 2px 0 !important;
  }
}




/* Redesigned Featured Section & Modern Cards */
.featured-section {
  padding: 36px 20px 40px 20px !important;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-section h2 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 22px;
  padding: 4px 0 4px 10px;
  text-align: left;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.3;
}

:root {
  --primary-bg: #1e293b;
  /* Lighter Slate Blue */
  --secondary-bg: #334155;
  --text-main: #f1f5f9;
  --glass-bg: rgba(30, 41, 59, 0.6);
}

html,
body {
  background-color: var(--primary-bg) !important;
  font-family: Arial, sans-serif;
  color: white;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  background: transparent !important;
  /* Let body color show through */
}

.featured-section {
  padding: 36px 20px 20px 20px;
  background-color: var(--primary-bg) !important;
  /* Lighter background */
  font-family: 'Segoe UI', sans-serif;
  color: white;
}

#featured {
  scroll-margin-top: 90px;
}

/* Force 2 columns globally for Featured section */
.modern-cards-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 15px !important;
  margin-top: 10px;
}

.modern-card {
  background-image: url("https://carrompool.co/assets/carrom/Webshop_BG.png") !important;
  background-size: cover !important;
  background-position: center !important;
  border: none !important;
  border-radius: 4px !important;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 4px 6px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.featured-section .modern-card::before {
  display: none !important;
}

.modern-card:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) !important;
  transform: none !important;
}

.card-image-container {
  height: 140px !important;
  background-size: 100% 100% !important;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
}

.card-image-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* Sale Timer Badge */
.sale-timer-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(220, 38, 38, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 11px;
  backdrop-filter: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 5;
}

/* Discount Badge */
.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #22c55e;
  color: black;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
  z-index: 5;
}

.card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 18px !important;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px 0;
  line-height: 1.4;
  min-height: 50px;
  /* Aligns titles */
}

.rating-container {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
}

.stars {
  color: #fbbf24;
  font-size: 14px;
}

.rating-text {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

.price-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: auto;
  background: transparent;
  padding: 5px 0;
  border: none;
}

/* Clean up featured cards UI */
.modern-card .rating-container,
.modern-card .discount-badge,
.modern-card .action-buttons {
  display: none !important;
}

/* Override featured cards price container to look like green button */
.modern-card .price-container {
  border-radius: 6px !important;
  padding: 6px 16px !important;
  /* Increased width slightly */
  justify-content: center !important;
  margin: 15px auto 0 auto !important;
  width: max-content !important;
  min-width: 90px !important;
  transition: background 0.3s ease !important;
}

.modern-card .price-container:hover,
.featured-price-btn:hover {
  box-shadow: none !important;
  transform: none !important;
}

.featured-section .modern-card:not(.season-pass-banner) .price-container {
  width: 100% !important;
  height: 40px !important;
  padding: 0 !important;
  border-radius: 4px !important;
}

.featured-section .modern-card:not(.season-pass-banner) .price-container>div {
  align-items: center !important;
  height: 100% !important;
}

.featured-section .modern-card:not(.season-pass-banner) .discounted-price {
  line-height: 40px !important;
}

.modern-card .price-container>div {
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
}

.modern-card .original-price {
  display: none !important;
  /* Hide crossed out price */
}

.modern-card .discounted-price {
  color: white !important;
  font-size: 18px !important;
  font-weight: 500 !important;
}

.original-price {
  text-decoration: line-through;
  color: #64748b;
  font-size: 13px !important;
}

.discounted-price {
  color: #22c55e;
  font-weight: 500;
  font-size: 18px !important;
}

/* Add to Cart Button */
.action-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  border: none;
  padding: 8px 16px !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px !important;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(34, 197, 94, 0.3);
}

/* Mobile Responsive Overrides */
@media (max-width: 768px) {
  .featured-section {
    padding: 0px 10px 20px 10px !important;
  }

  .modern-cards-container {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .modern-card {
    border-radius: 6px !important;
  }

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

  .card-content {
    padding: 12px;
  }

  .card-title {
    font-size: 13px !important;
    min-height: 36px;
    margin-bottom: 8px;
  }

  .rating-container {
    margin-bottom: 10px;
  }

  .price-container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
    text-align: center;
  }

  .diff-price-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
  }

  .action-btn {
    width: 100%;
    padding: 8px 0 !important;
    font-size: 12px !important;
  }
}

.section-header,
#coins,
#gems,
#stickers {
  text-align: left !important;
  font-size: 20px !important;
  margin: 0px auto -10px !important;
  max-width: 1200px !important;
  padding-left: 30px !important;
  padding-right: 20px !important;
  background: linear-gradient(90deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Gallery Modal Redesign */
.gallery-modal {
  background: #0f1219 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8) !important;
  border-radius: 12px !important;
  max-width: 450px !important;
  /* Compact like screenshot */
  width: 90% !important;
  margin: auto;
  overflow: hidden;
}

.gallery-header {
  border-bottom: none !important;
  padding: 10px 5px 5px !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  position: relative !important;
}

.gallery-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  padding: 0 !important;
  line-height: 1.4 !important;
  text-align: left !important;
  flex: 1 !important;
  margin: 0 !important;
}

/* Add to Cart Button */
.gallery-btn.buy-btn {
  background: #12b11b !important;
  box-shadow: none !important;
  color: white !important;
  text-transform: uppercase;
  font-weight: 900 !important;
  font-size: 16px !important;
  letter-spacing: 1px;
  border: none !important;
  border-radius: 4px !important;
  padding: 14px !important;
  margin-top: 40px !important;
  margin-bottom: 15px !important;
  transition: background 0.2s ease !important;
}

.gallery-btn.buy-btn:hover,
.gallery-btn.buy-btn:active {
  background: #0f9d17 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Back Button */
.gallery-btn.back-btn {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
  text-transform: uppercase;
  font-weight: 700 !important;
  font-size: 14px !important;
  border-radius: 8px !important;
  padding: 14px !important;
}

/* Dropdown Styling */
.coin-selector-header {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  padding: 12px 15px !important;
  color: #fff !important;
}

.coin-selection-container {
  margin: 15px 0 !important;
}

.gallery-buttons {
  padding: 50px 20px 20px !important;
  gap: 0 !important;
  box-sizing: border-box !important;
}

/* Total Price Display Box */
.total-price-box {
  background: #1a1d2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 10px 0 5px;
}

.total-price-label {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 4px;
  text-align: left;
}

.total-price-value {
  font-size: 22px;
  font-weight: 800;
  color: #22c55e;
  text-align: left;
}

/* Mobile Responsive Gallery Tweaks - Bottom Sheet */
@media (max-width: 768px) {
  .gallery-modal {
    position: absolute !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    margin: auto !important;
    width: 350px !important;
    min-width: 350px !important;
    max-width: 350px !important;
    flex-basis: 350px !important;
    flex-shrink: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    background: #0f1219 !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    max-height: 85vh !important;
    overflow: hidden !important;
  }

  /* Image container */
  .main-image-container {
    width: 310px !important;
    height: 220px !important;
    margin: 0 auto 5px auto !important;
    background: #141825 !important;
    border: 1px solid rgba(100, 200, 200, 0.12) !important;
    border-radius: 16px !important;
    padding: 15px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .main-image-container img {
    max-width: 100% !important;
    max-height: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  /* Premium Mobile Inputs */
  .coin-selection-container {
    margin: 10px 0 !important;
  }

  .coin-selector-header {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 16px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .coin-price {
    color: #22c55e !important;
    font-weight: 800 !important;
  }

  .gallery-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    padding: 15px 0 25px 0 !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .gallery-btn.buy-btn {
    width: 100% !important;
    padding: 16px !important;
    font-size: 16px !important;
    margin-top: 5px !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    border-radius: 10px !important;
  }

  .gallery-btn.back-btn {
    width: 100% !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #64748b !important;
    padding: 14px !important;
    font-size: 14px !important;
  }

  /* Hide old close button - floating X is used instead */
  .gallery-header .close {
    display: none !important;
  }

  /* Title below image - left aligned, bold */
  .gallery-header {
    border-bottom: none !important;
    padding: 12px 0 5px !important;
    margin-bottom: 0 !important;
  }

  .gallery-title {
    text-align: left !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
  }

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

  /* Total Price box mobile tweak */
  .total-price-box {
    margin: 10px 0 !important;
  }
}

#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);
}

/* Quick View Modal Image Container */
.modal-image {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  margin-bottom: 15px;
}

/* 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;
}




/* Footer Styles from about.php */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  background: #050816;
  /* Deep navy background */
  position: relative;
  overflow: hidden;
  margin-top: auto;
  box-shadow: inset 0 1px 0 rgba(25, 212, 202, 0.1);
  font-family: 'Poppins', 'Inter', sans-serif;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8b5cf6, #06b6d4);
  /* Purple to cyan gradient */
}

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

.footer-main {
  padding: 50px 0 40px;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: start;
}

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

/* Brand & CTA Column */
.footer-brand {
  max-width: 100%;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 15px;
  letter-spacing: -0.5px;
}

.logo-icon {
  font-size: 32px;
}

.logo-text {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  /* Purple to cyan gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  font-size: 16px;
  color: #94a3b8;
  margin: 0 0 25px;
  line-height: 1.6;
}

.subscribe-btn {
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  /* Purple to cyan gradient */
  color: white;
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.footer-socials {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

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

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon.arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 12px;
  height: 12px;
  border-top: 2px solid white;
  border-left: 2px solid white;
}

.social-icon.double-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  width: 12px;
  height: 12px;
  border-top: 2px solid white;
  border-left: 2px solid white;
}

.social-icon.double-arrow::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%) rotate(-45deg);
}

.social-icon.telegram:hover {
  transform: translateY(-3px);
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  box-shadow: 0 6px 15px rgba(139, 92, 246, 0.3);
}

.social-icon.discord:hover {
  border-color: #5865F2;
  background: rgba(88, 101, 242, 0.1);
  color: #5865F2;
  box-shadow: 0 6px 15px rgba(88, 101, 242, 0.3);
}

.social-icon.twitter:hover {
  border-color: #1DA1F2;
  background: rgba(29, 161, 242, 0.1);
  color: #1DA1F2;
  box-shadow: 0 6px 15px rgba(29, 161, 242, 0.3);
}

.social-icon.facebook:hover {
  border-color: #1877F2;
  background: rgba(24, 119, 242, 0.1);
  color: #1877F2;
  box-shadow: 0 6px 15px rgba(24, 119, 242, 0.3);
}

.social-icon.youtube:hover {
  border-color: #FF0000;
  background: rgba(255, 0, 0, 0.1);
  color: #FF0000;
  box-shadow: 0 6px 15px rgba(255, 0, 0, 0.3);
}

.social-icon.instagram:hover {
  border-color: #E1306C;
  background: rgba(225, 48, 108, 0.1);
  color: #E1306C;
  box-shadow: 0 6px 15px rgba(225, 48, 108, 0.3);
}

.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;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li {
  margin: 0;
}

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

.footer-links a[href="/terms"] {
  white-space: nowrap;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  transition: width 0.3s ease;
  border-radius: 1px;
}

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

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

/* Subscribe & Payment Column */
.subscribe-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.email-input {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.email-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.subscribe-button {
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(139, 92, 246, 0.3);
}

.payment-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.payment-icons a {
  display: inline-block;
  text-decoration: none;
}

.payment-icons i {
  transition: all 0.3s ease;
}

.payment-icons i:hover {
  transform: scale(1.1);
}

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

.payment-icon:hover {
  color: white;
  transform: translateY(-2px);
}

.trust-text {
  font-size: 12px;
  color: #64748b;
  margin-top: 15px;
}

.online-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  margin-left: 5px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 15, 25, 0.8);
  padding: 25px 0;
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8b5cf6, #06b6d4);
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 20px;
  font-size: 14px;
  text-align: center;
}

.footer-copyright p {
  margin: 0;
  color: #94a3b8;
}

.footer-copyright strong {
  color: white;
  font-weight: 700;
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.footer-legal a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
  position: relative;
}

.footer-legal a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  transition: width 0.3s ease;
}

.footer-legal a:hover::after {
  width: 100%;
}

.footer-legal a:hover {
  color: #8b5cf6;
}

.separator {
  color: rgba(255, 255, 255, 0.2);
  font-size: 13px;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.language-selector:hover {
  color: white;
}

.flag-icon {
  font-size: 16px;
}

/* Footer Responsive */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-column:first-child {
    grid-column: 1 / 3;
    text-align: center;
  }

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

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-column:first-child {
    grid-column: 1;
    order: 3;
    text-align: center;
  }

  .footer-main {
    padding: 40px 0 30px;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 15px;
  }

  /* Adjust Customer Support links for mobile - 2 links per row */
  .footer-column:nth-child(3) .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Ensure all footer columns follow 2-column grid on mobile */
  .footer-column .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Add indentation to specific footer link columns on mobile */
  .footer-column:nth-child(2) .footer-links,
  .footer-column:nth-child(3) .footer-links {
    padding-left: 30px;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 0 15px;
  }

  .footer-main {
    padding: 30px 0 20px;
  }

  /* Add indentation to specific footer link columns on small mobile */
  .footer-column:nth-child(2) .footer-links,
  .footer-column:nth-child(3) .footer-links {
    padding-left: 30px;
  }
}




/* AGENTIC AI - Enhanced Gaming Product Modal UI */
#quickViewModal.modal-overlay {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: none;
  z-index: 10005;
}

#quickViewModal.modal-overlay.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#quickViewModal .modal-content {
  background: #1c1b20;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  width: min(550px, 86vw);
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

#quickViewModal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

#quickViewModal .modal-header h3 {
  margin: 0;
  font-size: 22px;
  color: white;
  font-weight: 500;
  text-transform: uppercase;
}

#quickViewModal .close {
  color: #7f7f85;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  background: transparent !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

#quickViewModal .close:hover {
  color: #ffffff;
  background: transparent !important;
}

#quickViewModal .modal-body {
  padding: 0 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#quickViewModal .modal-inner-box {
  background: #28272b;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

#quickViewModal .modal-image {
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  min-height: 96px !important;
  max-width: 96px !important;
  max-height: 96px !important;
  border-radius: 12px !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#quickViewModal .modal-image.sticker-mode {
  animation: none !important;
  background-color: transparent !important;
}

#quickViewModal .modal-subtitle {
  color: white;
  font-size: 18px;
  margin: 0;
  font-weight: 400;
  align-self: center;
}

#qvAddToCartBtn {
  width: 100%;
  background: #13b508;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 2px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s;
}

#qvAddToCartBtn:hover {
  background: #109e06;
}

/* MASTER OVERRIDE TO STOP HOVER SHAKE AND CHANGE BORDER COLOR ONLY */
.card:hover,
.product-card:hover {
  transform: none !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: none !important;
}

.modern-card:hover {
  transform: none !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: none !important;
}

/* MASTER OVERRIDE FOR CARD HEIGHT (DESKTOP) */
@media (min-width: 769px) {

  .container .card,
  #stickersContainer .card,
  #pucksContainer .card,
  #gemsContainer .card,
  #coinsContainer .card {
    min-height: 230px !important;
    height: 315px !important;
  }
}

/* MASTER OVERRIDE FOR CARD HEIGHT & RADIUS (MOBILE) */
@media (max-width: 768px) {

  .container .card,
  #stickersContainer .card,
  #pucksContainer .card,
  #gemsContainer .card,
  #coinsContainer .card {
    min-height: 230px !important;
    /* Removed border-radius override so it matches desktop */
  }
}

/* MASTER OVERRIDE FOR PRICE BUTTONS */
.price-btn,
.card .price-btn,
.featured-section .card-box .price-btn,
#pucksContainer .price-btn,
button.price-btn {
  box-shadow: none !important;
  border: none !important;
  transition: none !important;
  text-shadow: none !important;
}

.card .price-btn {
  position: absolute !important;
  bottom: 18px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 75% !important;
  height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media (max-width: 768px) {
  .card .price-btn {
    width: 95% !important;
    bottom: 8px !important;
  }
}

.price-btn:hover,
.price-btn:active,
.price-btn:focus,
.featured-section .card-box .price-btn:hover,
.featured-section .card-box .price-btn:active,
button.price-btn:hover,
button.price-btn:active {
  box-shadow: none !important;
  transform: none !important;
}

.card .price-btn:hover,
.card .price-btn:active,
.card .price-btn:focus,
#pucksContainer .price-btn:hover,
#pucksContainer .price-btn:active {
  box-shadow: none !important;
  transform: translateX(-50%) !important;
}

/* FIX CARD FLEX LAYOUT TO PREVENT NAME HIDING */
.card {
  justify-content: flex-start !important;
}

/* UNWRAP CARD CONTAINERS SO FLEX ORDER WORKS */
.card .card-header,
.card .emoji-display {
  display: contents !important;
}

/* SHRINK FONT SIZE AND PUSH DOWN NAMES FOR ALL CARDS */
.card .name,
.card .card-name,
.card .card-header .card-name,
.product-card .name,
.modern-card .card-title {
  font-size: 1.1em !important;
  font-family: 'Segoe UI', sans-serif !important;
  font-weight: 400 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 95%;
  margin-top: 15px !important;
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  position: relative !important;
  z-index: 10 !important;
  color: white !important;
  order: 2 !important;
}

@media (min-width: 769px) {

  /* MASTER OVERRIDE FOR PRODUCT IMAGES TO MAKE THEM BIGGER (OVERRIDES INLINE MAX-WIDTH) */
  .card img,
  .product-card img,
  .card .emoji-display img,
  .modern-card img:not(.info-icon),
  #stickersContainer .card img,
  #pucksContainer .card img,
  #cosmeticsContainer .card img {
    width: 130px !important;
    height: 130px !important;
    max-width: 130px !important;
    object-fit: contain !important;
    margin-top: -10px !important;
  }

  /* FORCE SAME FONT STYLE ON DESKTOP FOR ALL CARD NAMES */
  .card .name,
  .card .card-name,
  .product-card .name,
  .modern-card .card-title {
    font-size: 1.1em !important;
    font-family: 'Segoe UI', sans-serif !important;
    font-weight: 400 !important;
  }

  .sidebar-buttons {
    margin-top: auto !important;
    padding-bottom: 10px !important;
  }
}

@media (max-width: 768px) {
  .sidebar-buttons {
    margin-top: 32px !important;
    padding: 0 12px 20px !important;
  }

  /* MASTER OVERRIDE FOR PRODUCT IMAGES (MOBILE) */
  .card img,
  .product-card img,
  .card .emoji-display img,
  .modern-card img:not(.info-icon) {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    object-fit: contain !important;
    margin-top: 10px !important;
    transform: none !important;
  }

  /* All product images — same margin across all sections */
  #stickersContainer .card img,
  #pucksContainer .card img,
  #cosmeticsContainer .card img,
  #gemsContainer .card img,
  #coinsContainer .card img {
    margin-top: -5px !important;
  }

  .card .card-name,
  .card .card-header .card-name,
  .card .name {
    margin-top: 0 !important;
    position: absolute !important;
    bottom: 85px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 95% !important;
  }

  .card .quantity {
    position: absolute !important;
    bottom: 78px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    width: 100% !important;
  }
}

.card .quantity {
  font-size: 13px !important;
}

/* FORCE 5 COLUMNS ON DESKTOP OVERRIDING ALL S.CSS MEDIA QUERIES */
@media (min-width: 1024px) {

  .container,
  #stickersContainer,
  #pucksContainer,
  #gemsContainer,
  #coinsContainer {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 15px !important;
    max-width: 1200px !important;
  }
}

@media (max-width: 1023px) and (min-width: 768px) {

  .container,
  #stickersContainer,
  #pucksContainer,
  #gemsContainer,
  #coinsContainer {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
  }
}

@media (max-width: 767px) {

  .container,
  #stickersContainer,
  #pucksContainer,
  #gemsContainer,
  #coinsContainer {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .modern-cards-container {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .navbar>div {
    padding: 8px 12px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  .navbar .left-side {
    gap: 8px !important;
    order: 1 !important;
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
  }

  .navbar .right-side {
    order: 2 !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    text-align: right !important;
  }

  .navbar .menu-img {
    width: 24px !important;
  }

  .navbar .logo {
    width: 34px !important;
    height: 34px !important;
    border-radius: 6px !important;
  }

  .navbar .title>div:first-child {
    font-size: 16px !important;
  }

  .navbar .title>div:last-child {
    font-size: 10px !important;
  }

  .navbar .login-btn {
    padding: 6px 16px !important;
    font-size: 13px !important;
  }

  #featured h2,
  h2#stickers,
  h2#pucks,
  h2#gems,
  h2#coins,
  h2#cosmetics,
  .section-header,
  h2.section-header {
    text-align: left !important;
    margin: 5px 16px 4px 16px !important;
    padding: 0 !important;
    width: auto !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
  }
}

/* MASTER BODY BACKGROUND OVERRIDE */
body {
  background: #1c1b22 !important;
}

.featured-section {
  background: transparent !important;
}

/* MASTER SIDEBAR OVERRIDE */
#sidebar {
  top: 0 !important;
  margin-top: 0 !important;
  height: 100vh !important;
  position: fixed !important;
  left: 0 !important;
  transform: translateX(-110%) !important;
  transition: transform 0.6s ease !important;
}

#sidebar.active {
  transform: translateX(0) !important;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 10000 !important;
  /* Just behind the sidebar, above everything else */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* DESKTOP PERMANENT SIDEBAR LAYOUT */
@media (min-width: 1024px) {
  body {
    padding-left: 255px !important;
  }

  #sidebar {
    transform: translateX(0) !important;
    left: 0 !important;
    display: block !important;
  }

  #sidebar .close-btn {
    display: none !important;
  }

  .navbar {
    width: calc(100% - 255px) !important;
    left: 255px !important;
    position: fixed !important;
    top: 0 !important;
    z-index: 1000 !important;
  }

  .navbar .left-side {
    visibility: hidden !important;
    /* Hide hamburger and duplicate logo on desktop */
  }

  .navbar .right-side {
    margin-right: 16px !important;
  }

  .navbar .right-side .login-btn {
    min-width: 120px !important;
  }

  .navbar .right-side .login-btn:hover,
  .navbar .login-btn:hover {
    background: #0069d9 !important;
  }

  .navbar .right-side .login-btn:active,
  .navbar .login-btn:active {
    background: #0062cc !important;
  }

  .top-tab-bar {
    display: none !important;
  }

  body {
    padding-top: 100px !important;
  }

  /* Make featured price buttons (except season pass) match sticker button size on desktop */
  .featured-section .modern-card:not(.season-pass-banner) .price-container {
    width: 165px !important;
    height: 40px !important;
    padding: 0 !important;
    min-width: unset !important;
    border-radius: 4px !important;
  }

  .featured-section .modern-card:not(.season-pass-banner) .price-container>div {
    align-items: center !important;
    height: 100% !important;
  }

  .featured-section .modern-card:not(.season-pass-banner) .discounted-price {
    font-size: 16px !important;
    line-height: 40px !important;
  }

  .page-content,
  .featured-section,
  .modern-cards-container {
    padding-top: 0 !important;
  }
}

#sidebar ul {
  gap: 0 !important;
}

#sidebar ul li.sidebar-item {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: unset !important;
}

#sidebar ul li.sidebar-item a {
  margin: 0 !important;
  padding: 10px 0 !important;
  /* Just enough for touch target */
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: unset !important;
  line-height: 1 !important;
  color: #8e8e93 !important;
  transition: color 0.2s ease !important;
}

#sidebar ul li.sidebar-item a:hover,
#sidebar ul li.sidebar-item a:active,
#sidebar ul li.sidebar-item a.active {
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
  color: #007bff !important;
}

/* Navbar and Sidebar Logo Hover Effect */
.navbar .logo,
.sidebar .logo {
  width: 44px !important;
  height: 44px !important;
  border-radius: 8px !important;
  object-fit: contain !important;
  transition: filter 0.2s ease !important;
}

.navbar .logo:hover,
.sidebar .logo:hover {
  filter: brightness(0.7) !important;
}




.proof-card {
  border: 2px solid #10b981;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}

.proof-card:hover {
  border-color: #059669;
  transition: border-color .2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}

#proofsModal .proof-card:first-child {
  margin-top: 20px;
}

/* Lightbox styles */
#imageLightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 30, 46, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10005;
  padding: 24px;
}

#imageLightbox.show {
  display: flex;
}

#lightboxImage {
  max-width: 96vw;
  max-height: 96vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  border-radius: 8px;
}

#imageLightbox .toolbar {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 10000;
  background: rgba(30, 30, 46, 0.7);
  backdrop-filter: none;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#imageLightbox .toolbar button {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

#imageLightbox .toolbar button:hover {
  background: rgba(255, 255, 255, .25);
}

#cropOverlay {
  position: fixed;
  inset: 0;
  display: none;
  cursor: crosshair;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
}

#cropOverlay.show {
  display: block;
}

/* Video Lightbox styles */
#videoLightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10005;
  padding: 0;
}

#videoLightbox.show {
  display: flex;
}

#videoLightbox .toolbar {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 10000;
}

#videoLightbox .toolbar button {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

#videoLightbox .toolbar button:hover {
  background: rgba(255, 255, 255, .18);
}

#lightboxVideo {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  background: #000;
}

/* Bit Aim Gallery Modal - Enhanced Professional Design */
#bitAimGalleryModal {
  display: none;
  position: fixed;
  z-index: 10005;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  overscroll-behavior: none !important;
  animation: fadeIn 0.3s ease-out;
}

/* Inline Close Button for Gallery Modal (matches sticker modal) */
.close-inline {
  color: #7f7f85;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  background: transparent !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.close-inline:hover {
  color: #ffffff;
  background: transparent !important;
}

@media (max-width: 768px) {
  #bitAimGalleryModal {
    align-items: flex-end !important;
    padding: 0 !important;
  }
}

#bitAimGalleryModal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Close Button */
.gallery-close-floating {
  display: none !important;
  /* Hidden on desktop, shown on mobile */
}

.gallery-close-floating:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Drag Handle */
.gallery-drag-handle {
  display: none;
  /* Hidden on desktop, shown on mobile */
}

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

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

@media (max-width: 768px) {

  /* Hide desktop inline close button on mobile */
  .close-inline {
    display: none !important;
  }

  /* Floating X Button - circle at top right */
  .gallery-close-floating {
    display: flex !important;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.2s;
  }

  .gallery-close-floating:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  /* Drag Handle - small bar at top of bottom sheet */
  .gallery-drag-handle {
    display: flex !important;
    justify-content: center;
    padding: 10px 0 5px;
  }

  .gallery-drag-handle span {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

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

.gallery-modal {
  background: #1c1b20;
  margin: auto;
  padding: 0;
  border-radius: 12px;
  width: 92%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .gallery-modal {
    max-height: 92vh;
    overflow-y: auto;
    width: 100% !important;
    max-width: 100% !important;
  }
}

.gallery-container {
  padding: 20px;
  background: transparent;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.gallery-header::after {
  display: none;
}

.gallery-title {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #ffffff, #b0bec5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.close {
  color: #7f7f85;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  background: transparent !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.close:hover {
  color: #ffffff;
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* Clean Minimal Image Container */
.main-image-container {
  position: relative;
  text-align: center;
  margin-bottom: 15px;
  border-radius: 6px;
  overflow: hidden;
  background: #28272b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 10px;
  transition: all 0.3s ease;
}

.main-image-container:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

#bitAimMainImage {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  display: block;
  /* Distinct shadow for image itself */
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  border-radius: 2px;
}

@media (max-width: 768px) {
  #bitAimMainImage {
    max-height: 200px !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }


  /* Nav buttons outside container edges */
  .image-navigation {
    padding: 0 8px !important;
    left: -5px !important;
    right: -5px !important;
    width: auto !important;
  }

  .nav-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
    background: rgba(20, 24, 37, 0.85) !important;
    border: 1px solid rgba(100, 200, 200, 0.15) !important;
  }
}

.fade-out {
  opacity: 0 !important;
  transform: scale(0.95);
}

.image-navigation {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px 0 20px;
  box-sizing: border-box;
  z-index: 10;
  pointer-events: none;
}

.nav-btn {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
  color: #fff;
}

.image-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: none;
  color: #fff;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Modern Pill Grid Selection */
.coin-selection-container {
  margin: 15px 0;
  padding: 0 5px;
}

.modern-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.modern-pill {
  background: #1a1a24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modern-pill:hover {
  background: #232330;
  border-color: rgba(255, 255, 255, 0.2);
}

.modern-pill.active {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid #22c55e;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.modern-pill.active .pill-name {
  color: #22c55e;
}

.pill-name {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
}

.pill-price {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.gallery-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.gallery-btn {
  padding: 16px;
  border: none;
  border-radius: 2px;
  font-weight: 600;
  cursor: pointer;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.2s ease;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.buy-btn {
  background: #12b11b !important;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: none !important;
  border-radius: 4px !important;
  margin-top: 10px !important;
}

.buy-btn:hover {
  background: #0f9d17 !important;
  transform: none !important;
  box-shadow: none !important;
}

.back-btn {
  background: rgba(30, 41, 59, 0.6);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: none;
}

.back-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .gallery-buttons {
    flex-direction: row;
    /* Force side-by-side on mobile */
    gap: 10px;
  }

  .gallery-btn {
    width: auto;
    font-size: 13px;
    /* Smaller font on mobile */
    padding: 12px 10px;
  }



  .gallery-container {
    padding: 20px;
  }

  .gallery-header {
    margin-bottom: 5px;
    padding-bottom: 0;
    border-bottom: none !important;
  }

  .gallery-title {
    font-size: 18px;
    text-align: left !important;
  }

  #bitAimMainImage {
    max-height: 400px;
  }



  .nav-btn {
    padding: 12px;
    font-size: 20px;
    width: 45px;
    height: 45px;
  }

  .price-options {
    margin: 15px 0;
    padding: 12px;
  }

  .price-options h3 {
    font-size: 18px;
    margin: 0 0 12px 0;
  }

  .price-option-btn {
    padding: 10px 15px;
    font-size: 14px;
    min-width: 120px;
  }

  .gallery-buttons {
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
  }

  .gallery-btn {
    width: 100%;
    padding: 18px;
    min-width: auto;
    font-size: 16px;
  }

  .image-counter {
    padding: 8px 16px;
    font-size: 16px;
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {


  #bitAimMainImage {
    max-height: 300px;
  }

  .gallery-title {
    font-size: 17px;
  }



  .gallery-container {
    padding: 15px;
  }

  .gallery-header {
    margin-bottom: 5px;
    border-bottom: none !important;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
    padding: 10px;
  }

  .price-options {
    margin: 12px 0;
    padding: 10px;
  }

  .price-options h3 {
    font-size: 16px;
    margin: 0 0 10px 0;
  }

  .price-option-btn {
    padding: 8px 12px;
    font-size: 13px;
    min-width: 100px;
  }

  .gallery-buttons {
    margin: 15px 0;
    gap: 15px;
  }

  .gallery-btn {
    padding: 16px;
    font-size: 15px;
  }

  .image-counter {
    padding: 6px 14px;
    font-size: 14px;
    top: 12px;
    right: 12px;
  }
}

/* ------------------------------------------- */
/* PREMIUM DASHBOARD 2-COLUMN LAYOUT (DESKTOP) */
/* ------------------------------------------- */
@media (min-width: 769px) {
  .gallery-modal {
    max-width: 750px !important;
    /* Increase width for 2 columns */
  }

  .gallery-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    /* Smaller fixed left column */
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
      "header header"
      "image options"
      "image price"
      "image buttons";
    gap: 0 40px;
    align-items: start;
    padding: 30px !important;
  }

  .gallery-header {
    grid-area: header;
    margin-bottom: 25px;
    padding-bottom: 15px;
  }

  .main-image-container {
    grid-area: image;
    margin-bottom: 0;
    width: 100%;
    height: 240px;
    /* Smaller FIXED height for the gray box */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center image inside the fixed box */
  }

  #bitAimMainImage {
    max-height: 200px !important;
    /* Image scales proportionally inside box */
    width: auto !important;
    max-width: 100%;
  }

  .coin-selection-container {
    grid-area: options;
    margin: 0 !important;
  }

  .total-price-box {
    grid-area: price;
    margin: 15px 0 0 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .gallery-buttons {
    grid-area: buttons;
    padding: 0 !important;
    margin: 15px 0 0 0 !important;
    /* Reduced margin since price box is above it */
    align-self: start;
  }

  .gallery-btn.buy-btn.add-to-cart-btn {
    margin-top: 0 !important;
    /* Reset margin */
    max-width: 380px !important;
    /* Reduce width */
    margin-left: auto !important;
    /* Center horizontally */
    margin-right: auto !important;
  }

  /* Make pills smaller on desktop */
  .modern-pill {
    padding: 6px 5px !important;
    border-radius: 8px !important;
  }

  .pill-name {
    font-size: 11px !important;
    font-weight: 500 !important;
  }

  .pill-price {
    font-size: 13px !important;
  }
}




.mobile-break {
  display: none;
}

@media (max-width: 768px) {
  .footer-top-mobile {
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 30px !important;
  }

  .social-container-mobile {
    align-items: center !important;
  }

  .app-links-mobile {
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center !important;
  }

  .footer-links-mobile {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    text-align: center !important;
  }

  .mobile-break {
    display: block;
  }
}




@keyframes popIn {
  from {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }

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




@keyframes slideUpFade {
  from {
    transform: translate(-50%, 20px);
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes slideDownFade {
  from {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  to {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
}




/* Standardized Floating Buttons */
.floating-btn {
  position: fixed;
  width: 44px;
  height: 44px;
  bottom: 25px;
  border-radius: 50%;
  text-align: center;
  font-size: 22px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-btn:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

/* WhatsApp Specific - Bottom layout */
.whatsapp-float {
  background-color: transparent;
  color: #FFF;
  right: 25px;
  bottom: 25px;
  box-shadow: none !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

.whatsapp-float:hover {
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  vertical-align: middle;
  border-radius: 50% !important;
  object-fit: cover !important;
  transform: scale(1.15) !important;
}

/* WhatsApp Message Popup */
.whatsapp-message-popup {
  position: fixed;
  bottom: 30px;
  right: 80px;
  background: #fff;
  color: #111;
  padding: 8px 14px;
  border-radius: 18px;
  border-bottom-right-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transform-origin: right bottom;
  animation: waPopupMsg 6s infinite;
}

.whatsapp-message-popup::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: -7px;
  border-width: 8px 0 0 10px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}

@keyframes waPopupMsg {
  0%, 50% {
    opacity: 0;
    transform: translateX(20px) scale(0.8);
  }
  55%, 90% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  95%, 100% {
    opacity: 0;
    transform: translateX(20px) scale(0.8);
  }
}


/* Cart Specific - Stacked above WhatsApp */
.cart-float {
  background: linear-gradient(135deg, #6c8cff, #19d4ca);
  color: #FFF;
  right: 25px;
  bottom: 84px;
}

.cart-icon {
  font-size: 20px;
  line-height: 1;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #ef4444;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1a1a2e;
}

/* Mobile adjustments: Maintain vertical stack */
@media (max-width: 480px) {
  .floating-btn {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .whatsapp-float {
    right: 20px;
    bottom: 20px;
  }

  .cart-float {
    right: 20px;
    bottom: 74px;
  }

  .whatsapp-message-popup {
    right: 70px;
    bottom: 25px;
  }
}

/* Custom Dropdown Accordion */
.custom-dropdown-container {
  margin: 8px 0;
  width: 100%;
}

.dropdown-label {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 4px;
  text-align: left;
}

.custom-dropdown {
  background: #27293d;
  /* dark blue-grey */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  /* Slightly less rounded */
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.custom-dropdown.open {
  border-color: #11a626;
  /* Brand green border when open */
}

.dropdown-header {
  padding: 8px 14px;
  /* Further reduced height padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.dropdown-selected-name {
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.dropdown-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-selected-price {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.dropdown-arrow {
  color: #11a626;
  /* Brand green arrow */
  font-size: 12px;
  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;
  background: #1c1b20;
  /* Slightly darker background for options */
}

.custom-dropdown.open .dropdown-options {
  max-height: 300px;
  /* Large enough to show all items */
}

.dropdown-option-item {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s ease;
}

.dropdown-option-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dropdown-option-name {
  color: #d1d5db;
  font-size: 15px;
}

.dropdown-option-price {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  color: #d1d5db;
  font-weight: bold;
  font-size: 14px;
}
/* User Avatar Hover Effect */
.user-avatar-container:hover {
  box-shadow: 0 0 0 2px white, 0 4px 12px rgba(0,0,0,0.6) !important;
}

/* User Avatar & Name Responsive Sizes */
.user-avatar-container {
  width: 40px !important;
  height: 40px !important;
}
.user-name-text {
  display: none !important;
  font-size: 16px !important;
}

@media (min-width: 1024px) {
  .user-avatar-container {
    width: 44px !important;
    height: 44px !important;
  }
  .user-name-text {
    display: inline !important;
    font-size: 18px !important;
  }
}

/* Profile Dropdown Popup Styles */
.profile-dropdown-wrapper {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 10005;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.profile-dropdown-wrapper.show {
  display: flex;
  opacity: 1;
}

@media (max-width: 1023px) {
  .profile-dropdown-wrapper {
    align-items: flex-start;
    padding-top: 85px;
    padding-left: 30px;
  }
}

@media (min-width: 1024px) {
  .profile-dropdown-wrapper {
    background: transparent !important;
    justify-content: flex-end;
    align-items: flex-start;
    pointer-events: none; /* Let background be clickable */
  }
  .profile-dropdown-wrapper.show {
    pointer-events: auto; /* Only capture clicks on the popup itself */
  }
  .profile-dropdown-content {
    margin-top: 70px;
    margin-right: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.9) !important;
    pointer-events: auto;
  }
}
