.notification-hub {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(229,153,0,.32);
    background: rgba(8,6,6,.64);
    color: #fff4e8;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.notification-toggle:hover,
.notification-toggle[aria-expanded="true"] {
    border-color: rgba(229,153,0,.8);
    background: linear-gradient(145deg, rgba(122,2,1,.34), rgba(8,6,6,.86));
    transform: translateY(-1px);
}

.notification-icon {
    width: 12px;
    height: 12px;
    display: block;
    border-radius: 999px;
    color: transparent;
    background: radial-gradient(circle, #fff4e8 0 24%, var(--accent-2, #e59900) 25% 56%, rgba(122,2,1,.95) 57% 100%);
    box-shadow: 0 0 18px rgba(229,153,0,.36);
}

.notification-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e59900;
    color: #090606;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.notification-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(370px, calc(100vw - 32px));
    border: 1px solid rgba(229,153,0,.30);
    background: linear-gradient(145deg, rgba(18,9,9,.98), rgba(7,5,5,.98));
    box-shadow: 0 26px 80px rgba(0,0,0,.48);
    z-index: 9999;
}

.notification-panel[hidden] { display: none; }

.notification-panel::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 15px;
    width: 14px;
    height: 14px;
    transform: rotate(45deg);
    border-left: 1px solid rgba(229,153,0,.30);
    border-top: 1px solid rgba(229,153,0,.30);
    background: rgba(18,9,9,.98);
}

.notification-panel-head {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.notification-panel-head strong {
    display: block;
    color: #fff4e8;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
}

.notification-panel-head span {
    display: block;
    margin-top: 2px;
    color: #81776f;
    font-size: 11px;
}

.notification-panel-head button {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.13);
    background: transparent;
    color: #fff4e8;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.notification-list {
    max-height: 410px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.notification-item {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.015);
}

.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: rgba(229,153,0,.07); }
.notification-item.is-unread { background: linear-gradient(90deg, rgba(122,2,1,.24), rgba(229,153,0,.05)); }

.notification-item-meta {
    color: var(--accent-2, #e59900);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.notification-item strong {
    color: #fff4e8;
    font-size: 13px;
    line-height: 1.25;
}

.notification-item small,
.notification-empty {
    color: #a99f96;
    font-size: 12px;
    line-height: 1.5;
}

.notification-empty { padding: 18px 16px; }

.account-checkline {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 13px;
    align-items: start;
    margin: 18px 0 4px;
    padding: 16px;
    border: 1px solid rgba(229,153,0,.22);
    background: rgba(122,2,1,.08);
    cursor: pointer;
}

.account-checkline input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent-2, #e59900);
}

.account-checkline strong,
.account-checkline small {
    display: block;
}

.account-checkline strong {
    color: #fff4e8;
    font-size: 13px;
}

.account-checkline small {
    margin-top: 4px;
    color: #a99f96;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .notification-hub {
        order: -1;
        align-self: flex-start;
    }

    .notification-panel {
        left: 0;
        right: auto;
        width: min(360px, calc(100vw - 44px));
    }

    .notification-panel::before {
        left: 15px;
        right: auto;
    }
}
