:root {
  --bg: #0b0d10;
  --bg-elev: #15181d;
  --bg-input: #0f1216;
  --border: #232932;
  --text: #e6e8ea;
  --text-dim: #98a0aa;
  --accent: #4f8cff;
  --accent-hover: #6aa1ff;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--accent-hover); text-decoration: underline; }

header {
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header .brand { font-weight: 600; font-size: 16px; }
header nav a { margin-left: 16px; color: var(--text-dim); }
header nav a:hover { color: var(--text); }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

h1 { font-size: 24px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 0 0 12px; color: var(--text); }
h3 { font-size: 14px; margin: 0 0 8px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
p { margin: 0 0 12px; color: var(--text-dim); }

label {
  display: block;
  font-size: 13px;
  margin: 12px 0 4px;
  color: var(--text-dim);
}

input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
input:focus { outline: none; border-color: var(--accent); }

button, .btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

button.secondary, .btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
button.secondary:hover, .btn.secondary:hover {
  background: var(--bg-input);
  border-color: var(--text-dim);
}

button.danger, .btn.danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
button.danger:hover { background: var(--danger); color: #fff; }

.alert {
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  margin: 12px 0;
}
.alert.error { background: #2a1316; color: #fca5a5; border: 1px solid #5b1f24; }
.alert.success { background: #0f2418; color: #86efac; border: 1px solid #1f4a31; }
.alert.info { background: #112038; color: #93c5fd; border: 1px solid #1e3a5f; }

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.row:last-child { border-bottom: none; }
.row .key { color: var(--text-dim); font-size: 13px; }
.row .val { font-weight: 500; }

.actions { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }

.muted { color: var(--text-dim); font-size: 13px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.tier-grid button { width: 100%; }

.center { text-align: center; }
.spacer { height: 16px; }

footer {
  text-align: center;
  padding: 24px;
  color: var(--text-dim);
  font-size: 13px;
}
