/* App Store Popup */
.asp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: asp-fade-in 0.3s ease;
}

.asp-overlay.asp-visible {
    display: flex;
}

@keyframes asp-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.asp-modal {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: asp-scale-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes asp-scale-in {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.asp-modal #asp-image {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* Desktop: slika bez kursora ruke (nema linka) */
.asp-modal.asp-desktop #asp-link {
    pointer-events: none;
    cursor: default;
}

.asp-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 1;
    transition: background 0.2s, transform 0.2s;
}

.asp-close:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}
