/* ───────────────────────── Notification bell + dropdown ───────────────────────── */
.nav-bell-wrap { position: relative; display: inline-flex; align-items: center; }

.nav-bell-btn {
    position: relative;
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; outline: none;
    border-radius: 50%;
    background: rgba(183, 28, 28, .07);
    color: #b71c1c;
    font-size: 18px;
    cursor: pointer;
    transition: background .15s ease;
}
.nav-bell-btn:hover { background: rgba(183, 28, 28, .14); }

.nav-bell-badge {
    position: absolute; top: -2px; right: -2px;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px;
    background: #e53935; color: #fff;
    font-size: 10px; font-weight: 700; line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

.nav-bell-panel {
    position: absolute; top: calc(100% + 10px); right: 0;
    width: 360px; max-width: 92vw;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .16);
    overflow: hidden;
    z-index: 12000;
}

.nbp-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f1f1;
    font-weight: 800; font-size: 15px; color: #1f2937;
}
.nbp-head a { font-size: 12px; font-weight: 700; color: #b71c1c; text-decoration: none; }
.nbp-head a:hover { text-decoration: underline; }

.nbp-body { max-height: 380px; overflow-y: auto; }

.nbp-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid #f6f6f6;
    transition: background .12s ease;
}
.nbp-item:hover { background: #fafafa; }
.nbp-item.unread { background: #fff7f6; }
.nbp-item.unread:hover { background: #ffefee; }

.nbp-ic {
    flex-shrink: 0;
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 18px;
}

.nbp-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nbp-title { font-weight: 700; font-size: 13px; color: #1f2937; }
.nbp-body-text {
    font-size: 12px; color: #6b7280; margin-top: 2px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nbp-time { font-size: 11px; color: #9ca3af; margin-top: 4px; }

.nbp-dot {
    flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%;
    background: #e53935; margin-top: 6px;
}

.nbp-empty { padding: 32px 16px; text-align: center; color: #9ca3af; font-size: 13px; }

.nbp-foot {
    display: block; text-align: center;
    padding: 12px; font-weight: 700; font-size: 13px;
    color: #b71c1c; text-decoration: none;
    border-top: 1px solid #f1f1f1;
}
.nbp-foot:hover { background: #fafafa; }

/* ───────────────────────── Notifications page ───────────────────────── */
.ntf-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px 0; }
.ntf-tab {
    border: 1.5px solid #e5e7eb; background: #fff; color: #4b5563;
    border-radius: 999px; padding: 8px 16px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all .15s ease;
}
.ntf-tab:hover { border-color: #fca5a5; color: #b71c1c; }
.ntf-tab.active { background: #b71c1c; border-color: #b71c1c; color: #fff; }

.ntf-group { margin-bottom: 22px; }
.ntf-group-title {
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
    color: #9ca3af; margin: 0 0 10px 2px;
}

.ntf-card {
    display: flex; align-items: flex-start; gap: 14px;
    background: #fff; border: 1px solid #eee; border-radius: 12px;
    padding: 14px 16px; margin-bottom: 10px;
    text-decoration: none; cursor: pointer;
    transition: box-shadow .15s ease, transform .05s ease;
}
.ntf-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.ntf-card.unread { border-left: 3px solid #e53935; background: #fffafa; }

.ntf-ic {
    flex-shrink: 0; width: 46px; height: 46px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 22px;
}
.ntf-txt { flex: 1; min-width: 0; }
.ntf-title { font-weight: 700; font-size: 14px; color: #1f2937; }
.ntf-body { font-size: 13px; color: #6b7280; margin-top: 3px; }
.ntf-time { font-size: 11px; color: #9ca3af; margin-top: 6px; }
.ntf-unread-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: #e53935; margin-top: 6px; }

.ntf-empty {
    text-align: center; padding: 60px 20px; color: #9ca3af;
}
.ntf-empty i { font-size: 48px; color: #e5e7eb; margin-bottom: 12px; display: block; }

.ntf-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.ntf-mark-all {
    border: 1.5px solid #e5e7eb; background: #fff; color: #b71c1c;
    border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.ntf-mark-all:hover { background: #fff5f5; border-color: #fca5a5; }
.ntf-mark-all:disabled { opacity: .5; cursor: default; }
