/* ============================================
   DYNASTY — Premium Dark E-Commerce
   Design System & Styles v2.0
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --primary: #8B5CF6;
  --primary-light: #A78BFA;
  --primary-lighter: #C4B5FD;
  --primary-dark: #7C3AED;
  --primary-darker: #6D28D9;
  --primary-glow: rgba(139, 92, 246, 0.4);
  --primary-glow-soft: rgba(139, 92, 246, 0.15);
  --primary-glow-subtle: rgba(139, 92, 246, 0.08);

  --accent: #A855F7;
  --accent-light: #D8B4FE;
  --accent-pink: #E879F9;

  --bg-body: #000000;
  --bg-section: #050208;
  --bg-card: #0a0812;
  --bg-card-hover: #110e1c;
  --bg-input: #0d0a16;
  --bg-navbar: rgba(5, 2, 10, 0.85);

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-accent: #C4B5FD;

  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-light: rgba(255, 255, 255, 0.10);
  --border-accent: rgba(139, 92, 246, 0.25);
  --border-accent-strong: rgba(139, 92, 246, 0.5);

  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(139, 92, 246, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1280px;
  --navbar-height: 90px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: normal;
  background-color: #000000;
  background-image:
    radial-gradient(ellipse 900px 700px at 50% -5%, rgba(139, 92, 246, 0.14), transparent 70%),
    radial-gradient(ellipse 800px 600px at 0% 85%, rgba(139, 92, 246, 0.09), transparent 70%),
    radial-gradient(ellipse 700px 500px at 100% 95%, rgba(168, 85, 247, 0.06), transparent 70%),
    linear-gradient(180deg, #08040f 0%, #030108 40%, #000000 100%);
  background-attachment: fixed;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: transparent;
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
  /* Modern standard scrollbar (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.45) #000000;
}

::selection { background-color: var(--primary); color: white; }

/* --- Premium Floating Scrollbar (Webkit / Chrome / Edge) --- */
::-webkit-scrollbar { 
  width: 6px;
  background: #000000;
}
::-webkit-scrollbar-track { 
  background: #000000; 
}
::-webkit-scrollbar-thumb { 
  background-color: rgba(139, 92, 246, 0.45); 
  border-radius: var(--radius-full); 
  border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover { 
  background-color: var(--primary-light); 
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { color: var(--text-secondary); line-height: 1.7; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
ul, ol { list-style: none; }
img, video, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }
button { cursor: pointer; }

/* --- Utility Classes --- */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: 5rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary-lighter), var(--primary), var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.3rem 0.85rem; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  background: var(--primary-glow-subtle);
  color: var(--primary-light);
  border: 1px solid var(--border-accent);
}

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .badge { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 550px; margin-inline: auto; font-size: 0.95rem; }

/* --- Animations --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.15); } 50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.3); } }
@keyframes shine { 0% { background-position: 200% center; } 100% { background-position: -200% center; } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes countPulse { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes fadeOutDown { to { opacity: 0; transform: translateY(10px); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideOutRight { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes checkmark { 0% { height: 0; width: 0; opacity: 0; } 20% { height: 0; width: 12px; opacity: 1; } 40% { height: 24px; width: 12px; opacity: 1; } 100% { height: 24px; width: 12px; opacity: 1; } }
@keyframes particleFloat { 0% { opacity: 0; transform: translateY(100vh) scale(0); } 10% { opacity: 0.8; } 90% { opacity: 0.3; } 100% { opacity: 0; transform: translateY(-10vh) scale(1); } }

@keyframes successPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 25px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- Scroll reveal --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--navbar-height); z-index: 95000;
  background: rgba(4, 2, 8, 0.75); /* Teinte noire sombre premium */
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  transition: background var(--transition-base), box-shadow var(--transition-base);
  overflow: visible;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(139, 92, 246, 0.04) 20%,
    rgba(232, 121, 249, 0.08) 50%,
    rgba(139, 92, 246, 0.04) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  z-index: -2;
  animation: shimmerMove 8s linear infinite;
}
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), var(--accent-pink), var(--primary-light), transparent);
  filter: blur(1px);
  opacity: 0.8;
  z-index: -1;
  animation: cyberPulse 4s ease-in-out infinite alternate;
}
.navbar.scrolled { 
  background: rgba(4, 2, 8, 0.92); 
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6); 
  border-bottom: 1px solid rgba(139, 92, 246, 0.25);
}
.navbar.scrolled::before {
  opacity: 0.6;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; position: relative; z-index: 10; }

.navbar-brand { display: flex; align-items: center; gap: 0.75rem; font-size: 1.45rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.navbar-brand img { 
  width: 48px; height: 48px; border-radius: var(--radius-lg); object-fit: cover; 
  transition: transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base);
}
.navbar-brand:hover img {
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 0 15px var(--primary-light), 0 0 30px rgba(139, 92, 246, 0.4);
  filter: brightness(1.1);
}
.navbar-brand span { 
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-darker) 100%); 
  -webkit-background-clip: text; 
  background-clip: text; 
  -webkit-text-fill-color: transparent; 
  transition: text-shadow var(--transition-base);
}
.navbar-brand:hover span {
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

@keyframes shimmerMove {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes cyberPulse {
  0% {
    opacity: 0.5;
    width: 150px;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
  }
  100% {
    opacity: 1;
    width: 320px;
    box-shadow: 0 0 20px rgba(232, 121, 249, 0.6), 0 0 35px rgba(139, 92, 246, 0.4);
  }
}

.mobile-nav-dropdown {
  display: none;
}

.navbar-links { display: flex; align-items: center; gap: 2.5rem; }
.navbar-links a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  display: inline-block;
  transition: color var(--transition-base), transform var(--transition-base), text-shadow var(--transition-base);
}
.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary), var(--accent-pink));
  box-shadow: 0 0 10px var(--primary-light);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}
.navbar-links a:hover {
  color: #ffffff;
  transform: translateY(-2px);
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.7);
}
.navbar-links a:hover::after {
  width: 100%;
}

.navbar-actions { display: flex; align-items: center; gap: 0.6rem; }

.navbar-actions .icon-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}
.navbar-actions .icon-btn:hover { background: var(--primary-glow-subtle); border-color: var(--border-accent); color: var(--primary-light); }
.navbar-actions .icon-btn svg { width: 18px; height: 18px; }

/* Account avatar when logged in */
.navbar-actions .icon-btn.logged-in {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  padding: 0;
}
.account-avatar {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-count {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.625rem; font-weight: 700;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white; border-radius: var(--radius-full);
  border: 2px solid var(--bg-body);
  z-index: 2;
}
.cart-count.bump { animation: countPulse 0.3s ease; }

/* Mobile menu button */
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: all var(--transition-base); }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   USER DROPDOWN
   ============================================ */
.user-dropdown {
  position: fixed;
  top: calc(var(--navbar-height) + 8px);
  right: 1.5rem;
  width: 280px;
  background: rgba(10, 8, 18, 0.95);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-glow-strong), 0 20px 60px rgba(0, 0, 0, 0.6);
  z-index: 96000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  overflow: hidden;
  will-change: transform, opacity;
}
.user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }

.user-dropdown-header {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.05));
  border-bottom: 1px solid var(--border-subtle);
}
.user-avatar-lg {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: white; flex-shrink: 0;
}
.user-info { min-width: 0; }
.user-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.user-email { font-size: 0.72rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-dropdown-body { padding: 0.5rem; }

.user-dropdown-item {
  display: flex; align-items: center; gap: 0.75rem;
  width: 100%; padding: 0.75rem 0.85rem;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}
.user-dropdown-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }
.user-dropdown-item svg { flex-shrink: 0; }

.user-logout-btn:hover { background: rgba(239, 68, 68, 0.1) !important; color: #ef4444 !important; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding-top: var(--navbar-height); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg .glow-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: float 8s ease-in-out infinite; }
.hero-bg .glow-orb:nth-child(1) { width: 500px; height: 500px; background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%); top: -10%; left: 50%; transform: translateX(-50%); }
.hero-bg .glow-orb:nth-child(2) { width: 350px; height: 350px; background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent 70%); bottom: 10%; left: 10%; animation-delay: -3s; }
.hero-bg .glow-orb:nth-child(3) { width: 300px; height: 300px; background: radial-gradient(circle, rgba(232, 121, 249, 0.15), transparent 70%); top: 30%; right: 5%; animation-delay: -5s; }

.hero-particles { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.particle { position: absolute; width: 3px; height: 3px; background: var(--primary-light); border-radius: 50%; opacity: 0; animation: particleFloat linear infinite; }

/* Money bills floating upward */
.money-bill {
  position: absolute;
  pointer-events: none;
  animation: billFloatUp linear infinite;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes billFloatUp {
  0% {
    opacity: 0;
    transform: translateY(105vh) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  10% {
    opacity: 0.45;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-15vh) rotateX(360deg) rotateY(180deg) rotateZ(360deg);
  }
}

@keyframes billFloatUpAlt {
  0% {
    opacity: 0;
    transform: translateY(105vh) translateX(0) rotateX(0deg) rotateY(360deg) rotateZ(0deg);
  }
  10% {
    opacity: 0.45;
  }
  50% {
    transform: translateY(45vh) translateX(25px) rotateX(180deg) rotateY(180deg) rotateZ(90deg);
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-15vh) translateX(-15px) rotateX(360deg) rotateY(0deg) rotateZ(180deg);
  }
}

.hero-content { position: relative; z-index: 2; max-width: 800px; padding-inline: 1.5rem; margin-top: -9.5rem; }
.hero-badge { animation: fadeInUp 0.6s ease both; }
.hero h1 { margin-top: 1.25rem; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.08; animation: fadeInUp 0.7s ease 0.15s both; }
/* --- DYNASTY simple violet neon text effect --- */
.hero h1 .highlight {
  position: relative;
  display: inline-block;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 
    0 0 6px rgba(167, 139, 250, 0.85),
    0 0 15px rgba(139, 92, 246, 0.65),
    0 0 30px rgba(139, 92, 246, 0.4);
  padding: 0 0.25rem;
}

/* Letters stay inline-block for layout with a professional digital hover effect */
.hero h1 .highlight .letter {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease, text-shadow 0.3s ease;
  cursor: default;
  position: relative;
  z-index: 2;
  color: #ffffff;
}
.hero .hero-subtitle { margin-top: 1.25rem; font-size: clamp(0.95rem, 1.8vw, 1.15rem); color: var(--text-secondary); max-width: 550px; margin-inline: auto; line-height: 1.7; animation: fadeInUp 0.7s ease 0.3s both; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; animation: fadeInUp 0.7s ease 0.45s both; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.75rem; font-size: 0.875rem; font-weight: 600;
  border-radius: var(--radius-xl); transition: all var(--transition-base);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(139, 92, 246, 0.35), 0 8px 25px rgba(0, 0, 0, 0.3); background: linear-gradient(135deg, var(--primary-light), var(--primary)); }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent); background-size: 200% auto; animation: shine 3s ease-in-out infinite; }
.btn-secondary { background: rgba(255, 255, 255, 0.04); color: var(--text-primary); border: 1px solid var(--border-light); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-accent); transform: translateY(-2px); }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.8rem; border-radius: var(--radius-lg); }

/* --- Hero Stats --- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  margin-top: 3.5rem;
  animation: fadeInUp 0.7s ease 0.6s both;
}
.hero-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-stat .number {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary-light);
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(167, 139, 250, 0.35);
}
.hero-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  z-index: 10;
  cursor: pointer;
  animation: fadeIn 1s ease 1s both;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.scroll-indicator:hover {
  transform: translateX(-50%) translateY(-3px);
}

.scroll-button {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              inset 0 1px 0px rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.scroll-button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(167, 139, 250, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.scroll-chevron {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: color var(--transition-base), transform var(--transition-base);
  animation: scrollChevronBounce 2s infinite ease-in-out;
}

.scroll-text {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: color var(--transition-base), text-shadow var(--transition-base);
}

/* Hover States */
.scroll-indicator:hover .scroll-button {
  border-color: var(--primary-light);
  background: rgba(139, 92, 246, 0.05);
  box-shadow: 0 0 25px var(--primary-glow),
              0 8px 32px rgba(0, 0, 0, 0.5),
              inset 0 1px 0px rgba(255, 255, 255, 0.1);
}

.scroll-indicator:hover .scroll-button::before {
  opacity: 1;
}

.scroll-indicator:hover .scroll-chevron {
  color: var(--primary-light);
  filter: drop-shadow(0 0 4px var(--primary-glow));
}

.scroll-indicator:hover .scroll-text {
  color: var(--primary-light);
  text-shadow: 0 0 8px var(--primary-glow);
}

@keyframes scrollChevronBounce {
  0%, 100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(3px);
  }
}

/* ============================================
   MARQUEE BANNER
   ============================================ */
.marquee-banner { background: linear-gradient(90deg, var(--primary-darker), var(--primary), var(--accent), var(--primary-darker)); background-size: 300% auto; padding: 0.7rem 0; overflow: hidden; }
.marquee-track { display: flex; animation: marquee 25s linear infinite; width: max-content; }
.marquee-content { display: flex; align-items: center; gap: 3rem; padding-right: 3rem; white-space: nowrap; }
.marquee-content span { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: white; }
.marquee-content .dot { width: 5px; height: 5px; background: rgba(255, 255, 255, 0.5); border-radius: 50%; flex-shrink: 0; }

/* ============================================
   FILTER TABS
   ============================================ */
.filter-tabs { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}
.filter-tab-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  transition: transform var(--transition-fast);
}
.filter-tab:hover { background: var(--primary-glow-subtle); border-color: var(--border-accent); color: var(--primary-light); }
.filter-tab:hover .filter-tab-icon { transform: scale(1.08); }
.filter-tab.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-color: var(--primary); color: white; box-shadow: 0 0 20px rgba(139, 92, 246, 0.25); }

/* Inline Search Bar */
.inline-search-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.inline-search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 420px;
  padding: 0.7rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}
.inline-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow-soft), 0 0 25px rgba(139, 92, 246, 0.15);
  background: rgba(255, 255, 255, 0.05);
}
.inline-search-box svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--transition-base);
}
.inline-search-box:focus-within svg {
  color: var(--primary-light);
}
.inline-search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 500;
}
.inline-search-box input::placeholder {
  color: var(--text-muted);
}

/* Basic-Fit logo larger */
.product-card-v2[data-product-id="4"] .product-logo-wrapper {
  padding: 6px;
}
.product-card-v2[data-product-id="4"] .product-logo {
  transform: scale(1.35);
}

/* ============================================
   PRODUCTS SECTION — UNIFORM CARDS
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.product-card-v2 {
  background: linear-gradient(180deg, rgba(16, 12, 30, 0.45) 0%, rgba(8, 6, 15, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Glass gloss sweep effect on hover */
.product-card-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 60%, transparent 70%);
  background-size: 200% auto;
  transition: background-position 0.7s ease-in-out;
  background-position: 100% 0;
  z-index: 5;
  pointer-events: none;
}
.product-card-v2:hover::before {
  background-position: -100% 0;
}

/* Beautiful dynamic brand glowing shadows on card hover based on individual product colors! */
.product-card-v2:hover {
  transform: translateY(-10px) scale(1.015);
}
/* Discord Nitro - Discord Blue */
.product-card-v2[data-product-id="1"]:hover {
  border-color: rgba(88, 101, 242, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(88, 101, 242, 0.22);
}
/* Server Boosts - Pink/Discord Boost */
.product-card-v2[data-product-id="2"]:hover {
  border-color: rgba(255, 115, 250, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 115, 250, 0.22);
}
/* Social Boosts - Instagram Magenta */
.product-card-v2[data-product-id="3"]:hover {
  border-color: rgba(225, 48, 108, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(225, 48, 108, 0.22);
}
/* Compte Basic-Fit - Basic-Fit Orange */
.product-card-v2[data-product-id="4"]:hover {
  border-color: rgba(255, 102, 0, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 102, 0, 0.22);
}
/* Compte Spotify - Spotify Green */
.product-card-v2[data-product-id="5"]:hover {
  border-color: rgba(29, 185, 84, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(29, 185, 84, 0.22);
}
/* Compte Netflix - Netflix Red */
.product-card-v2[data-product-id="6"]:hover {
  border-color: rgba(229, 9, 20, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(229, 9, 20, 0.22);
}
/* Robux - Roblox White */
.product-card-v2[data-product-id="7"]:hover {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 255, 255, 0.25);
}
/* V-Bucks - Fortnite Blue */
.product-card-v2[data-product-id="8"]:hover {
  border-color: rgba(0, 176, 255, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 176, 255, 0.22);
}
/* Valorant Points - Valorant Light Red */
.product-card-v2[data-product-id="9"]:hover {
  border-color: rgba(255, 75, 85, 0.65);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 75, 85, 0.3);
}

/* Card Header — FIXED HEIGHT for uniformity */
.product-card-v2-header {
  position: relative;
  padding: 1.75rem 1.5rem 1.25rem;
  background: radial-gradient(circle at top, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 180px;
  justify-content: center;
}

/* Product Logo — UNIFORM SIZE & HOVER POP */
.product-logo-wrapper {
  width: 64px;
  height: 64px;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 12px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  flex-shrink: 0;
  position: relative;
}

.product-card-v2:hover .product-logo-wrapper {
  transform: scale(1.15);
  border-color: var(--border-accent);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
}

.product-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}

.product-logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-light);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(168, 85, 247, 0.1));
  border-radius: var(--radius-lg);
}

/* Product Badge */
.product-badge-v2 {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  background: var(--primary); color: white;
  z-index: 2;
}
.product-badge-v2.popular { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.product-badge-v2.hot { background: linear-gradient(135deg, #ef4444, #dc2626); }
.product-badge-v2.new { background: linear-gradient(135deg, #10b981, #059669); }

/* Product Title — UNIFORM */
.product-card-v2-header .product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.product-card-v2-header .product-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Card Body */
.product-card-v2-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card-content-top { display: flex; flex-direction: column; gap: 0.4rem; }
.card-content-bottom { display: flex; flex-direction: column; margin-top: auto; padding-top: 1rem; }

/* Premium Select */
.premium-select-wrapper { position: relative; margin-top: 0.35rem; margin-bottom: 0.35rem; width: 100%; }
.premium-select-label { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 0.35rem; }

.premium-select {
  appearance: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  padding: 0.65rem 1rem;
  width: 100%; cursor: pointer;
  font-size: 0.8rem; font-weight: 500;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}
.premium-select:hover { border-color: rgba(139, 92, 246, 0.4); background-color: rgba(255, 255, 255, 0.06); }
.premium-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow-soft); }

/* Pill selector */
.pill-selector-group { display: flex; gap: 0.3rem; margin-bottom: 0.5rem; width: 100%; }
.pill-btn { flex: 1; text-align: center; padding: 0.45rem 0.25rem; font-size: 0.62rem; font-weight: 600; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-secondary); cursor: pointer; transition: all var(--transition-base); white-space: nowrap; }
.pill-btn:hover { background: rgba(139, 92, 246, 0.05); border-color: rgba(139, 92, 246, 0.25); color: var(--primary-light); }
.pill-btn.active { background: rgba(139, 92, 246, 0.15); border-color: var(--primary-light); color: white; box-shadow: 0 0 12px rgba(139, 92, 246, 0.2); }

/* Product note */
.product-note {
  margin-top: 0.35rem; padding: 0.55rem 0.75rem;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--radius-lg);
  font-size: 0.65rem; color: var(--text-secondary); line-height: 1.4;
  display: flex; align-items: flex-start; gap: 0.4rem;
}
.product-note .note-icon { flex-shrink: 0; font-size: 0.7rem; }

/* Starting price hint */
.card-starting-price {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-weight: 500;
}
.card-starting-price span {
  font-weight: 700;
  color: var(--primary-light);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* View Product button */
.view-product-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: white;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
  padding-right: 1rem;
}
.view-product-btn::before {
  content: '→';
  position: absolute;
  right: 1.25rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}
.view-product-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  background-size: 200% auto;
  animation: shine 4s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Slide arrow-in & intensify primary colors on card hover! */
.product-card-v2:hover .view-product-btn {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)) !important;
  border-color: var(--primary-light) !important;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.45);
  padding-right: 2rem; /* Creates a clean, elegant slide left to make space for the arrow */
}
.product-card-v2:hover .view-product-btn::before {
  opacity: 1;
  transform: translateX(0);
}
.product-card-v2:hover .view-product-btn::after {
  opacity: 1;
}


/* ============================================
   PRODUCT DETAIL PAGE OVERLAY
   ============================================ */
@keyframes detailSlideIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.15); }
}

.product-detail-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-body);
  z-index: 90000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  overflow-y: auto;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 900px 700px at 50% -5%, rgba(139, 92, 246, 0.10), transparent 70%),
    radial-gradient(ellipse 600px 400px at 100% 80%, rgba(168, 85, 247, 0.06), transparent 70%),
    linear-gradient(180deg, #08040f 0%, #030108 40%, #000000 100%);
}
.product-detail-overlay.open {
  opacity: 1;
  visibility: visible;
}

.product-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--navbar-height) + 2rem) 2rem 4rem;
  min-height: 100vh;
}

/* Detail Page Layout */
.detail-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  animation: detailSlideIn 0.5s ease;
  padding-top: 1rem;
}

/* ---- LEFT COLUMN ---- */
.detail-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Product Visual */
.detail-image-area {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(16, 12, 30, 0.6), rgba(8, 6, 15, 0.9));
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-product-visual {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-visual-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 60%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.detail-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.3));
  position: relative;
  z-index: 1;
}

.detail-main-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-light);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(168, 85, 247, 0.1));
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 1;
}

/* Live Stats */
.detail-live-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.detail-stat-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition-base);
}
.detail-stat-box:hover {
  border-color: var(--border-accent);
}

.detail-stat-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.detail-stat-icon.live-pulse {
  animation: livePulse 2s ease-in-out infinite;
}

.detail-stat-info {
  display: flex;
  flex-direction: column;
}
.detail-stat-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}
.detail-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Review Card */
.detail-review-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  transition: border-color var(--transition-base);
}
.detail-review-card:hover {
  border-color: var(--border-accent);
}

.detail-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.detail-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.detail-review-author {
  text-align: right;
}
.detail-review-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}
.detail-review-date {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-review-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 0.85rem;
}

.detail-review-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 0.65rem;
}

.detail-review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-review-meta span {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Trust Badge */
.detail-trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.detail-trust-badge svg {
  color: #10b981;
  flex-shrink: 0;
}

/* Description Section */
.detail-description-section {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
}

.detail-section-title {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.detail-section-title span {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}
.detail-title-bar {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-pink));
  border-radius: 2px;
}

.detail-description-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.15rem;
}

.detail-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.detail-feature-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.detail-feature-check {
  color: #10b981;
  font-weight: 800;
  font-size: 0.7rem;
}

/* ---- RIGHT COLUMN ---- */
.detail-right {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 2rem;
  align-self: start;
}

.detail-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  z-index: 10;
  cursor: pointer;
}
.detail-close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.detail-mobile-back-btn {
  display: none;
}

.detail-category-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
}

.detail-product-name {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text-primary);
}

.detail-product-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -0.5rem;
}

/* Price Box */
.detail-price-box {
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}
.detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.detail-price-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.detail-stock-badge {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.detail-price-value {
  font-size: 2.25rem;
  font-weight: 900;
  font-family: var(--font-mono);
  background: linear-gradient(135deg, #ffffff 40%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: all 0.3s ease;
}

/* Option Groups */
.detail-option-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.detail-option-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Detail Select & Custom Select Dropdown */
.detail-select-wrapper {
  position: relative;
}
.custom-select-container {
  position: relative;
  width: 100%;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: #000000;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-3xl);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  text-align: left;
}
.custom-select-trigger:hover {
  border-color: var(--primary-light);
  box-shadow: 0 0 15px var(--primary-glow-soft);
  background: #050208;
}
.custom-select-arrow {
  color: var(--text-muted);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}
.custom-select-container.open .custom-select-arrow {
  transform: rotate(180deg);
  color: var(--primary-light);
}
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(10, 8, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-glow-strong), 0 20px 50px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1000;
  padding: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
}
.custom-select-container.open .custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-select-dropdown::-webkit-scrollbar {
  width: 4px;
}
.custom-select-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.custom-select-dropdown::-webkit-scrollbar-thumb {
  background-color: var(--border-accent);
  border-radius: var(--radius-full);
}

.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-xl);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.custom-select-option:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}
.custom-option-label {
  text-align: left;
}
.custom-option-price {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.custom-select-option.selected {
  color: var(--accent-pink);
  background: rgba(139, 92, 246, 0.08);
}
.custom-select-option.selected .custom-option-price {
  color: var(--accent-pink);
  font-weight: 700;
}

/* Section Pills */
.detail-section-pills {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}
.detail-pill-btn {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}
.detail-pill-btn:hover {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.25);
  color: var(--primary-light);
}
.detail-pill-btn.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--primary-light);
  color: white;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

/* Detail Note */
.detail-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--radius-lg);
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.detail-note-icon {
  flex-shrink: 0;
  font-size: 0.75rem;
}

/* Quantity Selector */
.detail-qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  width: fit-content;
  background: rgba(255, 255, 255, 0.02);
}
.detail-qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.detail-qty-btn:hover {
  background: var(--primary-glow-subtle);
  color: var(--primary-light);
}
.detail-qty-value {
  min-width: 48px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 0.25rem;
}

/* Action Buttons */
.detail-action-btns {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.65rem;
}

.detail-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
}
.detail-cart-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.detail-cart-btn.detail-btn-added {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border-color: #10b981 !important;
  color: white !important;
}
.detail-cart-btn svg { flex-shrink: 0; }

.detail-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: white;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}
.detail-buy-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  background-size: 200% auto;
  animation: shine 3s ease-in-out infinite;
}
.detail-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.35), 0 8px 25px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}
.detail-buy-btn svg { flex-shrink: 0; position: relative; z-index: 1; }

/* Guarantees */
.detail-guarantees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.detail-guarantee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: border-color var(--transition-base);
}
.detail-guarantee-item:hover {
  border-color: var(--border-accent);
}

.detail-guarantee-icon {
  font-size: 1.25rem;
}

.detail-guarantee-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.detail-guarantee-label span {
  color: var(--text-primary);
  font-weight: 700;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.category-card {
  position: relative; padding: 2rem 1.5rem; text-align: center;
  border-radius: var(--radius-2xl); background: var(--bg-card);
  border: 1px solid var(--border-subtle); transition: all var(--transition-base);
  cursor: pointer; overflow: hidden;
}
.category-card::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: 0; transition: opacity var(--transition-base); }
.category-card:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.category-card:hover::before { opacity: 1; }

.category-icon { width: 60px; height: 60px; margin-inline: auto; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; font-size: 2rem; border-radius: var(--radius-xl); background: var(--primary-glow-subtle); border: 1px solid var(--border-accent); }
.category-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.category-card p { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================
   PROMO BANNER
   ============================================ */
.promo-banner { position: relative; padding: 4rem 0; overflow: hidden; }
.promo-inner { position: relative; max-width: var(--container-max); margin-inline: auto; padding: 3.5rem 3rem; border-radius: var(--radius-3xl); background: linear-gradient(135deg, #1a0a2e, #2d1155 50%, #1a0a2e); border: 1px solid var(--border-accent); overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.promo-inner::before { content: ''; position: absolute; inset: -2px; z-index: 0; border-radius: var(--radius-3xl); background: linear-gradient(135deg, var(--primary), var(--accent-pink), var(--primary)); opacity: 0.15; filter: blur(30px); }
.promo-content { position: relative; z-index: 1; max-width: 500px; }
.promo-content h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 0.75rem; }
.promo-content p { font-size: 0.95rem; margin-bottom: 1.5rem; }
.promo-stats { position: relative; z-index: 1; display: flex; gap: 2rem; flex-wrap: wrap; }
.promo-stat-item { text-align: center; padding: 1.25rem 1.5rem; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); min-width: 110px; }
.promo-stat-item .value { font-size: 1.75rem; font-weight: 800; font-family: var(--font-mono); color: var(--primary-light); line-height: 1; }
.promo-stat-item .label { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.35rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.testimonial-card { padding: 1.75rem; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); transition: all var(--transition-base); }
.testimonial-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-glow); }
.testimonial-stars { display: flex; gap: 3px; color: #f59e0b; font-size: 0.85rem; margin-bottom: 1rem; }
.testimonial-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: var(--radius-full); background: linear-gradient(135deg, var(--primary), var(--accent-pink)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: white; flex-shrink: 0; }
.testimonial-info .name { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.testimonial-info .role { font-size: 0.7rem; color: var(--text-muted); }

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section { padding: 5rem 0; }
.newsletter-card { max-width: var(--container-max); margin-inline: auto; text-align: center; padding: 3rem 2.5rem; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-3xl); position: relative; overflow: hidden; }
.newsletter-card::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 80%; height: 1px; background: linear-gradient(90deg, transparent, var(--primary), transparent); }
.newsletter-card h2 { margin-bottom: 0.5rem; font-size: 1.5rem; }
.newsletter-card p { font-size: 0.9rem; margin-bottom: 1.75rem; max-width: 600px; margin-inline: auto; }
.newsletter-form { display: flex; gap: 0.75rem; max-width: 440px; margin-inline: auto; }
.newsletter-form input { flex: 1; padding: 0.8rem 1.15rem; background: var(--bg-input); border: 1px solid var(--border-light); border-radius: var(--radius-xl); color: var(--text-primary); font-size: 0.875rem; transition: border-color var(--transition-fast); }
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow-subtle); }

/* ============================================
   FOOTER
   ============================================ */
.footer { border-top: 1px solid var(--border-subtle); padding: 4rem 0 2rem; background: linear-gradient(180deg, transparent, rgba(5, 2, 10, 0.8)); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3rem; }
.footer-brand { max-width: 280px; }
.footer-brand .navbar-brand { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }
.footer-brand .social-links { display: flex; gap: 0.65rem; margin-top: 1.25rem; }
.footer-brand .social-links a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-subtle); color: var(--text-secondary); font-size: 0.9rem; transition: all var(--transition-fast); }
.footer-brand .social-links a:hover { background: var(--primary-glow-subtle); border-color: var(--border-accent); color: var(--primary-light); }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-primary); margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul li a { font-size: 0.85rem; color: var(--text-muted); transition: color var(--transition-fast); }
.footer-col ul li a:hover { color: var(--primary-light); }

.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }
.footer-bottom-info { display: flex; flex-direction: column; gap: 0.4rem; max-width: 650px; text-align: left; }
.footer-disclaimer { font-size: 0.68rem !important; color: var(--text-muted) !important; line-height: 1.45; opacity: 0.6; font-weight: 400; }
.footer-bottom .payment-methods { display: flex; gap: 0.5rem; }
.footer-bottom .payment-methods span { padding: 0.25rem 0.65rem; font-size: 0.7rem; font-weight: 600; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); color: var(--text-muted); transition: all var(--transition-fast); }
.footer-bottom .payment-methods span:hover { border-color: var(--border-accent); color: var(--primary-light); }
.pm-paypal { color: #0070ba !important; }
.pm-btc { color: #f7931a !important; }
.pm-eth { color: #627eea !important; }
.pm-usdt { color: #26a17b !important; }

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100000;
  opacity: 0; visibility: hidden;
  transition: all var(--transition-base);
  will-change: opacity, visibility;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-sidebar {
  position: fixed; top: 0; right: 0;
  width: 420px; max-width: 92vw; height: 100vh;
  background: rgba(8, 5, 15, 0.97);
  border-left: 1px solid var(--border-accent);
  z-index: 100001;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex; flex-direction: column;
  box-shadow: none;
  will-change: transform;
}
.cart-sidebar.open { transform: translateX(0); box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), transparent);
}
.cart-header h3 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.cart-header-count { font-size: 0.8rem; color: var(--primary-light); font-weight: 600; }

.cart-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.cart-close:hover { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: #ef4444; }

.cart-items { flex: 1; overflow-y: auto; padding: 0.75rem 1.25rem; }

.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.cart-empty .empty-icon { font-size: 3rem; margin-bottom: 0.75rem; opacity: 0.4; }
.cart-empty p { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--text-secondary); }
.cart-empty span { font-size: 0.8rem; }

.cart-item {
  display: flex; gap: 0.85rem; padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  animation: fadeInUp 0.3s ease;
}
.cart-item:last-child { border-bottom: none; }

.cart-item-image {
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(16, 12, 30, 0.8), rgba(26, 17, 48, 0.8));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden; padding: 8px;
  border: 1px solid var(--border-subtle);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-image span { font-size: 1.1rem; font-weight: 700; color: var(--primary-light); }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info .item-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-info .item-tier { font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-mono); margin-bottom: 0.25rem; }
.cart-item-info .item-price { font-size: 0.85rem; font-weight: 700; color: var(--primary-light); font-family: var(--font-mono); }

.cart-item-qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.cart-item-qty button {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem; font-weight: 600;
  transition: all var(--transition-fast);
}
.cart-item-qty button:hover { background: var(--primary-glow-subtle); border-color: var(--border-accent); color: var(--primary-light); }
.cart-item-qty span { font-size: 0.85rem; font-weight: 600; min-width: 20px; text-align: center; }

.cart-item-remove {
  align-self: flex-start; color: var(--text-muted);
  padding: 0.35rem; transition: color var(--transition-fast);
  border-radius: var(--radius-md);
}
.cart-item-remove:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.03), transparent);
}
.cart-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cart-total .total-label { font-size: 0.9rem; color: var(--text-secondary); }
.cart-total .total-value { font-size: 1.35rem; font-weight: 800; font-family: var(--font-mono); background: linear-gradient(135deg, #fff 40%, var(--primary-light)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.cart-checkout-btn { width: 100%; }

/* ============================================
   MODAL SYSTEM (Shared)
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 200000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: all var(--transition-base);
  will-change: opacity, visibility;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-close-btn {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  z-index: 10;
}
.modal-close-btn:hover { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: #ef4444; }

/* ============================================
   AUTH MODAL
   ============================================ */
.auth-modal {
  position: relative;
  width: 100%; max-width: 420px;
  background: rgba(10, 8, 18, 0.97);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-3xl);
  padding: 2rem 2rem 2.25rem;
  box-shadow: var(--shadow-glow-strong), 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: scaleIn 0.3s ease;
  will-change: transform, opacity;
}

.auth-modal-header {
  text-align: center; margin-bottom: 1.75rem;
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 1rem; }
.auth-logo img { width: 48px; height: 48px; border-radius: var(--radius-lg); }
.auth-modal-header h3 { font-size: 1.25rem; font-weight: 700; }

.auth-tabs {
  display: flex; position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 4px;
  margin-bottom: 1.75rem;
}
.auth-tab {
  flex: 1; padding: 0.6rem;
  font-size: 0.8rem; font-weight: 600;
  text-align: center;
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  transition: all var(--transition-base);
  position: relative; z-index: 2;
}
.auth-tab.active { color: white; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: 0 0 15px rgba(139, 92, 246, 0.3); }
.auth-tab:hover:not(.active) { color: var(--text-secondary); }

#auth-tab-indicator {
  position: absolute; top: 4px; left: 4px;
  width: calc(50% - 4px); height: calc(100% - 8px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transition: transform var(--transition-base);
  z-index: 1;
  display: none; /* Hidden, using active class instead */
}

.auth-form {
  display: flex; flex-direction: column; gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label {
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 0.4rem;
}
.form-group label svg { flex-shrink: 0; color: var(--text-muted); }

.form-group input {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow-soft); background: rgba(255, 255, 255, 0.05); }

.form-error {
  display: none;
  padding: 0.65rem 0.85rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-lg);
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 500;
}
.form-error.shake { animation: shake 0.4s ease; }

.auth-submit-btn {
  margin-top: 0.5rem;
  padding: 0.85rem !important;
  font-size: 0.9rem !important;
}

/* ============================================
   CHECKOUT MODAL
   ============================================ */
.checkout-modal {
  position: relative;
  width: 100%; max-width: 480px;
  background: rgba(10, 8, 18, 0.97);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-3xl);
  padding: 2rem;
  box-shadow: var(--shadow-glow-strong), 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: scaleIn 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
  will-change: transform, opacity;
}

.checkout-step { animation: fadeIn 0.3s ease; }

.checkout-back {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  transition: color var(--transition-fast);
}
.checkout-back:hover { color: var(--primary-light); }

.checkout-modal-header {
  text-align: center; margin-bottom: 1.5rem;
}
.checkout-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.checkout-modal-header h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.35rem; }
.checkout-total-display { font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); }
.checkout-total-display span { font-size: 1.3rem; font-weight: 800; }

.checkout-subtitle {
  text-align: center; font-size: 0.85rem;
  color: var(--text-muted); margin-bottom: 1.25rem;
}

/* Payment options */
.payment-options { display: flex; flex-direction: column; gap: 0.75rem; }

.payment-option {
  display: flex; align-items: center; gap: 1rem;
  width: 100%; padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  text-align: left;
}
.payment-option:hover {
  border-color: var(--border-accent);
  background: rgba(139, 92, 246, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.payment-option-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem; font-weight: 800;
}
.paypal-bg, .crypto-bg {
  background: transparent;
  border: 1.5px solid rgba(168, 85, 247, 0.45);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  overflow: hidden;
}
.payment-option-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.paypal-logo, .crypto-logo {
  color: var(--primary-light);
}

.payment-option-info { flex: 1; }
.payment-option-name { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.1rem; }
.payment-option-desc { font-size: 0.72rem; color: var(--text-muted); }

.payment-option-arrow { color: var(--text-muted); transition: all var(--transition-fast); }
.payment-option:hover .payment-option-arrow { color: var(--primary-light); transform: translateX(3px); }

/* PayPal step */
.paypal-info { text-align: center; }
.paypal-info p { font-size: 0.85rem; margin-bottom: 1.25rem; }

.paypal-email-field { margin-bottom: 1.25rem; text-align: left; }
.paypal-email-field label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.35rem; }
.paypal-email-field input {
  width: 100%; padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  color: var(--text-primary); font-size: 0.875rem;
  transition: all var(--transition-fast);
}
.paypal-email-field input:focus { border-color: #0070ba; box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.2); }

.btn-paypal {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%; padding: 0.9rem;
  background: linear-gradient(135deg, #0070ba, #003087) !important;
  border: 1px solid #0070ba !important;
  border-radius: var(--radius-xl) !important;
  color: white; font-size: 0.9rem; font-weight: 700;
  transition: all var(--transition-base);
  position: relative; overflow: hidden;
}
.btn-paypal:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(0, 112, 186, 0.35); }
.btn-paypal::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent); background-size: 200% auto; animation: shine 3s ease-in-out infinite; }

/* Crypto step */
.crypto-select { margin-bottom: 1.25rem; }
.crypto-select-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; text-align: center; }

.crypto-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }

.crypto-option {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}
.crypto-option:hover { border-color: var(--border-accent); background: rgba(139, 92, 246, 0.05); }
.crypto-option.active { border-color: var(--primary); background: rgba(139, 92, 246, 0.12); box-shadow: 0 0 15px rgba(139, 92, 246, 0.2); }
.crypto-symbol { font-size: 1.2rem; font-weight: 800; }
.crypto-name { font-size: 0.6rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.crypto-option.active .crypto-name { color: var(--primary-light); }

/* Crypto BTC orange, ETH blue, USDT green, LTC gray */
.crypto-option[data-crypto="btc"] .crypto-symbol { color: #f7931a; }
.crypto-option[data-crypto="eth"] .crypto-symbol { color: #627eea; }
.crypto-option[data-crypto="usdt"] .crypto-symbol { color: #26a17b; }
.crypto-option[data-crypto="ltc"] .crypto-symbol { color: #bfbbbb; }

.crypto-payment-info { text-align: center; }

.crypto-address-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1rem;
  margin-bottom: 0.85rem;
  text-align: left;
}
.crypto-address-box label {
  font-size: 0.7rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.05em; display: block;
  margin-bottom: 0.5rem;
}
.crypto-address-row {
  display: flex; align-items: center; gap: 0.5rem;
}
.crypto-address-row code {
  flex: 1; font-size: 0.68rem; font-family: var(--font-mono);
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.08);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-md);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.copy-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--primary-glow-subtle);
  border: 1px solid var(--border-accent);
  color: var(--primary-light);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.copy-btn:hover { background: var(--primary); color: white; }

.crypto-amount-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1rem;
  margin-bottom: 1.25rem;
  text-align: left;
}
.crypto-amount-box label {
  font-size: 0.7rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.05em; display: block;
  margin-bottom: 0.35rem;
}
.crypto-amount {
  font-size: 1.1rem; font-weight: 700;
  font-family: var(--font-mono);
  color: var(--primary-light);
}

.crypto-confirm-btn { width: 100%; margin-bottom: 0.75rem; }

.payment-secure {
  display: flex; align-items: center; justify-content: center; gap: 0.35rem;
  font-size: 0.68rem; color: var(--text-muted);
  margin-top: 0.75rem;
}
.payment-secure svg { color: #10b981; flex-shrink: 0; }

/* ============================================
   CHECKOUT SUCCESS
   ============================================ */
.success-animation {
  text-align: center; padding: 1rem 0;
}

.success-checkmark {
  width: 80px; height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex; align-items: center; justify-content: center;
  animation: successPulse 2s ease infinite;
}

.check-icon {
  width: 30px; height: 30px;
  position: relative;
}
.check-icon .icon-line {
  display: block;
  position: absolute;
  height: 3px;
  background: white;
  border-radius: 2px;
}
.check-icon .line-tip {
  width: 12px;
  bottom: 0; left: 0;
  transform: rotate(45deg);
  transform-origin: left bottom;
}
.check-icon .line-long {
  width: 22px;
  bottom: 0; right: 0;
  transform: rotate(-45deg);
  transform-origin: right bottom;
}

.success-animation h3 {
  font-size: 1.35rem; font-weight: 700;
  margin-bottom: 0.5rem;
  color: #10b981;
}
.success-animation p {
  font-size: 0.9rem; margin-bottom: 1.5rem;
  max-width: 320px; margin-inline: auto;
}

.order-number {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.85rem; font-weight: 600;
  color: #10b981;
  margin-bottom: 1.5rem;
}

#checkout-step-success {
  align-items: center;
  justify-content: center;
}

/* ============================================
   ORDERS MODAL
   ============================================ */
.orders-modal {
  position: relative;
  width: 100%; max-width: 520px;
  background: rgba(10, 8, 18, 0.97);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-3xl);
  padding: 2rem;
  box-shadow: var(--shadow-glow-strong), 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: scaleIn 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
  will-change: transform, opacity;
}

.orders-header { margin-bottom: 1.25rem; }
.orders-header h3 { font-size: 1.15rem; font-weight: 700; }

.orders-list { display: flex; flex-direction: column; gap: 0.85rem; }

/* ============================================
   LEGAL MODAL WITH TABS
   ============================================ */
.legal-modal {
  position: relative;
  width: 100%; max-width: 650px;
  background: rgba(10, 8, 18, 0.98);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-3xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-glow-strong), 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: scaleIn 0.3s ease;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
}
.legal-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 4px;
  margin-bottom: 1.75rem;
  flex-shrink: 0;
}
.legal-tab {
  flex: 1; padding: 0.65rem;
  font-size: 0.8rem; font-weight: 700;
  text-align: center;
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  transition: all var(--transition-base);
}
.legal-tab.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}
.legal-tab:hover:not(.active) {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
}
.legal-content-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.legal-tab-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: fadeIn 0.3s ease;
}
.legal-header { margin-bottom: 1.15rem; flex-shrink: 0; }
.legal-header h3 { font-size: 1.25rem; font-weight: 800; color: var(--text-primary); }
.legal-scrollable {
  overflow-y: auto;
  padding-right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  text-align: left;
}
.legal-scrollable::-webkit-scrollbar { width: 4px; }
.legal-scrollable::-webkit-scrollbar-track { background: transparent; }
.legal-scrollable::-webkit-scrollbar-thumb { background-color: var(--border-accent); border-radius: var(--radius-full); }

.legal-scrollable h4 { font-size: 0.95rem; font-weight: 700; color: var(--primary-light); margin-top: 0.5rem; margin-bottom: 0.1rem; }
.legal-scrollable p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; }
.legal-scrollable strong { color: var(--text-primary); }
.legal-scrollable code { font-family: var(--font-mono); font-size: 0.75rem; background: rgba(139, 92, 246, 0.1); color: var(--primary-light); padding: 0.15rem 0.35rem; border-radius: var(--radius-sm); border: 1px solid rgba(139, 92, 246, 0.2); }

/* ============================================
   INFORMATION MODAL WITH TABS
   ============================================ */
.info-modal {
  position: relative;
  width: 100%; max-width: 650px;
  background: rgba(10, 8, 18, 0.98);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-3xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-glow-strong), 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: scaleIn 0.3s ease;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
}
.info-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 4px;
  margin-bottom: 1.75rem;
  flex-shrink: 0;
}
.info-tab {
  flex: 1; padding: 0.65rem;
  font-size: 0.8rem; font-weight: 700;
  text-align: center;
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  transition: all var(--transition-base);
}
.info-tab.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}
.info-tab:hover:not(.active) {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
}
.info-content-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.info-tab-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: fadeIn 0.3s ease;
}
.info-header { margin-bottom: 1.15rem; flex-shrink: 0; }
.info-header h3 { font-size: 1.25rem; font-weight: 800; color: var(--text-primary); }
.info-scrollable {
  overflow-y: auto;
  padding-right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  text-align: left;
}
.info-scrollable::-webkit-scrollbar { width: 4px; }
.info-scrollable::-webkit-scrollbar-track { background: transparent; }
.info-scrollable::-webkit-scrollbar-thumb { background-color: var(--border-accent); border-radius: var(--radius-full); }

.info-scrollable h4 { font-size: 0.95rem; font-weight: 700; color: var(--primary-light); margin-top: 0.5rem; margin-bottom: 0.1rem; }
.info-scrollable p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; }
.info-scrollable strong { color: var(--text-primary); }


.order-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1rem;
  transition: all var(--transition-fast);
}
.order-item:hover { border-color: var(--border-accent); }

.order-item-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.65rem;
}
.order-id { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--primary-light); }
.order-date { font-size: 0.72rem; color: var(--text-muted); }

.order-item-body { margin-bottom: 0.65rem; }
.order-product { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 0.2rem; }

.order-item-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}
.order-method { font-size: 0.72rem; color: var(--text-muted); }
.order-total { font-size: 0.95rem; font-weight: 700; font-family: var(--font-mono); color: var(--primary-light); }

/* ============================================
   SPINNER
   ============================================ */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

/* ============================================
   SEARCH MODAL
   ============================================ */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000000;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 15vh;
  opacity: 0; visibility: hidden;
  transition: all var(--transition-base);
  will-change: opacity, visibility;
}
.search-overlay.open { opacity: 1; visibility: visible; }

.search-modal {
  width: 100%; max-width: 560px;
  background: rgba(10, 8, 18, 0.97);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-glow-strong);
  will-change: transform, opacity;
}
.search-overlay.open .search-modal { transform: translateY(0); }

.search-input-wrapper {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.search-input-wrapper svg { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.search-input-wrapper input { flex: 1; font-size: 1rem; color: var(--text-primary); background: none; }
.search-input-wrapper input::placeholder { color: var(--text-muted); }

.search-results { max-height: 360px; overflow-y: auto; padding: 0.5rem; }

.search-result-item {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.75rem; border-radius: var(--radius-lg);
  cursor: pointer; transition: background var(--transition-fast);
}
.search-result-item:hover { background: rgba(255, 255, 255, 0.04); }

.search-result-item .result-icon {
  width: 42px; height: 42px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0d0a18, #1a1130);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 8px; overflow: hidden;
}
.search-result-item .result-icon img { width: 100%; height: 100%; object-fit: contain; }
.search-result-item .result-info .result-name { font-size: 0.875rem; font-weight: 600; }
.search-result-item .result-info .result-price { font-size: 0.78rem; color: var(--primary-light); font-family: var(--font-mono); }

.search-no-results { padding: 2rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-container {
  position: fixed; bottom: 2rem; right: 2rem;
  z-index: 1000001;
  display: flex; flex-direction: column; gap: 0.5rem;
}

.toast {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.85rem 1.15rem;
  background: rgba(10, 8, 18, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glow), 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.3s ease;
  font-size: 0.85rem; font-weight: 500;
}
.toast.fade-out { animation: fadeOutDown 0.3s ease forwards; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .promo-inner { flex-direction: column; text-align: center; padding: 2.5rem 2rem; }
  .promo-content { max-width: 100%; }
  .promo-stats { justify-content: center; }

  /* Product Detail - Tablet */
  .detail-page { grid-template-columns: 1fr; gap: 2rem; }
  .detail-right { position: static; }
  .product-detail-container { padding: 1.5rem; }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 70px;
  }

  .navbar-brand {
    gap: 0.5rem;
    font-size: 1.2rem;
  }

  .navbar-brand img {
    width: 38px;
    height: 38px;
  }

  .navbar-actions {
    gap: 0.4rem;
  }

  .navbar-actions .icon-btn {
    width: 36px;
    height: 36px;
  }

  .hero-content {
    margin-top: -3rem;
  }

  .navbar .container {
    padding-inline: 1rem;
  }

  .navbar-links {
    display: flex;
    position: fixed;
    top: var(--navbar-height);
    right: 0;
    left: auto;
    width: 280px;
    height: calc(100vh - var(--navbar-height));
    background: rgba(6, 4, 14, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1.5px solid rgba(139, 92, 246, 0.15);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2rem;
    gap: 1.75rem;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s ease,
                visibility 0.4s ease;
    z-index: 94000;
    overflow-y: auto;
    scrollbar-width: none;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5), -10px 0 35px rgba(0, 0, 0, 0.8);
  }
  .navbar-links::-webkit-scrollbar {
    display: none;
  }
  .navbar-links.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  .navbar-links a {
    text-align: left;
    width: 100%;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding-block: 0.5rem;
    transition: all var(--transition-base);
    align-items: center;
    display: flex;
  }
  .navbar-links a:hover {
    color: #ffffff;
    padding-left: 0.35rem;
    text-shadow: 0 0 8px var(--primary-glow);
  }
  .navbar-links a::after {
    display: none !important;
  }

  .mobile-menu-btn { display: flex; }

  /* Mobile Dropdown for Informations */
  .mobile-nav-dropdown {
    display: block;
    width: 100%;
  }
  .mobile-nav-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding-block: 0.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    text-align: left;
  }
  .mobile-nav-dropdown-btn:hover {
    color: #ffffff;
  }
  .mobile-nav-dropdown-arrow {
    transition: transform var(--transition-base);
    color: var(--text-muted);
  }
  .mobile-nav-dropdown.open .mobile-nav-dropdown-arrow {
    transform: rotate(180deg);
    color: #ffffff;
  }
  .mobile-nav-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), opacity var(--transition-base), margin var(--transition-base);
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 1.25rem;
    margin-top: 0;
    border-left: 1.5px solid rgba(139, 92, 246, 0.2);
    margin-left: 0.25rem;
  }
  .mobile-nav-dropdown.open .mobile-nav-dropdown-content {
    max-height: 250px;
    opacity: 1;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
  }
  .mobile-nav-dropdown-content a {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
    padding: 0.25rem 0 !important;
    transition: all var(--transition-base) !important;
  }
  .mobile-nav-dropdown-content a:hover {
    color: #ffffff !important;
    padding-left: 0.25rem !important;
  }

  .hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

  .products-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; gap: 0.75rem; }
  
  .product-card-v2-header {
    padding: 0.75rem 1rem 0.35rem;
    min-height: auto;
  }
  .product-logo-wrapper {
    width: 44px;
    height: 44px;
    padding: 6px;
    margin-bottom: 0.35rem;
    border-radius: var(--radius-xl);
  }
  .product-card-v2-header .product-title {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
  }
  .product-card-v2-header .product-subtitle {
    font-size: 0.68rem;
  }
  .product-badge-v2 {
    font-size: 0.48rem;
    padding: 0.12rem 0.35rem;
    top: 0.45rem;
    right: 0.45rem;
  }
  .product-card-v2-body {
    padding: 0.35rem 1rem 0.75rem;
  }
  .card-starting-price {
    font-size: 0.68rem;
    margin-bottom: 0.45rem;
  }
  .card-starting-price span {
    font-size: 0.8rem;
  }
  .view-product-btn {
    font-size: 0.78rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-xl);
    gap: 0.3rem;
  }
  .view-product-btn::before {
    display: none;
  }
  .product-card-v2:hover .view-product-btn {
    padding-right: 0.75rem !important;
  }

  .filter-tabs { gap: 0.35rem; }
  .filter-tab { padding: 0.4rem 0.85rem; font-size: 0.72rem; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-bottom-info { text-align: center; align-items: center; }

  .newsletter-form { flex-direction: column; }
  .section { padding-block: 3.5rem; }
  .promo-inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem 0.6rem 0.6rem;
    gap: 1.5rem;
    margin-inline: 1rem;
  }

  .cart-sidebar { width: 100%; max-width: 100%; }

  /* Product Detail - Mobile */
  .detail-page { gap: 1.5rem; }
  .product-detail-container { padding: 1rem 1rem 3rem; }
  .detail-live-stats { grid-template-columns: 1fr; }
  .detail-action-btns { grid-template-columns: 1fr 1fr; }
  .detail-features-grid { grid-template-columns: 1fr; }
  .detail-product-name { font-size: 1.4rem; }
  
  .detail-close-btn {
    display: none;
  }
  .detail-mobile-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-fast);
    align-self: start;
    margin-bottom: 0.5rem;
  }
  .detail-mobile-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-accent);
    color: var(--primary-light);
  }
  .detail-mobile-back-btn svg {
    transition: transform var(--transition-fast);
  }
  .detail-mobile-back-btn:hover svg {
    transform: translateX(-3px);
  }

  .auth-modal { max-width: 100%; border-radius: var(--radius-2xl); padding: 1.5rem; }
  .checkout-modal { max-width: 100%; border-radius: var(--radius-2xl); padding: 1.5rem; }
  .checkout-modal.success-active,
  .checkout-modal:has(#checkout-step-success:not([style*="display: none"])) {
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
    overflow-x: hidden; /* Prevent horizontal scrollbar */
  }
  .checkout-modal.success-active::-webkit-scrollbar,
  .checkout-modal:has(#checkout-step-success:not([style*="display: none"]))::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
  }
  .orders-modal { max-width: 100%; border-radius: var(--radius-2xl); padding: 1.5rem; }

  .crypto-options { grid-template-columns: repeat(2, 1fr); }

  .user-dropdown { right: 0.75rem; width: calc(100vw - 1.5rem); max-width: 300px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .hero-stat .number { font-size: 1.75rem; }
  .hero-stat .label { font-size: 0.625rem; letter-spacing: 0.05em; margin-top: 0.35rem; }
  .categories-grid { grid-template-columns: 1fr; max-width: 300px; margin-inline: auto; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .payment-methods { flex-wrap: wrap; justify-content: center; }

  /* Promo banner icons horizontal on mobile */
  .promo-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.4rem !important;
    width: 100% !important;
  }
  .promo-stat-item {
    min-width: 0 !important;
    padding: 0.75rem 0.25rem !important;
    border-radius: var(--radius-lg) !important;
  }
  .promo-stat-item .label {
    font-size: 0.55rem !important;
    letter-spacing: 0.02em !important;
    margin-top: 0.35rem !important;
    line-height: 1.2 !important;
  }
  .promo-stat-item .payment-option-icon {
    width: 28px !important;
    height: 28px !important;
  }
  .promo-stat-item .payment-option-icon svg {
    width: 14px !important;
    height: 14px !important;
  }
}

/* ============================================
   SVG EMOJI REPLACEMENTS
   ============================================ */
.inline-pill-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  width: 14px;
  height: 14px;
}
.marquee-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  width: 13px;
  height: 13px;
  color: white;
}

/* Discord CTA button styling */
.btn-discord {
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: white;
  border: 1px solid rgba(88, 101, 242, 0.4);
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-discord:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #6575F8, #5865F2);
  box-shadow: 0 0 40px rgba(88, 101, 242, 0.45), 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: #5865F2;
}
.btn-discord::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  background-size: 200% auto;
  animation: shine 3s ease-in-out infinite;
}

/* --- Discord Payment Instructions Styles --- */
.payment-instruction-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-xl);
}
.payment-instruction-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.35);
}
.payment-instruction-step .step-text {
  flex: 1;
}
.payment-instruction-step .step-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.payment-instruction-step .step-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}
.discord-channel {
  background: rgba(88, 101, 242, 0.15);
  color: #a5b4fc;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border: 1px solid rgba(88, 101, 242, 0.3);
  font-weight: 600;
}
.paypal-rules {
  list-style: none;
  padding: 0;
  margin: 0.65rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.paypal-rules li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.rule-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.rule-friends {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.rule-notes {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.rule-screen {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* --- Checklist Styles for Step 3 --- */
.paypal-checklist, .crypto-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.checklist-item:hover {
  background: rgba(139, 92, 246, 0.02);
  border-color: rgba(139, 92, 246, 0.2);
}
.checklist-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checklist-custom-box {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  margin-top: 2px;
}
.checklist-item:hover .checklist-custom-box {
  border-color: var(--primary-light);
}
.checklist-checkbox:checked ~ .checklist-custom-box {
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  border-color: transparent;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}
.checklist-checkbox:checked ~ .checklist-custom-box::after {
  content: '✓';
  color: white;
  font-size: 0.8rem;
  font-weight: 900;
}
.checklist-checkbox:checked ~ .checklist-content p {
  color: var(--text-primary);
  opacity: 0.85;
}
.checklist-content {
  text-align: left;
  flex: 1;
}
.checklist-content .rule-badge {
  display: inline-block;
  margin-bottom: 0.35rem;
}
.checklist-content p {
  font-size: 0.78rem !important;
  color: var(--text-secondary);
  line-height: 1.4 !important;
  margin: 0 !important;
}

/* --- Interactive Discord Channel Button Styles --- */
.btn-discord-channel {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(88, 101, 242, 0.12);
  color: #a5b4fc;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  border: 1px solid rgba(88, 101, 242, 0.25);
  font-weight: 700;
  transition: all var(--transition-fast);
  cursor: pointer;
  vertical-align: middle;
  margin: 0 0.15rem;
  text-decoration: none;
  line-height: 1.2;
}
.btn-discord-channel:hover {
  background: rgba(88, 101, 242, 0.25);
  color: #ffffff;
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.35);
  transform: translateY(-1px);
}
.channel-hashtag {
  color: #5865f2;
  font-weight: 900;
  font-size: 0.95rem;
}

/* --- Secure Shield Animations --- */
@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.3));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.7));
  }
}
