.app-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.5s, opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-popup.show {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s linear 0s, opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Backdrop */
.app-popup-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-popup.show .app-popup-backdrop {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
}

/* Popup Content */
.app-popup-content {
    position: relative;
    max-width: 900px;
    margin: 8% auto;
    background: #fff;
    padding: 32px;
    z-index: 10000;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0);
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-popup.show .app-popup-content {
    transform: scale(1) translateY(0);
    opacity: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f3f5;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #495057;
    line-height: 1;
    z-index: 10;
    opacity: 0;
    transform: rotate(-90deg) scale(0.8);
}

.app-popup.show .close-btn {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    transition-delay: 0.3s;
}

.close-btn:hover {
    background: #e9ecef;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* App Image Wrapper */
.app-image-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    display: inline-block;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-popup.show .app-image-wrapper {
    transform: scale(1);
    opacity: 1;
    transition-delay: 0.2s;
}

.app-logo {
    max-height: 200px;
    width: 80%;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* Badge Animation */
.badge-animate {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-popup.show .badge-animate {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Title Animation */
.popup-title {
    color: #212529;
    font-size: 1.75rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-popup.show .popup-title {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.4s;
}

/* Text Animation */
.popup-text {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-text:nth-of-type(1) {
    transition-delay: 0.45s;
}

.popup-text:nth-of-type(2) {
    transition-delay: 0.5s;
}

.app-popup.show .popup-text {
    opacity: 1;
    transform: translateX(0);
}

/* Buttons Animation */
.popup-buttons {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-popup.show .popup-buttons {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.55s;
}

/* Store Buttons */
.store-button {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    overflow: hidden;
}

.store-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.store-button:active {
    transform: translateY(-2px) scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
    .app-popup-content {
        margin: 15% 16px;
        padding: 24px;
    }
    
    .popup-title {
        font-size: 1.5rem;
    }
    
    .app-image-wrapper {
        padding: 20px;
    }
    
    .app-logo {
        max-height: 150px;
    }
}

@media (max-width: 576px) {
    .close-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .app-popup-content {
        border-radius: 16px !important;
    }
}

/* Smooth scrollbar if needed */
body.popup-open {
    overflow: hidden;
}

.app-popup {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    visibility:hidden;
    opacity:0;
    z-index:9999;
    transition: visibility 0s linear 0.5s, opacity 0.5s ease;
}
.app-popup.show {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}
body.popup-open { overflow: hidden; }