:root{
  --bg:#071521;
  --card:#0c1f2f;
  --border:#17354c;
  --text:#e6f1ff;
  --muted:#9fb4c9;
  --accent:#4cc9f0;
  --accent2:#80ffdb;
  --danger:#ff5c7a;
  --shadow: 0 16px 40px rgba(0,0,0,.45);
  --radius: 16px;
  --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}
body{
  margin:0;
  font-family:var(--sans);
  background: radial-gradient(1200px 700px at 20% -10%, rgba(76,201,240,.18), transparent 50%),
              radial-gradient(1000px 600px at 90% 10%, rgba(128,255,219,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}

.wrap{max-width:1100px; margin:0 auto; padding:26px 18px}

.topbar{
  position:sticky; top:0;
  background:rgba(7,21,33,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(23,53,76,.8);
  z-index:20;
}
.topbar .wrap{display:flex; align-items:center; justify-content:space-between; padding:14px 18px}
.brand{font-weight:800; letter-spacing:.2px}
.nav a{margin-left:14px; color:var(--muted)}
.nav a:hover{color:var(--text); text-decoration:none}

.hero{padding:18px 0 8px}
.micro{color:var(--muted); font-size:12px; margin:0 0 10px}
h1{font-size:40px; line-height:1.05; margin:0 0 10px}
.muted{color:var(--muted)}
.lead{color:var(--muted); font-size:16px; max-width:820px; line-height:1.55}
.lead code{font-family:var(--mono); font-size: 14px; color: var(--accent2)}

.card{
  background:linear-gradient(180deg, rgba(12,31,47,.92), rgba(12,31,47,.78));
  border:1px solid rgba(23,53,76,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
  margin:14px 0;
}

.content{padding:12px 2px}
.content h2{margin:24px 0 8px}
.content p, .content li{color:var(--muted); line-height:1.65}
.legal{font-size:13px; border-left:3px solid rgba(76,201,240,.45); padding-left:10px}

.label{display:block; font-size:13px; color:var(--muted); margin:0 0 8px}
.mt{margin-top:14px}
textarea, select, input[type="number"]{
  width:100%;
  background: rgba(7,21,33,.65);
  color: var(--text);
  border:1px solid rgba(23,53,76,.9);
  border-radius: 12px;
  padding:10px 12px;
  outline:none;
}
textarea{resize:vertical; min-height: 110px; font-family: var(--mono); font-size: 12.5px}
select{padding:10px 10px}
.inline{display:flex; gap:10px; align-items:center; margin-top:10px}
.inline .label{margin:0; width:110px}
.inline input{max-width:160px}

.grid2{display:grid; grid-template-columns: 1fr 1fr; gap:14px}
@media (max-width: 900px){
  .grid2{grid-template-columns:1fr}
  h1{font-size:34px}
}

.drop{
  border:1px dashed rgba(159,180,201,.4);
  border-radius: 14px;
  padding:16px;
  background: rgba(7,21,33,.35);
}
.drop.drag{
  border-color: rgba(76,201,240,.9);
  box-shadow: 0 0 0 3px rgba(76,201,240,.18);
}
.drop-inner{display:flex; flex-direction:column; gap:6px}
.drop-title{font-weight:700}
.drop-sub{color:var(--muted); font-size:13px}
#files{margin-top:10px}

.hr{height:1px; background:rgba(23,53,76,.9); margin:16px 0}

.opts{display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap:14px}
@media (max-width: 900px){ .opts{grid-template-columns:1fr} }

.opt{
  border:1px solid rgba(23,53,76,.8);
  border-radius: 14px;
  padding:12px;
  background: rgba(7,21,33,.25);
}
.hint{color:var(--muted); font-size:12.5px; margin:8px 0 0}
.check{display:flex; gap:10px; align-items:center; color:var(--text)}
.check input{width:16px; height:16px}

.actions{display:flex; gap:12px; align-items:center; margin-top:14px}
.btn{
  background: linear-gradient(90deg, rgba(76,201,240,.95), rgba(128,255,219,.85));
  border:none;
  color:#06202d;
  font-weight:900;
  padding:12px 14px;
  border-radius: 14px;
  cursor:pointer;
}
.btn:hover{filter:brightness(1.05)}
.btn:disabled{opacity:.6; cursor:not-allowed}
.btn-ghost{
  background: transparent;
  color: var(--text);
  border:1px solid rgba(76,201,240,.55);
}
.toast{color:var(--muted); font-size:13px}

.progress-wrap{margin-top:14px}
.hidden{display:none !important}
.progress-top{display:flex; justify-content:space-between; align-items:center; margin-bottom:8px}
.status{color:var(--muted)}
.pct{font-variant-numeric: tabular-nums; color:var(--text)}
.bar{
  height:12px; border-radius: 999px;
  background: rgba(7,21,33,.6);
  border:1px solid rgba(23,53,76,.85);
  overflow:hidden;
}
.bar-fill{
  height:100%;
  background: linear-gradient(90deg, rgba(76,201,240,.95), rgba(128,255,219,.85));
  width:0%;
}

.kpis{display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; margin:12px 0}
@media (max-width:900px){ .kpis{grid-template-columns: 1fr 1fr} }
.kpi{
  border:1px solid rgba(23,53,76,.8);
  border-radius: 14px;
  padding:12px;
  background: rgba(7,21,33,.25);
}
.kpi .n{font-size:20px; font-weight:900}
.kpi .l{color:var(--muted); font-size:12.5px; margin-top:4px}

.mini{color:var(--muted); font-size:13px; line-height:1.55}
.errors{
  margin-top:14px;
  border:1px solid rgba(255,92,122,.45);
  background: rgba(255,92,122,.08);
  border-radius: 14px;
  padding:12px;
  color: var(--text);
}
.footer{padding:22px 0 28px; color:var(--muted)}
