/* ---------- navbar inbox popup ---------- */
.inbox-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--border-blood);
    background: var(--card);
    color: var(--foreground);
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

.inbox-bell:hover {
    color: var(--blood-bright);
    border-color: var(--blood-bright);
}

.icon-bell {
    width: 17px;
    height: 17px;
}

.inbox-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--blood-bright);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.inbox-dot[hidden] {
    display: none;
}

.inbox-popup {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(340px, calc(100vw - 2rem));
    max-height: 70vh;
    overflow: hidden;
    border: 1px solid var(--border-blood);
    border-radius: 1rem;
    background: var(--card);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    z-index: 220;
}

.header-actions {
    position: relative;
}

.inbox-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem .9rem;
    border-bottom: 1px solid var(--border-blood);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.inbox-popup-head button {
    border: none;
    background: none;
    color: var(--blood-bright);
    font-size: .66rem;
    font-weight: 600;
    cursor: pointer;
}

.inbox-list {
    overflow-y: auto;
    max-height: 56vh;
    scrollbar-width: thin;
}

.inbox-item {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .7rem .9rem;
    border-bottom: 1px solid rgba(139, 0, 0, .14);
}

.inbox-item p {
    font-size: .82rem;
    color: var(--foreground);
    line-height: 1.45;
}

.inbox-item small {
    font-size: .62rem;
    color: var(--muted-foreground);
    letter-spacing: .04em;
}

.inbox-empty {
    padding: 1.4rem 1rem;
    text-align: center;
    font-size: .78rem;
    color: var(--muted-foreground);
    font-style: italic;
}

/* ---------- Blood+ banner strip (non-subscribers) ---------- */
.bp-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin: 1rem auto 0;
    padding: .55rem 1.1rem;
    max-width: 960px;
    border: 1px dashed var(--emerald-line);
    border-radius: 999px;
    background:
        radial-gradient(120% 180% at 50% -40%, rgba(55, 217, 138, .14), transparent 65%),
        var(--white-05);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.bp-banner:hover {
    border-style: solid;
    box-shadow: 0 0 22px rgba(55, 217, 138, .14);
}

.bp-banner-badge {
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #19b06a, #0f7a4a);
    color: #f2fff8;
    padding: .18rem .55rem;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bp-banner-text {
    font-size: .78rem;
    color: var(--muted-foreground);
}

.bp-banner-text strong {
    color: var(--foreground);
}

.bp-banner-cta {
    font-size: .72rem;
    font-weight: 700;
    color: var(--emerald);
    white-space: nowrap;
}