/* ==================== DIGR v2 - Main Entry Point ==================== */
/* New unified CSS architecture - Day 1 Redesign */
/* Import this file to load the entire design system */

/* ===== Core ===== */
@import './core/tokens.css';
@import './core/reset.css';
@import './core/utilities.css';

/* ===== Components ===== */
@import './components/card.css';
@import './components/button.css';
@import './components/input.css';
@import './components/modal.css';
@import './components/player.css';

/* ===== Layout ===== */
@import './layout/shell.css';
@import './layout/grid.css';
@import './layout/zones.css';

/* ===== Main Header - Always on top ===== */
header.header {
  position: sticky !important;
  top: 0 !important;
  z-index: 200 !important;
  background: rgba(5, 5, 10, 0.98) !important;
  backdrop-filter: blur(12px) !important;
  display: flex !important;
  align-items: center !important;
  padding: 8px 16px !important;
  gap: 12px !important;
}

/* Collection zone: header must be fixed (body scrolls, not a container) */
body.zone-collection header.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 500 !important;
  height: 56px !important;
}

/* Logo - fixed width on left */
.header-logo {
  flex-shrink: 0;
}

.header-logo-text {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #00ffc8;
  letter-spacing: 0.1em;
}

/* Search - takes remaining space but not all */
.header-search {
  flex: 1;
  max-width: 500px;
}

/* Right side container - bell + tier + profile pushed right */
header.header > .header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

.header-tier,
.header-profile {
  flex-shrink: 0;
}

/* Tier button styling */
.header-tier {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(0, 255, 200, 0.15), rgba(0, 200, 255, 0.1));
  border: 1px solid rgba(0, 255, 200, 0.3);
  border-radius: 20px;
  color: #00ffc8;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-tier:hover {
  background: linear-gradient(135deg, rgba(0, 255, 200, 0.25), rgba(0, 200, 255, 0.2));
  border-color: rgba(0, 255, 200, 0.5);
  transform: translateY(-1px);
}

.header-tier-icon {
  font-size: 1rem;
}

/* Steve Jobs minimal: icon only */
.header-tier-name {
  display: none;
}

/* Tier-specific colors */
.header-tier[data-tier="sonic"] {
  background: linear-gradient(135deg, rgba(58, 232, 255, 0.15), rgba(0, 200, 255, 0.1));
  border-color: rgba(58, 232, 255, 0.3);
  color: #3ae8ff;
}

.header-tier[data-tier="cosmic"] {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(200, 100, 255, 0.1));
  border-color: rgba(168, 85, 247, 0.3);
  color: #a855f7;
}

.header-tier[data-tier="temple"] {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 180, 0, 0.1));
  border-color: rgba(255, 215, 0, 0.4);
  color: #ffd700;
}

.header-tier[data-tier="founding"] {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.15));
  border-color: rgba(255, 215, 0, 0.5);
  color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

/* Professional Roman numeral styling */
.header-tier-icon {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ===== Profile Dropdown ===== */
.header-profile {
  position: relative;
}

.header-profile-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.25s ease;
  padding: 0;
}

.header-profile-btn:hover {
  border-color: rgba(0, 212, 255, 0.5);
  transform: scale(1.05);
}

.header-profile-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Tier-colored avatar rings */
.header-tier[data-tier="sonic"] ~ .header-profile .header-profile-btn,
[data-tier="sonic"] .header-profile-btn {
  border-color: #3ae8ff;
  box-shadow: 0 0 10px rgba(58, 232, 255, 0.3);
}

.header-tier[data-tier="cosmic"] ~ .header-profile .header-profile-btn,
[data-tier="cosmic"] .header-profile-btn {
  border-color: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.header-tier[data-tier="temple"] ~ .header-profile .header-profile-btn,
[data-tier="temple"] .header-profile-btn {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.header-tier[data-tier="founding"] ~ .header-profile .header-profile-btn,
[data-tier="founding"] .header-profile-btn {
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

/* Dropdown */
/* ===== Enhanced Profile Dropdown ===== */
.header-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  background: rgba(12, 12, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.95);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
}

.header-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Profile Header Section */
.dropdown-profile-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

.dropdown-avatar-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #00ffc8, #00d4ff);
  position: relative;
}

/* Tier-specific avatar rings */
.dropdown-avatar-wrapper[data-tier="founding"],
.dropdown-avatar-wrapper[data-tier="temple"] {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  animation: founderGlow 2s ease-in-out infinite;
}

.dropdown-avatar-wrapper[data-tier="cosmic"] {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.dropdown-avatar-wrapper[data-tier="sonic"] {
  background: linear-gradient(135deg, #3ae8ff, #00d4ff);
}

@keyframes founderGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 215, 0, 0.4); }
  50% { box-shadow: 0 0 24px rgba(255, 215, 0, 0.7); }
}

.dropdown-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a2e;
}

.dropdown-profile-info {
  margin-bottom: 12px;
}

.dropdown-profile-name {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.dropdown-profile-email {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Tier Badge */
.dropdown-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 255, 200, 0.1);
  border: 1px solid rgba(0, 255, 200, 0.3);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #00ffc8;
  margin-bottom: 8px;
}

.dropdown-tier-badge[data-tier="founding"],
.dropdown-tier-badge[data-tier="temple"] {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
  color: #ffd700;
}

.dropdown-tier-badge[data-tier="cosmic"] {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #a855f7;
}

.dropdown-tier-badge[data-tier="sonic"] {
  background: rgba(58, 232, 255, 0.15);
  border-color: rgba(58, 232, 255, 0.4);
  color: #3ae8ff;
}

.tier-icon {
  font-size: 0.9rem;
}

.dropdown-usage {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

#dropdown-downloads-left {
  color: #00ffc8;
  font-weight: 600;
}

/* Quick Actions Row */
.dropdown-quick-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.15s ease;
  flex: 1;
  max-width: 80px;
}

.quick-action-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
  color: #00d4ff;
  transform: translateY(-2px);
}

.quick-icon {
  font-size: 1.2rem;
}

.quick-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Menu Items */
.header-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.header-dropdown-item:hover {
  background: rgba(0, 212, 255, 0.08);
  color: #fff;
}

.header-dropdown-item:hover .item-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.item-icon {
  font-size: 1rem;
  width: 24px;
  text-align: center;
}

.item-label {
  flex: 1;
}

.item-arrow {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  opacity: 0;
  transform: translateX(0);
  transition: all 0.15s ease;
}

.signout-item:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.signin-item:hover {
  background: rgba(0, 255, 200, 0.1);
  color: #00ffc8;
}

.header-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 0;
}

/* Mobile: Dropdown opens upward */
@media (max-width: 768px) {
  .header-dropdown {
    position: fixed;
    bottom: 70px;
    top: auto;
    right: 8px;
    left: 8px;
    min-width: auto;
    transform: translateY(12px) scale(0.95);
  }
  
  .header-dropdown.is-open {
    transform: translateY(0) scale(1);
  }
}

/* ===== Discover Header - Below main header ===== */
.discover-header {
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  background: rgba(8, 8, 12, 0.98);
  backdrop-filter: blur(16px);
  z-index: 100;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==================== Unified Control Bar ==================== */
.discover-controls {
  display: flex;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.control-spacer {
  flex: 1;
  min-width: 20px;
}

/* ==================== Control Pills ==================== */
.control-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.control-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

/* Active tab pill */
.control-pill.tab-pill.is-active {
  background: linear-gradient(135deg, rgba(0, 255, 200, 0.15), rgba(0, 200, 255, 0.1));
  border-color: rgba(0, 255, 200, 0.4);
  color: #00ffc8;
}

.pill-icon {
  font-size: 13px;
}

.pill-caret {
  font-size: 8px;
  opacity: 0.6;
  transition: transform 0.2s;
}

.control-pill.is-open .pill-caret {
  transform: rotate(180deg);
}

/* Filter pill with active value */
.control-pill.filter-pill.has-value {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #a855f7;
}

/* Toggle pill (FREE) */
.control-pill.toggle-pill.is-active {
  background: linear-gradient(135deg, rgba(0, 255, 200, 0.2), rgba(0, 200, 255, 0.15));
  border-color: rgba(0, 255, 200, 0.5);
  color: #00ffc8;
}

/* ==================== Dropdowns ==================== */
.control-dropdown {
  position: absolute;
  top: 100%;
  right: 16px;
  margin-top: 4px;
  background: rgba(20, 20, 28, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  min-width: 140px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
}

.control-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Position dropdowns relative to controls */
.discover-controls {
  position: relative;
}

#genre-dropdown {
  position: absolute;
  top: 100%;
  right: 180px;
  left: auto;
}

#bpm-dropdown {
  position: absolute;
  top: 100%;
  right: 140px;
  left: auto;
}

#key-dropdown {
  position: absolute;
  top: 100%;
  right: 80px;
  left: auto;
  max-height: 300px;
  overflow-y: auto;
}

.dropdown-option {
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.dropdown-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dropdown-option.is-active {
  background: rgba(0, 255, 200, 0.1);
  color: #00ffc8;
}

/* BPM Picker */
.bpm-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.bpm-picker input {
  width: 60px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  text-align: center;
  outline: none;
  transition: all 0.2s;
  -moz-appearance: textfield;
}

/* Hide number input spinners */
.bpm-picker input::-webkit-outer-spin-button,
.bpm-picker input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bpm-picker input:focus {
  border-color: rgba(0, 255, 200, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.bpm-picker input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.bpm-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.bpm-apply {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(0, 255, 200, 0.2), rgba(0, 200, 255, 0.15));
  border: 1px solid rgba(0, 255, 200, 0.3);
  border-radius: 8px;
  color: #00ffc8;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.bpm-apply:hover {
  background: linear-gradient(135deg, rgba(0, 255, 200, 0.3), rgba(0, 200, 255, 0.25));
  transform: scale(1.05);
}

/* Only show in discover zone */
.zone-discover .discover-controls {
  display: flex !important;
}

/* Hide old elements if they somehow appear */
.discover-tabs,
.discover-filters {
  display: none !important;
}

/* Mobile: stack filters below */
@media (max-width: 640px) {
  .discover-controls {
    flex-wrap: wrap;
  }
  
  .control-spacer {
    display: none;
  }
  
  .filters-group {
    width: 100%;
    justify-content: flex-start;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 8px;
  }
  
  .control-pill {
    padding: 6px 12px;
    font-size: 10px;
  }
}

/* ==================== Featured Section ==================== */
.featured-section {
  grid-column: 1 / -1;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.featured-title {
  font-family: 'Space Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.featured-more {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.featured-more:hover {
  color: #00ffc8;
}

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

.featured-card {
  position: relative;
}

.featured-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #ff6b35, #f7931e, #ffc940);
  border-radius: 14px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.featured-card:hover::before {
  opacity: 1;
}

/* Similar Packs (for pack detail) */
.similar-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.similar-title {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1rem;
}

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

.similar-card {
  cursor: pointer;
  transition: transform 0.2s;
}

.similar-card:hover {
  transform: translateY(-4px);
}

/* Similar Packs in Modal */
#similar-packs {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#similar-packs .similar-title {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.75rem;
  font-weight: 500;
}

#similar-packs .similar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

#similar-packs .similar-card {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

#similar-packs .similar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#similar-packs .similar-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

#similar-packs .similar-info {
  padding: 0.5rem;
}

#similar-packs .similar-name {
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

#similar-packs .similar-price {
  font-size: 0.7rem;
  color: #00ffc8;
  margin-top: 0.25rem;
}

#similar-packs .loading-similar,
#similar-packs .no-similar {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  padding: 1rem;
}

@media (max-width: 600px) {
  #similar-packs .similar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== Discover Zone Grid Fix ==================== */
.zone-discover .card-space,
.zone-discover #card-space {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  padding: 1rem 1.5rem 140px !important;
  overflow-y: auto;
  overflow-x: hidden;
  position: absolute !important;
  inset: 190px 20px 80px 20px !important; /* Reduced top from 230px to show header */
  height: auto;
  margin-top: 0;
}

/* Center empty state in discover */
.zone-discover .card-space .empty-state,
.zone-discover #card-space .empty-state {
  grid-column: 1 / -1; /* Span all columns */
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: 40px;
}

/* Featured section spans full width */
.zone-discover .featured-section {
  grid-column: 1 / -1;
  margin-top: 0;
  padding-top: 0;
}

.zone-discover .featured-header {
  margin-bottom: 0.75rem;
}

.zone-discover .featured-title {
  font-size: 1.1rem;
}

/* Cards in discover zone */
.zone-discover .card {
  width: 100%;
  max-width: none;
}

@media (max-width: 600px) {
  .zone-discover .card-space,
  .zone-discover #card-space {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.75rem 1rem 140px;
  }
}

/* ===== Lab Zone - Full Visibility ===== */
.zone-lab .card-space,
.zone-lab #card-space {
  display: block !important;
  opacity: 1 !important;
  padding: 16px;
  padding-bottom: 140px;
}

/* Lab Zone Content */
.zone-lab .lab-zone {
  background: transparent;
  position: relative;
  z-index: 10;
}

.zone-lab .lab-header {
  background: rgba(20, 10, 35, 0.95) !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
  backdrop-filter: blur(8px);
}

.zone-lab .lab-title {
  color: #d8b4fe !important;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.zone-lab .lab-subtitle {
  color: #a78bfa !important;
}

/* Lab Tabs */
.zone-lab .lab-tabs {
  display: flex;
  gap: 8px;
}

.zone-lab .lab-tab {
  padding: 8px 16px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 8px;
  color: #c4b5fd;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zone-lab .lab-tab:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
}

.zone-lab .lab-tab.is-active {
  background: rgba(168, 85, 247, 0.3);
  border-color: #a855f7;
  color: #fff;
}

/* Lab Content Sections */
.zone-lab .lab-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.zone-lab .lab-section {
  background: rgba(20, 10, 35, 0.9) !important;
  border: 1px solid rgba(168, 85, 247, 0.25) !important;
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(8px);
}

/* Track Loader */
.zone-lab .track-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 20px;
}

.zone-lab .loader-dropzone {
  max-width: 500px;
  width: 100%;
  padding: 48px 32px;
  border: 2px dashed rgba(168, 85, 247, 0.6) !important;
  border-radius: 16px;
  background: rgba(30, 15, 50, 0.95) !important;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.zone-lab .loader-dropzone:hover {
  border-color: #a855f7 !important;
  background: rgba(40, 20, 65, 0.98) !important;
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.zone-lab .dropzone-icon {
  font-size: 64px;
  display: block;
  margin-bottom: 16px;
}

.zone-lab .dropzone-text h3 {
  color: #ffffff !important;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.zone-lab .dropzone-text p {
  color: #c4b5fd !important;
  font-size: 15px;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.zone-lab .loader-or {
  color: #a78bfa !important;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 8px 0;
}

.zone-lab .loader-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 400px;
}

.zone-lab .library-btn,
.zone-lab .loader-btn {
  padding: 16px 32px !important;
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.zone-lab .library-btn:hover,
.zone-lab .loader-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.5);
  background: linear-gradient(135deg, #8b5cf6, #c084fc) !important;
}

.zone-lab .loader-url {
  display: flex;
  gap: 8px;
  width: 100%;
}

.zone-lab .loader-url input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
}

.zone-lab .loader-url input::placeholder {
  color: #7c3aed;
}

.zone-lab .url-go-btn {
  padding: 12px 16px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 8px;
  color: #a855f7;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zone-lab .url-go-btn:hover {
  background: rgba(168, 85, 247, 0.3);
}
