/* ── Onboarding Tutorial Overlay ──────────────────────────────── */
.tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

.tutorial-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 10000;
  pointer-events: auto;
  transition: opacity .3s ease;
}

.tutorial-highlight {
  position: absolute;
  z-index: 10001;
  border-radius: var(--radius-sm, 8px);
  box-shadow: 0 0 0 4px var(--brand, #f5a623), 0 0 24px rgba(245, 166, 35, .35);
  pointer-events: none;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
}

.tutorial-tooltip {
  position: absolute;
  z-index: 10002;
  background: var(--bg-2, #09112a);
  border: 1px solid var(--border, #1a2444);
  border-radius: var(--radius, 12px);
  padding: 20px 24px;
  max-width: 360px;
  min-width: 260px;
  color: var(--text, #e8eeff);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  pointer-events: auto;
  transition: opacity .25s ease, transform .3s cubic-bezier(.4, 0, .2, 1);
  opacity: 0;
  transform: translateY(8px);
}

.tutorial-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.tutorial-tooltip-arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--bg-2, #09112a);
  border: 1px solid var(--border, #1a2444);
  transform: rotate(45deg);
}

.tutorial-tooltip-arrow.top {
  top: -7px;
  left: 24px;
  border-right: none;
  border-bottom: none;
}

.tutorial-tooltip-arrow.bottom {
  bottom: -7px;
  left: 24px;
  border-left: none;
  border-top: none;
}

.tutorial-tooltip-arrow.left {
  left: -7px;
  top: 20px;
  border-top: none;
  border-right: none;
}

.tutorial-tooltip-arrow.right {
  right: -7px;
  top: 20px;
  border-bottom: none;
  border-left: none;
}

.tutorial-step-count {
  font-size: .75rem;
  color: var(--text-muted, #6b88c0);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tutorial-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #e8eeff);
  margin-bottom: 8px;
  line-height: 1.3;
}

.tutorial-desc {
  font-size: .875rem;
  color: var(--text-muted, #6b88c0);
  line-height: 1.55;
  margin-bottom: 16px;
}

.tutorial-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.tutorial-btn {
  padding: 7px 16px;
  border-radius: var(--radius-xs, 4px);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .15s, opacity .15s;
}

.tutorial-btn-skip {
  background: transparent;
  color: var(--text-muted, #6b88c0);
}

.tutorial-btn-skip:hover {
  color: var(--text, #e8eeff);
}

.tutorial-btn-back {
  background: rgba(255, 255, 255, .08);
  color: var(--text, #e8eeff);
}

.tutorial-btn-back:hover {
  background: rgba(255, 255, 255, .14);
}

.tutorial-btn-next {
  background: var(--brand, #f5a623);
  color: #000;
}

.tutorial-btn-next:hover {
  opacity: .88;
}

/* ── Progress dots ───────────────────────────────────────────── */
.tutorial-dots {
  display: flex;
  gap: 6px;
  margin-right: auto;
}

.tutorial-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border, #1a2444);
  transition: background .2s;
}

.tutorial-dot.active {
  background: var(--brand, #f5a623);
}

.tutorial-dot.done {
  background: var(--ok, #10b981);
}

/* ── Welcome modal (step 0) ──────────────────────────────────── */
.tutorial-welcome {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.tutorial-welcome-card {
  background: var(--bg-2, #09112a);
  border: 1px solid var(--border, #1a2444);
  border-radius: var(--radius-lg, 16px);
  padding: 36px 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

.tutorial-welcome-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.tutorial-welcome-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text, #e8eeff);
  margin-bottom: 10px;
}

.tutorial-welcome-card p {
  font-size: .9rem;
  color: var(--text-muted, #6b88c0);
  line-height: 1.55;
  margin-bottom: 24px;
}

.tutorial-welcome-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
