body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #0b1020;
  color: #e5e7eb;
}
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #111827;
  border-right: 1px solid #1f2937;
  padding: 20px;
}
.brand {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}
.muted {
  color: #9ca3af;
  font-size: 13px;
}
.main {
  padding: 20px;
}
.card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
input, select, button, textarea {
  border-radius: 8px;
  border: 1px solid #374151;
  background: #0f172a;
  color: #e5e7eb;
  padding: 10px;
}
button {
  background: #4f46e5;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
button.secondary {
  background: #374151;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  border-bottom: 1px solid #1f2937;
  padding: 10px 8px;
  text-align: left;
}
th {
  color: #9ca3af;
  font-weight: 600;
}
.status-pill {
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  display: inline-block;
}
.status-active { background: #064e3b; color: #6ee7b7; }
.status-suspended { background: #7f1d1d; color: #fca5a5; }
.hidden { display: none !important; }
.danger { color: #fca5a5; }
.sidebar-nav {
  margin: 0 0 12px;
}
.sidebar-link {
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.sidebar-link:hover {
  text-decoration: underline;
}

/* --- Create-site wizard (light card, setup/index style) --- */
.sa-create-card {
  background: transparent;
  border: none;
  padding: 0;
}
.sa-wizard {
  max-width: 640px;
  background: #fff;
  color: #0f172a;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  border: 1px solid #1f2937;
}
.sa-wizard-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.sa-wizard-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sa-wizard-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}
.sa-wiz-step-indicator {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.sa-wiz-progress-track {
  margin-top: 1rem;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.sa-wiz-progress-fill {
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: #4f46e5;
  transition: width 0.35s ease;
}
.sa-wizard-body {
  padding: 1.5rem 1.75rem 1.25rem;
}
.sa-wizard-panel {
  display: none;
  animation: saWizFade 0.35s ease;
}
.sa-wizard-panel.active {
  display: block;
}
@keyframes saWizFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.sa-wiz-welcome {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}
.sa-wiz-welcome-icon {
  display: block;
  margin: 0 auto 1rem;
}
.sa-wiz-welcome-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
}
.sa-wiz-welcome-text {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}
.sa-wiz-panel-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}
.sa-wiz-muted {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}
.sa-wiz-field {
  margin-bottom: 1rem;
}
.sa-wiz-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}
.sa-wiz-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}
.sa-wiz-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #f9fafb;
  color: #0f172a;
}
.sa-wiz-input:focus {
  outline: none;
  border-color: #4f46e5;
  background: #fff;
}
.sa-wiz-input.sa-wiz-invalid {
  border-color: #ef4444;
}
.sa-wiz-input-with-status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sa-wiz-input-with-status .sa-wiz-input {
  flex: 1;
  min-width: 0;
}
.sa-wiz-map-status {
  flex-shrink: 0;
  min-width: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1;
}
.sa-wiz-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(79, 70, 229, 0.2);
  border-left-color: #4f46e5;
  border-radius: 50%;
  animation: saSpin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes saSpin {
  to { transform: rotate(360deg); }
}
.sa-wiz-error {
  min-height: 1.25rem;
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #dc2626;
}
.sa-wiz-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.35rem;
}
.sa-wiz-linkish {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #4f46e5;
  cursor: pointer;
  text-decoration: underline;
}
.sa-wiz-preview {
  margin-top: 0.5rem;
}
.sa-wiz-preview img {
  max-height: 120px;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.sa-wizard-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.sa-wiz-footer-btn {
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
}
.sa-wiz-next-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sa-wizard-footer button.secondary {
  background: #e2e8f0;
  color: #334155;
}
.sa-wizard-footer button.secondary:hover {
  background: #cbd5e1;
}
.sa-create-msg {
  margin-top: 12px;
  padding: 0 4px;
}
