/* Onboarding Coach Marks */

/* Welcome overlay */
.onboarding-welcome {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.onboarding-welcome-card {
  background: #1a1f2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  max-width: 440px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.onboarding-welcome-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.onboarding-welcome-subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 32px;
  line-height: 1.5;
}

.onboarding-welcome-btn {
  background: #4a8eff;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.onboarding-welcome-btn:hover {
  background: #3a7aef;
}

.onboarding-skip {
  display: block;
  margin-top: 16px;
  background: none;
  border: none;
  color: #475569;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
}

.onboarding-skip:hover {
  color: #94a3b8;
}

/* Coach mark tooltip */
.coach-mark {
  position: fixed;
  z-index: 10001;
  background: #1e293b;
  border: 1px solid rgba(74, 142, 255, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 320px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: coach-mark-in 0.25s ease-out;
}

@keyframes coach-mark-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.coach-mark-text {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 12px;
}

.coach-mark-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coach-mark-progress {
  display: flex;
  gap: 6px;
}

.coach-mark-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #334155;
}

.coach-mark-dot.active {
  background: #4a8eff;
}

.coach-mark-next {
  background: #4a8eff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.coach-mark-skip {
  background: none;
  border: none;
  color: #475569;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}

/* Highlight pulse on target element */
.coach-highlight {
  position: relative;
  z-index: 10000;
  display: inline-block;
}

.coach-highlight::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(74, 142, 255, 0.4);
  border-radius: 10px;
  animation: coach-pulse 1.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes coach-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Celebration after scan */
.onboarding-celebration {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10002;
  background: #1a1f2e;
  border: 1px solid rgba(74, 142, 255, 0.3);
  border-radius: 16px;
  padding: 32px 40px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  animation: coach-mark-in 0.3s ease-out;
}

.celebration-count {
  font-size: 2rem;
  font-weight: 800;
  color: #2dd4bf;
}

.celebration-value {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-top: 4px;
}

.celebration-text {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .onboarding-welcome-card {
    padding: 32px 24px;
  }
  .coach-mark {
    max-width: calc(100vw - 32px);
  }
}
