:root {
  --bg: #0b1020;
  --bg-2: #0f1730;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #eaf0ff;
  --muted: #95a3c4;
  --accent: #6ee7b7;
  --accent-2: #38bdf8;
  --violet: #a78bfa;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #1b2550 0%, transparent 60%),
    radial-gradient(900px 500px at 0% 0%, #102a3f 0%, transparent 55%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 22px 26px;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--muted);
  margin-bottom: 22px;
}

.logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-2), var(--violet));
  color: #061018;
  font-size: 20px;
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.05;
  margin: 0 0 16px;
  font-weight: 800;
  background: linear-gradient(120deg, #fff 20%, var(--accent) 60%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 640px;
}

main {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 22px 60px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  margin-bottom: 22px;
}

.dropzone {
  border: 1.8px dashed rgba(110, 231, 183, 0.4);
  border-radius: 14px;
  padding: 46px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  background: rgba(110, 231, 183, 0.03);
}

.dropzone:hover,
.dropzone:focus,
.dropzone.drag {
  border-color: var(--accent);
  background: rgba(110, 231, 183, 0.09);
  transform: translateY(-1px);
  outline: none;
}

.dropzone-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.dropzone-title {
  font-weight: 600;
  font-size: 18px;
  margin: 6px 0 4px;
}

.dropzone-hint {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
}

.file-list .size {
  color: var(--muted);
  font-size: 12px;
}

.file-list button {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.btn-primary {
  width: 100%;
  margin-top: 20px;
  padding: 15px 18px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: #04121c;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 12px 30px -12px rgba(56, 189, 248, 0.6);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-ghost {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent-2);
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.progress-head h2 {
  margin: 0;
  font-size: 20px;
}

.pill {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-2);
}

.pill.done {
  background: rgba(110, 231, 183, 0.16);
  color: var(--accent);
}

.pill.fail {
  background: rgba(248, 113, 113, 0.16);
  color: var(--danger);
}

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

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.4s ease;
}

.progress-label {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 22px 0;
}

@media (max-width: 620px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 26px;
  font-weight: 800;
}

.stat-value.warn {
  color: var(--warn);
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #d7ccff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

.cat-chip b {
  color: #fff;
}

.errors {
  margin-top: 18px;
  border-top: 1px solid var(--card-border);
  padding-top: 14px;
}

.errors summary {
  cursor: pointer;
  color: var(--warn);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--card-border);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.hidden {
  display: none !important;
}

footer {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 30px 22px 50px;
}

.footer-tech {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--muted);
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.social-link:hover {
  color: var(--text);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

.footer-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: center;
  border-top: 1px solid var(--card-border);
  padding-top: 22px;
}

@media (min-width: 600px) {
  .footer-credit {
    flex-direction: row;
    text-align: left;
  }
}

.footer-author {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.footer-author-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-author-name {
  font-size: 12px;
  color: var(--muted);
  transition: color 0.18s ease;
}

.footer-author:hover .footer-author-name {
  color: var(--text);
}

.footer-cta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-cta-link {
  margin-left: 4px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.footer-cta-link:hover {
  text-decoration: underline;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--danger);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.7);
  z-index: 10;
}
