:root {
  --accent-start: #ff2c58;
  --accent-end: #ff4a00;
  --bg: #1a1a1a;
  --surface: #222222;
  --surface-raised: #2b2b2b;
  --text: #f2f2f2;
  --text-muted: #a8a8a8;
  --border: #3a3a3a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

a { color: #ff6b7f; }

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
}

.brand img { height: 32px; width: 32px; border-radius: 6px; }

.topnav nav { display: flex; align-items: center; gap: 1.25rem; }
.topnav nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.topnav nav a:hover { color: var(--accent-end); }

.link-button {
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.link-button:hover { color: var(--accent-end); }
.inline-form { display: inline; }

.page { padding: 2rem; max-width: 1100px; margin: 0 auto; }

.summary-row { display: flex; gap: 1rem; margin-bottom: 2rem; }
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.stat-value { font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--accent-start), var(--accent-end)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--text-muted); font-size: 0.85rem; }

.data-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.data-table th, .data-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.data-table th { color: var(--text-muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 480px;
}

label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }
input, select, textarea, button {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--text);
}

button.primary, .login-card button {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  border: none;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  padding: 0.65rem 1rem;
  margin-top: 0.5rem;
}
button.primary:hover, .login-card button:hover { filter: brightness(1.08); }

pre {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  max-width: 100%;
}

code {
  background: var(--surface-raised);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
}

.muted { color: var(--text-muted); }
.error { color: #ff6b7f; font-weight: 600; }

.setup-checklist { margin: 1rem 0 0.5rem; }
.checklist-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  border: 1px solid var(--border);
}
.checklist-done { background: var(--surface); opacity: 0.7; }
.checklist-pending { background: var(--surface); }
.checklist-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.checklist-content { flex: 1; }
.checklist-content strong { display: block; margin-bottom: 0.1rem; }
.setup-complete {
  background: #1a3d2a;
  border: 1px solid #25d366;
  color: #25d366;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.login-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #2a2a2a, #141414);
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.login-logo { width: 64px; height: 64px; border-radius: 12px; margin-bottom: 0.5rem; }

.login-card form { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; text-align: left; }
