/* Tour interativo — overlay + spotlight + tooltip */

.tour-overlay {
  position: fixed; inset: 0; z-index: 99998;
  background: transparent;
  pointer-events: none;
  transition: opacity 200ms ease;
  opacity: 0;
}
.tour-overlay.tour-active { opacity: 1; }

/* Spotlight: anel luminoso ao redor do alvo, sem escurecer o resto da tela */
.tour-spotlight-frame {
  position: fixed;
  z-index: 99999;
  border: 3px solid var(--teal, #07A8B5);
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(7, 168, 181, 0.6), 0 0 0 2px rgba(7, 168, 181, 0.25);
  pointer-events: none;
  transition: all 320ms cubic-bezier(.4, 0, .2, 1);
}

.tour-tooltip {
  position: fixed;
  z-index: 100000;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(15, 22, 35, .25), 0 2px 8px rgba(15, 22, 35, .12);
  width: min(420px, calc(100vw - 32px));
  padding: 18px 20px 14px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--gray-900, #0F1623);
  animation: tourTooltipIn 280ms cubic-bezier(.2, .8, .2, 1);
  cursor: grab;
  user-select: none;
}
.tour-tooltip.tour-dragging { cursor: grabbing; transition: none; box-shadow: 0 18px 48px rgba(15, 22, 35, .35); }
.tour-tooltip button, .tour-tooltip input, .tour-tooltip select, .tour-tooltip label { cursor: pointer; user-select: auto; }
.tour-tooltip .tour-drag-hint {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  font-size: 14px; color: rgba(15, 22, 35, 0.25);
  letter-spacing: 2px; line-height: 1; pointer-events: none;
}
@keyframes tourTooltipIn {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.tour-tooltip-step {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal, #07A8B5);
  font-weight: 600;
  margin-bottom: 4px;
}
.tour-tooltip-title {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy, #14285C);
  margin: 0 0 8px;
  line-height: 1.25;
}
.tour-tooltip-body {
  margin: 0 0 14px;
  color: var(--gray-600, #5C6678);
}

.tour-tooltip-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 0 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(15, 22, 35, 0.06);
}
.tour-tooltip-controls + .tour-tooltip-actions { padding-top: 4px; }
.tour-tooltip-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tour-tooltip-actions .tour-spacer { flex: 1; }
.tour-btn {
  border: 0;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.tour-btn:hover { transform: translateY(-1px); }
.tour-btn-primary {
  background: var(--teal, #07A8B5);
  color: #fff;
}
.tour-btn-primary:hover { background: var(--teal-mid, #059AA6); }
.tour-btn-ghost {
  background: transparent;
  color: var(--gray-600, #5C6678);
}
.tour-btn-ghost:hover { background: rgba(15, 22, 35, .06); color: var(--gray-900, #0F1623); }
.tour-btn-outline {
  background: #fff;
  color: var(--navy, #14285C);
  border: 1px solid rgba(15, 22, 35, .12);
}
.tour-btn-outline:hover { border-color: var(--navy, #14285C); }

.tour-tooltip-close {
  position: absolute;
  top: 8px; right: 10px;
  background: none; border: 0;
  font-size: 18px; line-height: 1;
  cursor: pointer; color: #999;
  width: 26px; height: 26px;
  border-radius: 50%;
}
.tour-tooltip-close:hover { background: rgba(0,0,0,.06); color: var(--gray-900, #0F1623); }

/* Toggle de narração */
.tour-narrar-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--gray-600, #5C6678);
  cursor: pointer;
  user-select: none;
  margin-right: 4px;
}
.tour-narrar-toggle input { width: auto; margin: 0; accent-color: var(--teal, #07A8B5); }

/* Botão flutuante de iniciar tour */
.tour-fab {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 99990;
  background: var(--teal, #07A8B5);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(7, 168, 181, .35), 0 1px 4px rgba(15, 22, 35, .1);
  display: flex; align-items: center; gap: 8px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.tour-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(7, 168, 181, .45), 0 2px 6px rgba(15, 22, 35, .12);
}
.tour-fab.is-hidden { display: none; }

/* Modal de boas-vindas */
.tour-welcome-overlay {
  position: fixed; inset: 0; z-index: 99997;
  background: rgba(15, 22, 35, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: tourTooltipIn 220ms ease;
}
.tour-welcome-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 28px 28px 24px;
  text-align: center;
  box-shadow: 0 18px 48px rgba(15, 22, 35, .3);
}
.tour-welcome-modal h2 {
  font-family: 'Fraunces', serif;
  color: var(--navy, #14285C);
  margin: 6px 0 10px;
  font-size: 22px;
}
.tour-welcome-modal p { color: var(--gray-600, #5C6678); margin: 0 0 18px; }
.tour-welcome-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
