/* New-style notifications only. Classic markup is untouched when .notif-dock-v2 / .notif-page-v2 are absent. */

.navbar:has(.notif-dock-v2),
.navbar-nav:has(.notif-dock-v2),
.navbar-collapse:has(.notif-dock-v2),
.navbar .nav-item:has(.notif-dock-v2) {
    overflow: visible;
}
.notif-bell-v2 {
    position: relative;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fff;
    background:
        linear-gradient(160deg, rgba(103, 232, 249, 0.35), rgba(244, 114, 182, 0.28) 55%, rgba(251, 191, 36, 0.22));
    box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.35), 0 8px 18px rgba(2, 6, 23, 0.35);
    overflow: visible;
    z-index: 2;
}
.notif-bell-v2 .nv2-bell-aura {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.notif-bell-v2 .nv2-bell-aura::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 90deg, transparent, rgba(103, 232, 249, 0.55), transparent 42%);
    animation: nv2Spin 4.8s linear infinite;
    opacity: 0.7;
}
.notif-bell-v2 > .nv2-bell-glyph {
    position: relative;
    z-index: 1;
}
.notif-bell-v2.is-hot {
    animation: nv2BellPulse 1.4s ease-in-out infinite;
}
.notif-bell-v2 #notifUnreadBadge {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    z-index: 2;
    min-width: 1.12rem;
    height: 1.12rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fb7185, #ef4444) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    transform: translate(42%, -42%);
    pointer-events: none;
    animation: nv2BadgePulse 1s ease-in-out infinite;
}
@keyframes nv2Spin { to { transform: rotate(360deg); } }
@keyframes nv2BellPulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.35), 0 8px 18px rgba(2, 6, 23, 0.35); }
    50% { box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.7), 0 0 22px rgba(244, 114, 182, 0.45); }
}
@keyframes nv2BadgePulse {
    0%, 100% { transform: translate(42%, -42%) scale(1); }
    50% { transform: translate(42%, -42%) scale(1.12); }
}

#notifPanel.notif-dock-v2 {
    right: 0 !important;
    top: calc(100% + 10px) !important;
    width: min(94vw, 28rem) !important;
    z-index: 1080;
    border: 0;
    border-radius: 1.15rem;
    overflow: hidden;
    background: rgba(8, 14, 32, 0.94);
    box-shadow:
        0 0 0 1px rgba(103, 232, 249, 0.28),
        0 22px 50px rgba(2, 6, 23, 0.55);
    color: #e2e8f0;
    backdrop-filter: blur(14px);
}
[data-theme="light"] #notifPanel.notif-dock-v2 {
    background: rgba(248, 250, 252, 0.96);
    color: #0f172a;
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.25), 0 18px 40px rgba(15, 23, 42, 0.18);
}
.notif-dock-v2 .nv2-dock-aura {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(80% 50% at 10% 0%, rgba(103, 232, 249, 0.18), transparent 55%),
        radial-gradient(70% 40% at 100% 100%, rgba(244, 114, 182, 0.16), transparent 50%);
}
.notif-dock-v2 .nv2-dock-head,
.notif-dock-v2 .nv2-dock-tools,
.notif-dock-v2 .nv2-dock-chips,
.notif-dock-v2 .nv2-dock-foot {
    position: relative;
    z-index: 1;
}
.notif-dock-v2 .nv2-dock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem 0.45rem;
}
.notif-dock-v2 .nv2-dock-title {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}
.notif-dock-v2 .nv2-live {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #67e8f9;
}
.notif-dock-v2 .nv2-live i {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    animation: nv2Pulse 1.1s ease-in-out infinite;
}
.notif-dock-v2 .nv2-dock-title strong {
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}
.notif-dock-v2 .nv2-clear,
.notif-dock-v2 #notifClearBtn {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.45);
    color: #cbd5e1;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.22rem 0.7rem;
}
[data-theme="light"] .notif-dock-v2 .nv2-clear,
[data-theme="light"] .notif-dock-v2 #notifClearBtn {
    background: #fff;
    color: #334155;
}
.notif-dock-v2 .nv2-dock-tools {
    padding: 0 0.85rem 0.45rem;
}
.notif-dock-v2 .nv2-search {
    width: 100%;
    border-radius: 0.7rem;
    border: 1px solid rgba(103, 232, 249, 0.25);
    background: rgba(2, 6, 23, 0.45);
    color: inherit;
    font-size: 0.8rem;
    padding: 0.38rem 0.7rem;
}
[data-theme="light"] .notif-dock-v2 .nv2-search {
    background: #fff;
    border-color: #cbd5e1;
}
.notif-dock-v2 .nv2-dock-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.32rem;
    overflow-x: auto;
    padding: 0 0.85rem 0.5rem;
    scrollbar-width: thin;
}
.notif-dock-v2 .nv2-mini-chip {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: rgba(148, 163, 184, 0.16);
    color: inherit;
    cursor: pointer;
}
.notif-dock-v2 .nv2-mini-chip.is-on {
    background: linear-gradient(90deg, #22d3ee, #a78bfa);
    color: #041016;
}
.notif-dock-v2 #notifPanelBody {
    position: relative;
    z-index: 1;
    max-height: 22rem;
    overflow-y: auto;
    padding: 0.15rem 0.7rem 0.55rem;
}
.notif-dock-v2 .nv2-dock-foot {
    padding: 0.55rem 0.75rem 0.7rem;
    display: flex;
    justify-content: flex-end;
}
.notif-dock-v2 .nv2-portal {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none !important;
    color: #041016 !important;
    background: linear-gradient(90deg, #fb923c, #f472b6 55%, #67e8f9);
    box-shadow: 0 8px 18px rgba(244, 114, 182, 0.28);
}
.notif-dock-v2 .nv2-portal:hover { filter: brightness(1.08); color: #041016 !important; }

.notif-dock-v2 .nv2-card {
    position: relative;
    border-radius: 0.9rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    isolation: isolate;
    animation: nv2Rise 0.42s ease both;
    animation-delay: calc(var(--i, 0) * 45ms);
}
.notif-page-v2 .nv2-page-card {
    position: relative;
    border-radius: 0.9rem;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.18s ease;
}
.notif-dock-v2 .nv2-card-inner,
.notif-page-v2 .nv2-page-card .card {
    position: relative;
    z-index: 1;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    color: inherit;
    box-shadow: none !important;
}
[data-theme="light"] .notif-dock-v2 .nv2-card-inner,
[data-theme="light"] .notif-page-v2 .nv2-page-card .card {
    background: rgba(255, 255, 255, 0.92);
}
.notif-dock-v2 .nv2-card::before,
.notif-page-v2 .nv2-page-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--nv2-a, #67e8f9), transparent 42%, var(--nv2-b, #f472b6));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.notif-dock-v2 .nv2-card--green,
.notif-page-v2 .nv2-page-card.notif-page-wrap--green { --nv2-a: #4ade80; --nv2-b: #67e8f9; }
.notif-dock-v2 .nv2-card--green_soft,
.notif-page-v2 .nv2-page-card.notif-page-wrap--green_soft { --nv2-a: #86efac; --nv2-b: #22d3ee; }
.notif-dock-v2 .nv2-card--red,
.notif-page-v2 .nv2-page-card.notif-page-wrap--red { --nv2-a: #f87171; --nv2-b: #fb7185; }
.notif-dock-v2 .nv2-card--blue,
.notif-page-v2 .nv2-page-card.notif-page-wrap--blue { --nv2-a: #38bdf8; --nv2-b: #a78bfa; }
.notif-dock-v2 .nv2-card--yellow,
.notif-page-v2 .nv2-page-card.notif-page-wrap--yellow { --nv2-a: #fbbf24; --nv2-b: #f97316; }
.notif-dock-v2 .nv2-card--orange,
.notif-page-v2 .nv2-page-card.notif-page-wrap--orange { --nv2-a: #fb923c; --nv2-b: #f472b6; }
.notif-dock-v2 .nv2-card--punishment_red,
.notif-page-v2 .nv2-page-card.notif-page-wrap--punishment_red { --nv2-a: #ef4444; --nv2-b: #991b1b; }
.notif-dock-v2 .nv2-card--punishment_muted,
.notif-page-v2 .nv2-page-card.notif-page-wrap--punishment_muted { --nv2-a: #94a3b8; --nv2-b: #64748b; }
.notif-dock-v2 .nv2-card.is-hidden,
.notif-page-v2 .nv2-page-card.is-hidden { display: none !important; }
.notif-dock-v2 .nv2-empty,
.notif-page-v2 .nv2-empty {
    text-align: center;
    padding: 1.2rem 0.6rem;
    color: #94a3b8;
    font-weight: 700;
}

.notif-page-v2 {
    position: relative;
    padding-bottom: 2.4rem;
}
.notif-page-v2 .nv2-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.4rem;
    padding: 1.15rem 1.2rem 1.05rem;
    margin-bottom: 1rem;
    background:
        radial-gradient(80% 120% at 0% 0%, rgba(103, 232, 249, 0.22), transparent 50%),
        radial-gradient(70% 90% at 100% 0%, rgba(244, 114, 182, 0.2), transparent 48%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(8, 14, 32, 0.92));
    border: 1px solid rgba(103, 232, 249, 0.22);
    color: #f8fafc;
}
[data-theme="light"] .notif-page-v2 .nv2-hero {
    background:
        radial-gradient(80% 120% at 0% 0%, rgba(14, 165, 233, 0.18), transparent 50%),
        radial-gradient(70% 90% at 100% 0%, rgba(236, 72, 153, 0.14), transparent 48%),
        linear-gradient(180deg, #fff, #f8fafc);
    color: #0f172a;
}
.notif-page-v2 .nv2-hero h1 {
    margin: 0.15rem 0 0.2rem;
    font-weight: 950;
    letter-spacing: 0.03em;
    background: linear-gradient(95deg, #fff 8%, #67e8f9 38%, #f472b6 68%, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-theme="light"] .notif-page-v2 .nv2-hero h1 {
    background: linear-gradient(95deg, #0f172a 8%, #0284c7 40%, #db2777 72%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.notif-page-v2 .nv2-hero-lead { color: #94a3b8; margin: 0; max-width: 40rem; }
.notif-page-v2 .nv2-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
}
.notif-page-v2 .nv2-stat {
    border-radius: 0.85rem;
    padding: 0.4rem 0.7rem;
    background: rgba(2, 6, 23, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.16);
    min-width: 5.6rem;
}
.notif-page-v2 .nv2-stat b {
    display: block;
    font-size: 1.15rem;
    font-weight: 950;
    color: #67e8f9;
}
.notif-page-v2 .nv2-stat span {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}
.notif-page-v2 .nv2-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}
@media (max-width: 700px) {
    .notif-page-v2 .nv2-toolbar { grid-template-columns: 1fr; }
}
.notif-page-v2 .nv2-search {
    width: 100%;
    border-radius: 0.9rem;
    border: 1px solid rgba(103, 232, 249, 0.28);
    background: rgba(15, 23, 42, 0.55);
    color: inherit;
    padding: 0.55rem 0.85rem;
}
[data-theme="light"] .notif-page-v2 .nv2-search {
    background: #fff;
    border-color: #cbd5e1;
}
.notif-page-v2 .nv2-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    margin-bottom: 1rem;
}
.notif-page-v2 .nv2-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    text-decoration: none !important;
    color: inherit !important;
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.15s ease, background 0.15s ease;
}
.notif-page-v2 .nv2-chip:hover { transform: translateY(-1px); }
.notif-page-v2 .nv2-chip.is-on {
    background: linear-gradient(90deg, #22d3ee, #a78bfa);
    color: #041016 !important;
    border-color: transparent;
}
.notif-page-v2 .nv2-feed {
    display: grid;
    gap: 0.65rem;
}
.notif-page-v2 .nv2-page-card {
    margin: 0;
    padding: 1px;
}
.notif-page-v2 .nv2-page-card .card-body { padding: 0.85rem 0.95rem; }
.notif-page-v2 .nv2-page-card:hover { transform: translateY(-2px); }
.notif-page-v2 .nv2-pager {
    display: flex;
    gap: 0.45rem;
    margin-top: 1rem;
}
.notif-page-v2 .nv2-pager a {
    border-radius: 999px;
    font-weight: 800;
    padding: 0.35rem 0.9rem;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.18), rgba(167, 139, 250, 0.18));
    border: 1px solid rgba(103, 232, 249, 0.28);
    color: inherit !important;
    text-decoration: none !important;
}

@keyframes nv2Pulse { 50% { opacity: 0.35; transform: scale(0.7); } }
@keyframes nv2Rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 575.98px) {
    #notifPanel.notif-dock-v2 {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
}
