/* ─────────────────────────────────────────────────────────────
   Notifications — bell + dropdown, scoped to .notif
   Aesthetic: dark neo-luxe, teal pulse, refined glass
   ───────────────────────────────────────────────────────────── */

.notif {
    position: relative;
    --notif-teal: #00C7B1;
    --notif-teal-deep: #008979;
    --notif-glass: linear-gradient(245deg, #1F1F1F -0.21%, #323232 59.47%, #1F1F1F 93.38%);
    --notif-line: rgba(255, 255, 255, 0.08);
}

/* Bell trigger */
.notif__trigger {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--notif-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.00) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.notif__trigger:hover {
    border-color: rgba(0, 199, 177, 0.55);
    background: linear-gradient(180deg, rgba(0, 199, 177, 0.10) 0%, rgba(0, 199, 177, 0.00) 100%);
}
.notif__trigger svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    flex-shrink: 0;
    display: block;
    stroke: #fff;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    pointer-events: none;
}
.notif--has-unread .notif__trigger svg {
    animation: notifWobble 2.6s ease-in-out infinite;
    transform-origin: 50% 10%;
    stroke: var(--notif-teal);
}
@keyframes notifWobble {
    0%, 60%, 100% { transform: rotate(0); }
    65% { transform: rotate(14deg); }
    72% { transform: rotate(-12deg); }
    79% { transform: rotate(8deg); }
    86% { transform: rotate(-5deg); }
    92% { transform: rotate(2deg); }
}

/* Unread count badge */
.notif__badge {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--notif-teal);
    color: #001815;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 0 0 2px #000, 0 0 18px rgba(0, 199, 177, 0.7);
    transform: scale(0);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    pointer-events: none;
}
.notif--has-unread .notif__badge { transform: scale(1); }
.notif--has-unread .notif__badge::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--notif-teal);
    animation: notifPing 1.8s ease-out infinite;
    z-index: -1;
}
@keyframes notifPing {
    0%   { transform: scale(1); opacity: .7; }
    80%  { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* Panel */
.notif__panel {
    position: absolute;
    top: calc(100% + 14px);
    inset-inline-end: 0;
    width: 380px;
    max-width: 92vw;
    border-radius: 18px;
    border: 1px solid var(--notif-line);
    background: var(--notif-glass);
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(0, 199, 177, 0.05) inset;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.98);
    transform-origin: top var(--notif-anchor, right);
    transition:
        opacity .25s ease,
        transform .35s cubic-bezier(.34,1.56,.64,1),
        visibility 0s linear .35s;
    z-index: 1100;
}
html[dir="ltr"] .notif__panel { --notif-anchor: right; }
html[dir="rtl"] .notif__panel { --notif-anchor: left; }
.notif--open .notif__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity .25s ease, transform .35s cubic-bezier(.34,1.56,.64,1), visibility 0s;
}

/* Panel arrow / accent rail */
.notif__panel::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(0, 199, 177, 0) 0%,
        rgba(0, 199, 177, 0.8) 50%,
        rgba(0, 199, 177, 0) 100%);
}

/* Header row */
.notif__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid var(--notif-line);
}
.notif__head-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.notif__head-title h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: .2px;
}
.notif__head-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--notif-teal);
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 199, 177, 0.10);
    border: 1px solid rgba(0, 199, 177, 0.25);
}
.notif__mark-all {
    appearance: none;
    background: none;
    border: 0;
    padding: 6px 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease;
}
.notif__mark-all:not(:disabled):hover {
    color: var(--notif-teal);
    background: rgba(0, 199, 177, 0.08);
}
.notif__mark-all:disabled { opacity: .35; cursor: default; }

/* List */
.notif__list {
    max-height: 420px;
    overflow-y: auto;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 199, 177, 0.4) transparent;
}
.notif__list::-webkit-scrollbar { width: 6px; }
.notif__list::-webkit-scrollbar-thumb {
    background: rgba(0, 199, 177, 0.4);
    border-radius: 10px;
}

/* Item */
.notif__item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.notif__item:last-child { border-bottom: 0; }
.notif__item:hover { background: rgba(255, 255, 255, 0.03); }

/* Unread shimmer rail */
.notif__item--unread::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    inset-inline-start: 8px;
    width: 3px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--notif-teal), var(--notif-teal-deep));
    box-shadow: 0 0 10px rgba(0, 199, 177, 0.6);
}
.notif__item--unread { background: rgba(0, 199, 177, 0.04); }
.notif__item--unread:hover { background: rgba(0, 199, 177, 0.08); }

.notif__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 199, 177, 0.10);
    border: 1px solid rgba(0, 199, 177, 0.25);
    color: var(--notif-teal);
    font-size: 16px;
    font-weight: 700;
}
.notif__icon svg { width: 18px; height: 18px; min-width: 18px; flex-shrink: 0; display: block; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notif__icon i { font-size: 16px; line-height: 1; color: currentColor; }

.notif__body { flex: 1; min-width: 0; }
.notif__title {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif__msg {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 6px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif__time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: .2px;
}
.notif__item--unread .notif__title { color: var(--notif-teal); }

/* Empty state */
.notif__empty {
    padding: 36px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}
.notif__empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 199, 177, 0.06);
    border: 1px dashed rgba(0, 199, 177, 0.25);
    color: var(--notif-teal);
}
.notif__empty-title {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px;
}
.notif__empty-sub {
    font-size: 12px;
    margin: 0;
}

/* Loading skeleton */
.notif__loading {
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.notif__skeleton-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.notif__skeleton {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 100%);
    background-size: 200% 100%;
    animation: notifShimmer 1.4s ease-in-out infinite;
    border-radius: 8px;
}
.notif__skeleton--avatar { width: 36px; height: 36px; border-radius: 10px; }
.notif__skeleton--line { height: 10px; flex: 1; }
.notif__skeleton--line.short { max-width: 60%; }
@keyframes notifShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Footer */
.notif__foot {
    border-top: 1px solid var(--notif-line);
    padding: 12px 20px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 199, 177, 0.04) 100%);
}
.notif__foot a {
    color: #fff;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease, gap .25s ease;
}
.notif__foot a:hover { color: var(--notif-teal); background: rgba(0, 199, 177, 0.08); gap: 12px; }
.notif__foot a .arrow { transition: transform .25s ease; }
html[dir="rtl"] .notif__foot a:hover .arrow { transform: translateX(-3px); }
html[dir="ltr"] .notif__foot a:hover .arrow { transform: translateX(3px); }

/* Mobile */
@media (max-width: 614.4px) {
    .notif__panel {
        position: fixed;
        top: auto;
        bottom: 0;
        inset-inline-end: 0;
        inset-inline-start: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 18px 18px 0 0;
        transform: translateY(20px);
    }
    .notif--open .notif__panel { transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────────
   Full notifications page
   ───────────────────────────────────────────────────────────── */
.notifPage {
    --notif-teal: #00C7B1;
    --notif-teal-deep: #008979;
    padding: 60px 0 100px;
    color: #fff;
    position: relative;
}
.notifPage__wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px;
}
.notifPage__hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.notifPage__eyebrow {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--notif-teal);
    margin: 0 0 8px;
    font-weight: 600;
}
.notifPage__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.1;
}
.notifPage__title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--notif-teal), #2BFFFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.notifPage__sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    max-width: 460px;
}
.notifPage__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.notifPage__filter {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
}
.notifPage__filter a {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
}
.notifPage__filter a:hover { color: #fff; }
.notifPage__filter a.is-active {
    background: linear-gradient(135deg, var(--notif-teal), var(--notif-teal-deep));
    color: #001815;
    font-weight: 600;
}
.notifPage__btn {
    appearance: none;
    border: 1px solid rgba(0, 199, 177, 0.4);
    background: rgba(0, 199, 177, 0.08);
    color: var(--notif-teal);
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}
.notifPage__btn:hover:not(:disabled) {
    background: var(--notif-teal);
    color: #001815;
}
.notifPage__btn:disabled { opacity: .4; cursor: default; }

.notifPage__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.notifCard {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(245deg, rgba(31,31,31,.7) 0%, rgba(50,50,50,.5) 60%, rgba(31,31,31,.7) 100%);
    backdrop-filter: blur(20px);
    text-decoration: none;
    color: inherit;
    transition: border-color .25s ease, transform .25s ease, background .25s ease;
    overflow: hidden;
}
.notifCard:hover {
    border-color: rgba(0, 199, 177, 0.45);
    transform: translateY(-2px);
}
.notifCard--unread {
    border-color: rgba(0, 199, 177, 0.3);
    background: linear-gradient(245deg, rgba(0,199,177,.08) 0%, rgba(50,50,50,.5) 60%, rgba(0,199,177,.04) 100%);
}
.notifCard--unread::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--notif-teal), var(--notif-teal-deep));
    box-shadow: 0 0 14px rgba(0, 199, 177, 0.6);
}
.notifCard__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 199, 177, 0.10);
    border: 1px solid rgba(0, 199, 177, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--notif-teal);
}
.notifCard__icon svg { width: 22px; height: 22px; min-width: 22px; flex-shrink: 0; display: block; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notifCard__body { flex: 1; min-width: 0; }
.notifCard__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.notifCard__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.notifCard--unread .notifCard__title { color: var(--notif-teal); }
.notifCard__time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}
.notifCard__msg {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}
.notifCard__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--notif-teal);
    box-shadow: 0 0 0 4px rgba(0, 199, 177, 0.15);
    flex-shrink: 0;
    align-self: center;
}

.notifPage__empty {
    padding: 80px 24px;
    text-align: center;
    border: 1px dashed rgba(0, 199, 177, 0.2);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(0, 199, 177, 0.03) 0%, rgba(0, 199, 177, 0.00) 100%);
}
.notifPage__empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: rgba(0, 199, 177, 0.06);
    border: 1px solid rgba(0, 199, 177, 0.20);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--notif-teal);
}
.notifPage__empty h3 { color: #fff; font-size: 20px; margin: 0 0 8px; }
.notifPage__empty p { color: rgba(255, 255, 255, 0.55); margin: 0; }

.notifPage__pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}
