:root{--bg:#0b1220;--card:#121b2f;--card2:#0f1830;--txt:#fff;--muted:rgba(255,255,255,.75);--bdr:rgba(255,255,255,.10);--red:#e31922;--red2:#ff3b44;--shadow:0 14px 34px rgba(0,0,0,.35)}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto;background:radial-gradient(1200px 600px at 20% -10%, rgba(227,25,34,.28), transparent 60%),var(--bg);color:var(--txt)}
.wrap{width:min(720px,94vw);margin:18px auto 40px}
.hdr{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.logo{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(180deg,var(--red2),var(--red));border:1px solid rgba(255,255,255,.12);box-shadow:var(--shadow)}
h1{font-size:18px;margin:0}
.hdr p{margin:4px 0 0;color:var(--muted);font-size:13px}
.stepsBar{display:flex;align-items:center;gap:10px;margin:12px 0 0}
.stepDot{width:32px;height:32px;border-radius:999px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);color:rgba(255,255,255,.8);font-weight:900;font-size:13px}
.stepDot.active{background:linear-gradient(180deg,var(--red2),var(--red));border-color:rgba(255,255,255,.18);box-shadow:var(--shadow)}
.stepLine{flex:1;height:2px;background:rgba(255,255,255,.10)}
.card{background:rgba(18,27,47,.88);border:1px solid var(--bdr);border-radius:18px;padding:14px;margin-top:12px;box-shadow:var(--shadow);backdrop-filter:blur(8px)}
.card h2{margin:0 0 10px;font-size:16px}
.grid{display:grid;grid-template-columns:1fr;gap:10px}
label{font-size:13px;color:var(--muted)}
input,select{width:100%;margin-top:6px;padding:12px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:var(--card2);color:#fff;outline:none}
.step{display:none;transform:translateY(10px);opacity:0;transition:opacity .18s ease,transform .18s ease}
.step.active{display:block;transform:translateY(0);opacity:1}
.stepTop{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.btn{width:100%;margin-top:12px;padding:12px;border-radius:14px;border:none;background:linear-gradient(180deg,var(--red2),var(--red));color:#fff;font-weight:900;cursor:pointer;box-shadow:var(--shadow);display:flex;gap:8px;align-items:center;justify-content:center}
.btn:disabled{opacity:.65;cursor:not-allowed}
.btn.ghost{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);box-shadow:none}
.btn.small{width:auto;padding:10px 12px;margin-top:0;border-radius:12px;font-weight:800}
.msg{margin-top:10px;font-size:13px}
.msg.ok{color:#9dffb1}
.msg.bad{color:#ff9aa0}
.muted{color:var(--muted);font-size:13px;margin:0 0 10px}
.hidden{display:none}
.dev{margin-top:8px;color:rgba(255,255,255,.7);font-size:12px}
.otpWrap{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:10px}
.otpBox{height:54px;text-align:center;font-size:20px;font-weight:900;border-radius:16px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.20)}
.otpBox:focus{border-color:rgba(255,255,255,.35)}
.resendRow{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:10px}
.resendRow .muted{margin:0}
.uploader{display:flex;flex-direction:column;gap:10px}
.drop{border:1px dashed rgba(255,255,255,.18);background:rgba(255,255,255,.04);border-radius:18px;padding:14px;display:flex;gap:10px;align-items:center;justify-content:space-between}
.drop.pro{border-style:solid;border-color:rgba(255,255,255,.10);background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03))}
.dropLeft{display:flex;gap:12px;align-items:center}
.dropIcon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:rgba(227,25,34,.14);border:1px solid rgba(227,25,34,.28);color:#fff}
.dropTitle{font-weight:900}
.dropHint{font-size:12px;color:var(--muted);margin-top:2px}
.fileCard{border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.18);border-radius:18px;padding:12px}
.fileRow{display:flex;align-items:center;justify-content:space-between;gap:10px}
.fileName{font-weight:900}
.fileSub{font-size:12px;color:var(--muted);margin-top:2px}
.preview{width:100%;margin-top:10px;border-radius:14px;background:#000;max-height:56vh}
.progress{height:12px;border-radius:999px;background:rgba(255,255,255,.10);overflow:hidden;margin-top:10px}
.bar{height:100%;width:0%;background:linear-gradient(90deg,var(--red),rgba(255,255,255,.35))}
.prow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.prow .pct{font-size:12px;color:var(--muted)}
.ft{margin-top:16px;text-align:center}
.ft a{color:rgba(255,255,255,.75);text-decoration:none;font-size:13px}
@media (min-width:680px){.grid{grid-template-columns:1fr 1fr}}

/* Success step */
.successCard{
  margin-top:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  border-radius:18px;
  padding:12px;
  display:flex;
  gap:12px;
  align-items:center;
}
.successIcon{
  width:44px;height:44px;border-radius:16px;
  display:grid;place-items:center;
  background:rgba(227,25,34,.14);
  border:1px solid rgba(227,25,34,.28);
}
.successTitle{font-weight:900}
.successHint{color:var(--muted); font-size:12px; margin-top:2px}


/* Guide modal */
.hdrActions{margin-top:10px}
.modal.hidden{display:none}
.modal{position:fixed;inset:0;z-index:60}
.modalOverlay{position:absolute;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(3px)}
.modalCard{
  position:relative;
  width:min(760px,92vw);
  max-height:86vh;
  margin:7vh auto;
  background:rgba(18,27,47,.92);
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  box-shadow:0 18px 50px rgba(0,0,0,.55);
  overflow:hidden;
}
.modalHead{
  padding:14px 14px 10px;
  display:flex;align-items:flex-start;justify-content:space-between;gap:10px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.modalKicker{font-size:12px;color:rgba(255,255,255,.75)}
.modalHead h3{margin:4px 0 0;font-size:16px}
.iconBtn{
  width:40px;height:40px;border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  color:#fff;cursor:pointer;
}
.iconBtn:hover{background:rgba(255,255,255,.12)}
.modalBody{padding:12px 14px; overflow:auto; max-height:62vh}
.modalFoot{
  padding:12px 14px;
  border-top:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.18));
}
.guideGrid{display:grid;grid-template-columns:1fr;gap:10px}
@media (min-width:680px){.guideGrid{grid-template-columns:1fr 1fr}}
.gCard{
  display:flex;gap:12px;align-items:flex-start;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.16);
  border-radius:18px;
  padding:12px;
}
.gNum{
  width:38px;height:38px;border-radius:14px;
  display:grid;place-items:center;
  background:rgba(227,25,34,.14);
  border:1px solid rgba(227,25,34,.28);
  font-weight:900;
}
.gTitle{font-weight:900;margin-bottom:6px}
.gList{margin:0;padding:0 18px 0 0;color:rgba(255,255,255,.80);font-size:13px;line-height:1.7}
.gList li{margin:0 0 4px}
.guideNote{
  margin-top:12px;
  border:1px dashed rgba(255,255,255,.18);
  background:rgba(255,255,255,.05);
  border-radius:18px;
  padding:12px;
  display:flex;gap:10px;align-items:flex-start;
}
.noteIcon{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}
.noteTitle{font-weight:900}
.noteText{color:rgba(255,255,255,.78);font-size:13px;margin-top:2px}
