.account-card header.notification-header{
    margin-bottom: 0;
}

/* Блок фильтров — два блока как на референсе */
.notifications-filters-bar {
    margin-bottom: 1rem;
    border: #EEE solid 1px;
    overflow: visible;
}
.notifications-filters-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 0.75rem 1rem;
}
.notifications-filters-block--tags {
    border-bottom: 1px solid #eee;
}
.notifications-filters-block--tags .notifications-filter-reset {
    margin-left: auto;
}
.notifications-filters-block--actions {
    overflow: visible;
}
.notifications-filter-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.filter-tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    font-size: 0.8125rem;
    color: #374151;
    background: #e5e7eb;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.filter-tag:hover {
    background: #d1d5db;
    color: #111827;
}
.filter-tag.active {
    background: #e86c2e;
    color: #fff;
}
.filter-tag.active:hover {
    background: #d95a1e;
    color: #fff;
}
.notifications-filters-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    flex: 1;
    overflow: visible;
    min-width: 0;
}
.notifications-filters-form .notifications-filter-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 40px;
}
.notifications-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.notifications-filter-label {
    font-size: 0.875rem;
    color: #6b7280;
}
/* Кастомный дропдаун */
.custom-select {
    position: relative;
    display: inline-block;
}
.custom-select-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: #e86c2e;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
}
.custom-select-trigger:hover {
    color: #d95a1e;
}
.custom-select-caret {
    font-size: 0.65rem;
    color: #6b7280;
    transition: transform 0.2s;
}
.custom-select.is-open .custom-select-caret {
    transform: rotate(180deg);
}
.custom-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 260px;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    padding: 0.5rem 0;
}
.custom-select.is-open .custom-select-dropdown {
    display: block;
}
.custom-select-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
}
.custom-select-option:hover {
    background: #f9fafb;
}
.custom-select-option::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid #9ca3af;
    border-radius: 50%;
    flex-shrink: 0;
}
.custom-select-option.selected {
    color: #e86c2e;
}
.custom-select-option.selected::before {
    border-color: #e86c2e;
    background: #e86c2e;
    box-shadow: inset 0 0 0 2px #fff;
}
.notifications-filters-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.notifications-filter-reset {
    font-size: 0.8125rem;
    color: #6b7280;
    text-decoration: none;
}
.notifications-filter-reset:hover {
    color: #374151;
}
.notifications-filters-actions .account-primary-btn {
    font-size: 0.8125rem;
}

/* Список уведомлений */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.notification-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px dashed #E4E4E4;
    background: var(--bg-white, #fff);
    position: relative;
    transition: all 0.2s;
}
.notification-item--read:hover{
    border-color: #999;
}
.notification-item--unread {
    background: #f8fafc;
    border-color: var(--primary, #2563eb);
}
.notification-item--read {
    opacity: 0.8;
}
.notification-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: var(--bg-light, #f3f4f6);
    --notification-icon-tone: #7dadf0;
}
.notification-icon-graphic {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
    background-color: var(--notification-icon-tone, #7dadf0);
    -webkit-mask-image: var(--notification-icon-url);
    mask-image: var(--notification-icon-url);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.notification-details-icon .notification-icon-graphic {
    width: 32px;
    height: 32px;
}
.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.notification-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    color: var(--text-primary, #111827);
}
.notification-message {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin: 0;
    font-size: 14px;
    color: #888;
    line-height: 1.5;
}
.notification-message-text {
    flex: 1;
    min-width: 0;
}
.notification-time {
    font-size: 13px;
    color: var(--text-light, #6b7280);
    white-space: nowrap;
    flex-shrink: 0;
}
.notification-link {
    font-size: 0.875rem;
    color: var(--primary, #2563eb);
    text-decoration: none;
    font-weight: 500;
    align-self: flex-start;
}
.notification-link:hover {
    text-decoration: underline;
}
.notification-unread-indicator {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary, #2563eb);
}
.notification-item-delete {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    opacity: 0.3;
    transition: opacity 0.2s;
}
.notification-item-delete:hover {
    opacity: 1;
}
.account-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-light, #6b7280);
}
#notifications-pagination {
    margin-top: 0;
    border-top: none;
}
#notifications-pagination > .pagination-wrapper{
    margin-top: 20px;
}

/* Боковое окно с подробностями уведомления */
.notification-details-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    z-index: 1000;
    pointer-events: none;
}
.notification-details-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    border-left: var(--border) solid 1px;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    pointer-events: auto; /* Восстанавливаем клики только для самого окна */
}
.notification-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.notification-details-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}
.notification-details-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.notification-details-close:hover {
    color: #111827;
}
.notification-details-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.notification-details-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: var(--bg-light, #f3f4f6);
    --notification-icon-tone: #7dadf0;
    flex-shrink: 0;
}

.notification-details-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-details-time {
    font-size: 0.875rem;
    color: #6b7280;
}

.notification-details-type {
    font-size: 0.875rem;
    color: #2563eb;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.notification-details-message {
    font-size: 1rem;
    color: #374151;
    line-height: 1.6;
    flex: 1;
}

.notification-details-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}
.notification-details-actions .btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.notification-details-actions .btn-primary {
    background: #2563eb;
    color: #fff;
}
.notification-details-actions .btn-primary:hover {
    background: #1d4ed8;
}
.notification-details-actions .notification-details-delete-btn,
.notification-details-actions .btn-ghost {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}
.notification-details-actions .notification-details-delete-btn:hover,
.notification-details-actions .btn-ghost:hover {
    color: #ef4444;
    border-color: #ef4444;
}

.notification-details-link {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1rem;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.notification-details-link:hover {
    background: #1d4ed8;
}

/* Стили для кликабельного уведомления */
.notification-item-clickable {
    cursor: pointer;
}
.notification-item-clickable .notification-link {
    pointer-events: auto; /* Ссылки остаются кликабельными */
}

/* Пагинация */
.notifications-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}
.notifications-pagination .pagination-btn {
    padding: 4px 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}
.notifications-pagination .pagination-btn:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
}
.notifications-pagination .pagination-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.notifications-pagination .pagination-pages {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}
.notifications-pagination .pagination-page {
    min-width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.notifications-pagination .pagination-page:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.notifications-pagination .pagination-page.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.notifications-pagination .pagination-ellipsis {
    padding: 0 0.5rem;
    color: var(--text-light);
}

/* Адаптивность */
@media (max-width: 768px) {
    .notification-details-content {
        max-width: 100%;
    }
}
