/* ── 팝업 공지 오버레이 ── */
.pn-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pnFadeIn .18s ease;
    outline: none;
}

@keyframes pnFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* 여러 팝업이 동시에 뜰 때 뒤 팝업은 살짝 뒤로 */
.pn-overlay + .pn-overlay { z-index: 9989; }
.pn-overlay + .pn-overlay + .pn-overlay { z-index: 9988; }

.pn-modal {
    position: relative;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
    overflow: hidden;
    max-width: 92vw;
    display: flex;
    flex-direction: column;
    animation: pnSlideUp .2s ease;
}

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

.pn-modal-header {
    display: none;
}

.pn-modal-title {
    display: none;
}

.pn-close-btn {
    display: none;
}

.pn-modal-scroll {
    overflow-y: auto;
    max-height: 60vh;
}

.pn-modal-img {
    display: block;
    width: 100%;
    height: auto;
}

.pn-modal-body {
    padding: 16px;
    font-size: 14px;
    color: #333;
    line-height: 1.65;
}

.pn-modal-footer {
    display: flex;
    align-items: center;
    border-top: 1px solid #eee;
}

.pn-no-show-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 9px 0;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    text-align: center;
    transition: color .15s;
}
.pn-no-show-btn:hover { color: #444; }

.pn-footer-divider {
    width: 1px;
    height: 16px;
    background: #ddd;
    flex-shrink: 0;
}

.pn-confirm-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 9px 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    text-align: center;
    transition: color .15s;
}
.pn-confirm-btn:hover { color: #000; }

/* 다크모드 */
html.dark-mode .pn-modal             { background: #1e1e2e; }
html.dark-mode .pn-modal-footer      { border-color: #333; }
html.dark-mode .pn-modal-body        { color: #ccc; }
html.dark-mode .pn-no-show-btn       { color: #888; }
html.dark-mode .pn-no-show-btn:hover { color: #bbb; }
html.dark-mode .pn-footer-divider    { background: #444; }
html.dark-mode .pn-confirm-btn       { color: #ccc; }
html.dark-mode .pn-confirm-btn:hover { color: #fff; }

@media (max-width: 480px) {
    .pn-modal { width: 90vw !important; }
    .pn-modal-scroll { max-height: 55vh; }
}
