.email-verify-input-wrap {
    position: relative;
}

.email-verify-input-wrap .form-control {
    padding-right: 48px !important;
}

.email-verify-trigger {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    border-radius: 999px;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.email-verify-trigger i {
    display: block;
    line-height: 1;
}

.email-verify-trigger:hover {
    border-color: #3b82f6;
    color: #1d4ed8;
    background: #eff6ff;
}

.email-verify-trigger.is-disabled {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #64748b;
}

.email-verify-trigger.is-ready,
.email-verify-trigger.is-code-sent {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.email-verify-trigger.is-verified {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #166534;
}

.email-otp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10080;
    padding: 16px;
}

.email-otp-modal-overlay.active {
    display: flex;
}

.email-otp-modal {
    width: min(560px, 100%);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.email-otp-modal__header {
    padding: 20px 24px 12px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.email-otp-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: 0;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    color: #334155;
}

.email-otp-modal__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.email-otp-modal__subtitle {
    margin: 8px 0 0;
    color: #475569;
    font-size: 14px;
}

.email-otp-modal__body {
    padding: 20px 24px 24px;
    display: grid;
    gap: 10px;
}

.email-otp-modal__label {
    font-size: 13px;
    color: #334155;
    font-weight: 600;
    margin: 0;
}

.email-otp-modal__preview,
.email-otp-modal__input {
    height: 44px;
}

.email-otp-modal__actions {
    margin-top: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.email-otp-modal__btn {
    min-height: 42px;
    white-space: normal;
}

.email-otp-modal__actions .btn-default.email-otp-modal__btn:disabled {
    background: transparent;
    border-color: transparent;
    color: #64748b;
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
}

/* Resend cooldown: show clear disabled chip with live countdown (not plain link text) */
.email-otp-modal__actions .btn-default.email-otp-modal__btn.email-otp-modal__btn--cooldown:disabled {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    cursor: not-allowed;
    opacity: 1;
}

.email-otp-modal__status {
    display: none;
    margin-top: 4px;
    font-size: 13px;
}

.email-otp-modal__status.text-success,
.email-otp-modal__status.text-danger,
.email-otp-modal__status.text-muted {
    display: block;
}

@media (max-width: 767px) {
    .email-verify-input-wrap .form-control {
        padding-right: 48px !important;
    }

    .email-verify-trigger {
        width: 30px;
        height: 30px;
        font-size: 14px;
        padding: 0;
    }

    .email-otp-modal__actions {
        grid-template-columns: 1fr;
    }
}
