:root {
    --bg-primary: #080808;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1c1c1c;
    --bg-overlay: rgba(0, 0, 0, 0.4);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    --accent: #e50914;
    --accent-hover: #f40612;
    --accent-dark: #b30a10;
    --accent-transparent: rgba(229, 9, 20, 0.15);
    --accent-glow: rgba(229, 9, 20, 0.5);
    
    --news-color: #9047ff;
    --news-dark: #6a34c1;
    --news-glow: rgba(144, 71, 255, 0.5);
    --news-transparent: rgba(144, 71, 255, 0.15);
    
    --system-color: #e50914;
    --system-dark: #b30a10;
    --system-glow: rgba(229, 9, 20, 0.5);
    --system-transparent: rgba(229, 9, 20, 0.15);
    
    --content-color: #1db954;
    --content-dark: #15883e;
    --content-glow: rgba(29, 185, 84, 0.5);
    --content-transparent: rgba(29, 185, 84, 0.15);
    
    --surface-overlay: rgba(0, 0, 0, 0.2);
    --hover-overlay: rgba(255, 255, 255, 0.05);
    --divider: rgba(255, 255, 255, 0.08);
    --input-border: rgba(255, 255, 255, 0.1);
    
    --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-strong: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-intense: 0 15px 35px rgba(0, 0, 0, 0.7);
    --shadow-accent: 0 8px 20px -3px rgba(229, 9, 20, 0.4);
    
    --transition-ultra-fast: 0.05s ease;
    --transition-faster: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-spring: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.02em;
    
    --bell-size: 24px;
    --border-radius-xs: 4px;
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-2xl: 24px;
    --border-radius-full: 9999px;
    
    --dropdown-width: 480px;
    --dropdown-max-height: 700px;
    --header-height: auto;
    --footer-height: 60px;
    --notification-gap: 16px;
    --image-size: 60px;
    --tab-height: 45px;
    --button-height: 36px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes blink {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes bellShake {
    0% { transform: rotate(0); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
    85% { transform: rotate(-5deg); }
    100% { transform: rotate(0); }
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(229, 9, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes wave {
    0% { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes fadeInStaggard {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes borderGlow {
    0% { border-color: rgba(229, 9, 20, 0.4); }
    50% { border-color: rgba(229, 9, 20, 0.8); }
    100% { border-color: rgba(229, 9, 20, 0.4); }
}

.notification-component {
    position: relative;
    font-family: var(--font-primary);
    z-index: 100;
}

.notification-component *,
.notification-component *::before,
.notification-component *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.notification-bell {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    outline: none;
    transition: transform var(--transition-fast);
    color: var(--text-primary);
    border-radius: var(--border-radius-full);
    overflow: visible;
}

.notification-bell:hover {
    color: var(--accent);
}

.notification-bell:hover .bell-icon {
    animation: bellShake 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.notification-bell:focus-visible {
    box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px rgba(229, 9, 20, 0.3);
}


.bell-icon {
    width: var(--bell-size);
    height: var(--bell-size);
    transition: color var(--transition-fast), filter var(--transition-normal);
    transform-origin: top center;
    z-index: 2;
}

.notification-bell:hover .bell-icon {
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(229, 9, 20, 0.6));
}

.unread-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(25%, -25%);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-full);
    padding: 0 6px;
    box-shadow: 0 0 0 2px var(--bg-primary), 0 4px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
    animation: pulse 2s infinite;
}

.badge-waves {
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-full);
    z-index: -1;
}

.badge-waves::before,
.badge-waves::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-full);
    background: var(--accent);
    opacity: 0;
    z-index: -1;
}

.badge-waves::before {
    animation: wave 2s infinite 0.3s;
}

.badge-waves::after {
    animation: wave 2s infinite 0.6s;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -16px;
    width: var(--dropdown-width);
    display: flex;
    flex-direction: column;
    max-height: var(--dropdown-max-height);
    background-color: var(--bg-card);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-intense), 0 0 15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform-origin: top right;
    z-index: 100;
}

.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 5;
}

.dropdown-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.backdrop-grain {
    position: absolute;
    inset: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdkUdfhzI5QDWy+kw5Wgg2pGpeEVeCCA7b85BO3F9DzxB3cdqvBzWcmzbyMiqhzuYqtHRVG2y4x+KOlnyqla8AoWWpuBoYRxzXrfKuILl6SfiWCbjxoZJUaCBj1CjH7GIaDbc9kqBY3W/Rgjda1iqQcOJu2WW+76pZC9QG7M00dffe9hNnseupFL53r8F7YHSwJWUKP2q+k7RdsxyOB11n0xtOvnW4irMMFNV4H0uqwS5ExsmP9AxbDTc9JwgneAT5vTiUSm1E7BSflSt3bfa1tv8Di3R8n3Af7MNWzs49hmauE2wP+ttrq+AsWpFG2awvsuOqbipWHgtuvuaAE+A1Z/7gC9hesnr+7wqCwG8c5yAg3AL1fm8T9AZtp/bbJGwl1pNrE7RuOX7PeMRUERVaPpEs+yqeoSmuOlokqw49pgomjLeh7icHNlG19yjs6XXOMedYm5xH2YxpV2tc0Ro2jJfxC50ApuxGob7lMsxfTbeUv07TyYxpeLucEH1gNd4IKH2LAg5TdVhlCafZvpskfncCfx8pOhJzd76bJWeYFnFciwcYfubRc12Ip/ppIhA1/mSZ/RxjFDrJC5xifFjJpY2Xl5zXdguFqYyTR1zSp1Y9p+tktDYYSNflcxI0iyO4TPBdlRcpeqjK/piF5bklq77VSEaA+z8qmJTFzIWiitbnzR794USKBUaT0NTEsVjZqLaFVqJoPN9ODG70IPbfBHKK+/q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==');
    opacity: 0.03;
}

.backdrop-glow {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background: 
        radial-gradient(circle at 20% 35%, rgba(229, 9, 20, 0.15), transparent 50%),
        radial-gradient(circle at 80% 10%, rgba(229, 9, 20, 0.1), transparent 50%);
}

.backdrop-flare {
    position: absolute;
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.15), transparent 70%);
    opacity: 0.6;
    border-radius: 50%;
    filter: blur(40px);
    animation: float 6s ease-in-out infinite;
}

.transition-enter {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.transition-enter-start {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
}

.transition-enter-end {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.transition-leave {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-leave-start {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.transition-leave-end {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
}

.notification-content {
    display: flex;
    flex-direction: column;
    max-height: var(--dropdown-max-height);
    background-color: var(--bg-secondary);
    width: 100%;
}

.notification-header {
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 1), rgba(20, 20, 20, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
    position: sticky;
    top: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
}

.notification-title {
    position: relative;
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: var(--letter-spacing-tight);
}

.title-text {
    position: relative;
    z-index: 2;
}

.title-line {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(to right, var(--accent), rgba(229, 9, 20, 0.5));
    border-radius: 3px;
    z-index: 1;
}

.notification-stats {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-tertiary);
}

.stats-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.stats-item.has-unread .stats-value {
    color: var(--accent);
}

.stats-value {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

.stats-label {
    font-weight: 400;
}

.stats-separator {
    width: 4px;
    height: 4px;
    background-color: var(--text-muted);
    border-radius: 50%;
    margin: 0 8px;
}

.mark-all-button {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 14px;
    height: var(--button-height);
    background: transparent;
    border: none;
    border-radius: var(--border-radius-full);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.button-background {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-normal);
    z-index: -1;
}

.mark-all-button:hover .button-background {
    background: linear-gradient(45deg, var(--accent-dark), var(--accent));
    border-color: transparent;
}

.button-glow {
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-full);
    background: radial-gradient(circle at center, rgba(229, 9, 20, 0.4), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
    filter: blur(8px);
}

.mark-all-button:hover .button-glow {
    opacity: 1;
}

.mark-all-button:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.mark-all-button:active {
    transform: translateY(0);
}

.mark-all-button .check-icon {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.mark-all-button:hover .check-icon {
    transform: scale(1.2);
}

.button-text {
    position: relative;
    z-index: 2;
}

.header-tabs {
    position: relative;
    overflow: hidden;
}

.tabs-scroll-container {
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 20px 10px;
}

.tabs-scroll-container::-webkit-scrollbar {
    display: none;
}

.tabs-container {
    display: flex;
    gap: 8px;
    width: fit-content;
    min-width: 100%;
}

.tab-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    background: transparent;
    border: none;
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-normal);
    flex: 1;
    min-width: 90px;
    height: var(--tab-height);
}

.tab-background {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    z-index: 0;
}

.tab-button:hover .tab-background {
    background-color: rgba(30, 30, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.tab-button.active .tab-background {
    border-color: rgba(229, 9, 20, 0.3);
    background: linear-gradient(45deg, rgba(20, 20, 20, 0.95), rgba(30, 30, 30, 0.8));
}

.tab-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    z-index: 1;
    transition: transform var(--transition-normal);
}

.tab-button:hover .tab-content {
    transform: translateY(-2px);
}

.tab-button.active .tab-content {
    transform: translateY(-3px);
}

.tab-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    transition: transform var(--transition-fast);
}

.tab-button:hover .tab-icon {
    transform: scale(1.1);
}

.tab-button.active .tab-icon {
    color: var(--accent);
    transform: scale(1.15);
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.tab-label {
    font-size: 12px;
    transition: color var(--transition-fast);
}

.tab-button:hover .tab-label {
    color: var(--text-primary);
}

.tab-button.active .tab-label {
    color: var(--text-primary);
    font-weight: 600;
}

.tab-count {
    position: absolute;
    top: 5px;
    right: 6px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-full);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-fast);
    z-index: 2;
}

.tab-count.has-unread {
    color: white;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.news-count.has-unread {
    background-color: var(--news-color);
    box-shadow: 0 0 10px var(--news-glow);
}

.system-count.has-unread {
    background-color: var(--system-color);
    box-shadow: 0 0 10px var(--system-glow);
}

.content-count.has-unread {
    background-color: var(--content-color);
    box-shadow: 0 0 10px var(--content-glow);
}

.tab-indicator {
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--accent-glow);
    opacity: 0;
    transition: all var(--transition-normal);
}

.tab-button.active .tab-indicator {
    width: 20px;
    opacity: 1;
}

.news-indicator {
    background: var(--news-color);
    box-shadow: 0 0 8px var(--news-glow);
}

.system-indicator {
    background: var(--system-color);
    box-shadow: 0 0 8px var(--system-glow);
}

.content-indicator {
    background: var(--content-color);
    box-shadow: 0 0 8px var(--content-glow);
}

.notifications-wrapper {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) rgba(0, 0, 0, 0.2);
    background-color: var(--bg-secondary);
    min-height: 200px;
    position: relative;
}

.notifications-wrapper::-webkit-scrollbar {
    width: 6px;
}

.notifications-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.notifications-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.notifications-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    padding: 10px;
}

.empty-state-icon svg {
    width: 24px;
    height: 24px;
}

.empty-state-text {
    font-size: 15px;
    font-weight: 500;
}

.notification-timeline {
    position: relative;
    padding: 20px;
}

.date-separator {
    display: flex;
    align-items: center;
    margin: 15px 0;
    animation: fadeIn 0.6s both;
    animation-delay: calc(0.1s + (var(--separator-index, 0) * 0.05s));
}

.date-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to var(--direction, right), var(--color, rgba(255, 255, 255, 0.05)), transparent);
}

.date-line:first-child {
    --direction: right;
}

.date-line:last-child {
    --direction: left;
}

.date-badge {
    padding: 0 10px;
}

.date-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-tertiary);
    background-color: var(--bg-secondary);
    padding: 0 10px;
    text-transform: capitalize;
}

.notification-item {
    position: relative;
    display: flex;
    gap: 15px;
    margin-bottom: var(--notification-gap);
    animation: fadeInStaggard 0.5s both;
    animation-delay: calc(0.15s + (var(--item-index, 0) * 0.08s));
}

.item-connector {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5px;
    width: 16px;
    flex-shrink: 0;
}

.connector-line {
    position: absolute;
    top: 0;
    bottom: calc(-1 * var(--notification-gap));
    width: 1px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    left: 50%;
    transform: translateX(-50%);
}

.notification-item:last-child .connector-line {
    display: none;
}

.connector-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    z-index: 2;
}

.connector-dot.news {
    background-color: var(--news-color);
    box-shadow: 0 0 8px var(--news-glow);
}

.connector-dot.system {
    background-color: var(--system-color);
    box-shadow: 0 0 8px var(--system-glow);
}

.connector-dot.content {
    background-color: var(--content-color);
    box-shadow: 0 0 8px var(--content-glow);
}

.notification-card {
    position: relative;
    display: flex;
    gap: 15px;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px;
    transition: all var(--transition-normal);
    flex: 1;
    overflow: hidden;
}

.notification-item:hover .notification-card {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, var(--accent-transparent), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.card-glow.news {
    background: radial-gradient(circle at 30% 20%, var(--news-transparent), transparent 60%);
}

.card-glow.system {
    background: radial-gradient(circle at 30% 20%, var(--system-transparent), transparent 60%);
}

.card-glow.content {
    background: radial-gradient(circle at 30% 20%, var(--content-transparent), transparent 60%);
}

.notification-item:hover .card-glow {
    opacity: 1;
}

.unread-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse 2s infinite;
}

.notification-image-container {
    flex-shrink: 0;
    position: relative;
    width: var(--image-size);
    height: var(--image-size);
}

.app-icon-svg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.app-icon-svg svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 5px 10px rgba(229, 9, 20, 0.3));
    transition: transform var(--transition-slow), filter var(--transition-normal);
}

.notification-item:hover .app-icon-svg svg {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 15px rgba(229, 9, 20, 0.5));
}

.image-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: all var(--transition-normal);
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.image-frame.news {
    border-color: rgba(144, 71, 255, 0.2);
}

.image-frame.system {
    border-color: rgba(229, 9, 20, 0.2);
}

.image-frame.content {
    border-color: rgba(29, 185, 84, 0.2);
}

.notification-item:hover .image-frame {
    box-shadow: var(--shadow-medium);
}

.notification-item:hover .image-frame.news {
    border-color: rgba(144, 71, 255, 0.4);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(144, 71, 255, 0.1);
}

.notification-item:hover .image-frame.system {
    border-color: rgba(229, 9, 20, 0.4);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(229, 9, 20, 0.1);
}

.notification-item:hover .image-frame.content {
    border-color: rgba(29, 185, 84, 0.4);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(29, 185, 84, 0.1);
}

.notification-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.notification-item:hover .notification-image {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(229, 9, 20, 0.2) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.image-overlay.news {
    background: linear-gradient(135deg, transparent 0%, rgba(144, 71, 255, 0.2) 100%);
}

.image-overlay.system {
    background: linear-gradient(135deg, transparent 0%, rgba(229, 9, 20, 0.2) 100%);
}

.image-overlay.content {
    background: linear-gradient(135deg, transparent 0%, rgba(29, 185, 84, 0.2) 100%);
}

.notification-item:hover .image-overlay {
    opacity: 1;
}

.notification-type-indicator {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--news-color);
    border: 2px solid var(--bg-secondary);
    box-shadow: var(--shadow-subtle);
    z-index: 2;
    transition: all var(--transition-fast);
}

.notification-type-indicator.news {
    background-color: var(--news-color);
}

.notification-type-indicator.system {
    background-color: var(--system-color);
}

.notification-type-indicator.content {
    background-color: var(--content-color);
}

.notification-item:hover .notification-type-indicator {
    transform: scale(1.15);
    box-shadow: var(--shadow-medium);
}

.indicator-icon {
    width: 12px;
    height: 12px;
    color: white;
}

.notification-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.notification-header-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.notification-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition-fast);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.notification-item:hover .notification-name {
    color: white;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.notification-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-tertiary);
    font-size: 12px;
    white-space: nowrap;
}

.time-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.notification-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    background-color: rgba(0, 0, 0, 0.2);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.notification-badge.news {
    color: #d5c1ff;
    background-color: rgba(144, 71, 255, 0.1);
    border: 1px solid rgba(144, 71, 255, 0.2);
}

.notification-badge.system {
    color: #ffb3b8;
    background-color: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.2);
}

.notification-badge.content {
    color: #b3e6c4;
    background-color: rgba(29, 185, 84, 0.1);
    border: 1px solid rgba(29, 185, 84, 0.2);
}

.notification-item:hover .notification-badge {
    background-color: rgba(0, 0, 0, 0.3);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.notification-body {
    flex: 1;
}

.notification-message {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
    transition: color var(--transition-fast);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.notification-item:hover .notification-message {
    color: var(--text-primary);
}

.notification-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

.action-button {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: var(--border-radius-full);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-fast);
    white-space: nowrap;
    z-index: 5;
}

.action-button .button-background {
    background-color: rgba(0, 0, 0, 0.2);
}

.button-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1;
}

.button-icon {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.action-button:hover {
    color: var(--text-primary);
}

.action-button:hover .button-background {
    background-color: rgba(20, 20, 20, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.action-button:hover .button-icon {
    transform: scale(1.2);
}

.mark-button:hover .button-background {
    background: linear-gradient(45deg, var(--accent-dark), var(--accent));
    border-color: transparent;
}

.view-button:hover .button-background {
    background: linear-gradient(45deg, #303030, #505050);
    border-color: rgba(255, 255, 255, 0.1);
}

.notification-content-area {
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: pointer;
    border-radius: var(--border-radius-lg);
}

.notification-footer {
    padding: 15px 20px;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.95));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
    position: sticky;
    bottom: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-left {
    display: flex;
    align-items: center;
}

.footer-stats {
    display: flex;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.stat-icon svg {
    width: 18px;
    height: 18px;
}

.stat-text {
    display: flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

.stat-value {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

.stat-label {
    color: var(--text-tertiary);
    font-size: 12px;
}

.footer-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.footer-button:hover {
    background-color: rgba(229, 9, 20, 0.1);
    border-color: rgba(229, 9, 20, 0.3);
    color: var(--text-primary);
    transform: translateY(-2px);
    text-decoration: none;
}

.footer-button:hover .button-icon {
    transform: scale(1.15);
}

.notification-item.read .notification-card {
    opacity: 0.75;
}

.notification-item.unread .notification-card {
    border-left: 3px solid var(--accent);
}

.notification-item.unread[data-type="news"] .notification-card {
    border-left-color: var(--news-color);
}

.notification-item.unread[data-type="system"] .notification-card {
    border-left-color: var(--system-color);
}

.notification-item.unread[data-type="content"] .notification-card {
    border-left-color: var(--content-color);
}

[x-cloak] {
    display: none !important;
}

@media (max-width: 576px) {
    .notification-dropdown {
        position: absolute;
        top: calc(100% + 10px);
        right: -16px;
        width: var(--dropdown-width);
        max-height: var(--dropdown-max-height);
        border-radius: var(--border-radius-xl);
    }
    
    .notification-dropdown::before {
        display: block;
    }
}