:root {
  --bg: #0f1115;
  --bg-panel: #161923;
  --bg-panel-2: #1d212e;
  --border: #2a2f3d;
  --text: #e7e9ee;
  --text-muted: #a4a9b8;
  --text-faint: #6b7080;
  --accent: #5b8def;
  --accent-soft: rgba(91, 141, 239, 0.12);
  --positive: #1f8a4c;
  --negative: #d64545;
  --radius: 10px;
  --radius-sm: 6px;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.brand {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 26rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

h1 { font-size: 1.3rem; margin: 0 0 1.5rem; }
h2 { font-size: 1rem; margin: 0 0 0.75rem; }

label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text-muted); }
input {
  width: 100%; background: var(--bg-panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.6rem 0.7rem; font-size: 0.9rem; font-family: var(--sans);
  margin-bottom: 1rem;
}
input:focus { outline: none; border-color: var(--accent); }

button {
  width: 100%; background: var(--accent); color: white; border: none;
  border-radius: var(--radius-sm); padding: 0.65rem 1rem; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: opacity 140ms ease-out;
}
button:hover { opacity: 0.9; }
button:disabled { opacity: 0.5; cursor: default; }
button.secondary { background: var(--bg-panel-2); border: 1px solid var(--border); color: var(--text); }

.error { color: var(--negative); font-size: 0.82rem; margin-top: -0.5rem; margin-bottom: 1rem; min-height: 1em; }
.hint { color: var(--text-faint); font-size: 0.82rem; text-align: center; margin-top: 1rem; }
.hint a { color: var(--accent); text-decoration: none; }
.hint a:hover { text-decoration: underline; }

.stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 0; border-bottom: 1px solid var(--border);
}
.stat-row:last-child { border-bottom: none; }
.stat-row .label { color: var(--text-faint); font-size: 0.82rem; }
.stat-row .value { font-family: var(--mono); font-size: 0.88rem; font-weight: 600; }
.value.positive { color: var(--positive); }
.value.negative { color: var(--negative); }

.license-box {
  background: var(--bg-panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.7rem; font-family: var(--mono); font-size: 0.85rem; word-break: break-all; margin-bottom: 0.75rem;
}

.actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
