/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Popup Container */
.popup-container {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
    position: relative;
}

/* Popup Header */
.popup-header {
    margin-bottom: 20px;
}

.popup-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #1a202c;
    font-weight: 600;
}

.popup-header .beta-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Popup Content */
.popup-content {
    margin-bottom: 24px;
}

.popup-content p {
    margin: 0 0 16px 0;
    color: #4a5568;
    line-height: 1.6;
    font-size: 15px;
}

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

.popup-content a {
    color: #3b82f6;
    text-decoration: underline;
    font-weight: 500;
}

.popup-content a:hover {
    color: #2563eb;
}

.notice-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 16px;
}

.notice-box p {
    margin: 0;
    color: #92400e;
    font-size: 14px;
}

.notice-box strong {
    font-weight: 600;
}

/* Popup Actions */
.popup-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.popup-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.popup-btn-primary {
    background: #3b82f6;
    color: white;
}

.popup-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.popup-btn-secondary {
    background: #f3f4f6;
    color: #4a5568;
}

.popup-btn-secondary:hover {
    background: #e5e7eb;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .popup-container {
        padding: 24px;
        width: 95%;
    }
    
    .popup-header h2 {
        font-size: 20px;
    }
    
    .popup-actions {
        flex-direction: column;
    }
}