.error { color: #dc2626; font-size: 12px; }

.iti { width: 100%; }

.spinner {
    color: #fff;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 16px;

    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    /* center */
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.is-open {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 420px;
    position: relative;
    text-align: center;

    padding: 22px 20px 18px;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.25);

    transform: translateY(8px) scale(0.98);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
}

.modal-overlay.is-open .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 10px;

    border-radius: 999px;
    display: grid;
    place-items: center;

    color: #16a34a;
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(22, 163, 74, 0.22);
}

.modal-content h2 {
    margin: 8px 0 6px;
    font-size: 18px;
    line-height: 1.25;
    color: #0f172a;
}

.modal-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 36px;
    height: 36px;
    border-radius: 10px;

    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;

    font-size: 20px;
    line-height: 1;
    color: #475569;

    display: grid;
    place-items: center;

    transition: transform 120ms ease, background 120ms ease;
}

.close-btn:hover {
    background: rgba(241, 245, 249, 0.95);
    transform: scale(1.03);
}

.modal-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.btn-primary {
    border: 0;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 12px;

    color: #fff;
    background: #4f46e5;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.25);

    font-size: 14px;
    font-weight: 600;

    transition: transform 120ms ease, filter 120ms ease;
}

.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn-primary:active { transform: translateY(0); }

@media (max-width: 420px) {
    .modal-content { padding: 20px 16px 16px; border-radius: 14px; }
    .modal-content h2 { font-size: 17px; }
}
