/* Tutorial interativo do portal */
#em-tour-root {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
}

#em-tour-root[hidden] {
  display: none !important;
}

.em-tour-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 40, 0.55);
  pointer-events: auto;
}

.em-tour-spotlight {
  position: fixed;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(10, 24, 40, 0.55);
  border: 2px solid #8ec0ff;
  pointer-events: none;
  z-index: 12001;
  transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.em-tour-card {
  position: fixed;
  /* Sempre acima dos cards destacados e da Mindy elevada */
  z-index: 14000;
  pointer-events: auto;
  width: min(360px, calc(100vw - 24px));
  background: #fff;
  color: #152033;
  border-radius: 16px;
  padding: 1rem 1.05rem 0.95rem;
  box-shadow: 0 16px 40px rgba(8, 24, 48, 0.28);
  border: 1px solid #d7e4f3;
}

.em-tour-card.is-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 28px));
}

.em-tour-progress {
  font: 650 0.72rem/1 "DM Sans", system-ui, sans-serif;
  color: #5b6b82;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.em-tour-title {
  margin: 0 0 0.45rem;
  font: 780 1.15rem/1.25 Manrope, "DM Sans", system-ui, sans-serif;
  color: #0e2438;
}

.em-tour-body {
  margin: 0 0 0.95rem;
  font: 500 0.92rem/1.5 "DM Sans", system-ui, sans-serif;
  color: #2c3a4f;
}

.em-tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.em-tour-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font: 700 0.82rem/1 "DM Sans", system-ui, sans-serif;
  cursor: pointer;
}

.em-tour-btn.primary {
  background: #1d5bb8;
  color: #fff;
}

.em-tour-btn.ghost {
  background: #eef3f9;
  color: #2c4a73;
}

.em-tour-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.em-tour-active {
  overflow: hidden;
}

.em-tour-start-btn {
  margin-top: 0.75rem;
}

/* Marcador do alvo — NÃO elevar z-index genérico (senão a explicação fica atrás dos cards) */
.em-tour-target-lift {
  pointer-events: none;
}

/* Mindy sobe acima do overlay (12000), mas abaixo do card da explicação (14000) */
#mindy-root.em-tour-mindy-lift {
  position: relative;
  z-index: 13000 !important;
}

#mindy-fab.em-tour-target-lift {
  position: fixed !important;
  right: 1.1rem !important;
  bottom: 1.1rem !important;
  opacity: 1 !important;
  display: flex !important;
  background: #0e2438 !important;
  box-shadow: 0 0 0 5px rgba(142, 192, 255, 0.98), 0 14px 32px rgba(14, 36, 56, 0.4) !important;
  animation: emTourFabPulse 1.15s ease-in-out infinite;
}

#mindy-fab.em-tour-fab-show-label .mindy-fab-label {
  opacity: 1 !important;
  transform: translateX(0) !important;
  display: block !important;
}

@keyframes emTourFabPulse {
  0%, 100% { transform: scale(1.06); }
  50% { transform: scale(1.16); }
}
