/* ClearLedger Onboarding Illustrations CSS */

.onboarding-illustration {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-md);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.onboarding-illustration svg {
  width: 44px;
  height: 44px;
}

/* Step-specific illustration colors */
.illustration-step-1 { background: linear-gradient(135deg, rgba(245, 200, 66, 0.08) 0%, rgba(245, 200, 66, 0.03) 100%); border-color: rgba(245, 200, 66, 0.2); }
.illustration-step-1 svg { color: var(--clr-accent); }

.illustration-step-2 { background: linear-gradient(135deg, rgba(96, 165, 250, 0.08) 0%, rgba(96, 165, 250, 0.03) 100%); border-color: rgba(96, 165, 250, 0.2); }
.illustration-step-2 svg { color: #60a5fa; }

.illustration-step-3 { background: linear-gradient(135deg, rgba(52, 211, 153, 0.08) 0%, rgba(52, 211, 153, 0.03) 100%); border-color: rgba(52, 211, 153, 0.2); }
.illustration-step-3 svg { color: var(--clr-success); }

.illustration-step-4 { background: linear-gradient(135deg, rgba(245, 200, 66, 0.12) 0%, rgba(52, 211, 153, 0.06) 100%); border-color: rgba(245, 200, 66, 0.25); }
.illustration-step-4 svg { color: var(--clr-accent); }

/* Animation for the checkmark on complete screen */
@keyframes checkDraw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

.illustration-step-4 svg path.stroke-animate {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: checkDraw 0.6s ease-out 0.2s forwards;
}

/* Larger hero illustration for complete screen */
.complete-hero {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 1.5rem;
}

.complete-hero .onboarding-illustration {
  width: 96px;
  height: 96px;
  margin-bottom: 1.25rem;
}

.complete-hero .onboarding-illustration svg {
  width: 48px;
  height: 48px;
}

/* Subtle background glow behind illustration */
.complete-hero .onboarding-illustration::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.complete-hero .onboarding-illustration svg {
  position: relative;
  z-index: 1;
}

/* Progress bar at top of card (alternative to dots) */
.progress-bar-wrap {
  display: flex;
  gap: 6px;
  margin-bottom: 2rem;
  justify-content: center;
}

.progress-segment {
  height: 4px;
  border-radius: 2px;
  background: var(--clr-border);
  flex: 1;
  max-width: 60px;
  transition: background 0.3s ease;
}

.progress-segment.done { background: var(--clr-success); }
.progress-segment.active { background: var(--clr-accent); }

/* Richer step labels */
.step-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.step-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-muted);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.step-badge.active { color: var(--clr-accent); border-color: rgba(245, 200, 66, 0.3); background: rgba(245, 200, 66, 0.08); }