/* ═══════════════════════════════════════════════════════════════════
   Automatix — Design System
   Light / Dark mode • Inter font • CSS custom properties
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Variables — Mode clair (défaut) ─────────────────────────── */
:root {
  /* Brand */
  --brand:        #4f46e5;
  --brand-hover:  #4338ca;
  --brand-light:  #eef2ff;
  --brand-text:   #3730a3;
  --primary:      var(--brand);

  /* Surfaces */
  --bg:           #f8fafc;
  --bg-subtle:    #f1f5f9;
  --surface:      #ffffff;

  /* Text */
  --text:         #0f172a;
  --text-2:       #475569;
  --muted:        #64748b;

  /* Borders */
  --border:       #e2e8f0;
  --border-2:     #cbd5e1;

  /* Semantic — Red */
  --red:          #dc2626;
  --red-bg:       #fef2f2;
  --red-border:   #fecaca;

  /* Semantic — Green */
  --green:        #16a34a;
  --green-bg:     #f0fdf4;
  --green-border: #bbf7d0;

  /* Semantic — Yellow */
  --yellow:       #b45309;
  --yellow-bg:    #fffbeb;
  --yellow-border:#fde68a;

  /* Semantic — Blue info */
  --blue:         #1d4ed8;
  --blue-bg:      #eff6ff;
  --blue-border:  #bfdbfe;

  /* Layout */
  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    16px;
  --shadow:       0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  --shadow-md:    0 4px 6px rgba(0,0,0,.07), 0 10px 30px rgba(0,0,0,.08);
  --nav-h:        56px;
  --transition:   150ms ease;

  /* Backward compat aliases */
  --white:        var(--surface);
}

/* ── 2. Variables — Mode sombre ─────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand:        #818cf8;
    --brand-hover:  #6366f1;
    --brand-light:  #1e1b4b;
    --brand-text:   #c7d2fe;

    --bg:           #0f172a;
    --bg-subtle:    #1e293b;
    --surface:      #1e293b;

    --text:         #f1f5f9;
    --text-2:       #94a3b8;
    --muted:        #64748b;

    --border:       #334155;
    --border-2:     #475569;

    --red:          #f87171;
    --red-bg:       rgba(239,68,68,.13);
    --red-border:   rgba(239,68,68,.32);

    --green:        #4ade80;
    --green-bg:     rgba(34,197,94,.13);
    --green-border: rgba(34,197,94,.32);

    --yellow:       #fbbf24;
    --yellow-bg:    rgba(251,191,36,.13);
    --yellow-border:rgba(251,191,36,.32);

    --blue:         #60a5fa;
    --blue-bg:      rgba(59,130,246,.13);
    --blue-border:  rgba(59,130,246,.32);

    --shadow:       0 1px 3px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.2);
    --shadow-md:    0 4px 8px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.25);
  }
}

[data-theme="dark"] {
  --brand:        #818cf8;
  --brand-hover:  #6366f1;
  --brand-light:  #1e1b4b;
  --brand-text:   #c7d2fe;

  --bg:           #0f172a;
  --bg-subtle:    #1e293b;
  --surface:      #1e293b;

  --text:         #f1f5f9;
  --text-2:       #94a3b8;
  --muted:        #64748b;

  --border:       #334155;
  --border-2:     #475569;

  --red:          #f87171;
  --red-bg:       rgba(239,68,68,.13);
  --red-border:   rgba(239,68,68,.32);

  --green:        #4ade80;
  --green-bg:     rgba(34,197,94,.13);
  --green-border: rgba(34,197,94,.32);

  --yellow:       #fbbf24;
  --yellow-bg:    rgba(251,191,36,.13);
  --yellow-border:rgba(251,191,36,.32);

  --blue:         #60a5fa;
  --blue-bg:      rgba(59,130,246,.13);
  --blue-border:  rgba(59,130,246,.32);

  --shadow:       0 1px 3px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.2);
  --shadow-md:    0 4px 8px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.25);
}

/* ── 3. Transitions fluides après chargement ────────────────────── */
.theme-ready, .theme-ready *, .theme-ready *::before, .theme-ready *::after {
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition) !important;
}

/* ── 4. Reset + Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

img, svg { display: block; max-width: 100%; }

/* ── 5. Typography ──────────────────────────────────────────────── */
h1 { font-size: 1.5rem;  font-weight: 700; letter-spacing: -.02em; line-height: 1.3; margin-bottom: .35rem; }
h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .85rem; }
h3 { font-size: 1rem;    font-weight: 600; margin-bottom: .5rem; }

.subtitle { color: var(--muted); margin-bottom: 1.75rem; font-size: .95rem; }

/* ── 6. Layout ──────────────────────────────────────────────────── */
.page-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  background: var(--bg);
}

.container       { max-width: 860px;  margin: 2.5rem auto; padding: 0 1.25rem; }
.container-wide  { max-width: 1100px; margin: 2.5rem auto; padding: 0 1.25rem; }
.admin-container { max-width: 1100px; margin: 2.5rem auto; padding: 0 1.25rem; }

/* ── 7. Navbar ──────────────────────────────────────────────────── */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.navbar .brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.navbar .brand:hover { text-decoration: none; }

.navbar-badge {
  background: var(--text);
  color: var(--surface);
  font-size: .62rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 4px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: .15rem;
}

.navbar nav a {
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.navbar nav a:hover { color: var(--text); background: var(--bg-subtle); text-decoration: none; }
.navbar nav a.active { color: var(--brand); background: var(--brand-light); }

/* Theme toggle button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-size: .95rem;
  color: var(--muted);
  transition: background var(--transition), border-color var(--transition);
  margin-left: .5rem;
  flex-shrink: 0;
}
.theme-toggle-btn:hover { background: var(--bg-subtle); border-color: var(--border-2); color: var(--text); }

/* Logout button in nav */
.nav-logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: .875rem;
  font-family: inherit;
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-logout-btn:hover { color: var(--red); background: var(--red-bg); }

/* ── 8. Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  width: 100%;
}

.card-sm    { max-width: 460px; }
.card-md    { max-width: 600px; }
.card-wide  { max-width: 700px; }

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 1.4rem 1.5rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.project-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-2); }
.project-card h3 { font-size: 1rem; margin-bottom: .3rem; }

/* Panel (admin) */
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.panel-header {
  padding: .9rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
}
.panel-header h2 { margin: 0; font-size: .95rem; color: var(--text); }
.panel-body  { padding: 0; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 1.25rem 1.4rem;
}
.stat-card .stat-label { font-size: .78rem; color: var(--muted); margin-bottom: .3rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.stat-card .stat-value { font-size: 1.9rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.stat-card .stat-sub   { font-size: .75rem; color: var(--muted); margin-top: .25rem; }

/* Definition list */
.dl {
  padding: 1.25rem 1.4rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: .6rem .75rem;
}
.dl dt { font-size: .83rem; color: var(--muted); font-weight: 500; display: flex; align-items: baseline; }
.dl dd { font-size: .9rem; color: var(--text); word-break: break-all; }

/* ── 9. Tables ──────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--bg-subtle); }
th {
  text-align: left;
  padding: .6rem 1.25rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
td {
  padding: .7rem 1.25rem;
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-subtle); }

/* ── 10. Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .6rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition), opacity var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(79,70,229,.3);
}
.btn-primary:hover { background: var(--brand-hover); box-shadow: 0 2px 8px rgba(79,70,229,.35); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg-subtle); border-color: var(--border-2); color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: none;
}
.btn-ghost:hover { background: var(--bg-subtle); color: var(--text); }

.btn-danger {
  background: var(--red);
  color: #fff;
}
.btn-danger:hover { opacity: .88; }

.btn-sm  { padding: .38rem .85rem; font-size: .8rem; }
.btn-lg  { padding: .8rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; }

.btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 .25rem;
  line-height: 1;
  transition: color var(--transition);
}
.btn-remove:hover { color: var(--red); }

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .5rem;
  font-size: .83rem;
  padding: .4rem .9rem;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--brand);
  font-weight: 600;
  font-family: inherit;
  transition: background var(--transition), border-color var(--transition);
}
.btn-add:hover { background: var(--brand-light); border-color: var(--brand); }

/* ── 11. Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }

label {
  display: block;
  font-weight: 500;
  font-size: .875rem;
  margin-bottom: .3rem;
  color: var(--text-2);
}

.hint { font-size: .8rem; color: var(--muted); margin-bottom: .3rem; line-height: 1.5; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="color"],
textarea,
select {
  width: 100%;
  padding: .55rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.5;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,70,229,.14);
}

input[type="color"] { height: 40px; padding: .2rem .4rem; cursor: pointer; }

textarea { min-height: 96px; resize: vertical; }

.radio-group { display: flex; flex-direction: column; gap: .45rem; }
.radio-option {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  color: var(--text);
}
.radio-option:has(input:checked) { border-color: var(--brand); background: var(--brand-light); }
.radio-option input { margin: 0; accent-color: var(--brand); }

/* ── 12. Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: .8rem 1rem .8rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}
.alert-error   { background: var(--red-bg);    color: var(--red);    border-color: var(--red-border);    border-left: 3px solid var(--red); }
.alert-success { background: var(--green-bg);  color: var(--green);  border-color: var(--green-border);  border-left: 3px solid var(--green); }
.alert-warning { background: var(--yellow-bg); color: var(--yellow); border-color: var(--yellow-border); border-left: 3px solid var(--yellow); }
.alert-info    { background: var(--blue-bg);   color: var(--blue);   border-color: var(--blue-border);   border-left: 3px solid var(--blue); }

.field-error { color: var(--red); font-size: .8rem; margin-top: .3rem; display: block; }

/* ── 13. Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .01em;
}

/* Status badges — rétrocompatibles */
.badge-draft    { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-border); }
.badge-complete { background: var(--green-bg);  color: var(--green);  border: 1px solid var(--green-border); }
.badge-active   { background: var(--brand-light); color: var(--brand); border: 1px solid rgba(79,70,229,.2); }

/* Semantic badges */
.badge-success  { background: var(--green-bg);  color: var(--green);  border: 1px solid var(--green-border); }
.badge-danger   { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }
.badge-warning  { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-border); }
.badge-info     { background: var(--blue-bg);   color: var(--blue);   border: 1px solid var(--blue-border); }
.badge-gray     { background: var(--bg-subtle); color: var(--text-2); border: 1px solid var(--border); }

/* Alias statuts Stripe / abonnement */
.badge-paid      { background: var(--green-bg);  color: var(--green);  border: 1px solid var(--green-border); }
.badge-past_due  { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-border); }
.badge-canceling { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow-border); }
.badge-canceled  { background: var(--bg-subtle); color: var(--muted);  border: 1px solid var(--border); }
.badge-pending   { background: var(--bg-subtle); color: var(--muted);  border: 1px solid var(--border); }
.badge-suspended { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }

/* Sub-card (billing) */
.sub-card {
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.4rem;
  background: var(--brand-light);
  margin-bottom: 1rem;
}
.sub-card-inactive { border-color: var(--border); background: var(--bg-subtle); }

/* Inline definition list */
.dl-inline { display: grid; grid-template-columns: 180px 1fr; gap: .5rem .75rem; }
.dl-inline dt { font-size: .85rem; color: var(--muted); font-weight: 500; }
.dl-inline dd  { font-size: .9rem; color: var(--text); }

/* ── 14. Progress bar ───────────────────────────────────────────── */
.progress-wrap   { margin-bottom: 1.5rem; }
.progress-label  { font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }
.progress-bar-bg {
  background: var(--border);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  transition: width .4s ease;
}

/* ── 15. Filter tabs ────────────────────────────────────────────── */
.filter-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-tab {
  padding: .38rem .9rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  background: var(--surface);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.filter-tab:hover    { border-color: var(--border-2); color: var(--text); text-decoration: none; background: var(--bg-subtle); }
.filter-tab.active   { background: var(--text); color: var(--surface); border-color: var(--text); }

/* ── 16. Utilities ──────────────────────────────────────────────── */
/* Text */
.text-muted   { color: var(--muted) !important; }
.text-subtle  { color: var(--text-2) !important; }
.text-red     { color: var(--red) !important; }
.text-green   { color: var(--green) !important; }
.text-yellow  { color: var(--yellow) !important; }
.text-brand   { color: var(--brand) !important; }
.text-sm      { font-size: .83rem !important; }
.text-xs      { font-size: .75rem !important; }
.text-mono    { font-family: ui-monospace, 'SF Mono', Consolas, monospace !important; font-size: .88em !important; }

/* Font weight */
.fw-500  { font-weight: 500 !important; }
.fw-600  { font-weight: 600 !important; }
.fw-700  { font-weight: 700 !important; }
.fw-800  { font-weight: 800 !important; }

/* Backgrounds */
.bg-surface  { background: var(--surface) !important; }
.bg-subtle   { background: var(--bg-subtle) !important; }
.bg-red      { background: var(--red-bg) !important; }
.bg-green    { background: var(--green-bg) !important; }
.bg-yellow   { background: var(--yellow-bg) !important; }
.bg-blue     { background: var(--blue-bg) !important; }
.bg-brand    { background: var(--brand-light) !important; }

/* Borders */
.border-red    { border-color: var(--red-border) !important; }
.border-green  { border-color: var(--green-border) !important; }
.border-yellow { border-color: var(--yellow-border) !important; }

/* Flex utils */
.flex      { display: flex; }
.flex-col  { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1  { gap: .5rem; }
.gap-2  { gap: 1rem; }
.gap-3  { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; min-width: 0; }

/* Spacing */
.mt-0   { margin-top: 0 !important; }
.mt-1   { margin-top: .5rem !important; }
.mt-2   { margin-top: 1rem !important; }
.mt-3   { margin-top: 1.5rem !important; }
.mb-0   { margin-bottom: 0 !important; }
.mb-1   { margin-bottom: .5rem !important; }
.mb-2   { margin-bottom: 1rem !important; }
.mb-3   { margin-bottom: 1.5rem !important; }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state .icon { font-size: 2.5rem; margin-bottom: .75rem; opacity: .7; }

/* List utilities (onboarding) */
.list-item { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.list-item input { flex: 1; }

.service-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  margin-bottom: .75rem;
  background: var(--surface);
}

/* Code / pre */
pre, code {
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: .85em;
}
pre {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow: auto;
  max-height: 280px;
  color: var(--text);
}

/* Spec sections */
.spec-section-body { padding: 1.25rem; }

/* ── 17. Spec / Generation page ─────────────────────────────────── */
.spec-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  overflow: hidden;
  background: var(--surface);
}
.spec-section-header {
  background: var(--bg-subtle);
  padding: .75rem 1.25rem;
  font-weight: 600;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* ── 18. Home page ──────────────────────────────────────────────── */
.home-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  background: var(--bg);
}

.home-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 440px;
  width: 100%;
}

.home-logo {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text);
  margin-bottom: .35rem;
}

.home-logo span { color: var(--brand); }

/* ── 19. Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── 19b. Domain page — DNS box ─────────────────────────────────── */
.dns-box {
  background: #1a1b2e;
  color: #cdd6f4;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: .83rem;
  margin: 1rem 0;
  overflow-x: auto;
  line-height: 1.7;
}
.dns-box .dns-label { color: #89b4fa; font-weight: 700; margin-right: .4rem; }
.dns-box .dns-comment { color: #a6adc8; font-style: italic; }

.copy-btn {
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  padding: .12rem .45rem;
  font-size: .72rem;
  cursor: pointer;
  color: #cdd6f4;
  margin-left: .4rem;
  transition: background var(--transition);
}
.copy-btn:hover { background: rgba(255,255,255,.12); }

/* Domain steps list */
.steps-list { list-style: none; counter-reset: step; padding: 0; }
.steps-list li {
  counter-increment: step;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: .85rem;
  font-size: .9rem;
}
.steps-list li::before {
  content: counter(step);
  background: var(--brand);
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ── 19c. Generation / Spec page ─────────────────────────────────── */
.tag {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 4px;
  padding: .15rem .55rem;
  font-size: .78rem;
  font-weight: 600;
  margin: .2rem;
  border: 1px solid rgba(79,70,229,.15);
}
.section-type {
  display: inline-block;
  background: var(--bg-subtle);
  color: var(--text-2);
  border-radius: 4px;
  padding: .2rem .6rem;
  font-size: .78rem;
  font-weight: 600;
  margin-right: .4rem;
  border: 1px solid var(--border);
}
.stat-mini { text-align: center; padding: .75rem; }
.stat-mini .val { font-size: 1.5rem; font-weight: 700; color: var(--brand); }
.stat-mini .lbl { font-size: .8rem; color: var(--muted); margin-top: .2rem; }

/* Domain active block */
.domain-active {
  border: 2px solid var(--green);
  background: var(--green-bg);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.domain-active .domain-url { font-weight: 700; font-size: 1.05rem; color: var(--green); }

/* ── 19d. Pagination ────────────────────────────────────────────── */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: .38rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  transition: background var(--transition), border-color var(--transition);
}
.pagination a:hover { background: var(--bg-subtle); text-decoration: none; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Status dot */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.dot-active   { background: var(--green); }
.dot-inactive { background: var(--muted); }
.dot-warning  { background: var(--yellow); }
.dot-danger   { background: var(--red); }

/* Status text shortcuts */
.status-active    { color: var(--green); font-weight: 600; }
.status-suspended { color: var(--red);   font-weight: 600; }
.status-inactive  { color: var(--muted); font-weight: 500; }

/* ── 20. Page transition overlay ────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.page-anim { animation: fadeIn .18s ease; }
