.sr-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.sr-popup {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

.sr-popup h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.sr-popup p {
    margin-bottom: 20px;
    font-size: 15px;
    color: #333;
}

.sr-popup button {
    padding: 8px 16px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.sr-verify-inline-entry {
    text-align: center;
}

.sr-verify-open-modal {
    font-size: 1em;
    color: #218838;
    text-decoration: underline;
}

.sr-verify-modal-open {
    overflow: hidden;
}

.sr-verify-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.sr-verify-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sr-verify-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.sr-verify-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 480px);
    margin: 0;
    padding: 44px 42px 36px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
    text-align: center;
}

.sr-verify-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(108, 117, 125, 0.12);
    color: #5a6268;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.sr-verify-modal__icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4f4dd 0%, #a7e6b7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(40, 167, 69, 0.14);
}

.sr-verify-modal__icon svg {
    width: 52px;
    height: 52px;
    stroke: #28a745;
}

.sr-verify-modal__title {
    margin: 0 0 10px;
    color: #28a745;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.sr-verify-modal__subtitle {
    margin: 0 0 24px;
    color: #52606d;
    font-size: 1.05rem;
    line-height: 1.55;
}

.sr-verify-modal__alert {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.98rem;
}

.sr-verify-modal__alert.is-success {
    background: #edf9f0;
    color: #166534;
    border: 1px solid #b7e4c7;
}

.sr-verify-modal__alert.is-error {
    background: #fff1f1;
    color: #8a1f1c;
    border: 1px solid #f1b6b4;
}

.sr-verify-modal__field {
    margin-bottom: 18px;
}

.sr-verify-modal__input {
    width: 100%;
    min-height: 60px;
    padding: 16px 20px;
    border: 2px solid #e6ebf1;
    border-radius: 18px;
    background: #f8fafc;
    text-align: center;
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

.sr-verify-modal__input:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.22rem rgba(40, 167, 69, 0.14);
    background: #fff;
    outline: none;
}

.sr-verify-modal__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sr-verify-modal__submit,
.sr-verify-modal__secondary {
    min-height: 52px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.sr-verify-modal__submit {
    background: linear-gradient(90deg, #28a745 0%, #218838 100%);
    box-shadow: 0 10px 24px rgba(40, 167, 69, 0.22);
    color: #fff;
}

.sr-verify-modal__secondary {
    background: linear-gradient(90deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 8px 22px rgba(108, 117, 125, 0.22);
    color: #fff;
}

.sr-verify-modal__submit[disabled] {
    opacity: 0.75;
    cursor: wait;
}

@media (max-width: 767px) {
    .sr-verify-modal__dialog {
        width: calc(100vw - 24px);
        margin-top: 24px;
        padding: 34px 18px 24px;
        border-radius: 22px;
    }

    .sr-verify-modal__title {
        font-size: 1.6rem;
    }

    .sr-verify-modal__submit,
    .sr-verify-modal__secondary {
        width: 100%;
    }
}

/* ── Checkmail page ──────────────────────────────────────── */

.sr-checkmail-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 20px 64px;
    min-height: 60vh;
}

.sr-checkmail-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.10);
    padding: 52px 48px 44px;
    text-align: center;
}

.sr-checkmail-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4f4dd 0%, #a7e6b7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.14);
}

.sr-checkmail-icon svg {
    width: 44px;
    height: 44px;
    stroke: #28a745;
}

.sr-checkmail-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}

.sr-checkmail-text {
    font-size: 1rem;
    color: #374151;
    line-height: 1.6;
    margin: 0 0 8px;
}

.sr-checkmail-hint {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0 0 36px;
}

.sr-checkmail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.sr-checkmail-btn-resend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 32px;
    background: linear-gradient(90deg, #28a745 0%, #218838 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(40, 167, 69, 0.25);
    transition: box-shadow 0.2s, transform 0.15s;
    width: 100%;
    max-width: 320px;
}

.sr-checkmail-btn-resend:hover {
    box-shadow: 0 12px 28px rgba(40, 167, 69, 0.35);
    transform: translateY(-1px);
}

.sr-checkmail-btn-secondary {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.sr-checkmail-btn-secondary:hover {
    color: #111;
    text-decoration: underline;
}

@media (max-width: 560px) {
    .sr-checkmail-card {
        padding: 36px 24px 32px;
        border-radius: 16px;
    }

    .sr-checkmail-title {
        font-size: 1.35rem;
    }
}

/* ── Verified page ───────────────────────────────────────── */

.sr-verified-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #28a745;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

/* ── Error page ──────────────────────────────────────────── */

.sr-checkmail-icon--error {
    background: linear-gradient(135deg, #ffdde1 0%, #f4a1a9 100%);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.14);
}

.sr-checkmail-icon--error svg {
    stroke: #dc3545;
}

.sr-error-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #dc3545;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}
