/* ── Engagement popup (subtle bottom-right CTA) ── */
.icity-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.25rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.icity-popup.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.icity-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 23, 54, 0.18);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.icity-popup.is-visible .icity-popup__backdrop {
    opacity: 1;
}

.icity-popup__card {
    position: relative;
    z-index: 1;
    width: min(100%, 22rem);
    padding: 1.5rem 1.5rem 1.35rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid rgba(0, 23, 54, 0.08);
    box-shadow: 0 20px 50px rgba(0, 23, 54, 0.18);
    transform: translateY(1.25rem) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.icity-popup.is-visible .icity-popup__card {
    transform: translateY(0) scale(1);
}

.icity-popup__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.icity-popup__close:hover {
    background: #f1f5f9;
    color: #001736;
}

.icity-popup__title {
    margin: 0 2rem 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
    color: #001736;
}

.icity-popup__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #64748b;
}

.icity-popup__actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 1.25rem;
}

.icity-popup__btn-primary,
.icity-popup__btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.icity-popup__btn-primary {
    border: none;
    background: #001736;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 23, 54, 0.2);
}

.icity-popup__btn-primary:hover {
    background: #002b5b;
    transform: translateY(-1px);
}

.icity-popup__btn-secondary {
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
}

.icity-popup__btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

@media (max-width: 480px) {
    .icity-popup {
        align-items: flex-end;
        justify-content: center;
        padding: 1rem;
    }

    .icity-popup__card {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .icity-popup,
    .icity-popup__backdrop,
    .icity-popup__card {
        transition: none;
    }
}
