:root{
  --bg0:#070a12;
  --bg1:#0b1020;

  --card: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.12);
  --stroke2: rgba(255,255,255,.16);

  --text:#e9ecf1;
  --muted: rgba(233,236,241,.74);
  --muted2: rgba(233,236,241,.58);

  --primary:#5b7cff;
  --danger:#ff4d4d;

  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 18px;

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans", Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 20% 10%, #15214a 0%, transparent 55%),
    radial-gradient(900px 600px at 80% 0%, #1b2a66 0%, transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.bg{
  position:fixed;
  inset:0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(91,124,255,.18), transparent 35%),
    radial-gradient(circle at 90% 30%, rgba(91,124,255,.12), transparent 40%);
  pointer-events:none;
}

.container{
  width: min(650px, 100%);
  margin:0 auto;
  padding: 0 18px;
}

.header{
  margin:12px 0 18px;
  text-align:center;
}
.brand{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.2px;
}
.logo{ font-size:26px; }
.name{ font-size:30px; }
.sub{ margin-top:6px; color:var(--muted); }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.05));
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  padding:20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.h1{
  margin:0 0 var(--space-3);
  font-size:22px;
  letter-spacing:.2px;
}

.form{
  display:flex;
  flex-direction:column;
  gap: var(--space-3);
}

.label{
  color:var(--muted);
  font-size:13px;
  margin: 0 0 var(--space-1);
}

.hint{
  color:var(--muted2);
  margin-top: 2px;
  font-size:12px;
}

.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
  transition: border .15s ease, box-shadow .15s ease, transform .05s ease;
}
.input:focus{
  border-color: rgba(91,124,255,.7);
  box-shadow: 0 0 0 4px rgba(91,124,255,.18);
}

.input.small{
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 12px;
}

.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.file-wrap{
  border:1px dashed rgba(255,255,255,.18);
  border-radius:14px;
  padding:12px;
  background:rgba(0,0,0,.18);
  margin-bottom: 2px;
}
.file{ width:100%; }
.file-hint{
  margin-top:8px;
  font-size:12px;
  color:var(--muted2);
}

.btn{
  padding:12px 14px;
  border-radius:14px;
  border:0;
  background: linear-gradient(180deg, rgba(91,124,255,1), rgba(91,124,255,.88));
  color:#fff;
  font-weight:800;
  cursor:pointer;
  transition: transform .06s ease, filter .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 30px rgba(91,124,255,.22);
  margin-top: 2px;
}
.btn:hover{ filter: brightness(1.05); }
.btn:active{ transform: translateY(1px); }

.btn2{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
  transition: background .15s ease, transform .06s ease;
  font-family: inherit;
}
.btn2:hover{ background:rgba(255,255,255,.11); }
.btn2:active{ transform: translateY(1px); }

.danger{
  background: linear-gradient(180deg, rgba(255,77,77,1), rgba(255,77,77,.88));
  box-shadow: 0 10px 30px rgba(255,77,77,.18);
}

.box{
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:14px;
  background:rgba(0,0,0,.18);
}

.row{
  display:flex;
  align-items:center;
  gap:10px;
  margin:10px 0;
}
.row-label{
  width:150px;
  font-size:13px;
  color:var(--muted);
}
.grow{ flex:1; }

.error{
  background:rgba(255,77,77,.12);
  border:1px solid rgba(255,77,77,.25);
  padding:10px;
  border-radius:14px;
  margin-bottom: var(--space-2);
  color:#ffd6d6;
}

.success{
  background:rgba(30, 200, 120, .12);
  border:1px solid rgba(30, 200, 120, .25);
  padding:10px;
  border-radius:14px;
  margin-bottom: var(--space-2);
  color:#c9ffe7;
}

.link{
  display:inline-block;
  margin-top:14px;
  color:#aab8ff;
  text-decoration:none;
}
.link:hover{ text-decoration:none; }
.danger-link{ color:#ff9a9a; }

.footer{
  text-align:center;
  color:var(--muted2);
  margin-top: 14px;
  font-size:12px;
}

.select-shell{
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(0,0,0,.25);
  padding-right: 14px;
  transition: border .15s ease, box-shadow .15s ease;
}

.select-shell.small{
  padding-right: 12px;
}

.select-native{
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  padding: 12px 12px;
  border-radius: 14px;
}

.select-shell.small .select-native{
  padding: 10px 12px;
  font-size: 14px;
}

.select-shell:focus-within{
  border-color: rgba(91,124,255,.7);
  box-shadow: 0 0 0 4px rgba(91,124,255,.18);
}

select option{
  background-color: #ffffff;
  color: #000000;
}
select option:checked,
select option:hover{
  background-color: #e6e6e6;
  color: #000000;
}

.row-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  align-items: end;
  margin-top: 2px;
}

.col{
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px){
  .row-2{
    grid-template-columns: 1fr;
  }
}


.filebox{
  position: relative;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 14px;
  background: rgba(0,0,0,.18);
  cursor: pointer;
  transition: border .15s ease, box-shadow .15s ease, transform .05s ease;
}

.filebox:hover{
  border-color: rgba(91,124,255,.35);
}

.filebox.drag{
  border-color: rgba(91,124,255,.7);
  box-shadow: 0 0 0 4px rgba(91,124,255,.18);
}

.filebox.has-file{
  border-style: solid;
  border-color: rgba(30, 200, 120, .35);
}

.file-real{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
}

.file-ui{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.file-title{
  font-weight: 800;
  font-size: 14px;
}

.file-sub{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted2);
}

.file-meta{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  opacity: .95;
}


.filebox{
  position: relative;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 14px;
  background: rgba(0,0,0,.18);
  cursor: pointer;
  transition: border .15s ease, box-shadow .15s ease;
}

.filebox:hover{
  border-color: rgba(91,124,255,.35);
}

.filebox.drag{
  border-color: rgba(91,124,255,.7);
  box-shadow: 0 0 0 4px rgba(91,124,255,.18);
}

.filebox.has-file{
  border-style: solid;
  border-color: rgba(30, 200, 120, .35);
}

.file-real{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
}

.file-ui{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.file-title{
  font-weight: 800;
  font-size: 14px;
}

.file-sub{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted2);
}

.file-meta{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.progress-wrap{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.progress-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  margin-bottom: 8px;
}

.progress-text{
  font-size: 12px;
  color: var(--muted);
}

.progress-pct{
  font-size: 12px;
  color: var(--text);
  font-weight: 800;
}

.progress-bar{
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
}

.progress-fill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(91,124,255,1), rgba(91,124,255,.7));
  transition: width .12s ease;
}

.progress-actions{
  margin-top: 10px;
  display:flex;
  justify-content:flex-end;
}

.result-wrap{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.result-title{
  font-weight: 900;
  margin-bottom: 10px;
}

.result-row{
  display:flex;
  gap: 10px;
  align-items:center;
}

.cancel-mini{
  background: transparent;
  border: 0;
  color: var(--muted2);
  font-size: 12px;
  padding: 4px 6px;
  cursor: pointer;
}
.cancel-mini:hover{
  color: var(--danger);
  text-decoration: underline;
}

a{ text-decoration: none; }
a:hover{ text-decoration: none; }

.footer-line{
  height:1px;
  width:100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.15),
    transparent
  );
  margin-bottom:14px;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  color:var(--muted2);
}

.footer-left{
  opacity:.9;
}

.footer-right strong{
  color:var(--text);
  font-weight:600;
}
