.admin-tour-launcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin-left: 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 12px 5px 6px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.admin-tour-launcher:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.admin-tour-launcher > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #d1a15f;
  color: #172033;
  font-size: 13px;
  font-weight: 900;
}

.admin-tour-launcher strong {
  font-size: 12px;
  font-weight: 700;
}

.admin-tour-focus {
  position: fixed;
  z-index: 10001;
  border: 2px solid #d1a15f;
  border-radius: 8px;
  box-shadow:
    0 0 0 4px rgba(209, 161, 95, 0.18),
    0 0 0 9999px rgba(10, 16, 28, 0.64);
  pointer-events: none;
  transition: top 220ms ease, left 220ms ease, width 220ms ease, height 220ms ease;
}

.admin-tour-popover {
  position: fixed;
  z-index: 10002;
  width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  color: #172033;
  box-shadow: 0 24px 70px -24px rgba(2, 8, 23, 0.65);
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.admin-tour-popover.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-tour-popover::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #9f7137, #e0b879, #9f7137);
  content: "";
}

.admin-tour-popover__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 20px 0;
}

.admin-tour-popover__eyebrow {
  color: #9f7137;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-tour-popover__close {
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f4f7;
  color: #526071;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.admin-tour-popover__close:hover {
  background: #e7ebf0;
  color: #172033;
}

.admin-tour-popover__body {
  padding: 12px 20px 18px;
}

.admin-tour-popover__body h2 {
  margin: 0;
  color: #172033;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.25;
}

.admin-tour-popover__body p {
  margin: 9px 0 0;
  color: #5d6978;
  font-size: 13px;
  line-height: 1.6;
}

.admin-tour-popover__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #edf0f3;
  background: #fafbfc;
  padding: 12px 14px 12px 20px;
}

.admin-tour-popover__progress {
  color: #7a8592;
  font-size: 11px;
  font-weight: 700;
}

.admin-tour-popover__actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-tour-button {
  min-height: 34px;
  border: 1px solid #dfe4e9;
  border-radius: 999px;
  background: #fff;
  padding: 7px 13px;
  color: #354153;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.admin-tour-button:hover {
  border-color: #bdc6cf;
  background: #f6f8fa;
}

.admin-tour-button--primary {
  border-color: #172033;
  background: #172033;
  color: #fff;
}

.admin-tour-button--primary:hover {
  border-color: #26364f;
  background: #26364f;
}

.admin-tour-target-pulse {
  animation: adminTourPulse 1.8s ease-in-out infinite;
}

@keyframes adminTourPulse {
  0%,
  100% {
    filter: none;
  }
  50% {
    filter: brightness(1.06);
  }
}

@media (max-width: 767px) {
  .admin-tour-launcher {
    margin: 7px 0 0;
  }

  .admin-tour-launcher strong {
    display: none;
  }

  .admin-tour-launcher {
    padding-right: 6px;
  }

  .admin-tour-popover {
    right: 14px !important;
    bottom: 14px !important;
    left: 14px !important;
    top: auto !important;
    width: auto;
  }

  .admin-tour-focus {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-tour-focus,
  .admin-tour-popover,
  .admin-tour-launcher {
    animation: none;
    transition: none;
  }
}
