/* Instagram Popup Styles */
#insta-engagement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#insta-engagement-modal.active {
    opacity: 1;
    visibility: visible;
}

#insta-engagement-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#insta-engagement-modal .modal-content {
    position: relative;
    width: 92%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 30px;
    padding: 50px 30px 40px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 
                0 0 40px rgba(220, 39, 67, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    transform: scale(0.8) translateY(40px);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

#insta-engagement-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Instagram Gradient Border and Glow */
#insta-engagement-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    z-index: 2;
}

#insta-engagement-modal .insta-icon-wrapper {
    width: 85px;
    height: 85px;
    margin: 0 auto 25px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(220, 39, 67, 0.35);
    color: white;
    font-size: 42px;
    transform: rotate(-3deg);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#insta-engagement-modal .insta-icon-wrapper:hover {
    transform: rotate(0deg) scale(1.15);
    box-shadow: 0 20px 40px rgba(220, 39, 67, 0.5);
}

#insta-engagement-modal h2 {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

#insta-engagement-modal p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 35px;
    padding: 0 10px;
}

#insta-engagement-modal .btn-follow {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 18px 30px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 12px 30px rgba(220, 39, 67, 0.4);
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
}

#insta-engagement-modal .btn-follow:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(220, 39, 67, 0.5);
    filter: brightness(1.1);
}

#insta-engagement-modal .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#insta-engagement-modal .close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: rotate(90deg);
}

#insta-engagement-modal .not-now {
    display: inline-block;
    font-size: 13px;
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

#insta-engagement-modal .not-now:hover {
    color: #cc2366;
}

/* Mobile Tweaks */
@media (max-width: 480px) {
    #insta-engagement-modal .modal-content {
        padding: 40px 20px 30px;
        width: 88%;
    }
    
    #insta-engagement-modal h2 {
        font-size: 22px;
    }
    
    #insta-engagement-modal .insta-icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

#insta-engagement-modal .insta-icon-wrapper {
    animation: float 4s ease-in-out infinite;
}
