/* ============================================================
   PRODUCT TOUR — LIVE DASHBOARDS (add-on)
   Loads after cr-home.css. Only active when cr-tour-live.js adds
   .ct-has-live to #ct-dashboard (desktop/tablet ≥ 768px).
   Below 768px the original static images are shown unchanged.
   ============================================================ */
.crelio-tour .dashboard.ct-has-live {
  aspect-ratio: 1440 / 960;
  background: #fff;
}
.crelio-tour .dashboard.ct-has-live > #ct-dashboard-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top left;
}

.crelio-tour .ct-live {
  --ct-scale: 1;
  position: absolute; inset: 0; z-index: 2;
  overflow: hidden;
  border-radius: inherit;
}
.crelio-tour .ct-live__frame {
  position: absolute; top: 0; left: 0;
  width: 1440px; height: 960px;
  border: 0; background: #fff;
  transform: scale(var(--ct-scale));
  transform-origin: 0 0;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.crelio-tour .ct-live__frame.is-shown {
  opacity: 1; visibility: visible;
  transition: opacity .35s ease, visibility 0s;
}

/* loading bar — same green sweep used inside the dashboards */
.crelio-tour .ct-live__bar {
  position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
  background: rgba(28, 147, 35, 1);
  transform-origin: 0 50%;
  opacity: 0; pointer-events: none;
}
.crelio-tour .ct-live.is-loading .ct-live__bar {
  opacity: 1;
  animation: ctLiveBar 1.6s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes ctLiveBar {
  0% { transform: scaleX(0); opacity: 1; }
  70% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* "Live · click around" hint */
.crelio-tour .ct-live__hint {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 99px;
  background: rgba(14, 14, 14, .86); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 500; line-height: 16px; letter-spacing: -1%;
  pointer-events: none;
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.crelio-tour .ct-live.is-ready .ct-live__hint { opacity: 1; transform: none; }
.crelio-tour .ct-live.is-touched .ct-live__hint { opacity: 0; transform: translateY(6px); }
.crelio-tour .ct-live__dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%;
  background: #3FD15F; flex: none;
}
.crelio-tour .ct-live__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  animation: ctLiveDot 1.6s ease-out infinite;
}
@keyframes ctLiveDot {
  0% { box-shadow: 0 0 0 0 rgba(63, 209, 95, .6); }
  100% { box-shadow: 0 0 0 7px rgba(63, 209, 95, 0); }
}

@media (max-width: 767.98px) {
  .crelio-tour .ct-live { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .crelio-tour .ct-live__frame { transition: none; }
  .crelio-tour .ct-live.is-loading .ct-live__bar,
  .crelio-tour .ct-live__dot::after { animation: none; }
}
