/* Popup Styles */
.site-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.site-popup.show {
    opacity: 1;
    visibility: visible;
}

.site-popup-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(45, 45, 68, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.3), inset 0 0 60px rgba(212, 175, 55, 0.1);
    position: relative;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.site-popup.show .site-popup-content {
    transform: scale(1) translateY(0);
}

.site-popup-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.site-popup-message {
    color: rgba(245, 245, 245, 0.95);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    white-space: pre-line;
}

.site-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(245, 245, 245, 0.9);
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.site-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    color: #e8c547;
}

/* Success popup */
.site-popup-success {
    border-color: rgba(76, 175, 80, 0.5);
}

.site-popup-success .site-popup-content {
    border-color: rgba(76, 175, 80, 0.5);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(76, 175, 80, 0.3);
}

/* Error popup */
.site-popup-error {
    border-color: rgba(244, 67, 54, 0.5);
}

.site-popup-error .site-popup-content {
    border-color: rgba(244, 67, 54, 0.5);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(244, 67, 54, 0.3);
}

/* Warning popup */
.site-popup-warning {
    border-color: rgba(255, 193, 7, 0.5);
}

.site-popup-warning .site-popup-content {
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 193, 7, 0.3);
}

/* Confirm popup */
.site-popup-confirm-content {
    padding: 2.5rem;
}

.site-popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.site-popup-btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.site-popup-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(245, 245, 245, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.site-popup-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.site-popup-btn-confirm {
    background: linear-gradient(135deg, #e8c547 0%, #ddb84d 100%);
    color: #0f0f1e;
    border: 2px solid rgba(212, 175, 55, 0.7);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.site-popup-btn-confirm:hover {
    background: linear-gradient(135deg, #ddb84d 0%, #e8c547 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .site-popup-content {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }
    
    .site-popup-icon {
        font-size: 3rem;
    }
    
    .site-popup-message {
        font-size: 1.1rem;
    }
    
    .site-popup-buttons {
        flex-direction: column;
    }
    
    .site-popup-btn {
        width: 100%;
    }
}

/* Mobile performance: no blur */
@media (max-width: 1024px) {
    .site-popup {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .site-popup-content {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: linear-gradient(135deg, rgba(26, 26, 46, 0.99) 0%, rgba(45, 45, 68, 0.99) 100%) !important;
    }
}
