/* ============================================================
   notifications.css - ПРАЗДНИЧНЫЙ ДИЗАЙН УВЕДОМЛЕНИЙ
   Светлые тона, градация по редкости, читаемость
   ============================================================ */

/* ===== 1. БЕЙДЖ УВЕДОМЛЕНИЙ (шапка) ===== */
.notification-badge-container {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 12px;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.notification-badge-container:hover {
    background: rgba(59, 130, 246, 0.08);
}

.notification-badge-container .bell-icon {
    font-size: 20px;
    color: #64748b;
    transition: color 0.2s ease;
    line-height: 1;
}

.notification-badge-container:hover .bell-icon {
    color: #2563eb;
}

/* Счетчик */
.notification-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.notification-count-badge.show {
    display: inline-block;
    animation: badge-pop 0.25s ease;
}

@keyframes badge-pop {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ===== 2. ВЫПАДАЮЩИЙ СПИСОК ===== */
.notifications-dropdown {
    position: absolute;
    top: 72px;
    right: 10px;
    width: 420px;
    max-width: calc(100vw - 20px);
    max-height: 480px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 10000;
    display: none;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.notifications-dropdown.show {
    display: block;
    animation: dropdown-in 0.2s ease;
}

@keyframes dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Заголовок списка */
.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.notifications-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.notifications-header .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.notifications-header .unread-count {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.notifications-header .mark-all-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.notifications-header .mark-all-btn:hover {
    background: rgba(59, 130, 246, 0.08);
}

/* Список */
.notifications-list {
    overflow-y: auto;
    max-height: 380px;
    padding: 4px 0;
}

.notifications-list::-webkit-scrollbar {
    width: 4px;
}

.notifications-list::-webkit-scrollbar-track {
    background: transparent;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* ===== 3. ОБЫЧНЫЕ УВЕДОМЛЕНИЯ ===== */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px 12px 20px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f8fafc;
    position: relative;
    min-height: 56px;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #f0f7ff;
}

.notification-item.unread:hover {
    background: #e6f0fa;
}

.notification-item .unread-dot {
    position: absolute;
    top: 50%;
    left: 6px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
}

/* Иконка */
.notification-item .notif-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-top: 0;
}

.notification-item .notif-icon.type-reward {
    background: #fef3c7;
    color: #d97706;
}
.notification-item .notif-icon.type-achievement {
    background: #dbeafe;
    color: #2563eb;
}
.notification-item .notif-icon.type-warning {
    background: #fee2e2;
    color: #dc2626;
}
.notification-item .notif-icon.type-success {
    background: #d1fae5;
    color: #059669;
}
.notification-item .notif-icon.type-info {
    background: #e0f2fe;
    color: #0284c7;
}
.notification-item .notif-icon.type-friend {
    background: #ede9fe;
    color: #7c3aed;
}
.notification-item .notif-icon.type-marker {
    background: #fce7f3;
    color: #db2777;
}
.notification-item .notif-icon.type-moderation {
    background: #fef3c7;
    color: #d97706;
}
.notification-item .notif-icon.type-default {
    background: #f1f5f9;
    color: #64748b;
}

/* Контент */
.notification-item .notif-content {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
    overflow: hidden;
}

.notification-item .notif-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 2px;
    word-break: break-word;
}

.notification-item .notif-title .badge {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    display: inline-block;
    margin-left: 4px;
}

.notification-item .notif-title .badge.new {
    background: #dbeafe;
    color: #1d4ed8;
}
.notification-item .notif-title .badge.warning {
    background: #fee2e2;
    color: #dc2626;
}
.notification-item .notif-title .badge.success {
    background: #d1fae5;
    color: #059669;
}
.notification-item .notif-title .badge.important {
    background: #fef3c7;
    color: #d97706;
}

.notification-item .notif-message {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.notification-item .notif-message strong {
    color: #0f172a;
    font-weight: 600;
}

.notification-item .notif-time {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Крестик */
.notification-item .notif-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 6px;
    transition: color 0.2s ease, background 0.2s ease;
    line-height: 1;
    margin-top: -2px;
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.notification-item .notif-close:hover {
    color: #475569;
    background: rgba(0, 0, 0, 0.05);
}

/* ===== 4. ПРАЗДНИЧНЫЕ УВЕДОМЛЕНИЯ О НАГРАДАХ ===== */
.notification-item.type-reward {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left: 4px solid #f59e0b;
}

.notification-item.type-reward:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.notification-item.type-reward .notif-title {
    color: #92400e;
}

.notification-item.type-reward .notif-message {
    color: #78350f;
}

/* Достижения */
.notification-item.type-achievement {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
}

.notification-item.type-achievement:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.notification-item.type-achievement .notif-title {
    color: #1e40af;
}

.notification-item.type-achievement .notif-message {
    color: #1e3a5f;
}

/* Награда в списке */
.notification-item .reward-preview-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.notification-item .reward-preview-inline img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.notification-item .reward-preview-inline .reward-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.notification-item .reward-preview-inline .reward-rarity {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ===== 5. ПУСТОЕ СОСТОЯНИЕ ===== */
.notifications-empty {
    text-align: center;
    padding: 48px 20px 40px;
}

.notifications-empty .empty-icon {
    font-size: 40px;
    opacity: 0.4;
    margin-bottom: 12px;
}

.notifications-empty h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.notifications-empty p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* ============================================================
   ===== 6. ВСПЛЫВАЮЩИЕ УВЕДОМЛЕНИЯ (TOAST) =====
   ============================================================ */
.notification-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: 100%;
    pointer-events: none;
}

/* Базовый toast */
.notification-toast {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
    animation: toast-in 0.35s ease;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-left: 4px solid #3b82f6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 420px;
    width: 100%;
    min-width: 280px;
    box-sizing: border-box;
}

.notification-toast:hover {
    transform: translateX(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.notification-toast.removing {
    animation: toast-out 0.3s ease forwards;
}

/* ===== 7. ПРАЗДНИЧНЫЙ TOAST ДЛЯ НАГРАД ===== */

/* Обычная награда (Common) */
.notification-toast.type-reward.rarity-common {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left-color: #6b7280;
}

/* Необычная награда (Uncommon) */
.notification-toast.type-reward.rarity-uncommon {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: #10b981;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.15);
}

/* Редкая награда (Rare) */
.notification-toast.type-reward.rarity-rare {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left-color: #3b82f6;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
}

/* Эпическая награда (Epic) */
.notification-toast.type-reward.rarity-epic {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-left-color: #8b5cf6;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.25);
    animation: toast-in-epic 0.5s ease, glow-epic 3s ease-in-out 3;
}

/* Легендарная награда (Legendary) */
.notification-toast.type-reward.rarity-legendary {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border-left-color: #f97316;
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.3);
    animation: toast-in-legendary 0.6s ease, glow-legendary 2.5s ease-in-out 3;
}

/* Уникальная награда (Mythic) */
.notification-toast.type-reward.rarity-mythic {
    background: linear-gradient(135deg, #fff1f2 0%, #fecdd3 100%);
    border-left-color: #ef4444;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.35);
    animation: toast-in-mythic 0.7s ease, glow-mythic 2s ease-in-out 4;
}

/* ===== 8. АНИМАЦИИ ДЛЯ РАЗНЫХ РЕДКОСТЕЙ ===== */

/* Epic */
@keyframes toast-in-epic {
    0% { opacity: 0; transform: scale(0.9) translateX(40px); }
    50% { transform: scale(1.02) translateX(-5px); }
    100% { opacity: 1; transform: scale(1) translateX(0); }
}

@keyframes glow-epic {
    0%, 100% { box-shadow: 0 8px 32px rgba(139, 92, 246, 0.25); }
    50% { box-shadow: 0 8px 48px rgba(139, 92, 246, 0.45), 0 0 60px rgba(139, 92, 246, 0.1); }
}

/* Legendary */
@keyframes toast-in-legendary {
    0% { opacity: 0; transform: scale(0.85) translateX(50px) rotate(-2deg); }
    40% { transform: scale(1.05) translateX(-8px) rotate(1deg); }
    70% { transform: scale(0.98) translateX(-2px); }
    100% { opacity: 1; transform: scale(1) translateX(0) rotate(0deg); }
}

@keyframes glow-legendary {
    0%, 100% { box-shadow: 0 8px 32px rgba(249, 115, 22, 0.3); }
    50% { box-shadow: 0 8px 56px rgba(249, 115, 22, 0.5), 0 0 80px rgba(249, 115, 22, 0.15); }
}

/* Mythic */
@keyframes toast-in-mythic {
    0% { opacity: 0; transform: scale(0.8) translateX(60px) rotate(-3deg); }
    30% { transform: scale(1.08) translateX(-10px) rotate(2deg); }
    60% { transform: scale(0.95) translateX(-3px) rotate(-1deg); }
    100% { opacity: 1; transform: scale(1) translateX(0) rotate(0deg); }
}

@keyframes glow-mythic {
    0%, 100% { box-shadow: 0 8px 32px rgba(239, 68, 68, 0.35); }
    25% { box-shadow: 0 8px 56px rgba(239, 68, 68, 0.5), 0 0 80px rgba(239, 68, 68, 0.15); }
    50% { box-shadow: 0 8px 64px rgba(239, 68, 68, 0.6), 0 0 100px rgba(239, 68, 68, 0.2); }
    75% { box-shadow: 0 8px 48px rgba(239, 68, 68, 0.45), 0 0 60px rgba(239, 68, 68, 0.1); }
}

/* ===== 9. КОНТЕНТ TOAST ===== */
.notification-toast .toast-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.7);
    margin-top: 0;
}

.notification-toast .toast-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding-right: 8px;
}

.notification-toast .toast-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 2px;
    word-break: break-word;
}

.notification-toast .toast-message {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.notification-toast .toast-message strong {
    color: #0f172a;
    font-weight: 600;
}

.notification-toast .toast-time {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 4px;
}

/* ===== 10. НАГРАДА ВНУТРИ TOAST ===== */
.notification-toast .toast-reward {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    flex-wrap: wrap;
}

.notification-toast .toast-reward img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.notification-toast .toast-reward .reward-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.notification-toast .toast-reward .reward-rarity {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    flex-shrink: 0;
}

/* ===== 11. КРЕСТИК TOAST ===== */
.notification-toast .toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 6px;
    transition: color 0.2s ease, background 0.2s ease;
    line-height: 1;
    margin-top: -2px;
    margin-right: -4px;
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.notification-toast .toast-close:hover {
    color: #475569;
    background: rgba(0, 0, 0, 0.05);
}

/* ===== 12. АНИМАЦИИ ===== */
@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(40px) scale(0.96);
    }
}

/* ===== 13. АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .notifications-dropdown {
        width: 380px;
        max-width: calc(100vw - 30px);
    }
    
    .notification-item {
        padding: 11px 14px 11px 16px;
        gap: 10px;
    }
    
    .notification-item .notif-title {
        font-size: 13px;
    }
    
    .notification-item .notif-message {
        font-size: 12px;
    }
    
    .notification-toast {
        max-width: 380px;
        min-width: 260px;
    }
}

@media (max-width: 768px) {
    .notifications-dropdown {
        position: fixed;
        top: 56px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        max-height: 70vh;
        border-radius: 14px;
    }
    
    .notification-item {
        padding: 12px 12px 12px 16px;
        gap: 10px;
        min-height: 52px;
    }
    
    .notification-item .notif-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    .notification-item .notif-title {
        font-size: 13px;
    }
    
    .notification-item .notif-message {
        font-size: 12px;
    }
    
    .notification-item .notif-close {
        font-size: 14px;
        min-width: 26px;
        min-height: 26px;
    }
    
    .notifications-header {
        padding: 14px 16px 10px 16px;
    }
    
    .notifications-header h3 {
        font-size: 15px;
    }
    
    .notifications-header .unread-count {
        font-size: 11px;
        padding: 1px 8px;
    }
    
    .notification-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
    
    .notification-toast {
        padding: 14px 16px;
        border-radius: 12px;
        max-width: none;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        gap: 12px;
    }
    
    .notification-toast .toast-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .notification-toast .toast-title {
        font-size: 14px;
    }
    
    .notification-toast .toast-message {
        font-size: 12px;
    }
    
    .notification-toast .toast-close {
        font-size: 14px;
        min-width: 26px;
        min-height: 26px;
        padding: 4px 6px;
    }
    
    .notification-toast .toast-reward {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .notification-toast .toast-reward img {
        width: 26px;
        height: 26px;
    }
    
    .notification-toast .toast-reward .reward-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .notifications-dropdown {
        top: 52px;
        right: 8px;
        left: 8px;
        max-height: 65vh;
        border-radius: 12px;
    }
    
    .notification-item {
        padding: 10px 10px 10px 14px;
        gap: 8px;
        min-height: 48px;
    }
    
    .notification-item .unread-dot {
        width: 5px;
        height: 5px;
        left: 4px;
    }
    
    .notification-item .notif-icon {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .notification-item .notif-title {
        font-size: 12px;
    }
    
    .notification-item .notif-message {
        font-size: 12px;
    }
    
    .notification-item .notif-time {
        font-size: 10px;
    }
    
    .notification-item .notif-close {
        font-size: 14px;
        min-width: 24px;
        min-height: 24px;
        padding: 2px 4px;
    }
    
    .notification-item .reward-preview-inline {
        padding: 6px 10px;
    }
    
    .notification-item .reward-preview-inline img {
        width: 22px;
        height: 22px;
    }
    
    .notification-item .reward-preview-inline .reward-name {
        font-size: 12px;
    }
    
    .notifications-header {
        padding: 12px 14px 8px 14px;
    }
    
    .notifications-header h3 {
        font-size: 14px;
    }
    
    .notification-toast {
        padding: 12px 14px;
        border-radius: 10px;
        gap: 10px;
    }
    
    .notification-toast .toast-icon {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .notification-toast .toast-title {
        font-size: 13px;
    }
    
    .notification-toast .toast-message {
        font-size: 12px;
    }
    
    .notification-toast .toast-close {
        font-size: 14px;
        min-width: 24px;
        min-height: 24px;
        padding: 2px 6px;
    }
    
    .notification-toast .toast-reward {
        padding: 6px 10px;
    }
    
    .notification-toast .toast-reward img {
        width: 22px;
        height: 22px;
    }
    
    .notification-toast .toast-reward .reward-name {
        font-size: 12px;
    }
}

/* ===== 14. ТЁМНАЯ ТЕМА (АДАПТАЦИЯ) ===== */
@media (prefers-color-scheme: dark) {
    .notifications-dropdown {
        background: #1e293b;
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    }
    
    .notifications-header {
        border-color: #334155;
    }
    
    .notifications-header h3 {
        color: #e2e8f0;
    }
    
    .notifications-header .unread-count {
        background: #334155;
        color: #94a3b8;
    }
    
    .notifications-header .mark-all-btn {
        color: #60a5fa;
    }
    
    .notifications-header .mark-all-btn:hover {
        background: rgba(96, 165, 250, 0.12);
    }
    
    .notification-item {
        border-color: #293548;
    }
    
    .notification-item:hover {
        background: #293548;
    }
    
    .notification-item.unread {
        background: #1a2a4a;
    }
    
    .notification-item.unread:hover {
        background: #1f3a5a;
    }
    
    .notification-item .notif-title {
        color: #e2e8f0;
    }
    
    .notification-item .notif-message {
        color: #94a3b8;
    }
    
    .notification-item .notif-message strong {
        color: #e2e8f0;
    }
    
    .notification-item .notif-time {
        color: #64748b;
    }
    
    .notification-item .notif-close:hover {
        color: #e2e8f0;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .notification-item .reward-preview-inline {
        background: #293548;
        border-color: #334155;
    }
    
    .notification-item .reward-preview-inline .reward-name {
        color: #e2e8f0;
    }
    
    .notifications-empty h4 {
        color: #e2e8f0;
    }
    
    .notifications-empty p {
        color: #64748b;
    }
    
    /* Toast в темной теме — адаптация */
    .notification-toast {
        background: #1e293b;
        border-color: #334155;
    }
    
    .notification-toast .toast-title {
        color: #e2e8f0;
    }
    
    .notification-toast .toast-message {
        color: #94a3b8;
    }
    
    .notification-toast .toast-message strong {
        color: #e2e8f0;
    }
    
    .notification-toast .toast-icon {
        background: #293548;
    }
    
    .notification-toast .toast-close:hover {
        color: #e2e8f0;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .notification-toast .toast-reward {
        background: rgba(255, 255, 255, 0.05);
        border-color: #334155;
    }
    
    .notification-toast .toast-reward .reward-name {
        color: #e2e8f0;
    }
    
    /* Адаптация праздничных toast для тёмной темы */
    .notification-toast.type-reward.rarity-common {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-left-color: #6b7280;
    }
    
    .notification-toast.type-reward.rarity-uncommon {
        background: linear-gradient(135deg, #0a1a0a 0%, #1a3a1a 100%);
        border-left-color: #10b981;
    }
    
    .notification-toast.type-reward.rarity-rare {
        background: linear-gradient(135deg, #0a0a2a 0%, #1a1a5a 100%);
        border-left-color: #3b82f6;
    }
    
    .notification-toast.type-reward.rarity-epic {
        background: linear-gradient(135deg, #1a0a2a 0%, #3a1a5a 100%);
        border-left-color: #8b5cf6;
    }
    
    .notification-toast.type-reward.rarity-legendary {
        background: linear-gradient(135deg, #2a1a0a 0%, #5a3a1a 100%);
        border-left-color: #f97316;
    }
    
    .notification-toast.type-reward.rarity-mythic {
        background: linear-gradient(135deg, #2a0a0a 0%, #5a1a1a 100%);
        border-left-color: #ef4444;
    }
    
    .notification-toast.type-reward .toast-title {
        color: #e2e8f0;
    }
    
    .notification-toast.type-reward .toast-message {
        color: #94a3b8;
    }
    
    .notification-toast.type-reward .toast-message strong {
        color: #e2e8f0;
    }
    
    .notification-toast.type-achievement {
        background: linear-gradient(135deg, #0a0a2a 0%, #1a1a5a 100%);
        border-left-color: #3b82f6;
    }
    
    .notification-toast.type-achievement .toast-title {
        color: #60a5fa;
    }
    
    .notification-toast.type-achievement .toast-message {
        color: #93c5fd;
    }
}

/* ===== 15. СТИЛИ ДЛЯ ПРОЧИТАННЫХ (НО НЕ СКРЫТЫХ) УВЕДОМЛЕНИЙ ===== */
.notification-item.read {
    background: #f8fafc;
    opacity: 0.85;
}

.notification-item.read .notif-title {
    color: #64748b;
}

.notification-item.read .notif-message {
    color: #94a3b8;
}

.notification-item.read .read-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 6px;
}

.notification-item.read .read-dot {
    border: 1px solid #94a3b8;
    background: transparent;
}

/* Тёмная тема для прочитанных */
@media (prefers-color-scheme: dark) {
    .notification-item.read {
        background: #1e293b;
        opacity: 0.7;
    }
    
    .notification-item.read .notif-title {
        color: #94a3b8;
    }
    
    .notification-item.read .notif-message {
        color: #64748b;
    }
    
    .notification-item.read .read-dot {
        border-color: #64748b;
    }
}