*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #1800ad;
  --blue-dark: #0e006d;
  --blue-soft: #eef0ff;
  --blue-light: #f7f8ff;
  --white: #ffffff;
  --yellow: #ffd32a;
  --text: #101828;
  --muted: #667085;
  --border: #d9ddff;
  --danger: #dc2626;
  --success-bg: #ecfdf3;
  --success-text: #027a48;
  --error-bg: #fef3f2;
  --error-text: #b42318;
}

body {
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255, 211, 42, 0.16), transparent 26%),
    linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 16px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
}

/* Header */

.header {
  text-align: center;
  color: var(--white);
  margin-bottom: 22px;
  animation: rise 0.4s ease both;
}

.logo-mark {
  width: 86px;
  height: 86px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 4px solid var(--white);
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: 31px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.7px;
}

h1 span {
  color: var(--yellow);
}

.tagline {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

/* Card */

.card {
  background: var(--white);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 26px 75px rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: rise 0.5s ease both;
}

.card-heading {
  text-align: center;
  margin-bottom: 24px;
}

.card-heading h2 {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.4px;
}

.card-heading p {
  max-width: 420px;
  margin: 7px auto 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.field {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

/* Input */

input[type="text"] {
  width: 100%;
  padding: 14px 15px;
  border: 1.5px solid var(--border);
  border-radius: 15px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--blue-light);
  outline: none;
  transition: 0.2s ease;
}

input[type="text"]::placeholder {
  color: #98a2b3;
}

input[type="text"]:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(24, 0, 173, 0.12);
}

/* Dropzone */

.dropzone {
  position: relative;
  padding: 34px 22px;
  border: 2px dashed rgba(24, 0, 173, 0.35);
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff, var(--blue-soft));
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.dropzone.has-files {
  padding: 16px 20px;
}

.dropzone.has-files .drop-icon {
  display: none;
}

.dropzone.has-files .drop-text {
  font-size: 13px;
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  color: var(--blue);
}

.drop-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.drop-text strong {
  display: block;
  font-size: 16px;
  color: var(--blue);
  font-weight: 800;
}

.drop-text span {
  display: block;
}

.drop-text small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}

/* File Panel */

.file-panel {
  display: none;
  margin-top: 14px;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
}

.file-panel.visible {
  display: block;
}

.file-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--blue);
  color: var(--white);
}

.file-panel-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.add-more-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  background: var(--white);
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.add-more-btn:hover {
  background: var(--yellow);
  color: var(--blue-dark);
}

.add-more-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-light);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  transition: 0.15s ease;
}

.file-item:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.file-icon {
  flex-shrink: 0;
  color: var(--blue);
  display: flex;
  align-items: center;
}

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

.file-name-text {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.remove-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 5px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  transition: 0.15s ease;
}

.remove-btn:hover {
  color: var(--danger);
  background: #fee4e2;
}

.file-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: #f7f8ff;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.total-size {
  font-weight: 800;
  color: var(--blue);
}

/* Progress */

.progress-wrap {
  display: none;
  margin-top: 16px;
}

.progress-wrap.visible {
  display: block;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.progress-bar-bg {
  height: 9px;
  background: var(--blue-soft);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.35s ease;
}

/* Button */

.btn {
  width: 100%;
  margin-top: 22px;
  padding: 15px;
  border: none;
  border-radius: 16px;
  background: var(--blue);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 13px 30px rgba(24, 0, 173, 0.32);
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--blue-dark);
  box-shadow: 0 17px 36px rgba(24, 0, 173, 0.40);
}

.btn:active {
  transform: scale(0.98);
}

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

.btn .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

.btn.loading .btn-label {
  display: none;
}

.btn.loading .spinner {
  display: block;
}

/* Status */

.status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.status.success {
  display: block;
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #abefc6;
}

.status.error {
  display: block;
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid #fecdca;
}

/* Footer */

.footer {
  margin-top: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.6;
}

.footer strong {
  color: var(--yellow);
}

/* Animations */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile */

@media (max-width: 520px) {
  body {
    padding: 24px 12px;
  }

  .wrapper {
    max-width: 100%;
  }

  .logo-mark {
    width: 76px;
    height: 76px;
  }

  h1 {
    font-size: 26px;
  }

  .card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .card-heading h2 {
    font-size: 21px;
  }

  .dropzone {
    padding: 28px 16px;
  }

  .file-panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .add-more-btn {
    width: 100%;
  }

  .footer {
    font-size: 12px;
  }
}