:root {
    --brand-100: #dbeafe;
    --brand-200: #bfdbfe;
    --brand-300: #93c5fd;
    --brand-400: #60a5fa;
    --brand-500: #2563EB;
    --brand-600: #1d4ed8;
    --brand-700: #1e40af;
    --brand-800: #1e3a8a;
    --brand-900: #172554;
    --brand-dark: #0D1B2A;
    --brand-dark-light: #1e293b;
    --brand-gold: #E5A52D;
    --brand-gold-dark: #c98e1f;
    --brand-gray: #636463;
    --brand-red: #C62533;
    --brand-secondary: #3B82F6;
    --brand-sky: #38BDF8;
    --brand-teal: #2563EB;
    --brand-teal-dark: #1D4ED8;
    --brand-teal-light: #3B82F6;
    --card-bg: #FFFFFF;
    --card-radius: 0.75rem;
    --ease-bounce: 450ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-overshoot: 300ms cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: 220ms cubic-bezier(0.2, 0, 0, 1);
    --ease-spring: 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-body: 'Inter', system-ui, sans-serif;
    --font-brand: 'Montserrat', system-ui, sans-serif;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --shadow: 0 4px 20px -4px rgba(23, 43, 77, 0.08);
    --shadow-lg: 0 20px 60px -16px rgba(23, 43, 77, 0.16);
    --shadow-md: 0 10px 40px -10px rgba(23, 43, 77, 0.12);
    --sidebar-bg: #FFFFFF;
    --sidebar-active: #2563EB;
    --sidebar-hover: rgba(37, 99, 235, 0.15);
    --sidebar-text: #94a3b8;
    --text-main: #0D1B2A;
    --text-muted: #64748b;
    --transition: 220ms cubic-bezier(0.2, 0, 0, 1);
    --weight-bold: 700;
    --weight-medium: 500;
    --weight-semibold: 600;
    --zel-bg: #F8FAFC;
    --zel-bg-dark: #0B1220;
    --zel-border: rgba(226, 232, 240, 0.8);
    --zel-border-dark: rgba(51, 65, 85, 0.8);
    --zel-card: #FFFFFF;
    --zel-card-dark: #1E293B;
    --zel-danger: #D64545;
    --zel-deep: #0D1B2A;
    --zel-green: #22C55E;
    --zel-mint: #5ED6BF;
    --zel-muted: #64748B;
    --zel-muted-dark: #94A3B8;
    --zel-pale: #DDF3EF;
    --zel-primary: #2563EB;
    --zel-primary-dark: #1D4ED8;
    --zel-success: #22C55E;
    --zel-teal: #14B8A6;
    --zel-text: #0F172A;
    --zel-text-dark: #E2E8F0;
    --zel-warning: #D99A1E;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-body);
  background: var(--zel-bg);
  color: var(--zel-text);
}

body {
  overflow-y: auto;
}

body.no-scroll {
  height: 100vh;
  overflow: hidden;
}

.dark { color-scheme: dark; --sidebar-bg: #0B1220; }
.dark body {
  background: var(--zel-bg-dark);
  color: var(--zel-text-dark);
}

h1, h2, h3, h4 { font-family: var(--font-brand); margin: 0; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

a { color: var(--zel-primary); text-decoration: none; }

.os-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
  width: 100vw;
}

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--zel-border);
  z-index: 100;
  gap: 1rem;
}

.dark .topbar {
  background: rgba(15, 23, 42, 0.8);
  border-bottom-color: var(--zel-border-dark);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.15rem;
  color: inherit;
}

.brand img { height: 2rem; width: 2rem; }

.global-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.global-search input {
  width: 100%;
  padding: 0.55rem 3rem 0.55rem 2.4rem;
  border-radius: 0.75rem;
  border: 1px solid var(--zel-border);
  background: rgba(100, 116, 139, 0.07);
  color: var(--zel-muted);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: var(--ease-spring);
}
.global-search input::placeholder { color: var(--zel-muted); }

.global-search:hover input {
  background: var(--zel-card);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 1px 4px rgba(23, 43, 77, 0.06);
}

.dark .global-search input { background: rgba(148, 163, 184, 0.1); }
.dark .global-search:hover input,
.dark .global-search input:focus { background: var(--zel-card-dark); border-color: var(--zel-primary); }

.global-search input:focus {
  border-color: var(--zel-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.global-search i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--zel-muted);
  font-size: 0.8rem;
  pointer-events: none;
}

.kbd {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  border: 1px solid var(--zel-border);
  border-bottom-width: 2px;
  background: var(--zel-card);
  color: var(--zel-muted);
  pointer-events: none;
}
.dark .kbd { background: var(--zel-card-dark); color: var(--zel-muted-dark); }

/* ---------- Barra pública oscura (community / support) ---------- */
.zc-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 27, 42, .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(15,23,42,.12));
  color: #fff;
}
.zc-nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}
.zc-nav-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  text-decoration: none;
}
.zc-nav-brand img { height: 2rem; width: auto; }
.zc-nav-links { display: flex; align-items: center; gap: 1.25rem; font-size: .875rem; }
.zc-nav-links a, .zc-nav-iconbtn {
  color: #fff;
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: .25rem .15rem;
  transition: color .15s ease;
}
.zc-nav-links a:hover, .zc-nav-iconbtn:hover { color: #5ED6BF; }
.zc-nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--zel-primary, #2563EB);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: .75rem;
  text-decoration: none;
  transition: background .15s ease;
}
.zc-nav-cta:hover { background: #1d4fd7; }
.zc-nav-right { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

/* global-search dentro de la barra oscura */
.zc-nav .global-search { flex: 1; max-width: 28rem; margin-left: auto; }
.zc-nav .global-search input {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
}
.zc-nav .global-search input::placeholder { color: rgba(255, 255, 255, .5); }
.zc-nav .global-search i { color: rgba(255, 255, 255, .5); }
.zc-nav .global-search .kbd {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .7);
}
.zc-nav .global-search:hover input {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(94, 214, 191, .45);
  box-shadow: none;
}

/* menú móvil de la barra pública */
.zc-nav-mobile { border-top: 1px solid rgba(255, 255, 255, .1); background: #0D1B2A; }
.zc-nav-mobile a {
  display: block;
  padding: .5rem 0;
  color: #fff;
  font-size: .875rem;
  text-decoration: none;
}
.zc-nav-mobile a:hover { color: #5ED6BF; }
.zc-nav-mobile a i { width: 1.25rem; display: inline-block; }

/* dropdowns de la barra pública (notificaciones / usuario) */
.zc-dropdown {
  position: absolute;
  right: 0;
  margin-top: .5rem;
  background: var(--zel-card, #fff);
  color: var(--zel-text, #1e293b);
  border: 1px solid var(--zel-border, #e2e8f0);
  border-radius: .75rem;
  box-shadow: var(--shadow-lg, 0 20px 40px -12px rgba(15,23,42,.28));
  overflow: hidden;
  z-index: 50;
  font-size: .875rem;
}
.dark .zc-dropdown { background: var(--zel-card-dark, #1e293b); color: var(--zel-text-dark, #e2e8f0); border-color: var(--zel-border-dark, #334155); }
.zc-dropdown-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.zc-dropdown-item:hover { background: var(--zel-hover, #f8fafc); }
.dark .zc-dropdown-item:hover { background: rgba(51, 65, 85, .5); }
.zc-dropdown-item i { width: 1.25rem; }
.zc-dropdown-item.danger { color: #dc2626; }
.dark .zc-dropdown-item.danger { color: #f87171; }
.zc-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .625rem 1rem;
  border-bottom: 1px solid var(--zel-border, #f1f5f9);
  font-weight: 600;
}
.dark .zc-dropdown-head { border-color: var(--zel-border-dark, #334155); }
.zc-dropdown-foot {
  display: block;
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  color: var(--zel-primary, #2563EB);
  padding: .625rem 1rem;
  border-top: 1px solid var(--zel-border, #f1f5f9);
  text-decoration: none;
}
.dark .zc-dropdown-foot { border-color: var(--zel-border-dark, #334155); }
.zc-dropdown-foot:hover { background: var(--zel-hover, #f8fafc); }
.zc-dropdown-sep { border: 0; border-top: 1px solid var(--zel-border, #f1f5f9); margin: .25rem 0; }
.dark .zc-dropdown-sep { border-color: var(--zel-border-dark, #334155); }

@media (max-width: 768px) {
  .zc-nav-links, .zc-nav-inner > .global-search { display: none; }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--zel-muted);
  transition: var(--ease-spring);
  position: relative;
}

.dark .icon-btn { color: var(--zel-muted-dark); }

.icon-btn:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--zel-primary);
}

.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--zel-danger);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--zel-primary), var(--zel-teal));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.workspace {
  display: grid;
  grid-template-columns: 72px 1fr;
  overflow: hidden;
}

.dock {
  width: 72px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--zel-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  gap: 0.75rem;
  z-index: 90;
}

.dark .dock {
  background: rgba(15, 23, 42, 0.7);
  border-right-color: var(--zel-border-dark);
}

.dock-app {
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--zel-muted);
  transition: var(--ease-spring);
  position: relative;
  background: transparent;
}

.dark .dock-app { color: var(--zel-muted-dark); }

.dock-app:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--zel-primary);
  transform: translateY(-2px);
}

.dock-app.active {
  background: rgba(37, 99, 235, 0.15);
  color: var(--zel-primary);
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.3);
}

.dock-app::after {
  content: '';
  position: absolute;
  left: -1rem;
  width: 4px;
  height: 0;
  border-radius: 0 4px 4px 0;
  background: var(--zel-primary);
  transition: var(--ease-spring);
}

.dock-app.active::after { height: 24px; }

.dock-spacer { flex: 1; }

.dock-label {
  position: absolute;
  left: 120%;
  top: 50%;
  transform: translateY(-50%) scale(0.95);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--ease-spring);
}

.dock-app:hover .dock-label {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.stage {
  overflow: auto;
  padding: 1.5rem;
  background: var(--zel-bg);
}

.dark .stage { background: var(--zel-bg-dark); }

.card {
  background: var(--zel-card);
  border: 1px solid var(--zel-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: var(--ease-spring);
}

.dark .card {
  background: var(--zel-card-dark);
  border-color: var(--zel-border-dark);
}

.card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  background: var(--zel-primary);
  color: #fff;
  transition: var(--ease-spring);
}

.btn:hover { background: var(--zel-primary-dark); }

.btn.outline {
  background: transparent;
  border: 1px solid var(--zel-border);
  color: inherit;
}

.btn.outline:hover { border-color: var(--zel-primary); color: var(--zel-primary); background: rgba(37, 99, 235, 0.05); }

.btn.danger { background: var(--zel-danger); }
.btn.success { background: var(--zel-success); }

/* Mobile first: una columna por defecto, escalamos hacia arriba */
.grid { display: grid; gap: 1rem; }
.grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Shell: mobile primero, dock en la parte inferior */
.workspace {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.dock {
  width: 100%;
  height: 64px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--zel-border);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
  position: fixed;
  bottom: 0;
}

.dock-app { width: 44px; height: 44px; border-radius: 0.875rem; }
.dock-label { display: none; }
.stage { padding: 1rem; padding-bottom: 6rem; }
.global-search { display: none; }
.cmdk-mobile-trigger { display: inline-flex; }

@media (min-width: 769px) {
  .workspace { grid-template-columns: 72px 1fr; grid-template-rows: 1fr; }
  .dock {
    width: 72px;
    height: auto;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1rem 0;
    position: static;
    border-top: none;
    border-right: 1px solid var(--zel-border);
  }
  .dock-app { width: 48px; height: 48px; }
  .stage { padding: 1.5rem; padding-bottom: 1.5rem; }
  .global-search { display: block; }
  .cmdk-mobile-trigger { display: none; }
}

.launcher-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 200ms ease;
}

.launcher-overlay.open { display: flex; opacity: 1; }

.launcher {
  width: min(800px, 90vw);
  max-height: 80vh;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(30px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dark .launcher {
  background: rgba(15, 23, 42, 0.92);
  border-color: var(--zel-border-dark);
}

.launcher-search {
  position: relative;
}

.launcher-search input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  border-radius: 1rem;
  border: 1px solid var(--zel-border);
  background: rgba(248, 250, 252, 0.9);
  color: inherit;
  font-size: 1rem;
  outline: none;
}

.dark .launcher-search input {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--zel-border-dark);
}

.launcher-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--zel-muted);
  font-size: 1.1rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  overflow: auto;
  padding: 0.5rem;
}

.app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 1rem;
  transition: var(--ease-spring);
  cursor: pointer;
  text-align: center;
  color: inherit;
}

.app-tile:hover {
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-3px);
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  box-shadow: var(--shadow);
}

.app-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.app-status {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: var(--zel-pale);
  color: var(--zel-teal);
}

.status-ok { background: rgba(34, 197, 94, 0.12); color: var(--zel-green); }
.status-warn { background: rgba(217, 154, 30, 0.12); color: var(--zel-warning); }
.status-err { background: rgba(214, 69, 69, 0.12); color: var(--zel-danger); }

.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid var(--zel-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  transition: var(--ease-spring);
}

.dark .session-row { border-color: var(--zel-border-dark); }

.session-row:hover { background: rgba(37, 99, 235, 0.04); }

.session-info { display: flex; align-items: center; gap: 1rem; }
.session-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.875rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--zel-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.session-meta { display: flex; flex-direction: column; gap: 0.15rem; }
.session-title { font-weight: 600; }
.session-sub { font-size: 0.8rem; color: var(--zel-muted); }

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--zel-card);
  border: 1px solid var(--zel-border);
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  gap: 0.75rem;
  z-index: 300;
  animation: slideIn 300ms var(--ease-emphasized);
}

.dark .toast { background: var(--zel-card-dark); border-color: var(--zel-border-dark); }

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.code-block {
  background: #0F172A;
  color: #E2E8F0;
  padding: 1rem;
  border-radius: var(--radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  overflow: auto;
  line-height: 1.5;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag.ok { background: rgba(34, 197, 94, 0.12); color: var(--zel-green); }
.tag.warn { background: rgba(217, 154, 30, 0.12); color: var(--zel-warning); }
.tag.err { background: rgba(214, 69, 69, 0.12); color: var(--zel-danger); }
.tag.info { background: rgba(37, 99, 235, 0.12); color: var(--zel-primary); }

.flow-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-left: 2px solid var(--zel-border);
  padding-left: 1.25rem;
  margin-left: 0.5rem;
  position: relative;
}

.dark .flow-step { border-left-color: var(--zel-border-dark); }

.flow-step::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 1.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--zel-primary);
  border: 2px solid var(--zel-bg);
}

.dark .flow-step::before { border-color: var(--zel-bg-dark); }

.flow-content { flex: 1; }
.flow-title { font-weight: 700; margin-bottom: 0.25rem; }
.flow-desc { font-size: 0.9rem; color: var(--zel-muted); }

.hero { text-align: center; padding: 2rem 0 1rem; }
.hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.hero p { color: var(--zel-muted); max-width: 600px; margin: 0 auto; }

.nav-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.nav-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--zel-muted);
  border: 1px solid transparent;
  transition: var(--ease-spring);
}

.nav-pill:hover { color: var(--zel-primary); background: rgba(37, 99, 235, 0.05); }
.nav-pill.active { background: rgba(37, 99, 235, 0.1); color: var(--zel-primary); border-color: rgba(37, 99, 235, 0.2); }

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--zel-muted);
}

.empty-state-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, .08);
  color: var(--zel-primary);
  font-size: 1.4rem;
}
.dark .empty-state-icon { background: rgba(37, 99, 235, .15); }

.empty-state-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--zel-text);
  margin: 0 0 .35rem;
}
.dark .empty-state-title { color: var(--zel-text-dark); }

.empty-state-text {
  font-size: .9rem;
  margin: 0 auto 1.25rem;
  max-width: 32rem;
}

/* ---------- Status pill (estados de pedidos, tickets, licencias) ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.status-pill::before {
  content: "";
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.status-pill--pending,
.status-pill--warning { background: rgba(245, 158, 11, .12); color: #b45309; }
.status-pill--info,
.status-pill--shipped { background: rgba(37, 99, 235, .12); color: #1d4ed8; }
.status-pill--success,
.status-pill--active,
.status-pill--delivered,
.status-pill--paid { background: rgba(34, 197, 94, .12); color: #15803d; }
.status-pill--danger,
.status-pill--cancelled,
.status-pill--expired { background: rgba(214, 69, 69, .12); color: var(--zel-danger); }
.status-pill--muted { background: rgba(100, 116, 139, .12); color: #64748b; }
.status-pill--teal { background: rgba(20, 184, 166, .12); color: #0f766e; }
.status-pill--violet { background: rgba(139, 92, 246, .12); color: #7c3aed; }
.dark .status-pill--pending,
.dark .status-pill--warning { color: #fbbf24; }
.dark .status-pill--info,
.dark .status-pill--shipped { color: #60a5fa; }
.dark .status-pill--success,
.dark .status-pill--active,
.dark .status-pill--delivered,
.dark .status-pill--paid { color: #4ade80; }
.dark .status-pill--muted { color: #94a3b8; }
.dark .status-pill--teal { color: #2dd4bf; }
.dark .status-pill--violet { color: #a78bfa; }
.status-pill--plain::before { display: none; }

/* ---------- Cabecera de pagina ---------- */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.page-head h1,
.page-title {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  margin: 0;
}
.page-sub {
  color: var(--zel-muted);
  font-size: .9rem;
  margin-top: .25rem;
}
.dark .page-sub { color: var(--zel-text-dark-muted, var(--zel-muted)); }

/* ---------- Opciones elegibles (wizards, filtros, toggles) ---------- */
.opt-row { display: flex; flex-wrap: wrap; gap: .5rem; }

.opt-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  border: 1px solid var(--zel-border);
  border-radius: 999px;
  background: var(--zel-card);
  color: var(--text-muted);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease-spring);
}
.opt-pill:hover { border-color: var(--zel-primary); color: var(--zel-primary); }
.opt-pill.active {
  background: var(--zel-primary);
  border-color: var(--zel-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
}
.opt-pill:active { transform: scale(.97); }
.opt-pill:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }
.dark .opt-pill { background: var(--zel-card-dark); border-color: var(--zel-border-dark); color: var(--zel-muted-dark); }
.dark .opt-pill.active { background: var(--zel-primary); border-color: var(--zel-primary); color: #fff; }

/* ---------- Tarjeta elegible (seleccion de plantilla) ---------- */
.tpl-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tpl-grid { grid-template-columns: repeat(3, 1fr); } }

.tpl-card {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--zel-border);
  border-radius: 1rem;
  background: var(--zel-card);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: var(--ease-spring);
}
.tpl-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: rgba(37, 99, 235, .45); }
.tpl-card:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }
.tpl-card.selected {
  border-color: var(--zel-primary);
  background: rgba(37, 99, 235, .05);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.tpl-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, .1);
  color: var(--zel-primary);
  font-size: .95rem;
  transition: var(--ease-spring);
}
.tpl-card.selected .tpl-card-icon { background: var(--zel-primary); color: #fff; }
.tpl-card-title { display: block; font-weight: 600; font-size: .95rem; color: var(--zel-text); }
.tpl-card.selected .tpl-card-title { color: var(--zel-primary); }
.tpl-card-desc { display: block; font-size: .82rem; color: var(--text-muted); margin-top: .25rem; line-height: 1.45; }
.dark .tpl-card { background: var(--zel-card-dark); border-color: var(--zel-border-dark); }
.dark .tpl-card.selected { background: rgba(37, 99, 235, .12); }
.dark .tpl-card-title { color: var(--zel-text-dark); }
.dark .tpl-card.selected .tpl-card-title { color: #93c5fd; }
.dark .tpl-card-desc { color: var(--zel-muted-dark); }
.dark .tpl-card-icon { background: rgba(37, 99, 235, .2); color: #93c5fd; }
.dark .tpl-card.selected .tpl-card-icon { background: var(--zel-primary); color: #fff; }

/* ---------- Chip de variable (insertar placeholders) ---------- */
.chip-var {
  display: inline-flex;
  align-items: center;
  padding: .3rem .65rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  background: rgba(100, 116, 139, .12);
  color: var(--zel-text);
  font-family: var(--font-mono, monospace);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease-smooth);
}
.chip-var:hover { background: rgba(37, 99, 235, .14); color: var(--zel-primary); }
.chip-var:active { transform: scale(.95); }
.chip-var:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }
.dark .chip-var { background: rgba(148, 163, 184, .16); color: var(--zel-text-dark); }
.dark .chip-var:hover { background: rgba(37, 99, 235, .25); color: #93c5fd; }

/* ---------- Panel de vista previa (sticky) ---------- */
.preview-card {
  position: sticky;
  top: 1rem;
  background: var(--zel-bg);
  border: 1px solid var(--zel-border);
  border-radius: 1rem;
  padding: 1rem;
}
.preview-card h3 {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  margin: 0 0 .75rem;
  color: var(--zel-text);
}
.preview-card .pv-label {
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .3rem;
}
.preview-card .pv-subject { font-weight: 600; font-size: .9rem; word-break: break-word; margin-bottom: .75rem; }
.preview-card hr { border: none; border-top: 1px solid var(--zel-border); margin: 0 0 .75rem; }
.preview-card .pv-frame {
  overflow: hidden;
  border-radius: .5rem;
  background: #f3f4f6;
}
.preview-card .preview-body {
  font-size: .85rem;
  word-break: break-word;
  line-height: 1.55;
  transform-origin: top left;
}
.preview-card .preview-body p { margin: 0 0 .5rem; }
.dark .preview-card { background: rgba(11, 18, 32, .5); border-color: var(--zel-border-dark); }
.dark .preview-card h3,
.dark .preview-card .pv-subject { color: var(--zel-text-dark); }
.dark .preview-card .pv-label { color: var(--zel-muted-dark); }
.dark .preview-card hr { border-top-color: var(--zel-border-dark); }

/* ---------- Texto de ayuda en formularios ---------- */
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: .35rem; }
.dark .form-hint { color: var(--zel-muted-dark); }

/* ---------- Etiqueta de subgrupo en formularios ---------- */
.rcpt-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin: .9rem 0 .45rem;
}
.dark .rcpt-label { color: var(--zel-muted-dark); }

/* ---------- Miembro elegible (checkbox/radio estilo chip) ---------- */
.member-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .85rem;
  border: 1px solid var(--zel-border);
  border-radius: 999px;
  background: var(--zel-card);
  font-size: .82rem;
  cursor: pointer;
  transition: var(--ease-spring);
  user-select: none;
}
.member-pill:hover { border-color: var(--zel-primary); }
.member-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.member-pill::before {
  content: "";
  width: .85rem;
  height: .85rem;
  border-radius: 50%;
  border: 1.5px solid var(--zel-border);
  flex-shrink: 0;
  transition: var(--ease-smooth);
}
.member-pill:has(input:checked) {
  background: rgba(37, 99, 235, .08);
  border-color: var(--zel-primary);
  color: var(--zel-primary);
  font-weight: 600;
}
.member-pill:has(input:checked)::before {
  background: var(--zel-primary);
  border-color: var(--zel-primary);
  box-shadow: inset 0 0 0 2px var(--zel-card);
}
.member-pill:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }
.member-pill small { color: var(--text-muted); font-weight: 400; }
.member-pill:has(input:checked) small { color: var(--zel-primary); opacity: .8; }
.dark .member-pill { background: var(--zel-card-dark); border-color: var(--zel-border-dark); color: var(--zel-text-dark); }
.dark .member-pill::before { border-color: var(--zel-border-dark); }
.dark .member-pill:has(input:checked) { background: rgba(37, 99, 235, .15); color: #93c5fd; border-color: var(--zel-primary); }
.dark .member-pill:has(input:checked)::before { box-shadow: inset 0 0 0 2px var(--zel-card-dark); }
.dark .member-pill:has(input:checked) small { color: #93c5fd; }

/* ---------- Resumen en lenguaje humano (wizards) ---------- */
.wiz-summary {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(34, 197, 94, .06);
  border: 1px solid rgba(34, 197, 94, .25);
}
.wiz-summary-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--zel-success);
  color: #fff;
  font-size: .85rem;
}
.wiz-summary strong { display: block; font-size: .82rem; color: #15803d; }
.wiz-summary p { margin: .15rem 0 0; font-size: .9rem; color: var(--zel-text); line-height: 1.5; }
.dark .wiz-summary { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .3); }
.dark .wiz-summary strong { color: #4ade80; }
.dark .wiz-summary p { color: var(--zel-text-dark); }

/* ---------- Paleta de comandos (Ctrl+K) ---------- */
.cmdk-overlay { position: fixed; inset: 0; z-index: 1100; }
.cmdk-head input::-webkit-search-cancel-button,
.cmdk-head input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.cmdk-overlay[hidden] { display: none; }
.cmdk-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: cmdkFade .18s var(--ease-smooth);
}
.cmdk-panel {
  position: relative;
  max-width: 32rem;
  margin: 14vh auto 0;
  background: var(--zel-card);
  border: 1px solid var(--zel-border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: cmdkIn .22s var(--ease-spring);
}
@keyframes cmdkFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cmdkIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
.cmdk-head {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid var(--zel-border);
}
.cmdk-head > i { color: var(--zel-muted); font-size: .9rem; }
.cmdk-head input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: .95rem;
  color: var(--zel-text);
}
.cmdk-head input::placeholder { color: var(--zel-muted); }
.cmdk-kbd {
  font-family: var(--font-mono, monospace);
  font-size: .62rem;
  font-weight: 600;
  padding: .15rem .4rem;
  border-radius: .35rem;
  border: 1px solid var(--zel-border);
  border-bottom-width: 2px;
  background: var(--zel-bg);
  color: var(--zel-muted);
}
.cmdk-list { max-height: 20rem; overflow-y: auto; padding: .5rem; }
.cmdk-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .8rem;
  border-radius: .8rem;
  font-size: .88rem;
  color: var(--zel-text);
  text-decoration: none;
  transition: background .12s ease;
}
.cmdk-item-icon {
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
  border-radius: .55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 116, 139, .1);
  color: var(--zel-muted);
  font-size: .75rem;
  transition: var(--ease-smooth);
}
.cmdk-item.active { background: rgba(37, 99, 235, .08); color: var(--zel-primary); }
.cmdk-item.active .cmdk-item-icon { background: var(--zel-primary); color: #fff; }
.cmdk-item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-empty { padding: 2.5rem 1rem; text-align: center; font-size: .85rem; color: var(--zel-muted); }
.cmdk-empty i { display: block; font-size: 1.5rem; margin-bottom: .5rem; opacity: .5; }
.cmdk-foot {
  display: flex;
  gap: 1rem;
  padding: .5rem 1.1rem;
  border-top: 1px solid var(--zel-border);
  font-size: .7rem;
  color: var(--zel-muted);
}
.cmdk-foot .cmdk-kbd { margin-right: .25rem; }
.dark .cmdk-panel { background: var(--zel-card-dark); border-color: var(--zel-border-dark); }
.dark .cmdk-head { border-bottom-color: var(--zel-border-dark); }
.dark .cmdk-head input { color: var(--zel-text-dark); }
.dark .cmdk-item { color: var(--zel-text-dark); }
.dark .cmdk-item.active { background: rgba(37, 99, 235, .15); color: #93c5fd; }
.dark .cmdk-item-icon { background: rgba(148, 163, 184, .12); color: var(--zel-muted-dark); }
.dark .cmdk-item.active .cmdk-item-icon { background: var(--zel-primary); color: #fff; }
.dark .cmdk-foot { border-top-color: var(--zel-border-dark); }
.dark .cmdk-kbd { background: rgba(148, 163, 184, .12); border-color: var(--zel-border-dark); color: var(--zel-muted-dark); }
@media (prefers-reduced-motion: reduce) {
  .cmdk-backdrop, .cmdk-panel { animation: none; }
}

.demo-frame {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
  background: #fff;
}

.context-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: rgba(20, 184, 166, 0.1);
  color: var(--zel-teal);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.context-banner.warning {
  background: rgba(217, 154, 30, 0.1);
  color: var(--zel-warning);
}

.context-banner.error {
  background: rgba(214, 69, 69, 0.1);
  color: var(--zel-danger);
}

/* ============================================================
   Auth / Zelanda Account styles
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.auth-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.08), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.08), transparent 40%);
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 1100px;
  min-height: auto;
  background: var(--zel-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--zel-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 1;
}

.dark .auth-split { background: var(--zel-card-dark); border-color: var(--zel-border-dark); }

.auth-split-left { display: none; }

@media (min-width: 1024px) {
  .auth-split-left {
    background: linear-gradient(135deg, #0D1B2A 0%, #1E3A8A 100%);
    color: #fff;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
  }
}

.auth-split-left::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent 60%);
  animation: authPulse 10s ease-in-out infinite alternate;
}

@keyframes authPulse {
  from { transform: translate(0, 0); }
  to { transform: translate(-10%, -10%); }
}

.auth-split-left > * { position: relative; z-index: 1; }

.auth-product-title {
  font-family: var(--font-brand);
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.auth-product-title img { height: 2.5rem; width: 2.5rem; }

.auth-prompt {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 360px;
}

.auth-prompt-accent { color: var(--zel-mint); }

.auth-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: auto;
  padding-top: 2rem;
}

.auth-stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}

.auth-stat-label { font-size: .75rem; opacity: .8; margin-bottom: .25rem; }
.auth-stat-value { font-size: 1.75rem; font-weight: 700; }
.auth-stat-trend { font-size: .8rem; opacity: .7; }

.auth-split-right {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .auth-split-right { padding: 2.5rem; }
}

.auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-header h1 { font-size: 1.5rem; margin-bottom: .35rem; }
.auth-header p { color: var(--zel-muted); font-size: .9rem; margin: 0; }

.auth-tabs {
  display: flex;
  background: var(--zel-bg);
  border-radius: .75rem;
  padding: .25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--zel-border);
}

.dark .auth-tabs { background: var(--zel-bg-dark); border-color: var(--zel-border-dark); }

.auth-tab {
  flex: 1;
  padding: .65rem .5rem;
  border-radius: .5rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--zel-muted);
  text-align: center;
  transition: var(--ease-spring);
}

.auth-tab.active {
  background: var(--zel-card);
  color: var(--zel-primary);
  box-shadow: var(--shadow);
}

.dark .auth-tab.active { background: var(--zel-card-dark); }

.mode-group.hidden-mode { display: none; }

.auth-form { display: flex; flex-direction: column; gap: 1rem; }

.auth-input {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: .75rem;
  border: 1px solid var(--zel-border);
  background: var(--zel-card);
  color: inherit;
  font-size: .95rem;
  outline: none;
  transition: var(--ease-spring);
}

.dark .auth-input { background: var(--zel-card-dark); border-color: var(--zel-border-dark); }

.auth-input:focus {
  border-color: var(--zel-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .35rem;
}

.password-wrap { position: relative; }
.toggle-pw {
  position: absolute;
  right: .875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--zel-muted);
  cursor: pointer;
  background: transparent;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .8rem;
  color: var(--zel-muted);
}

.checkbox-row input { margin-top: .15rem; }

.auth-btn {
  width: 100%;
  padding: .9rem;
  border-radius: .75rem;
  background: var(--zel-primary);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: var(--ease-spring);
}

.auth-btn:hover { background: var(--zel-primary-dark); }

.auth-btn-outline {
  width: 100%;
  padding: .85rem;
  border-radius: .75rem;
  border: 1px solid var(--zel-border);
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: var(--ease-spring);
}

.auth-btn-outline:hover { border-color: var(--zel-primary); color: var(--zel-primary); background: rgba(37, 99, 235, 0.04); }

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .85rem;
  color: var(--zel-muted);
}

.auth-socials {
  display: grid;
  gap: .75rem;
  margin: 1.25rem 0;
}

.auth-center {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.brand-box {
  text-align: center;
  margin-bottom: 2rem;
}

.brand-box img {
  height: 4rem;
  width: 4rem;
  margin-bottom: 1rem;
}

.brand-box h1 {
  font-family: var(--font-brand);
  font-size: 1.75rem;
  margin-bottom: .35rem;
}

.brand-box p {
  color: var(--zel-muted);
  margin: 0;
  font-size: .95rem;
}

.login-card,
.auth-card {
  background: var(--zel-card);
  border: 1px solid var(--zel-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.dark .login-card,
.dark .auth-card {
  background: var(--zel-card-dark);
  border-color: var(--zel-border-dark);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--zel-muted);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--zel-primary);
}

.account-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--zel-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--ease-spring);
}

.dark .account-card { border-color: var(--zel-border-dark); }

.account-card:hover { border-color: var(--zel-primary); background: rgba(37, 99, 235, 0.04); }

.account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--zel-primary), var(--zel-teal));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.account-info { flex: 1; }
.account-name { font-weight: 700; }
.account-email { font-size: .8rem; color: var(--zel-muted); }

.mfa-code {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .5rem;
  margin: 1.25rem 0;
}

.mfa-code input {
  aspect-ratio: 1;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: .75rem;
  border: 1px solid var(--zel-border);
  background: var(--zel-card);
  color: inherit;
  outline: none;
}

.dark .mfa-code input { background: var(--zel-card-dark); border-color: var(--zel-border-dark); }

.mfa-code input:focus { border-color: var(--zel-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }

@media (min-width: 1024px) {
  .auth-split { grid-template-columns: 1.1fr 0.9fr; min-height: 680px; }
}

/* ============================================================
   App colors (source: zelanda_api/apps/webui/products.py)
   ============================================================ */

.app-zelanda { --app-color: #2563EB; }
.app-demo { --app-color: #14B8A6; }
.app-connector { --app-color: #0D1B2A; }
.app-community { --app-color: #22C55E; }
.app-security { --app-color: #C62533; }
.app-academy { --app-color: #2563EB; }
.app-analytics { --app-color: #F59E0B; }
.app-sentry { --app-color: #C62533; }
.app-support { --app-color: #8B5CF6; }
.app-automate { --app-color: #0EA5E9; }

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(0,0,0,.05);
  color: var(--app-color);
  border: 1px solid rgba(0,0,0,.08);
}

.app-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--app-color); }

/* ============================================================
   Popovers / tooltips explicativos
   ============================================================ */

.popover-trigger {
  position: relative;
  cursor: help;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.popover {
  position: absolute;
  z-index: 500;
  width: max-content;
  max-width: 280px;
  padding: .75rem 1rem;
  border-radius: .75rem;
  background: var(--zel-card);
  border: 1px solid var(--zel-border);
  box-shadow: var(--shadow-lg);
  color: var(--zel-text);
  font-size: .8rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.98);
  transition: var(--ease-spring);
  visibility: hidden;
}

.dark .popover { background: var(--zel-card-dark); border-color: var(--zel-border-dark); color: var(--zel-text-dark); }

.popover-trigger:hover .popover,
.popover-trigger:focus .popover,
.popover-trigger.active .popover {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.popover.top { bottom: 100%; left: 50%; transform: translate(-50%, -8px) scale(.98); margin-bottom: .5rem; }
.popover.bottom { top: 100%; left: 50%; transform: translate(-50%, 8px) scale(.98); margin-top: .5rem; }
.popover.left { right: 100%; top: 50%; transform: translate(-8px, -50%) scale(.98); margin-right: .5rem; }
.popover.right { left: 100%; top: 50%; transform: translate(8px, -50%) scale(.98); margin-left: .5rem; }

.popover-trigger:hover .popover,
.popover-trigger:focus .popover,
.popover-trigger.active .popover { transform: translate(-50%, 0) scale(1); }
.popover-trigger:hover .popover.left,
.popover-trigger:focus .popover.left,
.popover-trigger.active .popover.left { transform: translate(-8px, -50%) scale(1); }
.popover-trigger:hover .popover.right,
.popover-trigger:focus .popover.right,
.popover-trigger.active .popover.right { transform: translate(8px, -50%) scale(1); }

.popover-title { font-weight: 700; margin-bottom: .35rem; display: block; }
.popover-hint { color: var(--zel-muted); font-size: .75rem; }

.info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--zel-primary);
  font-size: .65rem;
  font-weight: 700;
  cursor: help;
}

.onboarding-tip {
  position: relative;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(20, 184, 166, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: inherit;
  margin-bottom: 1rem;
}

.onboarding-tip::before {
  content: '\f0eb';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--zel-primary);
  opacity: .5;
}

/* ============================================================
   Transiciones suaves y Dynamic Island (Cult UI)
   ============================================================ */

* {
  transition: color 220ms cubic-bezier(0.2, 0, 0, 1),
              background-color 220ms cubic-bezier(0.2, 0, 0, 1),
              border-color 220ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 220ms cubic-bezier(0.2, 0, 0, 1),
              opacity 220ms cubic-bezier(0.2, 0, 0, 1);
}

html { scroll-behavior: smooth; }

.dynamic-island {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: .55rem .85rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 160px;
  height: 40px;
  z-index: 1000;
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
  box-shadow: 0 8px 30px -4px rgba(0,0,0,.5);
  overflow: hidden;
}

.dynamic-island.expanded {
  width: 360px;
  max-width: 90vw;
  height: 160px;
  border-radius: 1.5rem;
  padding: 1rem;
  flex-direction: column;
  align-items: stretch;
  gap: .5rem;
}

.island-title { font-size: .8rem; font-weight: 600; white-space: nowrap; }
.island-body { display: none; font-size: .8rem; color: #cbd5e1; }
.dynamic-island.expanded .island-body { display: block; }

.island-item { display: flex; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid #222; }
.island-item:last-child { border-bottom: none; }

.dock-app {
  transition: var(--ease-spring);
}

.dock-app:hover {
  transform: scale(1.08) translateY(-3px);
}

.icon-btn, .view-btn, .filter-chip, .nav-pill, .auth-tab, .account-card, .session-row, .product-card, .module-card, .choice-card, .choice-chip, .shift-card, .mockup-card, .topbar .avatar {
  transition: var(--transition) !important;
}

/* ============================================================
   Menú contextual (extraído de public/assets/js/context-menu.js)
   ============================================================ */

.zl-ctx {
  position: fixed;
  z-index: 9999;
  min-width: 240px;
  max-width: 320px;
  max-height: min(480px, calc(100vh - 16px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 24px 60px -18px rgba(15, 23, 42, 0.35),
    0 4px 14px -6px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  font-size: 13.5px;
  opacity: 0;
  transform: scale(0.94) translateY(-4px);
  transition: opacity 0.14s cubic-bezier(0.16, 1, 0.3, 1), transform 0.14s cubic-bezier(0.16, 1, 0.3, 1);
  color: #1e293b;
  scrollbar-width: thin;
}

.dark .zl-ctx {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 60px -18px rgba(0, 0, 0, 0.6),
    0 4px 14px -6px rgba(0, 0, 0, 0.4);
  color: #e2e8f0;
}

.zl-ctx--open { opacity: 1; transform: scale(1) translateY(0); }

/* Encabezado de contexto (que se clickeo) */
.zl-ctx__header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.06);
  margin-bottom: 2px;
}

.dark .zl-ctx__header { background: rgba(96, 165, 250, 0.1); }

.zl-ctx__headericon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
  color: #fff;
  font-size: 11px;
  background: linear-gradient(135deg, var(--zel-primary, #2563eb), #0d9488);
  box-shadow: 0 4px 10px -3px rgba(37, 99, 235, 0.5);
}

.zl-ctx__headericon .zl-ctx__icon { width: 13px; height: 13px; }

.zl-ctx__headertext {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .zl-ctx__headertext { color: #94a3b8; }

/* Etiqueta de grupo */
.zl-ctx__group {
  padding: 7px 12px 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
  user-select: none;
}

.dark .zl-ctx__group { color: #64748b; }

.zl-ctx__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s ease-out, color 0.1s ease-out;
  font-family: inherit;
  font-size: inherit;
}

.zl-ctx__iconwrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(100, 116, 139, 0.09);
  color: #64748b;
  transition: background 0.1s ease-out, color 0.1s ease-out;
}

.dark .zl-ctx__iconwrap { background: rgba(148, 163, 184, 0.12); color: #94a3b8; }

.zl-ctx__item:hover,
.zl-ctx__item--active {
  background: rgba(37, 99, 235, 0.09);
  color: var(--zel-primary, #2563eb);
}

.zl-ctx__item:hover .zl-ctx__iconwrap,
.zl-ctx__item--active .zl-ctx__iconwrap {
  background: rgba(37, 99, 235, 0.14);
  color: var(--zel-primary, #2563eb);
}

.dark .zl-ctx__item:hover,
.dark .zl-ctx__item--active { background: rgba(148, 163, 184, 0.14); color: #f8fafc; }
.dark .zl-ctx__item:hover .zl-ctx__iconwrap,
.dark .zl-ctx__item--active .zl-ctx__iconwrap {
  background: rgba(96, 165, 250, 0.2);
  color: #93c5fd;
}

.zl-ctx__icon { width: 15px; height: 15px; flex-shrink: 0; }
.zl-ctx__label { flex: 1; font-weight: 500; }

.zl-ctx__shortcut { display: inline-flex; gap: 3px; }

.zl-ctx__kbd {
  display: inline-flex;
  align-items: center;
  min-width: 18px;
  justify-content: center;
  padding: 2px 5px;
  border-radius: 5px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom-width: 2px;
  background: rgba(148, 163, 184, 0.08);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.4;
}

.dark .zl-ctx__kbd {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

.zl-ctx__item:hover .zl-ctx__kbd,
.zl-ctx__item--active .zl-ctx__kbd { border-color: rgba(37, 99, 235, 0.3); color: var(--zel-primary, #2563eb); }
.dark .zl-ctx__item:hover .zl-ctx__kbd,
.dark .zl-ctx__item--active .zl-ctx__kbd { color: #93c5fd; }

.zl-ctx__sep { height: 1px; margin: 5px 10px; background: rgba(148, 163, 184, 0.25); }
.dark .zl-ctx__sep { background: rgba(148, 163, 184, 0.18); }

@media (prefers-reduced-motion: reduce) {
  .zl-ctx { transition: none; transform: none; }
}


.zl-ctx { min-width: 200px; }
.zl-ctx__item { min-height: 44px; }

@media (min-width: 641px) {
  .zl-ctx { min-width: 220px; }
  .zl-ctx__item { min-height: 36px; }
}

/* ============================================================
   Edge Blur (Cult UI)
   ============================================================ */

.edge-blur {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--edge-blur-height, 72px);
  pointer-events: none;
  z-index: 10;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.edge-blur-top {
  top: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}

.edge-blur-bottom {
  bottom: 0;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, transparent 100%);
}

/* ============================================================
   Iconos animados al hover
   ============================================================ */

@keyframes icon-elastic {
  0% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.12) rotate(-6deg); }
  65% { transform: scale(0.98) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.dock-app:hover i,
.btn:hover i,
.icon-btn:hover i,
.zl-ctx__item:hover i,
.bg-animated-btn:hover i {
  animation: icon-elastic 0.35s ease-in-out both;
}

@media (prefers-reduced-motion: reduce) {
  .dock-app:hover i,
  .btn:hover i,
  .icon-btn:hover i,
  .zl-ctx__item:hover i,
  .bg-animated-btn:hover i {
    animation: none;
  }
}

/* ============================================================
   Intro animations + skeletons
   ============================================================ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0)  scale(1); }
}

@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.stagger-in {
  opacity: 0;
  animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: color 220ms cubic-bezier(0.2, 0, 0, 1),
              background-color 220ms cubic-bezier(0.2, 0, 0, 1),
              border-color 220ms cubic-bezier(0.2, 0, 0, 1),
              box-shadow 220ms cubic-bezier(0.2, 0, 0, 1);
}

.skeleton {
  display: block;
  background: linear-gradient(90deg, var(--zel-bg) 25%, var(--zel-border) 50%, var(--zel-bg) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius);
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}

.skeleton-text  { height: 1em;  width: 100%; margin-bottom: .5rem; border-radius: .25rem; }
.skeleton-title { height: 1.2em; width: 65%; margin-bottom: .75rem; border-radius: .3rem; }
.skeleton-circle { width: 48px; height: 48px; border-radius: 50%; }
.skeleton-button { height: 2.25rem; width: 120px; border-radius: .5rem; }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
  .stagger-in { animation: none; opacity: 1; }
  .skeleton { animation: none; }
}



/* Compatibility classes (missing from system.css) */

/* x-cloak helper for Alpine.js */
[x-cloak] { display: none !important; }

.bg-brand-500 {
 background-color: var(--brand-500); 
}

.bg-brand-600 {
 background-color: var(--brand-600); 
}

.bg-brand-900 {
 background-color: var(--brand-900); 
}

.bg-brand-50 {
 background-color: var(--brand-50); 
}

.bg-brand-100 {
 background-color: rgba(37, 99, 235, 0.1); 
}

.text-brand-500 {
 color: var(--brand-500); 
}

.text-brand-600 {
 color: var(--brand-600); 
}

.text-brand-400 {
 color: var(--brand-400); 
}

.border-brand-500 {
 border-color: var(--brand-500); 
}

.focus\:ring-brand-500\/50:focus {
 box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5); 
}

.focus\:border-brand-500:focus {
 border-color: var(--brand-500); 
}

.from-brand-500 {
 --tw-gradient-from: var(--brand-500) var(--tw-gradient-from-position); --tw-gradient-to: rgba(37,99,235,0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); 
}

.to-brand-700 {
 --tw-gradient-to: var(--brand-700) var(--tw-gradient-to-position); 
}

.hover\:bg-brand-500:hover {
 background-color: var(--brand-500); 
}

.hover\:bg-brand-600:hover {
 background-color: var(--brand-600); 
}

.hover\:bg-brand-50:hover {
 background-color: rgba(37, 99, 235, 0.05); 
}

.hover\:text-brand-600:hover {
 color: var(--brand-500); 
}

.dark .hover\:text-brand-400:hover {
 color: var(--brand-400); 
}

.text-brand-800 {
 color: var(--brand-800); 
}

.text-brand-300 {
 color: var(--brand-300); 
}

.ring-brand-500 {
 --tw-ring-color: var(--brand-500); 
}

.dark .dark\:text-brand-300 {
 color: var(--brand-300); 
}

.dark .dark\:text-brand-400 {
 color: var(--brand-300); 
}

.dark .dark\:bg-brand-900 {
 background-color: var(--brand-900); 
}

.dark .dark\:bg-brand-900\/20 {
 background-color: rgba(23, 37, 84, 0.2); 
}

.dark .dark\:bg-brand-900\/30 {
 background-color: rgba(23, 37, 84, 0.3); 
}

.font-heading {

    font-family: var(--font-brand);

}

.text-h1 {
 font-size: var(--text-h1); font-weight: var(--weight-bold); line-height: 1.2; 
}

.text-h2 {
 font-size: var(--text-h2); font-weight: var(--weight-semibold); line-height: 1.3; 
}

.text-h3 {
 font-size: var(--text-h3); font-weight: var(--weight-semibold); line-height: 1.4; 
}

.text-sub {
 font-size: var(--text-sub); font-weight: var(--weight-regular); line-height: 1.5; color: var(--zel-teal); 
}

.text-body {
 font-size: var(--text-body); line-height: 1.5; 
}

.text-caption {
 font-size: var(--text-caption); font-weight: var(--weight-medium); line-height: 1.4; color: var(--text-muted); 
}

.brand-title {

    font-family: var(--font-brand);
    font-weight: var(--weight-bold);
    font-size: var(--text-h1);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--zel-deep);

}

.brand-slogan {

    font-family: var(--font-brand);
    font-weight: var(--weight-regular);
    font-size: var(--text-sub);
    color: var(--zel-teal);

}

.kpi-value {

    font-family: var(--font-brand);
    font-weight: var(--weight-semibold);
    font-size: 1.75rem; /* 28px, dentro del rango 24-32px de la guia */
    line-height: 1.2;
    color: var(--text-main);

}

.kpi-label {

    font-family: var(--font-body);
    font-weight: var(--weight-medium);
    font-size: var(--text-caption);
    color: var(--text-muted);

}

.badge-state {

    font-size: 0.6875rem; /* 11px */
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 9999px;

}

.sidebar-brand {

    background: linear-gradient(135deg, var(--zel-primary) 0%, var(--zel-teal) 60%, var(--zel-green) 100%);

}

.sidebar-nav {

    background-color: var(--sidebar-bg);

}

.sidebar-link {

    color: var(--sidebar-text);
    transition: all 0.2s ease;
    border-radius: 0.5rem;

}

.sidebar-link:hover {

    background-color: var(--sidebar-hover);
    color: var(--brand-400);

}

.sidebar-link.active {

    background-color: rgba(37, 99, 235, 0.15);
    color: var(--brand-400);
    border-left: 3px solid var(--brand-500);

}

.card-brand {

    background: var(--card-bg);
    border-radius: var(--card-radius);
    border: 1px solid rgba(37, 99, 235, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;

}

.card-brand:hover {

    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(37, 99, 235, 0.15);

}

.btn-teal {

    background: linear-gradient(135deg, var(--zel-primary) 0%, var(--zel-teal) 60%, var(--zel-green) 100%);
    color: white;
    transition: all 0.2s ease;

}

.btn-teal:hover {

    background: linear-gradient(135deg, var(--zel-primary-dark) 0%, var(--zel-teal) 100%);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);

}

.btn-gold {

    background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-dark) 100%);
    color: white;
    transition: all 0.2s ease;

}

.btn-gold:hover {

    background: linear-gradient(135deg, var(--brand-gold-dark) 0%, var(--brand-gold) 100%);
    box-shadow: 0 4px 15px rgba(229, 165, 45, 0.3);

}

.badge-teal {

    background-color: rgba(37, 99, 235, 0.1);
    color: var(--brand-500);

}

.badge-gold {

    background-color: rgba(229, 165, 45, 0.1);
    color: var(--brand-gold-dark);

}

.badge-red {

    background-color: rgba(198, 37, 51, 0.1);
    color: var(--brand-red);

}

.gradient-teal {

    background: linear-gradient(135deg, var(--zel-primary) 0%, var(--zel-teal) 60%, var(--zel-green) 100%);

}

.gradient-hero {

    background: linear-gradient(135deg, var(--zel-deep) 0%, var(--zel-primary) 60%, var(--zel-teal) 100%);

}

.stat-card {

    position: relative;
    overflow: hidden;

}

.stat-card::before {

    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--zel-primary), var(--zel-teal), var(--zel-green));

}

/* Primitivas de dashboard (mockup erp-dashboard.html) */

.page-header {

    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1.5rem;

}

.page-icon {

    width: 44px;
    height: 44px;
    border-radius: .75rem;
    background: rgba(37, 99, 235, .08);
    color: var(--zel-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;

}

.page-title h1 {

    font-size: 1.6rem;
    margin-bottom: .15rem;
    font-family: var(--font-brand, inherit);

}

.page-title p {

    color: var(--zel-muted);
    font-size: .9rem;
    margin: 0;

}

.stat-card {

    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;

}

.stat-icon {

    width: 48px;
    height: 48px;
    border-radius: .75rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;

}

.stat-title {

    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--zel-muted);
    margin-bottom: .25rem;

}

.stat-value {

    font-size: 1.65rem;
    font-weight: 700;
    font-family: var(--font-brand, inherit);

}

.module-card {

    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;

}

.module-icon {

    width: 42px;
    height: 42px;
    border-radius: .75rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;

}

.section-head {

    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0 1rem;

}

.section-head h2 {

    font-size: 1.1rem;
    font-weight: 700;

}

.table-wrap {

    overflow-x: auto;

}

.table-wrap table {

    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;

}

.table-wrap th {

    text-align: left;
    padding: .85rem 1rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--zel-muted);
    border-bottom: 1px solid var(--zel-border);

}

.table-wrap td {

    padding: .85rem 1rem;
    border-bottom: 1px solid var(--zel-border);

}

.dark .table-wrap th, .dark .table-wrap td {

    border-bottom-color: var(--zel-border-dark);

}

.table-wrap tr:last-child td {

    border-bottom: none;

}

.mobile-nav {

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(37, 99, 235, 0.1);

}

.input-brand {

    border: 1px solid #E4E7EC;
    border-radius: 0.5rem;
    transition: all 0.2s;

}

.input-brand:focus {

    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;

}

.table-brand th {

    background-color: #f8fafc;
    color: var(--brand-gray);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;

}

.table-brand tr:hover td {

    background-color: rgba(37, 99, 235, 0.02);

}

@keyframes fadeIn {

    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }

}

.animate-fade-in {

    animation: fadeIn 0.4s ease forwards;

}

.hero-pattern {

    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 0);
    background-size: 20px 20px;

}

.dark .card-brand, .dark .bg-white {

    background-color: #1e293b;
    border-color: rgba(255, 255, 255, 0.06);

}

.dark .bg-slate-50 {

    background-color: #0F172A;

}

.dark .bg-slate-100 {

    background-color: #1e293b;

}

.dark .text-slate-900, .dark .text-slate-800 {

    color: #f8fafc;

}

.dark .text-slate-500, .dark .text-slate-400 {

    color: #94a3b8;

}

.dark .border-slate-200 {

    border-color: #354764;

}

.dark .border-slate-100 {

    border-color: #1e293b;

}

.dark .input-brand {

    background-color: #1e293b;
    border-color: #354764;
    color: #f8fafc;

}

.dark .table-brand th {

    background-color: #1e293b;
    color: #94a3b8;

}

.dark .table-brand tr:hover td {

    background-color: rgba(106, 193, 186, 0.05);

}

.dark .mobile-nav {

    background: rgba(15, 23, 42, 0.95);
    border-top-color: rgba(255, 255, 255, 0.06);

}

.sidebar-tooltip {

    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: #0F172A;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 50;

}

.sidebar-tooltip::before {

    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: #0F172A;

}

.group:hover .sidebar-tooltip {

    opacity: 1;
    visibility: visible;

}

.dark .sidebar-tooltip {

    background: #354764;

}

.dark .sidebar-tooltip::before {

    border-right-color: #354764;

}

.skeleton-pulse {

    animation: skeletonPulse 1.5s ease-in-out infinite;

}

@keyframes skeletonPulse {

    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }

}

.skeleton-shimmer {

    background: linear-gradient(90deg, #E4E7EC 25%, #f8fafc 50%, #E4E7EC 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: 0.5rem;

}

.dark .skeleton-shimmer {

    background: linear-gradient(90deg, #354764 25%, #4A5A72 50%, #354764 75%);
    background-size: 200% 100%;

}

@keyframes skeletonShimmer {

    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }

}

.stagger-1 {
 animation-delay: 0.05s; 
}

.stagger-2 {
 animation-delay: 0.1s; 
}

.stagger-3 {
 animation-delay: 0.15s; 
}

.stagger-4 {
 animation-delay: 0.2s; 
}

.stagger-5 {
 animation-delay: 0.25s; 
}

.stagger-6 {
 animation-delay: 0.3s; 
}

.stagger-7 {
 animation-delay: 0.35s; 
}

.stagger-8 {
 animation-delay: 0.4s; 
}

#page-loader.hidden {

    opacity: 0;
    pointer-events: none;

}

.loader-spinner {

    width: 48px;
    height: 48px;
    border: 4px solid #E4E7EC;
    border-top-color: var(--brand-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;

}

.dark .loader-spinner {

    border-color: #354764;
    border-top-color: var(--brand-400);

}

@keyframes spin {

    to { transform: rotate(360deg); }

}

@keyframes slideUp {

    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }

}

@keyframes slideInLeft {

    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }

}

@keyframes scaleIn {

    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }

}

.animate-slide-up {

    animation: slideUp 0.5s ease forwards;

}

.animate-slide-left {

    animation: slideInLeft 0.5s ease forwards;

}

.animate-scale-in {

    animation: scaleIn 0.4s ease forwards;

}

.card-hover {

    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.card-hover:hover {

    transform: translateY(-4px);
    box-shadow: 0 12px 40px -8px rgba(37, 99, 235, 0.18);

}

.dark .card-hover:hover {

    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.35);

}

html.sidebar-initial-collapsed #app-sidebar {

    width: 72px;

}

html.sidebar-initial-collapsed #app-main {

    margin-left: 72px;

}

html.sidebar-initial-collapsed #app-sidebar .sidebar-brand-text {

    opacity: 0;
    width: 0;
    overflow: hidden;

}

.dark .fc {

    --fc-page-bg-color: transparent;
    --fc-border-color: #354764;
    --fc-button-text-color: #f8fafc;
    --fc-button-bg-color: #1e293b;
    --fc-button-border-color: #354764;
    --fc-button-hover-bg-color: #354764;
    --fc-button-hover-border-color: #4A5A72;
    --fc-button-active-bg-color: #354764;
    --fc-event-bg-color: #14b8a6;
    --fc-neutral-text-color: #f8fafc;
    --fc-list-event-hover-bg-color: rgba(106, 193, 186, 0.05);

}

.dark .fc .fc-toolbar-title {

    color: #f8fafc;

}

.dark .fc .fc-col-header-cell-cushion, .dark .fc .fc-daygrid-day-number, .dark .fc .fc-list-day-text, .dark .fc .fc-list-day-side-text {

    color: #f8fafc;

}

.dark .fc .fc-day-today {

    background-color: rgba(37, 99, 235, 0.15) !important;

}

.dark .fc-theme-standard td, .dark .fc-theme-standard th {

    border-color: #354764;

}

.safe-area-top {

    padding-top: env(safe-area-inset-top);

}

.safe-area-bottom {

    padding-bottom: env(safe-area-inset-bottom);

}

.touch-48 {

    min-height: 48px;
    min-width: 48px;

}

.pb-nav {

    padding-bottom: calc(64px + env(safe-area-inset-bottom));

}

.data-card {

    background: var(--card-bg);
    border: 1px solid #E4E7EC;
    border-radius: var(--card-radius);
    padding: 1rem;
    transition: all 0.2s ease;

}

.data-card:hover {

    background: #f8fafc;

}

.dark .data-card {

    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.06);

}

.dark .data-card:hover {

    background: #1e293b;

}

.snap-x {

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

}

.snap-start {

    scroll-snap-align: start;

}

.fab-mobile {

    position: fixed;
    bottom: calc(1rem + env(safe-area-inset-bottom) + 64px);
    right: 1rem;
    z-index: 40;

}

@media (min-width: 1024px) {
.fab-mobile {

        bottom: calc(1rem + env(safe-area-inset-bottom));
    
}
}

.btn-teal:active, .btn-gold:active, a.touch-target:active {

    transform: scale(0.97);
    transition: transform 0.1s ease;

}

.card-brand:active {

    transform: translateY(0);
    box-shadow: 0 4px 20px -5px rgba(37, 99, 235, 0.1);

}

@keyframes toastSlideIn {

    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }

}

@keyframes skeletonShimmer {

    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }

}

.skeleton-shimmer {

    background: linear-gradient(90deg, #f8fafc 25%, #E4E7EC 50%, #f8fafc 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;

}

.dark .skeleton-shimmer {

    background: linear-gradient(90deg, #1e293b 25%, #354764 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;

}

.touch-target {

    position: relative;
    overflow: hidden;

}

.touch-target::after {

    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;

}

.touch-target:active::after {

    width: 150%;
    height: 150%;

}

.disabled {

    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;

}

@keyframes statusPulse {

    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }

}

.status-pulse {

    animation: statusPulse 2s ease-in-out infinite;

}

.theme-glass [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]), .theme-glass [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]), .theme-glass [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme]), .theme-glass [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme]), .theme-mate [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]), .theme-mate [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]), .theme-mate [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme]), .theme-mate [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme]), .theme-gradient [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]), .theme-gradient [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]), .theme-gradient [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme]), .theme-gradient [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme]) {

    transition: all 0.3s ease;

}

.theme-glass [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]), .theme-glass [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]), .theme-glass [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme]), .theme-glass [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme]) {

    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.40) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    border-radius: 1.25rem;
    transition: all 0.3s ease;

}

.theme-glass [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]):hover, .theme-glass [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]):hover, .theme-glass [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme]):hover, .theme-glass [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme]):hover {

    background: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;

}

.dark.theme-glass [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]), .dark.theme-glass [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]), .dark.theme-glass [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme]), .dark.theme-glass [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme]) {

    background: rgba(15, 23, 42, 0.50);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;

}

.dark.theme-glass [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]):hover, .dark.theme-glass [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]):hover, .dark.theme-glass [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme]):hover, .dark.theme-glass [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme]):hover {

    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;

}

.theme-glass #app-sidebar, .theme-glass header {

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: none !important;

}

.dark.theme-glass #app-sidebar, .dark.theme-glass header {

    background: rgba(15, 23, 42, 0.70);
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;

}

.theme-mate [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]), .theme-mate [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]), .theme-mate [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme]), .theme-mate [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme]) {

    background-color: #f8fafc !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    border-radius: 1rem;
    transition: all 0.2s ease;

}

.theme-mate [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]):hover, .theme-mate [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]):hover, .theme-mate [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme]):hover, .theme-mate [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme]):hover {

    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;

}

.dark.theme-mate [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]), .dark.theme-mate [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]), .dark.theme-mate [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme]), .dark.theme-mate [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme]) {

    background-color: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20) !important;

}

.dark.theme-mate [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]):hover, .dark.theme-mate [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]):hover, .dark.theme-mate [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme]):hover, .dark.theme-mate [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme]):hover {

    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.30) !important;

}

.theme-mate #app-sidebar, .theme-mate header {

    background: #f8fafc !important;
    border-right: 1px solid #E4E7EC !important;
    border-bottom: 1px solid #E4E7EC !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03) !important;

}

.dark.theme-mate #app-sidebar, .dark.theme-mate header {

    background: #0F172A !important;
    border-right: 1px solid #1e293b !important;
    border-bottom: 1px solid #1e293b !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;

}

.theme-mate .card-hover:hover {

    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;

}

.theme-gradient [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]), .theme-gradient [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]), .theme-gradient [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme]), .theme-gradient [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme]) {

    background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.08) !important;
    box-shadow: 0 4px 20px -4px rgba(37, 99, 235, 0.10) !important;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;

}

.theme-gradient [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme])::before, .theme-gradient [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme])::before {

    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;

}

.dark.theme-gradient [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]), .dark.theme-gradient [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]), .dark.theme-gradient [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme]), .dark.theme-gradient [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme]) {

    background: linear-gradient(145deg, #1e293b 0%, #0F172A 100%);
    border: 1px solid rgba(37, 99, 235, 0.15) !important;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.30) !important;
    position: relative;
    overflow: hidden;

}

.dark.theme-gradient [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme])::before, .dark.theme-gradient [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme])::before, .dark.theme-gradient [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme])::before, .dark.theme-gradient [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme])::before {

    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;

}

.theme-gradient [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]):hover, .theme-gradient [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]):hover {

    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.15) !important;
    transition: all 0.3s ease;

}

.dark.theme-gradient [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]):hover, .dark.theme-gradient [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]):hover, .dark.theme-gradient [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme]):hover, .dark.theme-gradient [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme]):hover {

    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.40) !important;
    transition: all 0.3s ease;

}

.theme-gradient #app-sidebar, .theme-gradient header {

    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border-right: 1px solid rgba(37, 99, 235, 0.10) !important;
    border-bottom: 1px solid rgba(37, 99, 235, 0.10) !important;
    box-shadow: none !important;

}

.dark.theme-gradient #app-sidebar, .dark.theme-gradient header {

    background: linear-gradient(180deg, #1e293b 0%, #0F172A 100%) !important;
    border-right: 1px solid rgba(37, 99, 235, 0.12) !important;
    border-bottom: 1px solid rgba(37, 99, 235, 0.12) !important;
    box-shadow: none !important;

}

.theme-gradient body {

    background: linear-gradient(180deg, #f0f9ff 0%, #f0fdf4 50%, #fff1f2 100%) !important;
    background-attachment: fixed;

}

.dark.theme-gradient body {

    background: linear-gradient(180deg, #0F172A 0%, #1e293b 50%, #0F172A 100%) !important;
    background-attachment: fixed;

}

.theme-liquid [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]), .theme-liquid [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]), .theme-liquid [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme]), .theme-liquid [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme]) {

    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    border-radius: 1rem;
    transition: all 0.3s ease;

}

.theme-liquid [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]):hover, .theme-liquid [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]):hover, .theme-liquid [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme]):hover, .theme-liquid [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme]):hover {

    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;

}

.dark.theme-liquid [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]), .dark.theme-liquid [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]), .dark.theme-liquid [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme]), .dark.theme-liquid [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme]) {

    background: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(30, 41, 59, 0.7) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    transition: all 0.3s ease;

}

.dark.theme-liquid [class*="bg-white"][class*="rounded-2xl"]:not([data-skip-theme]):hover, .dark.theme-liquid [class*="bg-white"][class*="rounded-xl"]:not([data-skip-theme]):hover, .dark.theme-liquid [class*="dark:bg-slate-800"][class*="rounded-2xl"]:not([data-skip-theme]):hover, .dark.theme-liquid [class*="dark:bg-slate-800"][class*="rounded-xl"]:not([data-skip-theme]):hover {

    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.8) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;

}

.theme-liquid #app-sidebar, .theme-liquid header {

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.5) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;

}

.dark.theme-liquid #app-sidebar, .dark.theme-liquid header {

    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;

}

.theme-liquid body {

    background: linear-gradient(180deg, #f0f9ff 0%, #f0fdf4 50%, #fff1f2 100%) !important;
    background-attachment: fixed;

}

.dark.theme-liquid body {

    background: linear-gradient(180deg, #0F172A 0%, #1e293b 50%, #0F172A 100%) !important;
    background-attachment: fixed;

}

html.a11y-high-contrast body {

    color: #000 !important;
    background-color: #fff !important;

}

html.a11y-high-contrast.dark body {

    color: #fff !important;
    background-color: #000 !important;

}

html.a11y-high-contrast * {

    border-color: #000 !important;

}

html.a11y-high-contrast.dark * {

    border-color: #fff !important;

}

html.a11y-high-contrast .bg-brand-500, html.a11y-high-contrast .bg-brand-600, html.a11y-high-contrast .btn-teal, html.a11y-high-contrast .sidebar-link.active {

    background: #000 !important;
    color: #fff !important;
    border: 2px solid #000 !important;

}

html.a11y-high-contrast.dark .bg-brand-500, html.a11y-high-contrast.dark .bg-brand-600, html.a11y-high-contrast.dark .btn-teal, html.a11y-high-contrast.dark .sidebar-link.active {

    background: #fff !important;
    color: #000 !important;
    border: 2px solid #fff !important;

}

html.a11y-high-contrast .text-slate-500, html.a11y-high-contrast .text-slate-400, html.a11y-high-contrast .text-muted-foreground {

    color: #333 !important;

}

html.a11y-high-contrast.dark .text-slate-500, html.a11y-high-contrast.dark .text-slate-400, html.a11y-high-contrast.dark .text-muted-foreground {

    color: #ccc !important;

}

html.a11y-reduce-motion *, html.a11y-reduce-motion *::before, html.a11y-reduce-motion *::after {

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;

}

html.a11y-reduce-motion .animate-fade-in, html.a11y-reduce-motion .animate-slide-up, html.a11y-reduce-motion .animate-slide-left, html.a11y-reduce-motion .animate-scale-in, html.a11y-reduce-motion .skeleton-shimmer, html.a11y-reduce-motion .status-pulse, html.a11y-reduce-motion .loader-spinner {

    animation: none !important;

}

html.a11y-focus-visible button:focus-visible, html.a11y-focus-visible a:focus-visible, html.a11y-focus-visible input:focus-visible, html.a11y-focus-visible select:focus-visible, html.a11y-focus-visible textarea:focus-visible {

    outline: 4px solid #000 !important;
    outline-offset: 4px !important;
    border-radius: 0.25rem !important;

}

html.a11y-focus-visible.dark button:focus-visible, html.a11y-focus-visible.dark a:focus-visible, html.a11y-focus-visible.dark input:focus-visible, html.a11y-focus-visible.dark select:focus-visible, html.a11y-focus-visible.dark textarea:focus-visible {

    outline: 4px solid #fff !important;

}

html.a11y-loose-spacing body {

    line-height: 1.7 !important;

}

html.a11y-loose-spacing .p-4, html.a11y-loose-spacing .p-6 {

    padding: 1.5rem !important;

}

html.a11y-loose-spacing .space-y-3 > * + * {

    margin-top: 1rem !important;

}

html.a11y-loose-spacing .space-y-4 > * + * {

    margin-top: 1.25rem !important;

}

html.a11y-loose-spacing .space-y-6 > * + * {

    margin-top: 2rem !important;

}

html.a11y-loose-spacing .gap-3 {

    gap: 1rem !important;

}

html.a11y-loose-spacing .gap-4 {

    gap: 1.25rem !important;

}

html.a11y-loose-spacing input, html.a11y-loose-spacing select, html.a11y-loose-spacing textarea {

    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;

}

html.a11y-loose-spacing button {

    min-height: 44px !important;

}

.theme-glass nav[data-skip-theme], .theme-glass div[data-skip-theme].fixed {

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12) !important;

}

.dark.theme-glass nav[data-skip-theme], .dark.theme-glass div[data-skip-theme].fixed {

    background: rgba(15, 23, 42, 0.70);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.40) !important;

}

.theme-mate nav[data-skip-theme], .theme-mate div[data-skip-theme].fixed {

    background: #f8fafc !important;
    border: 1px solid #E4E7EC !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;

}

.dark.theme-mate nav[data-skip-theme], .dark.theme-mate div[data-skip-theme].fixed {

    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20) !important;

}

.theme-gradient nav[data-skip-theme], .theme-gradient div[data-skip-theme].fixed {

    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(37, 99, 235, 0.08) !important;
    box-shadow: 0 4px 20px -4px rgba(37, 99, 235, 0.10) !important;

}

.dark.theme-gradient nav[data-skip-theme], .dark.theme-gradient div[data-skip-theme].fixed {

    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(37, 99, 235, 0.12) !important;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.40) !important;

}

.touch-target {
 min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; 
}

.btn-teal, .btn-gold, .btn-primary, .sidebar-link, .nav a, .data-card, .card-hover, .card-brand, .table-brand tr, .benefit-card, .benefit-card h3, .form-control {

    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);

}

.btn-teal:active, .btn-gold:active, .btn-primary:active, .sidebar-link:active, .data-card:active, .card-hover:active, .card-brand:active, .nav a:active {

    transform: scale(0.97);

}

.data-card:hover, .card-hover:hover, .card-brand:hover, .table-brand tr:hover {

    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(23, 43, 77, 0.12);

}

.form-control:focus {

    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
    border-color: var(--brand-500);

}

.oneui-stagger > *:nth-child(1) {
 animation-delay: 0.04s; 
}

.oneui-stagger > *:nth-child(2) {
 animation-delay: 0.08s; 
}

.oneui-stagger > *:nth-child(3) {
 animation-delay: 0.12s; 
}

.oneui-stagger > *:nth-child(4) {
 animation-delay: 0.16s; 
}

.oneui-stagger > *:nth-child(5) {
 animation-delay: 0.20s; 
}

.oneui-stagger > *:nth-child(6) {
 animation-delay: 0.24s; 
}

.oneui-stagger > *:nth-child(7) {
 animation-delay: 0.28s; 
}

.oneui-stagger > *:nth-child(8) {
 animation-delay: 0.32s; 
}

.oneui-stagger > *:nth-child(9) {
 animation-delay: 0.36s; 
}

.oneui-stagger > *:nth-child(10) {
 animation-delay: 0.40s; 
}

.oneui-stagger > *:nth-child(11) {
 animation-delay: 0.44s; 
}

.oneui-stagger > *:nth-child(12) {
 animation-delay: 0.48s; 
}

.oneui-card {

    transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);

}

.oneui-card:hover {

    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(23, 43, 77, 0.12);

}

.oneui-card:active, .oneui-press:active, .oneui-btn:active {

    transform: scale(0.97);

}

.oneui-btn {

    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);

}

.oneui-btn:hover {

    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.25);

}

.oneui-input {

    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);

}

.oneui-input:focus {

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
    border-color: var(--brand-500);

}

.oneui-lift {

    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s cubic-bezier(0.2, 0, 0, 1);

}

.oneui-lift:hover {

    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.18);

}

.skeleton-shimmer:empty {

    content: '';

}

.zelanda-help-tooltip {

    position: absolute;
    z-index: 9999;
    max-width: 280px;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #fff;
    background-color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    opacity: 0;
    animation: zelanda-help-fade 0.15s ease-out forwards;
    white-space: normal;

}

html.dark .zelanda-help-tooltip {

    background-color: #0f172a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);

}

.zelanda-help-tooltip::after {

    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;

}

html.dark .zelanda-help-tooltip::after {

    border-color: #0f172a transparent transparent transparent;

}

@keyframes zelanda-help-fade {

    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }

}

.app-backdrop {

    background: rgba(0, 0, 0, 0.35) !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(4px) !important;
    backdrop-filter: blur(4px) !important;
    transition: opacity 0.2s ease-out;

}

.app-backdrop-open {
 opacity: 1; 
}

.app-backdrop-closed {
 opacity: 0; 
}

.app-drawer {

    background: rgba(248, 250, 252, 0.97) !important;
    border: 1px solid rgba(226, 232, 240, 0.55) !important;
    box-shadow: 0 20px 60px -16px rgba(15, 23, 42, 0.25) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
    will-change: transform;

}

.dark .app-drawer {

    background: rgba(15, 23, 42, 0.97) !important;
    border-color: rgba(51, 65, 85, 0.55) !important;
    box-shadow: 0 20px 60px -16px rgba(0, 0, 0, 0.45) !important;

}

.app-drawer-open {
 transform: translateX(0); 
}

.app-drawer-closed {
 transform: translateX(100%); 
}

i.fas, i.fab, i.far, i.fal, i.fa, svg.icon, .icon, img.icon {

    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;

}

i.fas:hover, i.fab:hover, i.far:hover, i.fal:hover, i.fa:hover, svg.icon:hover, .icon:hover, img.icon:hover {

    transform: scale(1.15) rotate(3deg);

}

a:hover i.fas, a:hover i.fab, a:hover i.far, a:hover i.fal, a:hover i.fa, button:hover i.fas, button:hover i.fab, button:hover i.far, button:hover i.fal, button:hover i.fa, .sidebar-link:hover i.fas, .sidebar-link:hover i.fab, .sidebar-link:hover i.far, .sidebar-link:hover i.fal, .sidebar-link:hover i.fa, .nav a:hover i.fas, .nav a:hover i.fab, .nav a:hover i.far, .nav a:hover i.fal, .nav a:hover i.fa, .socials a:hover i.fas, .socials a:hover i.fab, .socials a:hover i.far, .socials a:hover i.fal, .socials a:hover i.fa, .card-brand:hover i.fas, .card-brand:hover i.fab, .card-brand:hover i.far, .card-brand:hover i.fal, .card-brand:hover i.fa, .card-hover:hover i.fas, .card-hover:hover i.fab, .card-hover:hover i.far, .card-hover:hover i.fal, .card-hover:hover i.fa, .data-card:hover i.fas, .data-card:hover i.fab, .data-card:hover i.far, .data-card:hover i.fal, .data-card:hover i.fa, .btn-teal:hover i.fas, .btn-teal:hover i.fab, .btn-teal:hover i.far, .btn-teal:hover i.fal, .btn-teal:hover i.fa, .btn-gold:hover i.fas, .btn-gold:hover i.fab, .btn-gold:hover i.far, .btn-gold:hover i.fal, .btn-gold:hover i.fa, .zl-ctx__item:hover i.fas, .zl-ctx__item:hover i.fab, .zl-ctx__item:hover i.far, .zl-ctx__item:hover i.fal, .zl-ctx__item:hover i.fa, .module-card:hover i.fas, .module-card:hover i.fab, .module-card:hover i.far, .module-card:hover i.fal, .module-card:hover i.fa, .benefit-card:hover i.fas, .benefit-card:hover i.fab, .benefit-card:hover i.far, .benefit-card:hover i.fal, .benefit-card:hover i.fa {

    transform: scale(1.1) translateY(-2px);

}

@media (prefers-reduced-motion: reduce) {
i.fas, i.fab, i.far, i.fal, i.fa, svg.icon, .icon, img.icon, .sidebar-link:hover i, .nav a:hover i, .socials a:hover i, .card-brand:hover i, .card-hover:hover i, .data-card:hover i, .btn-teal:hover i, .btn-gold:hover i, .benefit-card:hover i {

        transition: none !important;
        transform: none !important;
    
}
}

html.a11y-reduce-motion * {

    transition: none !important;
    transform: none !important;

}

html.density-compact body {

    --density-space: 0.5rem;

}

html.density-compact .p-4, html.density-compact .p-5, html.density-compact .p-6 {

    padding: 0.5rem !important;

}

html.density-compact .py-3 {

    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;

}

html.density-compact .gap-3 {

    gap: 0.375rem !important;

}

html.density-compact .gap-4 {

    gap: 0.5rem !important;

}

html.density-compact .space-y-3 > * + * {

    margin-top: 0.375rem !important;

}

html.density-compact .space-y-4 > * + * {

    margin-top: 0.5rem !important;

}

html.density-compact .space-y-6 > * + * {

    margin-top: 0.75rem !important;

}

html.density-compact .rounded-2xl {

    border-radius: 0.5rem !important;

}

html.density-compact .rounded-xl {

    border-radius: 0.375rem !important;

}

html.density-compact .text-sm {

    font-size: 0.8125rem !important;
    line-height: 1.25rem !important;

}

.demo-dashboard {

    width: 100%;
    max-width: 100%;
    background: var(--card-bg, #FFFFFF);
    border: 1px solid rgba(37, 99, 235, 0.08);
    box-shadow: 0 10px 40px -10px rgba(37, 99, 235, 0.15);
    border-radius: 0.75rem;
    padding: 1.25rem;
    color: var(--text-main);
    box-sizing: border-box;

}

.demo-dashboard p {

    color: var(--text-main);
    opacity: 1;

}

.demo-dashboard-header {

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;

}

.demo-stat-grid {

    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;

}

@media (min-width: 641px) {
.demo-stat-grid {

        grid-template-columns: repeat(2, 1fr);
    
}
}

@media (min-width: 1024px) {
.demo-stat-grid {

        grid-template-columns: repeat(4, minmax(0, 1fr));
    
}
}

.demo-stat-card {

    background: var(--body-bg, #f8fafc);
    padding: 0.875rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;

}

.demo-stat-icon {

    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;

}

.demo-icon-teal {

    background: linear-gradient(135deg, var(--zel-primary) 0%, var(--zel-teal) 60%, var(--zel-green) 100%);

}

.demo-icon-emerald {

    background: linear-gradient(135deg, #10b981 0%, #047857 100%);

}

.demo-icon-purple {

    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);

}

.demo-icon-orange {

    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);

}

.demo-icon-red {

    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);

}

.demo-icon-gold {

    background: linear-gradient(135deg, #eab308 0%, #a16207 100%);

}

.demo-activity-list {

    list-style: none;
    margin: 0;
    padding: 0;

}

.demo-activity-item {

    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;

}

.demo-activity-item:last-child {

    border-bottom: none;

}

.demo-disclaimer {

    font-size: 0.7rem;
    color: #94a3b8;
    text-align: right;

}

.hero .demo-dashboard p {

    max-width: none;
    margin-bottom: 0;

}

/* Global page loader */
.page-loader { position: fixed; inset: 0; z-index: 9999; background: rgba(255,255,255,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--brand-primary); font-size: 3rem; }
.dark .page-loader { background: rgba(15,23,42,.92); }
.page-loader[hidden] { display: none !important; }
.page-loader p { margin-top: 1rem; font-family: var(--font-brand); color: var(--zel-text); font-size: .9rem; }

/* ============================================================
   Auth helpers (mockup login-product.html / portal-login.html)
   ============================================================ */

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: .8rem;
  margin-bottom: 1.25rem;
}

.btn-sso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: .9rem;
  border-radius: .75rem;
  background: var(--zel-deep);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: filter .2s ease;
}
.btn-sso:hover { filter: brightness(1.25); color: #fff; }
.btn-sso img { height: 1.25rem; width: 1.25rem; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0;
  color: var(--zel-muted);
  font-size: .75rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--zel-border);
}
.dark .auth-divider::before, .dark .auth-divider::after { background: var(--zel-border-dark); }

.error-toast {
  background: #fee2e2;
  color: #991b1b;
  padding: .75rem 1rem;
  border-radius: .75rem;
  font-size: .875rem;
  margin-bottom: 1rem;
}
.dark .error-toast { background: rgba(214, 69, 69, .15); color: #fca5a5; }

.success-toast {
  background: #064e3b;
  color: #fff;
  padding: .75rem 1rem;
  border-radius: .75rem;
  font-size: .875rem;
  margin-bottom: 1rem;
}
.dark .success-toast { background: rgba(34, 197, 94, .15); color: #86efac; }

.dot { width: .5rem; height: .5rem; border-radius: 999px; display: inline-block; }
.dot-emerald { background: #34d399; }
.dot-sky { background: #38bdf8; }

.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: currentColor;
  margin-left: 3px;
  vertical-align: middle;
  animation: zelBlink 1s step-end infinite;
}
.typing::after {
  content: '|';
  animation: zelBlink 1s step-start infinite;
}
@keyframes zelBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.auth-sparkline { display: flex; align-items: flex-end; gap: 4px; height: 32px; margin-top: .5rem; }
.auth-sparkline span { flex: 1; border-radius: 2px; background: rgba(255,255,255,.5); }
/* POS checkout (mockup pos-checkout): panel lateral de cobro */
.pos-numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.pos-numpad button {
  padding: .9rem 0;
  border-radius: .75rem;
  border: 1px solid var(--zel-border);
  background: var(--zel-card);
  color: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.pos-numpad button:hover { border-color: var(--zel-primary); color: var(--zel-primary); }
.pos-numpad button:active { transform: scale(.95); }
.dark .pos-numpad button { background: var(--zel-card-dark); border-color: var(--zel-border-dark); }

.pos-pay-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: .75rem .5rem;
  border: 1px solid var(--zel-border);
  border-radius: .75rem;
  background: var(--zel-card);
  color: inherit;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  text-align: center;
}
.pos-pay-method i { font-size: 1.1rem; }
.pos-pay-method:hover { border-color: var(--zel-primary); }
.pos-pay-method.active { border-color: var(--zel-primary); background: rgba(37, 99, 235, .06); color: var(--zel-primary); }
.dark .pos-pay-method { background: var(--zel-card-dark); border-color: var(--zel-border-dark); }

/* Settings (mockup settings.html): shell con sidebar sticky + secciones */
.settings-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.settings-sidebar {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  background: var(--zel-card);
  border: 1px solid var(--zel-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.dark .settings-sidebar { background: var(--zel-card-dark); border-color: var(--zel-border-dark); }
.settings-sidebar h2 { font-family: var(--font-brand); font-size: 1.25rem; margin: 0 0 1rem; }
.settings-nav button, .settings-nav a {
  width: 100%;
  text-align: left;
  padding: .75rem 1rem;
  border-radius: .75rem;
  color: inherit;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-bottom: .35rem;
  font-size: .9rem;
  text-decoration: none;
}
.settings-nav button:hover, .settings-nav button.active,
.settings-nav a:hover, .settings-nav a.active { background: rgba(37,99,235,.08); color: var(--zel-primary); }
.settings-content { display: flex; flex-direction: column; gap: 1.25rem; }
.settings-section { scroll-margin-top: 1.5rem; }
.section-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-brand);
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: var(--zel-text);
}
.dark .section-title { color: var(--zel-text-dark); }
.section-title i { color: var(--zel-primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group:last-child { margin-bottom: 0; }
.form-label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .4rem; }
.form-input {
  width: 100%;
  padding: .65rem .9rem;
  border-radius: .75rem;
  border: 1px solid var(--zel-border);
  background: var(--zel-card);
  color: inherit;
  font-size: .9rem;
  transition: var(--ease-spring);
}
.dark .form-input { background: var(--zel-card-dark); border-color: var(--zel-border-dark); }
.form-input:focus { outline: none; border-color: var(--zel-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--zel-border); }
.form-row:last-child { border-bottom: none; }
.dark .form-row { border-bottom-color: var(--zel-border-dark); }
.form-row-label { font-weight: 600; font-size: .9rem; }
.form-row-hint { font-size: .8rem; color: var(--zel-muted); margin-top: .15rem; }
.toggle-switch {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--zel-border);
  position: relative;
  cursor: pointer;
  transition: var(--ease-spring);
  border: none;
  flex-shrink: 0;
  padding: 0;
}
.dark .toggle-switch { background: var(--zel-border-dark); }
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: var(--ease-spring);
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.toggle-switch.on { background: var(--zel-primary); }
.toggle-switch.on::after { left: 22px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .75rem; }
.choice-option { cursor: pointer; }
.choice-option input { display: none; }
.choice-option .box {
  padding: .75rem;
  border-radius: .75rem;
  border: 1px solid var(--zel-border);
  text-align: center;
  transition: var(--ease-spring);
}
.dark .choice-option .box { border-color: var(--zel-border-dark); }
.choice-option input:checked + .box {
  border-color: var(--zel-primary);
  background: rgba(37,99,235,.08);
  color: var(--zel-primary);
}
.color-dot { width: 28px; height: 28px; border-radius: 50%; margin: 0 auto .5rem; }
.capability-list { display: flex; flex-direction: column; gap: .75rem; }
.capability-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem;
  border-radius: .75rem;
  border: 1px solid var(--zel-border);
  cursor: pointer;
  transition: var(--ease-spring);
}
.dark .capability-item { border-color: var(--zel-border-dark); }
.capability-item:hover { border-color: var(--zel-primary); }
.capability-item input { margin-top: .25rem; }
.capability-title { font-weight: 600; font-size: .9rem; }
.capability-desc { font-size: .8rem; color: var(--zel-muted); }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}
.status-active { background: rgba(34,197,94,.1); color: var(--zel-green); }
.status-inactive { background: rgba(226,232,240,.5); color: var(--zel-muted); }
@media (max-width: 768px) {
  .settings-shell { grid-template-columns: 1fr; }
  .settings-sidebar { position: static; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ===== Zelanda Dynamic Island (top-center pill) ===== */
.zl-island {
  position: fixed;
  top: .6rem;
  left: 50%;
  transform: translateX(-50%) scale(.95);
  min-width: 190px;
  max-width: min(380px, 92vw);
  background: #0D1B2A;
  color: #F1F5F9;
  border-radius: 999px;
  padding: .5rem .9rem;
  z-index: 1200;
  cursor: pointer;
  box-shadow: 0 8px 30px -4px rgba(0,0,0,.5);
  overflow: hidden;
  transition: all .32s cubic-bezier(.2,.8,.2,1);
  user-select: none;
}
.zl-island:hover { transform: translateX(-50%) scale(1); }
.zl-island:focus-visible { outline: 2px solid var(--zel-primary); outline-offset: 2px; }
.zl-island__head { display: flex; align-items: center; justify-content: center; gap: .55rem; }
.zl-island__title { font-size: .8rem; font-weight: 600; white-space: nowrap; }
.zl-island__badge {
  background: var(--zel-primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.zl-island__body { display: none; }
.zl-island.is-open {
  border-radius: 1.25rem;
  padding: .9rem 1rem;
  transform: translateX(-50%) scale(1);
  max-height: 70vh;
  overflow-y: auto;
}
.zl-island.is-open .zl-island__head { justify-content: flex-start; margin-bottom: .4rem; }
.zl-island.is-open .zl-island__body { display: block; }
.zl-island__item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .55rem .25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #F1F5F9;
  text-decoration: none;
  font-size: .8rem;
}
.zl-island__item:last-of-type { border-bottom: none; }
.zl-island__item:hover { background: rgba(255,255,255,.05); border-radius: .5rem; }
.zl-island__item i { margin-top: .15rem; }
.zl-island__item.is-unread .zl-island__txt b { color: #fff; }
.zl-island__txt { display: flex; flex-direction: column; min-width: 0; }
.zl-island__txt b { font-size: .8rem; font-weight: 600; color: #CBD5E1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zl-island__txt small { color: #94A3B8; font-size: .72rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zl-island__txt em { color: #64748B; font-size: .65rem; font-style: normal; margin-top: .1rem; }
.zl-island__empty { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 0; color: #94A3B8; font-size: .8rem; }
.zl-island__more {
  display: block;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  color: #5ED6BF;
  padding: .5rem 0 .15rem;
  text-decoration: none;
}
.zl-island__more:hover { text-decoration: underline; }
/* Cuando hay campana en la topbar, el island parte oculto y se abre con ella */
.zl-island.is-anchored { opacity: 0; pointer-events: none; transform: scale(.92); }
.zl-island.is-anchored.is-open { opacity: 1; pointer-events: auto; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .zl-island { transition: none; } }
@media (max-width: 640px) { .zl-island:not(.is-anchored) { top: auto; bottom: 1rem; } }

/* ===== Blobatar: avatar placeholder compartido del ecosistema =====
   Uso: zelanda_avatar($nombre, $url, $size) en avatar_helper.php.
   --bh es el hue determinístico (0-359) derivado del nombre. */
.blobatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 38% 62% 60% 40% / 42% 38% 62% 58%;
    overflow: hidden;
    flex-shrink: 0;
    user-select: none;
}
.blobatar svg { display: block; width: 100%; height: 100%; }

.avatar-photo {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ===== Skip link (accesibilidad) ===== */
.skip-link {
    position: fixed;
    top: -4rem;
    left: 1rem;
    z-index: 9999;
    padding: .6rem 1rem;
    border-radius: .6rem;
    background: var(--zel-primary, #2563EB);
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .25);
    transition: top .18s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* ===== Filas de tabla navegables ===== */
tr[data-href] {
    cursor: pointer;
}

tr[data-href]:focus-visible {
    outline: 2px solid var(--zel-primary, #2563EB);
    outline-offset: -2px;
}

/* ===== PWA install card ===== */
.pwa-card {
    position: fixed;
    left: calc(72px + .75rem);
    bottom: .75rem;
    z-index: 95;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    width: 280px;
    padding: .9rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid var(--zel-border, #e2e8f0);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
}

.pwa-card[hidden] { display: none; }

.dark .pwa-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, .1);
    color: #e2e8f0;
}

.pwa-card-icon {
    width: 36px;
    height: 36px;
    border-radius: .6rem;
    background: rgba(37, 99, 235, .12);
    color: var(--zel-primary, #2563EB);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pwa-card-body { flex: 1; min-width: 0; }
.pwa-card-title { margin: 0; font-size: .78rem; font-weight: 700; }
.pwa-card-text { margin: .15rem 0 0; font-size: .68rem; color: var(--zel-muted, #64748b); line-height: 1.35; }
.pwa-card-actions { display: flex; align-items: center; gap: .5rem; margin-top: .55rem; }

.pwa-card-later {
    background: none;
    border: none;
    padding: .35rem .5rem;
    border-radius: .4rem;
    font-size: .68rem;
    color: var(--zel-muted, #64748b);
    cursor: pointer;
}

.pwa-card-later:hover { color: var(--zel-ink, #0f172a); background: rgba(100, 116, 139, .12); }
.dark .pwa-card-later:hover { color: #f1f5f9; }

/* Junto al borde cuando no hay dock/sidebar */
.pwa-card--edge { left: .75rem; }

/* Embebida al pie del sidebar (ERP) */
.pwa-card--static {
    position: static;
    width: auto;
    margin: 0 .75rem .75rem;
}

/* Shell sin dock: el stage ocupa todo el ancho del workspace */
.workspace > .stage:first-child { grid-column: 1 / -1; }

/* ------------------------------------------------------------------
 * Back to top + tooltip del sidebar colapsado
 * ---------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 70;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--brand-500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, background .15s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}
.back-to-top:hover { background: var(--brand-600); transform: translateY(-2px); }
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:focus-visible { outline: 2px solid var(--brand-300); outline-offset: 2px; }

.nav-tip {
    position: fixed;
    z-index: 90;
    background: rgba(15, 23, 42, .95);
    color: #fff;
    padding: .4rem .7rem;
    border-radius: .5rem;
    font-size: .75rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    opacity: 0;
    transform: translateY(-50%) scale(.95);
    transition: opacity .12s ease, transform .12s ease;
}
.nav-tip.show { opacity: 1; transform: translateY(-50%) scale(1); }

/* ------------------------------------------------------------------
 * Paginador compartido (template pagers/zelanda_full)
 * ---------------------------------------------------------------- */
.zp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.zp-list {
    display: flex;
    align-items: center;
    gap: .375rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.zp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 .625rem;
    border-radius: .625rem;
    border: 1px solid var(--zel-border);
    background: var(--card-bg, #fff);
    color: var(--zel-text);
    font-size: .8125rem;
    font-weight: 600;
    font-family: var(--font-body, inherit);
    text-decoration: none;
    transition: all .15s ease;
    box-sizing: border-box;
}
a.zp-btn:hover {
    border-color: var(--brand-500);
    color: var(--brand-500);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px -4px rgba(37, 99, 235, .35);
}
.zp-btn.is-active {
    background: var(--brand-500);
    border-color: var(--brand-500);
    color: #fff;
    cursor: default;
}
.zp-btn.is-disabled { opacity: .38; cursor: not-allowed; }
.zp-btn:focus-visible { outline: 2px solid var(--brand-300); outline-offset: 2px; }
.zp-arrow svg { width: 15px; height: 15px; display: block; }
.zp-dots { color: var(--zel-muted); padding: 0 .25rem; font-weight: 600; }
.zp-info { font-size: .8rem; color: var(--zel-muted); white-space: nowrap; }

.dark .zp-btn {
    background: var(--zel-bg-dark);
    border-color: var(--zel-border-dark);
    color: var(--zel-text-dark);
}
.dark a.zp-btn:hover { border-color: var(--brand-400); color: var(--brand-300); }
.dark .zp-btn.is-active { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.dark .zp-dots, .dark .zp-info { color: var(--zel-muted-dark); }

/* Cuando el banner de cookies esta visible, los elementos fijos de abajo
   suben para no solaparlo */
body:has(#cookie-banner) .back-to-top { bottom: 96px; }
body:has(#cookie-banner) .pwa-install-banner { bottom: 96px; }
body:has(#cookie-banner) #zelanda-pwa-banner { bottom: 96px !important; }

/* La tarjeta de opt-in push (~138px de alto) ocupa la esquina inferior
   derecha: el boton volver-arriba se apila encima de ella */
body:has(.zl-push-card) .back-to-top { bottom: 170px; }
body:has(#cookie-banner):has(.zl-push-card) .back-to-top { bottom: 250px; }

/* FAB del app-switcher (storefront del Portal): mismo apilado.
   Orden de la esquina: cookies -> push card -> FAB apps -> volver arriba */
body:has(#cookie-banner) .zel-switcher--fab { bottom: 96px; }
body:has(.zl-push-card) .zel-switcher--fab { bottom: 170px; }
body:has(#cookie-banner):has(.zl-push-card) .zel-switcher--fab { bottom: 250px; }
body:has(.zel-switcher--fab) .back-to-top { bottom: 72px; }
body:has(#cookie-banner):has(.zel-switcher--fab) .back-to-top { bottom: 152px; }
body:has(.zel-switcher--fab):has(.zl-push-card) .back-to-top { bottom: 226px; }
body:has(#cookie-banner):has(.zel-switcher--fab):has(.zl-push-card) .back-to-top { bottom: 306px; }

/* ---------- Hero con panel glass (banner -> vidrio esmerilado) ----------
   Estructura: un contenedor con overflow:hidden -> .zl-hero-banner (img)
   seguido de .zl-glass-panel, que flota -4rem sobre el borde inferior del
   banner. El blur deja sangrar los colores de la imagen: gradiente visual
   entre foto y contenido. `--static` es la variante sin overlap (hero con
   texto encima del fondo) y `--dark` conserva texto claro sobre vidrio
   oscuro. */
.zl-hero-banner { position: relative; height: 13rem; overflow: hidden; }
.zl-hero-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zl-hero-banner::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13,27,42,0) 40%, rgba(13,27,42,.45));
}
.zl-glass-panel {
    position: relative;
    margin-top: -4rem;
    margin-inline: 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255,255,255,.85), rgba(255,255,255,.62));
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 16px 40px -16px rgba(13,27,42,.35);
}
.zl-glass-panel--static { margin-top: 0; margin-inline: 0; }
.zl-glass-panel--dark {
    background: linear-gradient(135deg, rgba(13,27,42,.58), rgba(13,27,42,.34));
    border-color: rgba(255,255,255,.22);
    color: #fff;
}
.dark .zl-glass-panel {
    background: linear-gradient(135deg, rgba(30,41,59,.88), rgba(15,23,42,.68));
    border-color: rgba(148,163,184,.16);
    box-shadow: 0 16px 40px -16px rgba(0,0,0,.55);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .zl-glass-panel { background: #fff; }
    .zl-glass-panel--dark { background: rgba(13,27,42,.85); }
    .dark .zl-glass-panel { background: #1e293b; }
}
@media (max-width: 640px) {
    .zl-hero-banner { height: 9rem; }
    .zl-glass-panel:not(.zl-glass-panel--static) { margin-top: -2.5rem; margin-inline: .75rem; }
}

/* Variante compacta para cards de listado (banner bajo + glass pegado) */
.zl-hero-banner--sm { height: 8rem; }
.zl-glass-panel--card { margin-top: -2.5rem; margin-inline: .75rem; border-radius: .9rem; }
@media (max-width: 640px) {
    .zl-hero-banner--sm { height: 6.5rem; }
}

/* ---------- Card de usuario del dock (patron Zelanda) ---------- */
.dock-user { position: relative; }
.dock-user-btn {
    border: none; background: transparent; padding: 0;
    font: inherit; color: inherit; cursor: pointer;
}
.dock-user-btn .blobatar { margin: 0 auto; }
.dock-user-pop {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: 15.5rem;
    z-index: 80;
    background: var(--zel-card);
    color: var(--zel-text);
    border: 1px solid var(--zel-border);
    border-radius: 1rem;
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, .28);
    overflow: hidden;
    font-size: .85rem;
    text-align: left;
}
.dark .dock-user-pop {
    background: var(--zel-card-dark);
    color: var(--zel-text-dark);
    border-color: var(--zel-border-dark);
}
.du-head {
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--zel-border);
    background: rgba(100, 116, 139, .06);
}
.dark .du-head { border-color: var(--zel-border-dark); }
.du-head .du-name { font-weight: 700; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.du-head .du-mail { font-size: .72rem; color: var(--zel-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: .15rem 0 0; }
.du-meta { padding: .6rem 1rem; display: flex; flex-direction: column; gap: .5rem; font-size: .75rem; }
.du-meta .du-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.du-meta .du-k { color: var(--zel-muted); }
.du-meta .du-k i { width: 1rem; margin-right: .2rem; }
.du-meta .du-v { font-weight: 600; }
.du-meta .du-v.ok { color: var(--zel-green); }
.du-meta .du-v.warn a { color: var(--zel-warning); font-weight: 600; }
.du-links { border-top: 1px solid var(--zel-border); padding: .3rem 0; }
.dark .du-links { border-color: var(--zel-border-dark); }
.du-links a {
    display: flex; align-items: center; gap: .6rem;
    padding: .5rem 1rem; font-size: .8rem;
    color: inherit; text-decoration: none;
}
.du-links a:hover { background: rgba(100, 116, 139, .1); }
.du-links a i { width: 1rem; text-align: center; color: var(--zel-primary); }
.du-links a.du-out { color: var(--zel-danger); }
.du-links a.du-out i { color: var(--zel-danger); }
.du-links a.du-out:hover { background: rgba(214, 69, 69, .08); }
@media (min-width: 769px) {
    .dock-user-pop { left: calc(100% + 10px); right: auto; bottom: 0; }
}

/* ---------- Expander (details/summary con chevron) ---------- */
.z-expander > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  user-select: none;
  font-weight: 600;
  color: var(--zel-muted);
}
.z-expander > summary::-webkit-details-marker { display: none; }
.z-expander > summary::before {
  content: "";
  display: inline-block;
  width: .45rem; height: .45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s ease;
  flex-shrink: 0;
}
.z-expander[open] > summary::before { transform: rotate(45deg); }
.z-expander > summary:hover { color: var(--zel-text); }
.dark .z-expander > summary:hover { color: var(--zel-text-dark); }
.z-expander > *:not(summary) { margin-top: .75rem; }

/* ============================================================
   Driver shell — accesibilidad y micro-interacciones
   ============================================================ */

/* Skip link: invisible hasta que recibe foco por teclado. */
.drv-skip {
    position: absolute; left: -9999px; top: .5rem;
    z-index: 100; padding: .5rem 1rem; border-radius: .75rem;
    background: var(--brand-600, #2563EB); color: #fff;
    font-size: .875rem; font-weight: 600; text-decoration: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .3);
}
.drv-skip:focus { left: .5rem; position: fixed; }

/* Anillo de foco visible en la navegacion del repartidor y en las
   paradas (los usuarios de teclado deben ver donde estan). */
#drv-sidebar nav a:focus-visible,
.drv-stop:focus-visible,
.driver-fail > summary:focus-visible {
    outline: 2px solid #60A5FA;
    outline-offset: 2px;
}

/* Chevron del disclosure "No se pudo entregar" (equivalente a
   group-open:rotate-180, que no esta en el CSS generado). */
.driver-fail > summary .fa-chevron-down { transition: transform .2s ease; }
.driver-fail[open] > summary .fa-chevron-down { transform: rotate(180deg); }

/* Punto pulsante de la siguiente parada (replica de animate-pulse
   por si la utilidad falta en una build futura). */
.drv-pulse-dot { animation: drvPulse 1.6s ease-in-out infinite; }
@keyframes drvPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.7); }
}
@media (prefers-reduced-motion: reduce) {
    .drv-pulse-dot { animation: none; }
}

/* ===== Sidebar del portal de clientes (desktop) =====
   En <lg la navegacion es la fila horizontal dentro del header sticky;
   en lg+ pasa a un rail vertical fijado bajo el header. */
.cust-sidebar { display: none; }
@media (min-width: 1024px) {
    .cust-navrow { display: none; }
    .cust-body { display: flex; gap: 1.5rem; align-items: flex-start; }
    .cust-sidebar {
        display: block;
        position: sticky;
        top: 4.5rem;
        align-self: flex-start;
        width: 14rem;
        flex-shrink: 0;
        max-height: calc(100vh - 5.5rem);
        overflow-y: auto;
    }
    .cust-sidebar nav a { width: 100%; }
    .cust-main { flex: 1; min-width: 0; }
}

/* Sidebar del repartidor: fijado bajo el header en desktop. El contenedor
   principal no scrollea (main tiene su propio scroll), asi que static ya lo
   clava; esto lo explicita por si el flujo cambia a scroll del documento. */
@media (min-width: 1024px) {
    #drv-sidebar {
        position: sticky;
        top: 3.5rem;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
        flex-shrink: 0;
    }
    /* Foco visible en los links del nav del customer (teclado). */
    .cust-sidebar a:focus-visible,
    .cust-navrow a:focus-visible {
        outline: 2px solid #60A5FA;
        outline-offset: 2px;
    }
}
