/* Page Alerts – Frontend Overlay */

.pa-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: pa-fade-in .25s ease both;
    backdrop-filter: blur(2px);
}

@keyframes pa-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pa-box {
    background: var(--pa-bg, #ffffff);
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, .22),
        0 4px 16px rgba(0, 0, 0, .12);
    padding: 36px 36px 32px;
    max-width: 520px;
    width: 100%;
    position: relative;
    animation: pa-slide-up .28s cubic-bezier(.16,1,.3,1) both;
    box-sizing: border-box;
}

@keyframes pa-slide-up {
    from { transform: translateY(18px) scale(.97); opacity: 0; }
    to   { transform: translateY(0) scale(1);     opacity: 1; }
}

.pa-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: 2px solid var(--pa-accent, #2563eb);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--pa-accent, #2563eb);
    cursor: pointer;
    transition: background .15s, color .15s;
    line-height: 1;
    padding: 0;
}

.pa-close:hover {
    background: var(--pa-accent, #2563eb);
    color: #fff;
}

.pa-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
    padding-right: 24px;
    line-height: 1.3;
}

.pa-text {
    font-size: 15px;
    line-height: 1.65;
    color: #374151;
}

.pa-text p { margin: 0 0 10px; }
.pa-text p:last-child { margin-bottom: 0; }
.pa-text a { color: var(--pa-accent, #2563eb); }

/* Closing animation */
.pa-overlay.pa-closing {
    animation: pa-fade-out .2s ease forwards;
}
.pa-overlay.pa-closing .pa-box {
    animation: pa-slide-down .2s cubic-bezier(.7,0,.84,0) forwards;
}

@keyframes pa-fade-out {
    to { opacity: 0; }
}
@keyframes pa-slide-down {
    to { transform: translateY(12px) scale(.97); opacity: 0; }
}

/* Responsive */
@media (max-width: 480px) {
    .pa-box {
        padding: 28px 22px 24px;
        border-radius: 12px;
    }
    .pa-title { font-size: 1.15rem; }
}
