/* ── Popup Notification ── */
#sitePopup {
    display: none;
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 320px;
    max-width: 92vw;
    border-radius: 12px;
    padding: 14px 16px 18px 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.22);
    font-size: 0.92rem;
    font-weight: 500;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    animation: popSlideDown 0.4s ease;
}
@keyframes popSlideDown {
    from { opacity: 0; top: 0px; }
    to   { opacity: 1; top: 16px; }
}
#popupTop {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
#popupMessage {
    flex: 1;
    line-height: 1.45;
    word-break: break-word;
}
#popupClose {
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.75;
    background: none;
    border: none;
    color: inherit;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    margin-top: 1px;
}
#popupClose:hover { opacity: 1; }
#popupTimerBar {
    height: 3px;
    border-radius: 3px;
    background: rgba(255,255,255,0.45);
    width: 100%;
    transform-origin: left;
}

/* ── Dot indicators ── */
#popupDots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 6px;
}
.popup-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: background 0.3s;
}
.popup-dot.active {
    background: rgba(255,255,255,0.95);
}

/* ── Persistent Bar ── */
#persistentBar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}