/* Global Styles */
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap");
:root {
  --bg-color: radial-gradient(circle at 10% 30%, #050f21 0%, #000000 60%);
  --text-color: #ffffff;
  --accent-blue: #2962ff; /* Vibrant Blue */
  --accent-blue-light: #768fff;
  --dark-surface: #121212;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-main: "Outfit", sans-serif;
  --transition: all 0.3s ease;
  --blue: #1e90ff;
  --dark: #040b1a;
  --glass: rgba(255, 255, 255, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth;
  text-transform: capitalize;
  scrollbar-width: none;
}

body {
  font-family: var(--font-main);
  background-image: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  width: 100%;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

/* class text center */
.center-text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.center-text h2 {
  text-align: center;
  width: 60%;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -1px;
  color: var(--text-color);
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2; /* Above canvas */
}

/* Typography */
h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    var(--accent-blue) 25%,
    #ffffff 50%,
    var(--accent-blue) 75%,
    #ffffff 100%
  ) !important;
  background-size: 200% auto !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: shine 4s linear infinite !important;
}

@keyframes shine {
  to {
    background-position: 200% center !important;
  }
}

p {
  font-size: 1.1rem;
  color: #aaaaaa;
  margin-bottom: 30px;
  max-width: 600px;
  line-height: 1.7;
}

.hero-features {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #eee;
}

.hero-features i {
  color: var(--accent-blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-blue) 0%, #0039cb 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(41, 98, 255, 0.4);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(41, 98, 255, 0.6);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  margin-left: 15px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}
/* time top bar */
.clock-container {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.3);
  text-align: center;
  transition: 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 10px;
  font-family: "Orbitron", sans-serif;
}

.clock-container:hover {
  box-shadow: 0 0 60px rgba(0, 255, 255, 0.6);
  transform: scale(1.05);
}

.time {
  font-size: 30px;
  color: #00ffff;
  text-shadow:
    0 0 10px #00ffff,
    0 0 20px #00ffff,
    0 0 40px #00ffff;
  letter-spacing: 4px;
  transition: 0.3s;
}

.date {
  margin-top: 5px;
  font-size: 20px;
  color: #fff;
  opacity: 0.8;
}

.seconds {
  font-size: 20px;
  color: #ff00ff;
  text-shadow:
    0 0 10px #ff00ff,
    0 0 20px #ff00ff;
}

/* Navbar */
.navbar {
  position: fixed;
  top: var(--top-bar-height, 46px);
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 0;
  transition: var(--transition);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 5, 0.85);
  height: 80px;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-weight: 400;
  color: #ccc;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  display: inline-block;
  padding: 0;
  background: none;
  border-radius: 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-blue);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.navbar.scrolled {
  background: rgba(5, 5, 5, 0.8);
  border-bottom: 1px solid var(--glass-border);
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.85rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: center;
  gap: 2px;
  letter-spacing: -0.8px;
  text-transform: none; /* Keep the original casing from PHP logic */
  transition: var(--transition);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo span {
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.3));
}

.logo:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.logo:hover span {
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.5));
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 400;
  color: #ccc;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-blue);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mega Menu Core Styles */
.has-mega-menu {
  position: static !important; /* Allow mega menu to span full width */
}

.has-mega-menu > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.has-mega-menu > a i {
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.has-mega-menu:hover > a i {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--dark-surface);
  border-top: 2px solid var(--accent-blue);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  padding: 40px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 99;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

/* Add a pseudo-element to extend hover area and prevent menu closing */
.has-mega-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px; /* Adjust height based on gap */
  background: transparent;
  z-index: 10;
}

.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  padding: 0 40px;
  gap: 40px;
}

.mega-menu-list {
  flex: 0 0 350px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mega-menu-item {
  position: relative;
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.mega-menu-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(41, 98, 255, 0.1) 0%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 0;
}

.mega-menu-item:hover::before,
.mega-menu-item.active::before {
  transform: translateX(0);
}

.mega-menu-item a {
  position: relative;
  display: block;
  padding: 15px 20px;
  color: #a0a0a0;
  font-size: 1.1rem;
  font-weight: 500;
  z-index: 1;
  transition: color 0.3s ease;
}

.mega-menu-item:hover a,
.mega-menu-item.active a {
  color: #fff;
}

.mega-menu-item:hover,
.mega-menu-item.active {
  border-left: 4px solid var(--accent-blue);
  background: rgba(255, 255, 255, 0.02);
}

/* No underline on mega menu items */
.nav-links .mega-menu-list a::after {
  display: none;
}

/* Image Preview Area */
.mega-menu-preview {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mega-preview-img {
  width: 100%;
  height: 300px; /* Fixed height for consistent look */
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.mega-preview-content {
  padding: 25px 30px;
  background: linear-gradient(to top, var(--dark-surface) 60%, transparent);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.mega-preview-content h4 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.mega-preview-content h4::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-blue);
}

.mega-preview-content p {
  font-size: 1rem;
  color: #bbb;
  margin-bottom: 20px;
  line-height: 1.5;
  max-width: 90%;
}

.btn-explore {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 30px !important;
  color: #000000 !important;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-explore:hover {
  color: #000000 !important;
  box-shadow: 0 5px 15px rgba(41, 98, 255, 0.4) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

@media (max-width: 600px) {
  .nav-actions {
    gap: 12px;
  }
  .nav-actions .icon-link {
    font-size: 1.1rem;
  }
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

/* --- Global Professional Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background: linear-gradient(135deg, rgba(8, 12, 28, 0.98) 0%, rgba(3, 5, 10, 0.99) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 9999;
  padding: 40px 30px;
  transition: all 0.6s cubic-bezier(0.85, 0, 0.15, 1);
  display: flex;
  flex-direction: column;
  box-shadow: none; /* Fixed: Shadow removed when hidden */
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8); /* Shadow only visible when active */
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-menu-header .logo {
  font-size: 2rem;
}

.close-menu {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.close-menu:hover {
  background: #ff3366;
  border-color: #ff3366;
  transform: rotate(90deg);
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav-links li {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.5s cubic-bezier(0.85, 0, 0.15, 1);
}

.mobile-menu.active .mobile-nav-links li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.5s; }

.mobile-nav-links > li > a {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  padding: 10px 0;
  letter-spacing: -1px;
}

.mobile-nav-links > li > a:hover {
  color: #00d2ff;
  padding-left: 15px;
}

.mobile-nav-links > li > a.active {
  color: #00d2ff;
}

/* Icon space for submenus */
.mobile-nav-links > li > a i {
  display: inline-flex;
  font-size: 1.2rem;
  margin-left: 15px;
  padding: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
}

.mobile-nav-links > li > a i:hover {
  color: #00d2ff;
  transform: scale(1.2);
}

.mobile-dropdown.active > a i {
  transform: rotate(180deg);
  color: #00d2ff;
}

.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  transition: all 0.5s ease-in-out;
}

.mobile-dropdown.active .mobile-submenu {
  max-height: 500px;
  margin: 15px 0;
  padding: 15px;
}

.mobile-submenu li {
  opacity: 1 !important;
  transform: none !important;
  margin-bottom: 12px;
}

.mobile-submenu a {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
}

.mobile-submenu a i {
  font-size: 1rem;
  color: var(--accent-blue);
  width: 20px;
  text-align: center;
}

.mobile-submenu a:hover {
  color: #fff;
  padding-left: 10px;
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.6s;
}

.mobile-menu.active .mobile-menu-footer {
  opacity: 1;
  transform: translateY(0);
}

.mobile-socials {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.mobile-socials a {
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.mobile-socials a:hover {
  background: #00d2ff;
  transform: translateY(-5px);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.mobile-menu.active ~ .mobile-menu-overlay,
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-toggle {
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-toggle:hover {
  background: #00d2ff;
  color: #000;
}

/* --- Strict 1024px Breakpoint for Global Navbar --- */
@media (max-width: 1024px) {
  .nav-links, .nav-actions .btn, .nav-search, .nav-search-wrapper {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
  }
  .navbar .container {
    justify-content: space-between;
  }
}


/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 70% 30%, #12163b, #050505 60%);
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  pointer-events: none; /* Let clicks pass through to canvas if needed, but text needs pointer-events auto */
  margin-top: 180px;
}

.hero-text {
  width: 100%;
  max-width: 600px;
  pointer-events: auto;
  z-index: 10;
}

.trusted-by {
  margin-top: 60px;
  color: #666;
  font-size: 0.9rem;
}

.brand-icons {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  font-size: 1.5rem;
  color: #888;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }

  .hero-section {
    background: radial-gradient(circle at 50% 30%, #12163b, #050505 70%);
  }
}

@media (max-width: 768px) {


  h1 {
    font-size: 2.5rem;
  }

  .hero-text {
    text-align: center;
    margin: 0 auto;
  }

  .hero-btns {
    justify-content: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .btn-secondary {
    margin-left: 0;
  }

  p {
    margin: 0 auto 30px;
  }

  .trusted-by {
    text-align: center;
  }

  .brand-icons {
    justify-content: center;
  }
}

/* Top Bar Styles */
.top-bar {
  background: var(--accent-blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  font-size: 0.9rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.btn-sm {
  background: white;
  color: var(--accent-blue);
  padding: 4px 15px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

/* Navbar Adjustments */
.navbar {
  height: 80px;
  background: rgba(5, 5, 5, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  height: 100%;
}
.logo img {
  height: 65px;
  width: auto;
  object-fit: contain;
  margin-right: 12px;
  transition: var(--transition);
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-search {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  margin: 0 10px;
  flex: 1;
  max-width: 400px;
}

.nav-search input {
  background: transparent;
  border: none;
  color: white;
  margin-left: 10px;
  width: 100%;
  outline: none;
}
/* Hero Search - Global Style */
.hero-search-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  padding: 8px 8px 8px 25px; /* Left padding for text/icon, right for button */
  width: 100%;
  max-width: 500px; /* Limit width */
  margin: 0 0 40px 0; /* Align left in hero-text, so no auto margin */
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: all 0.3s ease;
}

.hero-search-container:focus-within {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-blue);
  box-shadow:
    0 15px 40px rgba(41, 98, 255, 0.15),
    0 0 0 1px var(--accent-blue) inset;
  transform: translateY(-2px);
}

.search-icon {
  color: #888;
  font-size: 1.2rem;
  margin-right: 15px;
  transition: color 0.3s;
}

.hero-search-container:focus-within .search-icon {
  color: var(--accent-blue);
}

.hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.1rem;
  font-family: var(--font-main);
  outline: none;
  width: 100%;
}

.hero-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.hero-search-btn {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(41, 98, 255, 0.3);
}

.hero-search-btn:hover {
  background: #1a50e5;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(41, 98, 255, 0.5);
}

/* Responsiveness for Search */
@media (max-width: 768px) {
  .hero-search-container {
    margin: 0 auto 30px; /* Center on mobile */
    padding: 6px 6px 6px 20px;
  }

  .hero-search-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .hero-search-input {
    font-size: 1rem;
  }
}



/* --- Recently Added Section --- */
.recent-section {
  padding: 50px 0 100px;
}

.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* Category Pills */
.category-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.cat-pill {
  background: #111; /* Darker background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  padding: 10px 24px;
  border-radius: 6px; /* Slightly squarer like reference */
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.95rem;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(41, 98, 255, 0.3);
}

.cat-pill i {
  font-size: 1.1rem;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(280px, 1fr)
  ); /* Slightly narrower cards to fit more */
  gap: 30px;
}

.product-card {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: block; /* Default display */
}

/* Hidden class for filtering */
.product-card.hidden {
  display: none;
  animation: fadeOut 0.3s ease forwards;
}

/* Animation for showing items */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.product-card:not(.hidden) {
  animation: fadeInScale 0.5s ease forwards;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(41, 98, 255, 0.3);
}

.product-thumb {
  height: 220px; /* Slightly shorter */
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  opacity: 0.8;
}
.thumb-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.browser-dots {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 6px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 10px;
  border-radius: 20px;
}

.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .card-overlay {
  opacity: 1;
}

.product-details {
  padding: 25px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.product-meta i {
  margin-right: 5px;
}

.meta-sales {
  color: #666;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.product-rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stars {
  color: #ffc107;
  font-size: 0.9rem;
}

.price {
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
}

/* --- Scroll Animations (Disabled as requested) --- */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .sub-box {
    padding: 30px;
    flex-direction: column;
  }

  .sub-cards-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .category-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    padding-bottom: 15px !important;
    gap: 12px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-grid::-webkit-scrollbar {
    display: none;
  }
  .cat-pill {
    white-space: nowrap !important;
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
  }
}

.icon-link {
  font-size: 1.2rem;
  color: #ccc;
  cursor: pointer;
}

.icon-link:hover {
  color: white;
}

@media (max-width: 768px) {
  .nav-search {
    display: none;
  }

  .top-bar span {
    font-size: 0.8rem;
  }
}

/* --- Fantastic 3D Preloader (Gyroscope Style) --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #100084, #070070, #000000, #000000);
  background-size: 400% 400%;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.8s ease-out,
    visibility 0.8s ease-out;
  animation: gradientMove 5s infinite;
}
/* Animated background */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-container {
  perspective: 1000px;
  width: 150px;
  height: 150px;
  margin-bottom: 30px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-gyro {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

/* Rings */
.ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top: 3px solid var(--accent-blue);
  border-bottom: 3px solid #00c3ff;
  box-shadow:
    0 0 20px rgba(41, 98, 255, 0.5),
    inset 0 0 20px rgba(41, 98, 255, 0.2);
  top: 0;
  left: 0;
}

/* Individual Ring Animations */
.ring-1 {
  width: 100%;
  height: 100%;
  animation: rotateX 2s infinite linear;
}

.ring-2 {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border-color: transparent transparent #ff4081 #ff4081; /* Pinkish accent */
  border-width: 2px;
  box-shadow: 0 0 15px rgba(255, 64, 129, 0.5);
  animation: rotateY 1.8s infinite linear reverse;
}

.ring-3 {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border-color: #00fa9a transparent transparent #00fa9a; /* Greenish/Cyan accent */
  border-width: 2px;
  box-shadow: 0 0 15px rgba(0, 250, 154, 0.5);
  animation: rotateZ 1.5s infinite linear;
}

/* Central Core */
.core {
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 30px 10px rgba(41, 98, 255, 0.8),
    0 0 60px 20px rgba(0, 195, 255, 0.6);
  animation: pulseCore 1s infinite alternate;
}

.loading-text {
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: none;
  font-family: inherit;
  margin-top: 25px;
  animation: textGlow 2.5s infinite ease-in-out;
}

.loading-text span {
  color: #00d2ff;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

/* SECTION marquee */
.brands-section {
  padding: 40px 0;
  background: radial-gradient(circle at 30% 10%, #0a1f44 0%, #040b1a 60%);
  overflow: hidden;
}

/* MARQUEE */
.marquee {
  overflow: hidden;
  margin: 15px 0;
  padding: 15px 0;
  cursor: pointer;
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}
/* card */
.brand-card {
  min-width: 320px;
  height: 170px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border 0.35s ease;
  transform-origin: center center;
}

.brand-card img {
  min-width: 320px;
  height: 170px;
  border-radius: 24px;
}

.brand-card:hover {
  transform: scale(1.06);
  border: 1px solid var(--blue);
  box-shadow: 0 30px 80px rgba(30, 144, 255, 0.45);
}

/* Responsive */
@media (max-width: 1024px) {
  .brand-card {
    min-width: 220px;
    height: 120px;
  }
}
@media (max-width: 600px) {
  .brand-card {
    min-width: 170px;
    height: 95px;
  }
}

/* Animations */
@keyframes rotateX {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

@keyframes rotateY {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(-360deg) rotateY(180deg);
  }
}

@keyframes rotateZ {
  0% {
    transform: rotateZ(0deg) rotateX(0deg);
  }
  100% {
    transform: rotateZ(360deg) rotateX(180deg);
  }
}

@keyframes pulseCore {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

@keyframes textGlow {
  0%,
  100% {
    opacity: 0.5;
    text-shadow: none;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 10px white;
  }
}




/* --- Category Exploration Section --- */
.category-explore-section {
  padding: 100px 0;
  position: relative;
  z-index: 10;
}

.category-explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 0 10px;
}

.cat-explore-card {
  background: rgb(10, 0, 0);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 20px 20px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  min-height: 500px;
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.cat-explore-footer {
  margin-top: auto;
  padding: 15px 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-explore {
  padding: 5px !important;
  display: inline-block;
  padding: 12px 30px;
  background: none !important;
  color: #000000 !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-explore:hover {
  color: rgb(0, 0, 0) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(41, 98, 255, 0.3);
  background-color: none !important;
}

.cat-explore-card:hover {
  background: rgba(0, 0, 0, 0.06);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border-color: var(--accent-blue);
  transform: translateY(-5px);
}

.cat-explore-content {
  margin-bottom: 40px;
  z-index: 2;
  width: 100%;
}

.cat-explore-content h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  background: linear-gradient(to right, #fff, #aaa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.cat-explore-content p {
  color: #888;
  font-size: 1rem;
  margin-bottom: 25px;
}

.cat-explore-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 10px;
  position: relative;
}

.cat-explore-links a {
  color: #666;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding-bottom: 5px;
  transition: all 0.3s ease;
}

.cat-explore-links a:hover,
.cat-explore-links a.active-link {
  color: var(--accent-blue);
}

.cat-explore-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.3s ease;
}

.cat-explore-links a:hover::after,
.cat-explore-links a.active-link::after {
  width: 100%;
}

/* --- Image Stack Animation --- */
.cat-explore-visual {
  position: relative;
  width: 100%;
  /* Increase height to accommodate hover movement */
  height: 240px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  perspective: 1000px;
}

.img-stack {
  position: relative;
  width: 280px;
  height: 200px;
}

.stack-img {
  position: absolute;
  width: 100%;
  height: auto; /* Allow image to size naturally */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  top: 0;
  left: 0;
  transform-origin: center bottom; /* Transform from bottom for fanning effect */
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a1a1a;
}

/* z-index assignments for stacking context */
/* Bottom card - starts hidden behind top */
.img-3 {
  z-index: 1;
  transform: translateY(20px) scale(0.9);
  filter: brightness(0.5);
}

/* Middle card - starts midway */
.img-2 {
  z-index: 2;
  transform: translateY(10px) scale(0.95);
  filter: brightness(0.7);
}

/* Top card - fully visible */
.img-1 {
  z-index: 3;
  transform: translateY(0) scale(1);
}

/* Hover State: Fan Out Animation */
/* Top moves up */
.cat-explore-card:hover .img-1 {
  transform: translateY(-20px) scale(1.05);
  border-color: var(--accent-blue);
  box-shadow: 0 20px 50px rgba(41, 98, 255, 0.2);
  z-index: 10;
}

/* Middle moves left and rotates */
.cat-explore-card:hover .img-2 {
  transform: translate(-60px, 20px) rotate(-10deg) scale(0.95);
  filter: brightness(0.9);
  opacity: 1;
  z-index: 9;
}

/* Bottom moves right and rotates */
.cat-explore-card:hover .img-3 {
  transform: translate(60px, 20px) rotate(10deg) scale(0.95);
  filter: brightness(0.9);
  opacity: 1;
  z-index: 9;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .category-explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .category-explore-section {
    padding: 60px 0;
  }
  .category-explore-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cat-explore-card {
    min-height: auto;
    padding-bottom: 30px;
  }
  .cat-explore-content h3 {
    font-size: 1.6rem;
  }
  .img-stack {
    width: 240px;
    height: 180px;
  }
}
/* --- Top Selling Themes Section --- */
.top-selling-section {
  padding: 80px 0;
  background: #02060e;
  position: relative;
  overflow: hidden;
}

.top-selling-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.top-selling-title-block h2 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, #00d2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  letter-spacing: -1px;
}

.top-selling-title-block p {
  color: #aeb6c4;
  font-size: 1.1rem;
  max-width: 600px;
}

.top-selling-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 1200px) {
  .top-selling-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .top-selling-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .top-selling-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium Card Styling */
.top-selling-card {
  background: rgb(0, 0, 0);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.top-selling-card:hover {
  transform: translateY(-12px);
  background: rgba(0, 0, 0, 0.06);
  border-color: #00d2ff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 210, 255, 0.2);
}

.ts-img-container {
  height: 220px;
  overflow: hidden;
  position: relative;
  padding: 10px;
}

.ts-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.6s ease;
}

.top-selling-card:hover .ts-img-container img {
  transform: scale(1.1) rotate(1deg);
}

/* Action Buttons on Image Overlay */
.ts-card-actions {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.top-selling-card:hover .ts-card-actions {
  opacity: 1;
}

.ts-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.ts-action-btn:hover {
  background: #00d2ff;
  border-color: #00d2ff;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

.ts-action-btn.add-cart-btn:hover {
    background: #00d2ff;
}

.ts-badge {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff9c4;
    color: #333;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 5;
    pointer-events: none;
}

.ts-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ts-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.5;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
  transition: color 0.3s ease;
}

.top-selling-card:hover .ts-title {
    color: #00d2ff;
}

.ts-meta-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ts-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffc107;
}

.ts-sales {
    font-size: 0.9rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ts-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.ts-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ts-old-price {
  color: #666;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.ts-new-price {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}

.ts-cart-footer-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ts-cart-footer-btn:hover {
  background: #00d2ff;
  border-color: #00d2ff;
  color: #fff;
  transform: translateY(-3px) rotate(-5deg);
  box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
}

/* Light Mode Support for Top Selling */
body.light-mode .top-selling-section {
    background: #f8f9fa;
}

body.light-mode .top-selling-title-block h2 {
    background: linear-gradient(135deg, #333 0%, #00d2ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

body.light-mode .top-selling-card {
    background: #fff;
    border-color: #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

body.light-mode .ts-title, 
body.light-mode .ts-new-price {
    color: #333;
}

body.light-mode .ts-cart-footer-btn {
    background: #f1f3f5;
    border-color: #e9ecef;
    color: #333;
}


/* --- Features Section --- */
.features-section {
  padding: 100px 0;
  background: rgba(0, 0, 0, 0.3);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-blue);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--accent-blue),
    var(--accent-blue-light)
  );
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 10px 20px rgba(41, 98, 255, 0.3);
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.feature-card p {
  font-size: 1rem;
  color: #888;
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- Sponsor Marquee Styles --- */
.sponsor-marquee-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.marquee-wrapper {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    height: 100px;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 80px;
    animation: marquee-scroll 30s linear infinite;
    padding: 0 40px;
}

.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    height: 60px;
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: grayscale(1);
    cursor: pointer;
}

.sponsor-logo:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
}

.sponsor-logo img {
    max-width: 170px;
    max-height: 100px;
    object-fit: contain;
}

.sponsor-logo i {
    font-size: 2.5rem;
    color: #fff;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Global Modern Footer --- */
.footer {
    background: #080a12;
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
    z-index: 5;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    position: relative;
    z-index: 10;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #00d2ff, #a29bfe);
}

.footer-about p {
    color: #aeb6c4;
    line-height: 1.8;
    margin: 20px 0 30px;
    font-size: 0.95rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: #aeb6c4;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.footer-links ul li a i {
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-10px);
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 8px;
}

.footer-links ul li a:hover i {
    opacity: 1;
    transform: translateX(0);
}

.footer-newsletter p {
    color: #aeb6c4;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.newsletter-box {
    position: relative;
    display: flex;
    align-items: center;
}

.newsletter-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-box input:focus {
    border-color: #00d2ff;
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-box button {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    width: 45px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #7a869a;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: #7a869a;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    background: #00d2ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2);
    border-color: transparent;
}

/* --- Footer Responsiveness --- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-about {
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-social {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .marquee-content {
        gap: 50px;
    }
    .sponsor-logo {
        min-width: 120px;
    }
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--accent-blue-light);
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.4);
}

.ts-old-price {
  font-size: 0.75rem;
  text-decoration: line-through;
  color: #666;
  display: block;
}

.ts-new-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

/* Specific Badge Colors */
.badge-yellow {
  background: #fff9c4;
  color: #555;
}
.badge-blue {
  background: #e3f2fd;
  color: #1565c0;
}
.badge-green {
  background: #e8f5e9;
  color: #2e7d32;
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .top-selling-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .top-selling-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .top-selling-header-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .top-selling-title-block h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .top-selling-grid {
    grid-template-columns: 1fr;
  }
}

/* style section slider categories */

.pro-slider-section {
  padding: 20px 0;
  overflow: hidden;
}

.pro-title {
  font-size: 50px;
  text-align: center;
  font-weight: 700;
}

.pro-slider {
  overflow: hidden;
  cursor: grab;
  height: 180px;
  display: flex;
  align-items: center;
}

.pro-track {
  display: flex;
  gap: 30px;
  padding: 0 60px;
  will-change: transform;
}

.pro-slide {
  min-width: 240px;
  height: 140px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  transition: 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.pro-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 15px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  opacity: 0.9;
  transition: 0.3s;
}

.pro-slide:hover .pro-slide-overlay {
  background: linear-gradient(to top, var(--accent-blue) 0%, transparent 100%);
  opacity: 1;
}

.pro-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.pro-slide:hover {
  transform: scale(1.05);
  border: 2px solid #00b3ff;
  box-shadow: 0 15px 40px rgba(0, 179, 255, 0.4);
}

.pro-slide:hover img {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .pro-slide {
    min-width: 280px;
    height: 170px;
  }
}

/* --- Recommended Products Section (cards-products) --- */
.cards-products {
  padding: 10px 0;
  background: rgba(41, 98, 255, 0.02);
  width: 100%;
}

.products-flex {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
}

.card-product {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 350px; /* Increased height for better visibility */
}

.card-product:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
}

.card-product-img {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  transition: var(--transition);
}

.card-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 1;
}

.card-product:hover .card-product-img img {
  transform: scale(1.1);
}

.card-badge {
  position: absolute;
  top: 0px;
  right: 120px;
  background: var(--accent-blue);
  color: white;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(41, 98, 255, 0.3);
}

.description-product {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 10;
  transition: transform 0.3s ease;
  transform: translateY(45px); /* Adjusted for better reveal */
  padding: 10px 12px;
}

.card-product:hover .description-product {
  transform: translateY(0);
}

.description-back {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.name-product {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.name-product h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.rating {
  font-size: 0.75rem;
  color: #ffc107;
}

.price-product {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}

.price-product .price {
  font-size: 1rem;
  font-weight: 700;
  color: #00ff26;
}

.price-product .old-price {
  font-size: 0.75rem;
  color: #ff3333;
  text-decoration: line-through;
}

.btn-product {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  background: var(--accent-blue);
  color: white;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-product:hover {
  background: var(--accent-blue-light);
  color: transparent !important;
}

.btn-product::after {
  content: "\f217" !important; /* shopping-basket icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute !important;
  font-size: 1.2rem;
  color: white !important;
  opacity: 0 !important;
  transform: translateY(20px) !important;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

.btn-product:hover::after {
  opacity: 1 !important;
  transform: translateY(0) !important;
  
}

/* Load More Button Refinement */
#load-more-btn {
  margin: 40px auto 0;
  display: inline-flex;
  padding: 14px 45px;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#load-more-btn:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 15px 35px rgba(41, 98, 255, 0.4);
  transform: translateY(-5px);
  color: white;
}

/* Responsiveness for Recommended Products */
@media (max-width: 1400px) {
  .products-flex,
  .premium-cards-grid {
    grid-template-columns: repeat(5, 1fr); /* Force 5 columns for slim cards */
    gap: 10px;
  }
}

@media (max-width: 1100px) {
  .products-flex,
  .premium-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 800px) {
  .products-flex,
  .premium-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .card-product {
    height: 160px;
  }
}

@media (max-width: 500px) {
  .products-flex,
  .premium-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .card-product {
    height: 145px;
  }
  .description-product {
    transform: translateY(40px);
  }
}

/* Premium Game Section Styles */
.premium-game-section {
  background-color: rgb(12, 12, 39) !important;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.game-section-inner {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

.pg-big-card {
  flex: 0 0 380px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pg-big-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pg-scroll-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.pg-small-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 10px 0 30px 0;
  align-items: stretch;
  width: 100%;
}

.pg-small-cards::-webkit-scrollbar {
  display: none;
}

.pg-arrow {
  background: rgb(0, 0, 0);
  border: none;
  border-radius: 60px;
  color: white;
  font-size: 1.9rem;
  cursor: pointer;
  position: absolute;
  z-index: 19;
  height: 50%;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
}

.pg-arrow:hover {
  color: var(--accent-blue);
  background: rgb(0, 0, 0);
  border-radius: 60px;
  transform: scale(1.1);
}

.pg-arrow-left {
  left: -20px;
  border-radius: 8px 0 0 8px;
}

.pg-arrow-right {
  right: -20px;
  border-radius: 0 8px 8px 0;
}

.pg-small-cards .card-product {
  flex: 0 0 260px;
  max-width: 260px;
  margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .pg-big-card {
    flex: 0 0 300px;
  }
}

@media (max-width: 992px) {
  .game-section-inner {
    flex-direction: column;
  }

  .pg-big-card {
    flex: 0 0 auto;
    height: 350px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .pg-arrow-left {
    left: 0;
  }

  .pg-arrow-right {
    right: 0;
  }
}

@media (max-width: 576px) {
  .pg-small-cards .card-product {
    flex: 0 0 200px;
  }
}

/* --- Explore By Platforms Section --- */
.explore-platforms-section {
  padding: 50px 0;
  background-color: transparent;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.platform-card {
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 140px;
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.platform-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.p-steam {
  background-color: #0b0f16;
}
.p-xbox {
  background-color: #107c10;
}
.p-windows {
  background-color: #00a4ef;
}
.p-disney {
  background-color: #111a54;
}
.p-youtube {
  background-color: #ff0000;
}
.p-roblox {
  background-color: #000000;
}

@media (max-width: 1024px) {
  .platforms-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 576px) {
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .platform-card {
    height: 110px;
  }
}

/* --- Premium Game Section --- */
.premium-game-section {
  padding: 30px 0 80px;
  background-color: transparent;
}

.premium-game-section .section-header h2 {
  color: #fff;
}

.premium-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.premium-card {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.premium-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
}

/* "same hover in my cards" -> we unify hover effects across cards */

.premium-card-img {
  height: 200px;
  position: relative;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.premium-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.premium-card:hover .premium-card-img img {
  transform: scale(1.1);
}

.premium-card-img.img-contain img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.top-stars {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.8rem;
  z-index: 2;
}

.top-stars-right {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.8rem;
  z-index: 2;
}

.orange-bg-mock {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff9900, #ff5500);
  opacity: 0.8;
  z-index: 0;
}
.premium-card-img.img-contain img {
  z-index: 1;
}

.premium-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.body-center {
  text-align: center;
  align-items: center;
}

.premium-card h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.premium-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.premium-title-row h4 {
  margin-bottom: 0;
}

.premium-rating {
  font-size: 0.9rem;
  color: #666;
  font-weight: bold;
}
.premium-rating i {
  color: #ffc107;
}

.premium-card-price {
  font-size: 1.2rem;
  color: #ff3333;
  font-weight: 700;
  margin-top: auto;
}

.premium-card-price-red {
  font-size: 1.2rem;
  color: #ff3333;
  font-weight: 700;
  margin-top: auto;
  margin-bottom: 15px;
}

.premium-card-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.btn-add-cart {
  background: #db3434;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  flex: 1;
  transition: 0.3s;
}

.btn-add-cart:hover {
  background: #b52a2a;
}

.search-icon-btn {
  color: #666;
  font-size: 1.2rem;
  cursor: pointer;
}

/* --- IPTV Section Styles --- */
.iptv-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: #050510;
  color: #fff;
}

/* Background Slider */
.iptv-slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.iptv-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(rgba(5, 15, 33, 0.2), rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.iptv-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: iptvSlideAnim 24s infinite;
  transform: scale(1.05);
}

.iptv-slide.img-1 {
  background-image: url("media/iptv1.jpg");
  animation-delay: 0s;
}
.iptv-slide.img-2 {
  background-image: url("media/iptv3.jpg");
  animation-delay: 6s;
}
.iptv-slide.img-3 {
  background-image: url("media/iptv2.jpg");
  animation-delay: 12s;
}
.iptv-slide.img-4 {
  background-image: url("media/iptv4.jpg");
  animation-delay: 18s;
}

@keyframes iptvSlideAnim {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  5% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  30% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.iptv-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.iptv-content {
  position: relative;
  z-index: 2;
}

.iptv-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.iptv-card {
  position: relative;
  background: rgb(0, 0, 0);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(8, 0, 255);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.iptv-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(41, 98, 255, 0.3);
}

.iptv-card-inner {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.iptv-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--accent-blue), #0039cb);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.iptv-card:hover .iptv-icon {
  transform: scale(1.2) rotate(10deg);
}

.iptv-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
  text-align: center;
}

.iptv-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-blue-light);
  margin-bottom: 25px;
  text-shadow: 0 0 10px rgba(41, 98, 255, 0.3);
}

.iptv-price span {
  font-size: 1rem;
  color: #888;
  font-weight: 400;
}

.iptv-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  width: 100%;
}

.iptv-features li {
  font-size: 0.95rem;
  color: #ccc;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
}

.iptv-features li:last-child {
  border-bottom: none;
}

.iptv-features li i {
  color: var(--accent-blue-light);
  margin-right: 10px;
  font-size: 0.8rem;
}

.btn-iptv {
  display: inline-block;
  width: 100%;
  padding: 12px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-blue), #0039cb);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.iptv-popular {
  transform: scale(1.05); /* keep this scale from previous */
}
.iptv-popular .iptv-card-inner {
  border: 1px solid rgba(41, 98, 255, 0.3);
  box-shadow: inset 0 0 20px rgba(41, 98, 255, 0.1);
  border-radius: 20px;
}
.iptv-popular:hover {
  transform: scale(1.05) translateY(-10px);
}
.iptv-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: #fff;
  padding: 5px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(255, 75, 43, 0.4);
  z-index: 2;
}

@media (max-width: 1200px) {
  .iptv-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .iptv-popular {
    transform: none;
  }
  .iptv-popular:hover {
    transform: translateY(-15px);
  }
}

@media (max-width: 768px) {
  .iptv-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Trending Movies Section (Netflix Style) --- */
.movies-slider-section {
  padding: 80px 0;
  background: #050505;
  color: #fff;
  overflow: hidden;
}

.section-header-movies {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.header-left h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-left p {
  color: #888;
  font-size: 1.1rem;
}

.slider-controls {
  display: flex;
  gap: 15px;
}

.movie-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.movie-arrow:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(41, 98, 255, 0.4);
}

.movies-track-wrapper {
  position: relative;
  overflow: visible;
  padding: 20px 0;
}

/* Fading masking for the slider sides */
.movies-slider-section .container {
  position: relative;
}

/* Improved track transition */
.movies-track {
  display: flex;
  gap: 25px;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.movie-card {
  flex: 0 0 calc(25% - 19px); /* 4 items on desktop */
  min-width: 300px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.movie-img-box {
  width: 100%;
  height: 100%;
}

.movie-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.movie-info {
  transform: translateY(20px);
  transition: transform 0.4s ease;
  width: 100%;
}

.movie-rating-top {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #ffc107;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  opacity: 0;
  transition: all 0.3s ease;
}

.movie-card:hover {
  transform: scale(1.05) translateY(-5px);
  z-index: 10;
  border-color: var(--accent-blue);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(41, 98, 255, 0.3);
}

.movie-card:hover .movie-img-box img {
  transform: scale(1.1);
}

.movie-card:hover .movie-overlay {
  opacity: 1;
}

.movie-card:hover .movie-info {
  transform: translateY(0);
}

.movie-card:hover .movie-rating-top {
  opacity: 1;
  top: 15px;
}

.movie-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.movie-desc {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-actions {
  display: flex;
  gap: 10px;
}

.btn-play {
  background: #fff;
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-play:hover {
  background: var(--accent-blue);
  color: #fff;
  transform: scale(1.05);
}

.btn-wishlist {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-wishlist:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

/* ==========================================================================
   Responsive Overhaul - Professional Grade
   ========================================================================== */

/* Large Tablets & Small Laptops (under 1200px) */
@media (max-width: 1200px) {
  :root {
    --top-bar-height: 0px;
  }

  .top-bar {
    display: none;
  }

  .navbar {
    height: 70px;
    top: 0;
  }

  .logo img {
    height: 60px;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .nav-search {
    max-width: 250px;
  }

  .container {
    max-width: 95%;
  }

  h1 {
    font-size: 3rem;
  }

  .sub-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sub-card {
    min-height: 180px;
  }
}

/* Landscape Tablets & iPads (under 1024px) */
@media (max-width: 1024px) {
  .nav-links,
  .nav-search-wrapper,
  .nav-actions .btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    margin-top: 100px;
  }

  .hero-text {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-search-container {
    margin: 30px auto;
  }

  .hero-features {
    justify-content: center;
    gap: 15px;
  }

  .sub-box {
    flex-direction: column;
    padding: 30px 20px;
  }

  .sub-info {
    text-align: center;
    flex: none;
    width: 100%;
    margin-bottom: 30px;
  }

  .sub-features {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .bestseller-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .marquee-track {
    gap: 20px;
  }

  .brand-card {
    width: 220px;
  }
}

/* Portrait Tablets & Large Phones (under 768px) */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  p {
    font-size: 1rem;
    margin: 0 auto 30px;
  }

  .sub-cards-grid {
    display: flex;
    overflow-x: auto;
    padding: 10px 5px 25px;
    scroll-snap-type: x mandatory;
    gap: 15px;
    scrollbar-width: none;
  }

  .sub-cards-grid::-webkit-scrollbar {
    display: none;
  }

  .sub-card {
    flex: 0 0 280px;
    scroll-snap-align: center;
    min-height: 220px;
  }

  .section-header h2 {
    font-size: 1.8rem;
    width: 100%;
  }

  .category-grid {
    display: flex;
    overflow-x: auto;
    flex-wrap: wrap !important;
    padding: 10px 0;
    margin-bottom: 25px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
  }

  .category-grid::-webkit-scrollbar {
    display: none;
  }

  .cat-pill {
    flex: 0 0 auto;
  }

  .movie-card {
    flex: 0 0 calc(50% - 13px);
  }
}

/* Small Phones (under 480px) */
@media (max-width: 480px) {
  h1 {
    font-size: 2.1rem;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn-secondary {
    margin-left: 0 !important;
  }

  .navbar {
    height: 65px;
  }

  .logo {
    font-size: 1.3rem;
  }

  .logo img {
    height: 40px;
  }

  .product-grid,
  .bestseller-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    flex: 0 0 100%;
  }

  .subscription-section {
    padding: 30px 0;
  }

  .brand-card {
    width: 180px;
    height: 100px;
  }
}

/* =========================================
   Light Mode Theme Overrides
   ========================================= */
body.light-mode {
  --bg-color: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  --text-color: #1a1a1a;
  --dark-surface: #ffffff;
  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.1);
  --dark: #f0f0f0;
  --glass: rgba(0, 0, 0, 0.06);
}

body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-links a,
body.light-mode .logo,
body.light-mode .nav-actions .icon-link,
body.light-mode .mobile-toggle {
  color: #333;
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
  color: var(--accent-blue);
}

body.light-mode .hero-section {
  background: radial-gradient(circle at 70% 30%, #e0eaf5, #f5f7fa 60%);
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5 {
  color: #111;
}

body.light-mode p {
  color: #555;
}

body.light-mode .mega-menu {
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-top: 2px solid var(--accent-blue);
}

body.light-mode .mega-menu-item a {
  color: #555;
}

body.light-mode .mega-menu-item:hover a,
body.light-mode .mega-menu-item.active a {
  color: #000;
}

body.light-mode .mega-menu-item:hover,
body.light-mode .mega-menu-item.active {
  background: rgba(0, 0, 0, 0.03);
}

body.light-mode .mega-preview-content {
  background: linear-gradient(to top, #ffffff 60%, transparent);
}

body.light-mode .mega-preview-content h4,
body.light-mode .mega-preview-content p {
  color: #333;
}

body.light-mode .sub-box,
body.light-mode .sub-card,
body.light-mode .product-card,
body.light-mode .bestseller-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.light-mode .product-details h4,
body.light-mode .bestseller-content h3 {
  color: #222;
}

body.light-mode .clock-container {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .time {
  color: var(--accent-blue);
  text-shadow: none;
}

body.light-mode .date,
body.light-mode .seconds {
  color: #555;
  text-shadow: none;
}

body.light-mode .category-grid button {
  color: #444;
  border-color: #ddd;
}
body.light-mode .category-grid button:hover,
body.light-mode .category-grid button.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

body.light-mode .footer,
body.light-mode footer {
  background: #f8f9fa !important;
  border-top: 1px solid #ddd;
  color: #444;
}

body.light-mode .footer h4,
body.light-mode .footer p,
body.light-mode .footer a {
  color: #333 !important;
}

body.light-mode .hero-features li {
  color: #444;
}

body.light-mode .mobile-menu {
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .close-menu,
body.light-mode .mobile-nav-links a {
  color: #333;
}

body.light-mode .mobile-submenu {
  background: rgba(0, 0, 0, 0.05);
}

body.light-mode .mobile-submenu a {
  color: #555;
}

/* =========================================
   COMPREHENSIVE CARD TEXT LIGHT MODE FIXES
   ========================================= */

/* Fix text and icon colors in general cards */
body.light-mode .product-meta span,
body.light-mode .bestseller-rating span,
body.light-mode .ts-rating span,
body.light-mode .sales-count,
body.light-mode .old-price,
body.light-mode .ts-old-price,
body.light-mode .sub-stats .count,
body.light-mode .sub-stats .added,
body.light-mode .view-all,
body.light-mode .ts-sales,
body.light-mode .rating {
  color: #666;
}

body.light-mode .product-rating .price,
body.light-mode .new-price,
body.light-mode .ts-new-price,
body.light-mode .price-product .price,
body.light-mode .bestseller-badge {
  color: #111;
  font-weight: 700;
}

body.light-mode .name-product h3,
body.light-mode .ts-title,
body.light-mode .sub-card h5 {
  color: #222;
}

body.light-mode .stars i,
body.light-mode .rating i,
body.light-mode .ts-rating i {
  color: #f5b301;
}

/* Ensure badges retain white text */
body.light-mode .card-badge,
body.light-mode .ts-badge {
  color: #fff;
}

/* Movie Slider */
body.light-mode .movie-card {
  background: transparent;
  border: none;
  box-shadow: none;
}
body.light-mode .movie-overlay {
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.8) 50%,
    transparent
  ) !important;
}
body.light-mode .movie-title,
body.light-mode .movie-desc,
body.light-mode .movie-rating-top {
  color: #111 !important;
}
body.light-mode .movie-rating-top i {
  color: #f5b301 !important;
}
body.light-mode .btn-play {
  background: var(--accent-blue);
  color: #fff;
}
body.light-mode .btn-wishlist {
  background: rgba(0, 0, 0, 0.1);
  color: #111;
}

/* Other Sections, Headers and Cards Background & Text */
body.light-mode .feature-card,
body.light-mode .iptv-card,
body.light-mode .iptv-card-inner,
body.light-mode .card-product,
body.light-mode .top-selling-card,
body.light-mode .cat-explore-card,
body.light-mode .pg-big-card,
body.light-mode .pro-slide,
body.light-mode .brand-card,
body.light-mode .offer1,
body.light-mode .offer2,
body.light-mode .offer3,
body.light-mode .offer4 {
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .feature-card h3,
body.light-mode .iptv-card h3,
body.light-mode .cat-explore-card h3,
body.light-mode .top-selling-card h4,
body.light-mode .card-product h3,
body.light-mode .offer1 h3,
body.light-mode .offer2 h3,
body.light-mode .offer3 h3,
body.light-mode .offer4 h3,
body.light-mode .pro-title {
  color: #111 !important;
}

body.light-mode .feature-card p,
body.light-mode .iptv-features li,
body.light-mode .iptv-price,
body.light-mode .cat-explore-content p,
body.light-mode .offer1 p,
body.light-mode .offer2 p,
body.light-mode .offer3 p,
body.light-mode .offer4 p,
body.light-mode .cat-explore-links a {
  color: #444 !important;
}

body.light-mode .btn-iptv,
body.light-mode .btn-white {
  color: var(--accent-blue);
  background: #fff;
  border: 1px solid var(--accent-blue);
}

body.light-mode .btn-iptv:hover,
body.light-mode .btn-white:hover {
  background: var(--accent-blue) !important;
  color: #fff !important;
}

body.light-mode .rating,
body.light-mode .price-product .price,
body.light-mode .price-product .old-price {
  color: #222 !important;
}

body.light-mode .description-back,
body.light-mode .description-product {
  background: #fff;
}

/* Add section backgrounds to transparent for Light Mode */
body.light-mode .brands-section,
body.light-mode .bestseller-section,
body.light-mode .top-selling-section,
body.light-mode .features-section,
body.light-mode .premium-game-section,
body.light-mode .movies-slider-section {
  background: transparent !important;
}

/* Fix show more buttons */
body.light-mode .btn-secondary {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  background: transparent;
}
body.light-mode .btn-secondary:hover {
  background: var(--accent-blue);
  color: #fff;
}

/* Headers */
body.light-mode .section-header h2,
body.light-mode .top-selling-title-block h2,
body.light-mode .section-header-movies h2,
body.light-mode .title-section h2,
body.light-mode .title,
body.light-mode h2.pro-title,
body.light-mode h2 {
  color: #111 !important;
}

/* Fix bestseller text gradient clipping */
body.light-mode .bestseller-header h2 {
  color: #111 !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  text-fill-color: initial !important;
}

body.light-mode .section-header p,
body.light-mode .bestseller-header p,
body.light-mode .top-selling-title-block p,
body.light-mode .section-header-movies p,
body.light-mode .title-section p,
body.light-mode .description,
body.light-mode .movies-slider-section p {
  color: #555 !important;
}

/* IPTV overrides block */
body.light-mode .iptv-section h2 {
  color: #fff !important; /* Keep iptv header white due to background canvas */
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8) !important;
}
body.light-mode .iptv-section p {
  color: rgba(255, 255, 255, 0.9) !important;
}
body.light-mode .iptv-card-inner {
  background: #fff;
}
body.light-mode .iptv-card-inner h3 {
  color: #111 !important;
}
body.light-mode .iptv-price {
  color: var(--accent-blue) !important;
}
body.light-mode .iptv-price span {
  color: #666 !important;
}
body.light-mode .iptv-features li {
  color: #444 !important;
}
body.light-mode .iptv-features li i {
  color: var(--accent-blue) !important;
}

/* Top selling wrapper to fix button alignment inside light mode */
body.light-mode .top-selling-header-wrapper {
  color: #333;
}

/* Theme toggle button specific style */
.theme-toggle-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle-btn:hover {
  color: var(--accent-blue);
  transform: scale(1.1);
}

/* --- Contact Modal Styles --- */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    background: linear-gradient(145deg, rgba(20, 25, 45, 0.9) 0%, rgba(5, 10, 20, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.contact-modal-overlay.active .contact-modal {
    transform: translateY(0) scale(1);
}

.contact-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #fff;
    transition: all 0.3s ease;
    z-index: 10;
}

.contact-modal-close:hover {
    background: #ff3366;
    transform: rotate(90deg);
}

.contact-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-modal-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
    width: 100%;
}

/* Mobile Submenu Transitions & Logic */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    list-style: none;
    padding-left: 20px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.mobile-dropdown.active .mobile-submenu {
    max-height: 500px;
    padding-bottom: 10px;
    opacity: 1;
}

.mobile-dropdown > a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.mobile-dropdown > a i {
    transition: transform 0.3s ease;
    padding: 10px; /* Larger hit area */
}

.mobile-dropdown.active > a i {
    transform: rotate(180deg);
    color: var(--accent-blue);
}

.mobile-submenu li a {
    padding: 12px 0 !important;
    font-size: 0.95rem !important;
    color: #aeb6c4 !important;
    border-bottom: none !important;
}

.mobile-submenu li a i {
    width: 25px;
    color: var(--accent-blue);
}

body.light-mode .mobile-submenu {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .mobile-submenu li a {
    color: #555 !important;
}

.contact-modal-header p {
    font-size: 0.95rem;
    color: #aaa;
    margin: 0;
    line-height: 1.5;
}

.contact-options-wrapper {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 30px;
    position: relative;
}

.contact-option {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.contact-option.active {
    color: #fff;
}

.contact-option.email-option.active {
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

.contact-option.whatsapp-option.active {
    background: linear-gradient(90deg, #25D366, #128C7E);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.contact-form {
    display: none;
    animation: fadeInForm 0.4s ease forwards;
}

.contact-form.active-form {
    display: block;
}

@keyframes fadeInForm {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-form .input-group {
    position: relative;
    margin-bottom: 25px;
}

.contact-form .input-group input,
.contact-form .input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px 16px 45px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.contact-form .input-group input:focus,
.contact-form .input-group textarea:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: #00d2ff;
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.1);
}

#whatsappContactForm .input-group input:focus,
#whatsappContactForm .input-group textarea:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.1);
}

.contact-form .input-group label {
    position: absolute;
    top: 18px;
    left: 45px;
    color: #777;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.contact-form .input-group input:focus ~ label,
.contact-form .input-group textarea:focus ~ label,
.contact-form .input-group input:not(:placeholder-shown) ~ label,
.contact-form .input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    background: #0d1222;
    padding: 0 5px;
    color: #00d2ff;
    border-radius: 4px;
}

#whatsappContactForm .input-group input:focus ~ label,
#whatsappContactForm .input-group textarea:focus ~ label,
#whatsappContactForm .input-group input:not(:placeholder-shown) ~ label,
#whatsappContactForm .input-group textarea:not(:placeholder-shown) ~ label {
    color: #25D366;
}

.contact-form .input-group .input-icon {
    position: absolute;
    top: 20px;
    left: 18px;
    color: #666;
    transition: all 0.3s ease;
}

.contact-form .input-group input:focus ~ .input-icon,
.contact-form .input-group textarea:focus ~ .input-icon {
    color: #00d2ff;
}

#whatsappContactForm .input-group input:focus ~ .input-icon,
#whatsappContactForm .input-group textarea:focus ~ .input-icon {
    color: #25D366;
}

.contact-form .input-group textarea {
    resize: none;
    height: 120px;
}

.contact-submit-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    box-shadow: none;
}

.contact-submit-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.contact-submit-btn:hover::after {
    animation: shineContact 1.5s infinite;
}

@keyframes shineContact {
    0% { left: -100%; }
    100% { left: 200%; }
}

.contact-submit-btn.email-btn {
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
}

.contact-submit-btn.email-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 210, 255, 0.5);
}

.contact-submit-btn.whatsapp-btn {
    background: linear-gradient(90deg, #25D366, #128C7E);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.contact-submit-btn.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.5);
}

.contact-submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.contact-submit-btn.loading i {
    animation: spin 1s linear infinite;
}

.contact-success {
    display: none;
    text-align: center;
    padding: 20px 0;
    animation: fadeInForm 0.5s ease forwards;
}

.contact-success.active-state {
    display: block;
}

.contact-success .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.4);
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.contact-success h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.contact-success p {
    color: #aaa;
    margin-bottom: 25px;
}

/* --- Index Page Global Responsiveness --- */

/* Category Pills (Horizontal Scroll on Mobile) */
@media (max-width: 768px) {
    .category-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding-bottom: 15px !important;
        gap: 12px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        align-items: center !important;
        justify-content: center !important;
    }
    .category-grid::-webkit-scrollbar {
        display: none;
    }
    .cat-pill {
        white-space: nowrap !important;
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* Product Grids (Standardization) */
.product-grid, .products-flex, .premium-cards-grid, .iptv-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .product-grid, .products-flex, .premium-cards-grid, .iptv-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .product-grid, .products-flex, .premium-cards-grid, .iptv-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 500px) {
    /* Force 2-column grid for ALL product sections on mobile */
    .product-grid, .products-flex, .premium-cards-grid, .iptv-cards-grid, .pg-small-cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 12px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: visible !important; /* Stop horizontal scroll on mobile for grid feel */
    }

    /* Professional Compact Cards for Mobile */
    .card-product, .product-card, .top-selling-card {
        height: auto !important;
        min-height: 240px !important;
        border-radius: 12px !important;
        background: rgba(20, 20, 20, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Make Image Dominant */
    .card-product-img, .product-thumb, .ts-img-container {
        height: 120px !important;
        width: 100% !important;
        position: relative !important;
        border-radius: 12px 12px 0 0 !important;
        padding: 0 !important;
    }
    
    .card-product-img img, .product-thumb img, .ts-img-container img {
        height: 100% !important;
        border-radius: 12px 12px 0 0 !important;
    }

    /* Compact Description Area */
    .description-product, .product-details, .ts-details {
        position: relative !important;
        transform: none !important;
        background: transparent !important;
        padding: 8px !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    /* Scale Down Typography */
    .name-product h3, .product-details h4, .ts-title, .product-details h4 {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        margin-bottom: 5px !important;
        color: #fff !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        height: 2.2em !important;
    }

    .price-product, .product-rating, .ts-price-row {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-top: auto !important;
    }

    .price-product .price, .product-rating .price, .ts-new-price {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        color: var(--accent-blue) !important;
    }

    .old-price, .ts-old-price {
        font-size: 0.75rem !important;
        opacity: 0.5 !important;
    }

    .rating {
        font-size: 0.7rem !important;
    }

    /* Shrink Utility Elements */
    .card-badge, .ts-badge {
        font-size: 0.65rem !important;
        padding: 2px 8px !important;
        right: 8px !important;
        top: 8px !important;
    }

    /* Shrink Interaction Buttons on Card Header */
    .ts-action-btn, .wishlist-btn, .cart-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }

    .browser-dots {
        top: 8px !important;
        left: 8px !important;
        scale: 0.8 !important;
    }

    /* Hide individual Buy Now buttons on mobile if they take too much space */
    .btn-product, .ts-cart-footer-btn {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
        border-radius: 6px !important;
    }
}

/* Platforms Grid */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .platforms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Premium Game Section Responsiveness */
@media (max-width: 992px) {
    .game-section-inner {
        flex-direction: column !important;
        gap: 40px;
    }
    .pg-big-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    .pg-scroll-container {
        width: 100% !important;
    }
}

/* General Spacing */
@media (max-width: 768px) {
    .recent-section, .cards-products, .premium-game-section, .iptv-section {
        padding: 60px 0 !important;
    }
    .section-header h2 {
        font-size: 1.8rem !important;
    }
}
/* --- Light Mode Contact Modal Specifics --- */
body.light-mode .contact-modal {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.95));
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

body.light-mode .contact-modal-header h2 {
    color: #222;
}

body.light-mode .contact-modal-header p {
    color: #555;
    background: transparent;
}

body.light-mode .contact-options-wrapper {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .contact-modal-close {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

body.light-mode .contact-modal-close:hover {
    background: #ff3366;
    color: #fff;
}

body.light-mode .contact-form .input-group input,
body.light-mode .contact-form .input-group textarea {
    background: #fdfdfd;
    border-color: #ddd;
    color: #333;
}

body.light-mode .contact-form .input-group input:focus,
body.light-mode .contact-form .input-group textarea:focus {
    background: #fff;
    border-color: #00d2ff;
}

body.light-mode #whatsappContactForm .input-group input:focus,
body.light-mode #whatsappContactForm .input-group textarea:focus {
    border-color: #25D366;
}

body.light-mode .contact-form .input-group label {
    color: #888;
}

body.light-mode .contact-form .input-group input:focus ~ label,
body.light-mode .contact-form .input-group textarea:focus ~ label,
body.light-mode .contact-form .input-group input:not(:placeholder-shown) ~ label,
body.light-mode .contact-form .input-group textarea:not(:placeholder-shown) ~ label {
    background: #fff;
    color: #00d2ff;
}

body.light-mode #whatsappContactForm .input-group input:focus ~ label,
body.light-mode #whatsappContactForm .input-group textarea:focus ~ label,
body.light-mode #whatsappContactForm .input-group input:not(:placeholder-shown) ~ label,
body.light-mode #whatsappContactForm .input-group textarea:not(:placeholder-shown) ~ label {
    color: #25D366;
}

body.light-mode .contact-success h3 {
    color: #222;
}

body.light-mode .contact-success p {
    color: #555;
}

/* Autocomplete Dropdown */
.search-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #080a12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    z-index: 9999;
    max-height: 350px;
    overflow-y: auto;
    display: none;
}
.search-suggestions.active {
    display: flex;
    flex-direction: column;
}
.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: #fff;
    transition: background 0.2s ease;
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover {
    background: rgba(0, 210, 255, 0.15);
}
.suggestion-img {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 15px;
}
.suggestion-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.suggestion-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.suggestion-category {
    font-size: 0.75rem;
    color: #00d2ff;
    text-transform: uppercase;
    margin-top: 3px;
    letter-spacing: 0.5px;
}
.suggestion-message {
    padding: 15px;
    text-align: center;
    color: #aeb6c4;
    font-size: 0.9rem;
}
/* Ensure the hero search autocomplete dropdown aligns well */
.hero-search-container .search-suggestions {
    text-align: left;
}
body.light-mode .search-suggestions {
    background: #fff;
    border-color: #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
body.light-mode .suggestion-item {
    border-bottom-color: #eee;
    color: #333;
}
body.light-mode .suggestion-item:hover {
    background: rgba(0, 210, 255, 0.05);
}
body.light-mode .suggestion-title {
    color: #222;
}

/* --- Premium Game Section (Slider) --- */
.game-section-inner {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.pg-big-card {
    flex: 0 0 35%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.pg-big-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pg-big-card:hover .pg-big-img {
    transform: scale(1.05);
}

.pg-scroll-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.pg-small-cards {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px 30px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pg-small-cards::-webkit-scrollbar {
    display: none;
}

.pg-small-cards .card-product {
    flex: 0 0 220px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.pg-small-cards .card-product:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.07);
    border-color: rgba(0,210,255,0.3);
}

/* Arrows */
.pg-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.pg-arrow:hover {
    background: #00d2ff;
    color: #111;
    box-shadow: 0 0 20px rgba(0,210,255,0.5);
}

.pg-arrow-left {
    left: 0;
}

.pg-arrow-right {
    right: 0;
}

.pg-arrow i {
    font-size: 1.2rem;
}

/* Best Selling Software Grid */
.premium-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

@media (max-width: 1200px) {
    .pg-small-cards .card-product {
        flex: 0 0 200px;
    }
}
