.flow-steps {
    display: grid;
    flex: 1 1 500px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    width: auto;
    max-width: 620px;
    min-width: 0;
    margin: 0;
    padding: 5px;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(211, 224, 219, .9);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.step-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 6px 4px;
    color: #72827c;
    border-radius: 11px;
}

.step-item .num {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: #687871;
    background: #edf2f0;
    border: 1px solid #dae5e1;
    border-radius: 50%;
    font-size: .7rem;
    font-weight: 800;
}

.step-item .txt { overflow: hidden; font-size: .65rem; white-space: nowrap; text-overflow: ellipsis; }
.step-item.active { color: #fff; background: linear-gradient(135deg, #0a8468, #08634f); }
.step-item.active .num { color: var(--primary-dark); background: #fff; border-color: #fff; }
.step-item.done { color: var(--primary-dark); background: #edf8f4; }
.step-item.done .num { color: #fff; background: var(--primary); border-color: var(--primary); }
.step-item.done .num::before { content: "✓"; }
.step-item.done .num { font-size: 0; }
.step-item.done .num::before { font-size: .72rem; }

.otp-input {
    display: block;
    width: min(100%, 300px);
    height: 70px;
    margin: 22px auto 0;
    direction: ltr;
    padding: 10px 18px 10px 10px;
    color: var(--dark-color);
    background: #f8fbfa;
    border: 2px solid #b6c9c1;
    border-radius: 16px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: .7em;
    text-align: center;
    caret-color: var(--primary);
}

.otp-input:focus { border-color: var(--primary); }
.otp-input[aria-busy="true"] { opacity: .72; }
#otpForm .btn { display: flex; width: min(100%, 300px); margin-inline: auto; }

@media (max-width: 720px) {
    .flow-steps { grid-template-columns: repeat(5, 1fr); flex-basis: 220px; gap: 2px; padding: 3px; border-radius: 12px; }
    .step-item { padding: 4px 1px; border-radius: 9px; }
    .step-item .txt { display: none; }
    .step-item .num { width: 22px; height: 22px; }
}
