/* Nebula — Domain & Site management platform */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #08070b;
  --bg-2: #0d0c12;
  --surface: #11101a;
  --surface-2: #16151f;
  --surface-3: #1d1c28;
  --border: rgba(255, 255, 255, 0.06);
  --border-2: rgba(255, 255, 255, 0.10);
  --border-hover: rgba(168, 85, 247, 0.35);
  --text: #ededf2;
  --text-dim: #a3a1b0;
  --text-mute: #6d6b7a;

  --accent: oklch(0.72 0.27 305);
  --accent-2: oklch(0.62 0.27 305);
  --accent-soft: oklch(0.72 0.27 305 / 0.12);
  --accent-glow: oklch(0.72 0.27 305 / 0.45);

  --success: oklch(0.74 0.16 155);
  --warn: oklch(0.78 0.16 75);
  --danger: oklch(0.66 0.22 22);

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  letter-spacing: -0.005em;
}

/* Page-level radial accents */
.bg-orb {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
}
.bg-orb.a { top: -200px; left: -100px; width: 500px; height: 500px; background: radial-gradient(circle, oklch(0.55 0.27 305 / 0.6), transparent 70%); }
.bg-orb.b { bottom: -250px; right: -150px; width: 600px; height: 600px; background: radial-gradient(circle, oklch(0.45 0.22 280 / 0.4), transparent 70%); }

/* ===== App shell ===== */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* ===== Sidebar ===== */
.sidebar {
  background: linear-gradient(180deg, rgba(13,12,18,0.85), rgba(8,7,11,0.85));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(14px);
}
.sidebar-head {
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 0 14px oklch(0.72 0.27 305 / 0.3), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.sidebar-logo img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-brand { display: flex; flex-direction: column; line-height: 1.1; }
.sidebar-brand .name { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.sidebar-brand .org {
  font-size: 11px; color: var(--text-mute);
  display: flex; align-items: center; gap: 4px;
  margin-top: 2px;
}
.sidebar-brand .org-chev { opacity: 0.5; }

.sidebar-section {
  padding: 16px 12px 8px;
}
.sidebar-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  padding: 0 8px 8px;
  font-weight: 500;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
  position: relative;
  user-select: none;
}
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item.active {
  background: var(--surface-2);
  color: var(--text);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -12px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.85; }
.nav-item .count {
  margin-left: auto;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-mute);
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 4px;
}
.nav-item.active .count { background: var(--accent-soft); color: var(--accent); }
.nav-item .kbd {
  margin-left: auto;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-mute);
  opacity: 0;
  transition: opacity 0.12s;
}
.nav-item:hover .kbd { opacity: 1; }

.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 10px;
}
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.user-card:hover { background: var(--surface); }
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.7 0.2 305), oklch(0.5 0.22 280));
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 11px;
  color: white;
  flex-shrink: 0;
}
.user-card .info { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.user-card .info .name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card .info .email { font-size: 11px; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card .dots { margin-left: auto; color: var(--text-mute); }

/* ===== Main ===== */
.main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(ellipse 800px 400px at 80% -10%, oklch(0.45 0.22 305 / 0.08), transparent),
    var(--bg);
}

.topbar {
  height: 56px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  background: rgba(8, 7, 11, 0.6);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
  z-index: 5;
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); }
.crumbs .sep { color: var(--text-mute); opacity: 0.6; }
.crumbs .cur { color: var(--text); font-weight: 500; }
.topbar-search {
  margin-left: auto;
  width: 280px;
  position: relative;
}
.topbar-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px 7px 32px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.topbar-search input:focus { border-color: var(--border-hover); box-shadow: 0 0 0 3px var(--accent-soft); }
.topbar-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-mute); width: 14px; height: 14px; }
.topbar-search .kbd-hint {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 10px; color: var(--text-mute);
  border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px;
}
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  position: relative;
  transition: background 0.12s, color 0.12s;
}
.icon-btn:hover { background: var(--surface); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn .dot {
  position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-glow);
}

/* ===== Content area ===== */
.page {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
  animation: fadein 0.25s ease;
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-head { margin-bottom: 24px; }
.page-title { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; }
.page-sub { font-size: 13px; color: var(--text-dim); margin: 0; }
.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
  user-select: none;
}
.btn:hover { background: var(--surface-3); border-color: var(--border-hover); }
.btn svg { width: 14px; height: 14px; }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0510;
  font-weight: 600;
  box-shadow: 0 0 0 0 var(--accent-glow), 0 1px 0 rgba(255,255,255,0.1) inset;
}
.btn.primary:hover {
  background: oklch(0.78 0.25 305);
  box-shadow: 0 0 14px var(--accent-glow), 0 1px 0 rgba(255,255,255,0.1) inset;
}
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn.ghost:hover { background: var(--surface); color: var(--text); border-color: transparent; }
.btn.danger { background: transparent; border-color: oklch(0.66 0.22 22 / 0.4); color: var(--danger); }
.btn.danger:hover { background: oklch(0.66 0.22 22 / 0.1); }
.btn.sm { padding: 4px 8px; font-size: 12px; }

/* ===== Cards & surfaces ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title { font-size: 13px; font-weight: 600; }
.card-body { padding: 16px; }

/* ===== Stat row ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-family: var(--font-sans);
  line-height: 1.1;
}
.stat-delta {
  font-size: 11px;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  color: var(--text-dim);
}
.stat-delta.up { color: var(--success); }
.stat-delta.down { color: var(--danger); }
.stat-spark {
  position: absolute;
  right: 12px; top: 12px;
  width: 60px; height: 28px;
  opacity: 0.85;
}

/* ===== Status pills ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.pill.ok { background: oklch(0.74 0.16 155 / 0.1); border-color: oklch(0.74 0.16 155 / 0.25); color: var(--success); }
.pill.ok .dot { background: var(--success); box-shadow: 0 0 6px var(--success); }
.pill.warn { background: oklch(0.78 0.16 75 / 0.1); border-color: oklch(0.78 0.16 75 / 0.25); color: var(--warn); }
.pill.warn .dot { background: var(--warn); }
.pill.danger { background: oklch(0.66 0.22 22 / 0.1); border-color: oklch(0.66 0.22 22 / 0.25); color: var(--danger); }
.pill.danger .dot { background: var(--danger); }
.pill.muted { background: var(--surface-2); border-color: var(--border); color: var(--text-dim); }
.pill.muted .dot { background: var(--text-mute); }
.pill.accent { background: var(--accent-soft); border-color: oklch(0.72 0.27 305 / 0.3); color: var(--accent); }

/* ===== Form ===== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.input, .select, textarea.input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input.mono { font-family: var(--font-mono); }
.input::placeholder { color: var(--text-mute); }

/* ===== Toggle ===== */
.toggle {
  position: relative;
  width: 34px;
  height: 20px;
  background: var(--surface-3);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.toggle::after {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 14px; height: 14px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: all 0.18s;
}
.toggle.on {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.toggle.on::after { left: 16px; background: #0a0510; }

/* ===== Tables ===== */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--text-mute);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.tbl td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tr.row-hover:hover td { background: var(--surface-2); }
.tbl td.mono { font-family: var(--font-mono); }

/* ===== Login ===== */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(180deg, rgba(22,21,31,0.7), rgba(13,12,18,0.7));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.02) inset;
  position: relative;
  z-index: 2;
  animation: rise 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.login-logo {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 0 40px oklch(0.72 0.27 305 / 0.5), 0 0 0 1px rgba(168,85,247,0.3);
  position: relative;
  animation: pulseGlow 3s ease-in-out infinite;
}
.login-logo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 40px oklch(0.72 0.27 305 / 0.5), 0 0 0 1px rgba(168,85,247,0.3); }
  50% { box-shadow: 0 0 60px oklch(0.72 0.27 305 / 0.7), 0 0 0 1px rgba(168,85,247,0.5); }
}
.login h1 { font-size: 22px; font-weight: 600; margin: 0 0 6px; text-align: center; letter-spacing: -0.02em; }
.login .sub { font-size: 13px; color: var(--text-dim); text-align: center; margin: 0 0 28px; }
.oauth-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
}
.oauth-btn:hover { background: var(--surface-3); border-color: var(--border-hover); }
.oauth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0;
  font-size: 11px; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.foot-link {
  text-align: center;
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 18px;
}
.foot-link a { color: var(--accent); text-decoration: none; }
.foot-link a:hover { text-decoration: underline; }

/* ===== Website grid ===== */
.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.site-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.site-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.site-preview {
  height: 140px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.site-preview .browser-chrome {
  position: absolute; top: 0; left: 0; right: 0;
  height: 22px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
  border-bottom: 1px solid var(--border);
}
.site-preview .browser-chrome .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-2); }
.site-thumb {
  position: absolute; top: 22px; left: 0; right: 0; bottom: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
}
.site-info { padding: 12px 14px; }
.site-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.site-domain { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); }
.site-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.site-meta .perf { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); }

/* ===== Modal / drawer ===== */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 50;
  animation: fadein 0.2s;
}
.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  max-width: calc(100vw - 32px);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  z-index: 51;
  overflow: hidden;
  animation: rise 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 15px; font-weight: 600; }
.modal-body { padding: 20px; }
.modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ===== Toast ===== */
.toast-wrap {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
  display: flex; flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  min-width: 280px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  animation: slideIn 0.25s cubic-bezier(0.2,0.9,0.3,1);
}
.toast.ok { border-left: 2px solid var(--success); }
.toast.err { border-left: 2px solid var(--danger); }
.toast.info { border-left: 2px solid var(--accent); }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== Misc ===== */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.tab {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-weight: 500;
  transition: color 0.12s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}

/* ===== Wizard ===== */
.wizard {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 70;
  display: flex; flex-direction: column;
  animation: fadein 0.2s;
}
.wizard-head {
  height: 64px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 16px;
  background: rgba(8,7,11,0.7);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}
.wizard-head .brand { display: flex; align-items: center; gap: 10px; }
.wizard-head .brand .logo { width: 28px; height: 28px; border-radius: 6px; overflow: hidden; background: #000; }
.wizard-head .brand .logo img { width: 100%; height: 100%; object-fit: cover; }
.wizard-head .title { font-size: 14px; font-weight: 600; }
.wizard-steps {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.wizard-step {
  display: flex; align-items: center; gap: 8px;
  padding: 0 6px;
  color: var(--text-mute);
  font-size: 12px;
  font-weight: 500;
}
.wizard-step .num {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface);
}
.wizard-step.done .num { background: var(--accent); border-color: var(--accent); color: #0a0510; }
.wizard-step.done { color: var(--text-dim); }
.wizard-step.cur .num { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.wizard-step.cur { color: var(--text); }
.wizard-step .sep {
  width: 28px; height: 1px;
  background: var(--border);
  margin: 0 4px;
}
.wizard-step.done + .wizard-step .sep,
.wizard-step.cur .sep { background: var(--accent); }

.wizard-body {
  flex: 1;
  overflow-y: auto;
  padding: 40px 24px 120px;
}
.wizard-inner {
  max-width: 720px;
  margin: 0 auto;
  animation: fadein 0.25s;
}
.wizard-inner h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.wizard-inner .lead {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 32px;
}
.wizard-foot {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 72px;
  border-top: 1px solid var(--border);
  background: rgba(8,7,11,0.85);
  backdrop-filter: blur(10px);
  display: flex; align-items: center;
  padding: 0 24px;
  z-index: 71;
}
.wizard-foot .summary {
  margin: 0 auto;
  display: flex; align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}
.wizard-foot .summary b { color: var(--text); font-family: var(--font-mono); font-weight: 600; }

/* Tile grid for choice-based steps */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.tile {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  display: flex; flex-direction: column;
  gap: 6px;
}
.tile:hover { border-color: var(--border-hover); background: var(--surface-2); }
.tile.selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface));
  box-shadow: 0 0 0 1px var(--accent), 0 6px 24px oklch(0.72 0.27 305 / 0.18);
}
.tile .ic {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-dim);
  display: grid; place-items: center;
  margin-bottom: 6px;
}
.tile.selected .ic { background: var(--accent-soft); color: var(--accent); }
.tile .name { font-size: 14px; font-weight: 600; }
.tile .desc { font-size: 12px; color: var(--text-dim); line-height: 1.4; }
.tile .selected-mark {
  position: absolute; top: 12px; right: 12px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  color: #0a0510;
  opacity: 0; transform: scale(0.6);
  transition: all 0.15s;
}
.tile.selected .selected-mark { opacity: 1; transform: scale(1); }

/* Compact tile (for add-ons) */
.tile.compact { padding: 12px 14px; flex-direction: row; align-items: center; gap: 12px; }
.tile.compact .ic { width: 32px; height: 32px; margin-bottom: 0; }
.tile.compact .price { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); font-weight: 500; }
.tile.compact.selected .price { color: var(--accent); }

/* ===== Devices catalog ===== */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.device-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s;
}
.device-card:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.device-photo {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 10px, var(--surface-3) 10px, var(--surface-3) 11px);
  position: relative;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.device-photo .device-shape {
  display: grid; place-items: center;
  color: var(--text-dim);
}
.device-photo .product-code {
  position: absolute;
  bottom: 8px; left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}
.device-photo .stock {
  position: absolute;
  top: 8px; right: 10px;
}
.device-info { padding: 14px; }
.device-cat { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); margin-bottom: 4px; font-weight: 500; }
.device-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.device-desc { font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }
.device-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--bg-2); }
.device-price { font-size: 14px; font-weight: 600; }
.device-price .per { font-size: 11px; color: var(--text-mute); font-weight: 400; margin-left: 2px; }

/* Drawer */
.drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 50;
  animation: fadein 0.2s;
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 560px;
  max-width: 92vw;
  background: var(--surface);
  border-left: 1px solid var(--border-2);
  z-index: 51;
  display: flex;
  flex-direction: column;
  animation: drawerIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.4);
}
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.drawer-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-title { font-size: 16px; font-weight: 600; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-foot { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg-2); display: flex; justify-content: flex-end; gap: 8px; }

/* Promo input */
.promo-row {
  display: flex; gap: 8px; margin: 8px 0;
}
.promo-row .input { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }

/* Receipt-style price summary */
.summary-list {
  display: flex; flex-direction: column;
  gap: 8px;
}
.summary-list .row {
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}
.summary-list .row .v { font-family: var(--font-mono); color: var(--text); }
.summary-list .row.discount .v { color: var(--accent); }
.summary-list .row.total {
  border-top: 1px solid var(--border);
  padding-top: 10px; margin-top: 4px;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.summary-list .row.total .v { font-size: 18px; }

/* Status pills (project status) */
.pill.status-pending { background: oklch(0.78 0.16 75 / 0.1); border-color: oklch(0.78 0.16 75 / 0.25); color: var(--warn); }
.pill.status-design { background: oklch(0.7 0.18 250 / 0.1); border-color: oklch(0.7 0.18 250 / 0.25); color: oklch(0.78 0.18 250); }
.pill.status-dev { background: var(--accent-soft); border-color: oklch(0.72 0.27 305 / 0.3); color: var(--accent); }
.pill.status-review { background: oklch(0.7 0.18 200 / 0.1); border-color: oklch(0.7 0.18 200 / 0.25); color: oklch(0.78 0.18 200); }

/* Progress bar w/ phases */
.phases { display: flex; align-items: center; gap: 0; margin: 16px 0; }
.phase {
  flex: 1;
  position: relative;
  text-align: center;
}
.phase .bar { height: 2px; background: var(--surface-3); border-radius: 2px; position: relative; }
.phase.done .bar { background: var(--accent); }
.phase.cur .bar { background: linear-gradient(90deg, var(--accent) 50%, var(--surface-3) 50%); }
.phase .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 2px solid var(--bg-2);
  position: absolute;
  left: 50%; top: -4px;
  transform: translateX(-50%);
}
.phase.done .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.phase.cur .dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 8px var(--accent-glow); }
.phase .name {
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 12px;
  font-weight: 500;
}
.phase.done .name, .phase.cur .name { color: var(--text); }
.phase.cur .name { color: var(--accent); }

/* Feature catalog rows */
.feat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  cursor: pointer;
  transition: all 0.12s;
}
.feat-row:hover { border-color: var(--border-hover); background: var(--surface-2); }
.feat-row .ic { width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); color: var(--text-dim); display: grid; place-items: center; flex-shrink: 0; }
.feat-row .body { flex: 1; min-width: 0; }
.feat-row .body .title { font-size: 13px; font-weight: 500; }
.feat-row .body .desc { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.feat-row .price { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); flex-shrink: 0; }
.feat-row .price b { color: var(--text); font-weight: 600; }

/* Cart pill in topbar */
.cart-btn {
  display: flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-mono);
}
.cart-btn:hover { background: var(--surface-2); border-color: var(--border-hover); }
.cart-btn .badge {
  background: var(--accent);
  color: #0a0510;
  border-radius: 999px;
  padding: 1px 6px;
  font-weight: 700;
  font-size: 10px;
}

/* Custom scrollbar */
.page::-webkit-scrollbar, body::-webkit-scrollbar { width: 8px; height: 8px; }
.page::-webkit-scrollbar-track, body::-webkit-scrollbar-track { background: transparent; }
.page::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }
.page::-webkit-scrollbar-thumb:hover { background: var(--border-2); }

/* Activity feed */
.activity-item {
  display: flex; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  background: var(--surface-2);
  color: var(--text-dim);
}
.activity-icon.ok { color: var(--success); background: oklch(0.74 0.16 155 / 0.1); }
.activity-icon.purp { color: var(--accent); background: var(--accent-soft); }
.activity-icon.warn { color: var(--warn); background: oklch(0.78 0.16 75 / 0.1); }
.activity-icon svg { width: 14px; height: 14px; }
.activity-body { flex: 1; min-width: 0; }
.activity-title { font-size: 13px; }
.activity-time { font-size: 11px; color: var(--text-mute); margin-top: 2px; font-family: var(--font-mono); }

/* Domain availability check states */
.domain-result {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  animation: fadein 0.2s;
}
.domain-result .name { font-family: var(--font-mono); font-size: 14px; flex: 1; }
.domain-result .price { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }
.domain-result.available { border-color: oklch(0.74 0.16 155 / 0.3); }
.domain-result.taken { opacity: 0.6; }

/* Code/DNS block */
.dns-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  white-space: pre;
  overflow-x: auto;
}

/* Two-col layout */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

/* Mini chart */
.bar-chart {
  display: flex; align-items: flex-end; gap: 3px;
  height: 80px;
  padding: 8px 0;
}
.bar-chart .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), oklch(0.55 0.22 305));
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  position: relative;
  transition: opacity 0.15s;
}
.bar-chart .bar:hover { opacity: 0.8; }

/* Plan card */
.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
  position: relative;
  transition: all 0.15s;
}
.plan-card.current {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface));
  box-shadow: 0 0 0 1px var(--accent), 0 10px 30px oklch(0.72 0.27 305 / 0.15);
}
.plan-card .plan-name { font-size: 14px; font-weight: 600; }
.plan-card .plan-price { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 8px 0 4px; font-family: var(--font-sans); }
.plan-card .plan-price .per { font-size: 13px; color: var(--text-mute); font-weight: 400; }
.plan-card .plan-feat { font-size: 12px; color: var(--text-dim); margin: 12px 0 16px; line-height: 1.7; }
.plan-card .plan-feat li { list-style: none; padding-left: 18px; position: relative; }
.plan-card .plan-feat li::before {
  content: ''; position: absolute; left: 4px; top: 8px; width: 6px; height: 3px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* Usage meter */
.meter {
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.meter > div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), oklch(0.78 0.27 305));
  border-radius: 999px;
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.meter.danger > div { background: linear-gradient(90deg, var(--danger), oklch(0.7 0.22 22)); box-shadow: 0 0 8px oklch(0.66 0.22 22 / 0.4); }
.meter.warn > div { background: linear-gradient(90deg, var(--warn), oklch(0.85 0.16 75)); box-shadow: none; }

/* Command palette */
.cmdk {
  position: fixed;
  top: 18%; left: 50%;
  transform: translateX(-50%);
  width: 560px;
  max-width: calc(100vw - 32px);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(168,85,247,0.1);
  z-index: 60;
  overflow: hidden;
  animation: rise 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.cmdk-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 16px 20px 16px 48px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  font-family: inherit;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.cmdk-search-icon {
  position: absolute; left: 18px; top: 18px;
  color: var(--text-mute);
  width: 18px; height: 18px;
}
.cmdk-list { max-height: 320px; overflow-y: auto; padding: 8px; }
.cmdk-group-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-mute); padding: 8px 8px 4px;
}
.cmdk-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
}
.cmdk-item.active { background: var(--accent-soft); color: var(--accent); }
.cmdk-item svg { width: 14px; height: 14px; opacity: 0.7; }
.cmdk-item .arrow { margin-left: auto; opacity: 0.6; }
