:root {
  --primary: #2f6fed;
  --primary-dark: #1f4fc4;
  --bg: #f4f6fb;
  --card-bg: #ffffff;
  --text: #1c2331;
  --muted: #6b7280;
  --border: #e3e7ef;
  --success: #17a673;
  --danger: #e0403f;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.installer-shell {
  width: 100%;
  max-width: 640px;
}

.installer-header {
  text-align: center;
  margin-bottom: 24px;
}

.installer-header h1 {
  font-size: 22px;
  margin: 0 0 4px;
}

.installer-header p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-step .circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.progress-step.active .circle,
.progress-step.done .circle {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.progress-step.done .circle { background: var(--success); border-color: var(--success); }

.progress-step span.label {
  font-size: 13px;
  color: var(--muted);
}

.progress-step.active span.label { color: var(--text); font-weight: 600; }

.progress-line {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin: 0 10px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 3px rgba(20, 25, 40, 0.04);
}

.card h2 {
  margin-top: 0;
  font-size: 18px;
}

.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group { flex: 1; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

.actions.end { justify-content: flex-end; }

button, .btn {
  border: none;
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #eef1f7; color: var(--text); }
.btn-secondary:hover { background: #e2e6ee; }
button:disabled { opacity: 0.6; cursor: not-allowed; }

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-error { background: #fdeceb; color: #9c1f1e; border: 1px solid #f6c7c5; }
.alert-success { background: #e9f9f2; color: #0b6b4b; border: 1px solid #b8ecd5; }

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.requirements-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.requirements-list li:last-child { border-bottom: none; }

.badge-pass { color: var(--success); font-weight: 700; }
.badge-fail { color: var(--danger); font-weight: 700; }

.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}

.summary-table td {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.summary-table td:first-child { color: var(--muted); width: 45%; }

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
