/* =========================================================
   Sticky Bar (concept unchanged: fixed, always on top on scroll)
   ========================================================= */
.npc-bar {
    width: 100% !important;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    z-index: 2147483000 !important;
    padding: 10px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
}
/* top/bottom pixel offset is set inline by JS so multiple bars can stack */
.npc-bar.npc-pos-top { top: 0; }
.npc-bar.npc-pos-bottom { bottom: 0; }

.npc-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    text-align: center;
}

.npc-headline {
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ---- Rotating customer ticker (moving text) ---- */
.npc-ticker-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.15);
    padding: 4px 12px;
    border-radius: 20px;
    max-width: 420px;
    overflow: hidden;
    margin: 0;
}
.npc-ticker-icon { flex-shrink: 0; }
.npc-ticker-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 380px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.npc-ticker-text.npc-ticker-fade {
    opacity: 0;
    transform: translateY(6px);
}

.npc-countdown-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.15);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    margin: 0;
}
.npc-countdown-badge {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    min-width: 44px;
    display: inline-block;
}

.npc-cta-button {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 24px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.npc-cta-button:hover {
    transform: translateY(-1px);
    opacity: 0.92;
    text-decoration: none;
}

.npc-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
}
.npc-close:hover { opacity: 1; }

/* =========================================================
   Popup — Modal Tengah
   ========================================================= */
.npc-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.npc-popup-overlay.npc-popup-center {
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.npc-popup-overlay.npc-popup-center .npc-popup-box {
    max-width: 420px;
    width: 100%;
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    animation: npc-pop-in 0.25s ease;
}

.npc-popup-overlay.npc-popup-corner {
    background: transparent;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 16px;
}
.npc-popup-overlay.npc-popup-corner .npc-popup-box {
    pointer-events: auto;
    max-width: 320px;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    animation: npc-slide-in 0.3s ease;
}

@keyframes npc-pop-in {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes npc-slide-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.npc-popup-headline {
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 10px;
}
.npc-popup-box .npc-ticker-wrap,
.npc-popup-box .npc-countdown-wrap {
    display: inline-flex;
    margin: 6px auto;
}
.npc-popup-box .npc-cta-button {
    margin-top: 12px;
}
.npc-popup-close {
    position: absolute;
    top: 6px;
    right: 10px;
}

@media (max-width: 600px) {
    .npc-bar-inner { font-size: 12.5px; }
    .npc-ticker-wrap, .npc-ticker-text { max-width: 220px; }
    .npc-popup-overlay.npc-popup-corner { padding: 10px; }
}
