/* Onboarding overlay — premium frosted glass */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  animation: fadeInBackdrop 0.3s ease;
}

.onboarding-card {
  width: 90%;
  max-width: 400px;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: onboardingCardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes onboardingCardIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.onboarding-step-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.onboarding-step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.onboarding-step-dot.active {
  background: #007AFF;
  transform: scale(1.4);
  box-shadow: 0 0 12px 3px rgba(0, 122, 255, 0.5);
}

.onboarding-step-dot.done {
  background: #30d158;
}

.onboarding-step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.onboarding-step-icon {
  font-size: 52px;
  margin-bottom: 20px;
}

.onboarding-step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.onboarding-step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.onboarding-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.onboarding-btn {
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.onboarding-btn:active { transform: scale(0.96); }

.onboarding-btn-skip {
  background: transparent;
  color: var(--text-tertiary);
  margin-right: auto;
}

.onboarding-btn-skip:hover {
  color: var(--text-secondary);
}

.onboarding-btn-prev {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.onboarding-btn-prev:hover {
  background: rgba(255, 255, 255, 0.12);
}

.onboarding-btn-next {
  background: linear-gradient(180deg, #5bb8ff 0%, #0055b3 100%);
  color: #fff;
  margin-left: auto;
  box-shadow: 0 2px 10px rgba(0, 85, 179, 0.4);
}

.onboarding-btn-next:hover {
  box-shadow: 0 4px 18px rgba(0, 85, 179, 0.55);
}

/* Light theme */
[data-theme="light"] .onboarding-overlay {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

[data-theme="light"] .onboarding-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .onboarding-step-dot {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .onboarding-step-dot.active {
  background: #007AFF;
  box-shadow: 0 0 8px rgba(0, 122, 255, 0.25);
}

[data-theme="light"] .onboarding-step-dot.done {
  background: #34c759;
}

[data-theme="light"] .onboarding-step-title {
  color: #1d1d1f;
}

[data-theme="light"] .onboarding-step-desc {
  color: #86868b;
}

[data-theme="light"] .onboarding-btn-skip {
  color: #aeaeb2;
}

[data-theme="light"] .onboarding-btn-skip:hover {
  color: #86868b;
}

[data-theme="light"] .onboarding-btn-prev {
  background: rgba(0, 0, 0, 0.04);
  color: #86868b;
}

[data-theme="light"] .onboarding-btn-prev:hover {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .onboarding-btn-next {
  background: linear-gradient(180deg, #5bb8ff 0%, #0055b3 100%) !important;
  box-shadow: 0 2px 12px rgba(0, 85, 179, 0.35) !important;
}

[data-theme="light"] .onboarding-btn-next:hover {
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}
