.coach-overlay {
  position: fixed;
  inset: 0;
  /* O escurecimento principal fica no spotlight (box-shadow),
     para o miolo destacado permanecer nitido, sem blur. */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 9998;
}

.coach-overlay--passive {
  pointer-events: none;
}

.coach-spotlight {
  position: fixed;
  border-radius: 16px;
  box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.78);
  outline: 2px solid rgba(168, 85, 247, 0.9);
  box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.78), 0 0 0 6px rgba(168, 85, 247, 0.25), 0 0 24px rgba(168, 85, 247, 0.4);
  z-index: 9999;
  pointer-events: none;
}

.coach-spotlight::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.35);
  animation: coachPulse 1.4s ease-in-out infinite;
}

.coach-tooltip {
  position: fixed;
  z-index: 10000;
  max-width: 340px;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

@media (max-width: 640px) {
  .coach-spotlight {
    border-radius: 14px;
  }

  .coach-tooltip {
    max-width: calc(100vw - 24px);
    width: calc(100vw - 24px);
    left: 12px !important;
    right: 12px !important;
  }

  .coach-tooltip .coach-actions {
    justify-content: flex-end;
  }
}

.coach-tooltip h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.coach-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.coach-tooltip p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.35;
}

.coach-tooltip .coach-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coach-tooltip .coach-cta {
  background: #6d28d9;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.coach-tooltip .coach-cta:hover {
  background: #5b21b6;
}

.coach-tooltip .coach-close {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}

.coach-tooltip .coach-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

@keyframes coachPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0.15); }
}

/* Mobile: highlight simples (sem overlay) */
.coach-mobile-highlight {
  border-radius: 16px;
  outline: 2px solid rgba(168, 85, 247, 0.9);
  box-shadow: 0 0 0 6px rgba(168, 85, 247, 0.18), 0 0 22px rgba(168, 85, 247, 0.35);
  animation: coachPulse 1.4s ease-in-out infinite;
  position: relative;
  z-index: 10001;
}

.coach-mobile-highlight::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
  pointer-events: none;
  z-index: -1;
}

/* Mobile card */
.coach-mobile-card {
  position: fixed;
  z-index: 10000;
  left: 12px;
  right: 12px;
  bottom: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.coach-mobile-card h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.coach-mobile-card p {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.35;
}

.coach-mobile-card .coach-mobile-close {
  border: 0;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 16px;
  line-height: 1;
  border-radius: 8px;
  padding: 4px 6px;
  cursor: pointer;
}
