* { box-sizing: border-box; }

:root {
  --bg: #0b0d14;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f2f3f7;
  --muted: #8b90a3;
  --accent1: #7c5cff;
  --accent2: #4fd1ff;
  --accent3: #ff6fb5;
  --success: #3ddc84;
  --danger: #ff5d6c;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(124, 92, 255, 0.35), transparent 60%),
    radial-gradient(500px circle at 85% 15%, rgba(79, 209, 255, 0.25), transparent 60%),
    radial-gradient(700px circle at 50% 100%, rgba(255, 111, 181, 0.18), transparent 60%);
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.08); }
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.icon-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.6);
}

.icon-badge svg {
  width: 26px;
  height: 26px;
}

h1 {
  font-size: 1.5rem;
  font-weight: 650;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.steps {
  color: var(--muted);
  margin: 0 0 28px;
  padding: 0;
  font-size: 0.95rem;
  list-style: none;
  counter-reset: step;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.steps li {
  counter-increment: step;
  padding-left: 22px;
  position: relative;
}

.steps li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-weight: 600;
}

#dropzone {
  display: block;
  cursor: pointer;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.35), rgba(79, 209, 255, 0.25));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#dropzone:hover {
  transform: translateY(-2px);
}

.dz-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-radius: 14px;
  padding: 36px 20px;
  background: #10131c;
  transition: background 0.2s ease;
}

#dropzone.drag-over .dz-content {
  background: #161b29;
}

#dropzone.drag-over {
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.4);
}

.dz-icon {
  width: 40px;
  height: 40px;
  color: var(--accent2);
  margin-bottom: 6px;
  transition: transform 0.2s ease;
}

#dropzone:hover .dz-icon {
  transform: translateY(-3px);
}

.dz-text {
  font-size: 0.98rem;
  font-weight: 500;
}

.dz-or {
  color: var(--muted);
  font-weight: 400;
}

.dz-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

#fileList {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  animation: rise 0.25s ease;
}

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

.file-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #1a1e2b;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.file-thumb svg {
  width: 18px;
  height: 18px;
}

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

.name-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.name-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  padding: 3px 6px;
  margin: -3px -6px;
}

.name-input:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.12);
}

.name-input:focus {
  outline: none;
  border-color: var(--accent2);
  background: rgba(255, 255, 255, 0.04);
}

.name-input:disabled {
  color: var(--text);
  opacity: 1;
}

.ext {
  font-size: 0.85rem;
  color: var(--muted);
  flex-shrink: 0;
  margin-right: 4px;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  flex-shrink: 0;
}

.remove-btn:hover:not(:disabled) {
  color: var(--danger);
  background: rgba(255, 255, 255, 0.06);
}

.remove-btn:disabled {
  visibility: hidden;
}

.file-row .status {
  font-size: 0.78rem;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  transition: width 0.2s ease;
  border-radius: 3px;
}

.file-row.done .bar-fill {
  background: var(--success);
}

.file-row.error .bar-fill {
  background: var(--danger);
}

.file-row.done .status { color: var(--success); }
.file-row.error .status { color: var(--danger); }

.upload-btn {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: white;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.upload-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.upload-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.file-row.done .file-thumb {
  box-shadow: 0 0 0 2px var(--success);
}

.footnote {
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 480px) {
  .card { padding: 44px 40px; }
}
