.upload-header {
  margin-bottom: 2rem;
}
.upload-header h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}
.upload-header p {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.upload-form { display: flex; flex-direction: column; gap: 1.25rem; }

.upload-section {
  background: #141414;
  border: 1px solid #2d2d2d;
  border-radius: 1rem;
  padding: 1.25rem;
}
.upload-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 1.25rem;
}

.upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .upload-row { grid-template-columns: 1fr; } }

.upload-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.875rem; }
.upload-field:last-child { margin-bottom: 0; }
.upload-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #d1d5db;
}
.req { color: #ef4444; margin-left: 2px; }
.upload-input {
  background: #0f0f0f;
  border: 1px solid #2d2d2d;
  border-radius: 0.625rem;
  padding: 0.625rem 0.875rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.upload-input:focus { border-color: #4b5563; }
.upload-input::placeholder { color: #374151; }
.upload-textarea { resize: vertical; min-height: 60px; }
.upload-code {
  font-family: 'Fira Code', Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  min-height: 200px;
  resize: vertical;
}

.upload-dropzone {
  border: 2px dashed #2d2d2d;
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.upload-dropzone:hover { border-color: #4b5563; background: rgba(255,255,255,0.02); }
.upload-dropzone input { display: none; }
.upload-dropzone p { color: #4b5563; font-size: 0.8125rem; margin: 0.5rem 0 0; transition: color 0.15s; }

.upload-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #374151;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0.875rem 0;
}
.upload-divider::before, .upload-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #1f1f1f;
}

.upload-info {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  color: #a5b4fc;
  line-height: 1.5;
}
.upload-info svg { flex-shrink: 0; margin-top: 1px; }
.upload-info strong { color: #c7d2fe; }

.upload-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 0.875rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.upload-submit:hover { background: #e5e7eb; }
.upload-submit:active { transform: scale(0.99); }

.upload-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #fca5a5;
  margin-bottom: 1rem;
}

.upload-success {
  text-align: center;
  padding: 3rem 1rem;
  background: #141414;
  border: 1px solid #2d2d2d;
  border-radius: 1rem;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(39,201,63,0.1);
  border: 1px solid rgba(39,201,63,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #27c93f;
}
.upload-success h2 { font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0 0 0.75rem; letter-spacing: -0.02em; }
.upload-success p { color: #6b7280; font-size: 0.9rem; line-height: 1.6; max-width: 380px; margin: 0 auto; }

.upload-btn-primary {
  padding: 0.625rem 1.375rem;
  background: #fff;
  color: #000;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.15s;
}
.upload-btn-primary:hover { background: #e5e7eb; }
.upload-btn-outline {
  padding: 0.625rem 1.375rem;
  background: transparent;
  color: #9ca3af;
  border: 1px solid #2d2d2d;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.15s;
}
.upload-btn-outline:hover { border-color: #4b5563; color: #fff; }

/* ─── CATEGORY CHIPS ─── */
.up-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.up-cat-chip {
  background: #1a1a1a;
  border: 1px solid #2d2d2d;
  border-radius: 20px;
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  letter-spacing: 0.03em;
}
.up-cat-chip:hover { background: #242424; color: #d1d5db; border-color: #4b5563; }
.up-cat-chip.active { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.5); color: #a5b4fc; }
