/* ==================================================================
   REVOCH public V99 — SALES CRM PAGE UPGRADE
   1. Pipeline KPI numbers count up on reveal
   2. 5-step sales chain draws with scroll + steps light up
   3. Pipeline stage cards pop in with pulsing dots
   4. Manager cards get spotlight tilt
   Progressive: reduced motion / Motion pause show the static page.
   ================================================================== */

/* ---------- 2. sales chain scroll draw ---------- */
.page-sales-crm .v68-sales-flow { position: relative; --v99sd: 0; }
.page-sales-crm .v68-sales-flow::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #2563eb, #7c3aed, #06b6d4); transform: scaleX(var(--v99sd)); transform-origin: left; transition: transform .18s linear; z-index: 0; }
.page-sales-crm .v68-sales-flow > article { position: relative; z-index: 1; transition: transform .35s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.page-sales-crm .v68-sales-flow > article.v99-lit { transform: translateY(-4px); filter: drop-shadow(0 12px 24px rgba(99,102,241,.28)); }
.page-sales-crm .v68-sales-flow > article.v99-lit b { background: var(--grad, linear-gradient(135deg,#2563eb,#7c3aed)); color: #fff; }

/* ---------- 3. pipeline stage cards + dots ---------- */
.page-sales-crm .pvx-pipeline-card { position: relative; overflow: hidden; }
.page-sales-crm .pvx-pipeline-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--v99x, 50%) var(--v99y, 50%), rgba(99,102,241,.10), transparent 55%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.page-sales-crm .pvx-pipeline-card:hover::after { opacity: 1; }
.page-sales-crm .pvx-pipeline-card .pvx-stage { animation: v99-stage-in .55s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--v99s, 0) * 120ms); }
@keyframes v99-stage-in { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
.page-sales-crm .pvx-pipeline-card i, .page-sales-crm .pvx-pipeline-card .pvx-dot { animation: v99-dot-pulse 2.4s ease-in-out infinite; animation-delay: calc(var(--v99s, 0) * 300ms); }
@keyframes v99-dot-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,.35); } 50% { box-shadow: 0 0 0 6px rgba(99,102,241,0); } }

/* ---------- KPI count-up ---------- */
.page-sales-crm .pvx-pipeline-kpis b { font-variant-numeric: tabular-nums; }

/* ---------- 4. manager cards ---------- */
.page-sales-crm .v99-mgr { position: relative; overflow: hidden; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease; }
.page-sales-crm .v99-mgr:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(30,41,90,.14); border-color: rgba(99,102,241,.35); }
.page-sales-crm .v99-mgr::before { content: ""; position: absolute; left: 14px; top: 0; height: 2.5px; width: 0; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #2563eb, #7c3aed); transition: width .45s cubic-bezier(.2,.7,.2,1); }
.page-sales-crm .v99-mgr:hover::before { width: 52px; }

/* ---------- guards ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-sales-crm .v68-sales-flow::before { transform: scaleX(1) !important; transition: none !important; }
  .page-sales-crm .v68-sales-flow > article.v99-lit { transform: none !important; filter: none !important; }
  .page-sales-crm .pvx-pipeline-card .pvx-stage { animation: none !important; }
  .page-sales-crm .pvx-pipeline-card i, .page-sales-crm .pvx-pipeline-card .pvx-dot { animation: none !important; }
  .page-sales-crm .v99-mgr { transform: none !important; transition: none !important; }
}
.page-sales-crm.v77-paused .v68-sales-flow::before { transform: scaleX(1) !important; }
.page-sales-crm.v77-paused .pvx-pipeline-card i, .page-sales-crm.v77-paused .pvx-pipeline-card .pvx-dot { animation: none !important; }
