/* SmartBiz Demo Tour — visual-only rail (no instructional copy) */

.sb-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: transparent;
  pointer-events: none;
}

.sb-tour-overlay__hole {
  position: absolute;
  border-radius: 10px;
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
  box-shadow:
    0 0 0 9999px rgba(15, 23, 42, 0.55),
    0 0 0 8px rgba(251, 191, 36, 0.45),
    0 0 24px rgba(251, 191, 36, 0.55);
  background: transparent;
  pointer-events: none;
  transition: top 0.16s ease, left 0.16s ease, width 0.16s ease, height 0.16s ease;
}

.sb-tour-overlay__hole.is-fill {
  outline-color: #fde047;
  box-shadow:
    0 0 0 9999px rgba(15, 23, 42, 0.62),
    0 0 0 10px rgba(253, 224, 71, 0.55),
    0 0 28px rgba(250, 204, 21, 0.7);
}

#sbDemoExitBtn,
.sb-lang,
.sb-help-menu {
  position: relative;
  z-index: 10040;
}

/* Click / nav targets */
.is-sb-tour-active,
[data-tour].is-sb-tour-active {
  position: relative !important;
  z-index: 10015 !important;
  outline: 3px solid #38bdf8 !important;
  outline-offset: 3px !important;
  box-shadow:
    0 0 0 4px rgba(56, 189, 248, 0.45),
    0 0 20px rgba(56, 189, 248, 0.55) !important;
  border-radius: 8px;
  pointer-events: auto !important;
}

/* Fillable fields — clear invert / white spotlight (never covered by dock) */
.is-sb-tour-active.is-sb-tour-fill,
[data-tour].is-sb-tour-active.is-sb-tour-fill,
input.is-sb-tour-active.is-sb-tour-fill,
select.is-sb-tour-active.is-sb-tour-fill,
textarea.is-sb-tour-active.is-sb-tour-fill {
  outline: 4px solid #facc15 !important;
  outline-offset: 4px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow:
    0 0 0 8px rgba(250, 204, 21, 0.65),
    0 0 0 14px rgba(255, 255, 255, 0.9),
    0 0 36px rgba(250, 204, 21, 0.85) !important;
  filter: none !important;
  caret-color: #0f172a;
  -webkit-text-fill-color: #0f172a !important;
}

.sb-tour-bubble--dock {
  border-radius: 16px 16px 0 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Compact control dock — numbers only, no copy */
.sb-tour-bubble {
  position: fixed;
  z-index: 10060;
  max-width: min(280px, calc(100vw - 24px));
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.35);
  padding: 10px 12px;
  color: #f8fafc;
  pointer-events: auto;
}

.sb-tour-bubble--silent .sb-tour-bubble__eyebrow,
.sb-tour-bubble--silent .sb-tour-bubble__stage,
.sb-tour-bubble--silent .sb-tour-bubble__title,
.sb-tour-bubble--silent .sb-tour-bubble__body,
.sb-tour-bubble--silent .sb-tour-bubble__hint-action,
.sb-tour-bubble--silent .sb-tour-bubble__hint,
.sb-tour-bubble--silent .sb-tour-step__label {
  display: none !important;
}

.sb-tour-bubble__eyebrow,
.sb-tour-bubble__stage,
.sb-tour-bubble__title,
.sb-tour-bubble__body,
.sb-tour-bubble__hint-action {
  display: none;
}

.sb-tour-stepper {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 8px;
}

.sb-tour-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #64748b;
  background: transparent;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 800;
}

.sb-tour-step__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sb-tour-step.is-done {
  border-color: #38bdf8;
  background: #0ea5e9;
  color: #fff;
}

.sb-tour-step.is-current {
  border-color: #facc15;
  background: #facc15;
  color: #0f172a;
  transform: scale(1.12);
}

.sb-tour-step.is-todo {
  opacity: 0.7;
}

.sb-tour-bubble__live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.sb-tour-bubble__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.sb-tour-bubble__actions .btn {
  font-size: 0.85rem;
  min-height: 40px;
  border-radius: 10px;
}

.sb-tour-bubble__actions .sb-tour-btn-primary {
  flex: 1 1 auto;
  min-width: 7rem;
  background: #facc15 !important;
  border-color: #facc15 !important;
  color: #0f172a !important;
  font-weight: 800;
}

.sb-tour-bubble__actions .btn-outline-secondary,
.sb-tour-bubble__actions .btn-outline-danger {
  color: #e2e8f0;
  border-color: #64748b;
  background: transparent;
}

.sb-tour-finger {
  position: fixed;
  z-index: 10030;
  width: 44px;
  height: 44px;
  pointer-events: none;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.8));
}

.sb-tour-finger svg {
  width: 44px;
  height: 44px;
  display: block;
}

.sb-tour-finger.is-click {
  animation: none;
}

.sb-tour-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10100;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: auto;
}

.sb-tour-dialog {
  position: relative;
  z-index: 10101;
  max-width: 420px;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
  pointer-events: auto;
}

.sb-tour-dialog h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.sb-tour-dialog p {
  margin: 0 0 0.9rem;
  color: #475569;
}

@media (max-width: 767.98px) {
  .sb-tour-bubble {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    max-width: 100%;
    width: 100%;
    border-radius: 14px 14px 0 0;
    border-bottom: 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .sb-tour-bubble__actions .sb-tour-btn-primary {
    order: -1;
    width: 100%;
    flex: 1 1 100%;
  }
}
