.popup-alert {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 999999;
    display: none;
}

.popup-alert-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}

.popup-alert-content {
    position: absolute;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    max-width: 92%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 30px 25px;
    z-index: 2;
    text-align: center;
}

/* Proper centering */
.popup-alert[data-placement="center"] .popup-alert-content {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.popup-alert[data-placement="top"] .popup-alert-content {
    top: 40px; left: 50%;
    transform: translateX(-50%);
}

.popup-alert[data-placement="bottom"] .popup-alert-content {
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
}

.popup-alert-close {
    position: absolute;
    top: 12px; right: 15px;
    font-size: 32px;
    background: none; border: none;
    cursor: pointer;
    color: #333;
}

.popup-alert-ok-btn:hover {
    background: #1565c0 !important;
}

@media (max-width: 480px) {
    .popup-alert-content { padding: 20px 15px; }
}