:root{
  --bg: #0b0d10;
  --card: #11141a;
  --muted: #a7b0bd;
  --text: #e8edf5;
  --border: rgba(255,255,255,0.08);
  --primary: #5aa7ff;
  --primary-2: #2f7ee6;
  --danger: #ff5a6a;
  --ok: #35d07f;
  --shadow: 0 18px 70px rgba(0,0,0,0.55);
  --radius: 16px;
  --radius-sm: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font: 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(--font);
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 10% -10%, rgba(90,167,255,0.25), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(53,208,127,0.18), transparent 60%),
    var(--bg);
}

.page{
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.brand{
  display:flex;
  gap: 14px;
  align-items:center;
}

.logo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  font-weight:800;
  letter-spacing: -0.5px;
  background: linear-gradient(140deg, rgba(90,167,255,0.95), rgba(53,208,127,0.85));
  color:#091018;
  box-shadow: 0 10px 30px rgba(90,167,255,0.18);
}

.brand-text h1{
  font-size: 18px;
  margin:0;
  line-height: 1.25;
}
.brand-text p{
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.badge{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}

.card{
  background: rgba(17,20,26,0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section{
  padding: 18px 18px;
  border-top: 1px solid var(--border);
}
.section:first-child{ border-top: none; }

.section h2{
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.muted{ color: var(--muted); }
.row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

.file{
  position: relative;
  display:flex;
  align-items:center;
  gap: 10px;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  min-width: 240px;
  cursor: pointer;
  transition: border-color .15s ease, transform .05s ease;
}
.file:hover{ border-color: rgba(90,167,255,0.55); }
.file:active{ transform: scale(0.995); }
.file input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
#fileLabel{
  font-size: 13px;
  color: var(--text);
}
.btn{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  transition: transform .05s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ background: rgba(255,255,255,0.06); }
.btn:active{ transform: scale(0.995); }
.btn:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.primary{
  border-color: rgba(90,167,255,0.4);
  background: linear-gradient(140deg, rgba(90,167,255,0.9), rgba(47,126,230,0.85));
  color: #06101a;
  font-weight: 700;
}
.btn.primary:hover{
  background: linear-gradient(140deg, rgba(90,167,255,1), rgba(47,126,230,0.95));
}

.meta{
  margin-top: 12px;
  display:flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.meta-label{ color: rgba(255,255,255,0.78); }

.status{
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.2);
  padding: 14px;
}

.status-line{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  align-items:center;
}
.status-text{
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}

.tag{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}

.progress-wrap{ margin-top: 12px; }
.progress-bar{
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.progress-fill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(90,167,255,0.95), rgba(53,208,127,0.9));
  transition: width .15s ease;
}
.progress-meta{
  margin-top: 8px;
  display:flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}

.error, .success{
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.error{
  border-color: rgba(255,90,106,0.35);
  background: rgba(255,90,106,0.08);
}
.error-title{
  font-weight: 800;
  color: rgba(255,175,180,0.95);
  margin-bottom: 8px;
  font-size: 13px;
}
.error-text{
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,235,236,0.9);
}

.success{
  border-color: rgba(53,208,127,0.35);
  background: rgba(53,208,127,0.08);
}
.success-title{
  font-weight: 800;
  color: rgba(180,255,215,0.95);
  margin-bottom: 6px;
  font-size: 13px;
}
.success-text{
  margin: 0 0 10px;
  color: rgba(230,255,244,0.9);
  font-size: 13px;
}

.hidden{ display:none; }

.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}
.list li{ margin: 6px 0; }

.footer{
  margin-top: 16px;
  display:flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
