@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Gen-Z Modern Minimalist (Vercel / Apple Dark Mode) */
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #171717;
  --on-surface: #ffffff;
  --on-surface-2: #a3a3a3;
  --primary: #ffffff; /* White primary for text/icons */
  --accent: #3b82f6; /* Soft modern blue */
  --border: #262626;
  --outline: #404040;
  
  --red: #ef4444;
  --green: #10b981; 
  --gold-gradient: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%); /* Purple to Blue */
  
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  /* Force dark mode elegantly even if light is active */
  --bg: #050505;
  --surface: #111111;
  --on-surface: #fafafa;
  --on-surface-2: #a3a3a3;
  --border: #262626;
}

/* ==========================================================================
   GEN-Z MODERN OVERRIDES (APPLE / BENTO GRID STYLE)
   ========================================================================== */

html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}
body {
  background-color: var(--bg);
  color: var(--on-surface);
  letter-spacing: -0.02em; /* Trendy tight tracking */
  line-height: 1.6;
}

/* Subtle Animated Mesh Background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* Navbar / Header (Glassmorphism done right) */
.header {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  padding: 16px 0 !important;
}

.top-bar {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: var(--on-surface-2) !important;
  padding: 8px 0 !important;
  font-size: 0.85rem !important;
}
.top-bar-socials a { color: var(--on-surface-2) !important; }
.top-bar-socials a:hover { color: #fff !important; }

/* Text Gradients for Brand */
.brand-text .part1 {
  color: #fff !important;
  font-weight: 700 !important;
}
.brand-text .part2 {
  background: var(--gold-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 800 !important;
}

/* Nav Links */
.nav-link {
  color: var(--on-surface-2) !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  text-transform: none !important;
  transition: var(--transition-fast) !important;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: #fff !important;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

/* Category Filters (Pills) */
.category-btn {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: var(--on-surface-2) !important;
  border-radius: var(--radius-full) !important;
  padding: 8px 20px !important;
  font-weight: 500 !important;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast) !important;
}
.category-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}
.category-btn.active {
  background: #fff !important;
  color: #000 !important;
  border-color: transparent !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15) !important;
}

/* Product Cards (Bento Style) */
.product-card, .attic-card-new {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: var(--radius-lg) !important;
  backdrop-filter: blur(10px) !important;
  transition: all var(--transition-normal) !important;
  box-shadow: none !important;
  overflow: hidden;
}
.product-card:hover, .attic-card-new:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;
}

/* Images inside Cards */
.product-img-wrapper, .attic-img-container {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  margin: 6px 6px 0 6px !important;
  overflow: hidden !important;
}
.product-img-wrapper img, .attic-img-container img {
  border-radius: var(--radius-md) !important;
}

/* Typography inside Cards */
.product-title, .attic-card-title {
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  letter-spacing: -0.02em !important;
}
.product-category, .attic-sub-category {
  color: var(--on-surface-2) !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}
.product-price, .attic-price span {
  color: #fff !important;
  font-weight: 700 !important;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Inputs & Modals */
.search-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: var(--radius-full) !important;
  padding: 10px 20px 10px 40px !important;
  font-weight: 500 !important;
  transition: all var(--transition-fast) !important;
}
.search-input:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  outline: none !important;
}

.auth-container, .side-menu, .modal-content {
  background: #0a0a0a !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8) !important;
}

/* Badges */
.badge, .attic-status-badge {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
}
p, span {
  color: var(--on-surface-2);
}

/* Preloader fix */
#preloader { background-color: #000 !important; }
.spinner { border-top-color: #fff !important; border-color: rgba(255,255,255,0.1); }
.loader-text { color: #fff !important; }

/* Moving Background */
body {
  background: var(--bg);
  color: var(--on-surface);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 85, 0.05) 0%, transparent 40%);
  z-index: -1;
  animation: bgRotate 30s linear infinite;
  pointer-events: none;
}

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


/* ==========================================================================
   Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
}

body {
  background-color: var(--bg);
  color: var(--on-surface);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--primary);
}

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  outline: none;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--on-surface);
  font-weight: 700;
  line-height: 1.2;
}

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--on-surface-2); }
.text-success { color: var(--green); }
.text-danger { color: var(--red); }

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================================
   Site Loader
   ========================================================================== */
.site-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity var(--transition-slow);
}

.site-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  animation: pulse 2s infinite ease-in-out;
}

.loader-brand {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 2px;
  display: flex;
  gap: 8px;
}

.loader-brand .part1 { color: var(--on-surface); }
.loader-brand .part2 { color: var(--primary); }

.loader-bar-container {
  width: 200px;
  height: 4px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  margin-top: 20px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--gold-gradient);
  animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar { background-color: var(--primary); color: #fff;
  padding: 4px 0;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-marquee {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 15s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.top-bar-socials {
  display: flex;
  gap: 12px;
  padding: 0 16px;
}

.top-bar-socials a {
  color: #fff;
}

.top-bar-socials a:hover {
  color: #fff;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  background-color: rgba(7, 9, 14, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 12px 0;
  transition: all var(--transition-normal);
}

[data-theme="light"] .header {
  background-color: rgba(248, 250, 252, 0.9);
}

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

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

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
}

.brand-text .part1 { color: var(--on-surface); }
.brand-text .part2 { color: var(--primary); }

.desktop-nav {
  display: none;
}

@media (min-width: 1025px) {
  .desktop-nav {
    display: flex;
    gap: 24px;
    align-items: center;
  }
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-container {
  display: none;
  position: relative;
}

@media (min-width: 768px) {
  .search-container {
    display: flex;
    align-items: center;
  }
}

.search-input {
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--on-surface);
  padding: 8px 16px 8px 36px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.9rem;
  width: 200px;
  transition: all var(--transition-normal);
}

.search-input:focus {
  width: 250px;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--on-surface-2);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--surface);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.theme-toggle:hover {
  background-color: var(--surface-2);
  color: var(--primary);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

@media (min-width: 1025px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--on-surface);
  transition: all var(--transition-normal);
}

/* ==========================================================================
   Side Menu
   ========================================================================== */
.side-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.side-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background-color: var(--bg);
  z-index: 1002;
  transition: right var(--transition-normal);
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}

.side-menu.active {
  right: 0;
}

.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.close-menu {
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--surface);
  border-radius: 50%;
  border: 1px solid var(--border);
}

.side-menu-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-menu-link {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-menu-link:hover,
.side-menu-link.active {
  background-color: var(--surface-2);
  color: var(--primary);
}

/* ==========================================================================
   Category Bar
   ========================================================================== */
.category-wrapper {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: relative;
}

.category-container {
  display: flex;
  align-items: center;
}

.category-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  padding: 0 32px;
  flex-grow: 1;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-btn {
  white-space: nowrap;
  padding: 8px 16px;
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-btn:hover, .category-btn.active { background-color: var(--primary); color: #fff;
  border-color: var(--primary);
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.scroll-left { left: 10px; }
.scroll-right { right: 10px; }

/* ==========================================================================
   Mobile Search
   ========================================================================== */
.mobile-search {
  padding: 16px;
  background-color: var(--bg);
  display: block;
}

@media (min-width: 768px) {
  .mobile-search { display: none; }
}

.mobile-search .search-input {
  width: 100%;
}

/* ==========================================================================
   Search Suggestions
   ========================================================================== */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.search-container.active .search-suggestions {
  display: block;
}

.suggestion-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition-fast);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: var(--surface-2);
}

.suggestion-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.suggestion-info h4 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.suggestion-info p {
  font-size: 0.8rem;
  color: var(--on-surface-2);
}

/* ==========================================================================
   Banner Section
   ========================================================================== */
.banner-section {
  padding: 24px 0;
}

.banner-swiper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.banner-slide {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
  .banner-slide {
    aspect-ratio: 21 / 9;
  }
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Community Section
   ========================================================================== */
.community-section {
  padding: 16px 0;
}

.community-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
}

.community-scroll::-webkit-scrollbar {
  display: none;
}

.community-card {
  min-width: 120px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition-normal);
}

.community-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.community-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.community-name {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title a {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

/* ==========================================================================
   Top Up Game Section (Bento Grid)
   ========================================================================== */
.topup-section {
  padding: 32px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 16px;
}

@media (min-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

.bento-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  transition: all var(--transition-normal);
}

.bento-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.1);
}

.bento-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  object-fit: cover;
}

.bento-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  word-break: break-word;
}

/* ==========================================================================
   Product Grid
   ========================================================================== */
.products-section {
  padding: 32px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
  }
}

.product-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Animation class for scroll */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.product-img-wrapper {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
}

.product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.badge {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.badge.hot { background-color: var(--red); }
.badge.new { background-color: var(--green); }
.badge.discount { background-color: var(--accent); }

.product-notch {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background-color: var(--surface);
  border-top-left-radius: var(--radius-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px;
  z-index: 2;
}

.product-notch::before {
  content: '';
  position: absolute;
  top: -10px;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: transparent;
  box-shadow: 5px 5px 0 var(--surface);
  border-bottom-right-radius: 10px;
}

.product-notch::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -10px;
  width: 10px;
  height: 10px;
  background-color: transparent;
  box-shadow: 5px 5px 0 var(--surface);
  border-bottom-right-radius: 10px;
}

.product-notch img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.product-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  color: var(--on-surface-2);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.product-price-box {
  margin-bottom: 8px;
}

.product-price-old {
  font-size: 0.8rem;
  color: var(--on-surface-2);
  text-decoration: line-through;
  margin-right: 8px;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--on-surface-2);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.sold-count {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   Load More Button
   ========================================================================== */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.btn-load-more {
  padding: 12px 32px;
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-normal);
}

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

.btn-load-more i {
  transition: transform var(--transition-normal);
}

.btn-load-more:hover i {
  transform: translateY(3px);
}

/* ==========================================================================
   Special Panels (Attic, Necro, etc.)
   ========================================================================== */
.special-panel {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

/* Specific Panel Colors */
.panel-attic { --panel-color: #f5c842; }
.panel-necro { --panel-color: #8b5cf6; }
.panel-ultra { --panel-color: #ef4444; }
.panel-senju { --panel-color: #3b82f6; }
.panel-vynix { --panel-color: #10b981; }
.panel-vexoria { --panel-color: #d946ef; }
.panel-pandora { --panel-color: #f97316; }
.panel-chronos { --panel-color: #06b6d4; }
.panel-nova { --panel-color: #eab308; }

.panel-header {
  background: linear-gradient(90deg, var(--surface-2) 0%, rgba(30,41,59,0.5) 100%);
  padding: 24px;
  border-bottom: 2px solid var(--panel-color);
  display: flex;
  align-items: center;
  gap: 16px;
}

.panel-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  border: 2px solid var(--panel-color);
  padding: 4px;
  background-color: var(--bg);
}

.panel-info h3 {
  font-size: 1.5rem;
  color: var(--panel-color);
  margin-bottom: 4px;
}

.panel-info p {
  font-size: 0.9rem;
  color: var(--on-surface-2);
}

.panel-body {
  padding: 24px;
}

.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--surface-2);
  border: 2px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--on-surface-2);
  z-index: 2;
  transition: all var(--transition-normal);
}

.step-item.active .step-number {
  background-color: var(--panel-color);
  border-color: var(--panel-color);
  color: #fff;
}

.step-text {
  font-size: 0.8rem;
  margin-top: 8px;
  color: var(--on-surface-2);
  font-weight: 500;
}

.step-item.active .step-text {
  color: var(--on-surface);
}

.step-line {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: var(--border);
  z-index: 1;
}

.step-item:last-child .step-line {
  display: none;
}

.step-item.completed .step-line {
  background-color: var(--panel-color);
}

/* Game Grid & Duration Grid inside Special Panels */
.selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.selection-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  background-color: var(--surface-2);
}

.selection-card:hover {
  border-color: var(--panel-color);
  background-color: rgba(255,255,255,0.02);
}

.selection-card.active {
  border-color: var(--panel-color);
  background-color: rgba(220, 38, 38, 0.1);
  box-shadow: 0 0 0 1px var(--panel-color);
}

.selection-img {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.selection-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.selection-price {
  font-size: 0.9rem;
  color: var(--panel-color);
  font-weight: 700;
  margin-top: 4px;
}

/* ==========================================================================
   Testimonial Carousel
   ========================================================================== */
.testimonial-section {
  padding: 48px 0;
  background-color: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonial-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testi-stars {
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.testi-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--on-surface);
  margin-bottom: 24px;
  flex-grow: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.author-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--on-surface-2);
}

/* ==========================================================================
   Why Choose Us Grid
   ========================================================================== */
.features-section {
  padding: 48px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--on-surface-2);
  line-height: 1.6;
}

/* ==========================================================================
   How to Order Steps
   ========================================================================== */
.how-to-section {
  padding: 48px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
}

.step-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  box-shadow: 0 0 0 4px var(--bg);
}

.step-icon {
  font-size: 2.5rem;
  color: var(--on-surface);
  margin-bottom: 16px;
}

.step-card h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--on-surface-2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--surface-2);
  border-top: 1px solid var(--border);
  padding-top: 64px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 2fr;
  }
}

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

.footer-desc {
  font-size: 0.95rem;
  color: var(--on-surface-2);
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--on-surface);
  transition: all var(--transition-normal);
}

.social-btn:hover {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--on-surface);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--on-surface-2);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary);
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-img {
  height: 30px;
  background-color: #fff;
  border-radius: var(--radius-sm);
  padding: 4px;
  object-fit: contain;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--on-surface-2);
  padding-bottom: 100px; /* Space for bottom nav on mobile */
}

@media (min-width: 768px) {
  .footer-bottom {
    padding-bottom: 24px;
  }
}

/* ==========================================================================
   Bottom Navigation (Mobile)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 400px;
  background-color: rgba(15, 18, 25, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: space-around;
  padding: 8px;
  z-index: 1000;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .bottom-nav {
  background-color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--on-surface-2);
  transition: all var(--transition-normal);
}

.nav-item i {
  font-size: 1.2rem;
}

.nav-item span {
  font-size: 0.7rem;
  font-weight: 500;
}

.nav-item.active {
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--primary);
}

/* ==========================================================================
   Info Popup Modal
   ========================================================================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.popup-content {
  background-color: var(--surface);
  width: 90%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  position: relative;
}

.popup-overlay.active .popup-content {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background-color: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.2);
}

.popup-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.popup-marquee {
  background-color: var(--primary);
  color: #fff;
  padding: 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
}

.popup-body {
  padding: 24px;
  text-align: center;
}

.popup-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.popup-desc {
  font-size: 0.9rem;
  color: var(--on-surface-2);
  margin-bottom: 24px;
}

.btn-join {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--gold-gradient);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
  transition: transform var(--transition-fast);
}

.btn-join:hover {
  transform: scale(1.02);
}

.popup-hide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--on-surface-2);
  cursor: pointer;
}

/* ==========================================================================
   Purchase Notification Toast
   ========================================================================== */
.purchase-toast {
  position: fixed;
  bottom: 100px;
  left: -400px; /* Hidden state */
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  transition: left 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 300px;
}

@media (min-width: 768px) {
  .purchase-toast {
    bottom: 24px;
  }
}

.purchase-toast.show {
  left: 16px;
}

.toast-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.toast-info {
  flex-grow: 1;
}

.toast-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 2px;
}

.toast-desc {
  font-size: 0.75rem;
  color: var(--on-surface-2);
}

.toast-time {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 500;
}

/* ==========================================================================
   Help FAB
   ========================================================================== */
.help-fab-container {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 1050;
}

@media (min-width: 768px) {
  .help-fab-container {
    bottom: 24px;
  }
}

.help-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  cursor: pointer;
  transition: transform var(--transition-normal);
}

.help-fab:hover {
  transform: scale(1.1) rotate(15deg);
}

.help-popup {
  position: absolute;
  bottom: 70px;
  right: 0;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.help-fab-container.active .help-popup {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.help-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--on-surface);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color var(--transition-fast);
}

.help-option:hover {
  background-color: var(--surface-2);
}

.help-option i.fa-whatsapp { color: #25D366; }
.help-option i.fa-telegram { color: #0088cc; }

/* ==========================================================================
   PWA Install Bar
   ========================================================================== */
.pwa-install-bar {
  background-color: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.pwa-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.pwa-text h4 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.pwa-text p {
  font-size: 0.75rem;
  color: var(--on-surface-2);
}

.btn-install {
  background-color: var(--primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform var(--transition-fast);
}

.btn-install:hover {
  transform: scale(1.05);
}

.pwa-close {
  position: absolute;
  top: 4px;
  right: 4px;
  color: var(--on-surface-2);
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.2rem;
  }
  
  .loader-brand {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .product-title {
    font-size: 0.85rem;
  }
  
  .product-price {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 24px;
  }
}



/* Auth Modal Styles */
.auth-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}
.auth-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.auth-container {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    border-top: 4px solid var(--primary);
    transform: translateY(-20px);
    transition: transform var(--transition-normal);
}
.auth-modal-overlay.active .auth-container {
    transform: translateY(0);
}
.auth-header {
    text-align: center;
    padding: 30px 20px 20px;
}
.auth-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid var(--primary);
    background-color: var(--primary);
}
.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 5px;
}
.auth-subtitle {
    font-size: 0.9rem;
    color: var(--on-surface-2);
}
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}
.auth-tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-weight: 600;
    color: var(--on-surface-2);
    cursor: pointer;
    transition: all var(--transition-normal);
}
.auth-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}
.auth-body {
    padding: 30px 20px;
}
.auth-form {
    display: none;
}
.auth-form.active {
    display: block;
}
.guest-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--on-surface-2);
    cursor: pointer;
}
.guest-link:hover {
    color: var(--primary);
    text-decoration: underline;

/* ==========================================================================
   Premium Elegant Theme Overrides
   ========================================================================== */
.header {
  background: rgba(11, 14, 20, 0.85) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3) !important;
}

.brand-text .part1 {
  background: linear-gradient(to right, #ffffff, #94A3B8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-text .part2 {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-card {
  border-radius: 16px !important;
  background: linear-gradient(145deg, var(--surface), var(--bg)) !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 25px rgba(59, 130, 246, 0.15) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}

.product-img-wrapper {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.product-title {
  font-weight: 800 !important;
  letter-spacing: 0.5px;
}

.product-price {
  color: var(--primary) !important;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.banner-swiper {
  border-radius: 20px !important;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.1) !important;
  border: 1px solid rgba(255,255,255,0.05);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
  text-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.nav-link::after {
  background-color: var(--primary) !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.community-card {
  background: linear-gradient(145deg, var(--surface), var(--bg)) !important;
  border: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 16px !important;
}
.community-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4), 0 0 15px rgba(59, 130, 246, 0.15) !important;
}

/* Custom glow for active buttons */
button.active {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}






  
/* Falling Stars Background */  
#star-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: hidden; background: transparent; }  
.falling-star { position: absolute; background: white; border-radius: 50%; box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.4); animation: star-fall linear infinite; }  
@keyframes star-fall { 0% { transform: translateY(-20px); opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(110vh); opacity: 0; } }





/* User Dropdown Menu */
.user-dropdown-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}
.user-dropdown-toggle {
    background: #2b5c9e;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}
.user-dropdown-toggle:hover {
    background: #1e457c;
}
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 230px;
    background: #2b5c9e; /* Based on the blue background from the screenshot */
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
    border: 1px solid rgba(255,255,255,0.1);
}
/* Invisible bridge so hover doesnt break when moving mouse down */
.user-dropdown-wrapper::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 15px;
}
.user-dropdown-wrapper.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.ud-header {
    padding: 15px 15px 10px 15px;
    display: flex;
    flex-direction: column;
}
.ud-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.ud-username {
    color: white;
    font-weight: 700;
    font-size: 1rem;
}
.ud-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    width: 100%;
}
.ud-item {
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ud-balance {
    font-weight: 700;
    font-size: 1.05rem;
    padding-top: 15px;
    padding-bottom: 15px;
}
.ud-item:hover:not(.ud-balance) {
    background: rgba(0,0,0,0.15);
}
.ud-logout {
    color: #ffffff;
}
