.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9;
}
.overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.overlay.active .popup {
    transform: translateX(-50%) translateY(-50%);
}
.popup {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    background: var(--secondary-color);
    transform: translateX(-50%) translateY(-150%);
    transition: transform 0.3s ease;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup.active {
    transform: translateX(-50%) translateY(-50%);
}

.popup-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #4CAF50;
}

.popup h3 {
    margin: 0 0 12px 0;
    color: var(--accent-txt);
    font-size: 1.3em;
    font-weight: 600;
}

.popup p {
    margin: 0 0 20px 0;
    color: var(--accent-txt); 
    line-height: 1.5;
    font-size: 0.95em;
}

.popup-button {
    background: #4d3b6b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}

.popup-button:hover {
    background: #322547;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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