/* ==================== DIGR IMMERSIVE — Full Screen Experience ==================== */
/* Cards float in space. You're digging, not browsing. */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Mono:wght@400;700&display=swap');

/* ==================== Variables ==================== */
:root {
  --void: #0a0a0f;
  --void-light: #12121a;
  --surface: #1a1a24;
  --border: #2a2a3a;
  
  --cyan: #00fff5;
  --pink: #ff2e97;
  --yellow: #ffd32a;
  --green: #05ffa1;
  --purple: #b537f2;
  --gold: #ffd700;
  --orange: #ff8c42;
  
  --text: #ffffff;
  --text-dim: #8888aa;
  --text-muted: #555566;
  
  --font-pixel: 'Press Start 2P', monospace;
  --font-mono: 'Space Mono', monospace;
  
  --radius: 8px;
  --radius-lg: 16px;
}

/* ==================== ZONE IDENTITIES ==================== */
/* Each zone should feel like a different room */

/* UNDERGROUND - Discovery — accent cyan, not warm gold */
.zone-underground { 
  --zone-primary: var(--accent, #00d4ff);
  --zone-secondary: #0099cc;
  --zone-glow: rgba(0, 212, 255, 0.08);
  --zone-bg: var(--bg-primary, #0e0e16);
  --zone-surface: var(--surface-primary, #181824);
  --zone-accent: var(--accent, #00d4ff);
}

/* LIBRARY - Warm, organized, home */
.zone-library { 
  --zone-primary: #d4a574;
  --zone-secondary: #8b6914;
  --zone-glow: rgba(212, 165, 116, 0.15);
  --zone-bg: #12100a;
  --zone-surface: #1a1610;
  --zone-accent: #e8c89e;
}

/* LAB - Industrial, workshop, creation */
.zone-lab { 
  --zone-primary: #a855f7;
  --zone-secondary: #7c3aed;
  --zone-glow: rgba(168, 85, 247, 0.15);
  --zone-bg: #0d0a14;
  --zone-surface: #150f20;
  --zone-accent: #c084fc;
}

/* VAULT - Premium Gallery, Dark Mode, Classic Gold */
.zone-vault { 
  --zone-primary: #d4af37;      /* Classic gold */
  --zone-secondary: #c5a028;    /* Deeper gold */
  --zone-glow: rgba(212, 175, 55, 0.15);
  --zone-bg: #0a0806;           /* Deep warm black */
  --zone-surface: #1a1610;      /* Dark warm surface */
  --zone-accent: #e8c547;       /* Light gold */
  --zone-text: #f5f0e8;         /* Warm white for dark bg */
  --zone-text-muted: #a09080;
}

/* CRATES - Organized toolkit, your arsenal */
.zone-crates { 
  --zone-primary: #3b82f6;
  --zone-secondary: #1d4ed8;
  --zone-glow: rgba(59, 130, 246, 0.15);
  --zone-bg: #0a0c10;
  --zone-surface: #101420;
  --zone-accent: #60a5fa;
}

/* ==================== Reset ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-mono);
  background: var(--void);
  color: var(--text);
  cursor: default;
}

/* ==================== Collection Zone Scroll Fix ==================== */
/* Collection needs to scroll - override fixed positioning */
body.zone-collection {
  overflow: auto;
  overflow-x: hidden;
  padding-top: 56px; /* Space for fixed header */
}

body.zone-collection .dig-space {
  position: relative;
  min-height: 100vh;
  overflow: visible;
}

body.zone-collection .card-space {
  position: relative;
  overflow: visible;
  inset: auto;  /* Override the 230px top from base .card-space */
  padding: 24px 24px 120px;  /* Reduced top padding - less dead space */
  min-height: calc(100vh - 140px);
}

body.zone-collection .bg-void,
body.zone-collection .bg-grid,
body.zone-collection .bg-particles,
body.zone-collection .bg-glow,
body.zone-collection .bg-texture {
  position: fixed;
}

/* ==================== Dig Space (Full Screen) ==================== */
.dig-space {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* Backgrounds - Now zone-aware with transitions */
.bg-void {
  position: absolute;
  inset: 0;
  background: var(--zone-bg, #0a0a0f);
  z-index: 0;
  transition: background 0.6s ease;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  transition: all 0.6s ease;
}

.bg-particles {
  display: none; /* Disabled - visual noise, battery drain */
}

.bg-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  transition: all 0.6s ease;
}

/* Zone texture overlay */
.bg-texture {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.6s ease;
}

/* ==================== UNDERGROUND - Cinematic Discovery Vibe ==================== */
/* Warm earth tones - feels like digging for gold */
.zone-underground .bg-void {
  background: 
    radial-gradient(ellipse at 30% 100%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(180, 83, 9, 0.06) 0%, transparent 40%),
    linear-gradient(180deg, #0a0806 0%, #12100a 50%, #0d0a06 100%);
}

.zone-underground .bg-grid {
  background-image: none; /* Clean cinematic look - no grid */
}

.zone-underground .bg-glow {
  background:
    radial-gradient(ellipse at 20% 90%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 10%, rgba(180, 83, 9, 0.08) 0%, transparent 40%);
  animation: underground-glow 8s ease-in-out infinite;
}

@keyframes underground-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Subtle dust/particle texture for underground */
.zone-underground .bg-texture {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='30' r='1' fill='%23f59e0b10'/%3E%3Ccircle cx='70' cy='20' r='0.5' fill='%23f59e0b08'/%3E%3Ccircle cx='40' cy='80' r='1.5' fill='%23d9770608'/%3E%3Ccircle cx='85' cy='60' r='0.8' fill='%23f59e0b0a'/%3E%3C/svg%3E");
  opacity: 0.5;
  animation: dust-drift 25s linear infinite;
}

@keyframes dust-drift {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-50px) translateX(20px); }
}

/* ==================== LIBRARY - Warm Vinyl Shelf ==================== */
.zone-library .bg-void {
  background: radial-gradient(ellipse at 50% 0%, #1a1510 0%, #0a0805 100%);
}

.zone-library .bg-grid {
  background-image: none; /* No grid - feels more organic */
}

.zone-library .bg-glow {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(139, 69, 19, 0.1) 0%, transparent 40%);
}

/* Warm vignette */
.zone-library::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10, 8, 5, 0.6) 100%);
  pointer-events: none;
  z-index: 5;
}

/* ==================== LAB - Industrial Workshop ==================== */
.zone-lab .bg-void {
  background: radial-gradient(ellipse at 50% 50%, #150f20 0%, #0a0810 100%);
}

.zone-lab .bg-grid {
  background-image: 
    linear-gradient(rgba(168, 85, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.04) 1px, transparent 1px);
  background-size: 20px 20px; /* Tighter grid = precision feel */
}

.zone-lab .bg-glow {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.12) 0%, transparent 60%);
}

/* Scanline effect */
.zone-lab .bg-texture {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(168, 85, 247, 0.02) 2px,
    rgba(168, 85, 247, 0.02) 4px
  );
  opacity: 0.8;
}

/* ==================== VAULT - Premium Gallery (Dark Mode with Gold) ==================== */
.zone-vault .bg-void {
  background: #0a0806; /* Deep warm black */
}

.zone-vault .bg-grid {
  background-image: 
    linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.zone-vault .bg-glow {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
}

/* Subtle gold accent bar at top */
.zone-vault::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #d4af37 30%, 
    #e8c547 50%, 
    #d4af37 70%, 
    transparent 100%
  );
  pointer-events: none;
  z-index: 1000;
}

/* Dark background for entire vault zone */
.zone-vault .dig-space,
.zone-vault .card-space {
  background: #0a0806;
}

/* Gold text on dark background */
.zone-vault .float-zone-title {
  color: #d4af37;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.zone-vault .float-top {
  background: rgba(10, 8, 6, 0.95);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.zone-vault .float-zones {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.zone-vault .zone-btn {
  color: #6b6560;
}

.zone-vault .zone-btn:hover {
  color: #1a1814;
}

.zone-vault .zone-btn.active {
  background: #d4af37;
  color: #1a1814;
}

/* ==================== CRATES - Your Arsenal ==================== */
.zone-crates .bg-void {
  background: radial-gradient(ellipse at 50% 50%, #101420 0%, #080a10 100%);
}

.zone-crates .bg-grid {
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

.zone-crates .bg-glow {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 20%, rgba(96, 165, 250, 0.08) 0%, transparent 40%);
}

/* ==================== Zone Transition Effects ==================== */
/* Smooth crossfade when switching zones */
.dig-space {
  transition: opacity 0.15s ease-out;
}

.dig-space.zone-transitioning {
  opacity: 0.7;
}

.dig-space.zone-entering {
  animation: zone-enter 0.4s ease-out forwards;
}

@keyframes zone-enter {
  0% {
    opacity: 0.7;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Zone title entrance */
.float-zone-title {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.zone-transitioning .float-zone-title {
  transform: translateY(-10px);
  opacity: 0;
}

/* Zone button pulse on active */
.zone-btn.active {
  animation: zone-btn-active 0.3s ease forwards;
}

@keyframes zone-btn-active {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ==================== Card Space ==================== */
.card-space {
  position: absolute;
  inset: 230px 20px 100px 20px; /* Top accounts for filters (~95px) + header (~56px) + gap */
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  overflow-y: auto;
  transition: opacity 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.card-space::-webkit-scrollbar {
  width: 6px;
}

.card-space::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ==================== Floating Sample Cards ==================== */
.sample-card {
  width: 160px;
  height: 220px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--void-light) 100%);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: card-float 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.5s);
}

@keyframes card-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(0.5deg); }
  75% { transform: translateY(3px) rotate(-0.5deg); }
}

.sample-card:hover {
  transform: translateY(-10px) scale(1.05) !important;
  border-color: var(--zone-primary);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px var(--zone-glow);
  z-index: 100;
  animation-play-state: paused;
}

.sample-card:active {
  transform: translateY(-5px) scale(1.02) !important;
}

/* Card shine effect */
.sample-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 5;
}

.sample-card:hover::before {
  opacity: 1;
  animation: card-shine 0.6s ease;
}

@keyframes card-shine {
  0% { transform: translateX(-100%) translateY(-100%); }
  100% { transform: translateX(100%) translateY(100%); }
}

/* Rarity borders */
.sample-card[data-rarity="common"] { border-color: #666; }
.sample-card[data-rarity="rare"] { border-color: var(--cyan); }
.sample-card[data-rarity="epic"] { border-color: var(--purple); }
.sample-card[data-rarity="legendary"] { 
  border-color: var(--gold);
  animation: card-float 6s ease-in-out infinite, legendary-pulse 2s ease-in-out infinite;
}

@keyframes legendary-pulse {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.6); }
}

/* Card content */
.card-rarity {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-pixel);
  font-size: 6px;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 3;
  text-transform: uppercase;
}

.card-rarity.common { background: #666; color: #fff; }
.card-rarity.rare { background: var(--cyan); color: var(--void); }
.card-rarity.epic { background: var(--purple); color: #fff; }
.card-rarity.legendary { background: var(--gold); color: var(--void); }

/* Native Content Badge - DIGR Originals surface first */
.native-badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 4;
  font-weight: 700;
  letter-spacing: 0.3px;
  pointer-events: none;
}

.native-badge.native-original {
  background: linear-gradient(135deg, var(--gold), #ffaa00);
  color: var(--void);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  animation: native-shimmer 3s ease-in-out infinite;
}

.native-badge.native-processed {
  background: linear-gradient(135deg, #888, #666);
  color: #fff;
  opacity: 0.9;
}

@keyframes native-shimmer {
  0%, 100% { 
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    filter: brightness(1);
  }
  50% { 
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    filter: brightness(1.1);
  }
}

/* Native content card accents */
.sample-card[data-native]:not([data-native="0"]) {
  border-color: rgba(255, 215, 0, 0.2);
}

.sample-card[data-native="100"] {
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.card-price {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--font-pixel);
  font-size: 7px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--green);
  color: var(--void);
  z-index: 3;
}

.card-price.paid { background: var(--orange); }

.card-artwork {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--void);
}

.card-waveform {
  height: 24px;
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 8px;
}

.waveform-bar {
  width: 3px;
  background: var(--zone-primary);
  border-radius: 1px;
  opacity: 0.6;
  transition: height 0.1s;
}

.sample-card:hover .waveform-bar {
  animation: waveform-dance 0.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.05s);
}

@keyframes waveform-dance {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.5); }
}

.card-info {
  padding: 8px;
}

.card-title {
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.card-artist {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.card-artist-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-artist-link {
  font-size: 10px;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.card-artist-link:hover {
  color: var(--zone-primary);
}

/* Card Reactions */
.card-reactions {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border);
}

.reaction-btn {
  background: transparent;
  border: none;
  padding: 4px 8px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  color: var(--text-dim);
}

.reaction-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.reaction-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.reaction-btn.pop {
  animation: reaction-pop 0.3s ease;
}

@keyframes reaction-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.reaction-count {
  font-family: var(--font-mono);
  font-size: 10px;
  min-width: 12px;
}

/* ==================== Expanded Card View ==================== */
.card-expanded {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-expanded.hidden {
  display: none;
}

.expanded-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
}

.expanded-content {
  position: relative;
  display: flex;
  gap: 30px;
  max-width: 900px;
  width: 90%;
  animation: expand-in 0.3s ease;
}

@keyframes expand-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
}

.expanded-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  transition: color 0.2s;
}

.expanded-close:hover {
  color: var(--text);
}

.expanded-visualizer {
  flex: 1;
  aspect-ratio: 16/10;
  background: var(--void);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.expanded-visualizer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.expanded-card {
  width: 280px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 2px solid var(--zone-primary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.expanded-rarity {
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 10px;
  text-align: center;
  background: linear-gradient(90deg, transparent, var(--zone-glow), transparent);
  color: var(--zone-primary);
  letter-spacing: 2px;
}

.expanded-artwork {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--void);
}

.expanded-info {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.expanded-title {
  font-size: 16px;
  margin-bottom: 4px;
}

.expanded-artist {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.expanded-stats {
  display: flex;
  gap: 16px;
}

.expanded-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.expanded-stats .label {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.expanded-stats .value {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--zone-primary);
}

.expanded-actions {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--void-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  border-color: var(--zone-primary);
  background: var(--surface);
}

.action-btn.primary {
  background: var(--zone-primary);
  border-color: var(--zone-primary);
  color: var(--void);
}

.action-btn.primary:hover {
  filter: brightness(1.1);
}

.btn-cost {
  margin-left: auto;
  opacity: 0.7;
}

/* ==================== Loading & Empty States ==================== */
.dig-loading, .dig-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.dig-loading.hidden, .dig-empty.hidden {
  display: none;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border);
  border-top-color: var(--zone-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--text-dim);
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.empty-title {
  font-family: var(--font-pixel);
  font-size: 18px;
  margin-bottom: 8px;
}

.empty-text {
  color: var(--text-dim);
  font-size: 14px;
}

/* Empty State CTA */
.empty-cta {
  margin-top: 24px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--zone-primary), var(--zone-secondary, var(--zone-primary)));
  border-radius: 12px;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.empty-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--zone-primary), 0.3);
}

/* Enhanced Onboarding CTA */
.empty-cta-enhanced {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0.05) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  max-width: 400px;
  animation: cta-pulse 3s ease infinite;
}

@keyframes cta-pulse {
  0%, 100% { border-color: rgba(168, 85, 247, 0.3); }
  50% { border-color: rgba(168, 85, 247, 0.6); }
}

.cta-pointer {
  font-size: 32px;
  flex-shrink: 0;
  animation: cta-bounce 2s ease infinite;
}

@keyframes cta-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.cta-content {
  flex: 1;
  text-align: left;
}

.cta-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.cta-subtitle {
  font-size: 13px;
  color: var(--text-dim);
}

.cta-action {
  padding: 10px 20px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.cta-action:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

@media (max-width: 500px) {
  .empty-cta-enhanced {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .cta-content {
    text-align: center;
  }
  
  .cta-action {
    width: 100%;
  }
}

/* ==================== Floating UI ==================== */

/* Top Bar */
.float-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.95) 0%, transparent 100%);
  z-index: 100;
}

.float-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-pixel);
  font-size: 10px;
}

.logo-text {
  color: var(--cyan);
}

.logo-divider {
  color: var(--text-muted);
}

.logo-section {
  color: var(--zone-primary);
  transition: color 0.3s;
}

.float-search {
  display: flex;
  background: rgba(26, 26, 36, 0.8);
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  max-width: 400px;
  flex: 1;
  margin: 0 30px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.float-search:focus-within {
  border-color: var(--zone-primary);
  box-shadow: 0 0 20px var(--zone-glow);
}

.float-search input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 20px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
}

.float-search input::placeholder {
  color: var(--text-muted);
}

.float-search input:focus {
  outline: none;
}

.search-btn {
  background: var(--zone-primary);
  border: none;
  padding: 0 20px;
  color: var(--void);
  font-size: 18px;
  cursor: pointer;
  transition: filter 0.2s;
}

.search-btn:hover {
  filter: brightness(1.2);
}

/* Download All Free Button */
.download-all-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green), #00cc88);
  border: none;
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(5, 255, 161, 0.3);
}

.download-all-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(5, 255, 161, 0.5);
}

.download-all-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.download-all-btn.hidden {
  display: none;
}

.download-all-btn .btn-count {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
}

/* Filter Toggle Button */
.filter-toggle-btn {
  background: rgba(26, 26, 36, 0.9);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  position: relative;
}

.filter-toggle-btn:hover,
.filter-toggle-btn.active {
  border-color: var(--cyan);
  color: var(--cyan);
}

.filter-toggle-btn .filter-count {
  background: var(--pink);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: bold;
}

.filter-toggle-btn .filter-count.hidden {
  display: none;
}

/* Filter Panel */
.filter-panel {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 18, 26, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  z-index: 900;
  max-width: 700px;
  width: 90%;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.filter-panel.hidden {
  display: none;
}

.filter-section {
  margin-bottom: 16px;
}

.filter-section:last-of-type {
  margin-bottom: 20px;
}

.filter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chips.compact {
  gap: 6px;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.filter-chip.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--void);
  font-weight: 600;
}

.filter-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 120px;
}

.filter-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-input {
  width: 70px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 13px;
  text-align: center;
}

.filter-input:focus {
  outline: none;
  border-color: var(--cyan);
}

.filter-dash {
  color: var(--text-dim);
}

.filter-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--cyan);
}

.filter-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.filter-clear-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-clear-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.filter-surprise-btn {
  background: linear-gradient(135deg, #ff8c42, #ffd32a);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  color: #0a0a0f;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.filter-surprise-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.filter-surprise-btn:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 0 25px rgba(255, 140, 66, 0.5);
}

.filter-surprise-btn:active {
  transform: scale(0.95);
}

.filter-surprise-btn.rolling {
  animation: dice-roll 0.5s ease-out;
}

@keyframes dice-roll {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.1); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.filter-apply-btn {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-apply-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Active Filters Bar */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  margin: 8px 0;
}

.active-filter-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid var(--cyan);
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--cyan);
}

.active-filter-tag .remove {
  cursor: pointer;
  opacity: 0.7;
}

.active-filter-tag .remove:hover {
  opacity: 1;
}

.float-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.float-btn {
  position: relative;
  background: rgba(26, 26, 36, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.float-btn:hover {
  border-color: var(--yellow);
  box-shadow: 0 0 20px rgba(255, 211, 42, 0.3);
}

.float-btn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--pink);
  color: var(--text);
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  font-family: var(--font-mono);
}

.credits-display {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  padding: 10px 16px;
  border-radius: 20px;
  font-family: var(--font-pixel);
  font-size: 10px;
}

/* Zone Selector (Bottom) - Songs | Samples split */
.float-zones {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 10, 15, 0.95);
  padding: 8px 12px;
  border-radius: 30px;
  border: 1px solid var(--border);
  z-index: 100;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.zone-group {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.zone-group-label {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-muted);
  letter-spacing: 2px;
  white-space: nowrap;
}

.zone-divider {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
  margin: 0 8px;
}

.zone-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.zone-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--zone-primary);
  opacity: 0;
  transition: opacity 0.25s;
}

.zone-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}

.zone-btn:hover::before {
  opacity: 0.1;
}

.zone-btn.active {
  background: var(--zone-primary);
  color: var(--void);
  border-color: var(--zone-primary);
  box-shadow: 0 0 20px var(--zone-glow);
}

.zone-btn.active::before {
  display: none;
}

/* Zone button colors when active */
.zone-btn[data-zone="underground"].active { background: #00ff88; }
.zone-btn[data-zone="library"].active { background: #d4a574; }
.zone-btn[data-zone="lab"].active { background: #a855f7; }
.zone-btn[data-zone="vault"].active { background: #ffd700; }
.zone-btn[data-zone="crates"].active { background: #3b82f6; }

.zone-icon {
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.zone-name {
  font-weight: bold;
  position: relative;
  z-index: 1;
}

.zone-count {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 9px;
  position: relative;
  z-index: 1;
}

/* Zone Title (Center) */
.float-zone-title {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--zone-primary);
  text-shadow: 0 0 30px var(--zone-glow);
  z-index: 50;
  transition: color 0.3s, text-shadow 0.3s;
}

.zone-title-icon {
  font-size: 20px;
}

/* Byte Mascot */
.float-byte {
  position: fixed;
  bottom: 90px;
  right: 30px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.byte-mascot {
  width: 48px;
  height: 48px;
  color: var(--zone-primary);
  animation: byte-float 3s ease-in-out infinite;
  cursor: pointer;
  transition: color 0.3s;
}

@keyframes byte-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.byte-speech {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 11px;
  max-width: 180px;
  text-align: center;
  position: relative;
  animation: speech-in 0.3s ease;
}

.byte-speech.hidden {
  display: none;
}

@keyframes speech-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.byte-speech::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--surface);
}

/* ==================== Card Pack Modal ==================== */
.pack-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pack-modal.hidden {
  display: none;
}

.pack-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
}

.pack-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pack-unopened {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: pack-hover 3s ease-in-out infinite;
}

@keyframes pack-hover {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

.pack-glow {
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle, rgba(255, 211, 42, 0.4) 0%, transparent 60%);
  animation: glow-pulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.pack-card {
  width: 220px;
  height: 320px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2a2a4e 50%, #1a1a2e 100%);
  border: 4px solid var(--gold);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.pack-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  animation: pack-shine 3s ease-in-out infinite;
}

@keyframes pack-shine {
  0% { transform: translateX(-100%) translateY(-100%); }
  100% { transform: translateX(100%) translateY(100%); }
}

.pack-rarity {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.pack-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pack-icon {
  font-size: 64px;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.pack-count {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--text);
}

.pack-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-dim);
  margin-top: 20px;
  letter-spacing: 1px;
}

.pack-open-btn {
  margin-top: 30px;
  padding: 16px 48px;
  background: var(--gold);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--void);
  cursor: pointer;
  transition: all 0.2s;
  animation: btn-glow 2s ease-in-out infinite;
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
  50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
}

.pack-open-btn:hover {
  transform: scale(1.05);
  background: var(--green);
}

/* Pack reveal */
.pack-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pack-reveal.hidden {
  display: none;
}

.reveal-cards {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.reveal-card {
  width: 140px;
  height: 200px;
  animation: card-flip 0.6s ease-out forwards;
  animation-delay: calc(var(--i, 0) * 0.15s);
  opacity: 0;
}

@keyframes card-flip {
  0% { opacity: 0; transform: rotateY(180deg) scale(0.5); }
  50% { opacity: 1; }
  100% { opacity: 1; transform: rotateY(0) scale(1); }
}

.reveal-card-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface) 0%, var(--void-light) 100%);
  border-radius: 12px;
  border: 3px solid var(--border);
  overflow: hidden;
}

.reveal-card[data-rarity="rare"] .reveal-card-inner { border-color: var(--cyan); }
.reveal-card[data-rarity="epic"] .reveal-card-inner { border-color: var(--purple); }
.reveal-card[data-rarity="legendary"] .reveal-card-inner { 
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.reveal-card-rarity {
  font-family: var(--font-pixel);
  font-size: 6px;
  padding: 4px 8px;
  margin: 6px;
  border-radius: 4px;
  display: inline-block;
}

.reveal-card-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--void);
}

.reveal-card-info {
  padding: 8px;
}

.reveal-card-name {
  font-size: 9px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reveal-card-artist {
  font-size: 8px;
  color: var(--text-dim);
}

.reveal-actions {
  display: flex;
  gap: 16px;
}

.btn-collect, .btn-close {
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-pixel);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-collect {
  background: var(--green);
  border: none;
  color: var(--void);
}

.btn-collect:hover {
  transform: scale(1.05);
}

.btn-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.btn-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ==================== Generic Modal ==================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
}

.modal-content h2 {
  font-family: var(--font-pixel);
  font-size: 14px;
  margin-bottom: 8px;
}

.modal-content p {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 20px;
}

.modal-input {
  width: 100%;
  background: var(--void-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  margin-bottom: 16px;
}

.modal-input:focus {
  outline: none;
  border-color: var(--zone-primary);
}

.btn-primary {
  background: var(--zone-primary);
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius);
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* ==================== Toast ==================== */
.toast-container {
  position: fixed;
  bottom: 100px;
  left: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.3s ease;
  max-width: 300px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-20px); }
}

.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--pink); }

/* ==================== Utilities ==================== */
.hidden {
  display: none !important;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .float-search {
    max-width: 200px;
    margin: 0 10px;
  }
  
  .zone-name {
    display: none;
  }
  
  .sample-card {
    width: 140px;
    height: 190px;
  }
  
  .expanded-content {
    flex-direction: column;
  }
  
  .expanded-card {
    width: 100%;
  }
}

/* ==================== LAB ZONE - MAD SCIENTIST LABORATORY ==================== */
.lab-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 540px;
  text-align: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(10, 10, 18, 0.95) 0%, rgba(5, 5, 10, 0.98) 100%);
  border: 1px solid rgba(0, 255, 170, 0.2);
  border-radius: 20px;
  box-shadow: 
    0 0 60px rgba(0, 255, 170, 0.1),
    inset 0 0 60px rgba(0, 0, 0, 0.5);
}

/* Grid pattern overlay */
.lab-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(rgba(0, 255, 170, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 170, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  border-radius: 20px;
  pointer-events: none;
}

.lab-header {
  margin-bottom: 28px;
  position: relative;
}

.lab-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 20px rgba(0, 255, 170, 0.6));
  animation: labFloat 4s ease-in-out infinite;
}

@keyframes labFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.lab-title {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: #00ffaa;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 0 0 30px rgba(0, 255, 170, 0.6);
}

.lab-subtitle {
  color: rgba(0, 212, 255, 0.8);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.lab-drop-zone {
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.03) 0%, transparent 100%);
  border: 2px dashed rgba(0, 255, 170, 0.3);
  border-radius: 16px;
  padding: 50px 24px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Scanning beam effect */
.lab-drop-zone::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 170, 0.1), transparent);
  transition: left 0.6s ease;
}

.lab-drop-zone:hover::after {
  left: 100%;
}

.lab-drop-zone:hover,
.lab-drop-zone.dragover {
  border-color: #00ffaa;
  background: rgba(0, 255, 170, 0.08);
  box-shadow: 
    0 0 40px rgba(0, 255, 170, 0.2),
    inset 0 0 40px rgba(0, 255, 170, 0.05);
  transform: scale(1.02);
}

.lab-drop-zone .drop-icon {
  font-size: 3rem;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 12px rgba(0, 255, 170, 0.5));
}

.lab-drop-zone .drop-text {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #00ffaa;
  font-weight: 500;
}

.lab-drop-zone .drop-hint {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.lab-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: rgba(0, 255, 170, 0.4);
}

.lab-divider::before,
.lab-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 170, 0.3), transparent);
}

.lab-divider span {
  padding: 0 18px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.lab-url-input {
  display: flex;
  gap: 12px;
}

.lab-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 170, 0.2);
  border-radius: 10px;
  padding: 14px 18px;
  color: #00ffaa;
  font-size: 1rem;
  font-family: var(--font-mono);
  transition: all 0.3s ease;
}

.lab-input::placeholder {
  color: rgba(0, 255, 170, 0.3);
}

.lab-input:focus {
  outline: none;
  border-color: #00ffaa;
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
}

.lab-btn {
  background: linear-gradient(135deg, #00ffaa 0%, #00d4ff 100%);
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  color: #0a0a12;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.3);
}

.lab-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 255, 170, 0.5);
}

.lab-btn:active {
  transform: translateY(-1px);
}

/* Lab Mode Selection - Operation Choice */
.lab-mode-select {
  margin-top: 28px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.03) 0%, transparent 100%);
  border: 1px solid rgba(0, 255, 170, 0.2);
  border-radius: 16px;
  animation: labFadeIn 0.4s ease;
}

@keyframes labFadeIn {
  from { opacity: 0; transform: translateY(-15px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mode-prompt {
  color: #00ffaa;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.mode-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.mode-btn {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 170, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mode-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 170, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.mode-btn:hover::before {
  opacity: 1;
}

.mode-btn:hover {
  background: rgba(0, 255, 170, 0.08);
  border-color: rgba(0, 255, 170, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 255, 170, 0.15);
}

.mode-btn:active {
  transform: translateY(-2px);
}

.mode-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 10px rgba(0, 255, 170, 0.5));
}

.mode-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: #00ffaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mode-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* Edit mode - cyan accent */
.mode-btn:first-child {
  border-color: rgba(0, 212, 255, 0.3);
}

.mode-btn:first-child:hover {
  border-color: #00d4ff;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.mode-btn:first-child .mode-icon {
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
}

.mode-btn:first-child .mode-title {
  color: #00d4ff;
}

/* Stem mode - green accent */
.mode-btn:last-child {
  border-color: rgba(0, 255, 170, 0.3);
}

.mode-btn:last-child:hover {
  border-color: #00ffaa;
  box-shadow: 0 10px 30px rgba(0, 255, 170, 0.2);
}

.lab-progress {
  margin-top: 32px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 255, 170, 0.03) 100%);
  border: 1px solid rgba(0, 255, 170, 0.2);
  border-radius: 16px;
}

.lab-progress .progress-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 255, 170, 0.2);
  border-top-color: #00ffaa;
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.3);
}

.lab-progress .progress-status {
  margin-bottom: 18px;
  color: #00ffaa;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}

.lab-progress .progress-bar {
  height: 6px;
  background: rgba(0, 255, 170, 0.1);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 170, 0.2);
}

.lab-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ffaa, #00d4ff);
  width: 0%;
  transition: width 0.5s ease;
  box-shadow: 0 0 15px rgba(0, 255, 170, 0.5);
}

.lab-results {
  margin-top: 32px;
  text-align: left;
}

.lab-results h3 {
  font-family: var(--font-mono);
  color: #00ffaa;
  margin-bottom: 18px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(0, 255, 170, 0.4);
}

.stem-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--void-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.stem-icon {
  font-size: 1.5rem;
}

.stem-name {
  flex: 1;
  font-weight: 500;
  text-transform: capitalize;
}

.stem-download {
  background: var(--green);
  color: var(--void);
  padding: 6px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.stem-download:hover {
  transform: scale(1.05);
}

.lab-credits {
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px solid rgba(0, 255, 170, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.lab-credits .credits-icon {
  font-size: 1.3rem;
  filter: drop-shadow(0 0 8px rgba(0, 255, 170, 0.5));
}

.lab-credits .upgrade-link {
  color: #00d4ff;
  text-decoration: none;
  margin-left: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.lab-credits .upgrade-link:hover {
  color: #00ffaa;
  text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Upload Button */
.upload-btn {
  background: linear-gradient(135deg, var(--green), var(--cyan)) !important;
  color: var(--void) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(5, 255, 161, 0.4);
}
/* ==================== PACK OPENING - Video Game Experience ==================== */

/* Shake animation for suspense */
@keyframes pack-shake {
  0%, 100% { transform: translateX(0) rotate(-1deg); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-8px) rotate(-2deg); }
  20%, 40%, 60%, 80% { transform: translateX(8px) rotate(2deg); }
}

@keyframes pack-shake-intense {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  10% { transform: translate(-15px, -5px) rotate(-5deg); }
  20% { transform: translate(15px, 5px) rotate(5deg); }
  30% { transform: translate(-10px, 10px) rotate(-3deg); }
  40% { transform: translate(10px, -10px) rotate(3deg); }
  50% { transform: translate(-15px, 5px) rotate(-5deg); }
  60% { transform: translate(15px, -5px) rotate(5deg); }
  70% { transform: translate(-10px, -10px) rotate(-3deg); }
  80% { transform: translate(10px, 10px) rotate(3deg); }
  90% { transform: translate(-5px, -5px) rotate(-1deg); }
}

/* Glow pulse that intensifies */
@keyframes glow-intensify {
  0% { opacity: 0.3; transform: scale(1); filter: hue-rotate(0deg); }
  50% { opacity: 1; transform: scale(1.3); filter: hue-rotate(30deg); }
  100% { opacity: 0.3; transform: scale(1); filter: hue-rotate(0deg); }
}

/* Pack opening - cracking open */
@keyframes pack-crack {
  0% { clip-path: inset(0); filter: brightness(1); }
  25% { clip-path: inset(0 0 0 0); filter: brightness(1.5); }
  50% { clip-path: inset(0 0 50% 0); filter: brightness(2); }
  75% { clip-path: inset(50% 0 50% 0); filter: brightness(3); }
  100% { clip-path: inset(50%); filter: brightness(5); opacity: 0; }
}

/* Light burst effect */
@keyframes light-burst {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

/* States */
.pack-unopened.shaking {
  animation: pack-shake 0.5s ease-in-out infinite;
}

.pack-unopened.shaking-intense {
  animation: pack-shake-intense 0.3s ease-in-out infinite;
}

.pack-unopened.opening .pack-glow {
  animation: glow-intensify 0.3s ease-in-out infinite;
}

.pack-unopened.cracking .pack-card {
  animation: pack-crack 0.8s ease-in forwards;
}

/* Light burst overlay */
.light-burst {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, 
    rgba(255, 255, 255, 1) 0%, 
    rgba(255, 215, 0, 0.8) 20%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 1001;
  animation: light-burst 0.8s ease-out forwards;
}

/* Legendary-specific burst */
.light-burst.legendary {
  background: radial-gradient(circle at center,
    rgba(255, 215, 0, 1) 0%,
    rgba(255, 165, 0, 0.9) 20%,
    rgba(255, 100, 0, 0.5) 40%,
    transparent 70%
  );
}

/* Epic-specific burst */
.light-burst.epic {
  background: radial-gradient(circle at center,
    rgba(180, 100, 255, 1) 0%,
    rgba(138, 43, 226, 0.8) 30%,
    transparent 60%
  );
}

/* ==================== Card Reveal Enhancements ==================== */

/* Card back (before flip) */
.reveal-card {
  --flip-duration: 0.8s;
  perspective: 1500px;
}

.reveal-card-inner {
  transform-style: preserve-3d;
  transition: transform var(--flip-duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-card.flipping .reveal-card-inner {
  transform: rotateY(180deg);
}

/* Enhanced reveal animation */
@keyframes card-fly-in {
  0% {
    opacity: 0;
    transform: translateY(-200px) rotateX(45deg) scale(0.5);
  }
  60% {
    opacity: 1;
    transform: translateY(20px) rotateX(-10deg) scale(1.1);
  }
  80% {
    transform: translateY(-10px) rotateX(5deg) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
}

.reveal-card {
  animation: card-fly-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--i) * 0.2s);
  opacity: 0;
}

/* Rarity-specific card effects */
.reveal-card[data-rarity="legendary"] {
  --glow-color: var(--rarity-legendary);
}

.reveal-card[data-rarity="epic"] {
  --glow-color: var(--rarity-epic);
}

.reveal-card[data-rarity="rare"] {
  --glow-color: var(--rarity-rare);
}

.reveal-card[data-rarity="common"] {
  --glow-color: var(--rarity-common);
}

/* Legendary card glow animation */
.reveal-card[data-rarity="legendary"] .reveal-card-inner {
  box-shadow: 
    0 0 20px var(--glow-color),
    0 0 40px var(--glow-color),
    0 0 60px var(--glow-color);
  animation: legendary-pulse 1.5s ease-in-out infinite;
}

@keyframes legendary-pulse {
  0%, 100% {
    box-shadow: 
      0 0 20px var(--glow-color),
      0 0 40px var(--glow-color),
      0 0 60px rgba(255, 215, 0, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 
      0 0 30px var(--glow-color),
      0 0 60px var(--glow-color),
      0 0 90px rgba(255, 215, 0, 0.5);
    transform: scale(1.02);
  }
}

/* Epic card shimmer */
.reveal-card[data-rarity="epic"] .reveal-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(180, 100, 255, 0.4) 50%,
    transparent 60%
  );
  animation: epic-shimmer 2s ease-in-out infinite;
}

@keyframes epic-shimmer {
  0% { transform: translateX(-100%) translateY(-100%); }
  100% { transform: translateX(100%) translateY(100%); }
}

/* ==================== Particle Effects ==================== */

.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1002;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: particle-fly 1.5s ease-out forwards;
}

@keyframes particle-fly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0);
    opacity: 0;
  }
}

.particle.gold { background: var(--rarity-legendary); box-shadow: 0 0 10px var(--rarity-legendary); }
.particle.purple { background: var(--rarity-epic); box-shadow: 0 0 10px var(--rarity-epic); }
.particle.blue { background: var(--rarity-rare); box-shadow: 0 0 10px var(--rarity-rare); }
.particle.white { background: #fff; box-shadow: 0 0 10px #fff; }

/* Star particles for legendary */
.particle.star {
  width: 0;
  height: 0;
  border-radius: 0;
  background: transparent;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: var(--rarity-legendary);
  width: 15px;
  height: 15px;
}

/* ==================== Pack Counter / Progress ==================== */

.pack-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.pack-timer {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-dim);
}

.pack-timer-value {
  color: var(--cyan);
}

/* ==================== Summary Screen ==================== */

.pack-summary {
  text-align: center;
  padding: 32px;
}

.summary-title {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--yellow);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.summary-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

.summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.summary-stat-count {
  font-family: var(--font-pixel);
  font-size: 24px;
  font-weight: bold;
}

.summary-stat-count.legendary { color: var(--rarity-legendary); }
.summary-stat-count.epic { color: var(--rarity-epic); }
.summary-stat-count.rare { color: var(--rarity-rare); }
.summary-stat-count.common { color: var(--rarity-common); }

.summary-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==================== Skip Button ==================== */

.skip-btn {
  position: absolute;
  bottom: 32px;
  right: 32px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 1003;
}

.skip-btn:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

/* ==================== Mobile Responsive ==================== */

@media (max-width: 900px) {
  .reveal-cards {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 380px;
  }
  
  .reveal-card {
    width: 100px;
    height: 140px;
  }
  
  .pack-card {
    width: 180px;
    height: 260px;
  }
}

/* ==================== Stem to Pack Flow ==================== */
.stem-actions {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.create-pack-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  border: none;
  border-radius: var(--radius);
  color: var(--void);
  font-family: var(--font-pixel);
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  animation: pulse-glow 2s ease-in-out infinite;
}

.create-pack-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(5, 255, 161, 0.5);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(5, 255, 161, 0.3); }
  50% { box-shadow: 0 0 25px rgba(5, 255, 161, 0.6); }
}

.create-pack-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Create Pack Modal */
.create-pack-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.create-pack-modal .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.create-pack-modal .modal-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.create-pack-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.create-pack-modal .modal-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.create-pack-modal .modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
}

.create-pack-modal .modal-body {
  padding: 24px;
}

.create-pack-modal .pack-preview {
  background: var(--void);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.create-pack-modal .stems-included h4 {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.create-pack-modal .stems-list-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.create-pack-modal .stem-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--surface);
  border-radius: 4px;
  font-size: 12px;
}

.create-pack-modal .form-group {
  margin-bottom: 16px;
}

.create-pack-modal .form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.create-pack-modal .form-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--void);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
}

.create-pack-modal .form-input:focus {
  outline: none;
  border-color: var(--cyan);
}

.create-pack-modal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.create-pack-modal .price-input-wrap {
  display: flex;
  align-items: center;
  background: var(--void);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.create-pack-modal .price-symbol {
  padding: 10px 12px;
  background: var(--surface-light);
  color: var(--green);
  font-weight: bold;
}

.create-pack-modal .price-input-wrap input {
  border: none;
  background: transparent;
}

.create-pack-modal .form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.create-pack-modal .revenue-preview {
  background: linear-gradient(135deg, rgba(5, 255, 161, 0.1), rgba(0, 255, 245, 0.1));
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}

.create-pack-modal .revenue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.create-pack-modal .revenue-amount {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--green);
}

.create-pack-modal .modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.create-pack-modal .btn-secondary {
  flex: 1;
  padding: 12px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.create-pack-modal .btn-primary {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  border: none;
  border-radius: 6px;
  color: var(--void);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.create-pack-modal .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(5, 255, 161, 0.4);
}

.create-pack-modal .btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ==================== Audio Player ==================== */
.expanded-player {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--void);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 255, 245, 0.5);
}

.play-btn:active {
  transform: scale(0.95);
}

.play-icon {
  font-size: 24px;
  color: var(--void);
  margin-left: 4px; /* Visual centering for play icon */
}

.play-btn.playing .play-icon {
  margin-left: 0;
}

.player-waveform {
  flex: 1;
  height: 40px;
  background: var(--surface);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.waveform-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  opacity: 0.7;
  transition: width 0.1s;
}

.player-time {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  min-width: 45px;
  text-align: right;
}

/* Loading state */
.play-btn.loading {
  pointer-events: none;
}

.play-btn.loading .play-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* No audio available */
.expanded-player.no-audio {
  opacity: 0.5;
  pointer-events: none;
}

.expanded-player.no-audio::after {
  content: 'Preview not available';
  position: absolute;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== Pack Shop ==================== */
.pack-shop {
  text-align: center;
  padding: 2rem;
  max-width: 400px;
  margin: 0 auto;
}

.pack-shop h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.shop-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.pack-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pack-buy-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.pack-buy-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.pack-buy-btn.popular {
  border-color: var(--gold);
  background: rgba(255,215,0,0.1);
}

.pack-qty {
  font-weight: 600;
  font-size: 1.1rem;
}

.pack-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.pack-badge-sale {
  position: absolute;
  top: -8px;
  right: 10px;
  background: var(--gold);
  color: black;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

#close-shop-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
}

#close-shop-btn:hover {
  border-color: rgba(255,255,255,0.4);
  color: white;
}

/* Pack badge timer state */
.pack-badge.timer {
  background: rgba(255,255,255,0.2);
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* Free pack timer */
.free-pack-timer {
  background: rgba(100, 200, 255, 0.1);
  border: 1px solid rgba(100, 200, 255, 0.3);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #7dd3fc;
}

#timer-countdown {
  font-weight: 700;
  font-family: 'Space Mono', monospace;
}

/* ==================== LIBRARY ZONE - Personal Music Player ==================== */

/* Main Container */
.library-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 120px; /* Space for mini player */
}

/* Stats Bar */
.library-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), transparent);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 16px;
  margin-bottom: 20px;
}

.library-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.library-stat .stat-value {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--zone-primary);
}

.library-stat .stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: lowercase;
}

.stat-divider {
  color: var(--text-muted);
  opacity: 0.3;
}

/* Quick Actions Bar */
.library-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.library-search {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  transition: all 0.2s;
}

.library-search:focus-within {
  border-color: var(--zone-primary);
  box-shadow: 0 0 20px var(--zone-glow);
}

.library-search .search-icon {
  opacity: 0.5;
}

.library-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.library-search input::placeholder {
  color: var(--text-muted);
}

.library-buttons {
  display: flex;
  gap: 8px;
}

.lib-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.lib-action-btn:hover {
  border-color: var(--zone-primary);
  background: rgba(212, 165, 116, 0.1);
}

.lib-action-btn.shuffle-btn:hover {
  border-color: var(--green);
  background: rgba(5, 255, 161, 0.1);
}

.lib-action-btn.lab-all-btn:hover {
  border-color: var(--purple);
  background: rgba(168, 85, 247, 0.1);
}

/* Section Headers */
.library-section {
  margin-bottom: 28px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-icon {
  font-size: 16px;
}

.song-count {
  font-weight: normal;
  color: var(--text-muted);
  font-size: 12px;
}

/* Recently Added Section */
.recently-added {
  padding: 20px;
  background: linear-gradient(135deg, rgba(5, 255, 161, 0.05), transparent);
  border: 1px solid rgba(5, 255, 161, 0.1);
  border-radius: 16px;
}

.recent-songs-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.recent-song-card {
  flex-shrink: 0;
  width: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.recent-song-card:hover {
  transform: scale(1.05);
}

.recent-song-art {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
}

.recent-song-title {
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Song List */
.library-song-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Individual Song Card */
.lib-song-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: card-slide-in 0.3s ease-out backwards;
  animation-delay: calc(var(--i) * 0.03s);
}

@keyframes card-slide-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.lib-song-card:hover {
  background: rgba(212, 165, 116, 0.08);
  border-color: rgba(212, 165, 116, 0.2);
  transform: translateX(4px);
}

.lib-song-card.playing {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(212, 165, 116, 0.05));
  border-color: var(--zone-primary);
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.2);
}

.lib-song-card.in-lab {
  border-left: 3px solid var(--purple);
}

.lib-song-card.sending-to-lab {
  animation: pulse-lab 0.6s ease;
}

@keyframes pulse-lab {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
  50% { box-shadow: 0 0 20px 5px rgba(168, 85, 247, 0.4); }
}

.lib-song-card.removing {
  animation: card-remove 0.3s ease-out forwards;
}

@keyframes card-remove {
  to {
    opacity: 0;
    transform: translateX(50px) scale(0.9);
    height: 0;
    padding: 0;
    margin: 0;
  }
}

.lib-song-card.dragging {
  opacity: 0.5;
  transform: scale(0.98);
}

.lib-song-card.drag-above {
  border-top: 2px solid var(--zone-primary);
}

.lib-song-card.drag-below {
  border-bottom: 2px solid var(--zone-primary);
}

/* Drag Handle */
.lib-song-drag-handle {
  color: var(--text-muted);
  font-size: 14px;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.2s;
  padding: 4px;
}

.lib-song-card:hover .lib-song-drag-handle {
  opacity: 0.5;
}

.lib-song-drag-handle:active {
  cursor: grabbing;
}

/* Artwork */
.lib-song-artwork {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Inline Waveform */
.lib-song-waveform {
  width: 80px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex-shrink: 0;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.lib-waveform-bar {
  width: 2px;
  background: var(--zone-primary);
  opacity: 0.4;
  border-radius: 1px;
  transition: opacity 0.2s, transform 0.1s;
}

.lib-song-card:hover .lib-waveform-bar {
  opacity: 0.7;
}

.lib-song-card.playing .lib-waveform-bar {
  opacity: 0.9;
  animation: waveform-play 0.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.02s);
}

@keyframes waveform-play {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.3); }
}

.waveform-playhead {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--zone-primary);
  box-shadow: 0 0 6px var(--zone-primary);
  animation: playhead-move 10s linear infinite;
}

@keyframes playhead-move {
  from { left: 0; }
  to { left: 100%; }
}

/* Song Info */
.lib-song-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lib-song-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lib-song-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}

.lib-song-artist {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.lib-song-bpm, .lib-song-key {
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-size: 10px;
}

/* Duration */
.lib-song-duration {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  min-width: 45px;
  text-align: center;
}

/* Status Icons */
.lib-song-status {
  display: flex;
  gap: 4px;
}

.status-icon {
  font-size: 14px;
  opacity: 0.6;
}

.status-icon.in-lab {
  animation: lab-pulse 2s ease-in-out infinite;
}

@keyframes lab-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Hover Actions */
.lib-song-actions-hover {
  display: flex;
  gap: 4px;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.2s;
}

.lib-song-card:hover .lib-song-actions-hover {
  opacity: 1;
  transform: translateX(0);
}

.lib-hover-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.lib-hover-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lib-hover-btn.play-btn:hover {
  background: var(--green);
  color: var(--void);
}

.lib-hover-btn.lab-btn:hover {
  background: var(--purple);
}

.lib-hover-btn.delete-btn:hover {
  background: var(--pink);
}

.lib-hover-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Sticky Mini Player */
.library-mini-player {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: 90%;
  max-width: 600px;
  background: rgba(26, 22, 16, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 165, 116, 0.3);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.library-mini-player.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.mini-player-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  position: relative;
}

.mini-player-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--zone-primary);
  border-radius: 16px 16px 0 0;
  transition: width 0.1s linear;
}

.mini-player-art {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.mini-player-info {
  flex: 1;
  min-width: 0;
}

.mini-player-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-player-artist {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-ctrl-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.mini-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mini-ctrl-btn.play-pause {
  width: 44px;
  height: 44px;
  background: var(--zone-primary);
  color: var(--void);
  font-size: 18px;
}

.mini-ctrl-btn.play-pause:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--zone-glow);
}

.mini-player-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  min-width: 80px;
  text-align: right;
}

/* ==================== LIBRARY EMPTY STATE ==================== */

.library-empty-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.library-empty-hero {
  margin-bottom: 40px;
}

/* Spinning Vinyl Animation */
.empty-vinyl {
  display: inline-block;
  margin-bottom: 24px;
}

.vinyl-disc {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at center, #333 0%, #333 15%, transparent 15%),
    conic-gradient(from 0deg, #1a1a1a, #333, #1a1a1a, #333, #1a1a1a, #333, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: vinyl-spin 8s linear infinite;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(212, 165, 116, 0.3);
}

@keyframes vinyl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-label {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--zone-primary), #8b6914);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  animation: vinyl-spin 8s linear infinite reverse;
}

.empty-title {
  font-family: var(--font-pixel);
  font-size: 20px;
  color: var(--zone-primary);
  margin-bottom: 8px;
  text-shadow: 0 0 30px var(--zone-glow);
}

.empty-subtitle {
  color: var(--text-dim);
  font-size: 14px;
}

/* Action Cards */
.library-empty-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.empty-action-card {
  padding: 32px 24px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px dashed var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.empty-action-card:hover {
  border-color: var(--zone-primary);
  border-style: solid;
  background: rgba(212, 165, 116, 0.05);
  transform: translateY(-4px);
}

.empty-action-card.upload-card:hover {
  border-color: var(--green);
  background: rgba(5, 255, 161, 0.05);
}

.empty-action-card.dragover {
  border-color: var(--green);
  border-style: solid;
  background: rgba(5, 255, 161, 0.1);
  transform: scale(1.02);
}

.empty-action-card .action-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-action-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

.empty-action-card p {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.action-formats {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.action-hint {
  font-size: 12px;
  color: var(--zone-primary);
  font-weight: 500;
}

/* Suggestions Section */
.library-suggestions {
  text-align: left;
  margin-bottom: 32px;
}

.suggestions-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--text);
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.suggestion-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.suggestion-card:hover {
  border-color: var(--green);
  background: rgba(5, 255, 161, 0.05);
  transform: translateY(-2px);
}

.suggestion-art {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.suggestion-info {
  flex: 1;
  min-width: 0;
}

.suggestion-title {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-artist {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-free {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 8px;
  padding: 2px 5px;
  background: var(--green);
  color: var(--void);
  border-radius: 4px;
  font-weight: bold;
}

.view-more-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.view-more-btn:hover {
  border-color: var(--zone-primary);
  color: var(--zone-primary);
}

/* Tip Banner */
.library-tip-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), transparent);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 12px;
  text-align: left;
}

.library-tip-banner .tip-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.library-tip-banner .tip-content {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.library-tip-banner .tip-content strong {
  color: var(--purple);
}

/* Responsive */
@media (max-width: 600px) {
  .library-stats-bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .library-actions {
    flex-direction: column;
  }
  
  .library-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .lib-song-waveform {
    display: none;
  }
  
  .lib-song-card {
    padding: 10px 12px;
  }
  
  .lib-song-artwork {
    width: 40px;
    height: 40px;
  }
  
  .mini-player-time {
    display: none;
  }
}

/* ==================== DJ Export ==================== */
.crates-export-btn {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border: none;
  border-radius: 30px;
  padding: 14px 24px;
  color: white;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
  transition: all 0.2s;
  z-index: 800;
}

.crates-export-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(168, 85, 247, 0.5);
}

.crates-export-btn .btn-icon {
  font-size: 18px;
}

/* Export Modal */
.export-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.export-modal.visible {
  opacity: 1;
}

.export-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.export-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  max-width: 450px;
  width: 90%;
  text-align: center;
}

.export-content h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.export-count {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.export-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.export-option {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.export-option:hover {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.05);
}

.export-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.export-name {
  font-weight: 600;
  color: var(--text);
  display: block;
}

.export-desc {
  font-size: 12px;
  color: var(--text-dim);
}

.export-close {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 24px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.export-close:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* ==================== Upload FAB ==================== */
.upload-fab {
  position: fixed;
  bottom: 100px;
  left: 24px;
  background: linear-gradient(135deg, var(--green), #00cc88);
  border: none;
  border-radius: 30px;
  padding: 16px 24px;
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: none; /* Hidden on desktop - only show on mobile */
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(5, 255, 161, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 800;
  text-decoration: none;
}

/* Show upload FAB only on mobile */
@media (max-width: 768px) {
  .upload-fab {
    display: flex;
  }
}

.upload-fab:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(5, 255, 161, 0.5);
  padding-right: 28px;
}

.upload-fab .fab-icon {
  font-size: 22px;
  font-weight: bold;
  line-height: 1;
}

.upload-fab .fab-text {
  white-space: nowrap;
}

/* Pulse animation to draw attention */
.upload-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 34px;
  background: inherit;
  opacity: 0;
  z-index: -1;
  animation: fab-pulse 2s ease-in-out infinite;
}

@keyframes fab-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.1); }
}

/* Hide pulse after first view */
.upload-fab.seen::before {
  animation: none;
  opacity: 0;
}

/* Mobile: icon only */
@media (max-width: 480px) {
  .upload-fab {
    padding: 16px;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    justify-content: center;
  }
  
  .upload-fab .fab-text {
    display: none;
  }
  
  .upload-fab .fab-icon {
    font-size: 26px;
  }
}

/* Empty State CTA */
.empty-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--green), #00cc88);
  color: var(--void);
  font-weight: bold;
  font-size: 14px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(5, 255, 161, 0.3);
}

.empty-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(5, 255, 161, 0.4);
}

/* ==================== Entrance Screen ==================== */
.entrance-screen {
  position: fixed;
  inset: 0;
  background: var(--void);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.entrance-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entrance-content {
  text-align: center;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
}

.entrance-logo {
  margin-bottom: 3rem;
}

.entrance-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.entrance-title {
  font-family: var(--font-pixel);
  font-size: 3rem;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.entrance-tagline {
  color: var(--text-dim);
  font-size: 1rem;
}

.entrance-zones {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2rem;
}

.entrance-zone-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.entrance-zone-btn:hover {
  background: rgba(0, 212, 255, 0.05);
  border-color: var(--cyan);
  transform: translateX(4px);
}

.entrance-zone-btn .zone-emoji {
  font-size: 2rem;
  flex-shrink: 0;
}

.entrance-zone-btn .zone-label {
  font-weight: 600;
  color: var(--text);
  display: block;
  font-size: 1rem;
}

.entrance-zone-btn .zone-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: block;
  margin-top: 2px;
}

.entrance-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .entrance-title {
    font-size: 2.5rem;
  }
  
  .entrance-zone-btn {
    padding: 14px 16px;
  }
  
  .entrance-zone-btn .zone-emoji {
    font-size: 1.5rem;
  }
}

/* ==================== LIBRARY ZONE ==================== */
.library-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  text-align: center;
}

.library-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.library-empty-title {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  color: var(--zone-primary);
  margin-bottom: 0.5rem;
}

.library-empty-text {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.library-upload-zone {
  background: rgba(212, 165, 116, 0.05);
  border: 2px dashed var(--zone-primary);
  border-radius: 20px;
  padding: 40px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.library-upload-zone:hover,
.library-upload-zone.dragover {
  background: rgba(212, 165, 116, 0.1);
  border-color: var(--zone-accent);
  transform: scale(1.02);
}

.library-upload-zone .upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.library-upload-zone p {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.library-upload-zone .upload-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.library-upload-zone .upload-btn {
  background: linear-gradient(135deg, var(--zone-primary), var(--zone-secondary));
  border: none;
  border-radius: 25px;
  padding: 12px 28px;
  color: var(--void);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.library-upload-zone .upload-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.4);
}

.library-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.library-tip .tip-icon {
  font-size: 1.2rem;
}

/* Library Song Cards */
.library-song-card {
  background: linear-gradient(135deg, #1a1610 0%, #12100a 100%);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
  cursor: pointer;
}

.library-song-card:hover {
  border-color: var(--zone-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 165, 116, 0.15);
}

.library-song-artwork {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--void);
}

.library-song-info {
  flex: 1;
  min-width: 0;
}

.library-song-title {
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.library-song-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 4px;
}

.library-song-actions {
  display: flex;
  gap: 8px;
}

.library-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.library-action-btn:hover {
  border-color: var(--zone-primary);
  color: var(--zone-primary);
}

.library-action-btn.lab-btn:hover {
  border-color: #a855f7;
  color: #a855f7;
}

/* ==================== Zone Group Mobile ==================== */
@media (max-width: 768px) {
  .zone-group-label {
    display: none;
  }
  
  .zone-name {
    display: none;
  }
  
  .zone-btn {
    padding: 10px;
  }
  
  .zone-icon {
    font-size: 18px;
  }
  
  .zone-divider {
    height: 24px;
    margin: 0 4px;
  }
}


/* ==================== UNDERGROUND ZONE - Trading Card Layout ==================== */
/* Pokemon/MTG vibes - collectible, holographic, premium feel */

.zone-underground .card-space {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 32px 24px 120px;
  perspective: 1200px;
}

/* Trading Card Base - vertical, collectible format */
.zone-underground .sample-card {
  width: 200px;
  height: 280px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1a28 0%, #0d0d14 100%);
  border: 3px solid #2a2a3a;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  /* Floating animation - cards drift like they're suspended in space */
  animation: card-drift 8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.3s);
}

/* Gentle drift animation for Underground cards */
@keyframes card-drift {
  0%, 100% { 
    transform: translateY(0) rotate(0deg); 
  }
  25% { 
    transform: translateY(-8px) rotate(0.5deg); 
  }
  50% { 
    transform: translateY(-4px) rotate(-0.3deg); 
  }
  75% { 
    transform: translateY(-10px) rotate(0.3deg); 
  }
}

/* 3D Tilt on hover */
.zone-underground .sample-card:hover {
  transform: translateY(-12px) rotateX(5deg) rotateY(-3deg) scale(1.04);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 40px var(--zone-glow, rgba(245, 158, 11, 0.3));
  z-index: 10;
  animation-play-state: paused; /* Pause float on hover */
}

/* Holographic shimmer overlay */
.zone-underground .sample-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: linear-gradient(
    125deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 100, 200, 0.1) 35%,
    rgba(100, 200, 255, 0.1) 45%,
    rgba(255, 200, 100, 0.1) 55%,
    rgba(255, 255, 255, 0.03) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
  mix-blend-mode: overlay;
}

.zone-underground .sample-card:hover::after {
  opacity: 1;
  animation: holoShimmer 2s ease-in-out infinite;
}

/* Foil texture */
.zone-underground .sample-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 1;
}

/* Card artwork - top portion */
.zone-underground .sample-card .card-artwork {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* Card info section */
.zone-underground .sample-card .card-info {
  padding: 10px 12px 8px;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.zone-underground .sample-card .card-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.zone-underground .sample-card .card-artist-link {
  color: #f59e0b;
  font-size: 10px;
  text-decoration: none;
}

.zone-underground .sample-card .card-artist-link:hover {
  text-decoration: underline;
}

/* Stats bar at bottom - game style */
.zone-underground .sample-card .card-stats-bar {
  display: flex !important;
  justify-content: space-around;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-pixel, 'Press Start 2P', monospace);
  margin-top: auto;
  z-index: 3;
}

.zone-underground .sample-card .card-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.zone-underground .sample-card .card-stat-label {
  font-size: 6px;
  color: #666;
}

.zone-underground .sample-card .card-stat-value {
  font-size: 9px;
  color: #f59e0b;
}

/* Collection number */
.zone-underground .sample-card .card-collection-num {
  display: block !important;
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: var(--font-pixel, monospace);
  font-size: 7px;
  color: rgba(255, 255, 255, 0.4);
  z-index: 5;
}

/* Rarity badge */
.zone-underground .sample-card .card-rarity {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  font-size: 7px;
  font-family: var(--font-pixel, monospace);
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.zone-underground .sample-card .card-rarity.common { background: #4a4a5a; color: #fff; }
.zone-underground .sample-card .card-rarity.rare { background: #00d4ff; color: #000; }
.zone-underground .sample-card .card-rarity.epic { background: #b537f2; color: #fff; }
.zone-underground .sample-card .card-rarity.legendary { background: #ffd700; color: #000; }

/* Price badge */
.zone-underground .sample-card .card-price {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  font-size: 8px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
}

.zone-underground .sample-card .card-price:not(.paid) {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  color: #22c55e;
}

/* Rarity border glows */
.zone-underground .sample-card[data-rarity="common"] {
  border-color: #4a4a5a;
}

.zone-underground .sample-card[data-rarity="rare"] {
  border-color: #00d4ff;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 212, 255, 0.25);
}

.zone-underground .sample-card[data-rarity="rare"]:hover {
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 212, 255, 0.5);
}

.zone-underground .sample-card[data-rarity="epic"] {
  border-color: #b537f2;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(181, 55, 242, 0.3);
}

.zone-underground .sample-card[data-rarity="epic"]:hover {
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(181, 55, 242, 0.5);
  animation: epicPulse 2s ease-in-out infinite;
}

@keyframes epicPulse {
  0%, 100% { border-color: #b537f2; }
  50% { border-color: #d666ff; }
}

.zone-underground .sample-card[data-rarity="legendary"] {
  border-color: #ffd700;
  background: linear-gradient(145deg, #1f1a10 0%, #0f0d08 100%);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 215, 0, 0.35);
}

.zone-underground .sample-card[data-rarity="legendary"]:hover {
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(255, 215, 0, 0.6);
}

.zone-underground .sample-card[data-rarity="legendary"]::after {
  background: linear-gradient(
    125deg,
    transparent 0%,
    rgba(255, 215, 0, 0.15) 30%,
    rgba(255, 180, 0, 0.2) 50%,
    rgba(255, 215, 0, 0.15) 70%,
    transparent 100%
  );
  opacity: 0.5;
  animation: legendaryShimmer 3s ease-in-out infinite;
}

/* Hide waveform */
.zone-underground .sample-card .card-waveform {
  display: none;
}

/* Hide reactions - cleaner look */
.zone-underground .sample-card .card-reactions {
  display: none;
}

/* Underground Track Counter */
.underground-counter {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 8, 6, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 24px;
  padding: 10px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #f59e0b;
  z-index: 50;
  backdrop-filter: blur(10px);
  display: none;
}

.zone-underground .underground-counter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.underground-counter .count {
  font-weight: 700;
  font-size: 14px;
}


/* ==================== VAULT ZONE - Editorial Gallery Layout ==================== */
/* Premium, Curated, Museum - High-End Store */

.zone-vault .card-space {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  background: transparent;
}

/* Premium dark gallery cards */
.zone-vault .sample-card {
  width: 100%;
  height: auto;
  background: #1a1610;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  overflow: hidden;
  animation: none;
  transform: none;
}

.zone-vault .sample-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
}

/* Square artwork for packs */
.zone-vault .sample-card .card-artwork {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0;
}

/* Dark info section */
.zone-vault .sample-card .card-info {
  padding: 16px;
  background: #1a1610;
}

.zone-vault .sample-card .card-title {
  font-size: 15px;
  font-weight: 600;
  color: #f5f0e8;
  margin-bottom: 4px;
}

.zone-vault .sample-card .card-artist-link {
  font-size: 13px;
  color: #a09080;
}

.zone-vault .sample-card .card-artist-link:hover {
  color: #d4af37;
}

/* Price styling */
.zone-vault .sample-card .card-price {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #d4af37;
  color: #1a1814;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.zone-vault .sample-card .card-price:not(.paid) {
  background: #22c55e;
  color: white;
}

/* Hide rarity in vault */
.zone-vault .sample-card .card-rarity {
  display: none;
}

/* Hide waveform */
.zone-vault .sample-card .card-waveform {
  display: none;
}

/* Dark mode reactions */
.zone-vault .sample-card .card-reactions {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.zone-vault .sample-card .reaction-btn {
  color: #a09080;
}

.zone-vault .sample-card .reaction-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #d4af37;
}

/* Sample count badge */
.zone-vault .pack-sample-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Vault Hero Section */
.vault-hero {
  grid-column: 1 / -1;
  padding: 20px 0 32px;
}

.vault-hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.vault-hero-pack {
  background: #1a1610;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  gap: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.vault-hero-pack:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  border-color: #d4af37;
}

.vault-hero-pack.featured {
  background: linear-gradient(135deg, #1a1814 0%, #2a2620 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.vault-hero-pack.featured * {
  color: white;
}

.hero-pack-artwork {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-pack-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-pack-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #d4af37;
  margin-bottom: 8px;
}

.hero-pack-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1814;
  margin-bottom: 4px;
}

.hero-pack-creator {
  font-size: 13px;
  color: #6b6560;
  margin-bottom: 12px;
}

.hero-pack-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-pack-stat {
  font-size: 12px;
  color: #6b6560;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-pack-price {
  font-size: 24px;
  font-weight: 700;
  color: #d4af37;
}

.hero-pack-price.free {
  color: #22c55e;
}

/* Vault Section Headers */
.vault-section-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 8px;
}

.vault-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1814;
}

.vault-section-badge {
  background: #d4af37;
  color: #1a1814;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

/* Staff Picks Banner */
.vault-staff-picks {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.02) 100%);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 20px;
  padding: 24px;
  margin: 16px 0;
}

.vault-staff-picks-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.vault-staff-picks-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1814;
}

.vault-staff-picks-icon {
  font-size: 18px;
}

/* Vault responsive */
@media (max-width: 900px) {
  .vault-hero-inner {
    grid-template-columns: 1fr;
  }
  
  .vault-hero-pack {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .hero-pack-meta {
    justify-content: center;
  }
}

/* Underground responsive */
@media (max-width: 768px) {
  .zone-underground .sample-card {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16 / 10;
  }
  
  .zone-underground .card-space {
    padding: 20px 16px 120px;
    gap: 20px;
  }
}

/* ==================== TRADING CARD OVERHAUL ==================== */
/* Pokemon/MTG vibes - collectible, holographic, premium feel */

/* Underground Counter - shows how many tracks in the crate */
.underground-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(180, 83, 9, 0.05) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  font-family: var(--font-mono);
}

.counter-icon {
  font-size: 18px;
}

.counter-num {
  font-size: 20px;
  font-weight: 700;
  color: #f59e0b;
}

.counter-label {
  font-size: 12px;
  color: var(--text-dim);
}

/* Trading Card Base - thicker borders, more card-like */
.sample-card {
  width: 180px;
  height: 260px;
  background: linear-gradient(145deg, #1a1a28 0%, #0d0d14 100%);
  border: 3px solid #2a2a3a;
  border-radius: 12px;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 3D Tilt Effect */
.sample-card:hover {
  transform: translateY(-8px) rotateX(5deg) rotateY(-3deg) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 40px var(--zone-glow);
}

/* Holographic Shimmer - prismatic light overlay */
.sample-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(
    125deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 100, 200, 0.08) 35%,
    rgba(100, 200, 255, 0.08) 45%,
    rgba(255, 200, 100, 0.08) 55%,
    rgba(255, 255, 255, 0.03) 75%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
  mix-blend-mode: overlay;
}

.sample-card:hover::after {
  opacity: 1;
  animation: holoShimmer 2s ease-in-out infinite;
}

@keyframes holoShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Foil Texture Overlay */
.sample-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 1;
}

/* Rarity Borders - Glow effects */
.sample-card[data-rarity="common"] {
  border-color: #4a4a5a;
}

.sample-card[data-rarity="rare"] {
  border-color: #00d4ff;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(0, 212, 255, 0.2);
}

.sample-card[data-rarity="rare"]:hover {
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 212, 255, 0.4);
}

.sample-card[data-rarity="epic"] {
  border-color: #b537f2;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(181, 55, 242, 0.25);
}

.sample-card[data-rarity="epic"]:hover {
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(181, 55, 242, 0.5);
  animation: epicPulse 2s ease-in-out infinite;
}

@keyframes epicPulse {
  0%, 100% { border-color: #b537f2; }
  50% { border-color: #d666ff; }
}

.sample-card[data-rarity="legendary"] {
  border-color: #ffd700;
  background: linear-gradient(145deg, #1f1a10 0%, #0f0d08 100%);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(255, 215, 0, 0.3);
}

.sample-card[data-rarity="legendary"]:hover {
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(255, 215, 0, 0.6);
}

.sample-card[data-rarity="legendary"]::after {
  background: linear-gradient(
    125deg,
    transparent 0%,
    rgba(255, 215, 0, 0.15) 30%,
    rgba(255, 180, 0, 0.2) 50%,
    rgba(255, 215, 0, 0.15) 70%,
    transparent 100%
  );
  opacity: 0.5;
  animation: legendaryShimmer 3s ease-in-out infinite;
}

@keyframes legendaryShimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* Collection Number Badge */
.card-collection-num {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Improved Card Artwork */
.sample-card .card-artwork {
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

/* Stats Bar at Bottom - game-style */
.card-stats-bar {
  display: flex;
  justify-content: space-around;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-pixel);
  font-size: 7px;
}

.card-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.card-stat-label {
  color: var(--text-muted);
  font-size: 6px;
}

.card-stat-value {
  color: var(--zone-primary);
}

/* Card Entrance Animation - float up from depths */
.sample-card {
  animation: cardRise 0.5s ease-out backwards;
  animation-delay: calc(var(--i, 0) * 0.03s);
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Disable floating animation - feels more grounded */
.sample-card {
  animation: cardRise 0.5s ease-out backwards;
}

/* Card discovered flash effect */
.sample-card.just-discovered {
  animation: discoveredFlash 0.6s ease;
}

@keyframes discoveredFlash {
  0% { filter: brightness(1); }
  30% { filter: brightness(1.5); }
  100% { filter: brightness(1); }
}

/* Mobile adjustments for trading cards */
@media (max-width: 768px) {
  .sample-card {
    width: 150px;
    height: 220px;
  }
  
  .underground-counter {
    padding: 10px 16px;
    font-size: 11px;
  }
  
  .counter-num {
    font-size: 16px;
  }
}
