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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #f4f6f9;
  --surface:       #ffffff;
  --border:        #e2e8f0;
  --border-strong: #cbd5e1;

  --text:          #0f172a;
  --text-muted:    #64748b;
  --text-subtle:   #94a3b8;

  --primary:       #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-ring:  rgba(79,70,229,.25);

  --success:       #10b981;
  --success-bg:    #ecfdf5;
  --success-text:  #065f46;

  --warning:       #f59e0b;
  --warning-bg:    #fffbeb;
  --warning-text:  #92400e;

  --danger:        #ef4444;
  --danger-bg:     #fef2f2;
  --danger-text:   #991b1b;

  --info:          #3b82f6;
  --info-bg:       #eff6ff;
  --info-text:     #1e40af;

  --sidebar-w:     252px;
  --header-h:      60px;

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.1);
}

html { font-size: 14px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.4;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 0 0 3px var(--primary-ring); text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--bg); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: rgba(239,68,68,.2); }
.btn-danger:hover { background: var(--danger); color: #fff; text-decoration: none; }
.btn-sm { padding: .35rem .75rem; font-size: .8125rem; }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; }
.btn-xl { padding: .9rem 1.75rem; font-size: 1.0625rem; border-radius: var(--r); }

/* ── Badges / Chips ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .6rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger-text);  }
.badge-info    { background: var(--info-bg);    color: var(--info-text);    }
.badge-neutral { background: #f1f5f9;           color: var(--text-muted);   }

.badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.card-header h2, .card-header h3 { font-size: 1rem; font-weight: 600; }
.card-body { padding: 1.5rem; }

/* ── Stat cards ─────────────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.stat-card .label { font-size: .8125rem; color: var(--text-muted); font-weight: 500; margin-bottom: .4rem; }
.stat-card .value { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); line-height: 1; }
.stat-card .sub { font-size: .8125rem; color: var(--text-muted); margin-top: .35rem; }
.stat-card .icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .75rem;
  font-size: 1.1rem;
}

/* ── Tables ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead th {
  text-align: left;
  padding: .75rem 1rem;
  font-weight: 600;
  font-size: .8125rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: #fafafa;
  white-space: nowrap;
}
tbody td { padding: .9rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfc; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 500; font-size: .875rem; margin-bottom: .4rem; }
.form-hint { font-size: .8125rem; color: var(--text-muted); margin-top: .3rem; }
.form-input {
  width: 100%;
  padding: .6rem .85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: .9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.5;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.5rem;
}

/* ── Progress bar ───────────────────────────────────────────────────────── */
.progress { background: var(--border); border-radius: 99px; height: 6px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 99px; background: var(--primary); transition: width .4s; }
.progress-bar.success { background: var(--success); }
.progress-bar.warning { background: var(--warning); }

/* ── Timeline ───────────────────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  width: 28px; height: 28px; min-width: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  position: relative;
  z-index: 1;
}
.timeline-dot.done { background: var(--success-bg); color: var(--success); border: 2px solid var(--success); }
.timeline-dot.active { background: var(--primary-light); color: var(--primary); border: 2px solid var(--primary); }
.timeline-dot.pending { background: #f1f5f9; color: var(--text-subtle); border: 2px solid var(--border); }
.timeline-item:not(:last-child) .timeline-dot::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 1.5rem - 28px);
  background: var(--border);
}
.timeline-content { padding-top: .2rem; flex: 1; }
.timeline-content strong { display: block; font-weight: 600; font-size: .9375rem; }
.timeline-content span { font-size: .8125rem; color: var(--text-muted); }

/* ── Auth layout ────────────────────────────────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}
.auth-brand { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 2.5rem; display: flex; align-items: center; gap: .5rem; }
.auth-brand .logo-mark { width: 30px; height: 30px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: .4rem; }
.auth-box p { color: var(--text-muted); margin-bottom: 2rem; font-size: .9375rem; }
.auth-hero {
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 50%, #7c3aed 100%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}
.auth-hero canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.auth-hero::before { display: none !important; }
.auth-hero-content { 
  position: relative; 
  z-index: 1; 
  max-width: 440px;
  padding: 3.5rem;
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}
.auth-hero h2 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.auth-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.auth-hero-feature {
  color: white;
  font-weight: 500;
  margin-bottom: 1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: .75rem;
  opacity: 1;
}
.auth-hero-feature::before { 
  content: '✓'; 
  width: 20px; 
  height: 20px; 
  background: rgba(255,255,255,.2); 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: .75rem; 
  flex-shrink: 0; 
}

/* ── App shell ──────────────────────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}
.sidebar-logo {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  margin-bottom: .5rem;
  text-decoration: none;
}
.sidebar-logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px;
  background: var(--primary);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-section { padding: .5rem 1rem; margin-bottom: .25rem; }
.sidebar-section-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-subtle); padding: .5rem .25rem .25rem; display: block; }
.nav-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .75rem;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .12s, color .12s;
  text-decoration: none;
}
.nav-item:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.nav-item .icon { font-size: 1rem; width: 18px; text-align: center; flex-shrink: 0; }
.nav-badge { margin-left: auto; background: var(--primary); color: white; font-size: .7rem; font-weight: 700; padding: .1rem .4rem; border-radius: 99px; }

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem;
  border-radius: var(--r);
  transition: background .12s;
  text-decoration: none;
  width: 100%;
}
.user-chip:hover { background: var(--bg); text-decoration: none; }
.avatar {
  width: 32px; height: 32px; min-width: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .75rem;
}
.avatar-lg { width: 48px; height: 48px; font-size: 1rem; }
.user-chip-info { flex: 1; min-width: 0; }
.user-chip-info strong { display: block; font-weight: 600; font-size: .8125rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip-info span { font-size: .75rem; color: var(--text-muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.signout-btn {
  padding: .4rem;
  color: var(--text-subtle);
  cursor: pointer;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  transition: background .12s, color .12s;
}
.signout-btn:hover { background: var(--danger-bg); color: var(--danger); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}
.topbar-left h1 { font-size: 1rem; font-weight: 600; }
.topbar-left p { font-size: .8125rem; color: var(--text-muted); }
.topbar-right { display: flex; align-items: center; gap: .75rem; }

.main-content-wrap { padding: 1.75rem; flex: 1; }

.content { padding: 2rem; max-width: 1200px; }

/* ── Empty state ────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: .5; }
.empty-state h3 { font-size: 1.125rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.empty-state p { max-width: 360px; margin: 0 auto 1.5rem; }

/* ── Domain name display ────────────────────────────────────────────────── */
.domain-name { font-family: 'SF Mono', 'Fira Code', monospace; font-weight: 600; }

/* ── Page header ────────────────────────────────────────────────────────── */
.page-header { margin-bottom: 1.75rem; }
.page-header h1 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .2rem; }
.page-header p { color: var(--text-muted); font-size: .9375rem; }
.page-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }

/* ── Section tabs ───────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab { padding: .65rem 1rem; font-size: .875rem; font-weight: 500; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab:hover { color: var(--text); }

/* ── Divider ────────────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ── Info row ───────────────────────────────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.info-item .info-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-subtle); margin-bottom: .25rem; }
.info-item .info-value { font-size: .9375rem; font-weight: 500; color: var(--text); }

/* ── Landing page specific ──────────────────────────────────────────────── */
.landing { background: white; }
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.landing-hero-visual {
  background: linear-gradient(145deg, #f0f4ff, #f8faff);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  box-shadow: 0 24px 64px rgba(79,70,229,.1);
  position: relative;
  overflow: hidden;
}
.landing-hero-visual canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.landing-hero-visual > * { position: relative; z-index: 1; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .9375rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: .75rem; }

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .8125rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(79,70,229,.15);
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.125rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; }
.hero-cta { display: flex; align-items: center; gap: 1rem; }
.hero-trust { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; font-size: .8125rem; color: var(--text-muted); }
.hero-trust-item { display: flex; align-items: center; gap: .35rem; }

.hero-visual {
  background: linear-gradient(135deg, #f8faff, #eef2ff);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.hero-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.hero-card:last-child { margin-bottom: 0; }
.hero-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.hero-card-domain { font-family: monospace; font-weight: 700; font-size: 1rem; color: var(--text); }

.how-section { background: var(--bg); padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label { text-align: center; color: var(--primary); font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.section-title { text-align: center; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.section-sub { text-align: center; color: var(--text-muted); font-size: 1.0625rem; max-width: 560px; margin: 0 auto 3.5rem; line-height: 1.7; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.125rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  border: 2px solid rgba(79,70,229,.2);
}
.step h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: .5rem; }
.step p { color: var(--text-muted); font-size: .9375rem; line-height: 1.6; }

.pricing-section { padding: 5rem 2rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 700px; margin: 0 auto; }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.pricing-tier { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .75rem; }
.pricing-card.featured .pricing-tier { color: var(--primary); }
.pricing-price { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .25rem; }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-desc { color: var(--text-muted); font-size: .9375rem; margin-bottom: 1.5rem; }
.pricing-features { list-style: none; margin-bottom: 1.75rem; }
.pricing-features li { display: flex; align-items: center; gap: .6rem; font-size: .9375rem; padding: .4rem 0; color: var(--text-muted); }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }

.landing-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: .875rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* ── API Docs ───────────────────────────────────────────────────────────── */
.code-block {
  display: block;
  padding: 1rem;
  background: #1e293b;
  color: #f8fafc;
  border-radius: var(--r-sm);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: .875rem;
  line-height: 1.5;
  overflow-x: auto;
  border: 1px solid #334155;
}
.code-block.small { font-size: .8125rem; padding: .75rem 1rem; }
.code-block code { color: inherit; background: transparent; padding: 0; }

.api-method-chip {
  display: inline-flex;
  align-items: center;
  padding: .2rem .5rem;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
  background: var(--info-bg);
  color: var(--info-text);
  margin-right: .5rem;
}
.api-method-chip.post { background: var(--success-bg); color: var(--success-text); }
.api-method-chip.put { background: var(--warning-bg); color: var(--warning-text); }
.api-method-chip.delete { background: var(--danger-bg); color: var(--danger-text); }

.api-route {
  font-family: monospace;
  font-weight: 600;
  color: var(--text);
  font-size: .9375rem;
}

.api-reference-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.api-reference-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.api-reference-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }

.timeline-list { list-style: none; padding: 0; }
.timeline-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .25rem;
  position: relative;
}
.timeline-list li:last-child { border-bottom: 0; }
.timeline-list li strong { font-size: .9375rem; font-weight: 600; }
.timeline-list li span { font-size: .8125rem; color: var(--text-muted); font-family: monospace; }
.timeline-list li small { font-size: .75rem; color: var(--text-subtle); }
.timeline-list li form { position: absolute; right: 0; top: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: .8125rem; }
.text-xs { font-size: .75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }


/* ============================================================
   LEGACY COMPAT
   Maps old class names to the new design language.
   Allows un-migrated content views and admin pages to render
   correctly without any HTML changes.
   ============================================================ */

/* --- Buttons (old .button class) --------------------------------- */
.button {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.1rem; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 500; cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit; line-height: 1.4;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, box-shadow .15s;
  background: var(--primary); color: #fff;
}
.button:hover { background: var(--primary-hover); text-decoration: none; }
.button.primary { background: var(--primary); color: #fff; }
.button.primary:hover { background: var(--primary-hover); }
.button.ghost {
  background: var(--surface); color: var(--text);
  border-color: var(--border); box-shadow: var(--shadow-sm);
}
.button.ghost:hover { background: var(--bg); }
.button.danger { background: var(--danger-bg); color: var(--danger); border-color: rgba(239,68,68,.2); }
.button.danger:hover { background: var(--danger); color: #fff; }
.button.sm, .button.small { padding: .35rem .75rem; font-size: .8125rem; }
.button.full { width: 100%; justify-content: center; }

/* --- Panels ---------------------------------------------------- */
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.panel.no-padding { padding: 0; }
.panel-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem;
}
.panel-header h2 { font-size: 1rem; font-weight: 600; margin-bottom: .2rem; }
.panel-header p, .panel-header .muted { font-size: .8125rem; color: var(--text-muted); }
.panel-grid,
.panel-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.panel-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }

/* --- Typography ------------------------------------------------- */
.eyebrow {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--primary); display: block; margin-bottom: .35rem;
}
.muted { color: var(--text-muted); }

/* --- Pills / badges (old class names) --------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .65rem; border-radius: 99px;
  font-size: .75rem; font-weight: 600;
  background: #f1f5f9; color: var(--text-muted);
}
.pill.green, .pill.good { background: var(--success-bg); color: var(--success-text); }
.pill.blue { background: var(--info-bg); color: var(--info-text); }
.pill.yellow, .pill.warning, .pill.orange { background: var(--warning-bg); color: var(--warning-text); }
.pill.red, .pill.danger { background: var(--danger-bg); color: var(--danger-text); }

/* --- Status chips ---------------------------------------------- */
.status-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .65rem; border-radius: 99px;
  font-size: .75rem; font-weight: 600;
  background: #f1f5f9; color: var(--text-muted);
}
.status-chip::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-chip.monitoring,
.status-chip.watching { background: var(--info-bg); color: var(--info-text); }
.status-chip.secured,
.status-chip.completed,
.status-chip.ordered,
.status-chip.active { background: var(--success-bg); color: var(--success-text); }
.status-chip.action_required,
.status-chip.paused,
.status-chip.approval_required { background: var(--warning-bg); color: var(--warning-text); }
.status-chip.cancelled,
.status-chip.expired { background: var(--danger-bg); color: var(--danger-text); }
.status-chip.ready_to_register,
.status-chip.registration_queued { background: var(--primary-light); color: var(--primary); }
.status-chip.available { background: var(--success-bg); color: var(--success-text); }
.status-chip.sm { font-size: .7rem; padding: .15rem .5rem; }

/* --- Section header -------------------------------------------- */
.section-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 1.75rem; flex-wrap: wrap;
}
.section-header h1 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .2rem; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.view-switcher {
  display: flex; gap: .25rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 2px;
}

/* --- Old form style -------------------------------------------- */
.form-grid { display: flex; flex-direction: column; gap: 1rem; }
.form-grid label { display: flex; flex-direction: column; gap: .35rem; font-size: .875rem; }
.form-grid label span { font-weight: 500; }
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%; padding: .6rem .85rem;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  font-size: .9375rem; font-family: inherit; color: var(--text);
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
  line-height: 1.5;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.form-grid.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }

.inline-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .75rem; font-size: .875rem; }
.inline-links a { color: var(--primary); }

/* --- Flash alerts --------------------------------------------- */
.alert {
  padding: .75rem 1.1rem; border-radius: var(--r-sm);
  font-size: .875rem; margin-bottom: 1rem; font-weight: 500;
}
.alert.success { background: var(--success-bg); color: var(--success-text); border: 1px solid rgba(16,185,129,.2); }
.alert.error { background: var(--danger-bg); color: var(--danger-text); border: 1px solid rgba(239,68,68,.2); }

/* --- Sandbox banner -------------------------------------------- */
.sandbox-banner {
  background: var(--warning-bg); border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--r-sm); padding: .65rem 1rem;
  display: flex; align-items: center; gap: .75rem;
  font-size: .8125rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.sandbox-banner strong { font-weight: 600; color: var(--warning-text); }
.sandbox-banner span { color: var(--warning-text); opacity: .85; }

/* --- Tab nav (old .tab-nav / .tab-link) ----------------------- */
.tab-nav {
  display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem;
}
.tab-link {
  padding: .65rem 1rem; font-size: .875rem; font-weight: 500;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  margin-bottom: -1px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
}
.tab-link:hover { color: var(--text); text-decoration: none; }
.tab-link.active { color: var(--primary); border-bottom-color: var(--primary); }

/* --- Workspace switcher & mode chip (in topbar) --------------- */
.workspace-switcher {
  display: flex; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 2px;
}
.mode-chip {
  padding: .28rem .75rem; border-radius: var(--r-sm);
  font-size: .8125rem; font-weight: 500; cursor: pointer;
  border: none; background: transparent; color: var(--text-muted);
  font-family: inherit; transition: background .12s;
}
.mode-chip.active {
  background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* --- Profile menu (used in new topbar) ------------------------ */
.profile-menu-wrap { position: relative; }
.profile-menu-trigger {
  display: flex; align-items: center; gap: .45rem;
  padding: .3rem .5rem; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; font-family: inherit;
  transition: background .12s;
}
.profile-menu-trigger:hover { background: var(--bg); }
.profile-avatar {
  width: 30px; height: 30px; min-width: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
}
.profile-menu-caret { font-size: .7rem; color: var(--text-muted); }
.profile-menu-dropdown {
  position: absolute; right: 0; top: calc(100% + .5rem);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  min-width: 220px; z-index: 100; overflow: hidden;
}
.profile-menu-header {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
}
.profile-menu-header strong { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .15rem; }
.profile-menu-header small { color: var(--text-muted); font-size: .8125rem; display: block; }
.profile-menu-item {
  display: block; padding: .65rem 1.25rem;
  font-size: .875rem; color: var(--text); text-decoration: none; cursor: pointer;
}
.profile-menu-item:hover { background: var(--bg); text-decoration: none; }
.profile-menu-signout { border-top: 1px solid var(--border); }
.profile-signout-btn { color: var(--danger) !important; }

/* --- Mobile nav ----------------------------------------------- */
.mobile-topbar {
  display: none; align-items: center; justify-content: space-between;
  padding: .75rem 1.25rem; background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20; flex-shrink: 0;
}
.mobile-brand { font-weight: 700; font-size: .9375rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.mobile-brand:hover { text-decoration: none; }
.mobile-menu-button {
  display: flex; flex-direction: column; gap: 4px;
  width: 36px; height: 36px; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); cursor: pointer; padding: 0;
}
.mobile-menu-button span { width: 18px; height: 2px; background: var(--text); border-radius: 1px; display: block; }

.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.25); z-index: 30; cursor: pointer;
  border: none;
}
body.menu-open .sidebar-overlay { display: block; }

/* --- Footer --------------------------------------------------- */
.app-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.75rem; margin-top: auto;
  border-top: 1px solid var(--border);
  font-size: .8125rem; color: var(--text-muted);
  flex-shrink: 0;
}
.app-footer-links { display: flex; gap: 1.25rem; }
.app-footer-links a { color: var(--text-muted); }
.app-footer-links a:hover { color: var(--text); }

/* --- Old auth card (guest pages) ------------------------------ */
.auth-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-md);
  padding: 2.5rem; max-width: 420px;
  margin: 5rem auto 2rem; width: 100%;
}
.auth-card.wide { max-width: 860px; max-height: none; }
.auth-card h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: .4rem; }

/* --- Signup two-column layout --------------------------------- */
.signup-shell {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; overflow: hidden; padding: 0 !important;
}
.signup-hero {
  background: linear-gradient(135deg, #312e81, #4f46e5);
  color: white; padding: 3rem;
}
.signup-hero .eyebrow { color: rgba(255,255,255,.7); }
.signup-hero h1 { color: white; font-size: 1.5rem; margin-bottom: 1rem; }
.signup-hero .muted { color: rgba(255,255,255,.7); margin-bottom: 1.5rem; }
.signup-points { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.signup-points li strong { display: block; font-weight: 600; margin-bottom: .2rem; }
.signup-points li span { font-size: .875rem; opacity: .8; }
.signup-panel { padding: 2.5rem; }
.captcha-field { display: flex; flex-direction: column; gap: .5rem; grid-column: 1 / -1; }
.captcha-helper { font-size: .8125rem; color: var(--text-muted); }

/* --- Guest shell ---------------------------------------------- */
.guest-backdrop { display: none; }
.guest-wrapper {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 2rem; background: var(--bg);
}

/* --- Callouts ------------------------------------------------- */
.callout {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1rem 1.25rem;
  margin-bottom: 1.25rem; font-size: .875rem;
}
.callout.warning { background: var(--warning-bg); border-color: rgba(245,158,11,.25); color: var(--warning-text); }
.callout.subtle { background: var(--bg); }
.callout strong { display: block; font-weight: 600; margin-bottom: .2rem; }
.callout p { margin: .2rem 0 .5rem; opacity: .85; }
.callout a.button { margin-top: .5rem; }

/* --- Dashboard: stats grid ------------------------------------ */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.stats-grid article.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.stats-grid article.stat-card > span { font-size: .8125rem; color: var(--text-muted); font-weight: 500; display: block; margin-bottom: .3rem; }
.stats-grid article.stat-card > strong { font-size: 1.75rem; font-weight: 700; display: block; line-height: 1; margin-bottom: .3rem; }

/* --- Dashboard: hero card ------------------------------------- */
.dashboard-hero-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow);
  padding: 2rem; display: grid;
  grid-template-columns: 1fr 300px; gap: 2rem;
  margin-bottom: 1.5rem; align-items: start;
}
.hero-copy h1 { font-size: 1.125rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.3; }
.hero-copy p { font-size: .875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.hero-side { display: flex; flex-direction: column; gap: .75rem; }

.dashboard-greeting { font-size: 1.75rem; font-weight: 800; color: var(--text); margin-bottom: .4rem; letter-spacing: -.02em; }

.dashboard-search-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.25rem;
  display: flex; flex-direction: column; gap: .85rem;
}
.dashboard-search-form { display: flex; gap: .5rem; }
.dashboard-search-form input {
  flex: 1; padding: .6rem .85rem;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  font-size: .9375rem; font-family: inherit; background: var(--surface);
  color: var(--text);
}
.dashboard-search-form input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring);
}

.dashboard-radio {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem; border: 1px solid var(--border);
  border-radius: var(--r-sm); background: var(--surface); cursor: pointer;
}
.dashboard-radio input { margin-top: .2rem; accent-color: var(--primary); }
.dashboard-radio strong { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .1rem; }
.dashboard-radio small { font-size: .8125rem; color: var(--text-muted); }

.toggle-card {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem; border: 1px solid var(--border);
  border-radius: var(--r-sm); background: var(--surface); cursor: pointer;
}
.toggle-card input { margin-top: .2rem; accent-color: var(--primary); }
.toggle-card-body strong { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .1rem; }
.toggle-card-body small { font-size: .8125rem; color: var(--text-muted); }

.dashboard-search-note { font-size: .8125rem; color: var(--text-muted); }

.summary-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1rem 1.1rem; font-size: .875rem;
}
.summary-card strong { display: block; font-weight: 600; margin-bottom: .25rem; font-size: .9375rem; }
.summary-card small { color: var(--text-muted); font-size: .8125rem; }
.preview-domain-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.preview-domain-row > div strong { display: block; font-weight: 600; font-size: .875rem; }
.preview-domain-row > div small { font-size: .75rem; color: var(--text-muted); }
.progress-row { background: var(--border); border-radius: 99px; height: 6px; overflow: hidden; margin-bottom: .4rem; }
.progress-row span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

/* --- Dashboard: CTA strip ------------------------------------- */
.dashboard-cta-strip {
  background: var(--primary-light); border: 1px solid rgba(79,70,229,.15);
  border-radius: var(--r-lg); padding: 1.1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.dashboard-cta-strip strong { display: block; font-weight: 600; color: var(--primary); font-size: .9375rem; }
.dashboard-cta-strip span { font-size: .8125rem; color: var(--text-muted); }

/* --- Empty card ----------------------------------------------- */
.empty-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 3rem 2rem;
  text-align: center; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
}
.empty-card > div { max-width: 360px; }
.empty-card h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.empty-actions { display: flex; gap: .75rem; justify-content: center; margin-top: 1rem; }

/* --- Activity chart ------------------------------------------- */
.activity-chart { display: flex; flex-direction: column; gap: 1rem; }
.activity-chart-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.activity-summary-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: .75rem; text-align: center;
}
.activity-summary-card span { font-size: .75rem; color: var(--text-muted); display: block; margin-bottom: .25rem; }
.activity-summary-card strong { font-size: 1.25rem; font-weight: 700; }
.activity-chart-grid { display: grid; grid-template-columns: repeat(14, 1fr); gap: .25rem; }
.activity-chart-day { text-align: center; font-size: .625rem; color: var(--text-subtle); }
.activity-chart-day.is-active { color: var(--primary); }
.activity-bars { height: 40px; display: flex; align-items: flex-end; justify-content: center; gap: 1px; margin-bottom: .25rem; }
.activity-bar { width: 6px; border-radius: 2px 2px 0 0; min-height: 4px; }
.activity-bar.created { background: var(--primary); }
.activity-bar.completed { background: var(--success); }
.activity-badge-row { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
.activity-badge { font-size: .6rem; padding: .05rem .25rem; border-radius: 3px; }
.activity-badge.created { background: var(--primary-light); color: var(--primary); }
.activity-badge.completed { background: var(--success-bg); color: var(--success-text); }
.activity-quiet-indicator { font-size: .625rem; color: var(--text-subtle); }
.chart-legend { display: flex; gap: 1rem; font-size: .75rem; color: var(--text-muted); }
i.legend-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .25rem; vertical-align: middle; }
i.legend-swatch.created { background: var(--primary); }
i.legend-swatch.completed { background: var(--success); }
i.legend-swatch.tracking, i.legend-swatch.watching { background: var(--info); }
i.legend-swatch.secured { background: var(--success); }

/* --- Portfolio meter ------------------------------------------ */
.portfolio-meter { height: 12px; border-radius: 99px; overflow: hidden; display: flex; margin-bottom: 1rem; }
.portfolio-meter-segment { height: 100%; }
.portfolio-meter-segment.tracking,
.portfolio-meter-segment.watching { background: var(--info); }
.portfolio-meter-segment.secured,
.portfolio-meter-segment.completed,
.portfolio-meter-segment.ordered { background: var(--success); }
.portfolio-meter-segment.action_required,
.portfolio-meter-segment.paused { background: var(--warning); }
.portfolio-legend { display: flex; flex-direction: column; gap: .5rem; }
.portfolio-legend-row {
  display: flex; align-items: center; gap: .5rem; font-size: .875rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: .6rem .75rem;
}
.portfolio-legend-label { flex: 1; display: flex; align-items: center; gap: .35rem; color: var(--text-muted); }
.portfolio-legend-row strong { font-weight: 600; }
.portfolio-legend-row small { color: var(--text-subtle); font-size: .75rem; }
.chart-placeholder {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 2rem; text-align: center;
  font-size: .875rem; color: var(--text-muted);
}

/* --- Service mix ---------------------------------------------- */
.service-mix-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; }
.service-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 1rem; font-size: .875rem;
}
.service-card small { display: block; color: var(--text-muted); font-size: .8125rem; }
.service-card strong { display: block; font-size: 1.25rem; font-weight: 700; margin: .25rem 0; }

/* --- TLD list ------------------------------------------------- */
.tld-grid { display: flex; flex-direction: column; gap: .5rem; }
.tld-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-sm);
}
.tld-item div strong { font-weight: 600; display: block; }
.tld-item div small { font-size: .75rem; color: var(--text-muted); }

/* --- Quick-add / checklist ------------------------------------ */
.quick-add-card {
  background: var(--primary-light); border: 1px solid rgba(79,70,229,.15);
  border-radius: var(--r-lg); padding: 1.5rem;
}
.quick-add-card h2 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.quick-add-card p { font-size: .875rem; color: var(--text-muted); margin-bottom: 1rem; }
.check-list { display: flex; flex-direction: column; gap: .5rem; }
.check-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; color: var(--text-muted);
}
.check-item::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* --- Recent list ---------------------------------------------- */
.recent-list { display: flex; flex-direction: column; }
.recent-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 0; border-bottom: 1px solid var(--border); font-size: .875rem;
}
.recent-item:last-child { border-bottom: 0; }
.recent-item > div strong { display: block; font-weight: 500; margin-bottom: .1rem; }
.recent-item > div small { color: var(--text-muted); font-size: .8125rem; }
.domain-inline-link { color: var(--primary); font-weight: 500; }

/* --- Pricing list --------------------------------------------- */
.pricing-list { display: flex; flex-direction: column; }
.price-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 0; border-bottom: 1px solid var(--border);
}
.price-item:last-child { border-bottom: 0; }
.price-item > div strong { font-weight: 600; font-size: .9375rem; display: block; }
.price-item > div small { font-size: .8125rem; color: var(--text-muted); }

/* --- Domain card grid (backorders list) ----------------------- */
.domain-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.domain-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.25rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .85rem; margin-bottom: 0;
}
.domain-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.domain-info strong { font-size: .9375rem; font-weight: 600; display: block; margin-bottom: .2rem; }
.domain-info strong a { color: var(--text); }
.domain-info strong a:hover { color: var(--primary); }
.service-tag {
  font-size: .75rem; font-weight: 600; padding: .15rem .5rem;
  border-radius: var(--r-sm); background: #f1f5f9; color: var(--text-muted);
  white-space: nowrap;
}
.service-tag.expiry_alert { background: var(--info-bg); color: var(--info-text); }
.domain-metrics { display: flex; gap: 1.25rem; }
.metric span { font-size: .75rem; color: var(--text-muted); display: block; }
.metric strong { font-size: .875rem; font-weight: 600; }
.domain-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--border); }
.payment-info { display: flex; align-items: center; gap: .35rem; font-size: .8125rem; color: var(--text-muted); }
.payment-status { font-size: .8125rem; font-weight: 600; }
.payment-status.paid { color: var(--success); }
.payment-status.unpaid { color: var(--danger); }
.card-actions { display: flex; gap: .5rem; }
.table-actions { display: flex; gap: .5rem; justify-content: flex-end; }

/* Domain cell in tables */
.domain-cell strong { display: block; font-weight: 500; }
.domain-cell span { font-size: .8125rem; color: var(--text-muted); }
.domain-cell a { color: var(--text); }
.domain-cell a:hover { color: var(--primary); }
.expiry-cell strong { display: block; font-weight: 500; }
.expiry-cell small { font-size: .8125rem; color: var(--text-muted); }
.text-danger { color: var(--danger) !important; }
.text-right { text-align: right; }

/* Empty state in a panel */
.panel.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state-icon { margin-bottom: 1rem; color: var(--text-subtle); }
.empty-state h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: .5rem; }
.empty-state .muted { max-width: 360px; margin: 0 auto 1.5rem; }

/* --- Old nav-link (admin sub-navs etc) ------------------------ */
.nav-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .75rem; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 500; color: var(--text-muted);
  transition: background .12s, color .12s; text-decoration: none; cursor: pointer;
}
.nav-link:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* --- Stack list / inline actions (settings) ------------------- */
.stack-list { display: flex; flex-direction: column; gap: 0; list-style: none; padding: 0; }
.stack-list li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--border);
  font-size: .875rem;
}
.stack-list li:last-child { border-bottom: 0; }
.stack-list li strong { display: block; font-weight: 600; margin-bottom: .1rem; }
.stack-list li span { font-size: .8125rem; color: var(--text-muted); }
.stack-list.compact li { padding: .65rem 0; }
.inline-actions { display: flex; gap: .5rem; align-items: center; flex-shrink: 0; }

/* --- Support type cards --------------------------------------- */
.support-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.support-type-card {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .85rem; border: 1px solid var(--border);
  border-radius: var(--r-sm); background: var(--surface); cursor: pointer;
  transition: border-color .12s;
}
.support-type-card:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.support-type-card input { accent-color: var(--primary); margin-top: .2rem; }
.support-type-body strong { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .1rem; }
.support-type-body small { font-size: .8125rem; color: var(--text-muted); }
.table-sub { font-size: .8125rem; color: var(--text-muted); }

/* --- Domain detail (backorder show) --------------------------- */
.domain-detail-hero {
  display: grid; grid-template-columns: 1fr 280px; gap: 2rem; margin-bottom: 1.5rem; align-items: start;
}
.domain-detail-hero-copy h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }

/* --- Utility -------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- Landing page (home.php) ---------------------------------- */
body { margin: 0; }
.landing-page { background: #fff; min-height: 100vh; color: var(--text); font-family: 'Inter', system-ui, sans-serif; }
.announcement {
  background: var(--primary-light); color: var(--primary);
  text-align: center; padding: .6rem 1rem; font-size: .8125rem; font-weight: 500;
  border-bottom: 1px solid rgba(79,70,229,.15);
}
.landing-header {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 0 2rem; position: sticky; top: 0; z-index: 20;
}
.landing-actions { display: flex; align-items: center; gap: .75rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 2rem;
}
.landing-page .nav-links { display: flex; align-items: center; gap: 1.75rem; }
.landing-page .nav-links a { font-size: .9375rem; color: var(--text-muted); font-weight: 500; text-decoration: none; }
.landing-page .nav-links a:hover { color: var(--text); }
.landing-page .brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1rem; }
.landing-page .brand strong { display: block; }
.landing-page .brand small { display: block; font-size: .75rem; color: var(--text-muted); font-weight: 400; }
.landing-page main section { padding: 5rem 0; }
.landing-page main section:nth-child(even) { background: var(--bg); }
.landing-page .hero { background: #fff; padding: 5rem 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-grid > div h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 1rem 0 1.25rem; }
.hero-grid > div p { font-size: 1.0625rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; }
.search-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.25rem; margin-bottom: 1.5rem; }
.search-form { display: flex; gap: .5rem; }
.search-form input { flex: 1; padding: .65rem .9rem; border: 1px solid var(--border-strong); border-radius: var(--r-sm); font-size: .9375rem; font-family: inherit; background: var(--surface); }
.search-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.trust-row { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; font-size: .8125rem; color: var(--text-muted); }
.trust-row span::before { content: '✓ '; color: var(--success); }
.hero-panel {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.5rem; box-shadow: var(--shadow-lg);
}
.panel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.panel-top strong { display: block; font-weight: 600; }
.panel-top span { font-size: .8125rem; color: var(--text-muted); }
.hero-panel .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .75rem; }
.hero-panel .stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1rem; box-shadow: var(--shadow-sm); }
.hero-panel .stat-card strong { display: block; font-size: 1.125rem; font-weight: 700; margin-bottom: .1rem; }
.hero-panel .stat-card span { font-size: .8125rem; color: var(--text-muted); }
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-heading h2 { font-size: 1.875rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .6rem; }
.section-heading p { color: var(--text-muted); font-size: 1rem; line-height: 1.65; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.landing-page .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.card-icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--primary-light); color: var(--primary);
  font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.landing-page .card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.landing-page .card p { font-size: .9375rem; color: var(--text-muted); line-height: 1.6; }
.feature-band { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.feature-list { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.feature-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); }
.feature-icon { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--primary-light); color: var(--primary); font-weight: 700; font-size: .8125rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-copy strong { display: block; font-weight: 600; margin-bottom: .25rem; }
.feature-copy p { font-size: .875rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.comparison-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.comparison-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.comparison-row { display: flex; align-items: flex-start; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .9375rem; }
.comparison-row:last-child { border-bottom: 0; }
.comparison-row span { color: var(--text-muted); flex: 1; }
.comparison-row strong { font-weight: 500; }
.pricing-band { background: var(--primary-light); border-radius: var(--r-xl); padding: 3rem; max-width: 800px; margin: 0 auto; }
.pricing-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.pricing-col { background: var(--surface); border-radius: var(--r-lg); padding: 1.75rem; border: 1px solid rgba(79,70,229,.15); }
.pricing-col.featured { border-color: var(--primary); }
.pricing-col .pricing-tier { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .5rem; }
.pricing-col.featured .pricing-tier { color: var(--primary); }
.pricing-col .price { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .25rem; }
.pricing-col .price small { font-size: .875rem; font-weight: 400; color: var(--text-muted); }
.pricing-col .pricing-note { font-size: .8125rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.pricing-feature-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.pricing-feature-list li { display: flex; align-items: flex-start; gap: .5rem; font-size: .875rem; color: var(--text-muted); }
.pricing-feature-list li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.quote blockquote { font-size: .9375rem; color: var(--text-muted); line-height: 1.6; margin-bottom: .75rem; font-style: italic; }
.quote cite { font-size: .8125rem; font-weight: 600; color: var(--text-subtle); }
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 1.25rem 1.5rem; }
.faq-item h3 { font-size: .9375rem; font-weight: 600; margin-bottom: .5rem; }
.faq-item p { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }
.contact-form-wrap { max-width: 600px; margin: 0 auto; }
.contact-form-wrap .form-group { margin-bottom: 1.25rem; }
.landing-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 2.5rem 0; }
.landing-footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8125rem; color: var(--text-muted); }
.landing-footer .footer-links { display: flex; gap: 1.5rem; }
.landing-footer .footer-links a { color: var(--text-muted); }
.landing-footer .footer-links a:hover { color: var(--text); }
/* home.php: stat-card in hero (not in stats-grid) */
.stat-card > strong:first-child { font-size: 1.25rem; font-weight: 700; display: block; }
.stat-card > span:first-of-type { font-size: .8125rem; color: var(--text-muted); }
/* badge used in home.php preview card */
.landing-page .badge { background: var(--success-bg); color: var(--success-text); display: inline-flex; padding: .2rem .65rem; border-radius: 99px; font-size: .75rem; font-weight: 600; }
.landing-page .badge::before { display: none; }

/* --- Responsive ----------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid, .feature-band, .cards-3, .pricing-cols, .landing-hero-visual-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .hero-grid { text-align: center; }
  .hero-grid > div h1 { font-size: 2.5rem !important; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .nav-links { display: none !important; }
}

@media (max-width: 768px) {
  .mobile-topbar { display: flex !important; }
  .topbar { display: none; }
  .sidebar {
    position: fixed; left: -100%; top: 0; height: 100vh;
    z-index: 40; transition: left .25s; width: var(--sidebar-w);
  }
  body.menu-open .sidebar { left: 0; }
  body.menu-open .sidebar-overlay { display: block; }
  .dashboard-hero-card { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .panel-grid, .panel-grid-2, .panel-grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .signup-shell { grid-template-columns: 1fr; }
  .signup-hero { display: none; }
  .domain-detail-hero { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .main-content-wrap { padding: 1rem; }
  
  /* Landing Mobile */
  .steps { grid-template-columns: 1fr !important; }
  .landing-nav { padding: 1rem !important; }
  .footer-content { flex-direction: column; text-align: center; gap: 2.5rem; }
  .footer-links { justify-content: center; }
  .section-title { font-size: 1.75rem !important; }
  .hero-eyebrow { margin: 0 auto 1.5rem !important; }
  .hero-visual-wrap { display: block !important; margin-top: 3rem; } /* Show hero visual on mobile */
}

/* ── Enlarge Hero Visual Cards ────────────────────────────────────────── */
.hero-visual-wrap > div {
  padding: 1.75rem !important;
  margin-bottom: 1.25rem !important;
}
.hero-visual-wrap .domain-name {
  font-size: 1.25rem !important;
}

/* ── Animated Primary CTA ─────────────────────────────────────────────── */
.btn-animate-flow {
  background: linear-gradient(-45deg, #4f46e5, #6366f1, #4338ca, #4f46e5);
  background-size: 300% 300%;
  animation: btn-flow 4s ease infinite;
  border: none;
  box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

@keyframes btn-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-animate-flow:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.5);
}

/* ── Pricing Card Glow ────────────────────────────────────────────────── */
.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 0 40px rgba(79, 70, 229, 0.15);
  z-index: 1;
  position: relative;
}

.pricing-card.featured::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--r-xl);
  background: linear-gradient(45deg, var(--primary), transparent, var(--primary));
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}

/* ── Footer Branding Centering ─────────────────────────────────────────── */
.footer-branding-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}


/* ── Refined CTA Banner ────────────────────────────────────────────────── */
.cta-banner {
  padding: 6rem 2rem;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text);
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Mobile Friendly Landing ───────────────────────────────────────────── */
.landing {
  overflow-x: hidden; /* Prevent horizontal scroll "white boxes" */
  width: 100%;
}

.landing-section {
  padding: 5rem 2rem;
  width: 100%;
  box-sizing: border-box;
}

.landing-container {
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .landing-section {
    padding: 3.5rem 1.25rem;
  }
}


@media (min-width: 769px) {
  .mobile-topbar { display: none !important; }
}

/* ── Animated CTA ────────────────────────────────────────────────────────── */
.animated-gradient-card {
  background: linear-gradient(-45deg, var(--primary), #7c3aed, #4f46e5, #9333ea);
  background-size: 400% 400%;
  animation: gradient-move 15s ease infinite;
  border-radius: var(--r-lg);
  padding: 1.5rem;
  color: white;
}

/* ── Refined Feature Grid ────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.feature-card {
  padding: 2.25rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
  line-height: 1.3;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Animated Lava Progress Bars ────────────────────────────────────────── */
.progress-bar {
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(
    90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: lava-flow 2s infinite linear;
}

@keyframes lava-flow {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ── Refined Pricing ────────────────────────────────────────────────── */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  flex: 1;
}

.pricing-features li {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Remove default ticks if any were applied via before pseudo-elements in legacy sections */
.pricing-features li::before {
  display: none !important;
}

/* ── Refined Footer ────────────────────────────────────────────────── */
.footer-wrap {
  background: white;
  border-top: 1px solid var(--border);
  width: 100%;
  padding: 4rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* --- Responsive ----------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }
  .footer-links {
    justify-content: center;
  }
}

/* ── Admin: page nav (tab bar) ──────────────────────────────────────── */
.admin-page-nav {
  display: flex;
  gap: .25rem;
  padding: .5rem .75rem;
  margin-bottom: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .85rem;
  border-radius: var(--r-sm);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.admin-tab:hover {
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}
.admin-tab.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.admin-tab.active:hover { background: var(--primary-hover); text-decoration: none; }
.admin-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.admin-tab-icon svg { display: block; }

/* ── Admin dashboard: stat cards with icons ────────────────────────── */
.admin-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.stat-card-new {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
}
.stat-icon {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
}
.stat-icon.info { background: var(--info-bg); color: var(--info); }
.stat-icon.success { background: var(--success-bg); color: var(--success); }
.stat-icon.monitoring { background: var(--primary-light); color: var(--primary); }
.stat-icon.action_required { background: var(--warning-bg); color: var(--warning); }
.stat-icon.danger { background: var(--danger-bg); color: var(--danger); }
.stat-details span { font-size: .8125rem; color: var(--text-muted); font-weight: 500; display: block; }
.stat-details strong { font-size: 1.5rem; font-weight: 700; display: block; line-height: 1.2; }

/* ── Admin: quick navigation cards ─────────────────────────────────── */
.admin-quick-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.admin-nav-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.admin-nav-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
  text-decoration: none;
  transform: translateY(-1px);
}
.admin-nav-card-icon {
  width: 42px; height: 42px; min-width: 42px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
}
.admin-nav-card-icon.orders { background: var(--info-bg); color: var(--info); }
.admin-nav-card-icon.support { background: var(--warning-bg); color: var(--warning); }
.admin-nav-card-icon.sales { background: var(--success-bg); color: var(--success); }
.admin-nav-card-icon.pricing { background: #faf5ff; color: #7c3aed; }
.admin-nav-card-icon.settings { background: var(--bg); color: var(--text-muted); }
.admin-nav-card-body { flex: 1; min-width: 0; }
.admin-nav-card-body strong {
  display: block; font-size: .9375rem; font-weight: 600;
  color: var(--text); margin-bottom: .2rem;
}
.admin-nav-card-body span {
  display: block; font-size: .8125rem; color: var(--text-muted);
  line-height: 1.5; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.admin-nav-card-arrow { color: var(--text-subtle); flex-shrink: 0; }
.admin-nav-card:hover .admin-nav-card-arrow { color: var(--primary); }

/* ── Admin: activity list ──────────────────────────────────────────── */
.admin-activity-list {
  list-style: none; padding: 0; margin: 0;
}
.admin-activity-item {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .85rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.admin-activity-item:last-child { border-bottom: 0; }
.admin-activity-dot {
  width: 8px; height: 8px; min-width: 8px;
  border-radius: 50%;
  margin-top: .45rem;
  background: var(--text-subtle);
}
.admin-activity-dot.success { background: var(--success); }
.admin-activity-dot.danger { background: var(--danger); }
.admin-activity-dot.info { background: var(--info); }
.admin-activity-dot.neutral { background: var(--text-subtle); }
.admin-activity-body { flex: 1; min-width: 0; }
.admin-activity-body strong {
  display: block; font-size: .875rem; font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', monospace;
  margin-bottom: .1rem;
}
.admin-activity-body span { font-size: .8125rem; color: var(--text-muted); }
.admin-activity-time { font-size: .75rem; color: var(--text-subtle); white-space: nowrap; margin-top: .1rem; }

/* ── Admin: registrar list ─────────────────────────────────────────── */
.admin-registrar-list { list-style: none; padding: 0; margin: 0; }
.admin-registrar-item {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.admin-registrar-item:last-child { border-bottom: 0; }
.admin-registrar-icon {
  width: 32px; height: 32px; min-width: 32px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
}
.admin-registrar-icon.active { background: var(--success-bg); color: var(--success); }
.admin-registrar-icon.inactive { background: var(--bg); color: var(--text-subtle); }
.admin-registrar-body { flex: 1; min-width: 0; }
.admin-registrar-body strong { display: block; font-size: .875rem; font-weight: 600; }
.admin-registrar-body span { font-size: .8125rem; color: var(--text-muted); }

/* ── Admin: workspace panel ────────────────────────────────────────── */
.admin-workspace-panel { padding: 1.25rem 1.5rem; }
.admin-workspace-header {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1rem;
}
.admin-workspace-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.admin-workspace-header strong { display: block; font-size: .9375rem; font-weight: 600; }
.admin-workspace-header .muted { font-size: .8125rem; }
.admin-workspace-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}
.admin-workspace-meta > div {
  padding: .65rem .85rem;
  background: var(--bg); border-radius: var(--r-sm);
}
.admin-workspace-meta span { font-size: .75rem; color: var(--text-muted); display: block; margin-bottom: .15rem; }
.admin-workspace-meta strong { font-size: .9375rem; }

/* ── Admin: reference list ─────────────────────────────────────────── */
.admin-reference-list { display: flex; flex-direction: column; gap: 0; }
.admin-reference-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: color .12s;
}
.admin-reference-item:last-child { border-bottom: 0; }
.admin-reference-item:hover { color: var(--primary); text-decoration: none; }
.admin-reference-item svg { color: var(--text-subtle); flex-shrink: 0; }
.admin-reference-item:hover svg { color: var(--primary); }
.admin-reference-item div strong { display: block; font-size: .875rem; font-weight: 600; }
.admin-reference-item div span { font-size: .8125rem; color: var(--text-muted); }

/* ── Admin settings: mini stats ────────────────────────────────────── */
.admin-mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .65rem;
  margin-bottom: 1.25rem;
}
.admin-mini-stat {
  padding: .65rem .85rem;
  background: var(--bg);
  border-radius: var(--r-sm);
  text-align: center;
}
.admin-mini-stat span {
  font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-subtle); display: block;
  margin-bottom: .2rem;
}
.admin-mini-stat strong { font-size: 1.125rem; font-weight: 700; }

/* ── Admin settings: driver cards ──────────────────────────────────── */
.admin-driver-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem;
}
.admin-driver-card {
  padding: .85rem; border: 1px solid var(--border);
  border-radius: var(--r); text-align: center;
  transition: border-color .15s, background .15s;
}
.admin-driver-card.is-active {
  border-color: var(--primary); background: var(--primary-light);
}
.admin-driver-card strong { display: block; font-size: .875rem; margin-bottom: .25rem; }
.admin-driver-card p { font-size: .75rem; color: var(--text-muted); margin-top: .4rem; line-height: 1.5; }

/* ── Admin settings: blocked domain form ───────────────────────────── */
.admin-blocked-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: .75rem;
  align-items: end;
}
.admin-blocked-form label {
  display: flex; flex-direction: column; gap: .35rem; font-size: .875rem;
}
.admin-blocked-form label span { font-weight: 500; }
.admin-blocked-form input {
  width: 100%; padding: .6rem .85rem;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  font-size: .9375rem; font-family: inherit; color: var(--text);
  background: var(--surface);
}
.admin-blocked-form input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

/* ── Admin: padding helpers ────────────────────────────────────────── */
.p-2 { padding: 1.5rem; }

/* ── Admin responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .admin-quick-nav { grid-template-columns: 1fr; }
  .admin-driver-grid { grid-template-columns: 1fr; }
  .admin-blocked-form { grid-template-columns: 1fr; }
}



