:root{
  --bg1:#050916;
  --bg2:#071227;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.04);
  --stroke: rgba(255,255,255,.08);
  --text:#eaf0ff;
  --muted: rgba(234,240,255,.68);
  --blue:#4da3ff;
  --blue2:#2f7cff;
  --ok:#4cd964;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(77,163,255,.18), transparent 65%),
    radial-gradient(900px 500px at 80% 20%, rgba(124,58,237,.14), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

a{ color: var(--text); }
.muted{ color: var(--muted); }
.small{ font-size: 13px; }

.wrap{
  width:min(980px, 92vw);
  margin:0 auto;
  padding:18px 0 26px;
}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(14px);
  background: rgba(4,8,18,.62);
  border-bottom:1px solid var(--stroke);
}
.topbar-inner{
  width:min(980px, 92vw);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
}
.mark{
  width:34px; height:34px; border-radius:12px;
  background: linear-gradient(135deg, rgba(77,163,255,.95), rgba(124,58,237,.85));
  box-shadow: 0 12px 30px rgba(77,163,255,.20);
}
.name{ font-weight:800; letter-spacing:.2px; }
.name span{ color: rgba(234,240,255,.75); }
.actions{ display:flex; gap:10px; align-items:center; }

/* Buttons */
.btn{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding:10px 14px;
  border-radius:14px;
  text-decoration:none;
  cursor:pointer;
  font-weight:700;
}
.btn:hover{ background: rgba(255,255,255,.06); }
.btn:disabled{ opacity:.55; cursor:not-allowed; }
.btn.primary{
  border:none;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  box-shadow: 0 14px 32px rgba(77,163,255,.22);
}
.btn.primary:hover{ filter: brightness(1.05); }
.btn.ghost{
  background: transparent;
}

/* Cards */
.card{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: 22px;
  padding:16px;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.card + .card{ margin-top:14px; }
.card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}
.card-head h2{ margin:0; font-size:18px; }

.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: rgba(234,240,255,.78);
}

.hr{
  height:1px;
  background: var(--stroke);
  margin:14px 0;
}

/* Hero */
.hero{ margin-top:14px; }
.hero-card{
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(77,163,255,.18), transparent 60%),
    radial-gradient(600px 260px at 80% 20%, rgba(124,58,237,.16), transparent 60%),
    var(--card);
  border:1px solid var(--stroke);
  border-radius: 26px;
  padding:18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.hero-inner h1{ margin:10px 0 8px; font-size:34px; line-height:1.12; }
.hero-pill{
  display:inline-block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(77,163,255,.30);
  background: rgba(77,163,255,.10);
  color: rgba(234,240,255,.85);
}

/* KPI */
.kpis{
  display:flex;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}
.kpi{
  min-width:140px;
  background: var(--card2);
  border:1px solid var(--stroke);
  padding:12px;
  border-radius:18px;
}
.kpi .num{ font-size:18px; font-weight:900; }
.kpi .lbl{ font-size:12px; color: rgba(234,240,255,.68); }

/* Form */
.row{ display:flex; gap:10px; }
.gap{ gap:10px; }
.inp{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(10,14,25,.45);
  color: var(--text);
  outline:none;
}
.inp::placeholder{ color: rgba(234,240,255,.55); }

/* Dropzone */
.drop{
  display:block;
  padding:16px;
  border-radius: 20px;
  border:1px dashed rgba(234,240,255,.22);
  background: rgba(255,255,255,.03);
  cursor:pointer;
}
.drop:hover{ background: rgba(255,255,255,.05); }
.drop input{ display:block; margin-top:10px; }
.drop .icon{ font-size:18px; opacity:.95; }
.drop .title{ font-weight:900; margin-top:6px; }
.drop .sub{ margin-top:4px; }

/* Progress */
.progress .track{
  height:10px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--stroke);
  border-radius:999px;
  overflow:hidden;
}
.progress .fill{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, var(--blue), rgba(124,58,237,.9));
}

/* Result box */
.result{
  margin-top:12px;
  display:none;
  padding:12px;
  border-radius:18px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
}
.result.premium{
  border-color: rgba(77,163,255,.28);
  background: rgba(77,163,255,.10);
}

/* File list per-file */
.file-list{ margin-top:12px; }
.file-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-radius:16px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--stroke);
  margin-bottom:8px;
  font-size:14px;
}
.file-item .name{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  max-width:72%;
}
.file-item .status{ font-weight:900; }
.status.wait{ color: rgba(234,240,255,.65); }
.status.up{ color: var(--blue); }
.status.ok{ color: var(--ok); }

/* List items */
.list{ margin-top:8px; }
.item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:18px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  margin-bottom:10px;
}
.item .name{ font-weight:900; }
.item .sub{ color: rgba(234,240,255,.60); font-size:12px; margin-top:4px; }

/* Folder title */
.file-title{ margin:8px 0 6px; font-size:26px; }
.file-meta{ color: rgba(234,240,255,.65); font-size:13px; }

/* Footer */
.footer{
  margin-top:14px;
  text-align:center;
  color: rgba(234,240,255,.58);
}

/* Mobile */
@media (max-width:520px){
  .hero-inner h1{ font-size:28px; }
  .kpi{ min-width: 44%; flex:1; }
  .row{ flex-direction:column; }
  .file-item .name{ max-width:64%; }
}
.pill{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  font-size:12px;
  font-weight:800;
  color:rgba(234,240,255,.80);
}