/* ==========================================================================
   Mandatory Public Notice Popup
   ========================================================================== */

.pn-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 14, 24, 0.75);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.pn-overlay.pn-show {
    opacity: 1;
    visibility: visible;
}

body.pn-locked {
    overflow: hidden;
}

.pn-modal {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pn-overlay.pn-show .pn-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.pn-header {
    flex: 0 0 auto;
    text-align: center;
    padding: 32px 32px 16px;
    border-bottom: 1px solid #f0f1f4;
}

.pn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff4e5;
    font-size: 32px;
    line-height: 1;
    margin-bottom: 14px;
    animation: pn-pulse 2.2s ease-in-out infinite;
}

@keyframes pn-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.35); }
    50% { box-shadow: 0 0 0 10px rgba(230, 126, 34, 0); }
}

.pn-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1d29;
    letter-spacing: 0.2px;
}

@media (min-width: 576px) {
    .pn-title {
        font-size: 22px;
    }
}

.pn-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 24px 32px;
    color: #3c4152;
    font-size: 15px;
    line-height: 1.65;
}

.pn-body::-webkit-scrollbar {
    width: 8px;
}

.pn-body::-webkit-scrollbar-track {
    background: transparent;
}

.pn-body::-webkit-scrollbar-thumb {
    background: #d7dae2;
    border-radius: 8px;
}

.pn-body p {
    margin: 0 0 16px;
}

.pn-subhead {
    font-weight: 700;
    color: #1a1d29;
    margin: 0 0 12px;
    font-size: 15px;
}

.pn-list {
    margin: 0 0 18px;
    padding-left: 0;
    list-style: none;
}

.pn-list li {
    position: relative;
    padding: 0 0 12px 30px;
}

.pn-list li:last-child {
    padding-bottom: 0;
}

.pn-list li::before {
    content: "\2715";
    position: absolute;
    left: 0;
    top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fdecea;
    color: #d33a2c;
    font-size: 10px;
    font-weight: 700;
}

.pn-warning-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff8e6;
    border: 1px solid #f4dfa1;
    border-left: 4px solid #e6a817;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 4px 0 18px;
}

.pn-warning-box .pn-warning-emoji {
    font-size: 20px;
    line-height: 1;
    flex: 0 0 auto;
}

.pn-warning-box p {
    margin: 0;
    color: #6b4f05;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.6;
}

.pn-warning-box a {
    color: #a15b00;
    font-weight: 700;
    text-decoration: underline;
}

.pn-ack {
    margin: 0;
    font-size: 14px;
    color: #6b7080;
    font-style: italic;
    border-top: 1px dashed #e5e7ec;
    padding-top: 16px;
}

.pn-footer {
    flex: 0 0 auto;
    padding: 20px 32px 28px;
}

.pn-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #1e5f8c 0%, #12405f 100%);
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 10px;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 20px rgba(18, 64, 95, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.pn-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(18, 64, 95, 0.35);
    background: linear-gradient(135deg, #226b9c 0%, #154a6c 100%);
}

.pn-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(18, 64, 95, 0.3);
}

.pn-btn:focus-visible {
    outline: 3px solid #a9d2ec;
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .pn-overlay {
        padding: 12px;
    }

    .pn-modal {
        max-height: 92vh;
        border-radius: 14px;
    }

    .pn-header {
        padding: 24px 20px 14px;
    }

    .pn-icon {
        width: 54px;
        height: 54px;
        font-size: 26px;
    }

    .pn-title {
        font-size: 17px;
    }

    .pn-body {
        padding: 18px 20px;
        font-size: 14px;
    }

    .pn-footer {
        padding: 16px 20px 22px;
    }
}
