﻿/* ── Split backgrounds ── */
.side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 32px;
    gap: 16px;
}

.side--dark {
    background: linear-gradient(160deg, #0d1b2a 0%, #162336 60%, #0a1520 100%);
}

.side--light {
    background: #f1f3f7;
}

.side__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.side--dark .side__label {
    color: rgba(255,255,255,.35);
}

.side--light .side__label {
    color: #9ca3af;
}

/* ════════════════════════════════════
   SHARED POPUP SHELL
════════════════════════════════════ */
.notif-popup {
    width: 380px;
    border-radius: 20px;
    overflow: hidden;
}

/* ════════════════════════════════════
   DARK THEME
════════════════════════════════════ */
.notif-popup--dark {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 32px 64px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04) inset, 0 1px 0 rgba(255,255,255,.12) inset;
    animation: popIn .3s cubic-bezier(.34,1.56,.64,1) both;
}

    .notif-popup--dark .notif-popup__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
        padding: 16px 18px 12px;
        border-bottom: 1px solid rgba(255,255,255,.07);
        background: rgba(255,255,255,.03);
    }

    .notif-popup--dark .notif-popup__title {
        font-size: 15px;
        font-weight: 700;
        color: #f0f4f8;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .notif-popup--dark .notif-popup__title::before {
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #3b9eff;
            box-shadow: 0 0 8px #3b9eff;
            animation: pulseDark 2s infinite;
            display: inline-block;
            flex-shrink: 0;
        }

@keyframes pulseDark {
    0%,100% {
        box-shadow: 0 0 4px #3b9eff;
    }

    50% {
        box-shadow: 0 0 14px #3b9eff, 0 0 22px rgba(59,158,255,.4);
    }
}

.notif-popup--dark .notif-popup__actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.notif-popup--dark .notif-btn {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 13px;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,.14);
    background: transparent;
    color: rgba(255,255,255,.55);
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

    .notif-popup--dark .notif-btn:hover {
        background: rgba(255,255,255,.08);
        color: rgba(255,255,255,.85);
    }

    .notif-popup--dark .notif-btn.active {
        background: rgba(59,158,255,.18);
        color: #7dc4ff;
        border-color: rgba(59,158,255,.35);
    }

.notif-popup--dark .notif-btn--mark {
    background: linear-gradient(135deg,#1a6fff,#0a4fd4);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(26,111,255,.35);
    font-weight: 600;
}

    .notif-popup--dark .notif-btn--mark:hover {
        background: linear-gradient(135deg,#3381ff,#1a5fe0);
        box-shadow: 0 4px 18px rgba(26,111,255,.5);
        transform: translateY(-1px);
    }

.notif-popup--dark .notif-popup__list {
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}

.notif-popup--dark .notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    cursor: pointer;
    transition: background .18s;
    position: relative;
    background: transparent;
}

    .notif-popup--dark .notif-item:last-child {
        border-bottom: none;
    }

    .notif-popup--dark .notif-item:hover {
        background: rgba(255,255,255,.04);
    }

    .notif-popup--dark .notif-item.unread::after {
        content: '';
        position: absolute;
        inset-inline-end: 18px;
        top: 50%;
        transform: translateY(-50%);
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #3b9eff;
        box-shadow: 0 0 6px #3b9eff;
    }

.notif-popup--dark .notif-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg,rgba(59,158,255,.2),rgba(59,158,255,.06));
    border: 1px solid rgba(59,158,255,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

    .notif-popup--dark .notif-item__icon.green {
        background: linear-gradient(135deg,rgba(52,199,89,.2),rgba(52,199,89,.06));
        border-color: rgba(52,199,89,.22);
    }

    .notif-popup--dark .notif-item__icon.orange {
        background: linear-gradient(135deg,rgba(255,149,0,.2),rgba(255,149,0,.06));
        border-color: rgba(255,149,0,.22);
    }

.notif-popup--dark .notif-item__body {
    flex: 1;
    min-width: 0;
    padding-inline-end: 18px;
}

.notif-popup--dark .notif-item__text {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .notif-popup--dark .notif-item__text strong {
        color: #f0f4f8;
        font-weight: 600;
    }

.notif-popup--dark .notif-item__time {
    font-size: 11px;
    color: rgba(255,255,255,.3);
    margin-top: 5px;
}

.notif-popup--dark .notif-popup__footer {
    padding: 10px 18px 14px;
    border-top: 1px solid rgba(255,255,255,.07);
    background: rgba(0,0,0,.15);
}

.notif-popup--dark .notif-btn--load {
    width: 100%;
    font-size: 13px;
    font-weight: 500;
    padding: 9px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.4);
    cursor: pointer;
    transition: all .2s;
}

    .notif-popup--dark .notif-btn--load:hover {
        background: rgba(255,255,255,.07);
        border-color: rgba(255,255,255,.18);
        color: rgba(255,255,255,.65);
    }

/* ════════════════════════════════════
   LIGHT THEME
════════════════════════════════════ */
.notif-popup--light {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 8px 24px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
    animation: popIn .3s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notif-popup--light .notif-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(0,0,0,.07);
    background: #f8f9fb;
}

.notif-popup--light .notif-popup__title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .notif-popup--light .notif-popup__title::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #1a6fff;
        box-shadow: 0 0 6px rgba(26,111,255,.5);
        animation: pulseLight 2s infinite;
        display: inline-block;
        flex-shrink: 0;
    }

@keyframes pulseLight {
    0%,100% {
        box-shadow: 0 0 4px rgba(26,111,255,.4);
    }

    50% {
        box-shadow: 0 0 10px rgba(26,111,255,.7);
    }
}

.notif-popup--light .notif-popup__actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.notif-popup--light .notif-btn {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 13px;
    border-radius: 99px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

    .notif-popup--light .notif-btn:hover {
        background: #f0f5ff;
        color: #1a6fff;
        border-color: rgba(26,111,255,.3);
    }

    .notif-popup--light .notif-btn.active {
        background: rgba(26,111,255,.10);
        color: #1a6fff;
        border-color: rgba(26,111,255,.35);
        font-weight: 600;
    }

.notif-popup--light .notif-btn--mark {
    background: linear-gradient(135deg,#1a6fff,#0a4fd4);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(26,111,255,.30);
    font-weight: 600;
}

    .notif-popup--light .notif-btn--mark:hover {
        background: linear-gradient(135deg,#3381ff,#1a5fe0);
        box-shadow: 0 4px 16px rgba(26,111,255,.45);
        transform: translateY(-1px);
        color: #fff;
    }

.notif-popup--light .notif-popup__list {
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.12) transparent;
}

.notif-popup--light .notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    cursor: pointer;
    transition: background .18s;
    position: relative;
    background: #fff;
}

    .notif-popup--light .notif-item:last-child {
        border-bottom: none;
    }

    .notif-popup--light .notif-item:hover {
        background: #f5f8ff;
    }

    .notif-popup--light .notif-item.unread {
        background: #f0f6ff;
    }

        .notif-popup--light .notif-item.unread:hover {
            background: #e8f0ff;
        }

        .notif-popup--light .notif-item.unread::before {
            content: '';
            position: absolute;
            inset-inline-start: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(180deg,#1a6fff,#0a4fd4);
            border-radius: 0 2px 2px 0;
        }

        .notif-popup--light .notif-item.unread::after {
            content: '';
            position: absolute;
            inset-inline-end: 18px;
            top: 50%;
            transform: translateY(-50%);
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #1a6fff;
            box-shadow: 0 0 5px rgba(26,111,255,.5);
        }

.notif-popup--light .notif-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg,rgba(26,111,255,.14),rgba(26,111,255,.05));
    border: 1px solid rgba(26,111,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

    .notif-popup--light .notif-item__icon.green {
        background: linear-gradient(135deg,rgba(16,185,129,.14),rgba(16,185,129,.05));
        border-color: rgba(16,185,129,.20);
    }

    .notif-popup--light .notif-item__icon.orange {
        background: linear-gradient(135deg,rgba(245,158,11,.14),rgba(245,158,11,.05));
        border-color: rgba(245,158,11,.20);
    }

.notif-popup--light .notif-item__body {
    flex: 1;
    min-width: 0;
    padding-inline-end: 20px;
}

.notif-popup--light .notif-item__text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .notif-popup--light .notif-item__text strong {
        color: #111827;
        font-weight: 600;
    }

.notif-popup--light .notif-item__time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 5px;
}

.notif-popup--light .notif-popup__footer {
    padding: 10px 18px 14px;
    border-top: 1px solid rgba(0,0,0,.07);
    background: #f8f9fb;
}

.notif-popup--light .notif-btn--load {
    width: 100%;
    font-size: 13px;
    font-weight: 500;
    padding: 9px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.10);
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: all .2s;
}

    .notif-popup--light .notif-btn--load:hover {
        background: #f0f5ff;
        border-color: rgba(26,111,255,.25);
        color: #1a6fff;
    }

.notif-empty {
    color: #1a6fff;
}