.npp-floating-box {
    position: fixed;
    z-index: 99999;
    text-align: center;
}

.npp-position-bottom-right { right: 20px; bottom: 20px; }
.npp-position-bottom-left { left: 20px; bottom: 20px; }
.npp-position-top-right { right: 20px; top: 20px; }
.npp-position-top-left { left: 20px; top: 20px; }

.npp-inline-box {
    display: inline-block;
    text-align: center;
    margin: 12px 0;
}

.npp-floating-subscribe-btn,
.npp-subscribe-btn {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    border: none;
    padding: 13px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
    transition: all 0.25s ease;
    line-height: 1.2;
}

.npp-floating-subscribe-btn:hover,
.npp-subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.45);
}

.npp-floating-subscribe-btn:disabled,
.npp-subscribe-btn:disabled {
    cursor: not-allowed;
    opacity: 0.95;
}

.npp-bell-icon {
    display: inline-block;
    font-size: 22px;
    margin-right: 6px;
    transform-origin: top center;
    animation: nppBellShake 1.8s infinite;
}

@keyframes nppBellShake {
    0% { transform: rotate(0deg) scale(1); }
    10% { transform: rotate(15deg) scale(1.25); }
    20% { transform: rotate(-15deg) scale(1.25); }
    30% { transform: rotate(12deg) scale(1.2); }
    40% { transform: rotate(-12deg) scale(1.2); }
    50% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(0deg) scale(1); }
}

.npp-subscribed-success {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(22, 163, 74, 0.35) !important;
}

.npp-subscribed-success .npp-bell-icon {
    animation: none !important;
}

.npp-subscribe-message {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-block;
    min-height: 18px;
}

.npp-privacy-note {
    color: #64748b;
    font-size: 12px;
    margin: 8px 0 0;
}

@media screen and (max-width: 480px) {
    .npp-position-bottom-right,
    .npp-position-bottom-left {
        left: 12px;
        right: 12px;
        bottom: 14px;
    }

    .npp-floating-subscribe-btn {
        width: 100%;
    }
}

/* LaraPush-style soft permission and fallback popup */

.npp-soft-popup,
.npp-soft-popup * {
    box-sizing: border-box;
}
.npp-soft-popup {
    position: fixed;
    z-index: 2147483000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.npp-soft-popup.npp-show {
    opacity: 1;
    pointer-events: auto;
}

.npp-soft-popup-center {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.46);
    padding: 18px;
}

.npp-soft-popup-bottom {
    left: 16px;
    right: 16px;
    bottom: 18px;
    display: flex;
    justify-content: center;
}

.npp-soft-popup-topbar {
    top: 14px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: center;
}

.npp-soft-card {
    width: min(420px, 94vw);
    position: relative;
    overflow: visible;
    background: #ffffff;
    color: #0f172a;
    border-radius: 22px;
    padding: 22px 18px 18px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transform: translateY(8px) scale(0.98);
    transition: transform 0.22s ease;
}

.npp-show .npp-soft-card {
    transform: translateY(0) scale(1);
}

.npp-soft-close {
    all: unset;
    box-sizing: border-box;
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #f8fafc;
    color: #334155;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.npp-soft-head {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding-right: 42px;
}

.npp-soft-icon,
.npp-soft-emoji {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex: 0 0 48px;
    object-fit: cover;
}

.npp-soft-head h3 {
    margin: 2px 0 5px;
    font-size: 19px;
    line-height: 1.25;
    color: #0f172a;
}

.npp-soft-head p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.npp-soft-image {
    display: block;
    width: 100%;
    max-height: 190px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 14px;
}

.npp-soft-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.npp-soft-primary,
.npp-soft-action {
    border: none;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff !important;
    padding: 10px 15px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    line-height: 1.2;
}

.npp-soft-secondary {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    padding: 10px 15px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.npp-soft-link {
    display: inline-block;
    margin-top: 12px;
    color: #2563eb !important;
    font-weight: 700;
    text-decoration: none;
}

.npp-blocked-popup .npp-soft-emoji {
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.npp-campaign-popup .npp-soft-emoji {
    background: linear-gradient(135deg, #059669, #2563eb);
}

@media screen and (max-width: 480px) {
    .npp-soft-card {
        width: 100%;
        border-radius: 18px;
        padding: 22px 14px 14px;
    }

    .npp-soft-popup-center {
        align-items: flex-end;
        padding: 12px;
    }

    .npp-soft-actions {
        flex-direction: column;
    }

    .npp-soft-primary,
    .npp-soft-action,
    .npp-soft-secondary {
        width: 100%;
        text-align: center;
    }
}
