/* =====================================================
   ZeeSync Design System — Flat / Minimalista / Mobile-first
   WCAG 2.1 AA: contraste mínimo 4.5:1 em todos os tokens
   ===================================================== */

/* ── Tokens ─────────────────────────────────────────── */
:root {
  /* Cores primárias — azul profissional, não vívido */
  --color-primary:        #1d4ed8; /* blue-700 */
  --color-primary-hover:  #1e40af; /* blue-800 */
  --color-primary-fg:     #ffffff;

  /* Superfícies (light mode) */
  --color-surface:        #ffffff;
  --color-surface-2:      #f9fafb; /* gray-50 */
  --color-surface-3:      #f3f4f6; /* gray-100 */
  --color-border:         #e5e7eb; /* gray-200 */
  --color-on-surface:     #111827; /* gray-900 — contraste 16:1 */
  --color-muted:          #6b7280; /* gray-500 — contraste 4.6:1 */

  /* Estados */
  --color-success:        #16a34a;
  --color-warning:        #d97706;
  --color-danger:         #dc2626;
  --color-info:           #2563eb;

  /* Espaçamento */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  /* Tipografia */
  --font-sans:  "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, monospace;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;

  /* Border radius */
  --radius-sm:  0.25rem;
  --radius:     0.5rem;
  --radius-lg:  0.75rem;
  --radius-full: 9999px;

  /* Sombras refinadas */
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.05), 0 1px 0 rgb(0 0 0 / 0.02);
  --shadow:     0 1px 4px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.05);
  --shadow-lg:  0 10px 20px -4px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.05);

  /* Transições */
  --transition: 140ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dark mode — Premium Zinc / Neutral Palette ── */
[data-theme="dark"] {
  /* Surfaces — zinc base */
  --color-surface:        #09090b; /* zinc-950 — deepest base (body bg) */
  --color-surface-2:      #18181b; /* zinc-900 — cards, panels, headers */
  --color-surface-3:      #27272a; /* zinc-800 — elevated rows, hover states */

  /* Borders — subtle separation without noise */
  --color-border:         rgba(255, 255, 255, 0.1); 

  /* Typography */
  --color-on-surface:     #f4f4f5; /* zinc-100 */
  --color-muted:          #a1a1aa; /* zinc-400 */

  /* Primary — electric blue visible on deep neutral */
  --color-primary:        #3b82f6; /* blue-500 */
  --color-primary-hover:  #2563eb; /* blue-600 */

  /* Dark mode shadows — deeper to match the dark bg */
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.4);
  --shadow:     0 1px 6px 0 rgb(0 0 0 / 0.5), 0 1px 3px -1px rgb(0 0 0 / 0.4);
  --shadow-lg:  0 10px 28px -4px rgb(0 0 0 / 0.6), 0 4px 10px -4px rgb(0 0 0 / 0.5);
}

/* ── Reset / Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-on-surface);
  background-color: var(--color-surface-2);
  /* Efeito de luz suave vinda do topo (spotlight) */
  background-image: radial-gradient(ellipse 90% 50% at 50% -8%, rgba(29, 78, 216, 0.05) 0%, transparent 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] body {
  /* Subtle neutral spotlight from top */
  background-image: radial-gradient(ellipse 80% 40% at 50% -5%,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 100%);
}

a { color: inherit; }

/* Utilitário screen-reader-only (WCAG) */
.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;
}
.focus\:not-sr-only:focus {
  position: fixed; width: auto; height: auto;
  margin: 0; overflow: visible; clip: auto; white-space: normal;
}

/* ── Cores mapeadas ─────────────────────────────────── */
.bg-surface    { background: var(--color-surface); }
.bg-surface-2  { background: var(--color-surface-2); }
.text-on-surface { color: var(--color-on-surface); }
.text-muted    { color: var(--color-muted); }
.text-primary  { color: var(--color-primary); }

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer; text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
  /* WCAG: foco visível */
  outline: none;
}
.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  /* Subtle depth: bottom shadow + top-edge inner highlight */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn--outline {
  border: 1px solid var(--color-border);
  color: var(--color-on-surface);
  background: var(--color-surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.btn--outline:hover {
  background: var(--color-surface-2);
  border-color: #d1d5db;
}
[data-theme="dark"] .btn--outline {
  background: var(--color-surface-2);
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .btn--outline:hover {
  background: var(--color-surface-3);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn--danger  { background: var(--color-danger); color: #ffffff; }
.btn--sm      { padding: var(--space-1) var(--space-3); font-size: 0.8125rem; }
.btn--lg      { padding: var(--space-3) var(--space-6); font-size: var(--text-lg); }

/* WhatsApp — brand-green CTA, mirrors btn--primary depth treatment */
.btn--whatsapp {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn--whatsapp:hover {
  background: #1ebe5d;
  box-shadow: 0 4px 14px rgba(37,211,102,.35), inset 0 1px 0 rgba(255,255,255,.1);
  transform: translateY(-1px);
}
[data-theme="dark"] .btn--whatsapp       { background: #1ebe5d; }
[data-theme="dark"] .btn--whatsapp:hover { background: #17ab52; }

/* Ícone-only button */
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border: none; border-radius: var(--radius);
  background: transparent; cursor: pointer; color: var(--color-muted);
  transition: background var(--transition), color var(--transition);
}
.btn-icon:hover  { background: var(--color-surface-2); color: var(--color-on-surface); }
.btn-icon:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.btn--icon { padding: 0; width: 2.25rem; height: 2.25rem; }

/* ── Inputs ─────────────────────────────────────────── */
.input {
  width: 100%; padding: var(--space-2) var(--space-3);
  border: 1.5px solid var(--color-border); border-radius: var(--radius);
  background: var(--color-surface); color: var(--color-on-surface);
  font-size: var(--text-base); transition: border-color var(--transition);
}
.input:focus { border-color: var(--color-primary); outline: none; }
.input--error { border-color: var(--color-danger); }
.input-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-1);
  color: var(--color-on-surface);
}
.input-error-msg { font-size: var(--text-sm); color: var(--color-danger); margin-top: var(--space-1); }
.input-hint     { font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-1); }

/* ── Cards & Containers ──────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  /* Subtle depth: drop shadow + lit-from-above top edge */
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 1);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.09),
              inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Dark mode cards: deep shadow + subtle rim light */
[data-theme="dark"] .card {
  background: var(--color-surface-2);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.card--glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .card--glass {
  background: rgba(12, 17, 29, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.card__header { padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--color-border); }
.card__body   { padding: var(--space-6); }
.card__footer { padding: var(--space-4) var(--space-6); border-top: 1px solid var(--color-border); background: var(--color-surface-2); }

.container {
  width: min(100% - 2rem, 80rem);
  margin-left: auto;
  margin-right: auto;
}

/* ── Sidebar ────────────────────────────────────────── */

/*
   Desktop (≥ 768px): sidebar sits in the flex row normally.
   Mobile  (< 768px): sidebar is a fixed off-screen drawer
   that slides in when #app-sidebar has class "open".
   An overlay (#sidebar-overlay) closes it on outside click.
*/

/* Desktop: static, fixed width inside flex container */
#app-sidebar {
  width: 15rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile: override to fixed drawer */
@media (max-width: 767px) {
  #app-sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100dvh;          /* full viewport height */
    width: min(16rem, 85vw); /* never wider than 85% of screen */
    z-index: 60;             /* above topnav (z-40) */
    transform: translateX(-100%);
    box-shadow: none;
    overflow-y: auto;
  }

  /* Slide in */
  #app-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
  }

  /* Backdrop overlay — injected by JS when sidebar opens */
  #sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 59; /* just below sidebar */
    background: rgba(9, 9, 11, 0.65); /* zinc-950 at 65% */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: overlayFadeIn 0.22s ease;
  }

  #sidebar-overlay.active {
    display: block;
  }

  @keyframes overlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

/* ── Sidebar nav items ──────────────────────────────── */
.sidebar__nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--color-on-surface);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.sidebar__nav-item:hover {
  background: var(--color-surface-3);
}

.sidebar__nav-item--active {
  background: rgba(59, 130, 246, 0.10);
  color: var(--color-primary);
  font-weight: 600;
}

[data-theme="dark"] .sidebar__nav-item--active {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa; /* blue-400 — higher contrast on dark */
}

/* ── Topnav ─────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  height: 4rem;
}
.topnav__inner {
  max-width: 1280px; margin: 0 auto; height: 100%;
  padding: 0 var(--space-4);
  display: flex; align-items: center; gap: var(--space-4);
}
.topnav__logo  { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; flex-shrink: 0; }
.topnav__brand { font-size: var(--text-lg); font-weight: 700; color: var(--color-on-surface); }
.topnav__search { flex: 1; max-width: 480px; position: relative; }
.topnav__search-input { width: 100%; }
.topnav__search-results {
  position: absolute; top: calc(100% + var(--space-1)); left: 0; right: 0;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 50;
}
.topnav__actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.topnav__avatar {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: var(--radius-full);
  background: var(--color-primary); color: var(--color-primary-fg);
  font-size: var(--text-sm); font-weight: 600; cursor: pointer; border: none;
}
.topnav__avatar-initials { font-size: 0.75rem; font-weight: 700; }

/* ── Sticky header lighting ──────────────────────────── */
/* Light mode: crisp 1px separator + barely-there drop shadow */
header[role="banner"] {
  box-shadow: 0 1px 0 var(--color-border),
              0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Dark mode: deep obsidian bg — brighter rim + deeper shadow */
[data-theme="dark"] header[role="banner"] {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08),
              0 2px 16px rgba(0, 0, 0, 0.6);
}

/* ── Topnav Search — light & dark ───────────────────── */
/*
   The search pill sits on the header (bg-surface/80 backdrop-blur).
   Light: surface-2 + border is fine — good contrast on white.
   Dark:  #111827 surface-2 is near-invisible on #0c111d header.
          Lift it with a brighter bg + defined border.
*/

/* Dark mode: lifted pill — more contrast needed on zinc-950 base */
[data-theme="dark"] div:has(> #topnav-search),
[data-theme="dark"] .topnav-search-pill {
  background: rgba(255, 255, 255, 0.05) !important; /* glass on #09090b */
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
              0 1px 6px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] div:has(> #topnav-search):focus-within,
[data-theme="dark"] .topnav-search-pill:focus-within {
  border-color: rgba(59, 130, 246, 0.55) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
              0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Search icon */
[data-theme="dark"] div:has(> #topnav-search) [data-lucide="search"],
[data-theme="dark"] .topnav-search-pill [data-lucide="search"] {
  color: #a1a1aa; /* zinc-400 */
}

/* Placeholder */
#topnav-search::placeholder {
  color: var(--color-muted);
  opacity: 1;
}

[data-theme="dark"] #topnav-search::placeholder {
  color: #a1a1aa; /* zinc-400 */
}

/* Typed text + caret */
[data-theme="dark"] #topnav-search {
  color: #f4f4f5; /* zinc-100 */
  caret-color: #3b82f6;
}

/* Results dropdown — surface-2 (#18181b) + heavy shadow on deep base */
[data-theme="dark"] #topnav-search-results {
  background: #18181b; /* zinc-900 = surface-2 */
  border-color: rgba(255, 255, 255, 0.1); /* rgba border token */

  border-color: #334155; /* slate-600 = border token */
ter; width: 100%;
}
.dropdown-menu li a:hover,
.dropdown-menu li button:hover { background: var(--color-surface-2); }
.dropdown-menu__divider { height: 1px; background: var(--color-border); margin: var(--space-1) 0; }

/* ── Toast / Alerts ─────────────────────────────────── */
.toast {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: var(--text-sm); font-weight: 500;
  display: flex; align-items: center; gap: var(--space-2);
  pointer-events: all; animation: slideIn 200ms ease;
}
.alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  font-size: var(--text-sm);
  font-weight: 500;
  background: var(--color-surface);
}
.alert--success { background: #ecfdf3; color: #166534; border-color: #bbf7d0; }
.alert--error,
.alert--danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert--warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert--info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.toast--success { background: #dcfce7; color: #15803d; border-left: 3px solid #16a34a; }
.toast--error   { background: #fee2e2; color: #b91c1c; border-left: 3px solid #dc2626; }
.toast--warning { background: #fef9c3; color: #92400e; border-left: 3px solid #d97706; }
.toast--info    { background: #e0f2fe; color: #0369a1; border-left: 3px solid #0891b2; }
@keyframes slideIn {
  from { transform: translateX(1rem); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Badge ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 var(--space-2); height: 1.25rem; min-width: 1.25rem;
  border-radius: var(--radius-full); font-size: 0.6875rem; font-weight: 600;
}
.badge--red    { background: var(--color-danger);  color: #fff; }
.badge--green  { background: var(--color-success); color: #fff; }
.badge--yellow { background: var(--color-warning); color: #fff; }
.badge--gray   { background: var(--color-surface-3); color: var(--color-muted); }

/* ── Sidebar ────────────────────────────────────────── */
.sidebar {
  width: 16rem; flex-shrink: 0;
  background: var(--color-surface-2);
  border-right: 1px solid var(--color-border);
  overflow-y: auto; padding: var(--space-4) 0;
}
.sidebar__nav-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm); color: var(--color-on-surface);
  text-decoration: none; border-radius: var(--radius); margin: 0 var(--space-2);
  transition: background var(--transition);
}
.sidebar__nav-item:hover { background: var(--color-surface-3); }
.sidebar__nav-item--active {
  background: var(--color-primary); color: var(--color-primary-fg);
}
.sidebar__nav-item--active:hover { background: var(--color-primary-hover); }

/* ── Modal ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 50; padding: 1rem; animation: fadeIn .15s ease;
}
.modal {
  background: var(--color-surface); border-radius: var(--radius-lg);
  border: 1px solid var(--color-border); width: 100%; max-width: 32rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.2); overflow: hidden;
}
.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--color-border);
}
.modal__body { padding: 1.5rem; }
@keyframes fadeIn { from { opacity:0; transform:scale(.96) } to { opacity:1; transform:scale(1) } }

/* ── Step Indicator (booking wizard) ────────────────── */
.step {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
}
.step__num {
  width: 2rem; height: 2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm); font-weight: 700;
  background: var(--color-surface-2); border: 2px solid var(--color-border);
  color: var(--color-muted);
}
.step__label { font-size: .7rem; color: var(--color-muted); white-space: nowrap; }
.step--active .step__num { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.step--active .step__label { color: var(--color-primary); font-weight: 600; }
.step--done .step__num { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.step__line {
  flex: 1; height: 2px; background: var(--color-border);
  min-width: 2rem; margin-bottom: 1.25rem;
}

/* ── Switch Toggle ──────────────────────────────────── */
.switch { position: relative; display: inline-block; width: 2.75rem; height: 1.5rem; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--color-border); border-radius: var(--radius-full);
  transition: background .2s;
}
.switch__slider::before {
  content: ''; position: absolute;
  width: 1.125rem; height: 1.125rem;
  left: .1875rem; bottom: .1875rem;
  background: #fff; border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + .switch__slider { background: var(--color-primary); }
.switch input:checked + .switch__slider::before { transform: translateX(1.25rem); }
.switch input:focus-visible + .switch__slider { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ── Tab Navigation ─────────────────────────────────── */
.tab {
  padding: .625rem 1rem; font-size: var(--text-sm); font-weight: 500;
  color: var(--color-muted); border-bottom: 2px solid transparent;
  cursor: pointer; transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--color-on-surface); }
.tab--active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* ── Input sizes ────────────────────────────────────── */
.input--sm { padding: .375rem .625rem; font-size: var(--text-sm); }

/* ── Badge variants ─────────────────────────────────── */
.badge--success { background: #dcfce7; color: #166534; }
.badge--warning { background: #fef9c3; color: #92400e; }
.badge--danger  { background: #fee2e2; color: #991b1b; }
.badge--info    { background: #e0f2fe; color: #075985; }
.badge--neutral { background: var(--color-surface-2); color: var(--color-muted); }
.badge--active,
.badge--confirmed,
.badge--completed { background: #dcfce7; color: #166534; }
.badge--inactive,
.badge--canceled,
.badge--cancelled { background: #fee2e2; color: #991b1b; }
.badge--pending { background: #fef3c7; color: #92400e; }

/* ── Nav link (admin sidebar) ───────────────────────── */
.nav-link { display: flex; align-items: center; gap: .75rem; padding: .5rem 1rem;
  border-radius: var(--radius); color: var(--color-on-surface);
  font-size: var(--text-sm); text-decoration: none; transition: background .15s;
}
.nav-link:hover { background: var(--color-surface-3); }
.nav-link.active { background: rgba(29, 78, 216, 0.08); color: var(--color-primary); font-weight: 600; }

/* ── Responsivo ─────────────────────────────────────── */
@media (max-width: 768px) {
  .topnav__search { display: none; }
  .sidebar { display: none; }
  .sidebar.open { display: block; position: fixed; inset: 4rem 0 0 0; z-index: 30; width: 100%; }
}
@media (max-width: 375px) {
  .topnav__brand { display: none; }
}

/* ═══════════════════════════════════════════════════════
   UTILITY LAYER — Tailwind-compatible classes used in templates
   ═══════════════════════════════════════════════════════ */

/* ── Display ─────────────────────────────────────────── */
.flex         { display: flex; }
.grid         { display: grid; }
.block        { display: block; }
.hidden       { display: none; }
.inline-flex  { display: inline-flex; }
.inline-block { display: inline-block; }
.inline       { display: inline; }

/* ── Flex ────────────────────────────────────────────── */
.flex-col       { flex-direction: column; }
.flex-row       { flex-direction: row; }
.flex-wrap      { flex-wrap: wrap; }
.flex-nowrap    { flex-wrap: nowrap; }
.flex-1         { flex: 1 1 0%; }
.flex-shrink-0  { flex-shrink: 0; }
.flex-grow      { flex-grow: 1; }

.items-start    { align-items: flex-start; }
.items-center   { align-items: center; }
.items-end      { align-items: flex-end; }
.items-stretch  { align-items: stretch; }
.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.self-start  { align-self: flex-start; }
.self-center { align-self: center; }
.self-end    { align-self: flex-end; }

/* ── Gap ─────────────────────────────────────────────── */
.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-5  { gap: 1.25rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-x-2 { column-gap: 0.5rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-y-2 { row-gap: 0.5rem; }
.gap-y-4 { row-gap: 1rem; }

/* ── Grid columns ────────────────────────────────────── */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.col-span-1  { grid-column: span 1 / span 1; }
.col-span-2  { grid-column: span 2 / span 2; }
.col-span-3  { grid-column: span 3 / span 3; }
.col-span-4  { grid-column: span 4 / span 4; }

/* ── Padding ─────────────────────────────────────────── */
.p-0  { padding: 0; }
.p-1  { padding: 0.25rem; }
.p-2  { padding: 0.5rem; }
.p-3  { padding: 0.75rem; }
.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem;  padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem;    padding-right: 1rem; }
.px-6 { padding-left: 1.5rem;  padding-right: 1.5rem; }
.px-8 { padding-left: 2rem;    padding-right: 2rem; }

.py-1  { padding-top: 0.25rem;  padding-bottom: 0.25rem; }
.py-2  { padding-top: 0.5rem;   padding-bottom: 0.5rem; }
.py-3  { padding-top: 0.75rem;  padding-bottom: 0.75rem; }
.py-4  { padding-top: 1rem;     padding-bottom: 1rem; }
.py-5  { padding-top: 1.25rem;  padding-bottom: 1.25rem; }
.py-6  { padding-top: 1.5rem;   padding-bottom: 1.5rem; }
.py-8  { padding-top: 2rem;     padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem;   padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem;     padding-bottom: 3rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pr-1 { padding-right: 0.25rem; }
.pr-2 { padding-right: 0.5rem; }
.pr-4 { padding-right: 1rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pl-1 { padding-left: 0.25rem; }
.pl-2 { padding-left: 0.5rem; }
.pl-4 { padding-left: 1rem; }

/* ── Margin ──────────────────────────────────────────── */
.m-0    { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-2  { margin-top: 0.5rem;  margin-bottom: 0.5rem; }
.my-4  { margin-top: 1rem;    margin-bottom: 1rem; }
.my-6  { margin-top: 1.5rem;  margin-bottom: 1.5rem; }

.mt-1  { margin-top: 0.25rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-5  { margin-top: 1.25rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-auto { margin-top: auto; }

.mr-1  { margin-right: 0.25rem; }
.mr-2  { margin-right: 0.5rem; }
.mr-3  { margin-right: 0.75rem; }
.mr-4  { margin-right: 1rem; }

.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-20 { margin-bottom: 5rem; }

.ml-1    { margin-left: 0.25rem; }
.ml-2    { margin-left: 0.5rem; }
.ml-3    { margin-left: 0.75rem; }
.ml-auto { margin-left: auto; }

/* ── Space between ───────────────────────────────────── */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }

/* ── Width ───────────────────────────────────────────── */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-3    { width: 0.75rem; }
.w-4    { width: 1rem; }
.w-5    { width: 1.25rem; }
.w-6    { width: 1.5rem; }
.w-8    { width: 2rem; }
.w-10   { width: 2.5rem; }
.w-12   { width: 3rem; }
.w-16   { width: 4rem; }
.w-20   { width: 5rem; }
.w-24   { width: 6rem; }
.w-32   { width: 8rem; }
.w-48   { width: 12rem; }
.w-64   { width: 16rem; }

.max-w-xs  { max-width: 20rem; }
.max-w-sm  { max-width: 24rem; }
.max-w-md  { max-width: 28rem; }
.max-w-lg  { max-width: 32rem; }
.max-w-xl  { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-full { max-width: 100%; }

.min-w-0    { min-width: 0; }
.min-w-full { min-width: 100%; }

/* ── Height ──────────────────────────────────────────── */
.h-full    { height: 100%; }
.h-auto    { height: auto; }
.h-3       { height: 0.75rem; }
.h-4       { height: 1rem; }
.h-5       { height: 1.25rem; }
.h-6       { height: 1.5rem; }
.h-8       { height: 2rem; }
.h-10      { height: 2.5rem; }
.h-12      { height: 3rem; }
.h-16      { height: 4rem; }
.h-20      { height: 5rem; }
.h-24      { height: 6rem; }
.h-screen  { height: 100vh; }
.min-h-screen { min-height: 100vh; }
/* Arbitrary: h-[calc(100vh-4rem)] — for base.html main content area */
.h-\[calc\(100vh-4rem\)\] { height: calc(100vh - 4rem); }

/* ── Typography ──────────────────────────────────────── */
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
.text-5xl  { font-size: 3rem;     line-height: 1; }

.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.capitalize  { text-transform: capitalize; }
.uppercase   { text-transform: uppercase; }
.lowercase   { text-transform: lowercase; }
.underline   { text-decoration: underline; }
.no-underline { text-decoration: none; }
.line-through { text-decoration: line-through; }

.leading-4  { line-height: 1rem; }
.leading-5  { line-height: 1.25rem; }
.leading-6  { line-height: 1.5rem; }
.leading-7  { line-height: 1.75rem; }
.leading-8  { line-height: 2rem; }
.leading-none { line-height: 1; }

.tracking-tight  { letter-spacing: -0.025em; }
.tracking-wide   { letter-spacing: 0.025em; }
.tracking-wider  { letter-spacing: 0.05em; }

/* ── Colors ──────────────────────────────────────────── */
.text-white      { color: #ffffff; }
.text-black      { color: #000000; }
.text-green-600  { color: #16a34a; }
.text-green-700  { color: #15803d; }
.text-blue-600   { color: #2563eb; }
.text-indigo-500 { color: #3b82f6; } /* blue-500 */
.text-indigo-600 { color: #2563eb; } /* blue-600 */
.text-red-600    { color: #dc2626; }
.text-red-700    { color: #b91c1c; }
.text-yellow-600 { color: #ca8a04; }
.text-orange-600 { color: #ea580c; }
.text-danger     { color: var(--color-danger); }
.text-success    { color: var(--color-success); }
.text-warning    { color: var(--color-warning); }
.text-info       { color: var(--color-info); }

.bg-white       { background-color: #ffffff; }
.bg-transparent { background-color: transparent; }
/* bg-primary/10 and /20 — primary color at reduced opacity */
.bg-primary\/10 { background-color: rgba(29, 78, 216, 0.1); }
.bg-primary\/20 { background-color: rgba(29, 78, 216, 0.2); }

/* ── Position ────────────────────────────────────────── */
.static   { position: static; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; top: 0; }

.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.top-0    { top: 0; }
.top-1    { top: 0.25rem; }
.top-2    { top: 0.5rem; }
.top-4    { top: 1rem; }
.right-0  { right: 0; }
.right-1  { right: 0.25rem; }
.right-4  { right: 1rem; }
.bottom-0 { bottom: 0; }
.bottom-4 { bottom: 1rem; }
.left-0   { left: 0; }
.left-2   { left: 0.5rem; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ── Borders ─────────────────────────────────────────── */
.border     { border: 1px solid var(--color-border); }
.border-t   { border-top: 1px solid var(--color-border); }
.border-b   { border-bottom: 1px solid var(--color-border); }
.border-l   { border-left: 1px solid var(--color-border); }
.border-r   { border-right: 1px solid var(--color-border); }
.border-0   { border: none; }

/* border-danger/30 */
.border-danger\/30 { border-color: rgba(220, 38, 38, 0.3); }

.rounded     { border-radius: var(--radius-sm); }
.rounded-md  { border-radius: var(--radius); }
.rounded-lg  { border-radius: var(--radius-lg); }
.rounded-xl  { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: var(--radius-full); }
.rounded-none { border-radius: 0; }

/* Ring (focus/hover outline via box-shadow) */
.ring-2         { box-shadow: 0 0 0 2px var(--color-primary); }
.ring-primary   { --ring-color: var(--color-primary); }

/* hover:ring-primary/30 */
.hover\:ring-primary\/30:hover { box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.3); }

/* ── Overflow ────────────────────────────────────────── */
.overflow-auto    { overflow: auto; }
.overflow-hidden  { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-x-auto  { overflow-x: auto; }
.overflow-y-auto  { overflow-y: auto; }

/* ── Cursor ──────────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

/* ── Transitions ─────────────────────────────────────── */
.transition     { transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.transition-all { transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.duration-150   { transition-duration: 150ms; }
.duration-200   { transition-duration: 200ms; }

/* ── Object fit ──────────────────────────────────────── */
.object-cover   { object-fit: cover; }
.object-contain { object-fit: contain; }

/* ── Opacity ─────────────────────────────────────────── */
.opacity-0   { opacity: 0; }
.opacity-50  { opacity: 0.5; }
.opacity-75  { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* ── Misc ────────────────────────────────────────────── */
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre    { white-space: pre; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pointer-events-none { pointer-events: none; }
.pointer-events-all  { pointer-events: all; }
.select-none  { user-select: none; }
.list-none    { list-style: none; }
.resize-none  { resize: none; }
.appearance-none { appearance: none; }
.outline-none { outline: none; }
.isolate      { isolation: isolate; }
.w-px         { width: 1px; }
.h-px         { height: 1px; }

/* ── Hover / Focus states ────────────────────────────── */
.hover\:underline:hover        { text-decoration: underline; }
.hover\:no-underline:hover     { text-decoration: none; }
.hover\:bg-surface-2:hover     { background: var(--color-surface-2); }
.hover\:bg-surface-3:hover     { background: var(--color-surface-3); }
.hover\:text-on-surface:hover  { color: var(--color-on-surface); }
.hover\:text-primary:hover     { color: var(--color-primary); }
.hover\:ring-2:hover           { box-shadow: 0 0 0 2px var(--color-primary); }
.hover\:opacity-80:hover       { opacity: 0.8; }

.focus\:ring-2:focus-visible   { box-shadow: 0 0 0 2px var(--color-primary); }
.focus\:outline-none:focus     { outline: none; }

/* ── Responsive — md (768px+) ────────────────────────── */
@media (min-width: 768px) {
  .md\:flex         { display: flex; }
  .md\:grid         { display: grid; }
  .md\:block        { display: block; }
  .md\:hidden       { display: none; }
  .md\:inline-flex  { display: inline-flex; }

  .md\:flex-row     { flex-direction: row; }
  .md\:flex-col     { flex-direction: column; }

  .md\:grid-cols-1  { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .md\:grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .md\:col-span-1   { grid-column: span 1 / span 1; }
  .md\:col-span-2   { grid-column: span 2 / span 2; }
  .md\:col-span-3   { grid-column: span 3 / span 3; }

  .md\:gap-6        { gap: 1.5rem; }
  .md\:gap-8        { gap: 2rem; }
  .md\:gap-10       { gap: 2.5rem; }
  .md\:gap-12       { gap: 3rem; }

  .md\:p-6          { padding: 1.5rem; }
  .md\:px-6         { padding-left: 1.5rem; padding-right: 1.5rem; }
  .md\:py-6         { padding-top: 1.5rem;  padding-bottom: 1.5rem; }

  .md\:text-5xl     { font-size: 3rem; line-height: 1; }
  .md\:text-3xl     { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-2xl     { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-xl      { font-size: 1.25rem; line-height: 1.75rem; }

  .md\:max-w-none   { max-width: none; }
  .md\:max-w-2xl    { max-width: 42rem; }
  .md\:max-w-4xl    { max-width: 56rem; }
  .md\:max-w-6xl    { max-width: 72rem; }

  .md\:w-auto       { width: auto; }
  .md\:mt-0         { margin-top: 0; }
  .md\:mb-0         { margin-bottom: 0; }

  .md\:items-center   { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
}

/* ── Responsive — lg (1280px+) ───────────────────────── */
@media (min-width: 1280px) {
  .lg\:grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .lg\:p-8          { padding: 2rem; }
  .lg\:px-8         { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-8         { padding-top: 2rem;  padding-bottom: 2rem; }

  .lg\:block        { display: block; }
  .lg\:hidden       { display: none; }
  .lg\:flex         { display: flex; }

  .lg\:text-5xl     { font-size: 3rem; line-height: 1; }
  .lg\:text-6xl     { font-size: 3.75rem; line-height: 1; }
}

/* ── Small (max 640px) ───────────────────────────────── */
@media (max-width: 640px) {
  .sm\:hidden { display: none; }
}

/* Bridge utilities for shared HTMX/Qute templates */
.h-\[calc\(100vh-4rem\)\] { height: calc(100vh - 4rem); }
.max-h-48 { max-height: 12rem; }
.max-h-80 { max-height: 20rem; }
.max-h-\[90vh\] { max-height: 90vh; }
.max-w-\[120px\] { max-width: 120px; }
.w-1\.5 { width: 0.375rem; }
.h-1\.5 { height: 0.375rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[12px\] { font-size: 12px; }
.bg-primary { background: var(--color-primary); }
.bg-primary\/5 { background: rgba(29, 78, 216, 0.05); }
.bg-primary\/10 { background: rgba(29, 78, 216, 0.1); }
.bg-primary\/20 { background: rgba(29, 78, 216, 0.2); }
.bg-surface\/60 { background: rgba(255, 255, 255, 0.6); }
.bg-surface\/80 { background: rgba(255, 255, 255, 0.8); }
.bg-surface-2\/30 { background: rgba(249, 250, 251, 0.3); }
.bg-surface-2\/50 { background: rgba(249, 250, 251, 0.5); }
.bg-surface-3\/50 { background: rgba(243, 244, 246, 0.5); }
.bg-indigo-50 { background: #eff6ff; }         /* blue-50 */
.bg-indigo-500\/5 { background: rgba(59, 130, 246, 0.05); }  /* blue-500 */
.bg-indigo-500\/10 { background: rgba(59, 130, 246, 0.1); }
.bg-red-500\/10 { background: rgba(239, 68, 68, 0.1); }
.bg-black\/40 { background: rgba(0, 0, 0, 0.4); }
.bg-black\/50 { background: rgba(0, 0, 0, 0.5); }
.border-border { border-color: var(--color-border); }
.border-border\/50 { border-color: rgba(229, 231, 235, 0.5); }
.border-primary\/10 { border-color: rgba(29, 78, 216, 0.1); }
.border-primary\/20 { border-color: rgba(29, 78, 216, 0.2); }
.border-primary\/30 { border-color: rgba(29, 78, 216, 0.3); }
.border-primary\/40 { border-color: rgba(29, 78, 216, 0.4); }
.border-primary\/50 { border-color: rgba(29, 78, 216, 0.5); }
.border-indigo-300 { border-color: #93c5fd; } /* blue-300 */
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.text-red-500 { color: #ef4444; }
.text-amber-600 { color: #d97706; }
.text-emerald-500 { color: #10b981; }
.text-blue-500 { color: #3b82f6; }
.text-on-surface\/70 { color: rgba(15, 23, 42, 0.7); }
.text-on-surface\/80 { color: rgba(15, 23, 42, 0.8); }
.text-muted\/50 { color: rgba(100, 116, 139, 0.5); }
.text-muted\/60 { color: rgba(100, 116, 139, 0.6); }
.text-muted\/70 { color: rgba(100, 116, 139, 0.7); }
.backdrop-blur-sm { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop\:bg-black\/50::backdrop { background: rgba(0, 0, 0, 0.5); }
.backdrop\:backdrop-blur-sm::backdrop { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ring-1 { box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08); }
.ring-black\/5 { box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05); }
.hover\:bg-primary\/5:hover { background: rgba(29, 78, 216, 0.05); }
.hover\:bg-red-500\/10:hover { background: rgba(239, 68, 68, 0.1); }
.hover\:text-primary\/70:hover { color: rgba(29, 78, 216, 0.7); }
.hover\:border-primary\/30:hover { border-color: rgba(29, 78, 216, 0.3); }
.focus-within\:border-primary\/50:focus-within { border-color: rgba(29, 78, 216, 0.5); }
.animate-in { animation-duration: 220ms; animation-fill-mode: both; }
.animate-out { animation-duration: 180ms; animation-fill-mode: both; }
.fade-in { animation-name: fadeInUtility; }
.fade-out { animation-name: fadeOutUtility; }
.slide-in-from-right { animation-name: slideInRightUtility; }
.slide-in-from-right-4 { animation-name: slideInRightUtility; }
.slide-in-from-top-2 { animation-name: slideInTopUtility; }
.slide-in-from-bottom-2 { animation-name: slideInBottomUtility; }
.slide-in-from-bottom-3 { animation-name: slideInBottomUtility; }
.slide-in-from-bottom-4 { animation-name: slideInBottomUtility; }
.slide-in-from-left-4 { animation-name: slideInLeftUtility; }
.duration-300 { animation-duration: 300ms; transition-duration: 300ms; }
.duration-400 { animation-duration: 400ms; transition-duration: 400ms; }
.duration-500 { animation-duration: 500ms; transition-duration: 500ms; }
.active\:scale-95:active { transform: scale(0.95); }
.custom-scrollbar { scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, 0.6) transparent; }
.custom-scrollbar::-webkit-scrollbar { width: 8px; height: 8px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.5); border-radius: 999px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }
.bg-gradient-to-br {
  background-image: linear-gradient(135deg, var(--gradient-from, transparent), var(--gradient-via, transparent), var(--gradient-to, transparent));
}
.from-primary\/5 { --gradient-from: rgba(37, 99, 235, 0.05); }
.from-surface-2\/50 { --gradient-from: rgba(248, 250, 252, 0.5); }
.via-surface { --gradient-via: var(--color-surface); }
.to-surface-2 { --gradient-to: var(--color-surface-2); }
.to-transparent { --gradient-to: transparent; }
.blur-3xl { filter: blur(64px); }
.dark\:block { display: none; }
.dark\:hidden { display: block; }
[data-theme="dark"] .dark\:block { display: block; }
[data-theme="dark"] .dark\:hidden { display: none; }

.service-option:has(:checked),
.professional-option:has(:checked) {
  border-color: rgba(29, 78, 216, 0.4);
  background: rgba(29, 78, 216, 0.05);
  box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.15);
}

@keyframes fadeInUtility {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOutUtility {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slideInRightUtility {
  from { opacity: 0; transform: translateX(1rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInTopUtility {
  from { opacity: 0; transform: translateY(-0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInBottomUtility {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeftUtility {
  from { opacity: 0; transform: translateX(-1rem); }
  to { opacity: 1; transform: translateX(0); }
}

/* Supplemental compatibility layer for shared Qute/HTMX templates */
body { overflow-x: hidden; }
img, svg { max-width: 100%; }
main { width: 100%; }

dialog {
  border: 0;
  color: inherit;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

select.input,
textarea.input { appearance: none; }

textarea.input {
  min-height: 7rem;
  resize: vertical;
}

.page-shell {
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.page-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(29, 78, 216, 0.08);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-header__title {
  margin: 0;
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.page-header__subtitle {
  margin: 0.5rem 0 0;
  max-width: 48rem;
  color: var(--color-muted);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  background: var(--color-surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06),
              0 6px 20px rgba(15, 23, 42, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Subtle glowing top-edge — blue accent lighting effect */
.hero-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 5%,
    rgba(29, 78, 216, 0.2) 40%,
    rgba(59, 130, 246, 0.3) 50%,
    rgba(29, 78, 216, 0.2) 60%,
    transparent 95%);
  pointer-events: none;
}

[data-theme="dark"] .hero-panel {
  background: var(--color-surface-2);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .hero-panel::before {
  background: linear-gradient(90deg,
    transparent 5%,
    rgba(59, 130, 246, 0.25) 40%,
    rgba(96, 165, 250, 0.4) 50%,
    rgba(59, 130, 246, 0.25) 60%,
    transparent 95%);
}

.stack { display: grid; gap: 1.5rem; }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.htmx-indicator {
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, visibility 150ms ease;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
  visibility: visible;
}

.htmx-request .htmx-request\:hidden,
.htmx-request.htmx-request\:hidden {
  display: none !important;
}

.htmx-request .htmx-request\:flex,
.htmx-request.htmx-request\:flex {
  display: flex !important;
}

.gap-1\.5 { gap: 0.375rem; }
.gap-x-6 { column-gap: 1.5rem; }
.p-1\.5 { padding: 0.375rem; }
.p-16 { padding: 4rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pb-20 { padding-bottom: 5rem; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }

.w-3\.5 { width: 0.875rem; }
.w-9 { width: 2.25rem; }
.w-14 { width: 3.5rem; }
.w-40 { width: 10rem; }
.w-80 { width: 20rem; }
.w-fit { width: fit-content; }
.h-3\.5 { height: 0.875rem; }
.h-9 { height: 2.25rem; }
.h-14 { height: 3.5rem; }
.h-32 { height: 8rem; }
.h-40 { height: 10rem; }
.h-80 { height: 20rem; }
.min-h-20 { min-height: 5rem; }
.min-h-\[44px\] { min-height: 44px; }
.min-h-\[100px\] { min-height: 100px; }

.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-black { font-weight: 900; }
.tracking-tighter { letter-spacing: -0.04em; }
.tracking-widest { letter-spacing: 0.12em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }

.text-amber-800 { color: #92400e; }
.text-amber-900 { color: #78350f; }
.text-green-500 { color: #22c55e; }
.text-purple-500 { color: #a855f7; }
.text-yellow-500 { color: #eab308; }
.text-primary\/60 { color: rgba(29, 78, 216, 0.6); }

.bg-border { background-color: var(--color-border); }
.bg-success { background-color: var(--color-success); }
.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-400\/20 { background-color: rgba(251, 191, 36, 0.2); }
.bg-blue-500\/10 { background-color: rgba(59, 130, 246, 0.1); }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1); }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-500 { background-color: #22c55e; }
.bg-green-500\/10 { background-color: rgba(34, 197, 94, 0.1); }
.bg-indigo-600 { background-color: #2563eb; } /* blue-600 */
.bg-purple-500\/10 { background-color: rgba(168, 85, 247, 0.1); }
.bg-surface\/50 { background: rgba(255, 255, 255, 0.5); }

.top-8 { top: 2rem; }
.top-10 { top: 2.5rem; }
.top-1\/2 { top: 50%; }
.right-1\.5 { right: 0.375rem; }
.right-3 { right: 0.75rem; }
.right-10 { right: 2.5rem; }
.right-20 { right: 5rem; }
.-right-20 { right: -5rem; }
.bottom-1 { bottom: 0.25rem; }
.-bottom-20 { bottom: -5rem; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-2 { transform: translateX(-0.5rem); }
.translate-x-1 { transform: translateX(0.25rem); }
.rotate-12 { transform: rotate(12deg); }

.border-2 { border-width: 2px; border-style: solid; border-color: var(--color-border); }
.border-4 { border-width: 4px; border-style: solid; border-color: var(--color-border); }
.border-b-2 { border-bottom: 2px solid var(--color-border); }
.border-dashed { border-style: dashed; }
.border-current { border-color: currentColor; }
.border-transparent { border-color: transparent; }
.border-surface { border-color: var(--color-surface); }
.border-amber-300 { border-color: #fcd34d; }
.border-amber-400 { border-color: #fbbf24; }
.border-amber-400\/30 { border-color: rgba(251, 191, 36, 0.3); }
.border-indigo-400\/40 { border-color: rgba(96, 165, 250, 0.4); }  /* blue-400 */
.border-indigo-500\/10 { border-color: rgba(59, 130, 246, 0.1); }  /* blue-500 */
.border-primary { border-color: var(--color-primary); }
.border-primary\/5 { border-color: rgba(37, 99, 235, 0.05); }
.border-t-transparent { border-top-color: transparent; }
.rounded-r { border-radius: 0 var(--radius) var(--radius) 0; }

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-shadow {
  transition-property: box-shadow;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-transform {
  transition-property: transform;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-opacity {
  transition-property: opacity;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.opacity-10 { opacity: 0.1; }
.opacity-20 { opacity: 0.2; }
.opacity-30 { opacity: 0.3; }
.opacity-60 { opacity: 0.6; }
.fill-current { fill: currentColor; }
.accent-primary { accent-color: var(--color-primary); }
.border-collapse { border-collapse: collapse; }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top: 1px solid var(--color-border); }
.divide-border > :not([hidden]) ~ :not([hidden]) { border-color: var(--color-border); }
.animate-spin { animation: zeesyncSpin 1s linear infinite; }
.animate-pulse { animation: zeesyncPulse 1.8s ease-in-out infinite; }

.hover\:bg-surface-2\/50:hover { background: rgba(248, 250, 252, 0.5); }
.hover\:bg-indigo-50:hover { background: #eff6ff; }   /* blue-50 */
.hover\:bg-indigo-700:hover { background: #1d4ed8; }  /* blue-700 */
.hover\:text-amber-900:hover { color: #78350f; }
.hover\:ring-primary:hover { box-shadow: 0 0 0 2px var(--color-primary); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:shadow-md:hover { box-shadow: var(--shadow); }
.hover\:shadow-lg:hover { box-shadow: var(--shadow-lg); }
.hover\:shadow-xl:hover { box-shadow: 0 24px 40px rgba(15, 23, 42, 0.14); }

.focus\:fixed:focus { position: fixed; }
.focus\:top-2:focus { top: 0.5rem; }
.focus\:left-2:focus { left: 0.5rem; }
.focus\:z-50:focus { z-index: 50; }
.focus\:px-4:focus { padding-left: 1rem; padding-right: 1rem; }
.focus\:py-2:focus { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.focus\:bg-primary:focus { background: var(--color-primary); }
.focus\:text-white:focus { color: #fff; }
.focus\:rounded:focus { border-radius: var(--radius); }
.focus\:ring-0:focus { box-shadow: none; }

.group:hover .group-hover\:bg-primary\/20 { background: rgba(29, 78, 216, 0.2); }
.group:hover .group-hover\:bg-indigo-500\/20 { background: rgba(59, 130, 246, 0.2); }  /* blue-500 */
.group:hover .group-hover\:border-primary\/20 { border-color: rgba(37, 99, 235, 0.2); }
.group:hover .group-hover\:border-primary\/30 { border-color: rgba(37, 99, 235, 0.3); }
.group:hover .group-hover\:text-primary { color: var(--color-primary); }
.group:hover .group-hover\:text-white { color: #ffffff; }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:scale-125 { transform: scale(1.25); }
.group:hover .group-hover\:rotate-180 { transform: rotate(180deg); }
.group\/btn:hover .group-hover\/btn\:opacity-100 { opacity: 1; }

@media (min-width: 768px) {
  .md\:p-12 { padding: 3rem; }
  .md\:ml-auto { margin-left: auto; }
  .md\:table-cell { display: table-cell; }
}

@media (min-width: 1280px) {
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:table-cell { display: table-cell; }
}

@media (max-width: 640px) {
  .sm\:block { display: block; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ring-primary { box-shadow: 0 0 0 2px var(--color-primary); }
.ring-surface-2 { box-shadow: 0 0 0 2px var(--color-surface-2); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: 0 24px 40px rgba(15, 23, 42, 0.14); }
.shadow-2xl { box-shadow: 0 32px 60px rgba(15, 23, 42, 0.2); }
.shadow-inner { box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.06); }
.shadow-primary\/5 { box-shadow: 0 18px 40px rgba(29, 78, 216, 0.05); }
.shadow-primary\/10 { box-shadow: 0 18px 40px rgba(29, 78, 216, 0.1); }
.shadow-primary\/20 { box-shadow: 0 20px 40px rgba(29, 78, 216, 0.2); }
.shadow-primary\/30 { box-shadow: 0 22px 42px rgba(29, 78, 216, 0.3); }

.bg-gradient-to-tr {
  background-image: linear-gradient(45deg, var(--gradient-from, transparent), var(--gradient-via, transparent), var(--gradient-to, transparent));
}

.from-amber-50\/10 { --gradient-from: rgba(255, 251, 235, 0.1); }
.from-primary { --gradient-from: var(--color-primary); }
.from-white\/5 { --gradient-from: rgba(255, 255, 255, 0.05); }
.to-primary\/60 { --gradient-to: rgba(37, 99, 235, 0.6); }
.to-surface-3\/50 { --gradient-to: rgba(241, 245, 249, 0.5); }
.to-indigo-600 { --gradient-to: #4f46e5; }
.blur-2xl { filter: blur(40px); }
[data-theme="dark"] .dark\:bg-green-900\/30 { background: rgba(20, 83, 45, 0.3); }

.aria-selected\:bg-surface[aria-selected="true"] { background: var(--color-surface); }
.aria-selected\:shadow-sm[aria-selected="true"] { box-shadow: var(--shadow-sm); }
.aria-selected\:text-primary[aria-selected="true"] { color: var(--color-primary); }

.btn--ghost {
  background: transparent;
  color: var(--color-on-surface);
}

.btn--ghost:hover { background: var(--color-surface-2); }
.btn--md { padding: 0.75rem 1.125rem; }

.tab-active {
  background: var(--color-surface);
  color: var(--color-on-surface);
  box-shadow: var(--shadow-sm);
}

@keyframes zeesyncSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes zeesyncPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ═══════════════════════════════════════════════════════
   Onboarding Roadmap — Dashboard setup checklist
   ═══════════════════════════════════════════════════════ */

.onboarding-roadmap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  /* Subtle top-accent line */
  border-top: 3px solid var(--color-primary);
}

/* Header row */
.onboarding-roadmap__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.onboarding-roadmap__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--color-on-surface);
}

.onboarding-roadmap__subtitle {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: 0;
}

/* Progress bar */
.onboarding-roadmap__progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.375rem;
  min-width: 10rem;
}

.onboarding-roadmap__progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
}

.onboarding-roadmap__progress-bar {
  width: 10rem;
  height: 6px;
  background: var(--color-surface-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.onboarding-roadmap__progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

/* Steps grid — 2 cols on md+, stack on mobile */
.onboarding-roadmap__steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 767px) {
  .onboarding-roadmap__steps {
    grid-template-columns: 1fr;
  }

  .onboarding-roadmap__progress-wrap {
    align-items: flex-start;
    width: 100%;
  }

  .onboarding-roadmap__progress-bar {
    width: 100%;
  }
}

/* Individual step card */
.onboarding-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.onboarding-step:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-sm);
}

/* Completed step */
.onboarding-step--done {
  background: rgba(59, 130, 246, 0.04);
  border-color: rgba(59, 130, 246, 0.2);
}

/* Icon circle */
.onboarding-step__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--color-surface-3);
  color: var(--color-muted);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.onboarding-step__icon-wrap--done {
  background: rgba(34, 197, 94, 0.12); /* green tint */
  color: #16a34a;                       /* green-600 */
}

/* Body */
.onboarding-step__body {
  flex: 1;
  min-width: 0;
}

.onboarding-step__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

.onboarding-step__number {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

/* Status badges */
.onboarding-step__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
}

.onboarding-step__badge--pending {
  background: rgba(217, 119, 6, 0.10);
  color: #d97706; /* amber-500 */
}

.onboarding-step__badge--done {
  background: rgba(34, 197, 94, 0.10);
  color: #16a34a; /* green-600 */
}

.onboarding-step__title {
  font-size: var(--text-sm);
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--color-on-surface);
}

.onboarding-step__desc {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

/* CTA link */
.onboarding-step__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap var(--transition), opacity var(--transition);
}

.onboarding-step__cta:hover {
  gap: 0.6rem;
}

.onboarding-step__cta--done {
  color: var(--color-muted);
  font-weight: 500;
}

.onboarding-step__cta--done:hover {
  color: var(--color-on-surface);
}

/* ── Dark mode overrides ─────────────────────────────── */
[data-theme="dark"] .onboarding-roadmap {
  background: var(--color-surface-2);  /* slate-900 */
  border-color: var(--color-border);
  border-top-color: var(--color-primary);
}

[data-theme="dark"] .onboarding-step {
  background: var(--color-surface);    /* slate-950 */
  border-color: #334155;               /* slate-600 */
}

[data-theme="dark"] .onboarding-step--done {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .onboarding-step:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .onboarding-step__icon-wrap {
  background: var(--color-surface-2);
  color: var(--color-muted);
}

[data-theme="dark"] .onboarding-step__icon-wrap--done {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80; /* green-400 — brighter on dark */
}

[data-theme="dark"] .onboarding-step__badge--done {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

[data-theme="dark"] .onboarding-roadmap__progress-bar {
  background: var(--color-surface-3); /* slate-800 */
}

/* ── Environment Badges (Staging / Beta) — Modern 2026 Design ── */
.badge {
  gap: var(--space-2); /* Add gap for icon + text */
}

.badge--staging {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); /* Amber gradient */
  color: #78350f; /* amber-900 */
  font-weight: 600; font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex; align-items: center; gap: var(--space-2);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
  animation: badge-pulse 2.5s ease-in-out infinite;
}

.badge--staging i { width: 0.875rem; height: 0.875rem; }

.badge--beta {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%); /* Purple gradient */
  color: #4c1d95; /* purple-900 */
  font-weight: 600; font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex; align-items: center; gap: var(--space-2);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
  animation: badge-pulse 2.5s ease-in-out infinite 0.3s;
}

.badge--beta i { width: 0.875rem; height: 0.875rem; }

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

/* Dark mode adjustments */
[data-theme="dark"] .badge--staging {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fef08a; /* amber-100 */
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
}

[data-theme="dark"] .badge--beta {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  color: #e9d5ff; /* purple-200 */
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}

/* ── Native <dialog> base reset ──────────────────────────────────────────────
   Remove browser defaults — styling is per-dialog below.
   ────────────────────────────────────────────────────────────────────────── */
dialog {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  max-width: 100%;
  margin: auto;
}

/* ── Dynamic modal dialogs (injected via HTMX) ──────────────────────────────
   .showModal() handles: top-layer, backdrop, focus-trap, Esc key.
   ────────────────────────────────────────────────────────────────────────── */
dialog[data-modal-root] {
  width: min(var(--dialog-width, 28rem), calc(100% - 2rem));
  max-height: 90svh;
  border-radius: 1rem;
  overflow-y: auto;
  background: var(--color-surface);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.35);
}

dialog[data-modal-root]::backdrop {
  background: rgb(0 0 0 / 0.4);
  backdrop-filter: blur(4px);
}

/* ── #zeesync-confirm-modal ──────────────────────────────────────────────────
   Modal de confirmação global. Substitui window.confirm() — WCAG 2.1 AA.
   Gerenciado por ZEESYNC.initConfirmModal() em zeesync.js.
   ────────────────────────────────────────────────────────────────────────── */
@keyframes dialogIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

#zeesync-confirm-modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
  width: min(24rem, calc(100% - 2rem));
  box-shadow: var(--shadow-lg);
}

#zeesync-confirm-modal[open] {
  animation: dialogIn 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

#zeesync-confirm-modal::backdrop {
  background: rgb(0 0 0 / 0.6);
  backdrop-filter: blur(4px);
}

#zeesync-confirm-modal [data-confirm-ok-btn]:focus-visible,
#zeesync-confirm-modal [data-confirm-cancel-btn]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

[data-theme="dark"] #zeesync-confirm-modal {
  background: var(--color-surface-2);
  box-shadow: 0 20px 60px -8px rgb(0 0 0 / 0.7);
}

/* ── Booking calendar ───────────────────────────────── */
.grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }

.cal-day {
  aspect-ratio: 1 / 1;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: .8125rem;
  font-weight: 500;
  border: none;
  background: transparent;
  cursor: default;
  padding: 0;
  line-height: 1;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

/* Available day — filled pill */
.cal-day--available {
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  font-weight: 700;
  cursor: pointer;
}
.cal-day--available:hover,
.cal-day--available:focus-visible {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  outline: none;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--color-primary) 35%, transparent);
}

/* Today with availability */
.cal-day--today {
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  font-weight: 700;
  cursor: pointer;
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}
.cal-day--today:hover,
.cal-day--today:focus-visible {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  outline-color: var(--color-primary);
}

/* Clicked / selected day */
.cal-day--selected {
  background: var(--color-primary) !important;
  color: var(--color-primary-fg) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--color-primary) 40%, transparent);
}

/* Past / no-availability */
.cal-day--past,
.cal-day--unavailable {
  color: var(--color-muted);
  opacity: .4;
}

/* Dark mode overrides */
[data-theme="dark"] .cal-day--available {
  background: color-mix(in srgb, var(--color-primary) 18%, transparent);
}
[data-theme="dark"] .cal-day--today {
  background: color-mix(in srgb, var(--color-primary) 18%, transparent);
}

/* Legend dots */
.cal-legend-dot {
  display: inline-block;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
}
.cal-legend-dot--available {
  background: color-mix(in srgb, var(--color-primary) 35%, transparent);
  outline: 1.5px solid var(--color-primary);
  outline-offset: 1px;
}
.cal-legend-dot--today {
  background: transparent;
  outline: 2px solid var(--color-primary);
}



