:root {
  color-scheme: light;
  --bg: #eef2f7;
  --bg-soft: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --surface-3: #e9eef6;
  --ink: #111827;
  --ink-strong: #0b1220;
  --muted: #64748b;
  --line: #d8e0eb;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;
  --accent: #f59e0b;
  --accent-soft: #fff4d8;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --success: #059669;
  --success-soft: #d1fae5;
  --warning-soft: #fef3c7;
  --radius: 8px;
  --page-width: 1200px;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --focus: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080c14;
  --bg-soft: #0d1420;
  --surface: #121a28;
  --surface-2: #172235;
  --surface-3: #22304a;
  --ink: #e5ecf6;
  --ink-strong: #f8fafc;
  --muted: #9aa8bc;
  --line: #2a3850;
  --primary: #60a5fa;
  --primary-dark: #93c5fd;
  --primary-soft: rgba(96, 165, 250, 0.16);
  --accent: #fbbf24;
  --accent-soft: rgba(251, 191, 36, 0.14);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.16);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.16);
  --warning-soft: rgba(251, 191, 36, 0.16);
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  --focus: 0 0 0 4px rgba(96, 165, 250, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.10), transparent 34%),
    linear-gradient(225deg, rgba(245, 158, 11, 0.09), transparent 32%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] body {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(225deg, rgba(245, 158, 11, 0.08), transparent 30%),
    var(--bg);
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .site-header,
body.modal-open main > :not(.modal),
body.modal-open .site-footer,
body.modal-open .whatsapp-float,
body:has(.modal.is-open) .site-header,
body:has(.modal.is-open) main > :not(.modal),
body:has(.modal.is-open) .site-footer,
body:has(.modal.is-open) .whatsapp-float {
  filter: blur(5px);
  transition: filter 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(var(--page-width), calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--primary), #14b8a6 58%, var(--accent));
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 12px 20px rgba(37, 99, 235, 0.24);
}

.brand strong {
  display: block;
  max-width: 230px;
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  display: block;
  max-width: 260px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
}

.main-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border-radius: var(--radius);
  padding: 9px 11px;
  font-size: 14px;
  font-weight: 750;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.main-nav a:hover,
.link:hover {
  color: var(--primary-dark);
}

.main-nav a:hover {
  background: var(--primary-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  order: 3;
}

.theme-toggle,
.nav-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.theme-toggle {
  gap: 8px;
  padding: 0 12px;
}

.theme-toggle:hover,
.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  background: var(--surface);
}

.theme-toggle-icon {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: var(--surface-3);
}

.theme-toggle-icon::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
  transition: transform 0.18s ease, background 0.18s ease;
}

:root[data-theme="dark"] .theme-toggle-icon::after {
  transform: translateX(12px);
  background: var(--accent);
}

.nav-toggle {
  display: none;
  width: 54px;
}

.nav-pill,
.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 850;
  letter-spacing: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover,
.nav-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
}

.nav-pill,
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.22);
}

:root[data-theme="dark"] .nav-pill,
:root[data-theme="dark"] .btn-primary {
  color: #07111f;
}

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  width: min(var(--page-width), calc(100% - 32px));
  margin: 28px auto 0;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 88%, var(--primary-soft)), var(--surface)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.hero-copy h1,
.section-heading h1,
.article-page h1 {
  margin: 0;
  max-width: 900px;
  color: var(--ink-strong);
  font-size: 52px;
  line-height: 1.04;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 34px;
  line-height: 1.12;
}

.hero-copy p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-content: center;
}

.metric,
.service-card,
.article-card,
.detail-card,
.auth-card,
.table-card,
.editor-card,
.stat {
  background: color-mix(in srgb, var(--surface) 96%, var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric {
  position: relative;
  overflow: hidden;
  padding: 24px;
  box-shadow: var(--soft-shadow);
}

.metric::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  content: "";
}

.metric span,
.stat span {
  display: block;
  color: var(--ink-strong);
  font-size: 29px;
  font-weight: 900;
  line-height: 1;
}

.metric small,
.stat small,
.muted {
  color: var(--muted);
}

.section,
.split-section,
.page-shell,
.article-page {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 24px auto 0;
  padding: 34px;
  border-radius: var(--radius);
}

.section,
.page-shell,
.article-page {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--surface) 70%, transparent) inset;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading p,
.section-heading h1,
.section-heading h2 {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.service-grid,
.article-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.article-card,
.stat {
  padding: 22px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.service-card:hover,
.article-card:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-card h3,
.article-card h2,
.article-card h3,
.detail-card h1,
.detail-card h2,
.auth-card h1,
.editor-card h1,
.editor-card h2,
.stat h2 {
  margin-top: 0;
  color: var(--ink-strong);
  line-height: 1.18;
}

.service-card p,
.article-card p {
  color: var(--muted);
}

.icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  color: var(--primary-dark);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  gap: 30px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.split-section h2 {
  margin-top: 0;
  color: var(--ink-strong);
  font-size: 34px;
  line-height: 1.12;
}

.split-section p {
  color: var(--muted);
}

.timeline,
.status-list {
  display: grid;
  gap: 10px;
}

.timeline-item,
.status-list > div {
  position: relative;
  overflow: hidden;
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.timeline-item::before,
.status-list > div::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  content: "";
}

.status-list strong {
  display: block;
  color: var(--ink-strong);
}

.status-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8, 12, 20, 0.58);
}

.modal.is-open {
  display: flex;
}

.modal-dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.wizard {
  padding: 0;
}

.wizard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 56px;
  padding: 30px 76px 22px 30px;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  border-bottom: 1px solid var(--line);
}

.wizard-head h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 30px;
  line-height: 1.12;
}

.wizard-count {
  display: inline-flex;
  min-width: 58px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-dark);
  font-weight: 900;
  white-space: nowrap;
}

.wizard-progress {
  height: 7px;
  margin: 0;
  overflow: hidden;
  background: var(--surface-3);
}

.wizard-progress span {
  display: block;
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.2s ease;
}

.wizard-step {
  display: none;
  padding: 28px 30px 6px;
}

.wizard-step.is-active {
  display: block;
}

.wizard-step h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 24px;
  line-height: 1.2;
}

.step-copy {
  margin: 6px 0 20px;
  color: var(--muted);
}

.option-grid,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.option-card:hover,
.option-card:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
  background: color-mix(in srgb, var(--primary-soft) 45%, var(--surface));
  box-shadow: var(--soft-shadow);
  transform: translateY(-1px);
}

.option-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.option-card span {
  color: var(--ink);
  font-weight: 850;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--surface) 70%, transparent) inset;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

input:focus,
textarea:focus,
select:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: var(--focus);
}

.full {
  grid-column: 1 / -1;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding: 22px 30px 30px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

.is-hidden {
  display: none;
}

.auth-shell {
  display: grid;
  min-height: 64vh;
  place-items: center;
  width: min(var(--page-width), calc(100% - 32px));
  margin: 24px auto 0;
  padding: 48px 18px;
}

.auth-card,
.editor-card {
  width: min(560px, 100%);
  padding: 30px;
  box-shadow: var(--soft-shadow);
}

.settings-card {
  width: 100%;
}

.auth-card,
.stack-form,
.editor-card {
  display: grid;
  gap: 16px;
}

.settings-section {
  display: grid;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.settings-section h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 20px;
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.settings-tab {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 8px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}

.settings-tab:hover,
.settings-tab.is-active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: var(--soft-shadow);
}

.settings-panel {
  display: none;
}

.settings-panel.is-active {
  display: grid;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.settings-test-button {
  display: none;
}

.settings-test-button.is-visible {
  display: inline-flex;
}

.settings-message {
  width: 100%;
  margin: 0;
}

.user-modal-dialog {
  width: min(760px, 100%);
}

.user-form-body {
  display: grid;
  gap: 16px;
  padding: 28px 30px 6px;
}

.form-error,
.flash-danger {
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
}

.flash,
.form-error {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 16px auto;
  padding: 12px 16px;
  border-radius: var(--radius);
}

.auth-card .form-error,
.editor-card .form-error {
  width: 100%;
  margin: 0;
}

.flash-success {
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid color-mix(in srgb, var(--success) 28%, transparent);
}

.flash-warning {
  color: #8a5a00;
  background: var(--warning-soft);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

:root[data-theme="dark"] .flash-warning {
  color: #fbbf24;
}

.track-form,
.inline-filter {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
}

.track-form input {
  max-width: 420px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-card,
.table-card {
  padding: 22px;
  box-shadow: var(--soft-shadow);
}

dl {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px 14px;
}

dt {
  color: var(--muted);
  font-weight: 850;
}

dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--success) 26%, transparent);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 13px;
  font-weight: 900;
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

tbody tr {
  transition: background 0.16s ease;
}

tbody tr:hover {
  background: color-mix(in srgb, var(--primary-soft) 28%, transparent);
}

.table-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}

.table-actions form {
  margin: 0;
}

.danger-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-weight: 850;
}

.table-action-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.admin-menu {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  overflow: hidden;
  padding: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary-soft) 32%, transparent), transparent 42%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.admin-menu-head {
  display: grid;
  gap: 3px;
  margin: -2px -2px 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-menu-head span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-menu-head strong {
  color: var(--ink-strong);
  font-size: 16px;
}

.admin-menu a {
  position: relative;
  padding: 11px 12px 11px 16px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 850;
  transition: background 0.16s ease, color 0.16s ease;
}

.admin-menu a::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 6px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  content: "";
}

.admin-menu a:hover,
.admin-menu a.is-active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.admin-menu a.is-active::before {
  background: var(--primary);
}

.admin-content {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.admin-hero {
  margin: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary-soft) 44%, transparent), transparent),
    var(--surface);
  box-shadow: var(--soft-shadow);
}

.admin-hero p:last-child {
  margin-bottom: 0;
}

.admin-stats {
  gap: 18px;
}

.admin-stats .stat {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  padding: 24px;
}

.admin-stats .stat::after {
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  content: "";
}

.admin-stats .stat small {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stats .stat span {
  font-size: 36px;
}

.admin-table-card {
  padding: 0;
  overflow: hidden;
}

.table-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.table-card-head h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 22px;
}

.table-card-head p {
  margin: 4px 0 0;
}

.admin-table-card table {
  background: var(--surface);
}

.article-card time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.article-page {
  max-width: 900px;
  margin: 24px auto 0;
}

.lead {
  color: var(--muted);
  font-size: 20px;
}

.prose {
  font-size: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--soft-shadow);
}

.link {
  color: var(--primary-dark);
  font-weight: 850;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border-radius: 999px;
  padding: 0 18px;
  background: #22c55e;
  color: #062c16;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(34, 197, 94, 0.28);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--page-width), calc(100% - 32px));
  margin: 24px auto 0;
  padding: 28px 34px;
  color: #cbd5e1;
  background: #0f172a;
  border: 1px solid #243047;
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}

.site-footer strong {
  color: #ffffff;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  display: block;
  color: #ffffff;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }
}

@media (max-width: 900px) {
  .hero,
  .split-section,
  .detail-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 38px;
  }

  .hero-copy h1,
  .section-heading h1,
  .article-page h1 {
    font-size: 40px;
  }

  .section-heading h2,
  .split-section h2 {
    font-size: 30px;
  }

  .service-grid,
  .article-grid,
  .stats-grid,
  .option-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-menu {
    position: static;
  }

  .table-card {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(var(--page-width), calc(100% - 20px));
    margin-top: 10px;
  }

  .brand {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand small {
    display: none;
  }

  .theme-toggle {
    width: 42px;
    padding: 0;
  }

  .theme-toggle [data-theme-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .site-footer,
  .hero-actions,
  .row-between,
  .track-form,
  .inline-filter,
  .wizard-actions,
  .table-card-head,
  .settings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero,
  .section,
  .split-section,
  .page-shell,
  .article-page {
    width: min(var(--page-width), calc(100% - 20px));
    padding: 22px;
  }

  .hero-copy h1,
  .section-heading h1,
  .article-page h1 {
    font-size: 32px;
  }

  .section-heading h2,
  .split-section h2 {
    font-size: 26px;
  }

  .hero-copy p,
  .lead,
  .prose {
    font-size: 16px;
  }

  .auth-shell {
    width: min(var(--page-width), calc(100% - 20px));
    padding: 26px 0;
  }

  .auth-card,
  .editor-card,
  .detail-card,
  .table-card {
    padding: 20px;
  }

  .wizard-head {
    gap: 18px;
    padding: 24px 68px 18px 22px;
  }

  .wizard-head h2 {
    font-size: 24px;
  }

  .wizard-step {
    padding: 22px 22px 4px;
  }

  dl {
    grid-template-columns: 1fr;
  }
}
