/* Floating Icon - iPhone Style Snap-to-Edge */
#apk-float {
    position: fixed;
    bottom: 15%;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 13px;
    z-index: 999999;
    cursor: grab;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    user-select: none;
    touch-action: none;
}

#apk-float:active { cursor: grabbing; transform: scale(0.9); }

/* Glowing Effect */
#apk-float::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(150, 201, 61, 0.6);
    animation: apk-pulse 2s infinite;
}

@keyframes apk-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Glassmorphism Popup */
#apk-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000000;
    justify-content: center;
    align-items: center;
}

.apk-box {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    width: 85%;
    max-width: 360px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.apk-box h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-family: sans-serif;
}

.apk-box p {
    color: #666;
    font-size: 15px;
    margin: 15px 0 25px 0;
    line-height: 1.5;
}

.apk-btn-download {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: white !important;
    padding: 14px 40px;
    text-decoration: none;
    border-radius: 50px;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(0,176,155,0.3);
    transition: 0.3s;
}

.apk-btn-download:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(0,176,155,0.4); }

.apk-x-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #ccc;
    transition: 0.2s;
}
.apk-x-close:hover { color: #333; }