/* =========================================================
   ZAR WORKSPACE QUICK TOUR
========================================================= */

.zar-workspace-tour[hidden] {
  display: none !important;
}

.zar-workspace-tour {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
}

/* Spotlight with a full-screen surrounding shadow */
.zar-workspace-tour__spotlight {
  position: fixed;
  z-index: 100001;

  border: 1px solid rgba(143, 212, 189, 0.62);
  border-radius: 18px;

  background: rgba(127, 181, 255, 0.025);

  box-shadow:
    0 0 0 9999px rgba(3, 5, 11, 0.74),
    0 0 0 4px rgba(143, 212, 189, 0.08),
    0 0 35px rgba(127, 181, 255, 0.28),
    inset 0 0 24px rgba(127, 181, 255, 0.04);

  pointer-events: none;

  transition:
    left 240ms ease,
    top 240ms ease,
    width 240ms ease,
    height 240ms ease,
    border-radius 240ms ease;
}

.zar-workspace-tour__spotlight.is-workspace {
  border-radius: 26px;
  border-color: rgba(127, 181, 255, 0.40);
}

/* =========================================================
   EXPLANATION CARD
========================================================= */

.zar-workspace-tour__card {
  position: fixed;
  z-index: 100002;

  padding: 24px;

  border: 1px solid rgba(143, 212, 189, 0.22);
  border-radius: 20px;

  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(143, 212, 189, 0.13),
      transparent 45%
    ),
    linear-gradient(
      160deg,
      rgba(15, 24, 39, 0.985),
      rgba(6, 10, 20, 0.99)
    );

  color: rgba(240, 246, 255, 0.96);

  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  pointer-events: auto;
  box-sizing: border-box;
}

.zar-workspace-tour__close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid rgba(145, 164, 220, 0.17);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.04);
  color: rgba(220, 230, 250, 0.75);

  font-size: 18px;
  cursor: pointer;
}

.zar-workspace-tour__close:hover {
  color: #ffffff;
  border-color: rgba(127, 181, 255, 0.38);
  background: rgba(127, 181, 255, 0.11);
}

.zar-workspace-tour__progress {
  margin: 0 40px 9px 0;

  color: rgba(143, 212, 189, 0.82);

  font-size: 0.68rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.zar-workspace-tour__title {
  margin: 0 38px 10px 0;

  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.zar-workspace-tour__description {
  margin: 0 0 22px;

  color: rgba(205, 216, 239, 0.80);

  font-size: 0.86rem;
  line-height: 1.65;
}

.zar-workspace-tour__actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.zar-workspace-tour__button {
  min-width: 84px;
  min-height: 38px;
  padding: 9px 15px;

  border: 1px solid rgba(143, 212, 189, 0.26);
  border-radius: 12px;

  background:
    linear-gradient(
      180deg,
      rgba(30, 61, 68, 0.92),
      rgba(11, 27, 38, 0.96)
    );

  color: rgba(235, 250, 245, 0.96);

  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;

  cursor: pointer;
}

.zar-workspace-tour__button:hover {
  border-color: rgba(143, 212, 189, 0.48);
  transform: translateY(-1px);
}

.zar-workspace-tour__button--secondary {
  border-color: rgba(127, 181, 255, 0.18);
  background: rgba(21, 30, 54, 0.88);
  color: rgba(211, 222, 247, 0.88);
}

.zar-workspace-tour__button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* Hide the ordinary tutorial only during the live tour */
body.zar-workspace-tour-active
.zar-workspace-tutorial {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
  .zar-workspace-tour__card {
    left: 12px !important;
    right: 12px;
    bottom: 76px;
    top: auto !important;

    width: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zar-workspace-tour__spotlight,
  .zar-workspace-tour__button {
    transition: none;
  }
}