.notif-center {
    position: relative;
    margin-left: 24px;
}

.notif-center__toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #2b2b2b;
    background: rgba(10, 10, 10, 0.9);
    color: #EAEAEA;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.notif-center__toggle:hover,
.notif-center__toggle:focus-visible {
    border-color: #00BFFF;
    box-shadow: 0 0 16px rgba(0, 191, 255, 0.25);
    outline: none;
    transform: translateY(-1px);
}

.notif-center__toggle:active {
    transform: translateY(0);
}

.notif-center__icon {
    width: 20px;
    height: 20px;
    display: block;
    background: url('../images/the_bell/the_bell_tolls_1.svg') center / 18px 18px no-repeat;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.notif-center__toggle:hover .notif-center__icon,
.notif-center__toggle:focus-visible .notif-center__icon {
    opacity: 1;
}

.notif-center__counter {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(180deg, #00BFFF, #0077C0);
    box-shadow: 0 0 18px rgba(0, 191, 255, 0.65);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.notif-center__counter::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.55) 0%, rgba(0, 191, 255, 0) 70%);
    opacity: 0.8;
}

.notif-center__counter.is-active {
    opacity: 1;
    transform: scale(1);
    animation: notif-counter-pulse 1.8s ease-in-out infinite;
}

@keyframes notif-counter-pulse {
    0%, 100% {
        box-shadow: 0 0 18px rgba(0, 191, 255, 0.65);
    }
    50% {
        box-shadow: 0 0 24px rgba(0, 191, 255, 0.85);
    }
}

.notif-center__panel {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    width: 340px;
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 191, 255, 0.05);
    overflow: hidden;
    z-index: 200;
    transform-origin: top right;
    animation: notif-panel-in 0.18s ease;
}

@keyframes notif-panel-in {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(-4px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.notif-center__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 10px;
}

.notif-center__title {
    font-family: 'Russo One', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #EAEAEA;
}

.notif-center__close {
    background: transparent;
    border: none;
    color: #7C7C7C;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.notif-center__close:hover,
.notif-center__close:focus-visible {
    color: #EAEAEA;
    outline: none;
}

.notif-center__body {
    padding: 0 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notif-center__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 6px;
}

.notif-center__list::-webkit-scrollbar {
    width: 4px;
}

.notif-center__list::-webkit-scrollbar-thumb {
    background: rgba(0, 191, 255, 0.35);
    border-radius: 999px;
}

.notif-center__loader,
.notif-center__empty,
.notif-center__error {
    padding: 20px 14px;
    border-radius: 12px;
    border: 1px dashed rgba(0, 191, 255, 0.25);
    text-align: center;
    font-size: 0.95rem;
    color: #A0A0A0;
}

.notif-center__loader {
    font-style: italic;
    color: #7C7C7C;
}

.notif-center__error {
    border-color: rgba(255, 59, 59, 0.35);
    color: #ff9e9e;
}

.notif-card {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(51, 51, 51, 0.9);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.notif-card:hover {
    border-color: rgba(0, 191, 255, 0.45);
    transform: translateY(-1px);
}

.notif-card__badge {
    width: 8px;
    min-width: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #00BFFF, #0077C0);
}

.notif-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notif-card__message {
    color: #EAEAEA;
    margin: 0;
    line-height: 1.5;
}

.notif-card__meta {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7C7C7C;
}

.notif-card__actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.notif-card.is-hidden {
    opacity: 0;
    transform: translateY(6px);
}

.notif-card__action {
    border: 1px solid rgba(0, 191, 255, 0.35);
    background: transparent;
    color: #00BFFF;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.notif-card__action:hover,
.notif-card__action:focus-visible {
    background: rgba(0, 191, 255, 0.12);
    outline: none;
}

.notif-card--error {
    border-color: rgba(255, 59, 59, 0.45);
}

.notif-card--error .notif-card__badge {
    background: linear-gradient(180deg, #FF3B3B, #FF7A3D);
}

.notif-card--error .notif-card__message {
    color: #ffb5b5;
}

.notif-card.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

@media (max-width: 768px) {
    .notif-center {
        margin-left: 16px;
    }

    .notif-center__panel {
        width: min(calc(100vw - 32px), 320px);
        right: -8px;
    }
}