/* Demo presentation layer — remove admin-demo-mode.css + admin-demo-mode.js to restore live data */

body.admin-demo-mode .kpi {
  animation: demoKpiIn 0.65s var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) both;
}

body.admin-demo-mode .kpi:nth-child(1) { animation-delay: 0.05s; }
body.admin-demo-mode .kpi:nth-child(2) { animation-delay: 0.12s; }
body.admin-demo-mode .kpi:nth-child(3) { animation-delay: 0.19s; }
body.admin-demo-mode .kpi:nth-child(4) { animation-delay: 0.26s; }

body.admin-demo-mode .revenue-period {
  animation: demoKpiIn 0.55s var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) both;
}

body.admin-demo-mode .revenue-period:nth-child(1) { animation-delay: 0.32s; }
body.admin-demo-mode .revenue-period:nth-child(2) { animation-delay: 0.38s; }
body.admin-demo-mode .revenue-period:nth-child(3) { animation-delay: 0.44s; }
body.admin-demo-mode .revenue-period:nth-child(4) { animation-delay: 0.5s; }

body.admin-demo-mode .kpi.accent .kpi-value,
body.admin-demo-mode .revenue-period strong {
  text-shadow: 0 0 28px oklch(70% 0.12 188 / 0.22);
}

body.admin-demo-mode .pipe-step.is-live .pipe-count {
  animation: demoPulseLive 2.4s ease-in-out infinite;
}

body.admin-demo-mode .pipe-step.is-hot .pipe-count {
  animation: demoPulseHot 1.8s ease-in-out infinite;
}

body.admin-demo-mode .activity-item {
  animation: demoActivityIn 0.45s var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) both;
}

body.admin-demo-mode .activity-item:nth-child(1) { animation-delay: 0.08s; }
body.admin-demo-mode .activity-item:nth-child(2) { animation-delay: 0.14s; }
body.admin-demo-mode .activity-item:nth-child(3) { animation-delay: 0.2s; }
body.admin-demo-mode .activity-item:nth-child(4) { animation-delay: 0.26s; }
body.admin-demo-mode .activity-item:nth-child(5) { animation-delay: 0.32s; }
body.admin-demo-mode .activity-item:nth-child(6) { animation-delay: 0.38s; }
body.admin-demo-mode .activity-item:nth-child(7) { animation-delay: 0.44s; }
body.admin-demo-mode .activity-item:nth-child(8) { animation-delay: 0.5s; }

body.admin-demo-mode .sync-pill .dot {
  animation: demoSyncPulse 1.6s ease-in-out infinite;
}

body.admin-demo-mode .order-card[data-demo-order="1"] {
  animation: demoOrderIn 0.5s var(--ease, cubic-bezier(0.2, 0.8, 0.2, 1)) both;
}

body.admin-demo-mode .order-card[data-demo-order="1"]:nth-child(1) { animation-delay: 0.04s; }
body.admin-demo-mode .order-card[data-demo-order="1"]:nth-child(2) { animation-delay: 0.08s; }
body.admin-demo-mode .order-card[data-demo-order="1"]:nth-child(3) { animation-delay: 0.12s; }
body.admin-demo-mode .order-card[data-demo-order="1"]:nth-child(4) { animation-delay: 0.16s; }
body.admin-demo-mode .order-card[data-demo-order="1"]:nth-child(5) { animation-delay: 0.2s; }

body.admin-demo-mode .demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid oklch(78% 0.14 85 / 0.28);
  background: oklch(78% 0.14 85 / 0.08);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
}

body.admin-demo-mode .demo-banner button {
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

@keyframes demoKpiIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes demoPulseLive {
  0%, 100% { box-shadow: 0 0 0 0 oklch(72% 0.17 145 / 0); }
  50% { box-shadow: 0 0 18px 2px oklch(72% 0.17 145 / 0.35); }
}

@keyframes demoPulseHot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

@keyframes demoActivityIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes demoSyncPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

@keyframes demoOrderIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.admin-demo-mode .kpi,
  body.admin-demo-mode .revenue-period,
  body.admin-demo-mode .activity-item,
  body.admin-demo-mode .order-card[data-demo-order="1"],
  body.admin-demo-mode .pipe-step.is-live .pipe-count,
  body.admin-demo-mode .pipe-step.is-hot .pipe-count,
  body.admin-demo-mode .sync-pill .dot {
    animation: none;
  }
}
