/* LuxeHomes Interactive Intro Walkthrough Tutorial Styling */
.tutorial-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 14, 24, 0.40);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tutorial-backdrop.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.tutorial-spotlight {
  position: fixed;
  border-radius: 14px;
  pointer-events: none;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 0 0 9999px rgba(28, 14, 24, 0.55), 0 0 0 3px #9a496d, 0 12px 32px rgba(154, 73, 109, 0.4);
  transition: top 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              left 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              visibility 0.25s ease;
  animation: tutorialRingPulse 2.4s ease-in-out infinite;
}

.tutorial-spotlight.active {
  opacity: 1;
  visibility: visible;
}

@keyframes tutorialRingPulse {
  0%, 100% {
    box-shadow: 0 0 0 9999px rgba(28, 14, 24, 0.55), 0 0 0 3px #9a496d, 0 8px 24px rgba(154, 73, 109, 0.35);
  }
  50% {
    box-shadow: 0 0 0 9999px rgba(28, 14, 24, 0.55), 0 0 0 4.5px #c77b9c, 0 14px 38px rgba(154, 73, 109, 0.5);
  }
}

.tutorial-card {
  position: fixed;
  z-index: 1002;
  width: 440px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(35, 18, 28, 0.28);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transition: top 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              left 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tutorial-card.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.tutorial-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tutorial-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--pink);
  color: var(--primary-dark);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.5px;
  border-radius: 20px;
  text-transform: uppercase;
}

.tutorial-step-badge span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.tutorial-close-btn {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: 0.15s;
}

.tutorial-close-btn:hover {
  background: #fdf2f6;
  color: var(--primary);
}

.tutorial-body h3 {
  font: normal 20px Georgia, serif;
  color: var(--ink);
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}

.tutorial-body p {
  font-size: 12.5px;
  line-height: 1.75;
  color: #55424e;
  margin: 0 0 10px;
}

.tutorial-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fdf5f8;
  border: 1px solid #f4dbe5;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--primary-dark);
}

.tutorial-callout strong {
  color: var(--primary);
}

.tutorial-progress-bar {
  display: flex;
  gap: 5px;
  align-items: center;
  margin: 4px 0 6px;
}

.tutorial-progress-dot {
  flex: 1;
  height: 4px;
  background: #f0e6ec;
  border-radius: 4px;
  transition: background 0.25s ease;
}

.tutorial-progress-dot.active {
  background: var(--primary);
}

.tutorial-progress-dot.passed {
  background: #d4a5b9;
}

.tutorial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.tutorial-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.tutorial-card .btn {
  font-size: 11px;
  padding: 8px 14px;
  min-height: 35px;
}

.tutorial-settings-card {
  border-left: 4px solid var(--primary);
}

@media (max-width: 640px) {
  .tutorial-card {
    position: fixed !important;
    top: auto !important;
    bottom: 16px !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    max-width: none !important;
    padding: 18px 18px 16px;
    max-height: 52vh;
    overflow-y: auto;
  }
  .tutorial-body h3 {
    font-size: 18px;
  }
  .tutorial-body p {
    font-size: 12px;
  }
}
