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

body {
  background: #111;
  color: #aaa;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: 480px;
  padding: 64px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.head { text-align: center; }
.head h1 { font-size: 2rem; color: #eee; letter-spacing: -0.03em; }
.head p { color: #555; font-size: 13px; margin-top: 4px; }

section { display: flex; flex-direction: column; gap: 16px; }
[hidden] { display: none !important; }

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 16px;
  border: 1px dashed #2a2a2a;
  border-radius: 10px;
  background: #141414;
  color: #777;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, color 0.15s;
}
.drop i { font-size: 32px; color: #3b9eff; }
.drop:hover, .drop.over { border-color: #3b9eff; color: #ccc; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #1e1e1e;
  background: #161616;
  color: #999;
  font: 500 13px 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover:not(:disabled) { background: #1c1c1c; color: #ddd; border-color: #2a2a2a; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.primary { background: #141a2e; border-color: #1e2a4a; color: #7a9cff; }
.btn.primary:hover:not(:disabled) { background: #19213a; color: #9bb5ff; }
.btn i { font-size: 17px; }

.step { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 11px; color: #444; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 6px; }

.copyrow { display: flex; gap: 8px; }
.copyrow input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #1e1e1e;
  background: #141414;
  color: #aaa;
  font: 12px 'Fira Code', monospace;
  outline: none;
}
.copyrow input:focus { border-color: #2a2a2a; }

.status { font-size: 12.5px; color: #777; text-align: center; min-height: 20px; }
.status.ok { color: #4ade80; }
.status.err { color: #f87171; }

.list { display: flex; flex-direction: column; gap: 8px; }
.item {
  padding: 10px 14px;
  border-radius: 8px;
  background: #161616;
  border: 1px solid #1e1e1e;
}
.item .row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.item .name { color: #ccc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .meta { color: #555; flex-shrink: 0; }
.bar { height: 4px; background: #222; border-radius: 4px; margin-top: 8px; overflow: hidden; }
.bar div { height: 100%; width: 0; background: #3b9eff; transition: width 0.1s; }
.item a { color: #4ade80; text-decoration: none; font-size: 12.5px; display: inline-block; margin-top: 6px; }

.footer { font-size: 11px; color: #333; text-align: center; }

.code {
  text-align: center;
  font: 400 2rem 'Fira Code', monospace;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  color: #7a9cff;
  background: #141a2e;
  border: 1px solid #1e2a4a;
  border-radius: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.copyrow input { text-transform: uppercase; }
#linkOut { text-transform: none; }
.or { display: flex; align-items: center; gap: 12px; color: #444; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 6px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: #1e1e1e; }
