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

:root {
  --bg: #0f1220;
  --panel: #1a1f35;
  --panel2: #222842;
  --accent: #00e0c6;
  --accent2: #3a7bd5;
  --text: #eef1fb;
  --muted: #9aa3c0;
  --danger: #ff5c7a;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #222a52 0%, var(--bg) 55%) fixed;
  color: var(--text);
  min-height: 100vh;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--accent);
}

.tag {
  color: var(--muted);
  font-size: 13px;
}

.drop {
  background: var(--panel);
  border: 2px dashed #3a4170;
  border-radius: 18px;
  padding: 48px 24px;
  text-align: center;
  transition: border-color .2s, background .2s, transform .2s;
  cursor: pointer;
}

.drop.over {
  border-color: var(--accent);
  background: var(--panel2);
  transform: scale(1.01);
}

.drop h1 {
  font-size: 24px;
  margin: 14px 0 6px;
}

.drop p {
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 14px;
}

.icon {
  width: 64px;
  height: 64px;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  background: var(--panel2);
  transition: filter .15s, transform .1s;
  text-decoration: none;
  display: inline-block;
}

.btn:hover { filter: brightness(1.2); }
.btn:active { transform: translateY(1px); }

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #05131f;
}

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

.card {
  background: var(--panel);
  border-radius: 16px;
  padding: 24px;
  margin-top: 22px;
  border: 1px solid #262d4e;
}

.hidden { display: none !important; }

.bar {
  height: 12px;
  background: var(--panel2);
  border-radius: 8px;
  overflow: hidden;
}

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

#status, .hint {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.filelist {
  margin-top: 14px;
  max-height: 240px;
  overflow: auto;
}

.file-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--panel2);
  margin-bottom: 6px;
  font-size: 13px;
}

.file-item .nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item .sz { color: var(--muted); flex-shrink: 0; }

.done {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.linkrow {
  display: flex;
  gap: 10px;
  align-items: center;
}

.linkrow input {
  flex: 1;
  background: var(--panel2);
  border: 1px solid #313a68;
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  min-width: 0;
}

.linkrow input:focus {
  outline: none;
  border-color: var(--accent);
}

.error-box {
  background: rgba(255, 92, 122, .12);
  border: 1px solid rgba(255, 92, 122, .4);
  color: var(--danger);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 14px;
  font-size: 14px;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 34px;
}
