/*
Theme Name: Digital Game Store
Theme URI: https://example.com/digital-game-store
Author: Custom
Description: Custom 2026 digital storefront for Steam gift posts (category gifts). Tailwind CDN, light/dark themes, no WooCommerce in theme code.
Version: 3.0.0
Text Domain: digital-game-store
*/

/* Fonts loaded via wp_enqueue_style in functions.php (Syne + DM Sans). */

/* ============================================
   DESIGN SYSTEM — 2026 (Linear / Stripe / premium game stores)
   ============================================ */

:root {
  --color-bg-primary: #0a0d12;
  --color-bg-secondary: #0e1117;
  --color-bg-tertiary: #13161d;
  --color-surface: rgba(255, 255, 255, 0.06);
  --color-surface-elevated: rgba(255, 255, 255, 0.09);
  --color-surface-hover: rgba(255, 255, 255, 0.12);

  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-hero: linear-gradient(180deg, rgba(10,13,18,0.1) 0%, rgba(10,13,18,0.85) 50%, #0a0d12 100%);
  --gradient-card: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.75) 100%);
  
  /* Text Colors - улучшенная читаемость */
  --color-text-primary: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-text-disabled: #64748b;
  
  --color-primary: #8b5cf6;
  --color-primary-light: #a78bfa;
  --color-primary-dark: #7c3aed;
  --color-primary-glow: rgba(139, 92, 246, 0.45);

  --color-accent: #22d3ee;
  --color-accent-light: #67e8f9;
  --color-accent-dark: #06b6d4;
  --color-accent-glow: rgba(34, 211, 238, 0.35);
  
  --color-success: #00e676;
  --color-warning: #ffab00;
  --color-danger: #ff1744;
  --color-info: #00e5ff;
  
  /* Borders & Dividers */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-light: rgba(255, 255, 255, 0.05);
  --color-border-strong: rgba(255, 255, 255, 0.12);
  
  /* Minimal Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 24px 0 rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 20px 40px 0 rgba(0, 0, 0, 0.8);
  --shadow-glow-primary: 0 0 24px var(--color-primary-glow);
  --shadow-glow-accent: 0 0 24px var(--color-accent-glow);
  
  --font-display: 'Syne', system-ui, sans-serif;
  --font-heading: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Minimal Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* Smooth Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Override */
[data-theme="light"] {
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8fafc;
  --color-bg-tertiary: #f1f5f9;
  --color-surface: #f8fafc;
  --color-surface-elevated: #ffffff;
  --color-surface-hover: #f1f5f9;
  
  --gradient-hero: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 45%, rgba(255,255,255,1) 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.95) 100%);
  
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-text-disabled: #94a3b8;
  
  --color-primary: #7c3aed;
  --color-primary-light: #8b5cf6;
  --color-primary-dark: #6d28d9;
  
  --color-border: rgba(15, 23, 42, 0.1);
  --color-border-light: rgba(15, 23, 42, 0.08);
  --color-border-strong: rgba(15, 23, 42, 0.2);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.dg-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 768px) {
  .dg-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

.dg-display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dg-heading-xl {
  font-size: 3.5rem;
  line-height: 1.1;
}

.dg-heading-lg {
  font-size: 2.5rem;
  line-height: 1.2;
}

.dg-heading-md {
  font-size: 1.875rem;
  line-height: 1.3;
}

.dg-heading-sm {
  font-size: 1.5rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .dg-heading-xl { font-size: 2.5rem; }
  .dg-heading-lg { font-size: 2rem; }
  .dg-heading-md { font-size: 1.5rem; }
}

/* ============================================
   BUTTON SYSTEM
   ============================================ */

.dg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.dg-btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md), var(--shadow-glow-primary);
}

.dg-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-primary);
}

.dg-btn-accent {
  background: var(--gradient-accent);
  color: white;
  box-shadow: var(--shadow-md), var(--shadow-glow-accent);
}

.dg-btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-accent);
}

.dg-btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-border-strong);
}

.dg-btn-outline:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.dg-btn-ghost {
  background: rgba(139, 92, 246, 0.1);
  color: var(--color-primary-light);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.dg-btn-ghost:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--color-primary);
}

.dg-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.dg-btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ============================================
   CARD SYSTEM
   ============================================ */

.dg-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.dg-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.dg-card-glow {
  position: relative;
}

.dg-card-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.dg-card-glow:hover::before {
  opacity: 1;
}

/* ============================================
   BADGE SYSTEM
   ============================================ */

.dg-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dg-badge-sale {
  background: var(--gradient-accent);
  color: white;
  box-shadow: var(--shadow-glow-accent);
}

.dg-badge-new {
  background: var(--gradient-success);
  color: white;
}

.dg-badge-discount {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  font-weight: 700;
}

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */

.dg-glass {
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .dg-glass {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px var(--color-primary-glow);
  }
  50% {
    box-shadow: 0 0 40px var(--color-primary-glow);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.dg-animate-fade-in {
  animation: fadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.dg-animate-slide-in {
  animation: slideIn 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.dg-animate-scale-in {
  animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dg-product-card {
  animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.dg-product-card:nth-child(1) { animation-delay: 0.05s; }
.dg-product-card:nth-child(2) { animation-delay: 0.1s; }
.dg-product-card:nth-child(3) { animation-delay: 0.15s; }
.dg-product-card:nth-child(4) { animation-delay: 0.2s; }
.dg-product-card:nth-child(5) { animation-delay: 0.25s; }
.dg-product-card:nth-child(6) { animation-delay: 0.3s; }
.dg-product-card:nth-child(7) { animation-delay: 0.35s; }
.dg-product-card:nth-child(8) { animation-delay: 0.4s; }

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

.dg-gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dg-glow-primary {
  box-shadow: var(--shadow-glow-primary);
}

.dg-glow-accent {
  box-shadow: var(--shadow-glow-accent);
}

.dg-text-muted {
  color: var(--color-text-muted);
}

.dg-divider {
  height: 1px;
  background: var(--color-border);
  margin: 2rem 0;
}

/* ============================================
   RESPONSIVE MOBILE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .dg-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  
  .dg-heading-xl {
    font-size: 2.75rem;
  }
  
  .dg-heading-lg {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .dg-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .dg-heading-xl {
    font-size: 2.25rem;
    line-height: 1.15;
  }
  
  .dg-heading-lg {
    font-size: 1.875rem;
  }
  
  .dg-heading-md {
    font-size: 1.5rem;
  }
  
  .dg-heading-sm {
    font-size: 1.25rem;
  }
  
  .dg-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
  
  .dg-btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
  }
  
  .dg-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 640px) {
  .dg-heading-xl {
    font-size: 1.875rem;
  }
  
  .dg-heading-lg {
    font-size: 1.5rem;
  }
  
  .dg-heading-md {
    font-size: 1.25rem;
  }
  
  .dg-card {
    border-radius: var(--radius-lg);
  }
  
  .dg-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */

@media (max-width: 1024px) {
  #mobile-menu {
    animation: slideDown 0.3s ease-out;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ============================================
   MOBILE PRODUCT CARDS
   ============================================ */

@media (max-width: 640px) {
  .dg-product-card {
    border-radius: var(--radius-lg);
  }
  
  .dg-product-card .aspect-\[16\/9\] {
    aspect-ratio: 4/3;
  }
}

/* ============================================
   MOBILE FORMS
   ============================================ */

@media (max-width: 640px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px;
  }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

@media (hover: none) and (pointer: coarse) {
  .dg-btn,
  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }
  
  .dg-card:hover {
    transform: none;
  }
  
  .dg-card:active {
    transform: scale(0.98);
  }
  
  .dg-btn:active {
    transform: scale(0.95);
  }
}

/* Local wishlist toggle (no WooCommerce) */
.dg-wishlist-active svg {
  fill: currentColor;
}

/* ============================================
   PAGINATION STYLING
   ============================================ */

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-base);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  text-decoration: none;
  margin: 0 0.25rem;
}

.page-numbers:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.page-numbers.current {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-glow-primary);
}

.page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
}

.page-numbers.dots:hover {
  transform: none;
  background: transparent;
}

/* ============================================
   LOADING STATES
   ============================================ */

.dg-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.dg-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   2026 LAYOUT — glass hero, chips, cards, tabs
   ============================================ */

body {
  font-family: var(--font-body);
}

.dg-section-title {
  font-family: var(--font-display);
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
}

.dg-signin-pill {
  background: #f8fafc;
  color: #0b0e14;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .dg-signin-pill {
  background: #0b0e14;
  color: #f8fafc;
}

.dg-site-header.dg-glass-nav {
  background: color-mix(in srgb, var(--color-bg-primary) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  border-bottom: 1px solid var(--color-border);
}

.dg-main-pad {
  padding-bottom: 0;
}

@media (max-width: 767px) {
  .dg-main-pad {
    padding-bottom: 5.5rem;
  }
}

/* Hero */
.dg-hero-bg {
  background-size: cover;
  background-position: center top;
  transition: background-image 0.6s ease, opacity 0.5s ease, transform 0.15s ease-out;
  transform-origin: center top;
  will-change: transform;
}

.dg-hero-scrim {
  background: linear-gradient(105deg, rgba(11,14,20,0.85) 0%, rgba(11,14,20,0.45) 45%, rgba(11,14,20,0.2) 100%),
    linear-gradient(0deg, #0b0e14 0%, transparent 55%);
}

.dg-hero-mesh {
  background:
    radial-gradient(ellipse 90% 70% at 85% 10%, rgba(139, 92, 246, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(34, 211, 238, 0.12), transparent 45%);
}

.dg-hero-title {
  font-family: var(--font-display);
  color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.dg-hero-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--color-border-strong);
  color: var(--color-accent-light);
}

.dg-hero-price {
  color: #fff;
  font-family: var(--font-display);
}

.dg-btn-primary {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dg-btn-primary:hover {
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

.dg-hero-secondary {
  border-color: var(--color-border-strong);
  color: var(--color-text-primary);
  background: rgba(255,255,255,0.06);
}

/* Hero game picker: 3×2 grid, no scroll */
.dg-hero-pick-grid {
  width: 100%;
  max-width: 22rem;
}

@media (min-width: 1024px) {
  .dg-hero-pick-grid {
    max-width: none;
  }
}

.dg-hero-pick {
  border-color: var(--color-border);
  background: rgba(255,255,255,0.06);
}

.dg-hero-pick:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.dg-hero-pick.is-active {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow:
    0 0 0 2px rgba(34, 211, 238, 0.28),
    0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.dg-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.03);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.dg-chip:hover {
  color: var(--color-text-primary);
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.08);
}

.dg-chip.is-active {
  color: var(--color-text-primary);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.1);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);
}

.dg-card-modern {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dg-card-modern:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(6, 182, 212, 0.15);
  transform: translateY(-6px);
}

[data-theme="light"] .dg-card-modern {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

[data-theme="light"] .dg-card-modern:hover {
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 0 0 1px rgba(6, 182, 212, 0.2);
}

.dg-card-media {
  position: relative;
  overflow: hidden;
}

.dg-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.dg-card-modern:hover .dg-card-overlay {
  opacity: 1;
}

.dg-card-shine {
  background: linear-gradient(125deg, transparent 35%, rgba(255,255,255,0.12) 50%, transparent 65%);
}

.dg-glass-card {
  background: rgba(255,255,255,0.04);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.dg-glass-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.dg-badge-discount {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.dg-badge-mc {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  backdrop-filter: blur(8px);
}

.dg-price-pill {
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--color-border);
  color: #fff;
}

.dg-quick-pill {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.dg-card-title {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
}

.dg-card-title:hover {
  color: var(--color-accent-light);
}

.dg-wishlist-btn {
  background: rgba(255,255,255,0.05);
  color: var(--color-text-muted);
  transition: all 0.25s ease;
}

.dg-wishlist-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #f472b6;
}

.dg-wishlist-active {
  background: rgba(244, 114, 182, 0.12) !important;
  color: #f472b6 !important;
}

.dg-gift-card-fallback {
  background: linear-gradient(145deg, #151a24, #1e1b4b 50%, #0f172a);
  color: rgba(255,255,255,0.35);
}

.dg-link {
  color: var(--color-accent);
}

.dg-link:hover {
  color: var(--color-accent-light);
}

.dg-upcoming-scrim {
  background: linear-gradient(180deg, transparent 30%, rgba(11,14,20,0.95) 100%);
}

.dg-coming-badge {
  color: var(--color-accent);
}

.dg-btn-ghost {
  border-color: rgba(255,255,255,0.2);
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.dg-btn-ghost:hover {
  background: rgba(255,255,255,0.12);
}

.dg-cta-panel {
  border-color: var(--color-border);
  background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(11,14,20,0.9) 100%);
}

.dg-cta-glow {
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(139, 92, 246, 0.25), transparent 55%);
}

/* Product page tabs */
.dg-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.dg-tab-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dg-tab-btn:hover {
  color: var(--color-text-primary);
  background: rgba(255,255,255,0.05);
}

.dg-tab-btn.is-active {
  color: var(--color-text-primary);
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.12);
}

.dg-tab-panel {
  display: none;
}

.dg-tab-panel.is-active {
  display: block;
  animation: dgFade 0.35s ease;
}

@keyframes dgFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dg-achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.dg-achievement-item {
  text-align: center;
  padding: 0.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.03);
}

.dg-achievement-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
  border-radius: var(--radius-md);
}

/* Mobile bottom bar */
.dg-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0.25rem calc(0.5rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--color-bg-primary) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
}

.dg-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.dg-bottom-nav a:hover,
.dg-bottom-nav a[aria-current="page"] {
  color: var(--color-accent);
}

.scrollbar-none {
  scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* ============================================
   2026 GLASS REFINEMENTS
   ============================================ */

.dg-site-header.dg-glass-nav {
  background: rgba(10, 13, 18, 0.72);
  backdrop-filter: blur(32px) saturate(1.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .dg-site-header.dg-glass-nav {
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.dg-logo-orb {
  background: linear-gradient(145deg, rgba(102, 126, 234, 0.18), rgba(118, 75, 162, 0.12));
  color: #e0e7ff;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.15), 0 4px 16px rgba(102, 126, 234, 0.22);
}

.dg-nav-pill {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-secondary);
  border: 0 !important;
  backdrop-filter: blur(8px);
}

.dg-nav-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-primary);
}

[data-theme="light"] .dg-nav-pill {
  background: rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .dg-nav-pill:hover {
  background: rgba(15, 23, 42, 0.08);
}

.dg-lang-pill {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.dg-lang-pill a {
  color: var(--color-text-muted);
  transition: all 0.2s ease;
}

.dg-lang-pill a.is-on {
  background: rgba(102, 126, 234, 0.15);
  color: #e0e7ff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.18);
}

[data-theme="light"] .dg-lang-pill {
  background: rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .dg-lang-pill a.is-on {
  background: rgba(102, 126, 234, 0.12);
  color: #4f46e5;
}

.dg-search-shell {
  position: relative;
}

.dg-search-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dg-search-input:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(6, 182, 212, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.08), 0 12px 32px rgba(0,0,0,0.24);
}

[data-theme="light"] .dg-search-input {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .dg-search-input:focus {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(6, 182, 212, 0.3) !important;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.06), 0 8px 24px rgba(0,0,0,0.08);
}

.dg-search-kbd {
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, monospace;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dg-live-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.75rem);
  border-radius: 1.25rem;
  background: rgba(14, 17, 23, 0.92);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 50px rgba(0,0,0,0.4);
  overflow: hidden;
  z-index: 80;
  animation: dgSearchSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .dg-live-search-results {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 20px 50px rgba(0,0,0,0.12);
}

@keyframes dgSearchSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dg-live-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  transition: background 0.15s ease;
}

.dg-live-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .dg-live-item:hover {
  background: rgba(15, 23, 42, 0.04);
}

.dg-live-main {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.85rem;
  align-items: center;
  min-width: 0;
}

.dg-live-thumb {
  width: 52px;
  height: 52px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.dg-live-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dg-live-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dg-live-copy strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dg-live-copy small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.dg-live-buy {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: #0a0d12;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.25);
  transition: all 0.2s ease;
}

.dg-live-buy:hover {
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}

[data-theme="light"] .dg-live-buy {
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2, #0e7490);
}

.dg-live-empty {
  padding: 1.25rem;
  font-size: 0.875rem;
  text-align: center;
  color: var(--color-text-muted);
}

.dg-hero-scrim {
  background: linear-gradient(95deg, rgba(10,13,18,0.92) 0%, rgba(10,13,18,0.55) 40%, rgba(10,13,18,0.25) 100%),
    linear-gradient(0deg, rgba(10,13,18,1) 0%, rgba(10,13,18,0.7) 35%, transparent 65%);
}

[data-theme="light"] .dg-hero-scrim {
  background: linear-gradient(95deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.65) 40%, rgba(255,255,255,0.35) 100%),
    linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 35%, transparent 65%);
}

.dg-gift-card,
.dg-glass-card,
.dg-chip,
.dg-hero-secondary,
.dg-price-pill,
.dg-wishlist-btn,
.dg-tabs-nav,
.dg-tab-btn,
.dg-achievement-item,
.page-numbers,
.dg-bottom-nav {
  border: 0 !important;
}

.dg-card-price {
  color: var(--color-text-primary);
  font-family: var(--font-display);
}

.dg-card-buy-btn {
  color: #0a0d12;
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 50%, #0891b2 100%);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.28);
}

.dg-card-buy-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.38);
  transform: translateY(-1px);
}

[data-theme="light"] .dg-card-buy-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2, #0e7490);
}

/* Hero: inner uses .dg-container only (same width as header / sections) */
.dg-hero {
  max-height: none;
  min-height: min(58svh, 620px);
}

@media (max-width: 1279px) {
  .dg-hero {
    min-height: auto;
  }
}

.dg-hero-compact .dg-hero-title {
  font-size: clamp(1.125rem, 2.8vw + 0.35rem, 2.75rem);
  line-height: 1.12;
}

.dg-hero-compact .dg-hero-excerpt {
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .dg-hero-compact .dg-hero-excerpt {
    font-size: 0.875rem;
    line-height: 1.55;
  }
}

@media (min-width: 1024px) {
  .dg-hero-compact .dg-hero-excerpt {
    font-size: 0.9375rem;
  }
}

.dg-hero-release-row {
  margin-top: 0.125rem;
  min-height: 1.375rem;
}

.dg-hero-release-row--empty {
  visibility: hidden;
}

.dg-hero-release-value {
  word-break: break-word;
}

/* Hero thumbs: compact on small screens so 3×2 fits; square tiles from sm+ */
.dg-hero-pick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

@media (max-width: 639px) {
  .dg-hero-pick-grid {
    gap: 0.25rem;
    aspect-ratio: 3 / 2;
    width: 100%;
    max-width: 100%;
  }

  .dg-hero-pick-grid .dg-hero-pick {
    aspect-ratio: auto;
    height: 100%;
    border-radius: 0.25rem;
  }

  .dg-hero-thumb-col {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 640px) {
  .dg-hero-pick-grid {
    aspect-ratio: auto;
  }

  .dg-hero-pick-grid .dg-hero-pick {
    aspect-ratio: 1 / 1;
    height: auto;
  }
}

.dg-hero-carousel-heading {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
  background: linear-gradient(115deg, #e0f2fe 0%, #22d3ee 45%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(34, 211, 238, 0.15);
  filter: drop-shadow(0 1px 12px rgba(6, 182, 212, 0.25));
}

@media (min-width: 768px) {
  .dg-hero-carousel-heading {
    font-size: 0.9375rem;
    letter-spacing: 0.16em;
  }
}

[data-theme="light"] .dg-hero-carousel-heading {
  background: linear-gradient(115deg, #0369a1 0%, #0891b2 50%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 8px rgba(8, 145, 178, 0.2));
}

.dg-hero-title-slot,
.dg-hero-excerpt-slot {
  width: 100%;
  max-width: min(100%, 52rem);
}

.dg-genre-chip {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-secondary);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.dg-genre-chip:hover {
  background: rgba(102, 126, 234, 0.12);
  color: var(--color-text-primary);
}

[data-theme="light"] .dg-genre-chip {
  background: rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .dg-genre-chip:hover {
  background: rgba(102, 126, 234, 0.1);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  header,
  footer,
  .dg-bottom-nav,
  .dg-btn,
  button {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .dg-card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}

