.otp-inputs-wrapper {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
    direction: ltr;
}

.otp-input {
    width: 58px;
    height: 58px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 14px;
    background: #fff;
    color: #000;
    outline: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

.otp-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 2px rgba(59, 130, 246, 0.2);
}

.otp-input.typing {
    border-color: #3b82f6;
    box-shadow: 0 0 2px rgba(59, 130, 246, 0.15);
}

.otp-input.success {
    border-color: #22c55e;
    color: #000;
    animation: pop 0.3s ease forwards;
}

.otp-input.error {
    border-color: #ef4444;
}

.otp-input.shake {
    animation: luxuryShake 0.45s cubic-bezier(.36,.07,.19,.97);
}

.otp-input.clear {
    animation: bounceClear 0.45s ease;
}

.resend-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.edit-number-link,
.resend-link {
    font-size: 14px;
    color: #1D9D90;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
}

.edit-number-link:hover,
.resend-link:hover {
    color: #178374;
    text-decoration: underline;
}

.timer-text {
    font-size: 14px;
    color: #666;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 6px;
}

#submitBtn:disabled {
    background-color: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

#submitBtn:not(:disabled):hover {
    background-color: #178374;
    transform: translateY(-1px);
}

/* Animations */
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes luxuryShake {
    0%   { transform: translateX(0); }
    15%  { transform: translateX(-7px); }
    30%  { transform: translateX(7px); }
    45%  { transform: translateX(-5px); }
    60%  { transform: translateX(5px); }
    75%  { transform: translateX(-3px); }
    90%  { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

@keyframes bounceClear {
    0% { transform: translateX(0) scale(1); }
    30% { transform: translateX(-6px) scale(0.95); }
    50% { transform: translateX(6px) scale(1.05); }
    70% { transform: translateX(-3px) scale(0.98); }
    100% { transform: translateX(0) scale(1); }
}

/* Responsive Styles */
@media (max-width: 992px) and (min-width: 769px) {
    .otp-input { width: 50px; height: 50px; font-size: 20px; }
    .otp-inputs-wrapper { gap: 10px; }
    .resend-wrapper { margin-top: 15px; }
    .edit-number-link, .resend-link, .timer-text { font-size: 13px; }
}

@media (max-width: 768px) {
    .otp-input { width: 48px; height: 48px; font-size: 18px; }
    .otp-inputs-wrapper { gap: 8px; }
    .resend-wrapper { margin-top: 12px; }
    .edit-number-link, .resend-link, .timer-text { font-size: 12px; }
}

@media (max-width: 480px) {
    .otp-input { width: 45px; height: 45px; font-size: 16px; }
    .otp-inputs-wrapper { gap: 6px; }
    .resend-wrapper { flex-direction: column; gap: 10px; align-items: flex-start; }
}
