.nav-notifications {
    position: relative;
    display: flex;
    align-items: center;
}

.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: end;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #C41E32;
    background: #C41E32;
    color: #ffff;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* .notification-bell:hover,
.notification-bell:focus-visible {
    background: rgba(196, 30, 50, 0.08);
    box-shadow: 0 6px 16px rgba(196, 30, 50, 0.12);
    transform: translateY(-1px);
} */

/* .notification-bell:focus-visible {
    outline: 3px solid rgba(196, 30, 50, 0.35);
    outline-offset: 2px;
} */

.notification-badge {
    position: absolute;
    top: 2px;
    inset-inline-end: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff;
    color: #C41E32;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(320px, 90vw);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    z-index: 1200;
    animation: notificationDropdownFade 0.2s ease;
}

[dir="rtl"] .notification-dropdown {
    right: auto;
    left: 0;
}

.notification-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(196, 30, 50, 0.08), rgba(196, 30, 50, 0));
}

.notification-dropdown__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

.notification-dropdown__mark-read {
    all: unset;
    font-size: 0.85rem;
    font-weight: 600;
    color: #C41E32;
    cursor: pointer;
    padding: 4px 0;
}

.notification-dropdown__header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-dropdown__clear {
    all: unset;
    font-size: 0.85rem;
    font-weight: 600;
    color: #C41E32;
    cursor: pointer;
    text-decoration: underline;
}

.notification-dropdown__clear[disabled] {
    opacity: 0.5;
    cursor: default;
    text-decoration: none;
}

.notification-dropdown__mark-read:hover,
.notification-dropdown__mark-read:focus-visible {
    text-decoration: underline;
}

.notification-dropdown__list {
    max-height: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notification-dropdown__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 18px;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.notification-dropdown__item.is-unread {
    background: rgba(15, 23, 42, 0.08);
}

.notification-dropdown__item.is-unread:hover {
    background: rgba(15, 23, 42, 0.12);
}

.notification-dropdown__item:last-child {
    border-bottom: none;
}

.notification-dropdown__item:hover {
    background: rgba(196, 30, 50, 0.04);
}

.notification-dropdown__entity {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(31, 41, 55, 0.72);
}

.notification-dropdown__title-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #11151c;
    text-decoration: none;
}

.notification-dropdown__title-link:hover,
.notification-dropdown__title-link:focus-visible {
    color: #C41E32;
}

.notification-dropdown__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(31, 41, 55, 0.6);
}

.notification-dropdown__empty,
.notification-dropdown__error {
    padding: 24px 18px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(31, 41, 55, 0.65);
}

.notification-dropdown__error {
    color: #C41E32;
    font-weight: 600;
}

.notification-dropdown__loading {
    padding: 24px 18px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(31, 41, 55, 0.65);
}

.notification-dropdown__footer {
    display: flex;
    justify-content: center;
    padding: 12px 18px 16px;
    background: #f9fafb;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.notification-dropdown__view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #C41E32;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* .notification-dropdown__view-all:hover,
.notification-dropdown__view-all:focus-visible {
    background: #a1192b;
    box-shadow: 0 8px 20px rgba(196, 30, 50, 0.2);
    transform: translateY(-1px);
    color: #fff;
} */

.notification-dropdown__view-all:focus-visible {
    outline: 3px solid rgba(196, 30, 50, 0.35);
    outline-offset: 2px;
}

@keyframes notificationDropdownFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.nav-notifications button:not([disabled]):focus{
    border: unset !important;
}
@media (max-width: 768px) {
    .notification-dropdown {
        right: -5px;
        width: min(300px, 80vw);
    }
    .notification-dropdown__mark-read{
        font-size: 0.75rem;
    }
    .notification-dropdown__title{
        font-size: 0.85rem;
    }
    .notification-dropdown__header-actions{
        gap: 8px;
    }
    .notification-dropdown__clear{
        font-size: 0.75rem;
    }
    .notification-dropdown__view-all{
        width: 100%;
        justify-content: center;
    }
}

.notifications-page {
    max-width: 1200px;
    margin: 4.25rem auto;
    padding: 0 1rem;}

.notifications-page__header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
    text-align: start;
}

.notifications-page__title {
    font-size: clamp(1.75rem, 2vw, 2.25rem);
    font-weight: 700;
    color: #111827;
}

.notifications-page__description {
    font-size: 1rem;
    color: rgba(31, 41, 55, 0.72);
}

.notifications-page__list {
    display: grid;
    gap: 16px;
}

.notifications-page__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 24px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notifications-page__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.notifications-page__item.is-unread {
    border-color: rgba(196, 30, 50, 0.3);
    background: rgba(196, 30, 50, 0.05);
}

.notifications-page__entity {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(31, 41, 55, 0.72);
}

.notifications-page__title-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
}

.notifications-page__title-link:hover,
.notifications-page__title-link:focus-visible {
    color: #C41E32;
    text-decoration: underline;
}

.notifications-page__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(31, 41, 55, 0.6);
}

.notifications-page__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.notifications-page__badge--unread {
    background: rgba(196, 30, 50, 0.12);
    color: #C41E32;
}

.notifications-page__empty {
    padding: 48px 24px;
    border-radius: 16px;
    border: 1px dashed rgba(15, 23, 42, 0.15);
    background: rgba(249, 250, 251, 0.9);
    text-align: center;
    font-size: 1rem;
    color: rgba(31, 41, 55, 0.65);
}

.notifications-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 24px;
}

.notifications-page__actions form {
    margin: 0;
}

.notifications-page__mark-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    background: rgba(196, 30, 50, 0.08);
    color: #C41E32;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.notifications-page__mark-read:hover,
.notifications-page__mark-read:focus-visible {
    background: rgba(196, 30, 50, 0.15);
    box-shadow: 0 8px 20px rgba(196, 30, 50, 0.15);
}

.notifications-page__clear {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    background: #C41E32;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.notifications-page__clear:hover,
.notifications-page__clear:focus-visible {
    background: #a1192b;
    box-shadow: 0 10px 24px rgba(196, 30, 50, 0.25);
}

.notifications-page__clear[disabled] {
    opacity: 0.55;
    cursor: default;
    box-shadow: none;
}

.followed-entities-page {
    max-width: 1200px;
    margin: 4.25rem auto;
    padding: 0 1rem;
}

.followed-entities-page__header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    text-align: start;
}

.followed-entities-page__title {
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    font-weight: 700;
    color: #111827;
}

.followed-entities-page__description {
    font-size: 1rem;
    color: rgba(31, 41, 55, 0.72);
}

.followed-entities-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.followed-entities-page__load-more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.followed-entities-page__load-more-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid #C41E32;
    background: #fff;
    color: #C41E32;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.followed-entities-page__load-more-button:hover,
.followed-entities-page__load-more-button:focus-visible {
    background: #C41E32;
    color: #fff;
    box-shadow: 0 10px 26px rgba(196, 30, 50, 0.22);
}

.followed-entities-page__load-more-button:focus-visible {
    outline: 3px solid rgba(196, 30, 50, 0.35);
    outline-offset: 2px;
}

.followed-entities-page__load-more-button[disabled] {
    cursor: wait;
    opacity: 0.75;
    box-shadow: none;
}

.followed-entities-page__load-more-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(196, 30, 50, 0.3);
    border-top-color: #C41E32;
    animation: notificationsLoaderSpin 0.8s linear infinite;
}

.followed-entities-page__card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.followed-entities-page__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
    border-color: rgba(196, 30, 50, 0.25);
}

.followed-entities-page__card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.followed-entities-page__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(196, 30, 50, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.followed-entities-page__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.followed-entities-page__avatar-placeholder {
    font-size: 1.6rem;
    font-weight: 700;
    color: #C41E32;
}

.followed-entities-page__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.followed-entities-page__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.followed-entities-page__type,
.followed-entities-page__since {
    font-size: 0.9rem;
    color: rgba(31, 41, 55, 0.7);
}

.followed-entities-page__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.followed-entities-page__action-form {
    margin: 0;
}

.followed-entities-page__action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #C41E32;
    background: white;
    color: #C41E32;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.followed-entities-page__action-button:hover,
.followed-entities-page__action-button:focus-visible {
    background: #a1192b;
    box-shadow: 0 10px 24px rgba(196, 30, 50, 0.25);
    transform: translateY(-1px);
    color: #fff;
}

.followed-entities-page__action-button:focus-visible {
    outline: 3px solid rgba(196, 30, 50, 0.35);
    outline-offset: 2px;
}

.followed-entities-page__unfollow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(196, 30, 50, 0.1);
    color: #C41E32;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(196, 30, 50, 0.25);
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.followed-entities-page__unfollow-button:hover,
.followed-entities-page__unfollow-button:focus-visible {
    background: rgba(196, 30, 50, 0.18);
    color: #a1192b;
    box-shadow: 0 8px 20px rgba(196, 30, 50, 0.15);
    transform: translateY(-1px);
}

.followed-entities-page__unfollow-button:focus-visible {
    outline: 3px solid rgba(196, 30, 50, 0.35);
    outline-offset: 2px;
}

.followed-entities-page__empty {
    padding: 48px 24px;
    border-radius: 16px;
    border: 1px dashed rgba(15, 23, 42, 0.15);
    background: rgba(249, 250, 251, 0.9);
    text-align: center;
    font-size: 1rem;
    color: rgba(31, 41, 55, 0.65);
}

.followed-entities-page__notice {
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.followed-entities-page__notice.is-success {
    background: rgba(16, 185, 129, 0.15);
    color: #0f5132;
}

.followed-entities-page__notice.is-error {
    background: rgba(239, 68, 68, 0.15);
    color: #7f1d1d;
}

.notifications-page__notice {
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.notifications-page__notice.is-success {
    background: rgba(16, 185, 129, 0.15);
    color: #0f5132;
}

.notifications-page__notice.is-error {
    background: rgba(239, 68, 68, 0.15);
    color: #7f1d1d;
}

.notifications-page__load-more {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.notifications-page__load-more-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid #C41E32;
    background: #fff;
    color: #C41E32;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.notifications-page__load-more-button:hover,
.notifications-page__load-more-button:focus-visible {
    background: #C41E32;
    color: #fff;
    box-shadow: 0 8px 22px rgba(196, 30, 50, 0.2);
}

.notifications-page__load-more-button:focus-visible {
    outline: 3px solid rgba(196, 30, 50, 0.35);
    outline-offset: 2px;
}

.notifications-page__load-more-button[disabled] {
    cursor: wait;
    opacity: 0.75;
    box-shadow: none;
}

.notifications-page__load-more-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(196, 30, 50, 0.3);
    border-top-color: #C41E32;
    animation: notificationsLoaderSpin 0.8s linear infinite;
}

@keyframes notificationsLoaderSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .notifications-page {
        padding: 0 1rem;
    }

    .notifications-page__item {
        padding: 18px;
    }

    .notifications-page__actions {
        justify-content: center;
    }

    .followed-entities-page {
        padding: 0 1rem;
    }

    .followed-entities-page__grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .followed-entities-page__card {
        padding: 18px;
    }
    .followed-entities-page__card-header{
        display: grid;
        align-items: center;
        gap: 16px;
    }
    .followed-entities-page__actions {
        display: flex;
        justify-content: flex-start;
    }
    .followed-entities-page__action-button{
        padding: 6px 13px;
    }
    .followed-entities-page__unfollow-button{
        padding: 6px 13px;
    }
}
.followed-entities-info{
    display: flex;
    align-items: center;
    gap: 20px;
}