:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-soft: rgba(15, 23, 42, 0.72);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --lime: #84cc16;
  --lime-dark: #65a30d;
  --border: rgba(148, 163, 184, 0.22);
  --danger: #f87171;
  --success: #4ade80;
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.36);
  --font-body: "Inter", system-ui, sans-serif;
  --font-heading: "Outfit", var(--font-body);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(132, 204, 22, 0.18), transparent 20%),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #111827 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.topbar h1,
.auth-card h2,
.overview-card h2,
.subcard h3 {
  margin: 0;
  font-family: var(--font-heading);
}

.topbar h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.lede,
.supporting-copy,
.status-note,
.summary-list dt,
.website-list,
.link-list,
.ghost-link {
  color: var(--muted);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost-link,
.secondary-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ghost-link:hover,
.secondary-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
}

.ghost-link,
.secondary-button {
  background: rgba(15, 23, 42, 0.34);
}

.primary-button {
  border: none;
  background: linear-gradient(135deg, var(--lime) 0%, var(--lime-dark) 100%);
  color: #101828;
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 24px;
}

.card,
.subcard,
.stat-panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-card,
.overview-card {
  padding: 28px;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.field span {
  font-size: 0.95rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.44);
  color: var(--text);
}

.field input:focus {
  outline: none;
  border-color: rgba(132, 204, 22, 0.7);
  box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.12);
}

.status-note {
  margin-top: 14px;
}

.status-note.is-error {
  color: var(--danger);
}

.status-note.is-success {
  color: var(--success);
}

.is-hidden {
  display: none;
}

.dashboard-head,
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.stats-grid,
.dashboard-columns {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.dashboard-columns {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.stat-panel,
.subcard {
  padding: 20px;
}

.stat-label {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  word-break: break-word;
}

.summary-list {
  display: grid;
  gap: 12px;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.summary-list dd,
.link-list li,
.website-list li {
  margin: 0;
  color: var(--text);
}

.link-list,
.website-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.link-list a {
  color: var(--lime);
  font-weight: 700;
}

.website-list li,
.empty-state {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: var(--panel-soft);
}

.full-width {
  margin-top: 24px;
}

.compact-head {
  margin-bottom: 14px;
}

.summary-chip-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: 20px;
}

.summary-chip {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(2, 6, 23, 0.28);
}

.summary-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.summary-chip strong {
  display: block;
  margin-top: 6px;
  font-size: 1.25rem;
}

.admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.admin-grid-bottom {
  align-items: start;
}

.admin-block {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.28);
  padding: 18px;
}

.admin-block h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.stack-form {
  margin-top: 14px;
}

.form-split {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field select,
.field textarea,
.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.44);
  color: var(--text);
}

.field select {
  appearance: none;
}

.field textarea {
  min-height: 110px;
  padding: 14px 16px;
  resize: vertical;
}

.field textarea:focus,
.field select:focus,
.field input:focus {
  outline: none;
  border-color: rgba(132, 204, 22, 0.7);
  box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.12);
}

.button-row,
.action-row,
.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.button-small,
.inline-action {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.34);
  color: var(--text);
}

.result-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(74, 222, 128, 0.18);
  background: rgba(16, 185, 129, 0.08);
}

.result-card strong {
  display: block;
  margin-bottom: 10px;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.result-row + .result-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.result-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  word-break: break-all;
}

.user-grid,
.waitlist-list {
  display: grid;
  gap: 12px;
}

.user-card,
.waitlist-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.42);
}

.user-card-head,
.waitlist-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.user-card-title,
.waitlist-title {
  display: grid;
  gap: 4px;
}

.user-card-title strong,
.waitlist-title strong {
  font-size: 1rem;
}

.user-card-email,
.waitlist-meta,
.small-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.user-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.meta-pill {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(2, 6, 23, 0.24);
}

.meta-pill span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.meta-pill strong {
  display: block;
  margin-top: 5px;
  word-break: break-word;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status-active {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.22);
  color: var(--success);
}

.status-suspended,
.status-paused,
.status-priority {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.22);
  color: #fbbf24;
}

.status-disabled,
.status-revoked,
.status-error {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.22);
  color: var(--danger);
}

.status-pending,
.status-standard {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.22);
  color: var(--muted);
}

.status-full,
.status-super-admin,
.status-admin {
  background: rgba(132, 204, 22, 0.12);
  border-color: rgba(132, 204, 22, 0.22);
  color: var(--lime);
}

.waitlist-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.waitlist-meta {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .topbar,
  .dashboard-head,
  .section-head {
    flex-direction: column;
  }

  .admin-grid,
  .form-split,
  .user-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 20px, 100%);
  }

  .auth-card,
  .overview-card,
  .subcard,
  .stat-panel {
    padding: 18px;
  }

  .admin-block,
  .result-card {
    padding: 14px;
  }
}