.notifications-page {
    --notif-surface: linear-gradient(180deg, rgba(10, 18, 14, 0.94) 0%, rgba(6, 12, 9, 0.98) 100%);
    --notif-surface-strong: rgba(11, 20, 15, 0.92);
    --notif-outline: rgba(var(--accent-rgb), 0.14);
    --notif-outline-strong: rgba(var(--accent-rgb), 0.28);
    --notif-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    padding: 32px 0 72px;
    min-height: 70vh;
    background:
        radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(79, 255, 181, 0.08), transparent 24%),
        var(--bg-main);
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.notifications-page > .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.notifications-shell {
    width: min(1820px, calc(100% - 16px));
    margin: 0 auto;
}

.notifications-hero,
.notifications-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--notif-outline);
    border-radius: 28px;
    background: var(--notif-surface);
    box-shadow: var(--notif-shadow);
}

.notifications-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    margin-bottom: 20px;
}

.notifications-hero::before,
.notifications-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), transparent 38%);
}

.notifications-hero--compact {
    display: block;
    max-width: 720px;
    margin: 32px auto 0;
}

.notifications-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notifications-hero__title {
    margin: 14px 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    color: var(--text-main);
}

.notifications-hero__text {
    max-width: 620px;
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

.notifications-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 12px;
    min-width: min(100%, 260px);
}

.notifications-stat {
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

.notifications-stat--accent {
    border-color: rgba(var(--accent-rgb), 0.24);
    background: rgba(var(--accent-rgb), 0.1);
}

.notifications-stat__label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.notifications-stat__value {
    color: var(--text-main);
    font-size: 28px;
    line-height: 1;
}

.notifications-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 24px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.92), rgba(173, 255, 79, 0.92));
    color: #071008;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 16px 32px rgba(var(--accent-rgb), 0.22);
}

.notifications-panel {
    padding: 28px;
}

.notifications-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.notifications-toolbar__copy h2 {
    margin: 0 0 8px;
    color: var(--text-main);
    font-size: 22px;
}

.notifications-toolbar__copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.notif-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.notif-btn {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.notif-btn:hover {
    transform: translateY(-1px);
    border-color: var(--notif-outline-strong);
    background: rgba(var(--accent-rgb), 0.08);
}

.notif-btn--danger {
    border-color: rgba(255, 96, 96, 0.22);
    color: #ff7b7b;
}

.notif-btn--danger:hover {
    border-color: rgba(255, 96, 96, 0.44);
    background: rgba(255, 96, 96, 0.08);
}

.notif-tabs,
.notif-tabs-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.notif-tabs {
    margin-bottom: 24px;
}

.notif-tabs-sub {
    margin-bottom: 18px;
}

.notif-tab,
.notif-tab-sub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.notif-tab.active,
.notif-tab-sub.active {
    color: var(--text-main);
    border-color: rgba(var(--accent-rgb), 0.22);
    background: rgba(var(--accent-rgb), 0.12);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.08);
}

.notif-tab .count,
.notif-tab-sub .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--accent);
    color: #081208;
    font-size: 11px;
    font-weight: 800;
}

.notif-group,
.notif-grid-sub {
    display: none;
}

.notif-group.active,
.notif-grid-sub.active {
    display: block;
}

.notif-grid {
    display: grid;
    gap: 14px;
}

.notif-card {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        var(--notif-surface-strong);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.notif-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), 0.18);
    background:
        linear-gradient(135deg, rgba(var(--accent-rgb), 0.06), rgba(255, 255, 255, 0)),
        rgba(11, 20, 15, 0.98);
}

.notif-card.unread {
    border-color: rgba(var(--accent-rgb), 0.18);
    box-shadow: inset 3px 0 0 var(--accent);
}

.notif-check-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.notif-check {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.notif-check-ui {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.notif-check:checked + .notif-check-ui {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.9), rgba(173, 255, 79, 0.9));
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.notif-card__cover {
    width: 64px;
    height: 88px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.notif-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notif-card__body {
    min-width: 0;
}

.notif-card__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notif-card__pulse {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.12);
}

.notif-card__message {
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 600;
}

.notif-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    color: var(--text-muted);
}

.notif-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.notif-badge.paid,
.notif-badge.default {
    color: var(--accent);
}

.notif-badge.social {
    color: #96ffe2;
    border-color: rgba(150, 255, 226, 0.18);
    background: rgba(150, 255, 226, 0.08);
}

.notif-badge.moderation {
    color: #ffd36a;
    border-color: rgba(255, 211, 106, 0.2);
    background: rgba(255, 211, 106, 0.08);
}

.notif-badge.success {
    color: #adff82;
    border-color: rgba(173, 255, 130, 0.18);
    background: rgba(173, 255, 130, 0.08);
}

.notif-badge.danger {
    color: #ff8e8e;
    border-color: rgba(255, 142, 142, 0.18);
    background: rgba(255, 142, 142, 0.08);
}

.notif-card__date {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.notif-card__actions {
    justify-self: end;
}

.notif-card__action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.08));
    color: var(--text-main);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.notif-card__action-link:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--accent-rgb), 0.32);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.24), rgba(var(--accent-rgb), 0.1));
}

.notif-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 18px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
}

.notif-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
    font-size: 18px;
    line-height: 1;
}

.notif-empty p {
    margin: 0;
    font-size: 14px;
}

.notif-loading {
    padding: 28px 18px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    text-align: center;
    font-size: 14px;
}

.notif-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    border-radius: 16px;
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.notif-load-more:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--accent-rgb), 0.28);
    background: rgba(var(--accent-rgb), 0.14);
}

.notif-feed__sentinel {
    width: 100%;
    height: 2px;
}

@media (max-width: 920px) {
    .notifications-hero,
    .notifications-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .notifications-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notif-actions {
        justify-content: flex-start;
    }

    .notif-card {
        grid-template-columns: auto auto minmax(0, 1fr);
    }

    .notif-card__actions {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .notif-card__action-link {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .notifications-page {
        padding: 18px 0 48px;
    }

    .notifications-shell {
        width: min(100% - 10px, 100%);
    }

    .notifications-hero,
    .notifications-panel {
        border-radius: 22px;
    }

    .notifications-hero,
    .notifications-panel {
        padding: 18px;
    }

    .notif-tab,
    .notif-tab-sub,
    .notif-btn {
        width: 100%;
        justify-content: center;
    }

    .notif-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .notif-card__cover {
        width: 58px;
        height: 80px;
    }

    .notif-card__message {
        font-size: 15px;
    }
}
