/* ===================================================
   Announcement Popup — Public Styles
   =================================================== */

/* Overlay */
.ap-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.ap-overlay.ap-visible {
    opacity: 1;
    pointer-events: all;
}

/* Pop-up container */
.ap-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
}
.ap-popup.ap-open {
    pointer-events: all;
}

/* Inner card */
.ap-popup-inner {
    position: relative;
    background: #1a1a2e;
    color: #fff;
    border-radius: 16px;
    padding: 40px 36px 36px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
    transform: scale(.88) translateY(20px);
    opacity: 0;
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease;
}
.ap-popup.ap-open .ap-popup-inner {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Close button */
.ap-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .15);
    color: currentColor;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .15s;
    line-height: 1;
}
.ap-close-btn:hover {
    background: rgba(255, 255, 255, .28);
    transform: rotate(90deg);
}

/* Title */
.ap-popup-title {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    padding-right: 30px;
}

/* Content */
.ap-popup-content {
    font-size: 15px;
    line-height: 1.65;
    opacity: .88;
    margin-bottom: 28px;
}
.ap-popup-content p   { margin: 0 0 10px; }
.ap-popup-content p:last-child { margin-bottom: 0; }
.ap-popup-content a   { color: inherit; text-decoration: underline; }

/* Action button */
.ap-popup-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: filter .15s, transform .15s;
}
.ap-popup-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}
.ap-popup-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 520px) {
    .ap-popup-inner {
        padding: 30px 22px 26px;
        border-radius: 12px;
    }
    .ap-popup-title  { font-size: 18px; }
    .ap-popup-content { font-size: 14px; }
}
