﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&family=Noto+Sans+TC:wght@400;500;700;900&family=Outfit:wght@800;900&display=swap');

:root {
  --bg-base: #030305;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-light: rgba(255, 255, 255, 0.15);
  --primary: #9333ea;
  --primary-dark: #7e22ce;
  --secondary: #06b6d4;
  --accent: #9333ea;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --success: #10b981;
  --danger: #ef4444;
  --font-sans: 'Inter', 'Noto Sans TC', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --radius-round: 9999px;
  --blur: blur(24px);
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;

  /* Theme-switchable background variables */
  --body-bg: #030305;
  --body-bg-full: #030305;
  --pseudo-opacity: 1;
}

/* ========== Per-element Theme Transitions ==========
   Transitions are placed directly on elements that change color.
   NO wildcard (*) transitions — iOS Safari can't handle those
   with backdrop-filter / will-change compositor layers. */

/* ========== Light Theme ========== */
html.light-mode {
  color-scheme: light;
  --bg-base: #f8f7ff;
  --bg-glass: rgba(0, 0, 0, 0.02);
  --bg-glass-hover: rgba(0, 0, 0, 0.05);
  --border-glass: rgba(0, 0, 0, 0.06);
  --border-glass-light: rgba(0, 0, 0, 0.12);
  --text-main: #1e1b4b;
  --text-muted: #6b7280;
  --body-bg: #f8f7ff;
  --body-bg-full: #f8f7ff;
  --pseudo-opacity: 0;
  background-color: #f8f7ff;
  color: #1e1b4b;
}

/* iOS Safari fix: set bg/color DIRECTLY on body (same element as transition).
   Inherited CSS-variable changes from html don't reliably trigger transitions
   on body in WebKit. This matches the 簽名網站 pattern (body.dark-mode). */
body.light-mode {
  background-color: #f8f7ff;
  color: #1e1b4b;
}

/* Dark-mode aurora pseudo-elements fade via --pseudo-opacity
   (dark=1, light=0). Transition handles the smooth crossfade. */

/* Navbar */
html.light-mode .nav-inner {
  background: rgba(255,255,255,0.82); border-color: rgba(0,0,0,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
html.light-mode .nav-inner.scrolled {
  background: rgba(255,255,255,0.95); box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}
html.light-mode .logo { color: #1e1b4b; }
html.light-mode .nav-link { color: #6b7280; }
html.light-mode .nav-link:hover,
html.light-mode .nav-link.active { color: #1e1b4b; }
html.light-mode .nav-link.active::after { background: var(--primary); }
html.light-mode .cart-btn,
html.light-mode .account-btn,
html.light-mode .theme-toggle-btn,
html.light-mode .hamburger { color: #374151; border-color: rgba(0,0,0,0.1); }
html.light-mode .cart-btn:hover,
html.light-mode .account-btn:hover,
html.light-mode .theme-toggle-btn:hover { background: rgba(0,0,0,0.05); }
html.light-mode .cart-badge { border-color: rgba(255,255,255,0.9); }

/* Dropdown */
html.light-mode .nav-dropdown-menu {
  background: rgba(255,255,255,0.98); border-color: rgba(0,0,0,0.06);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
html.light-mode .dd-item { color: #4b5563; }
html.light-mode .dd-item:hover { background: rgba(147,51,234,0.06); color: var(--primary); }
html.light-mode .dd-item:active { background: rgba(147,51,234,0.1); color: var(--primary); }

/* Hero */
html.light-mode .hero h1 { color: #1e1b4b; text-shadow: none; }
html.light-mode .hero p { color: #6b7280; }
html.light-mode .hero-badge { background: rgba(147,51,234,0.06); border-color: rgba(147,51,234,0.15); color: var(--primary); box-shadow: none; }
html.light-mode .gradient-text { text-shadow: 0 0 20px rgba(168,85,247,0.3), 0 0 40px rgba(168,85,247,0.1); }
html.light-mode .btn-glass { background: rgba(0,0,0,0.03); color: #374151; border-color: rgba(0,0,0,0.1); }
html.light-mode .btn-glass:hover { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.15); }
html.light-mode .float-card {
  background: rgba(255,255,255,0.75); border-color: rgba(0,0,0,0.06);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06); color: #1e1b4b;
}
html.light-mode .fc-icon { background: rgba(147,51,234,0.08); border-color: rgba(147,51,234,0.15); }
html.light-mode .fc-text p { color: #6b7280; }

/* Stats */
html.light-mode .stats { border-color: rgba(0,0,0,0.05); background: linear-gradient(90deg, transparent, rgba(0,0,0,0.01), transparent); }
html.light-mode .stat-num { color: #1e1b4b; text-shadow: none; }

/* Sections */
html.light-mode .section::before { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.04), transparent); }
html.light-mode .section-title { color: #1e1b4b; }

/* Game Hero */
html.light-mode .game-hero { background: linear-gradient(135deg, rgba(147,51,234,0.04) 0%, rgba(99,102,241,0.03) 100%); }
html.light-mode .game-hero-content h1 { color: #1e1b4b; }
html.light-mode .game-hero-desc { color: #6b7280; }
html.light-mode .games-hero { background: linear-gradient(135deg, rgba(147,51,234,0.04) 0%, rgba(99,102,241,0.03) 100%); }
html.light-mode .games-hero-content h1 { color: #1e1b4b; }
html.light-mode .games-hero-desc { color: #6b7280; }
html.light-mode .game-card { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
html.light-mode .game-card:hover { background: rgba(147,51,234,0.04); border-color: rgba(147,51,234,0.15); }
html.light-mode .game-card-info h3 { color: #1e1b4b; }
html.light-mode .game-card-info p { color: #6b7280; }
html.light-mode .back-link { color: #6b7280; }
html.light-mode .back-link:hover { color: var(--primary); }

/* Categories */
html.light-mode .cat-filter { background: rgba(0,0,0,0.03); color: #6b7280; border-color: rgba(0,0,0,0.06); }
html.light-mode .cat-filter:hover { background: rgba(0,0,0,0.06); color: #1e1b4b; }
html.light-mode .cat-filter.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Products */
html.light-mode .product-card {
  background: rgba(255,255,255,0.85); border-color: rgba(0,0,0,0.05);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
html.light-mode .product-card::before { background: rgba(0,0,0,0.03); }
html.light-mode .product-card:hover {
  background: rgba(255,255,255,0.95); border-color: rgba(147,51,234,0.25);
  box-shadow: 0 12px 35px rgba(147,51,234,0.1);
}
html.light-mode .p-badge { background: rgba(255,255,255,0.92); border-color: rgba(0,0,0,0.08); backdrop-filter: blur(12px); }
html.light-mode .p-badge.hot { color: #7c3aed; background: rgba(147,51,234,0.1); border-color: rgba(147,51,234,0.2); box-shadow: 0 2px 8px rgba(147,51,234,0.12); }
html.light-mode .p-badge.new { color: #0891b2; background: rgba(6,182,212,0.1); border-color: rgba(6,182,212,0.2); box-shadow: 0 2px 8px rgba(6,182,212,0.12); }
html.light-mode .p-img-area { background: radial-gradient(circle at top, rgba(147,51,234,0.05), transparent 70%); }
html.light-mode .p-name { color: #1e1b4b; }
html.light-mode .p-game { color: var(--primary); }
html.light-mode .p-feature { color: #6b7280; background: rgba(0,0,0,0.02); }
html.light-mode .p-footer { border-top-color: rgba(0,0,0,0.06); }
html.light-mode .p-add-btn { background: rgba(0,0,0,0.03); color: #374151; border-color: rgba(0,0,0,0.08); }
html.light-mode .p-add-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
html.light-mode .tier-opt { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); color: #4b5563; }
html.light-mode .tier-opt strong { color: #1e1b4b; }
html.light-mode .tier-opt .tier-main span { color: var(--primary); }
html.light-mode .tier-opt:hover { background: rgba(0,0,0,0.04); color: #1e1b4b; }
html.light-mode .tier-opt.selected { background: rgba(147,51,234,0.06); border-color: var(--primary); }
html.light-mode .modal-detail { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
html.light-mode .modal-detail-content { color: #4b5563; }

/* Product Modal */
html.light-mode .product-modal {
  background: rgba(255,255,255,0.98); border-color: rgba(0,0,0,0.06);
  box-shadow: 0 40px 80px rgba(0,0,0,0.12);
}
html.light-mode .modal-title { color: #1e1b4b; }
html.light-mode .modal-game { color: var(--primary); }
html.light-mode .modal-img { background: radial-gradient(circle, rgba(147,51,234,0.06), transparent); border-color: rgba(0,0,0,0.05); }

/* Reviews */
html.light-mode .review-card { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.05); }
html.light-mode .review-card::before { color: rgba(0,0,0,0.04); }
html.light-mode .r-name { color: #1e1b4b; }
html.light-mode .r-game { color: var(--primary); }

/* CTA */
html.light-mode .cta-box {
  background: radial-gradient(circle at center, rgba(147,51,234,0.06) 0%, rgba(255,255,255,0.5) 100%);
  border-color: rgba(147,51,234,0.12);
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}
html.light-mode .cta-box::before { background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px); }
html.light-mode .cta-box h2 { color: #1e1b4b; }

/* Contact & FAQ */
html.light-mode .contact-link-card {
  background: rgba(255,255,255,0.6); border-color: rgba(0,0,0,0.05);
}
html.light-mode .contact-link-card:hover { background: rgba(255,255,255,0.85); border-color: rgba(147,51,234,0.2); }
html.light-mode .contact-link-card .text strong { color: #1e1b4b; }
html.light-mode .faq-box { background: rgba(255,255,255,0.5); border-color: rgba(0,0,0,0.05); }
html.light-mode .faq-box h3 { color: #1e1b4b; }
html.light-mode .faq-q { color: #1e1b4b; }
html.light-mode .faq-item { border-bottom-color: rgba(0,0,0,0.06); }

/* Cart */
html.light-mode .cart-drawer {
  background: rgba(255,255,255,0.98); border-left-color: rgba(0,0,0,0.06);
  box-shadow: -10px 0 40px rgba(0,0,0,0.08);
}
html.light-mode .cart-header { border-bottom-color: rgba(0,0,0,0.06); }
html.light-mode .cart-header h3,
html.light-mode .cart-close { color: #1e1b4b; }
html.light-mode .cart-close { background: rgba(0,0,0,0.04); }
html.light-mode .cart-close:hover { background: rgba(0,0,0,0.08); color: #1e1b4b; }
html.light-mode .c-item { background: rgba(0,0,0,0.015); border-color: rgba(0,0,0,0.05); }
html.light-mode .c-item:hover { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
html.light-mode .c-item-title { color: #1e1b4b; }
html.light-mode .c-item-img { background: rgba(147,51,234,0.04); border-color: rgba(0,0,0,0.05); }
html.light-mode .c-qty { color: #1e1b4b; }
html.light-mode .c-qty-wrap { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.06); }
html.light-mode .c-qty-btn { color: #374151; background: rgba(0,0,0,0.04); }
html.light-mode .c-qty-btn:hover { background: var(--primary); color: #fff; }
html.light-mode .c-del { color: var(--danger); background: rgba(239,68,68,0.06); }
html.light-mode .c-del:hover { background: var(--danger); color: #fff; }
html.light-mode .cart-footer { background: rgba(248,247,255,0.95); border-top-color: rgba(0,0,0,0.06); }
html.light-mode .cart-total-label { color: #6b7280; }

/* Auth Modal */
html.light-mode .auth-modal {
  background: rgba(255,255,255,0.98); border-color: rgba(0,0,0,0.06);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
html.light-mode .auth-tabs { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
html.light-mode .auth-tab { color: #9ca3af; }
html.light-mode .auth-tab.active { color: #fff; background: var(--primary); }
html.light-mode .auth-field label { color: #4b5563; }
html.light-mode .auth-field input {
  background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.1); color: #1e1b4b;
}
html.light-mode .auth-field input::placeholder { color: #9ca3af; }
html.light-mode .auth-field input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(147,51,234,0.08); }
html.light-mode .btn-send-code { background: rgba(147,51,234,0.08); color: var(--primary); border-color: rgba(147,51,234,0.2); }
html.light-mode .btn-send-code:hover:not(:disabled) { background: var(--primary); color: #fff; }
html.light-mode .btn-send-code:disabled { background: rgba(0,0,0,0.02); color: #9ca3af; border-color: rgba(0,0,0,0.06); }
html.light-mode .modal-close { color: #9ca3af; background: rgba(0,0,0,0.04); }
html.light-mode .modal-close:hover { color: #1e1b4b; background: rgba(0,0,0,0.08); }
html.light-mode .modal-overlay { background: rgba(0,0,0,0.2); }
html.light-mode .auth-error { color: var(--danger); }

/* Profile */
html.light-mode .profile-name { color: #1e1b4b; }
html.light-mode .profile-balance { background: rgba(16,185,129,0.06); border-color: rgba(16,185,129,0.15); }
html.light-mode .profile-info { color: #1e1b4b; }
html.light-mode .profile-stat { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.05); }
html.light-mode .profile-stat span { color: #6b7280; }
html.light-mode .user-balance-badge { background: rgba(147,51,234,0.08); color: var(--primary); border-color: rgba(147,51,234,0.15); }
html.light-mode .account-btn.logged-in { border-color: var(--primary); background: rgba(147,51,234,0.08); }

/* Footer */
html.light-mode .footer { background: linear-gradient(to bottom, transparent, rgba(248,247,255,0.8)); border-top-color: rgba(0,0,0,0.05); }
html.light-mode .footer,
html.light-mode .f-desc { color: #6b7280; }
html.light-mode .f-title { color: #374151; }
html.light-mode .f-links a { color: #6b7280; }
html.light-mode .f-links a:hover { color: var(--primary); }
html.light-mode .footer-bottom { color: #9ca3af; border-top-color: rgba(0,0,0,0.05); }
html.light-mode .social-btn { background: rgba(0,0,0,0.03); color: #6b7280; border-color: rgba(0,0,0,0.06); }
html.light-mode .social-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Toast */
html.light-mode .toast { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #065f46; }
html.light-mode .toast i { color: var(--success); }
html.light-mode .toast-error { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #991b1b; }
html.light-mode .toast-error i { color: #ef4444; }
html.light-mode .toast-warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #92400e; }
html.light-mode .toast-warning i { color: #f59e0b; }

/* Scrollbar */
html.light-mode ::-webkit-scrollbar-track { background: var(--bg-base); }
html.light-mode ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); }
html.light-mode ::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Mobile Bottom Nav */
html.light-mode .mobile-bottom-nav {
  background: rgba(255,255,255,0.92); border-top-color: rgba(0,0,0,0.06);
  box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
}
html.light-mode .bottom-nav-item { color: #9ca3af; }
html.light-mode .bottom-nav-item.active { color: var(--primary); }
html.light-mode .bn-badge { border-color: rgba(255,255,255,0.9); }

/* Mobile Menu (nav-links fullscreen) */
@media (max-width: 768px) {
  html.light-mode .nav-links {
    background: rgba(248,247,255,0.98);
  }
  html.light-mode .nav-link { border-bottom-color: rgba(0,0,0,0.06); }
  html.light-mode .nav-link:active { color: var(--primary); }
  html.light-mode .nav-dropdown-menu {
    background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.04); box-shadow: none;
  }
  html.light-mode .nav-inner { background: rgba(255,255,255,0.88); }
  html.light-mode .dd-item:active { background: rgba(147,51,234,0.08); color: var(--primary); }
}

/* Theme Toggle Button */
.theme-toggle-btn {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  background: transparent; border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem;
  cursor: pointer; transition: background 0.2s ease;
}
.theme-toggle-btn:hover { background: rgba(255,255,255,0.08); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100vh; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-tap-highlight-color: transparent; background-color: #030305; transition: background-color 0.3s ease; }
body {
  font-family: var(--font-sans);
  background-color: #030305;
  color: #f8fafc;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: 
    radial-gradient(ellipse 80% 60% at 10% 40%, rgba(147, 51, 234, 0.15), transparent 50%),
    radial-gradient(ellipse 60% 80% at 90% 25%, rgba(99, 102, 241, 0.12), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 90%, rgba(236, 72, 153, 0.10), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(6, 182, 212, 0.08), transparent 40%),
    radial-gradient(circle at 30% 70%, rgba(168, 85, 247, 0.06), transparent 35%);
  pointer-events: none;
  z-index: -1;
  will-change: transform, opacity;
  opacity: var(--pseudo-opacity, 1);
  transition: opacity 0.3s ease;
  animation: bg-pulse 20s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background:
    radial-gradient(ellipse 50% 40% at 80% 15%, rgba(147, 51, 234, 0.12), transparent 50%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(6, 182, 212, 0.10), transparent 50%);
  pointer-events: none;
  z-index: -1;
  will-change: transform, opacity;
  opacity: var(--pseudo-opacity, 1);
  transition: opacity 0.3s ease;
  animation: bg-drift 25s ease-in-out infinite alternate-reverse;
}

@keyframes bg-pulse {
  0% { transform: scale(1) rotate(0deg); opacity: 0.7; }
  50% { opacity: 1; }
  100% { transform: scale(1.15) rotate(2deg); opacity: 0.85; }
}

@keyframes bg-drift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  100% { transform: translate(-30px, 20px) scale(1.1); opacity: 1; }
}

/* Respect system preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none !important;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reviews-track { animation: none !important; }
  .float-card { animation: none !important; }
}

html.lite-effects body::before,
html.lite-effects body::after {
  animation: none !important;
  opacity: 0.45;
}

html.lite-effects .reviews-track,
html.lite-effects .float-card,
html.lite-effects .stock-badge.stock-low,
html.lite-effects .stock-badge.stock-out {
  animation: none !important;
}

.section,
#productsGrid,
#gamesGrid,
.reviews-wrap,
.footer-grid {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.product-card,
.game-card,
.review-card,
.contact-link-card,
.faq-box {
  contain: layout paint style;
}

.reviews-track.paused {
  animation-play-state: paused !important;
}

html.page-hidden body::before,
html.page-hidden body::after,
html.page-hidden .reviews-track,
html.page-hidden .float-card,
html.page-hidden .stock-badge.stock-low,
html.page-hidden .stock-badge.stock-out {
  animation-play-state: paused !important;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 5%; }

/* --- Globals & Utils --- */
.gradient-text {
  color: #c084fc;
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.5), 0 0 60px rgba(168, 85, 247, 0.2);
}
@keyframes gradient-shift {
  0%, 100% { text-shadow: 0 0 30px rgba(168, 85, 247, 0.5), 0 0 60px rgba(168, 85, 247, 0.2); }
  50% { text-shadow: 0 0 40px rgba(232, 121, 249, 0.6), 0 0 80px rgba(168, 85, 247, 0.3); }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-round); font-weight: 600; font-size: 0.95rem;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
  position: relative; overflow: hidden;
  border: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3);
}
.btn-primary:hover { background: #a855f7; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(147, 51, 234, 0.5); }
.btn-primary span, .btn-primary i { position: relative; z-index: 1; }

.btn-glass {
  background: var(--bg-glass); color: #f8fafc;
  border: 1px solid var(--border-glass); backdrop-filter: var(--blur);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.08); border-color: var(--border-glass-light);
  transform: translateY(-2px);
}

/* --- Floating Navbar --- */
.nav-wrapper {
  position: fixed; top: 20px; left: 0; width: 100%; z-index: 2000;
  display: flex; justify-content: center; padding: 0 20px; transition: transform 0.4s;
}
.nav-inner {
  display: flex; align-items: center;
  height: 56px; padding: 0 24px; gap: 24px;
  line-height: 1;
  background: rgba(10, 10, 15, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-round);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav-inner > * {
  margin-top: auto;
  margin-bottom: auto;
  line-height: 1;
}
.nav-inner.scrolled {
  background: rgba(10, 10, 15, 0.85); box-shadow: 0 15px 50px rgba(0,0,0,0.7);
}
.logo {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 900; letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px; color: #fff;
  flex-shrink: 0;
}
.logo-mark {
  padding: 8px 12px; border-radius: 8px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; letter-spacing: 2px;
  box-shadow: 0 0 15px rgba(147,51,234,0.4); color: #fff;
}
.nav-links {
  display: flex; align-items: center; gap: 6px;
  flex: 1; justify-content: center;
}
.nav-link {
  font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.3s; position: relative;
  padding: 8px 14px;
  white-space: nowrap;
  display: flex; align-items: center;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 0px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; background: var(--primary); border-radius: 2px;
}
.nav-dropdown {
  position: relative;
  display: flex; align-items: center;
}
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  background: rgba(15,15,20,0.95); backdrop-filter: blur(20px); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: 12px; min-width: 200px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); display: flex; flex-direction: column; gap: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(5px); }
.dd-item {
  color: var(--text-muted); font-size: 0.9rem; padding: 10px 16px; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 10px; transition: all 0.2s;
}
.dd-item i { color: var(--primary); font-size: 1rem; width: 16px; text-align: center; }
.dd-item .dd-icon { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.dd-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.dd-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 8px 0; }
.dd-item-all { font-weight: 600; color: var(--primary); }
.dd-item-all:hover { background: rgba(147,51,234,0.1); }

.nav-actions {
  display: flex; align-items: center; gap: 16px;
  flex-shrink: 0;
}
.cart-btn {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  background: transparent; border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.75rem;
  transition: background 0.2s ease;
}
.cart-btn:hover { background: rgba(255,255,255,0.08); }
.cart-badge {
  position: absolute; top: -5px; right: -5px; width: 18px; height: 18px;
  background: var(--danger); border-radius: 50%; font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: #fff;
  border: 2px solid rgba(10,10,15,0.8); box-shadow: 0 0 8px rgba(239,68,68,0.4);
}
.hamburger { display: none; color: #fff; font-size: 1.5rem; padding: 8px; z-index: 1100; margin-right: -4px; }

/* --- Game Category Hero --- */
.game-hero {
  padding-top: 120px; padding-bottom: 50px;
  position: relative;
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px;
  transition: color 0.3s;
}
.back-link:hover { color: #fff; }
.game-hero-content {
  display: flex; align-items: flex-start; gap: 24px;
}
.game-hero-content.no-desc {
  align-items: center;
}
.game-icon {
  width: 72px; height: 72px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
  border: 2px solid;
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.15);
}
.game-hero-content h1 {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 900;
  letter-spacing: -0.5px; line-height: 1.1;
}
.game-hero-desc {
  color: var(--text-muted); font-size: 1.05rem; margin-top: 8px; max-width: 600px;
}

/* --- Games List Page --- */
.games-hero {
  padding-top: 120px; padding-bottom: 50px; position: relative;
}
.games-hero-content {
  display: flex; align-items: center; gap: 24px;
}
.games-hero-icon {
  width: 72px; height: 72px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
  background: rgba(147,51,234,0.15); color: var(--primary);
  border: 2px solid rgba(147,51,234,0.3);
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.15);
}
.games-hero-content h1 {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 900;
  letter-spacing: -0.5px; line-height: 1.1;
}
.games-hero-desc {
  color: var(--text-muted); font-size: 1.05rem; margin-top: 8px;
}
/* ========== Games Grid Entry Animation ========== */
.games-grid .game-card {
  opacity: 0;
  animation: fadeIn 0.35s ease both;
}
.games-grid .game-card:nth-child(1) { animation-delay: 0.03s; }
.games-grid .game-card:nth-child(2) { animation-delay: 0.06s; }
.games-grid .game-card:nth-child(3) { animation-delay: 0.09s; }
.games-grid .game-card:nth-child(4) { animation-delay: 0.12s; }
.games-grid .game-card:nth-child(5) { animation-delay: 0.15s; }
.games-grid .game-card:nth-child(6) { animation-delay: 0.18s; }
.games-grid .game-card:nth-child(7) { animation-delay: 0.21s; }
.games-grid .game-card:nth-child(8) { animation-delay: 0.24s; }
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.games-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px;
}
.game-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.game-card:hover {
  background: rgba(147,51,234,0.08); border-color: rgba(147,51,234,0.2);
  transform: translateY(-4px); box-shadow: 0 12px 30px rgba(147,51,234,0.15);
}
.game-card-icon-wrap {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(147,51,234,0.1); color: var(--primary); font-size: 1.5rem;
  overflow: hidden;
}
.game-card-icon-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.game-card-info {
  flex: 1; min-width: 0;
}
.game-card-info h3 {
  font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 4px;
}
.game-card-info p {
  font-size: 0.85rem; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.game-card-arrow {
  color: var(--text-muted); font-size: 0.9rem; transition: color 0.25s ease, transform 0.25s ease;
}
.game-card:hover .game-card-arrow {
  color: var(--primary); transform: translateX(4px);
}

@media (max-width: 768px) {
  .games-hero { padding-top: 90px; padding-bottom: 30px; }
  .games-hero-content { gap: 16px; }
  .games-hero-icon { width: 56px; height: 56px; font-size: 1.5rem; border-radius: 14px; }
  .games-hero-content h1 { font-size: 1.8rem; }
  .games-hero-desc { font-size: 0.9rem; }
  .games-grid { grid-template-columns: 1fr; gap: 12px; }
  .game-card { padding: 16px 18px; }
}

@media (max-width: 768px) {
  .game-hero { padding-top: 90px; padding-bottom: 30px; }
  .game-hero-content { gap: 16px; }
  .game-icon { width: 56px; height: 56px; font-size: 1.5rem; border-radius: 14px; }
  .game-hero-content h1 { font-size: 1.8rem; }
  .game-hero-desc { font-size: 0.9rem; }
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; padding-top: 80px;
}
.hero-content {
  text-align: center; max-width: 900px; margin: 0 auto; position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  margin-top: -80px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px;
  background: rgba(147, 51, 234, 0.08); border: 1px solid rgba(147, 51, 234, 0.25);
  border-radius: var(--radius-round); font-size: 0.85rem; font-weight: 600; color: #c084fc;
  box-shadow: 0 0 30px rgba(147,51,234,0.15); backdrop-filter: blur(10px);
}
.hero-badge .ping {
  width: 8px; height: 8px; background: var(--success); border-radius: 50%;
  box-shadow: 0 0 12px var(--success); animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(3); opacity: 0; } }
.hero h1 {
  font-family: var(--font-display); font-size: 4.2rem; font-weight: 900; line-height: 1.15;
  letter-spacing: -1.5px; text-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.hero h1 .gradient-text {
  display: block;
  font-size: 2.6rem;
  margin-top: 10px;
  letter-spacing: 1px;
  font-weight: 700;
  color: #c084fc;
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.5), 0 0 60px rgba(168, 85, 247, 0.2);
  animation: gradient-shift 4s ease infinite;
}
.hero p {
  font-size: 1.25rem; color: var(--text-muted); max-width: 650px; line-height: 1.7; font-weight: 400;
}
.hero-actions { display: flex; gap: 16px; margin-top: 12px; }

/* Floating Cards in Hero */
.hero-visuals { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden;}
.float-card {
  position: absolute; padding: 18px 28px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-glass-light);
  display: flex; align-items: center; gap: 16px; color: #fff; box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.fc-1 { top: 20%; left: 8%; }
.fc-2 { bottom: 15%; right: 10%; }
.fc-3 { top: 30%; right: 4%; opacity: 0.6; transform: scale(0.8); }
.fc-icon {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(147,51,234,0.2);
  border: 1px solid rgba(147,51,234,0.3); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #c084fc;
}
.fc-text h4 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.fc-text p { font-size: 0.8rem; color: var(--text-muted); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-25px); } }

/* --- Stats --- */
.stats { padding: 50px 0; border-y: 1px solid rgba(255,255,255,0.05); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent); }
.stats-grid { display: flex; justify-content: center; gap: 120px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 3rem; font-weight: 900; color: #fff; text-shadow: 0 0 30px rgba(255,255,255,0.2); }
.stat-label { font-size: 0.95rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 8px; font-weight: 500; }

/* --- Sections --- */
.section { padding: 120px 0; position: relative; }
.section::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent); }
.section-header { text-align: center; margin-bottom: 70px; }
.section-title { font-family: var(--font-display); font-size: 3.2rem; font-weight: 900; margin-bottom: 20px; letter-spacing: -0.5px; }
.section-desc { color: var(--text-muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* --- Categories --- */
.cat-filters {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 50px;
}
.cat-filter {
  padding: 12px 28px; border-radius: var(--radius-round); font-size: 1rem; font-weight: 600;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); color: var(--text-muted);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  display: flex; align-items: center; gap: 8px;
}
.cat-filter:hover { background: rgba(255,255,255,0.06); color: #fff; transform: translateY(-3px); }
.cat-filter.active {
  background: rgba(147,51,234,0.15);
  border-color: rgba(147,51,234,0.5); color: #fff; box-shadow: 0 10px 25px rgba(147, 51, 234, 0.2);
}

/* --- Product Grid --- */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px;
}
.product-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, background 0.3s ease, border-color 0.3s ease;
  position: relative; display: flex; flex-direction: column;
  cursor: pointer;
}
.product-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg);
  padding: 1px; background: rgba(255,255,255,0.06);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; pointer-events: none;
}
.product-card:hover {
  transform: translateY(-8px); background: rgba(255,255,255,0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(147,51,234,0.12);
}
.p-badge {
  position: absolute; top: 20px; left: 20px; z-index: 10;
  padding: 5px 12px; border-radius: var(--radius-round); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.3px;
  background: rgba(10,10,15,0.85); border: 1px solid rgba(255,255,255,0.1);
  width: fit-content;
}
.p-badge.hot { color: #c084fc; box-shadow: 0 0 15px rgba(147, 51, 234, 0.2); }
.p-badge.new { color: #22d3ee; box-shadow: 0 0 15px rgba(6, 182, 212, 0.2); }
.p-img-area {
  height: 220px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; background: radial-gradient(circle at top, rgba(147,51,234,0.1), transparent 70%);
}
.p-img-area img {
  width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.product-card:hover .p-img-area img { transform: scale(1.15) rotate(5deg); filter: drop-shadow(0 20px 30px rgba(147,51,234,0.3)); }
.p-info { padding: 28px; flex-grow: 1; display: flex; flex-direction: column; }
.p-game { font-size: 0.8rem; color: #c084fc; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 1px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.p-name { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 12px; line-height: 1.3;}
.p-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; flex-grow: 1;}
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.p-tag { 
  display: inline-block; 
  padding: 4px 10px; 
  background: rgba(147, 51, 234, 0.15); 
  color: #c084fc; 
  font-size: 0.75rem; 
  font-weight: 600; 
  border-radius: 6px; 
  border: 1px solid rgba(147, 51, 234, 0.3);
}
.p-footer {
  display: flex; align-items: flex-end; justify-content: space-between; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06);
}
.p-price-label { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 4px; font-weight: 500;}
.p-price { font-size: 1.6rem; font-weight: 900; color: var(--success); font-family: var(--font-display); text-shadow: 0 0 20px rgba(16,185,129,0.3);}
.p-add-btn {
  width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,0.03); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.p-add-btn:hover { background: var(--primary); border-color: var(--primary); box-shadow: 0 10px 20px rgba(147,51,234,0.4); transform: scale(1.1) translateY(-2px); }

/* --- Reviews --- */
.reviews-section { overflow: hidden; }
.reviews-wrapper {
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  padding: 20px 0;
}
.reviews-track {
  display: flex; gap: 30px; width: max-content; animation: scroll-left 50s linear infinite;
}
.reviews-track:hover { animation-play-state: paused; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.review-card {
  width: 400px; padding: 32px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.review-card::before { content: '\201C'; position: absolute; top: 10px; right: 30px; font-family: Georgia, serif; font-size: 6rem; color: rgba(255,255,255,0.03); line-height: 1; }
.r-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; position: relative; z-index: 2;}
.r-user { display: flex; align-items: center; gap: 16px; }
.r-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; color: #fff;
  box-shadow: 0 10px 20px rgba(147,51,234,0.3);
}
.r-name { font-weight: 700; color: #fff; font-size: 1.05rem; }
.r-game { font-size: 0.8rem; color: #c084fc; font-weight: 600; text-transform: uppercase;}
.r-stars { color: #fbbf24; font-size: 0.9rem; letter-spacing: 2px;}
.r-text { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; position: relative; z-index: 2; font-style: italic;}

/* --- CTA Banner --- */
.cta-box {
  background: radial-gradient(circle at center, rgba(147,51,234,0.15) 0%, rgba(10,10,15,0.6) 100%);
  border: 1px solid rgba(147,51,234,0.2); border-radius: calc(var(--radius-lg) * 1.5);
  padding: 100px 40px; text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 0 80px rgba(147,51,234,0.05);
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.5;
}
.cta-box::after {
  content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; background: var(--primary); border-radius: 50%; filter: blur(200px); opacity: 0.15;
}
.cta-content-inner { position: relative; z-index: 2; }
.cta-box h2 { font-family: var(--font-display); font-size: 3.5rem; font-weight: 900; margin-bottom: 24px; letter-spacing: -1px; }
.cta-box p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; max-width: 600px; margin-inline: auto; line-height: 1.8; }

/* --- Footer --- */
.footer {
  border-top: 1px solid rgba(255,255,255,0.05); padding: 100px 0 40px; margin-top: 80px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8)); position: relative;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 80px; margin-bottom: 80px;
}
.f-desc { color: var(--text-muted); font-size: 1rem; margin-top: 20px; line-height: 1.8; max-width: 350px; }
.f-title { color: #fff; font-weight: 800; margin-bottom: 24px; font-size: 1.2rem; font-family: var(--font-display); letter-spacing: 0.5px;}
.f-links { display: flex; flex-direction: column; gap: 16px; }
.f-links a { color: var(--text-muted); font-size: 0.95rem; transition: all 0.3s; display: flex; align-items: center; gap: 8px;}
.f-links a::before { content:''; width: 0; height: 1px; background: var(--primary); transition: width 0.3s; }
.f-links a:hover { color: #fff; transform: translateX(5px); }
.f-links a:hover::before { width: 15px; }
.social-links { display: flex; gap: 16px; margin-top: 30px; }
.social-btn {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
  color: #fff; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); font-size: 1.2rem;
}
.social-btn:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-5px) scale(1.1); box-shadow: 0 10px 20px rgba(147,51,234,0.4); }
.footer-bottom {
  text-align: center; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted); font-size: 0.9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}

/* --- Cart & Modal (Glass System) --- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 2500; opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.product-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -45%) scale(0.95);
  width: 90%; max-width: 500px; background: rgba(15,15,20,0.95); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); z-index: 2501; opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.3s ease;
  box-shadow: 0 40px 80px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.02);
  padding: 40px;
}
.product-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-close { position: absolute; top: 24px; right: 24px; font-size: 1.5rem; color: var(--text-muted); transition: all 0.3s; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.05); }
.modal-close:hover { color: #fff; background: rgba(255,255,255,0.1); transform: rotate(90deg); }
.modal-header { display: flex; gap: 24px; margin-bottom: 32px; align-items: center; }
.modal-img { width: 90px; height: 90px; background: radial-gradient(circle, rgba(147,51,234,0.15), transparent); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.05); }
.modal-img img { width: 60px; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5)); }
.modal-title { font-size: 1.6rem; font-weight: 900; color: #fff; margin-bottom: 6px; font-family: var(--font-display); }
.modal-game { font-size: 0.85rem; color: #c084fc; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.tier-opts { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
.tier-opt {
  display: flex; justify-content: space-between; align-items: center; padding: 20px 24px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.3s; position: relative; overflow: hidden;
}
.tier-opt:hover { background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.tier-opt.selected { border-color: var(--primary); background: rgba(147,51,234,0.1); box-shadow: 0 10px 20px rgba(147,51,234,0.15); }

.tier-opt strong { font-size: 1.15rem; color: #fff; font-weight: 600; }
.tier-opt .tier-main span { color: var(--success); font-weight: 800; font-size: 1.3rem; font-family: var(--font-display); }

/* Modal Quantity Selector */
.modal-qty-section {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; margin-bottom: 24px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
}
.modal-qty-label { font-size: 1rem; color: var(--text-secondary); font-weight: 500; }
.modal-qty-controls {
  display: flex; align-items: center; gap: 12px;
}
.modal-qty-controls button {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.modal-qty-controls button:hover:not(:disabled) {
  background: var(--primary); border-color: var(--primary);
}
.modal-qty-controls button:disabled {
  opacity: 0.3; cursor: not-allowed;
}
.modal-qty-value {
  font-size: 1.3rem; font-weight: 700; color: #fff;
  min-width: 40px; text-align: center;
  font-family: var(--font-display);
}

/* Modal Video & Detail */
.modal-video {
  width: 100%; margin-bottom: 24px; border-radius: 12px; overflow: hidden;
  background: #000; aspect-ratio: 16/9;
}
.modal-video iframe { width: 100%; height: 100%; }
.modal-detail {
  margin-bottom: 24px; padding: 20px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.modal-detail-title {
  font-size: 1rem; font-weight: 700; color: var(--text-muted); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.modal-detail-title i { color: var(--primary); }
.modal-detail-content {
  font-size: 0.95rem; line-height: 1.7; color: var(--text-secondary);
}
.modal-detail-content ul, .modal-detail-content ol { padding-left: 20px; margin: 8px 0; }
.modal-detail-content li { margin: 6px 0; }

.modal-actions { display: flex; gap: 16px; }
.modal-actions .btn { flex: 1; padding: 16px; font-size: 1.05rem; }

/* Cart Drawer */
.cart-drawer {
  position: fixed; top: 0; right: -450px; width: 450px; max-width: 100vw; height: 100vh;
  background: rgba(10,10,15,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255,255,255,0.08); z-index: 2501;
  transition: right 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,0.6);
}
.cart-drawer.open { right: 0; }
.cart-header { padding: 32px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; gap: 12px; font-family: var(--font-display); }
.cart-header .cart-badge { position: static; width: auto; min-width: 22px; height: 22px; padding: 0 7px; font-size: 0.75rem; border: none; }
.cart-close { font-size: 1.5rem; color: var(--text-muted); cursor: pointer; transition: 0.3s; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,0.05);}
.cart-close:hover { color: #fff; background: rgba(255,255,255,0.1); transform: rotate(90deg); }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.c-item { display: flex; gap: 20px; background: rgba(255,255,255,0.02); padding: 20px; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.04); align-items: center; transition: 0.3s; }
.c-item:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.c-item-img { width: 60px; height: 60px; background: radial-gradient(circle, rgba(147,51,234,0.1), transparent); border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.05); display:flex; align-items:center; justify-content:center; }
.c-item-img img { width: 40px; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5)); }
.c-item-info { flex-grow: 1; }
.c-item-title { font-weight: 700; font-size: 1.05rem; color: #fff; margin-bottom: 6px; line-height: 1.2; }
.c-item-tier { font-size: 0.85rem; color: var(--text-muted); display: block; margin-bottom: 6px; }
.c-item-price { color: var(--success); font-weight: 800; font-family: var(--font-display); font-size: 1.1rem; }
.c-qty-wrap { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,0.5); padding: 6px 12px; border-radius: var(--radius-round); border: 1px solid rgba(255,255,255,0.05); }
.c-qty-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.9rem; background:rgba(255,255,255,0.05); border-radius:50%; transition: 0.3s; }
.c-qty-btn:hover { background: var(--primary); transform: scale(1.1); }
.c-qty { font-size: 1rem; font-weight: 700; width: 24px; text-align: center; color: #fff; font-family: var(--font-display); }
.c-del { color: var(--danger); font-size: 1.2rem; padding: 10px; margin-left: 10px; opacity: 0.6; transition: all 0.3s; background: rgba(239,68,68,0.1); border-radius: 10px; }
.c-del:hover { opacity: 1; background: var(--danger); color: #fff; transform: scale(1.1); }
.cart-footer { padding: 32px; border-top: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.4); }
.cart-total-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.cart-total-label { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; }
.cart-total-price { color: var(--success); font-family: var(--font-display); font-size: 2rem; font-weight: 900; line-height: 1; }
.cart-footer .btn { width: 100%; padding: 18px; font-size: 1.1rem; }

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-links { display: flex; flex-direction: column; gap: 20px; }
.contact-link-card {
  display: flex; align-items: center; gap: 20px; padding: 24px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.contact-link-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(147,51,234,0.3); transform: translateX(10px); }
.contact-link-card i { width: 60px; height: 60px; border-radius: 16px; background: rgba(147,51,234,0.1); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #c084fc; border: 1px solid rgba(147,51,234,0.2); transition: 0.4s; }
.contact-link-card:hover i { background: var(--primary); color: #fff; transform: scale(1.1) rotate(5deg); box-shadow: 0 10px 20px rgba(147,51,234,0.4); }
.contact-link-card .text strong { display: block; font-size: 1.2rem; color: #fff; margin-bottom: 4px; font-family: var(--font-display); }
.contact-link-card .text small { color: var(--text-muted); font-size: 0.95rem; }

.faq-box { background: rgba(255,255,255,0.01); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-lg); padding: 40px; }
.faq-box h3 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 30px; color: #fff; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 4px; margin-bottom: 8px; }
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 0; color: #fff; font-size: 1.1rem; font-weight: 600; text-align: left; transition: color 0.3s; }
.faq-q:hover { color: var(--primary); }
.faq-q i { color: var(--primary); transition: transform 0.4s; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0, 1, 0, 1); }
.faq-item.open .faq-a { max-height: 500px; transition: max-height 0.6s ease-in-out; }
.faq-a p { padding-bottom: 24px; color: var(--text-muted); line-height: 1.7; font-size: 1rem; }

/* ============================================
   Responsive ??Tablet (??1024px)
   ============================================ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.8rem; }
  .stats-grid { gap: 60px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .cta-box h2 { font-size: 2.8rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
}

/* ============================================
   Responsive ??Mobile (??768px)
   ============================================ */
@media (max-width: 768px) {
  /* --- Container --- */
  .container { padding: 0 20px; }

  /* --- Floating Navbar --- */
  .nav-wrapper { padding: 8px 12px; top: 0; }
  .nav-inner {
    height: auto; padding: 10px 8px 10px 10px; border-radius: 16px;
    background: rgba(10, 10, 15, 0.8);
    display: flex; align-items: center;
    gap: 8px; min-height: 44px;
  }
  .nav-inner > * {
    margin-top: 0;
    margin-bottom: 0;
  }
  .logo { font-size: 1.1rem; gap: 6px; }
  .logo-mark { font-size: 0.85rem; padding: 5px 10px; border-radius: 6px; letter-spacing: 1px; }
  .hamburger { display: block; z-index: 2001; position: relative; }

  /* --- Mobile Full-Screen Menu --- */
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 100vw; height: 100dvh; z-index: 1500;
    background: rgba(5, 5, 10, 0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    flex-direction: column; justify-content: flex-start;
    padding: 90px 32px 40px; align-items: stretch;
    transition: right 0.45s cubic-bezier(0.32, 0.72, 0, 1);
    border-left: none;
    overflow-y: auto;
    gap: 0;
  }
  .nav-links.mobile-open { right: 0; }
  .nav-link {
    font-size: 1rem; padding: 16px 0; width: 100%; display: flex;
    align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted); transition: color 0.3s;
  }
  .nav-link:active { color: #fff; }
  .nav-dropdown { width: 100%; flex-direction: column; align-items: stretch; }
  .nav-dropdown-menu {
    position: static !important; transform: none !important; opacity: 1 !important; visibility: visible !important;
    pointer-events: auto; display: none;
    left: auto !important; top: auto !important; right: auto !important;
    width: 100%;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); box-shadow: none;
    padding: 8px 0 8px 8px; margin: 4px 0 8px 0; border-radius: 14px;
    min-width: unset; transition: none !important;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  /* Override desktop hover ??must not show dropdown on mobile tap */
  .nav-dropdown:hover .nav-dropdown-menu {
    display: none; transform: none !important;
  }
  .nav-dropdown.dd-open .nav-dropdown-menu {
    display: flex !important; flex-direction: column; gap: 6px;
  }
  .nav-dropdown.dd-open > .nav-link { color: #fff; }
  .nav-dropdown.dd-open > .nav-link > i.fa-chevron-down { transform: rotate(180deg); }
  .nav-link i.fa-chevron-down { transition: transform 0.3s; }
  .dd-item {
    padding: 14px 16px; font-size: 0.92rem; border-radius: 10px;
    color: var(--text-muted); transition: all 0.2s;
    border: 1px solid transparent;
  }
  .dd-item:active { background: rgba(147, 51, 234, 0.15); border-color: rgba(147, 51, 234, 0.2); color: #fff; }
  .dd-item i { color: var(--primary); opacity: 0.8; }

  /* Safe area for mobile nav-links */
  @supports (padding-bottom: env(safe-area-inset-bottom)) {
    .nav-links { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  }

  /* --- Hero --- */
  .hero { padding-top: 100px; min-height: 100vh; min-height: 100dvh; padding-bottom: 60px; }
  .hero-content { gap: 20px; padding: 0 4px; margin-top: -60px; }
  .hero-visuals { display: none; }
  .hero-badge { font-size: 0.78rem; padding: 6px 16px; }
  .hero h1 { font-size: 2rem; letter-spacing: -0.5px; line-height: 1.15; }
  .hero h1 .gradient-text { font-size: 1.35rem; margin-top: 6px; letter-spacing: 0.5px; }
  .hero p { font-size: 1rem; line-height: 1.7; }
  .hero-actions { flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 14px 24px; }

  /* --- Stats --- */
  .stats { padding: 36px 0; }
  .stats-grid {
    flex-direction: row; gap: 0; justify-content: space-around;
  }
  .stat-item { text-align: center; flex: 1; }
  .stat-num { font-size: 2rem; }
  .stat-label { font-size: 0.7rem; letter-spacing: 1px; margin-top: 4px; }

  /* --- Sections --- */
  .section { padding: 64px 0; }
  .section::before { left: 5%; right: 5%; }
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: 2rem; margin-bottom: 12px; }
  .section-desc { font-size: 1rem; }

  /* --- Category Filters (Horizontal Scroll) --- */
  .cat-filters {
    justify-content: flex-start; flex-wrap: nowrap; gap: 10px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 4px 0 16px; margin-bottom: 32px;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .cat-filters::-webkit-scrollbar { display: none; }
  .cat-filter {
    padding: 10px 20px; font-size: 0.85rem; white-space: nowrap;
    flex-shrink: 0; border-radius: var(--radius-round);
  }

  /* --- Product Grid --- */
  .products-grid {
    grid-template-columns: 1fr; gap: 14px;
  }
  .p-img-area { height: 140px; }
  .p-img-area img { width: 70px; height: 70px; }
  .p-info { padding: 16px; }
  .p-game { font-size: 0.7rem; margin-bottom: 4px; }
  .p-name { font-size: 1rem; margin-bottom: 6px; }
  .p-desc { font-size: 0.8rem; margin-bottom: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .p-footer { padding-top: 12px; }
  .p-price-label { font-size: 0.7rem; }
  .p-price { font-size: 1.15rem; }
  .p-add-btn { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
  .p-badge { top: 12px; left: 12px; padding: 4px 10px; font-size: 0.65rem; }
  .product-card:hover { transform: none; box-shadow: none; }
  .product-card:active { transform: scale(0.98); }

  /* --- Reviews --- */
  .reviews-wrapper {
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  }
  .reviews-track { gap: 16px; animation-duration: 35s; }
  .review-card { width: 300px; padding: 24px; border-radius: var(--radius-md); }
  .review-card::before { font-size: 4rem; top: 5px; right: 20px; }
  .r-avatar { width: 40px; height: 40px; font-size: 1rem; }
  .r-user { gap: 12px; }
  .r-name { font-size: 0.95rem; }
  .r-game { font-size: 0.75rem; }
  .r-stars { font-size: 0.8rem; }
  .r-text { font-size: 0.92rem; line-height: 1.6; }

  /* --- CTA Box --- */
  .cta-box { padding: 50px 24px; border-radius: var(--radius-lg); }
  .cta-box::after { width: 350px; height: 350px; }
  .cta-box h2 { font-size: 1.8rem; margin-bottom: 16px; letter-spacing: 0; }
  .cta-box p { font-size: 0.95rem; margin-bottom: 28px; line-height: 1.7; }

  /* --- Contact & FAQ --- */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid .section-title { text-align: center !important; }
  .contact-grid .section-desc { text-align: center !important; margin-left: auto !important; margin-right: auto; }
  .contact-links { gap: 14px; }
  .contact-link-card { padding: 18px; gap: 16px; border-radius: var(--radius-md); }
  .contact-link-card:hover { transform: none; }
  .contact-link-card:active { transform: scale(0.98); background: rgba(255,255,255,0.05); }
  .contact-link-card i { width: 50px; height: 50px; font-size: 1.6rem; border-radius: 14px; flex-shrink: 0; }
  .contact-link-card .text strong { font-size: 1.05rem; }
  .contact-link-card .text small { font-size: 0.85rem; }
  .faq-box { padding: 28px 20px; border-radius: var(--radius-md); }
  .faq-box h3 { font-size: 1.5rem; margin-bottom: 20px; }
  .faq-q { font-size: 0.95rem; padding: 16px 0; }
  .faq-a p { font-size: 0.9rem; padding-bottom: 16px; }

  /* --- Footer --- */
  .footer { padding: 60px 0 32px; margin-top: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .f-desc { margin: 12px auto 0; font-size: 0.9rem; }
  .f-title { margin-bottom: 16px; font-size: 1.1rem; }
  .f-links { align-items: center; gap: 12px; }
  .f-links a { font-size: 0.9rem; justify-content: center; }
  .f-links a::before { display: none; }
  .social-links { justify-content: center; gap: 14px; margin-top: 20px; }
  .social-btn { width: 42px; height: 42px; }
  .footer-bottom { flex-direction: column; gap: 10px; padding-top: 28px; font-size: 0.8rem; }

  /* --- Product Modal (Bottom Sheet) --- */
  .product-modal {
    top: auto; left: 0; bottom: 0;
    transform: translateY(100%);
    width: 100%; max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 28px 24px 32px;
    max-height: 85dvh; overflow-y: auto;
  }
  .product-modal.active { transform: translateY(0); }
  .modal-close { top: 16px; right: 16px; width: 36px; height: 36px; }
  .modal-header { gap: 16px; margin-bottom: 24px; }
  .modal-img { width: 70px; height: 70px; }
  .modal-img img { width: 48px; }
  .modal-title { font-size: 1.3rem; }
  .modal-game { font-size: 0.8rem; }
  .tier-opts { gap: 12px; margin-bottom: 24px; }
  .tier-opt { padding: 16px 18px; }
  .tier-opt strong { font-size: 1rem; }
  .tier-opt .tier-main span { font-size: 1.15rem; }
  .modal-actions .btn { padding: 14px; font-size: 1rem; }

  /* --- Cart Drawer --- */
  .cart-drawer { width: 100%; right: -100%; }
  .cart-header { padding: 20px 20px; }
  .cart-header h3 { font-size: 1.2rem; gap: 10px; }
  .cart-close { width: 34px; height: 34px; }
  .cart-items { padding: 20px; gap: 14px; }
  .c-item { padding: 14px; gap: 14px; flex-wrap: wrap; }
  .c-item-img { width: 50px; height: 50px; }
  .c-item-img img { width: 34px; }
  .c-item-title { font-size: 0.95rem; }
  .c-item-tier { font-size: 0.8rem; }
  .c-item-price { font-size: 1rem; }
  .c-qty-wrap { gap: 8px; padding: 4px 10px; }
  .c-qty-btn { width: 26px; height: 26px; }
  .c-del { padding: 8px; margin-left: 6px; font-size: 1rem; }
  .cart-footer { padding: 20px; }
  .cart-total-price { font-size: 1.6rem; }
  .cart-footer .btn { padding: 16px; font-size: 1rem; }

  /* --- Toast --- */
  .toast-container { top: 80px; left: 50%; width: 90vw; max-width: 360px; }
  .toast { padding: 10px 18px; font-size: 0.9rem; }
}

/* ============================================
   Responsive ??Small Mobile (??480px)
   ============================================ */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero h1 .gradient-text { font-size: 1.1rem; margin-top: 4px; }
  .hero p { font-size: 0.92rem; }
  .hero-badge { font-size: 0.72rem; padding: 5px 14px; }

  .stats-grid { padding: 0 8px; }
  .stat-num { font-size: 1.7rem; }
  .stat-label { font-size: 0.65rem; }

  .section-title { font-size: 1.7rem; }
  .section-desc { font-size: 0.9rem; }

  .products-grid { grid-template-columns: 1fr; gap: 10px; }
  .p-img-area { height: 110px; }
  .p-img-area img { width: 56px; height: 56px; }
  .p-info { padding: 12px; }
  .p-game { font-size: 0.65rem; }
  .p-name { font-size: 0.88rem; }
  .p-desc { display: none; }
  .p-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .p-price { font-size: 1.05rem; }
  .p-add-btn { width: 100%; border-radius: 10px; height: 38px; font-size: 0.9rem; justify-content: center; gap: 6px; }
  .p-badge { top: 8px; left: 8px; padding: 3px 8px; font-size: 0.6rem; }

  .review-card { width: 260px; padding: 20px; }
  .r-header { flex-direction: column; gap: 10px; }
  .r-text { font-size: 0.85rem; }

  .cta-box h2 { font-size: 1.5rem; }
  .cta-box p { font-size: 0.88rem; }
  .cta-box { padding: 40px 20px; }

  .faq-q { font-size: 0.88rem; }
  .contact-link-card i { width: 44px; height: 44px; font-size: 1.4rem; }
  .contact-link-card .text strong { font-size: 0.95rem; }
  .contact-link-card .text small { font-size: 0.8rem; }

  .product-modal { padding: 24px 20px 28px; }
  .modal-title { font-size: 1.15rem; }
}

/* Touch-friendly: Increase tap targets on mobile */
@media (hover: none) and (pointer: coarse) and (max-width: 768px) {
  .nav-link { min-height: 48px; display: flex; align-items: center; }
  .dd-item { min-height: 44px; }
  .cat-filter { min-height: 44px; }
  .faq-q { min-height: 48px; }
  .p-add-btn { min-width: 44px; min-height: 44px; }
  .c-qty-btn { min-width: 32px; min-height: 32px; }
  .social-btn { min-width: 44px; min-height: 44px; }
  .cart-btn, .theme-toggle-btn { min-width: 36px; min-height: 36px; }
  .account-btn:not(.logged-in) { min-width: 36px; min-height: 36px; }
}

/* Safe area insets for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .cart-footer { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .product-modal { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
}

/* ========== GPU Acceleration Hints ========== */
.product-card,
.game-card,
.cart-drawer,
.product-modal,
.auth-modal,
.nav-inner,
.modal-overlay,
.float-card,
.mobile-bottom-nav {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ========== Smooth Image Loading ========== */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}
img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}
/* Prevent layout shift */
.p-img-area img,
.gallery-slide img,
.product-image-large img {
  opacity: 1;
}

/* ========== Enhanced Focus Rings (Accessibility) ========== */
.btn:focus-visible,
.nav-link:focus-visible,
.cat-filter:focus-visible,
.cart-btn:focus-visible,
.account-btn:focus-visible,
.theme-toggle-btn:focus-visible,
.hamburger:focus-visible,
.auth-field input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.2);
}

/* ========== Scroll Progress Bar ========== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 99999;
  background: linear-gradient(90deg, var(--primary), #a855f7, var(--accent));
  transform-origin: left; transform: scaleX(0);
  will-change: transform; transition: none;
  box-shadow: 0 0 10px rgba(147,51,234,0.5);
}

/* ========== Scroll Reveal Animations ========== */
.reveal {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.reveal.revealed {
  opacity: 1;
  will-change: auto;
}
.reveal-left {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.reveal-left.revealed {
  opacity: 1;
}
.reveal-right {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.reveal-right.revealed {
  opacity: 1;
}
.reveal-scale {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.reveal-scale.revealed {
  opacity: 1;
}
/* Stagger delay classes */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.4s; }

/* ========== Button Ripple Effect ========== */
.btn { position: relative; overflow: hidden; }
.btn .ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0); animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}
@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

/* ========== Button Press Effect ========== */
.btn:active { transform: scale(0.97) !important; }
.btn-primary:active { box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3) !important; }

/* ========== Cart Badge Bounce ========== */
@keyframes badgeBounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.5); }
  50% { transform: scale(0.85); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.cart-badge.bounce { animation: badgeBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.bn-badge.bounce { animation: badgeBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); }

/* ========== Enhanced Hover Glow on Cards ========== */
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(147, 51, 234, 0.06), transparent 40%);
  z-index: 0;
}
.product-card:hover::after {
  opacity: 1;
}
.product-card > * {
  position: relative;
  z-index: 1;
}

/* ========== Smooth Quantity Change ========== */
.c-qty {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.c-qty.bump {
  transform: scale(1.3);
}

/* ========== Cart Item Remove Animation ========== */
.c-item.removing {
  animation: cartItemOut 0.3s ease forwards;
}
@keyframes cartItemOut {
  to { opacity: 0; height: 0; padding: 0; margin: 0; overflow: hidden; }
}

/* ========== Page Load Content Stagger ========== */
.hero-content > * {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.35s; }
.hero-content > *:nth-child(4) { animation-delay: 0.45s; }

/* ========== Interactive Card Tilt ========== */
.product-card {
  perspective: 800px;
}

/* ========== Smooth Price Highlight ========== */
.p-price {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.product-card:hover .p-price {
  text-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
}

/* ========== Button Shine Effect ========== */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
  z-index: 0;
}
.btn-primary:hover::before {
  left: 100%;
}

/* ========== Smoother Mobile Menu ========== */
@media (max-width: 768px) {
  /* Smooth overscroll on mobile */
  .cart-items,
  .disclaimer-body,
  .auth-modal {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}

/* ========== Interactive Stat Hover ========== */
.stat-num {
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}
.stat-item:hover .stat-num {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
}

/* ========== Footer Link Smooth Underline ========== */
.f-links a {
  position: relative;
}
.f-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.f-links a:hover::after {
  width: 100%;
}

/* ========== Social Button Pulse on Hover ========== */
.social-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}
.social-btn {
  position: relative;
}
.social-btn:hover::after {
  opacity: 0.3;
  transform: scale(1.1);
}

/* ========== Game Card Arrow Bounce ========== */
.game-card:hover .game-card-arrow {
  animation: arrowBounce 0.6s ease infinite;
}
@keyframes arrowBounce {
  0%, 100% { transform: translateX(4px); }
  50% { transform: translateX(8px); }
}

/* ========== Skeleton Loading ========== */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
html.light-mode .skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 200% 100%;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.skeleton-img { height: 180px; }
.skeleton-text {
  height: 14px; margin: 12px 20px;
  border-radius: 8px;
}
.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }

/* Game card skeleton (for games.html instant loading state) */
.game-card-skeleton {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  border-radius: 16px; border: 1px solid rgba(255,255,255,0.06);
}
.game-card-skeleton .skeleton-icon-wrap {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  background: rgba(255,255,255,0.04);
}
.game-card-skeleton .skeleton-text-group {
  flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.game-card-skeleton .skeleton-line {
  height: 14px; border-radius: 8px;
}
.game-card-skeleton .skeleton-line.short {
  height: 11px;
}
html.light-mode .game-card-skeleton {
  border-color: rgba(0,0,0,0.06);
}
html.light-mode .game-card-skeleton .skeleton-icon-wrap {
  background: rgba(0,0,0,0.04);
}

/* ========== Product Card Add-to-Cart Fly Animation ========== */
@keyframes flyToCart {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.5) translateY(-80px); }
  100% { opacity: 0; transform: scale(0.2) translateY(-150px) translateX(100px); }
}

/* ========== Smooth Link/Page Transition (disabled) ========== */

/* ========== Mobile Touch Feedback ========== */
@media (hover: none) and (pointer: coarse) {
  .product-card:active {
    transform: scale(0.97) !important;
    transition-duration: 0.1s !important;
  }
  .game-card:active {
    transform: scale(0.97) !important;
    transition-duration: 0.1s !important;
  }
  .cat-filter:active {
    transform: scale(0.95) !important;
    transition-duration: 0.1s !important;
  }
  .contact-link-card:active {
    transform: scale(0.97) !important;
  }
  .social-btn:active {
    transform: scale(0.9) !important;
  }
  .bottom-nav-item:active i {
    transform: scale(0.85);
    transition: transform 0.1s;
  }
}

/* ========== Mobile Bottom Nav Active Indicator ========== */
@media (max-width: 768px) {
  .bottom-nav-item.active::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 20px; height: 3px; border-radius: 0 0 4px 4px;
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(147,51,234,0.4);
    animation: navIndicatorIn 0.3s ease;
  }
  @keyframes navIndicatorIn {
    from { width: 0; opacity: 0; }
    to { width: 20px; opacity: 1; }
  }
  .bottom-nav-item i {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s;
  }
  .bottom-nav-item:active i {
    transform: scale(0.8) !important;
  }
  .bottom-nav-item.active i {
    transform: scale(1.15);
  }
}

/* ========== Improved Cart Drawer Transition ========== */
.cart-drawer {
  transition: right 0.4s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.4s ease, transform 0.15s ease;
}
.cart-drawer.open {
  box-shadow: -30px 0 80px rgba(0,0,0,0.7);
}

/* ========== C-Item Enter Animation ========== */
.c-item {
  animation: fadeIn 0.3s ease both;
}

/* ========== Nav Scrolled Transition ========== */
.nav-inner {
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
}

/* ========== Floating Card Parallax ========== */
.float-card {
  will-change: transform;
  transition: transform 0.15s ease-out;
}

/* ========== Hero Content Animation ========== */
.float-card.fc-1 {
  animation: fadeIn 0.8s ease 0.6s both, float 6s ease-in-out 1.6s infinite;
}
.float-card.fc-2 {
  animation: fadeIn 0.8s ease 0.8s both, float 7s ease-in-out 1.8s infinite reverse;
}
.float-card.fc-3 {
  animation: floatCardIn3 0.8s ease 1s both, float 8s ease-in-out 2s infinite;
}
@keyframes floatCardIn3 {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 0.6; transform: scale(0.8); }
}

/* ========== Navbar Enter Animation ========== */
.nav-wrapper {
  animation: fadeIn 0.4s ease 0.1s both;
}

/* ========== Mobile Menu Overlay ========== */
@media (max-width: 768px) {
  .nav-links.mobile-open {
    animation: mobileMenuIn 0.35s cubic-bezier(0.32, 0.72, 0, 1) forwards;
  }
  @keyframes mobileMenuIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .nav-links.mobile-open .nav-link,
  .nav-links.mobile-open .nav-dropdown {
    animation: fadeIn 0.3s ease both;
  }
  .nav-links.mobile-open .nav-link:nth-child(1),
  .nav-links.mobile-open .nav-dropdown:nth-child(1) { animation-delay: 0.03s; }
  .nav-links.mobile-open .nav-link:nth-child(2),
  .nav-links.mobile-open .nav-dropdown:nth-child(2) { animation-delay: 0.06s; }
  .nav-links.mobile-open .nav-link:nth-child(3),
  .nav-links.mobile-open .nav-dropdown:nth-child(3) { animation-delay: 0.09s; }
  .nav-links.mobile-open .nav-link:nth-child(4),
  .nav-links.mobile-open .nav-dropdown:nth-child(4) { animation-delay: 0.12s; }
  .nav-links.mobile-open .nav-link:nth-child(5),
  .nav-links.mobile-open .nav-dropdown:nth-child(5) { animation-delay: 0.15s; }
}

/* ========== Stats Counter Animation ========== */
.stat-item {
  transition: transform 0.3s ease;
}
.stat-item:hover {
  transform: scale(1.05);
}

/* ========== Toast/Notifications ========== */
/* Animations */
.toast-container { position: fixed; top: 100px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.toast { background: rgba(16, 185, 129, 0.2); border: 1px solid var(--success); color: #fff; padding: 12px 24px; border-radius: var(--radius-round); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-weight: 600; display: flex; align-items: center; gap: 10px; animation: fadeIn 0.4s ease forwards; box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2); pointer-events: auto; }
.toast i { color: var(--success); font-size: 1.2rem; }
.toast-error { background: rgba(239, 68, 68, 0.2); border-color: #ef4444; box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2); }
.toast-error i { color: #ef4444; }
.toast-warning { background: rgba(245, 158, 11, 0.2); border-color: #f59e0b; box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2); }
.toast-warning i { color: #f59e0b; }
@keyframes slideDown { from { opacity: 0; } to { opacity: 1; } }
.toast.fade-out { animation: fadeOutSimple 0.3s ease forwards; }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes fadeOutUp { to { opacity: 0; } }
@keyframes fadeOutSimple { to { opacity: 0; } }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================
   Account Button & Balance Badge
   ============================ */
.account-wrapper {
  position: relative;
}
.account-btn {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  background: transparent; border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease, padding 0.2s ease, width 0.2s ease;
  gap: 6px;
}
.account-btn:hover { background: rgba(255,255,255,0.08); }
.account-btn.logged-in {
  width: auto; height: auto; border-radius: var(--radius-round);
  padding: 6px 12px;
  border-color: var(--primary); background: rgba(147,51,234,0.15);
  box-shadow: 0 0 12px rgba(147,51,234,0.2);
}
.account-balance {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 700; color: var(--success);
  white-space: nowrap;
}
.account-balance i { font-size: 0.75rem; }

/* Account Dropdown */
.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  background: rgba(15,15,20,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
  overflow: hidden;
}
.account-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.account-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.account-dropdown .dropdown-item:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}
.account-dropdown .dropdown-item i {
  width: 18px;
  text-align: center;
  color: var(--primary);
}
.account-dropdown .dropdown-item:last-child {
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #f87171;
}
.account-dropdown .dropdown-item:last-child i {
  color: #f87171;
}
.account-dropdown .dropdown-item:last-child:hover {
  background: rgba(239,68,68,0.1);
}

/* Light theme */
html.light-mode .account-dropdown {
  background: rgba(255,255,255,0.95);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
html.light-mode .account-dropdown .dropdown-item {
  color: #374151;
}
html.light-mode .account-dropdown .dropdown-item:hover {
  background: rgba(0,0,0,0.04);
  color: #111;
}
html.light-mode .account-dropdown .dropdown-item:last-child {
  border-top-color: rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
  .account-btn.logged-in {
    width: auto; height: auto; border-radius: var(--radius-round);
    padding: 5px 10px; background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
  }
  .account-balance {
    font-size: 0.72rem; gap: 4px; max-width: 100px; overflow: hidden; text-overflow: ellipsis;
  }
  .account-balance i { font-size: 0.65rem; }
  .nav-actions { gap: 8px; }
  .cart-btn, .theme-toggle-btn, .account-btn:not(.logged-in) { width: 36px; height: 36px; min-width: 36px; min-height: 36px; }
  .cart-btn i, .theme-toggle-btn i, .account-btn:not(.logged-in) i { font-size: 0.75rem; }
}
@media (max-width: 380px) {
  .account-btn.logged-in {
    padding: 4px 7px;
  }
  .account-balance {
    font-size: 0.65rem; gap: 3px; max-width: 80px;
  }
  .account-balance i { font-size: 0.6rem; }
  .nav-actions { gap: 6px; }
  .cart-btn, .theme-toggle-btn, .account-btn:not(.logged-in) { width: 30px; height: 30px; min-width: 30px; min-height: 30px; }
  .cart-btn i, .theme-toggle-btn i, .account-btn:not(.logged-in) i { font-size: 0.7rem; }
  .cart-badge { width: 14px; height: 14px; font-size: 0.55rem; top: -3px; right: -3px; }
  .logo { font-size: 0.95rem; }
}
@media (max-width: 320px) {
  .account-btn.logged-in {
    padding: 3px 5px;
  }
  .account-balance {
    font-size: 0.58rem; gap: 2px; max-width: 65px;
  }
  .account-balance i { display: none; }
  .nav-actions { gap: 4px; }
  .cart-btn, .theme-toggle-btn, .account-btn:not(.logged-in) { width: 28px; height: 28px; min-width: 28px; min-height: 28px; }
  .cart-btn i, .theme-toggle-btn i, .account-btn:not(.logged-in) i { font-size: 0.6rem; }
  .cart-badge { width: 13px; height: 13px; font-size: 0.5rem; top: -3px; right: -3px; }
  .logo { font-size: 0.85rem; }
}

/* ============================
   Auth Modal
   ============================ */
.auth-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -45%) scale(0.95);
  width: 90%; max-width: 420px; background: rgba(15,15,20,0.96); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); z-index: 2501; opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.3s ease;
  box-shadow: 0 40px 80px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.02);
  padding: 40px;
}
.auth-modal .modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
}
.auth-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.auth-tabs {
  display: flex; gap: 0; margin-bottom: 28px; background: rgba(255,255,255,0.03);
  border-radius: var(--radius-round); padding: 4px; border: 1px solid rgba(255,255,255,0.06);
}
.auth-tab {
  flex: 1; padding: 10px 0; text-align: center; font-size: 0.95rem; font-weight: 600;
  color: var(--text-muted); border-radius: var(--radius-round); transition: all 0.3s;
  background: transparent; border: none; cursor: pointer;
}
.auth-tab.active {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 15px rgba(147,51,234,0.3);
}
.auth-field { margin-bottom: 18px; }
.auth-field label {
  display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 8px;
}
.auth-field label i { width: 16px; text-align: center; margin-right: 4px; color: var(--primary); }
.auth-field input {
  width: 100%; padding: 14px 18px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  color: #fff; font-size: 1rem; font-family: var(--font-sans);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; outline: none;
}
.auth-field input::placeholder { color: rgba(255,255,255,0.2); }
.auth-field input:focus {
  border-color: var(--primary); background: rgba(147,51,234,0.05);
  box-shadow: 0 0 20px rgba(147,51,234,0.15);
}
.auth-error {
  color: var(--danger); font-size: 0.85rem; font-weight: 600; min-height: 20px;
  margin-bottom: 8px; text-align: center;
}
.auth-submit {
  width: 100%; padding: 16px; font-size: 1.05rem; min-height: 52px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 4px; touch-action: manipulation;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.auth-submit:disabled {
  opacity: 0.7; cursor: not-allowed; pointer-events: none;
}
.auth-field-row {
  display: flex; gap: 10px; align-items: stretch;
}
.auth-field-row input { flex: 1; min-width: 0; }
.btn-send-code {
  flex-shrink: 0; padding: 0 16px; border-radius: var(--radius-md);
  background: rgba(147,51,234,0.15); border: 1px solid rgba(147,51,234,0.3);
  color: #c084fc; font-size: 0.8rem; font-weight: 700; white-space: nowrap;
  cursor: pointer; transition: all 0.3s; font-family: var(--font-sans);
  display: flex; align-items: center; gap: 6px;
}
.btn-send-code:hover:not(:disabled) {
  background: rgba(147,51,234,0.25); border-color: var(--primary);
  transform: translateY(-1px);
}
.btn-send-code:disabled {
  opacity: 0.5; cursor: not-allowed; color: var(--text-muted);
  background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06);
}
.btn-send-code i { font-size: 0.75rem; }

/* Code verification status */
.code-status { font-size: 0.78rem; font-weight: 700; margin-left: 8px; }
.code-status.code-ok { color: var(--success); }
.code-status.code-fail { color: var(--danger); }
.auth-field input.input-success {
  border-color: var(--success) !important; background: rgba(16,185,129,0.05) !important;
  box-shadow: 0 0 15px rgba(16,185,129,0.15);
}
.auth-field input.input-error {
  border-color: var(--danger) !important; background: rgba(239,68,68,0.05) !important;
  box-shadow: 0 0 15px rgba(239,68,68,0.15);
}
.auth-profile {
  display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 10px 0;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 900;
  font-size: 2rem; color: #fff; box-shadow: 0 10px 30px rgba(147,51,234,0.3);
  font-family: var(--font-display);
}
.profile-name {
  font-size: 1.4rem; font-weight: 800; color: #fff; font-family: var(--font-display);
}
.profile-balance {
  display: flex; align-items: center; gap: 10px; padding: 12px 28px;
  background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-round); font-size: 1.05rem; color: var(--success);
  font-weight: 600;
}
.profile-balance strong {
  font-weight: 900; font-family: var(--font-display); font-size: 1.3rem;
}
.auth-logout {
  margin-top: 8px; padding: 10px 32px; font-size: 0.9rem;
}

/* ============================
   Mobile Bottom Navigation
   ============================ */
.mobile-bottom-nav {
  display: none;
}
@media (max-width: 768px) {
  .mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 2100;
    display: flex; align-items: stretch; justify-content: space-around;
    height: 64px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -5px 30px rgba(0,0,0,0.5);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .bottom-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 3px; padding: 6px 0;
    color: var(--text-muted); font-size: 0.65rem; font-weight: 600;
    transition: color 0.3s; position: relative;
    text-decoration: none; border: none; background: none; cursor: pointer;
    font-family: var(--font-sans);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .bottom-nav-item i { font-size: 1.2rem; transition: transform 0.2s ease, color 0.2s ease; width: 1.25em; text-align: center; }
  .bottom-nav-item.active { color: var(--primary); }
  .bottom-nav-item.active i { transform: scale(1.1); text-shadow: 0 0 15px rgba(147,51,234,0.5); }
  .bn-badge {
    position: absolute; top: 4px; right: calc(50% - 20px);
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--danger); font-size: 0.6rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; color: #fff;
    box-shadow: 0 0 8px rgba(239,68,68,0.4);
  }
  /* Add padding to body so content isn't hidden behind bottom nav */
  body { padding-bottom: 64px; }
  /* Also push footer bottom padding */
  .footer { margin-bottom: 0; }

  /* Auth modal on mobile - bottom sheet */
  .auth-modal {
    top: auto; left: 0; bottom: 0;
    transform: translateY(100%);
    width: 100%; max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 52px 24px 32px;
    max-height: 85dvh; overflow-y: auto;
  }
  .auth-modal .modal-close {
    top: 14px; right: 18px;
  }
  .auth-modal.active { transform: translateY(0); }
}

/* ============================
   Checkout Page
   ============================ */
.checkout-page {
  padding: 100px 0 60px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}
.checkout-page .container {
  max-width: 1100px;
}
.checkout-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.checkout-page h1 i {
  color: var(--primary);
  font-size: 1.6rem;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
.ck-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ck-card {
  background: rgba(20, 20, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.ck-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.ck-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ck-card h2 i {
  color: var(--primary);
  font-size: 1rem;
}
.ck-card .form-group {
  margin-bottom: 16px;
}
.ck-card .form-group:last-child {
  margin-bottom: 0;
}
.ck-card .form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}
.ck-card .form-group label .req {
  color: var(--danger);
}
.ck-card .form-group input[type="text"],
.ck-card .form-group input[type="email"],
.ck-card .form-group input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.95rem;
  background: rgba(10, 10, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  transition: all 0.2s;
}
.ck-card .form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
  background: rgba(15, 15, 25, 0.6);
}
.ck-card .form-group input::placeholder {
  color: var(--text-muted);
}
.ck-card .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Payment Options */
.pay-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pay-opt {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(10, 10, 20, 0.4);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.pay-opt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.pay-opt:hover {
  background: rgba(20, 20, 35, 0.6);
  border-color: rgba(147, 51, 234, 0.3);
}
.pay-opt:hover::before {
  opacity: 1;
}
.pay-opt.sel {
  background: rgba(147, 51, 234, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.15);
}
.pay-opt.sel::before {
  opacity: 1;
}
.pay-opt input[type="radio"] {
  display: none;
}
.pay-opt i {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
  color: var(--text-muted);
  transition: all 0.3s;
}
.pay-opt.sel i {
  color: var(--primary);
  text-shadow: 0 0 15px rgba(147, 51, 234, 0.5);
}
.pay-opt div {
  flex: 1;
}
.pay-opt strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}
.pay-opt small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Checkout Summary */
.ck-side .sticky-card {
  position: sticky;
  top: 100px;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.ck-summary {
  background: rgba(15, 15, 25, 0.92);
  border: 1px solid rgba(147, 51, 234, 0.2);
}
.ck-summary h2 {
  border-bottom-color: rgba(147, 51, 234, 0.2);
}
.s-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  margin: 16px 0;
}
.s-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-2);
  padding: 8px 0;
}
.s-item span:first-child {
  flex: 1;
  padding-right: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.s-item span:last-child {
  font-weight: 600;
  color: var(--text-1);
}
.s-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 20px;
  margin-top: 8px;
}
.s-total span:first-child {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
}
.s-total span:last-child {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--success);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}
.ck-summary .btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 5px 20px rgba(147, 51, 234, 0.3);
}
/* Disable shine sweep on checkout buttons ??causes flicker inside sticky backdrop-filter */
.ck-summary .btn-primary::before,
.ck-mobile-pay-btn::before { display: none !important; }
.ck-summary .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(147, 51, 234, 0.4);
}
.ck-summary .btn-primary:active {
  transform: translateY(0);
}
.ck-summary .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.ck-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.ck-secure i {
  color: var(--success);
}

/* Light Theme Checkout */
html.light-mode .checkout-page {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
html.light-mode .checkout-page h1 {
  color: #0f172a;
}
html.light-mode .ck-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: #e2e8f0;
}
html.light-mode .ck-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
html.light-mode .ck-card h2 {
  color: #0f172a;
  border-bottom-color: #e2e8f0;
}
html.light-mode .ck-card .form-group label {
  color: #475569;
}
html.light-mode .ck-card .form-group input {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}
html.light-mode .ck-card .form-group input:focus {
  background: #fff;
  border-color: var(--primary);
}
html.light-mode .ck-card .form-group input::placeholder {
  color: #94a3b8;
}
html.light-mode .pay-opt {
  background: #f8fafc;
}
html.light-mode .pay-opt:hover {
  background: #f1f5f9;
  border-color: rgba(147, 51, 234, 0.3);
}
html.light-mode .pay-opt.sel {
  background: rgba(147, 51, 234, 0.05);
}
html.light-mode .pay-opt strong {
  color: #0f172a;
}
html.light-mode .ck-summary {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(147, 51, 234, 0.15);
}
html.light-mode .ck-summary h2 {
  border-bottom-color: rgba(147, 51, 234, 0.1);
}
html.light-mode .s-item span:last-child {
  color: #0f172a;
}
html.light-mode .s-total span:first-child {
  color: #0f172a;
}

/* Checkout Responsive */
@media (max-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ck-side .sticky-card {
    position: static;
  }
}
@media (max-width: 640px) {
  .checkout-page {
    padding: 80px 16px 40px;
  }
  .checkout-page h1 {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }
  .ck-card {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }
  .ck-card h2 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  .ck-card .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pay-opt {
    padding: 14px 16px;
    gap: 12px;
  }
  .pay-opt i {
    font-size: 1.3rem;
    width: 32px;
  }
  .pay-opt strong {
    font-size: 0.9rem;
  }
  .s-total span:last-child {
    font-size: 1.4rem;
  }
  .ck-summary .btn-primary {
    padding: 14px;
  }
}

/* ============================
   Coupon Section (Checkout)
   ============================ */
.coupon-section {
  padding: 12px 0;
}
.coupon-section label {
  display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-2);
  margin-bottom: 8px;
}
.coupon-section label i {
  margin-right: 6px; color: var(--primary);
}
.coupon-input-wrap {
  display: flex; gap: 8px;
}
.coupon-input-wrap input {
  flex: 1; padding: 10px 14px; font-size: 0.9rem;
  background: var(--bg-3); border: 1.5px solid rgba(147,51,234,0.35); border-radius: var(--radius-sm);
  color: var(--white); text-transform: uppercase;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.coupon-input-wrap input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(147,51,234,0.18);
}
.coupon-input-wrap input:disabled {
  opacity: 0.6; cursor: not-allowed;
}
.btn-apply {
  padding: 10px 18px; font-size: 0.85rem; font-weight: 600;
  background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s;
}
.btn-apply:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-apply:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.coupon-result {
  margin-top: 8px; font-size: 0.82rem;
}
.coupon-success {
  color: var(--success); display: flex; align-items: center; gap: 6px;
}
.coupon-success a {
  color: var(--text-muted); margin-left: auto; text-decoration: underline;
  font-size: 0.75rem;
}
.coupon-success a:hover { color: var(--danger); }
.coupon-error {
  color: var(--danger); display: flex; align-items: center; gap: 6px;
}
.s-subtotal, .s-discount, .s-fee {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.9rem; color: var(--text-2); margin-bottom: 8px;
}
.s-discount span:last-child {
  color: var(--success); font-weight: 600;
}
.s-fee span:last-child {
  color: var(--text-2); font-weight: 500;
}

/* Light Theme */
html.light-mode .coupon-input-wrap input {
  background: #f8fafc; border-color: rgba(147,51,234,0.25); color: #0f172a;
}
html.light-mode .coupon-input-wrap input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(147,51,234,0.12);
}

/* ============================
   Stock Status Badges
   ============================ */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  vertical-align: middle;
  text-transform: uppercase;
  white-space: nowrap;
}
.stock-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: stockPulse 2s ease-in-out infinite;
}
.stock-badge i { display: none; }
.stock-plenty {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}
.stock-plenty::before {
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}
.stock-low {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}
.stock-low::before {
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
}
.stock-critical {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}
.stock-critical::before {
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
  animation: stockPulse 1s ease-in-out infinite;
}
.stock-out {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}
.stock-out::before {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  animation: stockPulse 1s ease-in-out infinite;
}
@keyframes stockPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Tier option stock label */
.tier-opt .tier-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.tier-stock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 500;
  margin-top: 0;
  margin-left: 8px;
  padding: 2px 8px 2px 16px;
  border-radius: 4px;
  position: relative;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.tier-stock i { display: none; }
.tier-stock::before {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  animation: stockPulse 2s ease-in-out infinite;
}
.tier-stock.stock-plenty {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
}
.tier-stock.stock-plenty::before {
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}
.tier-stock.stock-low {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}
.tier-stock.stock-low::before {
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
}
.tier-stock.stock-critical {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}
.tier-stock.stock-critical::before {
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
  animation: stockPulse 1s ease-in-out infinite;
}
.tier-stock.stock-out {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}
.tier-stock.stock-out::before {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  animation: stockPulse 1s ease-in-out infinite;
}
.tier-opt.tier-out {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.6);
}
.tier-opt.tier-out .tier-main strong {
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.25);
}

/* Light theme */
html.light-mode .stock-plenty { background: rgba(16, 185, 129, 0.08); color: #059669; }
html.light-mode .stock-plenty::before { background: #059669; box-shadow: 0 0 6px #059669; }
html.light-mode .stock-low { background: rgba(245, 158, 11, 0.08); color: #d97706; }
html.light-mode .stock-low::before { background: #d97706; box-shadow: 0 0 6px #d97706; }
html.light-mode .stock-critical { background: rgba(245, 158, 11, 0.08); color: #d97706; }
html.light-mode .stock-critical::before { background: #d97706; box-shadow: 0 0 6px #d97706; }
html.light-mode .stock-out { background: rgba(239, 68, 68, 0.08); color: #dc2626; }
html.light-mode .stock-out::before { background: #dc2626; box-shadow: 0 0 6px #dc2626; }
html.light-mode .tier-stock.stock-plenty { background: rgba(16, 185, 129, 0.06); color: #059669; }
html.light-mode .tier-stock.stock-low { background: rgba(245, 158, 11, 0.06); color: #d97706; }
html.light-mode .tier-stock.stock-critical { background: rgba(245, 158, 11, 0.06); color: #d97706; }
html.light-mode .tier-stock.stock-out { background: rgba(239, 68, 68, 0.06); color: #dc2626; }
html.light-mode .tier-opt.tier-out .tier-main strong {
  text-decoration-color: rgba(0,0,0,0.2);
}
/* ============================
   Product Detail Page Styles
   ============================ */
.product-hero {
  padding: 120px 0 30px;
  background: linear-gradient(135deg, rgba(147,51,234,0.08) 0%, rgba(99,102,241,0.05) 100%);
}

.product-detail-section {
  padding: 40px 0 80px;
}

.product-detail-grid {
  min-height: 400px;
}

.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 80px 20px;
}

.product-error {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.product-error i {
  font-size: 4rem;
  color: #f87171;
  margin-bottom: 20px;
}
.product-error h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* Product Media */
.product-media {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.product-image-large {
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
}
.product-image-large img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform 0.4s ease;
}
.product-image-large:hover img {
  transform: scale(1.02);
}
.product-badge-large {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 16px;
  border-radius: var(--radius-round);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
}

/* Product Gallery (WooCommerce FlexSlider style) */
.product-gallery {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-viewport {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
}
.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
}
.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gallery-slide img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  -webkit-user-drag: none;
}
/* Arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
  z-index: 3;
}
.gallery-viewport:hover .gallery-arrow {
  opacity: 1;
}
.gallery-arrow:hover {
  background: rgba(0,0,0,0.8);
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
/* Thumbnails */
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}
.gallery-thumbs::-webkit-scrollbar-track {
  background: transparent;
}
.gallery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}
.gallery-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: opacity 0.3s, border-color 0.3s;
}
.gallery-thumb:hover {
  opacity: 0.8;
}
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--primary);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
}
.product-badge-large.hot {
  background: rgba(10,10,15,0.8); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1);
  color: #c084fc; box-shadow: 0 0 15px rgba(147, 51, 234, 0.2);
}
.product-badge-large.new {
  background: rgba(10,10,15,0.8); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1);
  color: #22d3ee; box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.product-video-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.product-video-section .section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-video-section .section-title i {
  color: #ef4444;
}
.product-video {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
}
.product-video iframe {
  width: 100%;
  height: 100%;
}

/* Product Info Panel */
.product-info-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.product-header-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-game-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #c084fc;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.product-game-label .stock-badge {
  font-size: 0.75rem;
  padding: 4px 10px 4px 22px;
}

.product-title-large {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-display);
  line-height: 1.3;
}

.product-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.product-tag {
  padding: 6px 14px;
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: var(--radius-round);
  font-size: 0.8rem;
  color: #c084fc;
  font-weight: 600;
}

.product-price-range {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-md);
}
.product-price-range .stock-badge {
  margin-left: auto;
  font-size: 0.75rem;
  padding: 5px 12px 5px 24px;
}
.product-price-range .price-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.product-price-range .price-range-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--success);
  font-family: var(--font-display);
}

/* Price Options */
.price-options-section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-options-section h4 i {
  color: var(--primary);
}

.price-options {
  display: grid;
  gap: 12px;
}

.price-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: rgba(255,255,255,0.02);
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.price-option:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}
.price-option.selected {
  border-color: var(--primary);
  background: rgba(147,51,234,0.1);
  box-shadow: 0 8px 20px rgba(147,51,234,0.2);
}

.price-option.price-out {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.6);
}
.price-option.price-out .price-option-main strong {
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.25);
}

.price-option-main {
  display: flex;
  align-items: center;
  gap: 16px;
}
.price-option-main strong {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
}
.price-option-main .price-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--success);
  font-family: var(--font-display);
}

.price-option .stock-badge {
  font-size: 0.72rem;
  padding: 5px 12px;
  margin-left: auto;
  flex-shrink: 0;
}
.price-option .stock-badge::before {
  width: 7px;
  height: 7px;
}

/* Quantity Selector for Product Page */
.qty-selector-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
}
.qty-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.qty-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.qty-btn:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
}
.qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.qty-display {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  min-width: 40px;
  text-align: center;
  font-family: var(--font-display);
}
html.light-mode .qty-selector-section {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
}
html.light-mode .qty-btn {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.12);
  color: #1e293b;
}
html.light-mode .qty-display {
  color: #1e293b;
}

/* Purchase Section */
.purchase-section {
  display: flex;
  gap: 16px;
}
.purchase-section .btn {
  flex: 1;
  padding: 18px 24px;
  font-size: 1.1rem;
  font-weight: 700;
}
.btn-purchase {
  min-width: 0;
}
.btn-buy-now {
  min-width: 0;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-round);
}
.btn-buy-now:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4);
  transform: translateY(-2px);
}

/* Product Meta */
.product-meta {
  display: flex;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Product Detail Box */
.product-detail-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.product-detail-box .section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-detail-box .section-title i {
  color: var(--primary);
}
.detail-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.detail-content ul, .detail-content ol {
  padding-left: 24px;
  margin: 12px 0;
}
.detail-content li {
  margin: 8px 0;
}
.detail-content h4 {
  color: #fff;
  margin: 20px 0 12px;
}
.detail-content p {
  margin: 12px 0;
}

/* Discord-style markdown */
.detail-content .dc-h {
  color: #fff;
  font-weight: 700;
  margin: 20px 0 8px;
}
.detail-content h3.dc-h { font-size: 1.25rem; }
.detail-content h4.dc-h { font-size: 1.1rem; }
.detail-content h5.dc-h { font-size: 1rem; }
.detail-content .dc-p {
  margin: 4px 0;
  line-height: 1.8;
}
.detail-content .dc-spacer {
  height: 12px;
}
.detail-content .dc-list {
  list-style: none;
  padding-left: 0;
  margin: 8px 0;
}
.detail-content .dc-li {
  position: relative;
  padding-left: 20px;
  margin: 5px 0;
  line-height: 1.7;
}
.detail-content .dc-li::before {
  content: '??;
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-weight: 700;
}
.detail-content .dc-indent-1 { padding-left: 40px; }
.detail-content .dc-indent-1::before { left: 24px; color: var(--text-muted); font-size: 0.8em; }
.detail-content .dc-indent-2 { padding-left: 60px; }
.detail-content .dc-indent-2::before { left: 44px; color: var(--text-muted); font-size: 0.7em; }
.detail-content .dc-indent-3 { padding-left: 80px; }
.detail-content .dc-indent-3::before { left: 64px; color: var(--text-muted); font-size: 0.7em; }
.detail-content .dc-quote {
  border-left: 4px solid var(--primary);
  padding: 8px 16px;
  margin: 10px 0;
  background: rgba(147, 51, 234, 0.06);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
}
.detail-content .dc-inline-code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9em;
  color: #e879f9;
}
.detail-content pre {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
  overflow-x: auto;
}
.detail-content pre code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9rem;
  color: #f8fafc;
}
.detail-content strong { color: #fff; font-weight: 700; }
.detail-content em { font-style: italic; }
.detail-content del { color: var(--text-muted); text-decoration: line-through; }
.detail-content u { text-decoration: underline; text-underline-offset: 3px; }

/* ========== Product Detail Entry Animations ========== */
.product-main {
  animation: fadeIn 0.4s ease 0.1s both;
}
.product-detail-box {
  animation: fadeIn 0.4s ease 0.2s both;
}
.product-video-section {
  animation: fadeIn 0.4s ease 0.3s both;
}

/* ========== Price Option Selection Feedback ========== */
.price-option {
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.price-option.selected {
  animation: priceSelect 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes priceSelect {
  0% { transform: scale(1); }
  40% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* ========== Games Hero Entry ========== */
.games-hero-content {
  animation: fadeIn 0.4s ease 0.1s both;
}
.game-hero-content {
  animation: fadeIn 0.4s ease 0.1s both;
}

/* Responsive */
@media (max-width: 992px) {
  .product-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .product-hero {
    padding: 90px 0 20px;
  }
  .product-detail-section {
    padding: 30px 0 100px;
  }
  .product-image-large {
    padding: 0;
  }
  .product-image-large img {
    width: 100%;
  }
  .product-gallery {
  }
  .gallery-slide img {
    width: 100%;
  }
  .gallery-arrow {
    width: 32px;
    height: 32px;
    font-size: 13px;
    opacity: 1;
  }
  .gallery-thumb {
    width: 56px;
    height: 56px;
  }
  .product-title-large {
    font-size: 1.5rem;
  }
  .product-price-range .price-range-value {
    font-size: 1.4rem;
  }
  .purchase-section {
    flex-direction: column;
  }
  .product-meta {
    flex-direction: column;
    gap: 12px;
  }
  .product-detail-box {
    padding: 24px;
  }
}

/* Light Theme */
html.light-mode .product-hero {
  background: linear-gradient(135deg, rgba(147,51,234,0.04) 0%, rgba(99,102,241,0.03) 100%);
}
html.light-mode .product-image-large {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.06);
}
html.light-mode .product-badge-large.hot {
  background: rgba(147,51,234,0.1); border-color: rgba(147,51,234,0.2);
  color: #7c3aed; box-shadow: 0 2px 8px rgba(147,51,234,0.12);
}
html.light-mode .product-badge-large.new {
  background: rgba(6,182,212,0.1); border-color: rgba(6,182,212,0.2);
  color: #0891b2; box-shadow: 0 2px 8px rgba(6,182,212,0.12);
}
html.light-mode .gallery-viewport {
  border-color: rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
}
html.light-mode .gallery-arrow {
  background: rgba(0,0,0,0.3);
}
html.light-mode .gallery-thumb {
  border-color: transparent;
}
html.light-mode .product-carousel {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.06);
}
html.light-mode .carousel-arrow {
  background: rgba(0,0,0,0.3);
}
html.light-mode .carousel-dot {
  border-color: rgba(0,0,0,0.3);
}
html.light-mode .product-title-large {
  color: #1e1b4b;
}
html.light-mode .product-subtitle {
  color: #6b7280;
}
html.light-mode .product-tag {
  background: rgba(147, 51, 234, 0.08);
  border-color: rgba(147, 51, 234, 0.15);
}
html.light-mode .product-price-range {
  background: rgba(16, 185, 129, 0.04);
  border-color: rgba(16, 185, 129, 0.08);
}
html.light-mode .price-option {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.08);
}
html.light-mode .price-option:hover {
  background: rgba(0,0,0,0.04);
}
html.light-mode .price-option.selected {
  background: rgba(147,51,234,0.06);
}
html.light-mode .price-option-main strong {
  color: #1e1b4b;
}
html.light-mode .product-video-section {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.06);
}
html.light-mode .product-detail-box {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.06);
}
html.light-mode .product-detail-box .section-title {
  color: #1e1b4b;
}
html.light-mode .detail-content {
  color: #4b5563;
}
html.light-mode .detail-content h4,
html.light-mode .detail-content .dc-h,
html.light-mode .detail-content strong {
  color: #1e1b4b;
}
html.light-mode .detail-content .dc-inline-code {
  background: rgba(0,0,0,0.06);
  color: #9333ea;
}
html.light-mode .detail-content pre {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
}
html.light-mode .detail-content .dc-quote {
  background: rgba(147, 51, 234, 0.04);
}
html.light-mode .product-meta {
  border-top-color: rgba(0,0,0,0.06);
}
html.light-mode .price-option.price-out .price-option-main strong {
  text-decoration-color: rgba(0,0,0,0.2);
}
html.light-mode .price-stock.stock-plenty { background: rgba(16, 185, 129, 0.08); color: #059669; }
html.light-mode .price-stock.stock-low { background: rgba(245, 158, 11, 0.08); color: #d97706; }
html.light-mode .price-stock.stock-critical { background: rgba(239, 68, 68, 0.08); color: #dc2626; }
html.light-mode .price-stock.stock-out { background: rgba(239, 68, 68, 0.08); color: #dc2626; }

/* ====== Lightbox ?嚙賢之?嚙踝蕭? ====== */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
  cursor: default;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: lightboxZoomIn 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}
@keyframes lightboxZoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.lightbox-arrow:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  background: rgba(0,0,0,0.4);
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 2px;
}

/* Zoom hint on carousel/image hover */
.zoom-hint {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.7);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.gallery-viewport:hover .zoom-hint,
.product-image-large:hover .zoom-hint {
  opacity: 1;
}

@media (max-width: 768px) {
  .lightbox-arrow { width: 38px; height: 38px; font-size: 15px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }
  .lightbox-content img { max-width: 95vw; max-height: 80vh; border-radius: 8px; }
}

/* ===== Disclaimer Modal ===== */
.disclaimer-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -45%) scale(0.95);
  width: 92%; max-width: 680px; max-height: 85vh;
  background: rgba(15,15,20,0.97); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); z-index: 2501; opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.3s ease;
  box-shadow: 0 40px 80px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.02);
  display: flex; flex-direction: column; overflow: hidden;
}
.disclaimer-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.disclaimer-modal .modal-close { position: absolute; top: 16px; right: 16px; z-index: 10; }

.disclaimer-header {
  text-align: center; padding: 36px 40px 24px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.disclaimer-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(147,51,234,0.2), rgba(168,85,247,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #c084fc;
  border: 1px solid rgba(147,51,234,0.3);
  box-shadow: 0 0 30px rgba(147,51,234,0.15);
}
.disclaimer-title {
  font-size: 1.5rem; font-weight: 900; color: #fff;
  font-family: var(--font-display); margin-bottom: 6px;
}
.disclaimer-subtitle {
  font-size: 0.85rem; color: var(--text-muted); font-weight: 500;
}

.disclaimer-body {
  padding: 24px 40px 36px; overflow-y: auto; flex: 1;
  scrollbar-width: thin; scrollbar-color: rgba(147,51,234,0.3) transparent;
}
.disclaimer-body::-webkit-scrollbar { width: 5px; }
.disclaimer-body::-webkit-scrollbar-track { background: transparent; }
.disclaimer-body::-webkit-scrollbar-thumb { background: rgba(147,51,234,0.3); border-radius: 10px; }
.disclaimer-body::-webkit-scrollbar-thumb:hover { background: rgba(147,51,234,0.5); }

.disclaimer-intro {
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 12px;
}

.disclaimer-section {
  margin-bottom: 24px; padding: 20px 24px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
  transition: border-color 0.3s;
}
.disclaimer-section:hover { border-color: rgba(147,51,234,0.2); }
.disclaimer-section h3 {
  font-size: 1.05rem; font-weight: 800; color: #fff; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
}
.disclaimer-section h3 small {
  font-size: 0.75rem; color: var(--text-muted); font-weight: 500;
}
.section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  color: #fff; font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0;
}
.disclaimer-section ul {
  list-style: none; padding: 0; margin: 0;
}
.disclaimer-section li {
  position: relative; padding: 8px 0 8px 20px; font-size: 0.88rem;
  color: rgba(255,255,255,0.7); line-height: 1.8;
}
.disclaimer-section li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); opacity: 0.6;
}
.disclaimer-section li strong {
  color: #e9d5ff; font-weight: 700;
}

/* Disclaimer light theme */
html.light-mode .disclaimer-modal {
  background: rgba(255,255,255,0.98); border-color: rgba(0,0,0,0.06);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
html.light-mode .disclaimer-header { border-bottom-color: rgba(0,0,0,0.06); }
html.light-mode .disclaimer-icon {
  background: linear-gradient(135deg, rgba(147,51,234,0.1), rgba(168,85,247,0.05));
  border-color: rgba(147,51,234,0.2);
}
html.light-mode .disclaimer-title { color: #1e1b4b; }
html.light-mode .disclaimer-subtitle { color: #6b7280; }
html.light-mode .disclaimer-intro { color: #4b5563; }
html.light-mode .disclaimer-section {
  background: rgba(0,0,0,0.015); border-color: rgba(0,0,0,0.06);
}
html.light-mode .disclaimer-section:hover { border-color: rgba(147,51,234,0.25); }
html.light-mode .disclaimer-section h3 { color: #1e1b4b; }
html.light-mode .disclaimer-section h3 small { color: #6b7280; }
html.light-mode .disclaimer-section li { color: #4b5563; }
html.light-mode .disclaimer-section li strong { color: #6d28d9; }

/* Disclaimer modal responsive */
@media (max-width: 768px) {
  .disclaimer-modal {
    top: auto; left: 0; bottom: 0; transform: translateY(100%);
    width: 100%; max-width: 100%; max-height: 90vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .disclaimer-modal.active { transform: translateY(0); }
  .disclaimer-header { padding: 28px 24px 20px; }
  .disclaimer-body { padding: 20px 24px 32px; }
  .disclaimer-section { padding: 16px 18px; }
  .disclaimer-icon { width: 48px; height: 48px; font-size: 1.3rem; margin-bottom: 12px; }
  .disclaimer-title { font-size: 1.3rem; }
}





