.popup-control-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 12, 20, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: popup-control-fade-in 0.24s ease-out;
}

.popup-control-overlay[hidden] {
    display: none;
}

@keyframes popup-control-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popup-control-pop-in {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-control-modal {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    color: #171717;
    max-width: 480px;
    width: calc(100% - 40px);
    padding: 42px 36px 34px;
    border-radius: 16px;
    border: 1px solid rgba(34, 113, 177, 0.16);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    animation: popup-control-pop-in 0.3s ease-out;
}

.popup-control-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.popup-control-close:hover {
    color: #1e1e1e;
    background: rgba(0, 0, 0, 0.06);
}

.popup-control-title {
    margin: 0 0 12px;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: normal;
}

.popup-control-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 113, 177, 0.08) 0%, rgba(34, 113, 177, 0.5) 50%, rgba(34, 113, 177, 0.08) 100%);
    margin: 0 0 18px;
}

.popup-control-body {
    margin: 0 0 24px;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #4a4a4a;
}

.popup-control-button {
    display: inline-block;
    padding: 12px 24px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.15s ease, transform 0.1s ease;
}

.popup-control-button:hover {
    background: #135e96;
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .popup-control-overlay {
        padding: 14px;
    }

    .popup-control-modal {
        width: 100%;
        padding: 34px 22px 24px;
        border-radius: 14px;
    }
}


