:root {
  --bg: #0b0f19;
  --bg2: #0f172a;
  --card: rgba(255,255,255,.075);
  --card2: rgba(255,255,255,.105);
  --line: rgba(255,255,255,.14);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #7dd3fc;
  --accent2: #a78bfa;
  --success: #34d399;
  --danger: #fb7185;
  --warn: #fbbf24;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(125,211,252,.16), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(167,139,250,.20), transparent 26%),
    linear-gradient(135deg, #07111f 0%, #0b0f19 48%, #111827 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
button, input { font: inherit; }
button {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #020617;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(125,211,252,.20);
}
button:hover { transform: translateY(-1px); }
button.secondary, button.ghost {
  background: rgba(255,255,255,.09);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
}
button.dangerish { background: linear-gradient(135deg, #fb7185, #fbbf24); color:#111827; }
button.full { width: 100%; }
.login-page { display:grid; place-items:center; overflow:hidden; }
.orb { position: fixed; width: 420px; height:420px; border-radius:50%; filter: blur(60px); opacity:.28; }
.orb-a { background:#7dd3fc; top:-110px; left:-70px; }
.orb-b { background:#a78bfa; right:-100px; bottom:-120px; }
.login-card {
  width:min(440px, calc(100vw - 34px));
  background: rgba(15,23,42,.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 32px;
  padding: 34px;
  backdrop-filter: blur(24px);
  position: relative;
}
.brand-mark {
  width: 58px; height:58px; border-radius:20px;
  display:grid; place-items:center;
  color:#020617; font-size:28px; font-weight: 950;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 16px 40px rgba(125,211,252,.25);
}
.brand-mark.small { width:42px; height:42px; font-size:20px; border-radius:15px; }
.login-card h1 { margin:24px 0 8px; font-size:32px; }
.login-card p { color:var(--muted); line-height:1.5; }
.login-form { display:grid; gap:10px; margin-top:24px; }
label { color:#cbd5e1; font-weight:700; font-size:14px; }
input[type="password"], input[type="file"] {
  width:100%;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.07);
  color:var(--text);
  padding:13px 14px;
}
.flash {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
}
.flash.success { border-color: rgba(52,211,153,.4); }
.flash.error { border-color: rgba(251,113,133,.5); }
.shell { display:grid; grid-template-columns: 280px 1fr; min-height:100vh; }
.sidebar {
  padding: 24px;
  border-right:1px solid var(--line);
  background: rgba(2,6,23,.45);
  backdrop-filter: blur(22px);
  position: sticky; top:0; height:100vh;
}
.logo-row { display:flex; gap:14px; align-items:center; margin-bottom:32px; }
.logo-row span { display:block; color:var(--muted); font-size:13px; margin-top:2px; }
nav { display:grid; gap:8px; margin-bottom:28px; }
nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color:#cbd5e1;
  background: rgba(255,255,255,.04);
  border:1px solid transparent;
}
nav a:hover { border-color: var(--line); background: rgba(255,255,255,.08); }
.content { padding: 28px; max-width: 1280px; width:100%; }
.hero {
  display:flex; justify-content:space-between; align-items:center; gap:20px;
  padding: 30px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(125,211,252,.16), rgba(167,139,250,.13));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.eyebrow { margin:0 0 8px; color: var(--accent); text-transform: uppercase; letter-spacing:.14em; font-weight:900; font-size:12px; }
.hero h1 { margin:0; font-size: clamp(30px, 5vw, 54px); letter-spacing:-.04em; }
.hero p { margin:10px 0 0; color:#cbd5e1; max-width:720px; }
.status-pill {
  border:1px solid var(--line);
  border-radius:999px;
  padding: 12px 18px;
  background: rgba(255,255,255,.08);
  text-transform: uppercase;
  font-weight:950;
  letter-spacing:.08em;
}
.status-pill.success { color: var(--success); border-color: rgba(52,211,153,.42); }
.status-pill.error { color: var(--danger); border-color: rgba(251,113,133,.5); }
.status-pill.running { color: var(--warn); border-color: rgba(251,191,36,.5); }
.grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0; }
.card, .warning-card {
  background: var(--card);
  border:1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  backdrop-filter: blur(16px);
}
.card h2 { margin:0 0 14px; font-size: 22px; }
.card h3 { margin: 22px 0 10px; }
.muted { color: var(--muted); }
.facts { display:grid; gap:12px; margin:0; }
.facts div { display:grid; gap:4px; padding-bottom:10px; border-bottom:1px solid rgba(255,255,255,.08); }
.facts dt { color: var(--muted); font-size:13px; }
.facts dd { margin:0; overflow-wrap:anywhere; }
.checkline { padding: 10px 0; color:#dbeafe; }
.dot { width:10px; height:10px; display:inline-block; border-radius:50%; margin-right:8px; background: var(--muted); }
.dot.ok { background: var(--success); box-shadow: 0 0 18px rgba(52,211,153,.55); }
.dot.bad { background: var(--danger); box-shadow: 0 0 18px rgba(251,113,133,.45); }
.upload-box { display:flex; gap:12px; align-items:center; flex-wrap:wrap; padding:16px; border:1px dashed rgba(125,211,252,.4); border-radius:22px; background: rgba(125,211,252,.06); }
.upload-box input { flex:1; min-width:260px; }
.upload-item {
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  margin:10px 0;
  background: rgba(255,255,255,.05);
}
.upload-item span { display:block; color:var(--muted); font-size:13px; margin-top:4px; }
.terminal-card { margin-top:18px; }
.terminal-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.terminal-actions { display:flex; gap:10px; }
.terminal {
  min-height: 430px;
  max-height: 620px;
  overflow:auto;
  padding:18px;
  border-radius: 22px;
  background: #020617;
  border:1px solid rgba(125,211,252,.22);
  color: #d1fae5;
  font-size:13px;
  line-height:1.55;
  white-space: pre-wrap;
}
.log-list { margin:0; padding:0; list-style:none; display:grid; gap:8px; }
.log-list li { display:flex; justify-content:space-between; gap:10px; border-bottom:1px solid rgba(255,255,255,.08); padding:8px 0; }
.log-list span { color:var(--muted); font-size:12px; }
.warning-card { margin: 18px 0 40px; color:#fde68a; background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.25); }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position:relative; height:auto; }
  .grid { grid-template-columns: 1fr; }
  .hero { flex-direction:column; align-items:flex-start; }
  .terminal-head { flex-direction:column; }
}
