.otp-modal {
position: fixed;
inset: 0;
display: none;
align-items: center;
justify-content: center;
padding: 20px;
background: rgba(15, 15, 15, 0.58);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
z-index: 99999;
}

.otp-box {
position: relative;
width: min(100%, 390px);
padding: 34px 32px 30px;
background: #ffffff;
border: 1px solid #eeeeee;
border-radius: 18px;
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
text-align: center;
animation: otpModalIn 0.22s ease-out;
}

@keyframes otpModalIn {
from {
opacity: 0;
transform: translateY(12px) scale(0.97);
}

to {
opacity: 1;
transform: translateY(0) scale(1);
}
}

.otp-close {
position: absolute;
top: 17px;
right: 19px;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
color: #777777;
font-size: 24px;
font-weight: 300;
line-height: 1;
cursor: pointer;
transition:
color 0.2s ease,
background 0.2s ease;
}

.otp-close:hover {
color: #111111;
background: #f5f5f5;
}

.otp-box h2 {
margin: 0 0 8px;
color: #111111;
font-size: 25px;
font-weight: 600;
letter-spacing: -0.4px;
}

.otp-box p {
margin: 0 0 24px;
color: #777777;
font-size: 13px;
line-height: 1.6;
}

.otp-error {
display: none;
margin: -6px 0 14px;
color: #d64545;
font-size: 12px;
line-height: 1.4;
}

.otp-inputs {
display: flex;
justify-content: center;
gap: 9px;
margin: 0 0 22px;
}

.otp-inputs input {
width: 46px;
height: 52px;
padding: 0;
border: 1px solid #dddddd;
border-radius: 9px;
outline: none;
background: #ffffff;
color: #111111;
text-align: center;
font-family: inherit;
font-size: 20px;
font-weight: 500;
caret-color: #111111;
transition:
border-color 0.2s ease,
box-shadow 0.2s ease,
background 0.2s ease;
}

.otp-inputs input:hover {
border-color: #bbbbbb;
}

.otp-inputs input:focus {
border-color: #111111;
box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.07);
}

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

.verify-btn {
width: 100%;
height: 46px;
padding: 0 18px;
border: 0;
border-radius: 8px;
background: #111111;
color: #ffffff;
font-family: inherit;
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition:
background 0.2s ease,
transform 0.15s ease,
opacity 0.2s ease;
}

.verify-btn:hover {
background: #292929;
}

.verify-btn:active {
transform: translateY(1px);
}

.verify-btn:disabled {
opacity: 0.55;
cursor: not-allowed;
}

.otp-footer {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 16px;
color: #888888;
font-size: 12px;
}

#timer {
color: #777777;
font-variant-numeric: tabular-nums;
}

#resendBtn {
padding: 0;
border: 0;
background: transparent;
color: #111111;
font-family: inherit;
font-size: 12px;
font-weight: 500;
cursor: pointer;
}

#resendBtn:hover:not(:disabled) {
text-decoration: underline;
}

#resendBtn:disabled {
color: #aaaaaa;
cursor: not-allowed;
}

#otpSuccess {
padding: 10px 0 4px;
}

.verified-badge {
width: 68px;
height: 68px;
margin: 18px auto 14px;
border-radius: 50%;
background: #000;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
position: relative;
box-shadow:
0 0 0 5px rgba(0, 0, 0, 0.08),
0 8px 22px rgba(0, 0, 0, 0.18);
animation: verifiedPop 0.45s cubic-bezier(.2, .8, .2, 1);
}

.verified-badge::after {
content: "";
position: absolute;
inset: -5px;
border-radius: 50%;
border: 2px solid rgba(0, 0, 0, 0.15);
animation: verifiedRing 0.7s ease-out;
}

.verified-badge-icon {
width: 38px;
height: 38px;
opacity: 0;
transform: scale(0.5);
animation: verifiedCheck 0.3s 0.2s ease forwards;
}

.verified-title {
margin: 0 0 5px;
font-size: 19px;
font-weight: 600;
color: #111;
}

.verified-text {
margin: 0;
font-size: 13px;
color: #777;
}

@keyframes verifiedPop {
0% {
transform: scale(0);
opacity: 0;
}

70% {
transform: scale(1.12);
}

100% {
transform: scale(1);
opacity: 1;
}
}

@keyframes verifiedCheck {
to {
opacity: 1;
transform: scale(1);
}
}

@keyframes verifiedRing {
0% {
transform: scale(0.7);
opacity: 0;
}

60% {
opacity: 1;
}

100% {
transform: scale(1.15);
opacity: 0;
}
}


@keyframes otpSuccessPop {
0% {
opacity: 0;
transform: scale(0.65);
}

70% {
transform: scale(1.08);
}

100% {
opacity: 1;
transform: scale(1);
}
}

@media (max-width: 480px) {
.otp-modal {
padding: 16px;
}

.otp-box {
padding: 30px 20px 24px;
border-radius: 16px;
}

.otp-box h2 {
font-size: 22px;
}

.otp-inputs {
gap: 7px;
}

.otp-inputs input {
width: 43px;
height: 49px;
font-size: 18px;
}
}

@media (max-width: 350px) {
.otp-box {
padding-left: 16px;
padding-right: 16px;
}

.otp-inputs {
gap: 5px;
}

.otp-inputs input {
width: 39px;
height: 46px;
}
}
