.ph-tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2040;
  background: rgba(4, 7, 18, 0.46);
}

.ph-tour-spotlight {
  position: fixed;
  z-index: 2050;
  border: 3px solid var(--accent-light, #22d3ee);
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(4, 7, 18, 0.76), 0 0 36px rgba(34, 211, 238, 0.45);
  pointer-events: none;
  transition: inset 180ms ease, width 180ms ease, height 180ms ease;
}

.ph-tour-card {
  position: fixed;
  z-index: 2060;
  width: min(380px, calc(100vw - 32px));
  padding: 1rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  background: var(--modal-surface, #181b33);
  color: var(--modal-text, #eef2ff);
  box-shadow: var(--modal-shadow, 0 24px 64px rgba(0, 0, 0, 0.55));
}

.ph-tour-card__eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  color: var(--modal-text-muted, #9aa5bf);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ph-tour-card__title {
  margin: 0;
  color: var(--modal-text, #eef2ff);
  font-size: 1.1rem;
  line-height: 1.25;
}

.ph-tour-card__body {
  margin: 0.5rem 0 1rem;
  color: var(--modal-text-muted, #9aa5bf);
  font-size: 0.95rem;
}

.ph-tour-card__actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.ph-tour-card__actions .btn {
  min-width: 0;
}

.ph-tour-card__actions-left,
.ph-tour-card__actions-right {
  display: flex;
  gap: 0.5rem;
}

.swal2-popup .swal2-deny {
  background: var(--modal-accent, #7c3aed) !important;
  color: var(--modal-button-text, #fff) !important;
  border: 1.5px solid var(--modal-accent, #7c3aed) !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  padding: 0.6rem 1.4rem !important;
  box-shadow: none !important;
  transition: filter 0.15s, transform 0.15s !important;
}

.swal2-popup .swal2-deny:hover {
  filter: brightness(1.12) !important;
  transform: translateY(-1px) !important;
}

.ph-tour-target {
  position: relative !important;
  z-index: 2055 !important;
}

.qa-help-guide {
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--accent-light, #22d3ee) 42%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(16, 185, 129, 0.08)),
    var(--bg-card, #1d2040);
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0, 0, 0, 0.45));
}

.qa-help-guide--editor {
  margin-top: -0.25rem;
}

.qa-help-guide h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.qa-help-guide__intro {
  margin: 0;
  color: var(--text-secondary, #9aa5bf);
}

.qa-help-step {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 128px;
  padding: 0.85rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.qa-help-step strong {
  color: var(--text-primary, #eef2ff);
  font-size: 0.95rem;
}

.qa-help-step span {
  color: var(--text-secondary, #9aa5bf);
  font-size: 0.88rem;
}

.qa-help-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 1.25rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  background: var(--bg-card, #1d2040);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.35));
}

.qa-help-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--modal-accent-soft, rgba(124, 58, 237, 0.16));
  color: var(--accent-light, #22d3ee);
  font-size: 1.25rem;
}

.qa-help-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.qa-help-card p {
  margin: 0 0 1rem;
  color: var(--text-secondary, #9aa5bf);
  font-size: 0.95rem;
}

.qa-help-card__steps {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.qa-help-card__steps li {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary, #9aa5bf);
  font-size: 0.88rem;
  line-height: 1.35;
}

.qa-help-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: auto;
  padding: 0.7rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--primary, #7c3aed) 56%, transparent);
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.16);
  color: var(--text-primary, #eef2ff);
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.qa-help-card__action:hover,
.qa-help-card__action:focus-visible {
  border-color: var(--primary, #7c3aed);
  background: rgba(124, 58, 237, 0.28);
  color: var(--text-primary, #eef2ff);
  transform: translateY(-1px);
}

@media (max-width: 575px) {
  .ph-tour-card {
    left: 16px !important;
    right: 16px !important;
    width: auto;
  }

  .ph-tour-card__actions {
    flex-direction: column;
  }

  .ph-tour-card__actions-left,
  .ph-tour-card__actions-right,
  .ph-tour-card__actions .btn {
    width: 100%;
  }

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