/* ==========================================
   BUNNYBOX - PREMIUM DESIGN SYSTEM
   ========================================== */

:root {
  --bg-main: #0a0a0c;
  --bg-surface-low: rgba(18, 18, 20, 0.7);
  --bg-surface-mid: rgba(30, 30, 35, 0.85);
  --bg-surface-high: rgba(45, 45, 52, 0.9);
  
  --accent-platinum: #f4f4f5;
  --accent-platinum-dim: #a1a1aa;
  --accent-platinum-glow: rgba(244, 244, 245, 0.12);
  
  --accent-blue: #3b82f6;
  --accent-pink: #f472b6;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;
  --accent-gold: #eab308;
  --accent-red: #ef4444;
  
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(255, 255, 255, 0.2);
  
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & scrollbar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-high);
  border-radius: 3px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background grid overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
}

/* Subtle glow nodes */
.glow-node {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.015) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-pink {
  position: fixed;
  top: -200px;
  left: -200px;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.04) 0%, rgba(244, 63, 94, 0.01) 50%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
  animation: float-glow 25s infinite alternate ease-in-out;
}

.ambient-glow-blue {
  position: fixed;
  bottom: -300px;
  right: -200px;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, rgba(168, 85, 247, 0.01) 50%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
  animation: float-glow 30s infinite alternate-reverse ease-in-out;
}

@keyframes float-glow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(100px, 80px) scale(1.1);
  }
  100% {
    transform: translate(-50px, -50px) scale(0.95);
  }
}
.glow-node-1 { top: -200px; right: -100px; }
.glow-node-2 { bottom: -300px; left: -200px; }

/* Navigation Header */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(20px);
  z-index: 100;
  transition: var(--transition-smooth);
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  stroke: var(--accent-platinum);
  stroke-width: 1.5;
  fill: none;
  transition: var(--transition-smooth);
}

.logo-group:hover .logo-icon {
  transform: rotate(-10deg) scale(1.1);
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-platinum);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--accent-platinum);
  color: var(--text-primary);
  background: rgba(255,255,255,0.02);
}

.btn-primary {
  background: var(--text-primary);
  border: 1px solid var(--text-primary);
  color: var(--bg-main);
  padding: 10px 24px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: transparent;
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

/* Container Wrapper */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  position: relative;
  z-index: 10;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 100px;
  gap: 40px;
}

.hero-content {
  flex: 1;
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 24px;
  background: rgba(255,255,255,0.02);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-platinum);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-title span {
  display: block;
  font-weight: 300;
  color: var(--text-secondary);
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-visual {
  flex: 1.1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 680px;
  border: 1px solid var(--border-subtle);
  padding: 12px;
  background: rgba(255,255,255,0.01);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition-smooth);
  animation: floating-slow 6s ease-in-out infinite;
}

@keyframes floating-slow {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

.hero-image-wrapper:hover {
  border-color: var(--border-medium);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(15%) brightness(95%);
  transition: var(--transition-smooth);
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.02);
  filter: grayscale(0%) brightness(100%);
}

.hero-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(18, 18, 18, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

/* Section Dividers / Elegant Lines */
.divider-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--border-subtle) 0%, var(--border-medium) 50%, var(--border-subtle) 100%);
  margin: 60px 0;
}

/* Tiers Section */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tier Cards Grid */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 100px;
}

@media (max-width: 1024px) {
  .tiers-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto 100px;
  }
}

.tier-card {
  background: linear-gradient(135deg, rgba(20, 20, 22, 0.6) 0%, rgba(12, 12, 14, 0.75) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 44px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.tier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

/* Specific Tiers styling indicators */
.tier-starter::before {
  background: linear-gradient(90deg, #71717a, #a1a1aa, #71717a);
}
.tier-basic::before {
  background: linear-gradient(90deg, #2563eb, #3b82f6, #2563eb);
}
.tier-love_bunny::before {
  background: linear-gradient(90deg, #ec4899, #f472b6, #ec4899);
}
.tier-love_bunny_deluxe::before {
  background: linear-gradient(90deg, #be185d, #f43f5e, #be185d);
}
.tier-challenger::before {
  background: linear-gradient(90deg, #0284c7, #0ea5e9, #0284c7);
}
.tier-champion::before {
  background: linear-gradient(90deg, #7c3aed, #a855f7, #7c3aed);
}
.tier-legendary::before {
  background: linear-gradient(90deg, #ca8a04, #eab308, #ca8a04);
}
.tier-mythic::before {
  background: linear-gradient(90deg, #dc2626, #ef4444, #dc2626);
}

.tier-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, rgba(30, 30, 34, 0.75) 0%, rgba(16, 16, 18, 0.85) 100%);
}

/* Custom premium hover glows */
.tier-card.tier-starter:hover {
  box-shadow: 0 15px 35px -5px rgba(113, 113, 122, 0.08), 0 0 15px rgba(255, 255, 255, 0.02);
  border-color: rgba(113, 113, 122, 0.25);
}
.tier-card.tier-basic:hover {
  box-shadow: 0 15px 35px -5px rgba(59, 130, 246, 0.12), 0 0 20px rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.3);
}
.tier-card.tier-love_bunny:hover {
  box-shadow: 0 15px 35px -5px rgba(244, 114, 182, 0.18), 0 0 20px rgba(244, 114, 182, 0.1);
  border-color: rgba(244, 114, 182, 0.35);
}
.tier-card.tier-love_bunny_deluxe:hover {
  box-shadow: 0 15px 35px -5px rgba(244, 63, 94, 0.22), 0 0 25px rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.4);
}
.tier-card.tier-challenger:hover {
  box-shadow: 0 15px 35px -5px rgba(14, 165, 233, 0.18), 0 0 20px rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.35);
}
.tier-card.tier-champion:hover {
  box-shadow: 0 15px 35px -5px rgba(168, 85, 247, 0.22), 0 0 25px rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
}
.tier-card.tier-legendary:hover {
  box-shadow: 0 15px 35px -5px rgba(234, 179, 8, 0.28), 0 0 30px rgba(234, 179, 8, 0.18);
  border-color: rgba(234, 179, 8, 0.5);
}
.tier-card.tier-mythic:hover {
  box-shadow: 0 15px 40px -5px rgba(239, 68, 68, 0.38), 0 0 35px rgba(239, 68, 68, 0.28);
  border-color: rgba(239, 68, 68, 0.6);
}
/* Dynamically added boxes also receive clean custom styling defaults */
.tier-card[id^="card-"]:not(.tier-starter):not(.tier-basic):not(.tier-love_bunny):not(.tier-love_bunny_deluxe):not(.tier-challenger):not(.tier-champion):not(.tier-legendary):not(.tier-mythic)::before {
  background: linear-gradient(90deg, var(--accent-blue), #2563eb, var(--accent-blue));
}
.tier-card[id^="card-"]:not(.tier-starter):not(.tier-basic):not(.tier-love_bunny):not(.tier-love_bunny_deluxe):not(.tier-challenger):not(.tier-champion):not(.tier-legendary):not(.tier-mythic):hover {
  box-shadow: 0 15px 35px -5px rgba(59, 130, 246, 0.2), 0 0 20px rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
}

.tier-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.01);
  transition: var(--transition-smooth);
}

.tier-card:hover .tier-icon-wrapper {
  border-color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.tier-icon-wrapper svg {
  width: 32px;
  height: 32px;
  stroke: var(--text-secondary);
  stroke-width: 1.5;
  fill: none;
  transition: var(--transition-smooth);
}

.tier-card:hover .tier-icon-wrapper svg {
  stroke: var(--text-primary);
  transform: scale(1.1);
}

.tier-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tier-price {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.tier-price span {
  font-size: 1rem;
  color: var(--text-secondary);
}

.tier-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  min-height: 60px;
  font-weight: 300;
}

.tier-divider {
  width: 40px;
  height: 1px;
  background-color: var(--border-subtle);
  margin-bottom: 30px;
}

.tier-loot-list {
  list-style: none;
  width: 100%;
  margin-bottom: 40px;
}

.tier-loot-item {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.tier-loot-item span:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

.btn-card-buy {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 14px 0;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tier-card:hover .btn-card-buy {
  background: var(--text-primary);
  color: var(--bg-main);
  border-color: var(--text-primary);
}

/* Recent Live Feed Section */
.live-feed-section {
  margin-bottom: 100px;
}

.live-feed-container {
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-surface-low);
  padding: 24px;
  overflow: hidden;
}

.live-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.live-feed-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.pulse-red {
  width: 6px;
  height: 6px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: pulse-glow-red 1.5s infinite;
}

.live-feed-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.live-feed-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.live-feed-scroller::-webkit-scrollbar {
  height: 4px;
}

.feed-item {
  min-width: 260px;
  background: var(--bg-surface-mid);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slide-in-feed 0.4s ease-out;
}

.feed-item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.feed-item-info {
  flex: 1;
}

.feed-item-user {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.feed-item-loot {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Tier specific feed colors */
.feed-tier-challenger { border-left: 3px solid #71717a; }
.feed-tier-champion { border-left: 3px solid #fafafa; }
.feed-tier-legendary { border-left: 3px solid #facc15; }

/* Interactive Unboxing Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 4, 6, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 900px;
  background: linear-gradient(135deg, rgba(22, 22, 26, 0.85) 0%, rgba(10, 10, 12, 0.95) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  stroke: var(--text-secondary);
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  stroke: var(--text-primary);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 40px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Spinner CSS */
.spinner-container {
  position: relative;
  width: 100%;
  height: 160px;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  background: var(--bg-main);
  overflow: hidden;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
}

.spinner-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--text-primary);
  z-index: 10;
  box-shadow: 0 0 15px var(--border-glow);
}

.spinner-pointer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -6px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--text-primary);
}

.spinner-pointer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -6px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--text-primary);
}

.spinner-track {
  display: flex;
  position: absolute;
  left: 0;
  height: 120px;
  transition: transform 8s cubic-bezier(0.08, 0.8, 0.15, 1);
  will-change: transform;
}

.spinner-item {
  width: 130px;
  height: 120px;
  margin: 0 5px;
  background: var(--bg-surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.spinner-item-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.spinner-item-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.spinner-item-tier {
  font-size: 0.6rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Spinner Item Tiers Accent Borders */
.item-tier-rare { border-bottom: 3px solid #3b82f6; }
.item-tier-epic { border-bottom: 3px solid #a855f7; }
.item-tier-legendary { border-bottom: 3px solid #eab308; }

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Winner Card Presentation */
.winner-card {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: scale-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  margin-bottom: 40px;
}

.winner-img-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 24px;
}

.winner-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  animation: pulse-glow-winner 2s infinite;
}

.winner-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 5;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.winner-tier-tag {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}

.winner-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.winner-value {
  font-size: 1.1rem;
  color: var(--accent-platinum-dim);
  font-weight: 300;
}

/* Guarantee / Trust Section */
.trust-section {
  margin-bottom: 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 768px) {
  .trust-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.trust-item {
  border: 1px solid var(--border-subtle);
  padding: 30px;
  border-radius: 4px;
  background: var(--bg-surface-low);
  transition: var(--transition-smooth);
}

.trust-item:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-mid);
}

.trust-icon {
  width: 28px;
  height: 28px;
  stroke: var(--accent-platinum);
  stroke-width: 1.5;
  fill: none;
  margin-bottom: 16px;
}

.trust-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.trust-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Footer styling */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  background: var(--bg-surface-low);
}

.footer-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Animations */
@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px rgba(255,255,255,0.4); }
  100% { transform: scale(1); opacity: 0.6; }
}

@keyframes pulse-glow-red {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px rgba(239,68,68,0.5); }
  100% { transform: scale(1); opacity: 0.6; }
}

@keyframes pulse-glow-winner {
  0% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
}

@keyframes slide-in-feed {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes scale-up {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


/* Winner color variations */
.tier-accent-rare { color: #3b82f6; text-shadow: 0 0 10px rgba(59,130,246,0.3); }
.tier-accent-epic { color: #a855f7; text-shadow: 0 0 10px rgba(168,85,247,0.3); }
.tier-accent-legendary { color: #eab308; text-shadow: 0 0 10px rgba(234,179,8,0.3); }
.tier-accent-mythic { color: #ef4444; text-shadow: 0 0 10px rgba(239,68,68,0.3); }

/* User Inventory Side-out Drawer */
.inventory-drawer {
  position: fixed;
  top: 0;
  right: -420px; /* Hidden offscreen by default */
  width: 400px;
  height: 100vh;
  background: linear-gradient(180deg, rgba(16, 16, 20, 0.85) 0%, rgba(10, 10, 12, 0.95) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.inventory-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 30px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 500;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  stroke: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.drawer-close-btn:hover {
  stroke: var(--text-primary);
  transform: rotate(90deg);
}

.drawer-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-empty-msg {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 40px;
  font-weight: 300;
  line-height: 1.6;
}

.drawer-item {
  background: var(--bg-surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-fast);
  animation: slide-in-feed 0.4s ease-out;
}

.drawer-item:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-mid);
}

.drawer-item-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drawer-item-details {
  flex: 1;
  min-width: 0;
}

.drawer-item-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-item-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.75rem;
}

.drawer-item-tier {
  text-transform: uppercase;
  font-weight: 600;
}

.drawer-item-value {
  color: var(--text-secondary);
}

/* Tier Border colors for drawer items */
.drawer-item-challenger { border-left: 3px solid #71717a; }
.drawer-item-champion { border-left: 3px solid #fafafa; }
.drawer-item-legendary { border-left: 3px solid #facc15; }
.drawer-item-mythic { border-left: 3px solid #ef4444; }

/* Custom Badge styles for drawer tiers */
.drawer-item-tier.tier-rare { color: #3b82f6; }
.drawer-item-tier.tier-epic { color: #a855f7; }
.drawer-item-tier.tier-legendary { color: #eab308; }
.drawer-item-tier.tier-mythic { color: #ef4444; }

/* Virtual Wallet HUD Styling */
.wallet-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 6px 12px 6px 16px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: var(--transition-fast);
}

.wallet-badge:hover {
  border-color: var(--border-medium);
  box-shadow: 0 0 15px rgba(255,255,255,0.05);
}

#btn-wallet-topup {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--accent-platinum);
  color: var(--bg-main);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 4px;
  transition: var(--transition-fast);
}

#btn-wallet-topup:hover {
  background: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(255,255,255,0.3);
}

/* Sell button styling in drawer item */
.drawer-item-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.btn-item-sell {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  font-size: 0.7rem;
  padding: 4px 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: var(--transition-fast);
}

.btn-item-sell:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

/* 3D Cinematic Box Opening */
.cinematic-box-wrapper {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.box-container {
  width: 140px;
  height: 100px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(25deg);
  transition: transform 0.5s ease;
}

/* Shaking/rumble animation for unboxing */
.box-container.rumble {
  animation: box-shake 0.15s infinite;
}

/* Fading out transition */
.cinematic-box-wrapper.fade-out {
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.box-face {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #1f1f1f 0%, #121212 100%);
  box-shadow: inset 0 0 15px rgba(255,255,255,0.05);
}

/* 3D Construction */
.box-front {
  width: 140px;
  height: 80px;
  transform: translateZ(70px);
  border-bottom: 2px solid var(--accent-platinum-dim);
}

.box-back {
  width: 140px;
  height: 80px;
  transform: rotateY(180deg) translateZ(70px);
}

.box-left {
  width: 140px;
  height: 80px;
  transform: rotateY(-90deg) translateZ(70px);
}

.box-right {
  width: 140px;
  height: 80px;
  transform: rotateY(90deg) translateZ(70px);
}

.box-bottom {
  width: 140px;
  height: 140px;
  transform: rotateX(-90deg) translateZ(40px);
  background: #090909;
}

.box-top {
  width: 140px;
  height: 140px;
  transform: rotateX(90deg) translateZ(40px);
  transform-origin: top center; /* opens upwards from the back edge */
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, #2a2a2a 0%, #1c1c1c 100%);
}

/* Open lid animation */
.box-container.open .box-top {
  transform: rotateX(190deg) translateZ(40px);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}



/* Keyframes */
@keyframes box-shake {
  0% { transform: rotateX(-20deg) rotateY(25deg) translate(0, 0); }
  25% { transform: rotateX(-22deg) rotateY(23deg) translate(-2px, -1px); }
  50% { transform: rotateX(-18deg) rotateY(27deg) translate(1px, 2px); }
  75% { transform: rotateX(-21deg) rotateY(26deg) translate(-1px, -2px); }
  100% { transform: rotateX(-20deg) rotateY(25deg) translate(0, 0); }
}

/* Cart Item layout inside Cart Drawer */
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface-mid);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 12px;
  position: relative;
  transition: var(--transition-fast);
}

.cart-item:hover {
  border-color: var(--border-medium);
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--accent-platinum-dim);
}

.cart-item-qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.cart-qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cart-qty-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--text-primary);
}

.cart-item-remove-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  position: absolute;
  top: 12px;
  right: 12px;
  opacity: 0.6;
  transition: var(--transition-fast);
}

.cart-item-remove-btn:hover {
  opacity: 1;
}

/* Glassmorphism for drawers */
.inventory-drawer {
  backdrop-filter: blur(25px) !important;
  background: rgba(18, 18, 18, 0.88) !important;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

/* Checkout Form styling details */
#checkout-form input, #checkout-form textarea {
  transition: all 0.3s ease;
}

#checkout-form input:focus, #checkout-form textarea:focus {
  border-color: #22c55e !important;
  outline: none;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.15) !important;
}

/* Orders Dashboard Tracking Card */
.order-card {
  background: var(--bg-surface-mid);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
  transition: var(--transition-fast);
  animation: slide-in-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slide-in-up {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.order-card:hover {
  border-color: var(--border-medium);
}

.order-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.order-id {
  font-family: monospace;
  font-weight: bold;
  color: var(--text-primary);
}

.order-items-summary {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
}

/* Flipkart-style Stepper Timeline */
.tracking-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 30px 10px 15px 10px;
}

.tracking-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border-subtle);
  z-index: 1;
}

.tracking-timeline-progress {
  position: absolute;
  top: 10px;
  left: 0;
  height: 2px;
  background: #22c55e;
  z-index: 2;
  transition: width 0.8s ease-in-out;
}

.tracking-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}

.tracking-node {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-surface-mid);
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: bold;
  color: var(--text-secondary);
  transition: all 0.5s ease;
}

.tracking-step.active .tracking-node {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.tracking-step.completed .tracking-node {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.tracking-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-align: center;
}

.tracking-step.active .tracking-label {
  color: #22c55e;
}

.order-address-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 4px;
  padding: 10px 12px;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tier-card:hover .tier-image-container img {
  transform: scale(1.05);
  filter: brightness(100%);
}

/* Responsive Mobile Fixes */
@media (max-width: 768px) {
  /* Navigation header adjustment */
  .header {
    padding: 16px 20px !important;
    gap: 12px;
  }
  .logo span {
    display: none; /* Hide brand text, only keep line art logo */
  }
  .nav-actions {
    gap: 8px !important;
  }
  .wallet-badge {
    padding: 6px 8px !important;
    font-size: 0.8rem !important;
  }
  .wallet-badge span {
    display: none; /* Hide "Virtual Balance" text, keep balance amount */
  }

  /* Hero section typography sizing */
  .hero {
    flex-direction: column !important;
    padding: 60px 20px !important;
    gap: 40px !important;
    text-align: center;
  }
  .hero-content {
    align-items: center;
    max-width: 100% !important;
  }
  .hero-title {
    font-size: 2.2rem !important;
    line-height: 1.2;
  }
  .hero-subtitle {
    font-size: 0.85rem !important;
  }
  .hero-stats {
    justify-content: center;
    gap: 30px !important;
  }

  /* Footer responsiveness */
  .footer {
    flex-direction: column;
    gap: 20px;
    padding: 30px 20px !important;
    text-align: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  /* Slide drawers responsiveness */
  .inventory-drawer {
    width: 100% !important;
    right: -100% !important;
  }
  .inventory-drawer.active {
    right: 0 !important;
  }

  /* Checkout and Unboxing Modals responsiveness */
  .modal-content {
    width: 92% !important;
    padding: 20px !important;
    margin: 10px !important;
  }
  .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  /* Unboxing Spin Wheel track scaling */
  .spinner-container {
    width: 100% !important;
    overflow-x: hidden;
  }
  .spinner-track {
    transform: scale(0.9);
  }
  
  /* 3D Box scaling */
  .cinematic-box-wrapper {
    transform: scale(0.8);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem !important;
  }
  .spinner-track {
    transform: scale(0.75);
  }
  .cinematic-box-wrapper {
    transform: scale(0.7);
  }
}

/* Card Split Action Row Buttons styling */
.card-action-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  width: 100%;
}
.card-action-row .btn-primary {
  flex: 1;
  font-size: 0.75rem !important;
  padding: 12px 16px !important;
}
.card-action-row .btn-secondary {
  padding: 12px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

/* Verified Reviews Styles */
.review-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4) !important;
}
.review-card .review-img {
  transition: transform 0.5s ease;
}
.review-card:hover .review-img {
  transform: scale(1.03);
}
@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Floating Ticket Spin Wheel Animations & Styles */
@keyframes pulse-glow-wheel {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(245,158,11,0.2); }
  50% { transform: scale(1.08); box-shadow: 0 0 25px rgba(245,158,11,0.4); border-color: rgba(245,158,11,0.5); }
  100% { transform: scale(1); box-shadow: 0 0 15px rgba(245,158,11,0.2); }
}
#btn-floating-spin:hover {
  transform: scale(1.15) rotate(-10deg) !important;
  color: #fff !important;
  background: linear-gradient(135deg, rgba(245,158,11,0.25) 0%, rgba(217,119,6,0.35) 100%) !important;
  box-shadow: 0 0 30px rgba(245,158,11,0.5) !important;
}
#btn-floating-spin {
  animation: pulse-glow-wheel 2s infinite !important;
}



