/* notifications.css - Стили для страницы уведомлений */
/* Все цвета заменены на переменные из :root */

.notifications-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 160px);
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bg-elevated);
}

.notifications-header h1 {
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-primary);
}

.notifications-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    background: var(--bg-elevated);
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--accent-primary);
    color: var(--text-main);
}

.notification-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bg-elevated);
}

.filter-btn {
    background: var(--bg-elevated);
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn i {
    font-size: 0.8rem;
}

.filter-btn:hover {
    background: rgba(255, 107, 157, 0.2);
    color: var(--accent-primary);
}

.filter-btn.active {
    background: var(--accent-primary);
    color: var(--text-main);
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: var(--transition);
    border: 1px solid var(--bg-elevated);
}

.notification-item:hover {
    transform: translateX(5px);
    border-color: var(--accent-primary);
}

.notification-item.unread {
    background: rgba(255, 107, 157, 0.05);
    border-left: 3px solid var(--accent-primary);
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.new_chapter {
    background: rgba(58, 134, 255, 0.15);
    color: var(--accent-blue);
}

.notification-icon.friend_request {
    background: rgba(255, 209, 102, 0.15);
    color: var(--accent-yellow);
}

.notification-icon.friend_accept {
    background: rgba(6, 214, 160, 0.15);
    color: var(--accent-green);
}

.notification-icon.comment_reply {
    background: rgba(131, 56, 236, 0.15);
    color: #8338EC;
}

.notification-icon.status_change {
    background: rgba(255, 107, 157, 0.15);
    color: var(--accent-primary);
}

.notification-icon.announcement {
    background: rgba(255, 107, 157, 0.15);
    color: var(--accent-primary);
}

.notification-content {
    flex: 1;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.notification-type {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.notification-type.new_chapter {
    background: rgba(58, 134, 255, 0.2);
    color: var(--accent-blue);
}

.notification-type.friend_request {
    background: rgba(255, 209, 102, 0.2);
    color: var(--accent-yellow);
}

.notification-type.friend_accept {
    background: rgba(6, 214, 160, 0.2);
    color: var(--accent-green);
}

.notification-type.comment_reply {
    background: rgba(131, 56, 236, 0.2);
    color: #8338EC;
}

.notification-type.status_change {
    background: rgba(255, 107, 157, 0.2);
    color: var(--accent-primary);
}

.notification-type.announcement {
    background: rgba(255, 107, 157, 0.2);
    color: var(--accent-primary);
}

.notification-time {
    font-size: 0.7rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 5px;
}

.notification-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.notification-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

.notification-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mark-read-btn {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 20px;
    transition: var(--transition);
}

.mark-read-btn:hover {
    background: rgba(255, 107, 157, 0.1);
}

.notification-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.75rem;
}

.notification-link:hover {
    text-decoration: underline;
}

.empty-notifications {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.empty-notifications i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.3;
    color: var(--accent-primary);
}

.empty-notifications p {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.empty-notifications small {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.loading-spinner {
    text-align: center;
    padding: 60px;
    color: var(--accent-primary);
}

.loading-spinner i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Toast уведомления */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

.toast-content {
    background: var(--bg-elevated);
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    box-shadow: var(--shadow-md);
}

.toast-success .toast-content {
    background: var(--accent-green);
}

.toast-error .toast-content {
    background: #EF476F;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .notifications-page {
        padding: 15px;
    }
    
    .notifications-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .notification-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .notification-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .notification-icon {
        width: 40px;
        height: 40px;
    }
    
    .notification-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Дополнительные стили для кнопки перехода на главу */
.notification-link {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.15), rgba(17, 138, 178, 0.1));
    color: var(--accent-blue);
    font-weight: 500;
}

.notification-link:hover {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.25), rgba(17, 138, 178, 0.2));
    transform: translateX(2px);
}

.notification-link i {
    transition: transform 0.2s;
}

.notification-link:hover i {
    transform: translateX(3px);
}

/* Общий стиль для всех кнопок действий */
.notification-actions button,
.notification-actions a {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    font-weight: 500;
}

.mark-read-btn {
    background: rgba(6, 214, 160, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(6, 214, 160, 0.2);
}

.mark-read-btn:hover {
    background: rgba(6, 214, 160, 0.25);
    border-color: rgba(6, 214, 160, 0.4);
}

.delete-notification-btn {
    background: rgba(239, 71, 111, 0.12);
    color: #EF476F;
    border: 1px solid rgba(239, 71, 111, 0.2);
}

.delete-notification-btn:hover {
    background: rgba(239, 71, 111, 0.25);
    border-color: rgba(239, 71, 111, 0.4);
}

/* Дополнительный стиль для информации о главе */
.notification-chapter-info {
    font-size: 12px;
    color: var(--accent-yellow);
    margin-bottom: 4px;
    font-weight: 500;
}

.notification-chapter-info i {
    margin-right: 4px;
}

/* Боковые фильтры - Панель фильтрации */
.notifications-sidebar-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-elevated);
}

.filter-group {
    flex: 1;
}

.filter-group-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group-label i {
    font-size: 0.7rem;
}

.read-filter-group,
.sort-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.read-filter-btn,
.sort-btn {
    background: var(--bg-elevated);
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-filter-btn i,
.sort-btn i {
    font-size: 0.7rem;
}

.read-filter-btn:hover,
.sort-btn:hover {
    background: rgba(255, 107, 157, 0.2);
    color: var(--accent-primary);
}

.read-filter-btn.active,
.sort-btn.active {
    background: var(--accent-primary);
    color: var(--text-main);
}

/* Стили для обложек новелл */
.notification-novel-cover {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.notification-novel-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-novel-title {
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-volume-info {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Пагинация */
.pagination-container {
    margin-top: 30px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-elevated);
}

.pagination-container.hidden {
    display: none;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pagination-btn {
    background: var(--bg-elevated);
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    color: var(--accent-primary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--accent-primary);
    color: var(--text-main);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
    padding: 6px 12px;
    border-radius: 20px;
}

.per-page-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.per-page-control label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.per-page-select {
    background: var(--bg-elevated);
    border: 1px solid var(--bg-elevated);
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
}

.per-page-select:hover {
    border-color: var(--accent-primary);
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-jump label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.page-select {
    background: var(--bg-elevated);
    border: 1px solid var(--bg-elevated);
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
}

.page-select:hover {
    border-color: var(--accent-primary);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .notifications-sidebar-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .read-filter-group,
    .sort-group {
        justify-content: flex-start;
    }
    
    .notification-novel-cover {
        width: 40px;
        height: 40px;
    }
    
    .pagination-container {
        flex-direction: column;
        align-items: center;
    }
    
    .pagination-controls {
        order: 2;
    }
    
    .per-page-control {
        order: 1;
    }
    
    .page-jump {
        order: 3;
    }
}

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
.notifications-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    gap: 40px;
}

/* ===== БОКОВАЯ ПАНЕЛЬ ===== */
.notifications-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 12px;
}

.status-filters {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-filter,
.sort-filter {
    background: none;
    border: none;
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.status-filter:hover,
.sort-filter:hover {
    background: rgba(255, 107, 157, 0.1);
    color: var(--accent-primary);
}

.status-filter.active,
.sort-filter.active {
    background: rgba(255, 107, 157, 0.15);
    color: var(--accent-primary);
    font-weight: 500;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.notifications-main {
    flex: 1;
    min-width: 0;
}

/* Верхние кнопки типов уведомлений */
.notifications-types {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bg-elevated);
}

.type-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.type-btn:hover {
    color: var(--accent-primary);
}

.type-btn.active {
    background: var(--accent-primary);
    color: var(--text-main);
}

.type-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: normal;
}

.type-btn.active .type-count {
    background: rgba(255, 255, 255, 0.25);
}

/* ===== КАРТОЧКИ УВЕДОМЛЕНИЙ ===== */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notification-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
    border: 1px solid var(--bg-elevated);
    cursor: pointer;
}

.notification-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.notification-card.unread {
    background: rgba(255, 107, 157, 0.04);
    border-left: 3px solid var(--accent-primary);
}

.notification-card.read {
    opacity: 0.85;
}

/* Шапка карточки */
.notification-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.notification-badge {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(58, 134, 255, 0.15);
    color: var(--accent-blue);
}

.notification-badge.new_chapter {
    background: rgba(58, 134, 255, 0.15);
    color: var(--accent-blue);
}

.notification-time {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Название новеллы */
.notification-novel {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-novel i {
    font-size: 14px;
}

/* Информация о главе */
.notification-chapter {
    font-size: 14px;
    color: var(--accent-yellow);
    margin-bottom: 8px;
    font-weight: 500;
}

/* Текст уведомления */
.notification-message {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

/* Кнопки действий */
.notification-actions {
    display: flex;
    gap: 12px;
}

.mark-read-btn,
.delete-notification-btn,
.notification-link-btn {
    background: none;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mark-read-btn {
    background: rgba(6, 214, 160, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(6, 214, 160, 0.2);
}

.mark-read-btn:hover {
    background: rgba(6, 214, 160, 0.25);
}

.delete-notification-btn {
    background: rgba(239, 71, 111, 0.12);
    color: #EF476F;
    border: 1px solid rgba(239, 71, 111, 0.2);
}

.delete-notification-btn:hover {
    background: rgba(239, 71, 111, 0.25);
}

.notification-link-btn {
    background: rgba(58, 134, 255, 0.12);
    color: var(--accent-blue);
    border: 1px solid rgba(58, 134, 255, 0.2);
}

.notification-link-btn:hover {
    background: rgba(58, 134, 255, 0.25);
}

/* Пустое состояние */
.empty-notifications {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.empty-notifications i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
    color: var(--accent-primary);
}

.empty-notifications p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.empty-notifications small {
    font-size: 12px;
    color: var(--text-dim);
}

/* Лоадер */
.loading-spinner {
    text-align: center;
    padding: 60px;
    color: var(--accent-primary);
}

.loading-spinner i {
    font-size: 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Адаптив */
@media (max-width: 768px) {
    .notifications-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .notifications-sidebar {
        width: 100%;
    }
    
    .status-filters {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .status-filter {
        padding: 6px 12px;
    }
    
    .notification-card {
        padding: 16px;
    }
    
    .notification-actions {
        flex-wrap: wrap;
    }
}

/* Галочка для прочитанных */
.notification-card.read {
    opacity: 0.85;
}

.notification-read-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--accent-green);
    color: var(--text-main);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 2px solid var(--bg-card);
}

.notification-novel {
    position: relative;
}

/* notifications.css - Стили для страницы уведомлений */

.notifications-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    gap: 40px;
}

/* Боковая панель */
.notifications-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 12px;
}

.status-filters,
.sort-filters {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-filter,
.sort-filter {
    background: none;
    border: none;
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.status-filter:hover,
.sort-filter:hover {
    background: rgba(255, 107, 157, 0.1);
    color: var(--accent-primary);
}

.status-filter.active,
.sort-filter.active {
    background: rgba(255, 107, 157, 0.15);
    color: var(--accent-primary);
    font-weight: 500;
}

/* Основной контент */
.notifications-main {
    flex: 1;
    min-width: 0;
}

/* Верхние кнопки типов */
.notifications-types {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bg-elevated);
}

.type-filter {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.type-filter:hover {
    color: var(--accent-primary);
}

.type-filter.active {
    background: var(--accent-primary);
    color: var(--text-main);
}

.type-filter .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: normal;
}

.type-filter.active .count {
    background: rgba(255, 255, 255, 0.25);
}

/* Карточки уведомлений */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notification-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
    border: 1px solid var(--bg-elevated);
    cursor: pointer;
}

.notification-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.notification-card.unread {
    background: rgba(255, 107, 157, 0.04);
    border-left: 3px solid var(--accent-primary);
}

.notification-card.read {
    opacity: 0.85;
}

/* Шапка карточки */
.notification-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.notification-badge {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(58, 134, 255, 0.15);
    color: var(--accent-blue);
}

.notification-time {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Основной контент с обложкой */
.notification-main-content {
    display: flex;
    gap: 16px;
}

.notification-cover {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.notification-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-cover-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.notification-cover-placeholder i {
    font-size: 28px;
    color: var(--accent-primary);
}

.read-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--accent-green);
    color: var(--text-main);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 2px solid var(--bg-card);
}

/* Информация */
.notification-info {
    flex: 1;
}

.notification-novel-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.notification-chapter-info {
    font-size: 13px;
    color: var(--accent-yellow);
    margin-bottom: 6px;
    font-weight: 500;
}

.notification-message {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
}

/* Кнопки действий */
.notification-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mark-read-btn,
.delete-notification-btn,
.notification-link-btn {
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mark-read-btn {
    background: rgba(6, 214, 160, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(6, 214, 160, 0.2);
}

.mark-read-btn:hover {
    background: rgba(6, 214, 160, 0.25);
}

.delete-notification-btn {
    background: rgba(239, 71, 111, 0.12);
    color: #EF476F;
    border: 1px solid rgba(239, 71, 111, 0.2);
}

.delete-notification-btn:hover {
    background: rgba(239, 71, 111, 0.25);
}

.notification-link-btn {
    background: rgba(58, 134, 255, 0.12);
    color: var(--accent-blue);
    border: 1px solid rgba(58, 134, 255, 0.2);
}

.notification-link-btn:hover {
    background: rgba(58, 134, 255, 0.25);
}

/* Пустое состояние */
.empty-notifications {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.empty-notifications i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
    color: var(--accent-primary);
}

.empty-notifications p {
    font-size: 16px;
    color: var(--text-muted);
}

/* Лоадер */
.loading-spinner {
    text-align: center;
    padding: 60px;
    color: var(--accent-primary);
}

.loading-spinner i {
    font-size: 32px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Адаптив */
@media (max-width: 768px) {
    .notifications-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .notifications-sidebar {
        width: 100%;
    }
    
    .status-filters {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .status-filter {
        padding: 6px 12px;
    }
    
    .notification-card {
        padding: 16px;
    }
    
    .notification-main-content {
        flex-direction: column;
    }
    
    .notification-cover,
    .notification-cover-placeholder {
        width: 50px;
        height: 50px;
    }
}

/* Основной контент с обложкой - увеличиваем размер */
.notification-main-content {
    display: flex;
    gap: 20px;
}

.notification-cover {
    width: 90px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--bg-elevated);
}

.notification-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-cover-placeholder {
    width: 90px;
    height: 120px;
    border-radius: 12px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.notification-cover-placeholder i {
    font-size: 40px;
    color: var(--accent-primary);
}

.read-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: var(--accent-green);
    color: var(--text-main);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border: 2px solid var(--bg-card);
    z-index: 2;
}

/* Жёлтое сообщение о новой главе */
.chapter-add-message {
    color: #ffcc00;
    font-weight: 500;
    background: rgba(255, 204, 0, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin: 4px 0;
}

/* Для тёмной темы можно чуть ярче */
@media (prefers-color-scheme: dark) {
    .chapter-add-message {
        color: #ffd966;
        background: rgba(255, 204, 0, 0.15);
    }
}

/* Остальные стили для уведомлений */
.notification-chapter-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ========== КАРТОЧКИ УВЕДОМЛЕНИЙ - УМЕНЬШЕННАЯ ВЕРСИЯ ========== */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 14px;
    transition: var(--transition);
    border: 1px solid var(--bg-elevated);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.notification-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(2px);
}

.notification-card.unread {
    background: rgba(255, 107, 157, 0.04);
    border-left: 3px solid var(--accent-primary);
}

/* Шапка карточки */
.notification-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.notification-badge {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(58, 134, 255, 0.15);
    color: var(--accent-blue);
}

.notification-time {
    font-size: 10px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Основной контент - горизонтально */
.notification-main-content {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

/* Обложка - уменьшенная */
.notification-cover {
    width: 56px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--bg-elevated);
}

.notification-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-cover-placeholder {
    width: 56px;
    height: 80px;
    border-radius: 8px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.notification-cover-placeholder i {
    font-size: 28px;
    color: var(--accent-primary);
}

/* Галочка прочитанного - ПОЛНОСТЬЮ ВИДНА */
.read-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--accent-green);
    color: var(--text-main);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid var(--bg-card);
    z-index: 5;
}

/* Информация */
.notification-info {
    flex: 1;
    min-width: 0;
}

.notification-novel-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Жёлтое сообщение о новой главе */
.chapter-add-message {
    color: #ffcc00;
    font-weight: 500;
    background: rgba(255, 204, 0, 0.1);
    padding: 3px 6px;
    border-radius: 5px;
    display: inline-block;
    margin: 4px 0;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Кнопки действий */
.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-start;
}

.mark-read-btn,
.delete-notification-btn,
.notification-link-btn {
    border: none;
    padding: 4px 12px;
    border-radius: 18px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mark-read-btn {
    background: rgba(6, 214, 160, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(6, 214, 160, 0.2);
}

.mark-read-btn:hover {
    background: rgba(6, 214, 160, 0.25);
}

.delete-notification-btn {
    background: rgba(239, 71, 111, 0.12);
    color: #EF476F;
    border: 1px solid rgba(239, 71, 111, 0.2);
}

.delete-notification-btn:hover {
    background: rgba(239, 71, 111, 0.25);
}

/* Скрываем кнопку Читать */
.notification-link-btn {
    display: none !important;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .notification-cover {
        width: 48px;
        height: 68px;
    }
    
    .notification-cover-placeholder {
        width: 48px;
        height: 68px;
    }
    
    .notification-novel-title {
        font-size: 12px;
    }
    
    .chapter-add-message {
        font-size: 9px;
        white-space: normal;
        word-break: break-word;
    }
    
    .notification-actions {
        flex-wrap: wrap;
    }
    
    .mark-read-btn,
    .delete-notification-btn {
        padding: 3px 10px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .notification-cover {
        width: 42px;
        height: 60px;
    }
    
    .notification-cover-placeholder {
        width: 42px;
        height: 60px;
    }
    
    .notification-novel-title {
        font-size: 11px;
    }
    
    .chapter-add-message {
        font-size: 8px;
    }
}

/* Стиль для цитаты ответа на комментарий */
.notification-quote {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent-primary);
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    border-radius: 8px;
    word-break: break-word;
    line-height: 1.4;
}

/* Кнопки действий внутри уведомления (для заявок) */
.notification-inline-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.accept-friend-btn, .reject-friend-btn {
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.accept-friend-btn {
    background: rgba(6, 214, 160, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(6, 214, 160, 0.3);
}

.accept-friend-btn:hover {
    background: rgba(6, 214, 160, 0.3);
    transform: translateY(-1px);
}

.reject-friend-btn {
    background: rgba(239, 71, 111, 0.15);
    color: #EF476F;
    border: 1px solid rgba(239, 71, 111, 0.3);
}

.reject-friend-btn:hover {
    background: rgba(239, 71, 111, 0.3);
    transform: translateY(-1px);
}

/* ========== СТИЛИ ДЛЯ ЗАЯВОК В ДРУЗЬЯ ========== */

/* Контейнер информации о заявке */
.friend-request-info {
    width: 100%;
}

/* Пользователь и действие */
.friend-request-user {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}

.friend-request-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
    cursor: pointer;
    transition: var(--transition);
}

.friend-request-name:hover {
    text-decoration: underline;
    transform: translateX(2px);
}

.friend-request-action {
    font-size: 14px;
    color: var(--text-muted);
}

/* Кнопки действий */
.friend-request-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.friend-accept-btn,
.friend-reject-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.friend-accept-btn {
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.15), rgba(6, 214, 160, 0.08));
    color: var(--accent-green);
    border: 1px solid rgba(6, 214, 160, 0.3);
}

.friend-accept-btn:hover {
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.3), rgba(6, 214, 160, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 214, 160, 0.2);
}

.friend-reject-btn {
    background: linear-gradient(135deg, rgba(239, 71, 111, 0.15), rgba(239, 71, 111, 0.08));
    color: #EF476F;
    border: 1px solid rgba(239, 71, 111, 0.3);
}

.friend-reject-btn:hover {
    background: linear-gradient(135deg, rgba(239, 71, 111, 0.3), rgba(239, 71, 111, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 71, 111, 0.2);
}

/* Статус после обработки */
.friend-request-status {
    margin-top: 8px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.accepted {
    background: rgba(6, 214, 160, 0.15);
    color: var(--accent-green);
}

.status-badge.rejected {
    background: rgba(239, 71, 111, 0.15);
    color: #EF476F;
}

/* Обложка с аватаркой - кликабельная */
.friend-request-cover {
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.friend-request-cover:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.avatar-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 4px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.friend-request-cover:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    font-size: 14px;
    color: var(--accent-primary);
}

/* Кнопка "Все заявки" */
.view-all-requests {
    margin-top: 15px;
    text-align: center;
}

.view-all-requests-btn {
    background: none;
    border: 1px solid rgba(255, 107, 157, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    color: var(--accent-primary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-all-requests-btn:hover {
    background: rgba(255, 107, 157, 0.1);
    transform: translateY(-2px);
}

/* Accepter/Rejecter бейджи в обработанных заявках */
.accepted-badge,
.rejected-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.accepted-badge {
    background: rgba(6, 214, 160, 0.15);
    color: var(--accent-green);
}

.rejected-badge {
    background: rgba(239, 71, 111, 0.15);
    color: #EF476F;
}

/* Toast уведомления */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-card);
    border-radius: 30px;
    color: var(--text-main);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--bg-elevated);
}

.toast-success .toast-content {
    background: linear-gradient(135deg, var(--accent-green), #059e7a);
}

.toast-error .toast-content {
    background: linear-gradient(135deg, #EF476F, #c93050);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .friend-request-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .friend-accept-btn,
    .friend-reject-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 16px;
    }
    
    .friend-request-user {
        flex-direction: column;
        gap: 4px;
    }
    
    .toast-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    
    .toast-content {
        justify-content: center;
    }
}

.comment-chapter-info {
    font-size: 11px;
    color: var(--accent-yellow);
    background: rgba(255, 209, 102, 0.15);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: normal;
    margin-left: 8px;
}

.comment-type-badge {
    font-size: 10px;
    background: rgba(58, 134, 255, 0.2);
    color: var(--accent-blue);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: normal;
    margin-left: 8px;
}

.comment-quote-preview {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid var(--accent-primary);
}

.quote-icon {
    color: var(--accent-primary);
    font-size: 12px;
    opacity: 0.7;
}

.quote-text {
    font-size: 12px;
    color: #bbb;
    line-height: 1.4;
    flex: 1;
}

/* Информация о главе в комментариях */
.notification-novel-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-chapter-info {
    font-size: 11px;
    color: var(--accent-yellow);
    background: rgba(255, 209, 102, 0.15);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: normal;
}

.comment-type-badge {
    font-size: 10px;
    background: rgba(58, 134, 255, 0.2);
    color: var(--accent-blue);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: normal;
}

/* Цитата комментария */
.comment-quote-preview {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid var(--accent-primary);
}

.quote-icon {
    color: var(--accent-primary);
    font-size: 12px;
    opacity: 0.7;
}

.quote-text {
    font-size: 12px;
    color: #bbb;
    line-height: 1.4;
    flex: 1;
    word-break: break-word;
}

/* Информация о главе в комментариях */
.notification-novel-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.reply-author {
    font-weight: 700;
    color: var(--accent-primary);
}

.comment-chapter-info {
    font-size: 11px;
    color: var(--accent-yellow);
    background: rgba(255, 209, 102, 0.15);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-type-badge {
    font-size: 10px;
    background: rgba(58, 134, 255, 0.2);
    color: var(--accent-blue);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: normal;
}

/* Цитата комментария */
.comment-quote-preview {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid var(--accent-primary);
}

.quote-icon {
    color: var(--accent-primary);
    font-size: 12px;
    opacity: 0.7;
}

.quote-text {
    font-size: 12px;
    color: #bbb;
    line-height: 1.4;
    flex: 1;
    word-break: break-word;
}

/* Единый стиль для всех галочек прочитанного */
.read-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--accent-green);
    color: var(--text-main);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 2px solid var(--bg-card);
    z-index: 5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.read-badge i {
    font-size: 11px;
}

/* Тёмная тема - чтобы граница была видна */
@media (prefers-color-scheme: dark) {
    .read-badge {
        border-color: var(--bg-card);
    }
}

.read-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--accent-green) !important;  /* Добавьте !important */
    color: var(--text-main) !important;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid var(--bg-card);
    z-index: 5;
}

.read-badge i {
    color: var(--text-main) !important;
}

/* Кнопки для заявок в друзья */
.friend-accept-btn {
    background: rgba(6, 214, 160, 0.15);
    border: 1px solid rgba(6, 214, 160, 0.3);
    color: var(--accent-green);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.friend-accept-btn:hover {
    background: rgba(6, 214, 160, 0.3);
    transform: translateY(-1px);
}

.friend-reject-btn {
    background: rgba(239, 71, 111, 0.15);
    border: 1px solid rgba(239, 71, 111, 0.3);
    color: #EF476F;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.friend-reject-btn:hover {
    background: rgba(239, 71, 111, 0.3);
    transform: translateY(-1px);
}

/* ========== ТИП КОНТЕНТА - КРАСИВЫЕ КАРТОЧКИ ========== */

/* Контейнер фильтров контента */
.content-filters-container {
    margin: 20px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.95), rgba(20, 20, 28, 0.98));
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 157, 0.15);
    backdrop-filter: blur(4px);
}

.content-filters-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
}

.content-filters-label i {
    font-size: 14px;
    color: var(--accent-primary);
    background: rgba(255, 107, 157, 0.15);
    padding: 5px;
    border-radius: 10px;
}

/* Группа кнопок фильтров */
.content-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Базовый стиль кнопки */
.content-filter {
    position: relative;
    padding: 10px 20px;
    background: rgba(42, 42, 56, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

/* Иконки внутри кнопок */
.content-filter i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

/* Индивидуальные цвета иконок */
.content-filter[data-content="all"] i {
    color: var(--accent-primary);
}

.content-filter[data-content="novel"] i {
    color: var(--accent-blue);
}

.content-filter[data-content="manga"] i {
    color: var(--accent-green);
}

.content-filter[data-content="anime"] i {
    color: var(--accent-yellow);
}

/* Счётчик уведомлений */
.content-filter .count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    transition: all 0.2s;
}

/* Hover эффект */
.content-filter:hover {
    background: rgba(255, 107, 157, 0.1);
    border-color: rgba(255, 107, 157, 0.3);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.content-filter:hover i {
    transform: scale(1.1);
}

.content-filter:hover .count {
    background: rgba(255, 107, 157, 0.2);
}

/* Активное состояние */
.content-filter.active {
    background: linear-gradient(135deg, var(--accent-primary), #FF4D7D);
    border-color: transparent;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.35);
    transform: translateY(-1px);
}

.content-filter.active i {
    color: var(--text-main) !important;
    transform: scale(1.05);
}

.content-filter.active .count {
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-main);
}

/* Анимация пульсации для активной кнопки */
.content-filter.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 0.6;
    }
}

/* Скрытый контейнер */
.content-filters-container {
    display: none;
}

.content-filters-container.visible {
    display: block;
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ТЁМНОЙ ТЕМЫ ========== */
@media (prefers-color-scheme: dark) {
    .content-filters-container {
        background: linear-gradient(135deg, rgba(22, 22, 30, 0.95), rgba(18, 18, 24, 0.98));
    }
    
    .content-filter {
        background: rgba(35, 35, 45, 0.8);
    }
    
    .content-filter:hover {
        background: rgba(255, 107, 157, 0.15);
    }
}

/* ========== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ========== */
@media (max-width: 768px) {
    .content-filters-container {
        padding: 12px 16px;
        margin: 15px 0;
    }
    
    .content-filters-label {
        margin-bottom: 10px;
        font-size: 10px;
    }
    
    .content-filter {
        padding: 7px 14px;
        font-size: 11px;
        gap: 6px;
    }
    
    .content-filter i {
        font-size: 12px;
    }
    
    .content-filter .count {
        padding: 1px 6px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .content-filters {
        gap: 8px;
    }
    
    .content-filter {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .content-filter i {
        font-size: 11px;
    }
}

/* Стиль для пустого состояния счётчика */
.content-filter .count:empty {
    display: none;
}

/* Анимированное появление контейнера */
.content-filters-container {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Буквенный аватар в обложке */
.notification-cover-placeholder.letter-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), #FF4D7D);
    color: var(--text-main);
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
}

.notification-cover-placeholder.letter-avatar::before {
    content: attr(data-letter);
}

.notification-cover.letter-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), #FF4D7D);
}

.notification-cover.letter-avatar img {
    display: none;
}

.notification-cover.letter-avatar::before {
    content: attr(data-letter);
    font-size: 28px;
    font-weight: bold;
    color: var(--text-main);
}

/* ========== ЗАКРУГЛЕНИЕ ИКОНОК ДЛЯ ЗАЯВОК В ДРУЗЬЯ ========== */

/* Аватар/иконка в уведомлениях */
.notification-dropdown-avatar,
.notification-cover,
.notification-cover-placeholder {
    border-radius: 50% !important;  /* Полное закругление для аватаров */
}

/* Для обложек новелл оставляем слегка закругленными, но не круглыми */
.notification-cover,
.notification-cover-placeholder {
    border-radius: 12px !important;
}

/* Специально для заявок в друзья - аватар должен быть круглым */
.friend-request-cover,
.notification-dropdown-avatar {
    border-radius: 50% !important;
    overflow: hidden;
}

/* Буквенный аватар - круглый */
.letter-avatar {
    border-radius: 50% !important;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), #FF4D7D);
    color: var(--text-main);
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Увеличиваем размер буквы */
.letter-avatar {
    font-size: 22px;
}

/* Кнопки действий - закругленные */
.friend-accept-btn,
.friend-reject-btn,
.delete-notification-btn,
.mark-read-btn {
    border-radius: 30px !important;
    padding: 6px 16px;
}

/* Иконки внутри кнопок */
.friend-accept-btn i,
.friend-reject-btn i,
.delete-notification-btn i,
.mark-read-btn i {
    margin-right: 4px;
}

/* Карточка уведомления */
.notification-dropdown-item {
    border-radius: var(--radius-md);
}

/* Шапка уведомления */
.notification-dropdown-header {
    border-radius: 12px 12px 0 0;
}

/* Время */
.notification-dropdown-time {
    border-radius: 20px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
}

/* Бейдж типа уведомления */
.notification-dropdown-badge {
    border-radius: 30px;
    padding: 4px 12px;
}

/* Специально для бейджа заявки */
.notification-dropdown-badge.friend-request {
    background: rgba(255, 209, 102, 0.15);
    color: var(--accent-yellow);
}

/* Контейнер действий */
.friend-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* ========== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ========== */
@media (max-width: 768px) {
    .friend-accept-btn,
    .friend-reject-btn,
    .delete-notification-btn {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    .letter-avatar {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ========== РАЗНЫЕ ТИПЫ ЗАКРУГЛЕНИЯ ДЛЯ РАЗНЫХ ТИПОВ УВЕДОМЛЕНИЙ ========== */

/* Для заявок в друзья - КРУГЛЫЙ аватар */
.notification-dropdown-item[data-type="friend_request"] .notification-dropdown-avatar,
.notification-card[data-type="friend_request"] .notification-cover,
.notification-card[data-type="friend_request"] .notification-cover-placeholder {
    border-radius: 50% !important;
}

/* Для новелл/глав - СКРУГЛЕННЫЙ прямоугольник */
.notification-dropdown-item[data-type="new_chapter"] .notification-dropdown-cover,
.notification-card[data-type="new_chapter"] .notification-cover,
.notification-card[data-type="new_chapter"] .notification-cover-placeholder {
    border-radius: 12px !important;
}

/* Для ответов на комментарии - СКРУГЛЕННЫЙ прямоугольник */
.notification-dropdown-item[data-type="comment_reply"] .notification-dropdown-cover,
.notification-card[data-type="comment_reply"] .notification-cover,
.notification-card[data-type="comment_reply"] .notification-cover-placeholder {
    border-radius: 12px !important;
}

/* Для статусов - СКРУГЛЕННЫЙ прямоугольник */
.notification-dropdown-item[data-type="status_change"] .notification-dropdown-cover,
.notification-card[data-type="status_change"] .notification-cover,
.notification-card[data-type="status_change"] .notification-cover-placeholder {
    border-radius: 12px !important;
}

/* Буквенный аватар - всегда круглый */
.letter-avatar {
    border-radius: 50% !important;
}

/* Принудительное отображение галочки поверх всего */
.notification-main-content {
    position: relative;
}

/* Убедитесь что у родителя нет overflow: hidden */
.notification-card {
    overflow: visible !important;
}

.notification-cover,
.notification-cover-placeholder {
    overflow: visible !important;
}

.read-badge {
    position: absolute !important;
    top: auto !important;
    bottom: -8px !important;
    right: -8px !important;
    background: var(--accent-green) !important;
    color: var(--text-main) !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    border: 2px solid var(--bg-card) !important;
    z-index: 999 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.read-badge i {
    font-size: 11px !important;
    color: var(--text-main) !important;
}

/* Буквенный аватар на основной странице */
.notification-cover-placeholder.letter-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), #FF4D7D);
    color: var(--text-main);
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
}

.notification-cover-placeholder.letter-avatar::before {
    content: none !important;
}

.notification-cover.letter-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), #FF4D7D);
}

.notification-cover.letter-avatar img {
    display: none;
}

.notification-cover.letter-avatar::before {
    content: none !important;
}

/* ========== НОВОСТИ - ТОЧНО КАК В ДРОПДАУНЕ (api.js) ========== */

.notification-card[data-type="announcement"] {
    border-left: 3px solid var(--accent-blue);
    transition: var(--transition);
    background: var(--bg-card);
    border-radius: 14px;
    padding: 12px;
    border: 1px solid var(--bg-elevated);
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.notification-card[data-type="announcement"]:hover {
    border-color: var(--accent-blue);
    transform: translateX(4px);
}

.notification-card[data-type="announcement"].unread {
    background: rgba(58, 134, 255, 0.08);
}

/* Шапка карточки */
.notification-card[data-type="announcement"] .notification-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Бейдж новости */
.notification-card[data-type="announcement"] .notification-badge {
    background: rgba(58, 134, 255, 0.15);
    color: var(--accent-blue);
    border-radius: 30px;
    padding: 3px 10px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Время */
.notification-card[data-type="announcement"] .notification-time {
    font-size: 0.65rem;
    color: #88889D;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ОСНОВНОЙ КОНТЕНТ - ГОРИЗОНТАЛЬНО (как в дропдауне) */
.notification-card[data-type="announcement"] .notification-main-content {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

/* Обложка - 56x80 КАК В ДРОПДАУНЕ */
.notification-card[data-type="announcement"] .notification-cover-placeholder {
    width: 56px;
    height: 80px;
    border-radius: 8px;
    background: rgba(58, 134, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.notification-card[data-type="announcement"] .notification-cover-placeholder i {
    font-size: 28px;
    color: var(--accent-blue);
}

/* Информационная часть */
.notification-card[data-type="announcement"] .notification-info {
    flex: 1;
    min-width: 0;
}

/* Заголовок новости */
.notification-card[data-type="announcement"] .notification-novel-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-card[data-type="announcement"] .notification-novel-title i {
    font-size: 0.75rem;
}

/* Сообщение "Появилась новая новость" - КАК В ДРОПДАУНЕ */
.notification-card[data-type="announcement"] .news-message {
    font-size: 0.7rem;
    color: var(--accent-blue);
    background: rgba(58, 134, 255, 0.08);
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
    border-left: 2px solid var(--accent-blue);
}

.notification-card[data-type="announcement"] .news-message i {
    font-size: 0.65rem;
}

/* Кнопки действий - КАК В ДРОПДАУНЕ */
.notification-card[data-type="announcement"] .notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.notification-card[data-type="announcement"] .mark-read-btn {
    background: rgba(6, 214, 160, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(6, 214, 160, 0.2);
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.notification-card[data-type="announcement"] .mark-read-btn:hover {
    background: rgba(6, 214, 160, 0.25);
}

.notification-card[data-type="announcement"] .delete-notification-btn {
    background: rgba(239, 71, 111, 0.12);
    color: #EF476F;
    border: 1px solid rgba(239, 71, 111, 0.2);
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.notification-card[data-type="announcement"] .delete-notification-btn:hover {
    background: rgba(239, 71, 111, 0.25);
}

/* Галочка прочитанного */
.notification-card[data-type="announcement"] .read-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: var(--accent-green);
    color: var(--text-main);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid var(--bg-card);
    z-index: 5;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .notification-card[data-type="announcement"] .notification-cover-placeholder {
        width: 48px;
        height: 68px;
    }
    
    .notification-card[data-type="announcement"] .notification-cover-placeholder i {
        font-size: 24px;
    }
    
    .notification-card[data-type="announcement"] .notification-novel-title {
        font-size: 0.75rem;
        white-space: normal;
    }
    
    .notification-card[data-type="announcement"] .news-message {
        font-size: 0.65rem;
    }
    
    .notification-card[data-type="announcement"] .mark-read-btn,
    .notification-card[data-type="announcement"] .delete-notification-btn {
        padding: 3px 10px;
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .notification-card[data-type="announcement"] .notification-cover-placeholder {
        width: 42px;
        height: 60px;
    }
    
    .notification-card[data-type="announcement"] .notification-cover-placeholder i {
        font-size: 20px;
    }
}

.notification-card[data-type="announcement"] .announcement-message {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(58, 134, 255, 0.08);
    padding: 6px 10px;
    border-radius: 8px;
    margin: 6px 0;
    font-size: 0.7rem;
    color: var(--accent-blue);
    border-left: 2px solid var(--accent-blue);
}

.notification-card[data-type="announcement"] .announcement-message i {
    font-size: 0.65rem;
    color: var(--accent-blue);
}