/* APP DOWNLOAD POPUP STYLES */
.app-download-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 111, 84, 0.95);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    align-items: start;
    justify-content: center;
    animation: fadeIn 0.4s ease;
    padding: 20px;
    box-sizing: border-box;
}

.app-download-overlay.show {
    display: flex;
}

.app-download-popup {
    background: linear-gradient(135deg, #1a4a3a 0%, #0d1016 50%, #1a2332 100%);
    border: 3px solid #ffd700;
    border-radius: 25px;
    padding: 45px 40px;
    max-width: 580px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: popInScale 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.content-popup {
    margin-bottom: 15px;
    padding-right: 15px;
}

.close-app-popup {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #ffd700;
    color: #ffd700;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-app-popup:hover {
    background: #ffd700;
    color: #1a4a3a;
    transform: rotate(90deg) scale(1.1);
}

.app-popup-content {
    color: white;
    padding-top: 70px;
}

.app-popup-icon {
    font-size: 80px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    animation: phoneFloat 3s ease-in-out infinite;
}

.app-download-popup h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-family: MontserratBold, sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #ffd700, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.app-download-popup .subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    font-family: MontserratMedium, sans-serif;
    color: #ffd700;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.app-download-popup p {
    font-size: 16px;
    margin-bottom: 35px;
    font-family: MontserratRegular, sans-serif;
    color: #e0e0e0;
    line-height: 1.6;
}

.app-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 40px;
    text-align: left;
}

.app-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: MontserratMedium, sans-serif;
    color: #fff;
    font-size: 15px;
    padding: 15px 18px;
    background: linear-gradient(135deg, rgba(34, 111, 84, 0.4), rgba(26, 74, 58, 0.6));
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.app-feature:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(34, 111, 84, 0.5));
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.app-feature i {
    color: #ffd700;
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.download-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: MontserratBold, sans-serif;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.download-btn.primary {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a4a3a;
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.download-btn.primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(255, 215, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #ffed4e, #ffd700);
}

.download-btn.secondary {
    background: linear-gradient(135deg, #34a853, #4caf50);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 25px rgba(52, 168, 83, 0.4);
}

.download-btn.secondary:hover {
    background: linear-gradient(135deg, #4caf50, #34a853);
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(52, 168, 83, 0.6);
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn i {
    font-size: 20px;
}

.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(34, 111, 84, 0.3), rgba(13, 16, 22, 0.5));
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 25px;
    backdrop-filter: blur(8px);
}

.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.proof-number {
    font-size: 24px;
    font-family: MontserratBold, sans-serif;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.proof-text {
    font-size: 12px;
    color: #bdbdbd;
    text-align: center;
    font-family: MontserratMedium, sans-serif;
}

.stars {
    color: #ffd700;
    font-size: 18px;
    margin-top: 5px;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
}

.popup-disclaimer {
    font-size: 12px;
    opacity: 0.8;
    font-family: MontserratRegular, sans-serif;
    margin: 15px 0 0 0;
    color: #bdbdbd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.popup-disclaimer i {
    color: #ffd700;
}

.urgency-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-family: MontserratBold, sans-serif;
    font-size: 14px;
    margin-bottom: 20px;
    animation: timerPulse 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popInScale {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes timerPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 71, 87, 0.6);
        transform: scale(1.02);
    }
}

.content-popup {
    max-height: 300px;
    overflow-y: auto;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .app-download-popup {
        padding: 35px 25px;
        border-radius: 20px;
    }

    .app-download-overlay {
        padding: 10px;
    }
    
    .app-download-popup h2 {
        font-size: 28px;
    }
    
    .app-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
    }
    
    .social-proof {
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px;
    }

    .app-popup-icon {
        font-size: 60px;
    }
}

@media (max-width: 480px) {
    .app-download-popup {
        padding: 30px 20px;
        border-width: 2px;
    }
    
    .social-proof {
        padding: 18px;
        gap: 15px;
    }
    
    .proof-item {
        gap: 3px;
    }
    
    .proof-number {
        font-size: 20px;
    }
    
    .proof-text {
        font-size: 11px;
    }

    .app-download-popup h2 {
        font-size: 24px;
    }

    .app-download-popup .subtitle {
        font-size: 18px;
    }
}
