/* Popup Modal */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    border-radius: 30px;
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    transform: scale(0.7);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    color: var(--dark);
}

.popup-close:hover {
    background: var(--accent);
    color: white;
    transform: rotate(90deg);
}

.popup-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.popup-image::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.1) 20px,
        rgba(255, 255, 255, 0.1) 40px
    );
    animation: slidePopup 25s linear infinite;
}

@keyframes slidePopup {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.popup-promo-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary);
    color: var(--dark);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 2;
}

.popup-icon {
    font-size: 8rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    position: relative;
    z-index: 1;
}

.popup-title {
    font-family: 'Lilita One', cursive;
    font-size: 3rem;
    color: white;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.popup-subtitle {
    font-size: 1.3rem;
    color: var(--secondary);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.popup-details {
    padding: 2.5rem;
    text-align: center;
}

.popup-details h3 {
    font-family: 'Lilita One', cursive;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.popup-details p {
    color: var(--dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.popup-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.popup-feature {
    background: var(--cream);
    padding: 1rem;
    border-radius: 15px;
    font-weight: 600;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popup-details .btn {
    width: 100%;
    justify-content: center;
    font-size: 1.2rem;
    padding: 1.3rem 2rem;
}

/* Responsive Popup */
@media (max-width: 968px) {
    .popup-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .popup-image {
        height: 300px;
    }
    
    .popup-icon {
        font-size: 5rem;
    }
    
    .popup-title {
        font-size: 2rem;
    }
    
    .popup-subtitle {
        font-size: 1rem;
    }
    
    .popup-details {
        padding: 1.5rem;
    }
}
