/* ===== Notifikasi (bell) di header ===== */
.header-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(127, 224, 255, 0.10);
    border: 1px solid var(--border-ice);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.header-bell:hover {
    background: rgba(127, 224, 255, 0.18);
    border-color: var(--accent-primary);
}

.bell-ic {
    font-size: 1rem;
    line-height: 1;
}

/* ===== Mention autocomplete ===== */
.mention-box {
    position: absolute;
    left: 0;
    bottom: calc(100% + 6px);
    min-width: 220px;
    max-width: 320px;
    background: rgba(10, 26, 44, 0.98);
    border: 1px solid var(--border-ice);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(4, 12, 22, 0.55);
    backdrop-filter: blur(14px);
    z-index: 40;
    overflow: hidden;
}

.mention-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 8px 12px;
    cursor: pointer;
}

.mention-item.aktif,
.mention-item:hover {
    background: rgba(127, 224, 255, 0.14);
}

.mention-nama {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.mention-handle {
    font-size: 0.74rem;
    color: var(--accent-primary);
}

/* ===== Notifikasi: dropdown lonceng ===== */
.bell-menu {
    position: relative;
}

.bell-menu > summary {
    list-style: none;
    cursor: pointer;
}

.bell-menu > summary::-webkit-details-marker {
    display: none;
}

.bell-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-width: 86vw;
    max-height: 420px;
    overflow-y: auto;
    background: rgba(10, 26, 44, 0.98);
    border: 1px solid var(--border-ice);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(4, 12, 22, 0.5);
    backdrop-filter: blur(14px);
    z-index: 30;
}

.bell-head {
    padding: 12px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-secondary);
    border-bottom: 1px solid var(--border-ice);
    position: sticky;
    top: 0;
    background: rgba(10, 26, 44, 0.98);
}

.bell-list {
    list-style: none;
    margin: 0;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bell-notif a,
.bell-notif-mati {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
}

.bell-notif a:hover {
    background: rgba(127, 224, 255, 0.10);
}

.bell-notif.baru a {
    background: rgba(95, 211, 240, 0.12);
}

.bell-notif-ic {
    flex: 0 0 auto;
    font-size: 1rem;
    line-height: 1.4;
}

.bell-notif-teks {
    font-size: 0.82rem;
    line-height: 1.45;
}

.bell-notif-teks strong {
    color: var(--accent-secondary);
}

.bell-notif-judul {
    color: var(--accent-primary);
}

.bell-notif-waktu {
    color: var(--text-soft);
}

.bell-notif-mati {
    color: var(--text-soft);
    cursor: default;
}

.bell-kosong {
    padding: 22px 16px;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.85rem;
}

.bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e0567a;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(224, 86, 122, 0.5);
}

/* ===== Dropdown menu akun ===== */
.user-menu {
    position: relative;
}

.user-menu > summary {
    list-style: none;
    cursor: pointer;
}

.user-menu > summary::-webkit-details-marker {
    display: none;
}

.header-user-caret {
    font-size: 0.7rem;
    color: var(--text-soft);
    transition: transform 0.2s ease;
}

.user-menu[open] .header-user-caret {
    transform: rotate(180deg);
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    background: rgba(10, 26, 44, 0.97);
    border: 1px solid var(--border-ice);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(4, 12, 22, 0.5);
    backdrop-filter: blur(14px);
    z-index: 30;
    animation: menuFade 0.16s ease;
}

@keyframes menuFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-menu-head {
    padding: 8px 12px 10px;
    color: var(--text-soft);
    font-size: 0.78rem;
    line-height: 1.5;
    border-bottom: 1px solid var(--border-ice);
    margin-bottom: 4px;
}

.user-menu-head strong {
    color: var(--accent-secondary);
    font-size: 0.95rem;
}

.user-menu-badge {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #f0b877;
}

.user-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.user-menu-item:hover {
    background: rgba(127, 224, 255, 0.12);
    color: var(--accent-primary);
}

.user-menu-keluar {
    color: #e88ba0;
}

.user-menu-keluar:hover {
    background: rgba(224, 86, 122, 0.14);
    color: #f0a4b6;
}

/* ===== Daftar notifikasi ===== */
.notif-list {
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notif-item {
    background: var(--card-bg);
    border: 1px solid var(--border-ice);
    border-radius: 12px;
    overflow: hidden;
}

.notif-item.notif-baru {
    border-color: rgba(95, 211, 240, 0.5);
    background: rgba(95, 211, 240, 0.08);
}

.notif-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-main);
}

a.notif-link:hover {
    background: rgba(127, 224, 255, 0.08);
}

.notif-mati {
    color: var(--text-soft);
    cursor: default;
}

.notif-ic {
    font-size: 1.05rem;
    line-height: 1.3;
    flex: 0 0 auto;
}

.notif-teks {
    font-size: 0.9rem;
    line-height: 1.5;
}

.notif-teks strong {
    color: var(--accent-secondary);
}

.notif-teks em {
    color: var(--accent-primary);
    font-style: normal;
    font-weight: 600;
}

.notif-waktu {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    color: var(--text-soft);
}