:root{
  --bg:#0b1220;
  --card:#0f1a2e;
  --card2:#0c1628;
  --text:#eaf0ff;
  --muted:#9fb0d0;
  --line:rgba(255,255,255,.09);
  --accent:#7c5cff;
  --accent2:#22c55e;
  --warn:#f59e0b;
  --danger:#ef4444;
  --shadow: 0 10px 35px rgba(0,0,0,.35);
  --radius:18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  background:#28273c;
  color:var(--text);
}
a{color:inherit}
.mono{font-family:var(--mono)}
.wrap{
  width:min(1050px, 92vw);
  margin:26px auto 30px;
  display:grid;
  gap:18px;
}
.topbar{
  position:sticky; top:0; z-index:10;
  background:rgba(11,18,32,.72);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
}
.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:42px;height:42px;border-radius:12px;
  display:grid;place-items:center;
  background:linear-gradient(135deg, rgba(124,92,255,.9), rgba(34,197,94,.85));
  box-shadow:var(--shadow);
  font-weight:800;
}
.brand-title{font-weight:800; letter-spacing:.2px}
.brand-sub{font-size:12px;color:var(--muted)}
.nav{display:flex; gap:8px}
.nav-btn{
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:650;
}
.nav-btn.active{
  background:rgba(124,92,255,.20);
  border-color:rgba(124,92,255,.35);
}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-head{
  padding:18px 18px 12px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.02);
}
.card-head h1{
  margin:0 0 6px;
  font-size:20px;
}
.card-head p{margin:0;color:var(--muted)}
.otp-row{
  padding:18px;
  display:flex;
  gap:10px;
  align-items:center;
}
.otp-input{
  flex:0 0 180px;
  font-family:var(--mono);
  font-size:26px;
  letter-spacing:8px;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
  text-align:center;
  max-width: -webkit-fill-available;
}
.status{
  padding:0 18px 18px;
  color:var(--muted);
  min-height:18px;
}
.status.ok{color:rgba(34,197,94,.95)}
.status.warn{color:rgba(245,158,11,.95)}
.status.bad{color:rgba(239,68,68,.95)}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(124,92,255,.38);
  background:rgba(124,92,255,.18);
  color:var(--text);
  cursor:pointer;
  font-weight:750;
  text-decoration:none;
}
.btn:disabled{opacity:.5; cursor:not-allowed}
.btn-ghost{
  border-color:var(--line);
  background:rgba(255,255,255,.04);
}
.result{padding:18px}
.result-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; flex-wrap:wrap;
}
.result-title{font-weight:850}
.result-sub{color:var(--muted); font-size:13px}
.files{
  margin-top:14px;
  display:grid;
  gap:10px;
}
.file{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.12);
}
.file-left{min-width:0}
.file-name{
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width: 62ch;
}
.file-meta{color:var(--muted); font-size:12px}
.hint{margin-top:14px;color:var(--muted); font-size:12px}

.send-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  padding:18px;
}
.drop{
  border:2px dashed rgba(124,92,255,.35);
  border-radius:18px;
  min-height:220px;
  background:rgba(0,0,0,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}
.drop.dragover{
  border-color:rgba(34,197,94,.6);
  background:rgba(34,197,94,.10);
}
.drop-inner{text-align:center}
.drop-icon{font-size:30px}
.drop-title{font-weight:850; margin-top:6px}
.drop-sub{color:var(--muted); margin-top:6px}
.drop-sub.small{font-size:12px}
.linklike{
  border:none;
  background:none;
  color:rgba(124,92,255,1);
  font-weight:800;
  cursor:pointer;
  padding:0;
  text-decoration:underline;
}
.send-side{display:grid; gap:12px}
.field{display:grid; gap:8px}
.label{color:var(--muted); font-size:12px}
.select{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
  background:#000000;
}
.box{
  padding:12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.12);
  color:var(--text);
  min-height: 82px;
  overflow:auto;
  white-space:pre-wrap;
}
.actions{display:flex; gap:10px; flex-wrap:wrap}
.progress{margin-top:6px}
.progress-bar{
  height:10px;
  background:rgba(255,255,255,.08);
  border-radius:999px;
  overflow:hidden;
  border:1px solid var(--line);
}
.progress-fill{height:100%; background:rgba(124,92,255,.75)}
.progress-text{margin-top:8px; color:var(--muted); font-size:12px}

.otp-big-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}
.otp-big{
  font-family:var(--mono);
  font-size:46px;
  letter-spacing:12px;
  text-align:center;
  padding:18px 0 8px;
  font-weight:900;
}

.share{
  max-width:760px;
  margin:0 auto;
  display:grid;
  gap:14px;
}
.share-block{display:grid; gap:10px}
.share-label{color:var(--muted); font-size:12px}
.share-row{display:flex; gap:10px}
.share-input{
  flex:1;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
  font-family:var(--mono);
}
.share-sub{color:var(--muted); font-size:12px; text-align:center}

.qr-wrap{
  display:grid;
  justify-items:center;
  gap:10px;
  margin-top:2px;
}
.qr-box{
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  box-shadow: var(--shadow);
}
#qrCode canvas, #qrCode img{
  display:block;
  border-radius:10px;
}
.qr-sub{color:var(--muted); font-size:12px; text-align:center}

.footer{
  text-align:center;
  padding:14px 8px 2px;
  color:var(--muted);
}
.footer-small{margin-top:6px;font-size:12px}

@media (max-width: 860px){
    button#otpClear {
    display: none;
}
    .otp-row {
    flex-direction: column;
}
  .send-grid{grid-template-columns:1fr}
  .otp-input{flex:1}
  .share-row{flex-direction:column}
  .share-row .btn{width:100%}
}
