/* First-visit coach overlays */

.coach-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}
.coach-overlay.visible {
  pointer-events: auto;
  opacity: 1;
}
.coach-overlay.hidden { display: none; }

.coach-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 10, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: coachFadeIn .4s ease both;
}

.coach-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(124, 109, 240, .28);
  background: linear-gradient(160deg, rgba(28, 24, 48, .96), rgba(12, 12, 20, .98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  transform: translateY(24px);
  animation: coachSlideUp .45s cubic-bezier(.22, 1, .36, 1) .05s both;
}

@keyframes coachFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes coachSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: none; }
}

.coach-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.coach-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a78bfa;
}
.coach-close {
  border: none;
  background: rgba(255, 255, 255, .06);
  color: #8b8b98;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.coach-visual {
  min-height: 72px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.coach-visual svg { display: block; }

.coach-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #fafafa;
  letter-spacing: -.02em;
}
.coach-text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #a1a1b5;
}

.coach-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}
.coach-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  transition: width .3s ease, background .3s ease;
}
.coach-dot.active {
  width: 18px;
  border-radius: 4px;
  background: #7c6df0;
}

.coach-actions {
  display: flex;
  gap: 10px;
}
.coach-skip {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, .1);
  background: transparent;
  color: #8b8b98;
  font-size: 13px;
  font-weight: 700;
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
}
.coach-next {
  flex: 1.4;
  border: none;
  background: linear-gradient(135deg, #7c6df0, #6d28d9);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(124, 109, 240, .35);
}
