#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    animation: fadeInOverlay 0.3s ease-in-out;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

#popup-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    max-width: 360px;
    width: 90%;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #ffffff;
    padding: 40px 30px;
    z-index: 10000;
    display: none;
    text-align: center;
    animation: slideInModal 0.4s ease-in-out forwards;
}

@keyframes slideInModal {
    from {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

#popup-modal p {
    margin: 0 0 30px 0;
}

#popup-content {
    margin: 0 0 30px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
}

#popup-content p {
    margin: 0 0 15px 0;
}

#popup-content p:last-child {
    margin-bottom: 0;
}

#popup-content h1,
#popup-content h2,
#popup-content h3,
#popup-content h4,
#popup-content h5,
#popup-content h6 {
    margin: 0 0 15px 0;
    font-weight: 600;
}

#popup-content ul,
#popup-content ol {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

#popup-content li {
    margin: 0 0 8px 0;
}

#popup-content strong {
    font-weight: 600;
}

#popup-content em {
    font-style: italic;
}

#popup-content a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

#popup-content a:hover {
    color: #764ba2;
    text-decoration: underline;
}

#close-popup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    letter-spacing: 0.5px;
}

#close-popup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

#close-popup:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}