:root{
  --bg:#0b1220;
  --card:#0f1b2d;
  --card2:#0c1626;
  --border:rgba(255,255,255,.10);
  --text:#eef2ff;
  --muted:rgba(238,242,255,.72);
  --shadow:0 18px 50px rgba(0,0,0,.45);
  --radius:18px;
  --btn:#2563eb;
  --btn2:#1f2937;
  --danger:#ef4444;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top left, #1f2937 0, #0b1220 45%, #000 100%);
  color: var(--text);
}

.wrap{max-width:1120px;margin:0 auto;padding:18px 14px 42px}

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 0 18px;
}

.brand{display:flex;gap:12px;align-items:center}
.logo{
  width:44px;height:44px;border-radius:14px;
  background:linear-gradient(135deg, rgba(37,99,235,.95), rgba(34,197,94,.85));
  display:flex;align-items:center;justify-content:center;
  font-weight:800;
  letter-spacing:.5px;
  box-shadow: var(--shadow);
}
.title{font-weight:800;font-size:16px}
.subtitle{font-size:12px;color:var(--muted)}

.top-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.link{
  color: var(--text);
  text-decoration:none;
  font-weight:600;
  font-size:13px;
  opacity:.9;
}
.link:hover{opacity:1;text-decoration:underline}

.hero{
  background: radial-gradient(circle at top, rgba(99,102,241,.20), transparent 60%), var(--card2);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
  margin-bottom:14px;
}
.hero h1{margin:0 0 6px;font-size:clamp(22px,4vw,30px)}
.hero p{margin:0;color:var(--muted);line-height:1.6}

.hero-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.badge{
  display:inline-flex;align-items:center;gap:6px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  color:var(--muted);
}

.panel{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
  margin-top:14px;
}
.panel--soft{
  background: radial-gradient(circle at top, rgba(255,255,255,.05), transparent 55%), var(--card2);
}

.panel-head h2{margin:0 0 4px;font-size:18px}
.muted{color:var(--muted)}
.small{font-size:12px}

.import-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:10px;
}
@media (min-width: 980px){
  .import-grid{grid-template-columns: repeat(2, 1fr);}
}

.card{
  border:1px solid var(--border);
  border-radius: 16px;
  padding:14px;
  background: rgba(255,255,255,.03);
}

.card h3{margin:0 0 6px;font-size:15px}
.card p{margin:0 0 10px;color:var(--muted);line-height:1.55}

.label{display:block;font-size:12px;color:var(--muted);margin:8px 0 6px}
.input{
  width:100%;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.18);
  color: var(--text);
  padding:10px 10px;
  outline:none;
}
.input:focus{border-color: rgba(37,99,235,.65)}
.textarea{min-height:120px;resize:vertical}

.row{display:flex;gap:10px;align-items:center;margin-top:10px;flex-wrap:wrap}
.grid2{display:grid;grid-template-columns:1fr;gap:10px}
@media(min-width:700px){.grid2{grid-template-columns:1fr 1fr}}

.btn{
  border:0;
  border-radius: 12px;
  padding:10px 12px;
  font-weight:800;
  color:#fff;
  background: var(--btn);
  cursor:pointer;
}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn.secondary{background: var(--btn2)}
.btn.ghost{
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration:none;
  font-weight:700;
}
.btn.ghost:hover{background: rgba(255,255,255,.04)}
.note{margin-top:10px;font-size:13px;color:var(--muted)}
.preview-top{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
}

.kpis{display:flex;gap:12px;flex-wrap:wrap}
.kpi{
  border:1px solid var(--border);
  border-radius:16px;
  padding:10px 12px;
  background: rgba(255,255,255,.03);
  min-width:120px;
}
.kpi-num{font-size:20px;font-weight:900}
.kpi-label{font-size:12px;color:var(--muted)}

.toolbar{margin-top:10px}

.table-wrap{
  overflow:auto;
  margin-top:12px;
  border-radius: 16px;
  border:1px solid var(--border);
}
.table{
  width:100%;
  border-collapse:collapse;
  min-width: 980px;
  background: rgba(0,0,0,.15);
}
.table th,.table td{
  border-bottom:1px solid rgba(255,255,255,.08);
  padding:10px 10px;
  font-size:13px;
  vertical-align:top;
}
.table th{
  position:sticky;top:0;
  background: rgba(11,18,32,.92);
  text-align:left;
}
.table td{color: var(--muted)}
.table td a{color:#a5b4fc}

.content-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
@media(min-width:980px){.content-grid{grid-template-columns:repeat(3,1fr)}}

.footer{
  margin-top:16px;
  padding:14px 6px 0;
}
.footer-inner{
  display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;
  border-top:1px solid rgba(255,255,255,.10);
  padding-top:12px;
}
.footer-links{display:flex;gap:12px;flex-wrap:wrap}
.footer a{color:var(--muted);text-decoration:none}
.footer a:hover{text-decoration:underline;color:var(--text)}
