.product-tour[hidden] {
  display: none;
}

.product-tour {
  position: fixed;
  inset: 0;
  z-index: 3000;
}

.tour-shade {
  position: fixed;
  background: rgba(5, 4, 9, 0.83);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.tour-spotlight {
  position: fixed;
  border: 2px solid #c39bff;
  border-radius: 14px;
  box-shadow: 0 0 0 4px rgba(178, 130, 244, 0.2), 0 0 32px rgba(178, 130, 244, 0.45);
  pointer-events: none;
  transition: all 0.22s ease;
}

.tour-popover {
  position: fixed;
  padding: 22px;
  border: 1px solid #654b83;
  border-radius: 16px;
  background: linear-gradient(150deg, #21172c, #100d16);
  box-shadow: 0 25px 80px #000c;
  color: #eee5f8;
  z-index: 2;
}

.tour-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a98acb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.tour-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #2b2037;
  color: #cbb8df;
  font-size: 21px;
  line-height: 1;
}

.tour-popover h2 {
  margin: 13px 0 8px;
  font-size: 20px;
}

.tour-popover p {
  color: #b9abc7;
  font-size: 12px;
  line-height: 1.75;
}

.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 21px;
}

.tour-actions > div {
  display: flex;
  gap: 8px;
}

.tour-actions button {
  padding: 9px 13px;
  border: 1px solid #49365d;
  border-radius: 8px;
  background: #1b1423;
  color: #cfc1dd;
  font-size: 11px;
  font-weight: 600;
}

.tour-actions .tour-next {
  min-width: 74px;
  border-color: #9e73de;
  background: linear-gradient(130deg, #a278e7, #8052cd);
  color: #fff;
}

.tour-actions .tour-skip {
  padding-left: 0;
  border: 0;
  background: transparent;
  color: #8f819d;
}

.tour-actions button:disabled {
  opacity: 0.35;
}

.product-tour-open {
  overflow: hidden;
}

.tour-replay {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #2d2238;
  border-radius: 10px;
  background: #15101d;
  color: #b9a8ca;
  text-align: left;
}

.tour-replay strong,
.tour-replay small {
  display: block;
}

.tour-replay strong {
  font-size: 11px;
}

.tour-replay small {
  color: #756982;
  font-size: 9px;
}

.purchase-path {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  margin: 20px 0;
  padding: 14px;
  border: 1px solid #332740;
  border-radius: 13px;
  background: #0e0b14;
}

.purchase-path-line {
  width: 22px;
  height: 1px;
  background: #443451;
}

.purchase-path-step {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.purchase-path-step > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #4f3b60;
  border-radius: 50%;
  background: #21172b;
  color: #cba7ef;
  font-size: 11px;
  font-weight: 700;
}

.purchase-path-step strong,
.purchase-path-step small {
  display: block;
}

.purchase-path-step strong {
  color: #d4c7df;
  font-size: 10px;
}

.purchase-path-step small {
  margin-top: 2px;
  color: #81758e;
  font-size: 8px;
}

.purchase-path-step.complete > span {
  border-color: #315442;
  background: #153126;
  color: #8ed0b2;
}

.purchase-path-step.locked {
  opacity: 0.58;
}

.license-first-message {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #443355;
  border-radius: 11px;
  background: #171020;
}

.license-first-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #281c35;
  color: #bb94e5;
}

.license-first-message strong {
  font-size: 12px;
}

.license-first-message p {
  margin-top: 4px;
  color: #998aa8;
  font-size: 10px;
  line-height: 1.65;
}

@media (max-width: 680px) {
  .tour-popover {
    padding: 18px;
  }

  .tour-popover h2 {
    font-size: 17px;
  }

  .tour-actions {
    align-items: flex-end;
  }

  .purchase-path {
    grid-template-columns: 1fr;
  }

  .purchase-path-line {
    width: 1px;
    height: 14px;
    margin-left: 13px;
  }

  .purchase-path-step strong {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-spotlight {
    transition: none;
  }
}
