/* ============================================
   Stepper — Progress Bar for QR Creation Flow
   ============================================ */
.stepper {
    background: white;
    border-bottom: 1px solid var(--slate-100);
    padding: var(--space-5) 0;
    position: sticky;
    top: 72px;
    z-index: 90;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.stepper-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.stepper-container::-webkit-scrollbar { display: none; }

.stepper-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: max-content;
    padding: 0 var(--space-4);
}

.stepper-step {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    position: relative;
}

/* Connector line */
.stepper-line {
    width: 60px;
    height: 2px;
    background: var(--slate-200);
    margin: 0 var(--space-3);
    border-radius: 1px;
    transition: background var(--duration-base) var(--ease-out);
}
.stepper-line.filled {
    background: var(--blue-600);
}

/* Dot / number circle */
.stepper-dot {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-sm);
    transition: all var(--duration-base) var(--ease-out);
}

/* States */
.stepper-step.completed .stepper-dot {
    background: var(--blue-600);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.stepper-step.active .stepper-dot {
    background: var(--blue-600);
    color: white;
    box-shadow: 0 0 0 4px var(--blue-100), 0 2px 8px rgba(37, 99, 235, 0.25);
    animation: stepperPulse 2s ease infinite;
}

.stepper-step.upcoming .stepper-dot {
    background: var(--slate-100);
    color: var(--slate-400);
}

@keyframes stepperPulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--blue-100), 0 2px 8px rgba(37, 99, 235, 0.25); }
    50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.08), 0 2px 8px rgba(37, 99, 235, 0.25); }
}

/* Label */
.stepper-label {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    white-space: nowrap;
    transition: color var(--duration-base) var(--ease-out);
}

.stepper-step.completed .stepper-label { color: var(--blue-600); }
.stepper-step.active .stepper-label { color: var(--slate-900); font-weight: 600; }
.stepper-step.upcoming .stepper-label { color: var(--slate-400); }

@media (max-width: 700px) {
    .stepper-line { width: 32px; margin: 0 var(--space-2); }
    .stepper-label { display: none; }
    .stepper-step.active .stepper-label { display: block; }
}
