/* ==================== PACK UPLOAD WIZARD ==================== */
/* Full-screen modal wizard for creating sample packs */

/* ==================== WIZARD BACKDROP & CONTAINER ==================== */
.pack-wizard-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pack-wizard-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.pack-wizard {
  width: 95%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--game-bg-panel, #13131c);
  border: 2px solid var(--game-gold, #d4af37);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 0 60px rgba(212, 175, 55, 0.2),
    0 25px 50px rgba(0, 0, 0, 0.5);
}

.pack-wizard-backdrop.active .pack-wizard {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ==================== WIZARD HEADER ==================== */
.wizard-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--game-bg-dark, #0c0c12), var(--game-bg-panel, #13131c));
  border-bottom: 1px solid var(--game-border, #2a2a3a);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wizard-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wizard-title-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 10px var(--game-gold, #d4af37));
}

.wizard-title h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--game-gold, #d4af37);
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.wizard-close {
  width: 40px;
  height: 40px;
  background: var(--game-bg-slot, #1a1a26);
  border: 1px solid var(--game-border, #2a2a3a);
  border-radius: 50%;
  color: var(--game-text-dim, #6b7280);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-close:hover {
  background: var(--rarity-mythic, #ef4444);
  border-color: var(--rarity-mythic, #ef4444);
  color: white;
}

/* ==================== STEP INDICATOR ==================== */
.wizard-steps {
  padding: 16px 24px;
  background: var(--game-bg-slot, #1a1a26);
  border-bottom: 1px solid var(--game-border, #2a2a3a);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
}

.wizard-step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wizard-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--game-bg-dark, #0c0c12);
  border: 2px solid var(--game-border, #2a2a3a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--game-text-dim, #6b7280);
  transition: all 0.3s ease;
  cursor: pointer;
}

.wizard-step-dot.active {
  background: var(--game-gold, #d4af37);
  border-color: var(--game-gold, #d4af37);
  color: var(--game-bg-dark, #0c0c12);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  transform: scale(1.1);
}

.wizard-step-dot.completed {
  background: var(--rarity-uncommon, #22c55e);
  border-color: var(--rarity-uncommon, #22c55e);
  color: white;
}

.wizard-step-dot.completed::after {
  content: '✓';
}

.wizard-step-line {
  width: 40px;
  height: 2px;
  background: var(--game-border, #2a2a3a);
  transition: background 0.3s ease;
}

.wizard-step-line.completed {
  background: var(--rarity-uncommon, #22c55e);
}

.wizard-step-label {
  font-size: 10px;
  color: var(--game-text-dim, #6b7280);
  font-family: 'Space Mono', monospace;
  margin-top: 4px;
  text-align: center;
}

.wizard-step-indicator.active .wizard-step-label {
  color: var(--game-gold, #d4af37);
}

/* ==================== WIZARD CONTENT ==================== */
.wizard-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.wizard-content::-webkit-scrollbar {
  width: 6px;
}

.wizard-content::-webkit-scrollbar-track {
  background: var(--game-bg-dark, #0c0c12);
}

.wizard-content::-webkit-scrollbar-thumb {
  background: var(--game-border, #2a2a3a);
  border-radius: 3px;
}

.wizard-step-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.wizard-step-content.active {
  display: block;
}

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

/* ==================== STEP 1: FILE UPLOAD ==================== */
.upload-dropzone {
  border: 2px dashed var(--game-border, #2a2a3a);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: var(--game-bg-slot, #1a1a26);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--game-gold, #d4af37);
  background: rgba(212, 175, 55, 0.05);
  box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.1);
}

.upload-dropzone.dragover {
  transform: scale(1.02);
}

.dropzone-icon {
  font-size: 64px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

.dropzone-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--game-text, #e5e5e5);
  margin: 0 0 8px 0;
}

.dropzone-subtitle {
  font-size: 13px;
  color: var(--game-text-dim, #6b7280);
  margin: 0 0 16px 0;
}

.dropzone-formats {
  font-size: 11px;
  color: var(--game-text-dim, #6b7280);
  font-family: 'Space Mono', monospace;
  opacity: 0.7;
}

/* Hidden file input */
.upload-input {
  display: none;
}

/* File List */
.upload-file-list {
  margin-top: 24px;
}

.upload-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--game-bg-slot, #1a1a26);
  border: 1px solid var(--game-border, #2a2a3a);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.upload-file-item:hover {
  border-color: var(--game-border-hover, #3a3a4a);
}

.upload-file-item.analyzing {
  border-color: var(--game-gold, #d4af37);
  animation: analyzing-pulse 1.5s ease infinite;
}

@keyframes analyzing-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.3); }
  50% { box-shadow: 0 0 15px 5px rgba(212, 175, 55, 0.2); }
}

.upload-file-item.complete {
  border-color: var(--rarity-uncommon, #22c55e);
}

.upload-file-item.error {
  border-color: var(--rarity-mythic, #ef4444);
}

.file-icon {
  font-size: 24px;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 13px;
  color: var(--game-text, #e5e5e5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.file-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--game-text-dim, #6b7280);
  font-family: 'Space Mono', monospace;
}

.file-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.file-meta-item.detected {
  color: var(--game-gold, #d4af37);
}

.file-progress {
  width: 100%;
  height: 4px;
  background: var(--game-bg-dark, #0c0c12);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}

.file-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--game-gold, #d4af37), var(--game-gold-bright, #ffd700));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.file-actions {
  display: flex;
  gap: 8px;
}

.file-remove-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--game-border, #2a2a3a);
  border-radius: 6px;
  color: var(--game-text-dim, #6b7280);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.file-remove-btn:hover {
  background: var(--rarity-mythic, #ef4444);
  border-color: var(--rarity-mythic, #ef4444);
  color: white;
}

/* ==================== STEP 2: PACK DETAILS ==================== */
.pack-details-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--game-text, #e5e5e5);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-label-icon {
  font-size: 14px;
}

.form-label .optional {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--game-text-dim, #6b7280);
  font-weight: normal;
}

.form-input,
.form-textarea,
.form-select {
  padding: 14px 16px;
  background: var(--game-bg-slot, #1a1a26);
  border: 2px solid var(--game-border, #2a2a3a);
  border-radius: 10px;
  color: var(--game-text, #e5e5e5);
  font-size: 14px;
  font-family: 'Space Mono', monospace;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--game-gold, #d4af37);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--game-text-dim, #6b7280);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 44px;
}

/* Tags Input */
.tags-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: var(--game-bg-slot, #1a1a26);
  border: 2px solid var(--game-border, #2a2a3a);
  border-radius: 10px;
  min-height: 50px;
  cursor: text;
  transition: all 0.2s ease;
}

.tags-input-container:focus-within {
  border-color: var(--game-gold, #d4af37);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.tag-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--game-bg-dark, #0c0c12);
  border: 1px solid var(--game-gold, #d4af37);
  border-radius: 20px;
  font-size: 12px;
  color: var(--game-gold, #d4af37);
  font-family: 'Space Mono', monospace;
}

.tag-chip.suggested {
  background: rgba(212, 175, 55, 0.15);
  border-style: dashed;
  animation: suggested-pulse 2s ease infinite;
}

@keyframes suggested-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.tag-remove {
  background: none;
  border: none;
  color: var(--game-text-dim, #6b7280);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  line-height: 1;
}

.tag-remove:hover {
  color: var(--rarity-mythic, #ef4444);
}

.tags-input {
  flex: 1;
  min-width: 100px;
  background: transparent;
  border: none;
  color: var(--game-text, #e5e5e5);
  font-size: 13px;
  font-family: 'Space Mono', monospace;
  outline: none;
}

.tags-input::placeholder {
  color: var(--game-text-dim, #6b7280);
}

/* Auto-detected Section */
.auto-detected-section {
  margin-top: 24px;
  padding: 16px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px dashed var(--game-gold, #d4af37);
  border-radius: 12px;
}

.auto-detected-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--game-gold, #d4af37);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detected-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.detected-stat {
  padding: 12px;
  background: var(--game-bg-slot, #1a1a26);
  border-radius: 8px;
  text-align: center;
}

.detected-stat-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: var(--game-gold, #d4af37);
  margin-bottom: 4px;
}

.detected-stat-label {
  font-size: 10px;
  color: var(--game-text-dim, #6b7280);
  text-transform: uppercase;
}

/* ==================== STEP 3: COVER ART ==================== */
.cover-art-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cover-option {
  padding: 20px;
  background: var(--game-bg-slot, #1a1a26);
  border: 2px solid var(--game-border, #2a2a3a);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cover-option:hover {
  border-color: var(--game-border-hover, #3a3a4a);
}

.cover-option.selected {
  border-color: var(--game-gold, #d4af37);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.cover-option-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--game-text, #e5e5e5);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Upload Custom Cover */
.cover-upload-area {
  aspect-ratio: 1;
  border: 2px dashed var(--game-border, #2a2a3a);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  overflow: hidden;
  position: relative;
}

.cover-upload-area:hover {
  border-color: var(--game-gold, #d4af37);
}

.cover-upload-area.has-image {
  border: none;
}

.cover-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-upload-icon {
  font-size: 48px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.cover-upload-text {
  font-size: 12px;
  color: var(--game-text-dim, #6b7280);
}

.cover-change-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cover-upload-area:hover .cover-change-overlay {
  opacity: 1;
}

/* Template Gallery */
.template-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.template-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.template-item:hover {
  transform: scale(1.05);
  border-color: var(--game-border-hover, #3a3a4a);
}

.template-item.selected {
  border-color: var(--game-gold, #d4af37);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.template-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  font-size: 9px;
  color: white;
  text-align: center;
  font-family: 'Space Mono', monospace;
}

/* Cover Preview */
.cover-final-preview {
  margin-top: 24px;
  text-align: center;
}

.cover-final-preview-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--game-text-dim, #6b7280);
  margin-bottom: 12px;
}

.cover-final-preview-img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid var(--game-gold, #d4af37);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

/* ==================== STEP 4: PRICING ==================== */
.pricing-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.pricing-option {
  padding: 24px;
  background: var(--game-bg-slot, #1a1a26);
  border: 2px solid var(--game-border, #2a2a3a);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.pricing-option:hover {
  border-color: var(--game-border-hover, #3a3a4a);
}

.pricing-option.selected {
  border-color: var(--game-gold, #d4af37);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.pricing-option-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.pricing-option-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--game-text, #e5e5e5);
  margin-bottom: 8px;
}

.pricing-option-desc {
  font-size: 12px;
  color: var(--game-text-dim, #6b7280);
}

/* Price Input */
.price-input-section {
  padding: 20px;
  background: var(--game-bg-slot, #1a1a26);
  border: 1px solid var(--game-border, #2a2a3a);
  border-radius: 12px;
  display: none;
}

.price-input-section.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.price-input-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.price-input-label {
  font-size: 24px;
}

.price-input-field {
  flex: 1;
  max-width: 200px;
}

.price-input-field input {
  width: 100%;
  padding: 16px 20px;
  background: var(--game-bg-dark, #0c0c12);
  border: 2px solid var(--game-gold, #d4af37);
  border-radius: 10px;
  color: var(--game-gold, #d4af37);
  font-family: 'Press Start 2P', monospace;
  font-size: 24px;
  text-align: center;
}

.price-input-field input:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.price-conversion {
  font-size: 14px;
  color: var(--game-text-dim, #6b7280);
  font-family: 'Space Mono', monospace;
}

.price-tiers {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.price-tier-btn {
  padding: 8px 16px;
  background: var(--game-bg-dark, #0c0c12);
  border: 1px solid var(--game-border, #2a2a3a);
  border-radius: 8px;
  color: var(--game-text-dim, #6b7280);
  font-size: 12px;
  font-family: 'Space Mono', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}

.price-tier-btn:hover {
  border-color: var(--game-gold, #d4af37);
  color: var(--game-gold, #d4af37);
}

/* ==================== STEP 5: REVIEW ==================== */
.review-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.review-cover {
  position: sticky;
  top: 0;
}

.review-cover-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  object-fit: cover;
  border: 3px solid var(--game-gold, #d4af37);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.review-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-item {
  padding: 16px;
  background: var(--game-bg-slot, #1a1a26);
  border: 1px solid var(--game-border, #2a2a3a);
  border-radius: 10px;
}

.review-item-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--game-text-dim, #6b7280);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.review-item-value {
  font-size: 16px;
  color: var(--game-text, #e5e5e5);
}

.review-item-value.price {
  font-family: 'Press Start 2P', monospace;
  color: var(--game-gold, #d4af37);
}

.review-item-value.free {
  color: var(--rarity-uncommon, #22c55e);
}

.review-files-list {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--game-bg-dark, #0c0c12);
  border-radius: 6px;
  font-size: 12px;
  color: var(--game-text, #e5e5e5);
}

.review-file-icon {
  font-size: 14px;
}

.review-file-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-file-meta {
  font-size: 10px;
  color: var(--game-text-dim, #6b7280);
  font-family: 'Space Mono', monospace;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-tag {
  padding: 6px 12px;
  background: var(--game-bg-dark, #0c0c12);
  border-radius: 20px;
  font-size: 11px;
  color: var(--game-text, #e5e5e5);
  font-family: 'Space Mono', monospace;
}

/* ==================== UPLOAD PROGRESS OVERLAY ==================== */
.upload-progress-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 18, 0.95);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 24px;
}

.upload-progress-overlay.active {
  display: flex;
}

.upload-progress-icon {
  font-size: 64px;
  margin-bottom: 24px;
  animation: upload-bounce 1s ease infinite;
}

@keyframes upload-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.upload-progress-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--game-gold, #d4af37);
  margin-bottom: 8px;
  text-align: center;
}

.upload-progress-subtitle {
  font-size: 13px;
  color: var(--game-text-dim, #6b7280);
  margin-bottom: 24px;
  text-align: center;
}

.upload-progress-bar {
  width: 100%;
  max-width: 400px;
  height: 12px;
  background: var(--game-bg-slot, #1a1a26);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--game-border, #2a2a3a);
}

.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--game-gold, #d4af37), var(--game-gold-bright, #ffd700));
  border-radius: 5px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.upload-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: progress-shine 1.5s ease infinite;
}

@keyframes progress-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.upload-progress-percent {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--game-text, #e5e5e5);
  margin-top: 12px;
}

.upload-progress-status {
  font-size: 12px;
  color: var(--game-text-dim, #6b7280);
  margin-top: 8px;
  font-family: 'Space Mono', monospace;
}

/* ==================== SUCCESS CELEBRATION ==================== */
.upload-success-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 18, 0.98);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 11;
  padding: 24px;
}

.upload-success-overlay.active {
  display: flex;
  animation: successFadeIn 0.5s ease;
}

@keyframes successFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.success-icon {
  font-size: 80px;
  margin-bottom: 24px;
  animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.success-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  color: var(--rarity-uncommon, #22c55e);
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
  animation: successGlow 1.5s ease infinite;
}

@keyframes successGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(34, 197, 94, 0.5); }
  50% { text-shadow: 0 0 40px rgba(34, 197, 94, 0.8); }
}

.success-message {
  font-size: 14px;
  color: var(--game-text-dim, #6b7280);
  margin-bottom: 32px;
  text-align: center;
}

.success-pack-preview {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  border: 3px solid var(--rarity-uncommon, #22c55e);
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.4);
  object-fit: cover;
  margin-bottom: 32px;
  animation: successFloat 3s ease-in-out infinite;
}

@keyframes successFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.success-actions {
  display: flex;
  gap: 16px;
}

/* Confetti animation */
.confetti-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0;
}

/* ==================== WIZARD FOOTER ==================== */
.wizard-footer {
  padding: 20px 24px;
  background: var(--game-bg-panel, #13131c);
  border-top: 1px solid var(--game-border, #2a2a3a);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wizard-btn {
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid transparent;
}

.wizard-btn.secondary {
  background: var(--game-bg-slot, #1a1a26);
  border-color: var(--game-border, #2a2a3a);
  color: var(--game-text, #e5e5e5);
}

.wizard-btn.secondary:hover {
  border-color: var(--game-gold, #d4af37);
  color: var(--game-gold, #d4af37);
}

.wizard-btn.primary {
  background: linear-gradient(135deg, var(--game-gold, #d4af37), var(--game-gold-bright, #ffd700));
  color: var(--game-bg-dark, #0c0c12);
}

.wizard-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.wizard-btn.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.wizard-btn.success {
  background: linear-gradient(135deg, var(--rarity-uncommon, #22c55e), #16a34a);
  color: white;
}

/* ==================== ERROR STATE ==================== */
.wizard-error {
  padding: 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--rarity-mythic, #ef4444);
  border-radius: 10px;
  margin-bottom: 16px;
  display: none;
}

.wizard-error.visible {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: shakeError 0.5s ease;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.wizard-error-icon {
  font-size: 24px;
}

.wizard-error-text {
  flex: 1;
  font-size: 13px;
  color: var(--rarity-mythic, #ef4444);
}

.wizard-error-retry {
  padding: 8px 16px;
  background: var(--rarity-mythic, #ef4444);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 12px;
  cursor: pointer;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .pack-wizard {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
  }

  .wizard-header {
    padding: 16px;
  }

  .wizard-title h2 {
    font-size: 10px;
  }

  .wizard-steps {
    padding: 12px 16px;
  }

  .wizard-step-dot {
    width: 28px;
    height: 28px;
    font-size: 9px;
  }

  .wizard-step-line {
    width: 20px;
  }

  .wizard-content {
    padding: 16px;
  }

  .cover-art-section {
    grid-template-columns: 1fr;
  }

  .pricing-options {
    grid-template-columns: 1fr;
  }

  .review-section {
    grid-template-columns: 1fr;
  }

  .review-cover {
    position: static;
  }

  .review-cover-img {
    max-width: 200px;
    margin: 0 auto;
  }

  .wizard-footer {
    padding: 16px;
  }

  .wizard-btn {
    padding: 12px 20px;
    font-size: 12px;
  }

  .success-actions {
    flex-direction: column;
    width: 100%;
  }

  .success-actions .wizard-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==================== Ownership Confirmation Gate (Step 5) ==================== */
.pack-ownership-gate {
  background: rgba(0, 255, 245, 0.03);
  border: 1px solid rgba(0, 255, 245, 0.15);
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.pack-ownership-header {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #00fff5;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.pack-ownership-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 14px;
}

.pack-ownership-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.pack-ownership-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid rgba(0, 255, 245, 0.3);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.3);
  margin-top: 2px;
  cursor: pointer;
  position: relative;
}

.pack-ownership-check input[type="checkbox"]:checked {
  background: rgba(0, 255, 245, 0.15);
  border-color: #00fff5;
}

.pack-ownership-check input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: -1px;
  left: 2px;
  font-size: 12px;
  color: #00fff5;
}

.pack-ownership-link {
  color: #00fff5;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 245, 0.3);
}

.pack-ownership-link:hover {
  border-bottom-color: #00fff5;
}
