.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.popup-content {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

/* Floating Elements */
.popup-content::before,
.popup-content::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.05));
    z-index: -1;
    animation: float 8s infinite;
}

.popup-content::before {
    top: -75px;
    left: -75px;
    animation-delay: 0s;
}

.popup-content::after {
    bottom: -75px;
    right: -75px;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, 10px) rotate(5deg);
    }
    50% {
        transform: translate(0, 20px) rotate(0deg);
    }
    75% {
        transform: translate(-10px, 10px) rotate(-5deg);
    }
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    z-index: 1;
}

.popup-close:hover {
    color: #0f172a;
}

.popup-body {
    text-align: center;
    position: relative;
    z-index: 1;
}

.popup-icon {
    width: 64px;
    height: 64px;
    background-color: #0f172a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(15, 23, 42, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0);
    }
}

.popup-icon i {
    font-size: 2rem;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
}

.popup-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.popup-discount {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.popup-discount::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(15, 23, 42, 0.03), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.discount-percentage {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.discount-code {
    display: block;
    font-size: 1rem;
    color: #64748b;
    font-family: monospace;
    padding: 0.5rem;
    background-color: white;
    border-radius: 4px;
    border: 1px dashed #e2e8f0;
}

.popup-button {
    display: inline-block;
    background-color: #0f172a;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.popup-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.popup-button:hover {
    background-color: #1e293b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.popup-button:hover::before {
    left: 100%;
} 