/*NOTIFICATION BELL — bloco próprio (não reaproveita .account-cluster__*, que
  já é duplicado entre public.css e ui.css; somar mais CSS lá garantiria
  drift entre os dois). Reaproveita as mesmas variáveis de cor/fonte já
  definidas em cada folha de estilo (--color-primary, --font-accent-bold,
  --font-regular) e o mesmo padrão de posicionamento/transição do menu do
  .account-cluster, pra ficar visualmente da mesma família.*/

.notif-bell {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.notif-bell__toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: transparent;
    border: none;
    padding: 0;
    color: var(--color-primary);
    opacity: 0.75;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, opacity 0.2s;
}
.notif-bell__toggle:hover,
.notif-bell__toggle.is-open {
    opacity: 1;
    background: rgba(255, 216, 130, 0.12);
}
.notif-bell__toggle svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.notif-bell__badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e05c5c;
    color: #fff;
    font-family: var(--font-accent-bold), sans-serif;
    font-size: 10px;
    line-height: 1;
    box-shadow: 0 0 0 2px rgba(18, 13, 7, 0.9);
}
.notif-bell__badge[hidden] {
    display: none;
}

.notif-bell__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: -6px;
    width: 340px;
    max-width: calc(100vw - 24px);
    border-radius: 10px;
    background: linear-gradient(165deg, rgba(38, 26, 14, 0.97) 0%, rgba(18, 13, 7, 0.98) 100%);
    border: 1px solid rgba(235, 182, 134, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 999999;
    overflow: hidden;
}
.notif-bell__menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.notif-bell__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(235, 182, 134, 0.18);
    color: var(--color-primary);
    font-family: var(--font-accent-bold), sans-serif;
    font-size: 13px;
}
.notif-bell__mark-all {
    background: transparent;
    border: none;
    padding: 0;
    color: #e8dcc4;
    font-family: var(--font-regular), sans-serif;
    font-size: 12px;
    opacity: 0.75;
    cursor: pointer;
    transition: opacity 0.15s, color 0.15s;
}
.notif-bell__mark-all:hover {
    opacity: 1;
    color: var(--color-primary);
}

.notif-bell__list {
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
}

.notif-bell__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(235, 182, 134, 0.1);
    transition: background 0.15s;
}
.notif-bell__item:last-child {
    border-bottom: none;
}
.notif-bell__item:hover {
    background: rgba(255, 216, 130, 0.07);
}
.notif-bell__item--unread {
    background: rgba(255, 216, 130, 0.05);
}
.notif-bell__item--unread::before {
    content: '';
    width: 6px;
    height: 6px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}

.notif-bell__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(235, 182, 134, 0.18);
    color: #ebb686;
}
.notif-bell__icon svg {
    width: 16px;
    height: 16px;
}
.notif-bell__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.notif-bell__icon--marketplace_listing_created,
.notif-bell__icon--marketplace_sold,
.notif-bell__icon--marketplace_listing_cancelled {
    background: rgba(94, 158, 214, 0.18);
    color: #7ec8e3;
}
.notif-bell__icon--donation_confirmed {
    background: rgba(124, 58, 237, 0.18);
    color: #c084fc;
}
.notif-bell__icon--streamer_live {
    background: rgba(224, 92, 92, 0.18);
    color: #f0a3a3;
}

.notif-bell__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.notif-bell__title {
    color: #e8dcc4;
    font-family: var(--font-regular), sans-serif;
    font-size: 12.5px;
    line-height: 1.4;
    overflow-wrap: break-word;
}
.notif-bell__item--unread .notif-bell__title {
    color: #fff;
}
.notif-bell__time {
    color: rgba(232, 220, 196, 0.5);
    font-size: 11px;
}

.notif-bell__empty,
.notif-bell__loading {
    padding: 24px 14px;
    text-align: center;
    color: rgba(232, 220, 196, 0.5);
    font-family: var(--font-regular), sans-serif;
    font-size: 12.5px;
}

.notif-bell__footer {
    display: block;
    padding: 10px 14px;
    text-align: center;
    border-top: 1px solid rgba(235, 182, 134, 0.18);
    color: var(--color-primary);
    font-family: var(--font-regular), sans-serif;
    font-size: 12px;
    transition: background 0.15s;
}
.notif-bell__footer:hover {
    background: rgba(255, 216, 130, 0.07);
}

@media (max-width: 480px) {
    .notif-bell__menu {
        width: calc(100vw - 24px);
        right: -50px;
    }
}

/* Página /notifications — mesma lista do dropdown, sem o posicionamento
   absoluto (aqui ela é o conteúdo da página, não um menu flutuante). */
.notif-page__list {
    max-height: none;
    background: linear-gradient(165deg, rgba(38, 26, 14, 0.97) 0%, rgba(18, 13, 7, 0.98) 100%);
    border: 1px solid rgba(235, 182, 134, 0.28);
    border-radius: 10px;
}
.notif-page__pagination {
    margin-top: 16px;
}
