.notif-panel {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.notif-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--border-md, rgba(255, 255, 255, 0.08));
}

.notif-panel__head h3 {
	margin: 0;
	font-family: var(--font-body, "Rajdhani", sans-serif);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.88);
}

.notif-panel__mark-all {
	appearance: none;
	background: transparent;
	border: none;
	padding: 4px 6px;
	font-family: var(--font-body, "Rajdhani", sans-serif);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: color 0.12s ease;
}

.notif-panel__mark-all:hover:not(:disabled) {
	color: rgba(255, 255, 255, 0.9);
}

.notif-panel__mark-all:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.notif-panel__list {
	max-height: 400px;
	overflow-y: auto;
	overflow-x: hidden;
}

.notif-panel__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	position: relative;
	transition: background 0.12s ease;
	border: none;
	background: transparent;
	width: 100%;
	text-align: left;
	font: inherit;
}

.notif-panel__item:hover {
	background: rgba(255, 255, 255, 0.04);
}

.notif-panel__item.unread {
	background: rgba(220, 75, 45, 0.07);
}

.notif-panel__item.unread::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: rgba(220, 85, 50, 0.9);
}

.notif-panel__item-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: #212121;
	border: 1px solid rgba(255, 255, 255, 0.06);
	color: #b5b5b5;
}

.notif-panel__item.unread .notif-panel__item-icon {
	color: #e8e4dc;
	border-color: rgba(220, 85, 50, 0.25);
	background: rgba(220, 75, 45, 0.12);
}

.notif-kind-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.notif-panel__item-body {
	flex: 1 1 auto;
	min-width: 0;
}

.notif-panel__item-title {
	display: block;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.92);
}

.notif-panel__item-text {
	display: block;
	margin-top: 2px;
	font-size: 0.75rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.45);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.notif-panel__item-time {
	display: block;
	margin-top: 4px;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.32);
}

.notif-panel__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 32px 16px;
	text-align: center;
	color: rgba(255, 255, 255, 0.4);
	font-size: 0.8125rem;
}

.notif-panel__empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #212121;
	border: 1px solid rgba(255, 255, 255, 0.06);
	color: #8a8a8a;
}

.notif-panel__empty-icon .notif-kind-icon {
	width: 20px;
	height: 20px;
}

/* Site nav dropdown */
.nav-notif-wrap .notif-panel--site {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	width: min(360px, calc(100vw - 24px));
	z-index: 200;
	background: var(--bg-deeper, #141618);
	border: 1px solid var(--border-md, rgba(255, 255, 255, 0.1));
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
	transform-origin: top right;
	transform: scale(0.98) translateY(-6px);
	opacity: 0;
	pointer-events: none;
	transition:
		transform 0.14s ease,
		opacity 0.14s ease;
}

.nav-notif-wrap.is-open .notif-panel--site {
	transform: scale(1) translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.nav-notif-wrap .notif-panel--site[hidden] {
	display: none !important;
}

/* Admin bell dropdown */
.rl-bell-wrap .notif-panel--admin {
	margin-top: 8px;
	width: min(360px, calc(100vw - 36px));
	background: var(--panel, #1a1816);
	border: 1px solid var(--edge, rgba(255, 255, 255, 0.08));
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
	transform-origin: top right;
	transform: scale(0.98) translateY(-6px);
	opacity: 0;
	pointer-events: none;
	transition:
		transform 0.14s ease,
		opacity 0.14s ease;
}

.rl-bell-wrap.open .notif-panel--admin {
	transform: scale(1) translateY(0);
	opacity: 1;
	pointer-events: auto;
}

.rl-bell-wrap .notif-panel--admin[hidden] {
	display: none !important;
}

.rl-bell-wrap .notif-panel--admin .notif-panel__item.unread {
	background: rgba(133, 73, 230, 0.06);
}

.rl-bell-wrap .notif-panel--admin .notif-panel__item.unread::before {
	background: var(--primary, #8549e6);
}

.rl-bell-wrap .notif-panel--admin .notif-panel__item.unread .notif-panel__item-icon {
	background: rgba(133, 73, 230, 0.12);
	border-color: rgba(133, 73, 230, 0.3);
	color: #ddb8ff;
}
