/* =========================================
   Notification bell (header)
   ========================================= */
.gr-bell {
	/* No transform here — it would become the containing block of the
	   fixed-position panel and squeeze it to the bell's width. */
	position: absolute;
	left: 0;
	top: 50%;
	margin-top: -19px;
	z-index: 2;
}
.gr-bell__btn {
	position: relative;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 25px;
	transition: background 0.2s, color 0.2s;
}
.gr-bell__btn:hover,
.gr-bell.is-open .gr-bell__btn { color: #EBCF81; background: rgba(235,207,129,0.08); }
.gr-bell__badge {
	position: absolute;
	top: 1px;
	right: -2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #e5484d;
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
	box-shadow: 0 0 0 2px #000;
	font-family: inherit;
}
.gr-bell__badge[hidden] { display: none; }
.gr-bell__badge.is-pop { animation: grBellPop 0.45s ease; }
@keyframes grBellPop { 40% { transform: scale(1.35); } }

.gr-bell__panel {
	position: fixed;
	top: 56px;
	left: 8px;
	right: 8px;
	max-height: calc(100vh - 56px - 96px);
	display: none;
	flex-direction: column;
	border-radius: 16px;
	background: #0b0b0b;
	border: 1px solid rgba(235,207,129,0.22);
	box-shadow: 0 24px 60px rgba(0,0,0,0.75);
	overflow: hidden;
	animation: grBellIn 0.18s ease;
}
.gr-bell.is-open .gr-bell__panel { display: flex; }
@keyframes grBellIn { from { opacity: 0; transform: translateY(-6px); } }

.gr-bell__head {
	display: flex;
	align-items: center;
	padding: 14px 14px 10px 18px;
}
.gr-bell__head h3 { margin: 0; font-size: 17px; font-weight: 700; color: #fff; }
.gr-bell__close {
	margin-left: auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,0.6);
	font-size: 18px;
}
.gr-bell__close:hover { background: rgba(255,255,255,0.06); color: #fff; }

.gr-bell__push {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 12px 8px;
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(235,207,129,0.06);
	border: 1px solid rgba(235,207,129,0.16);
}
.gr-bell__push[hidden] { display: none; }
.gr-bell__push-icon {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(235,207,129,0.14);
	color: #EBCF81;
	font-size: 17px;
}
.gr-bell__push-text { display: flex; flex-direction: column; min-width: 0; }
.gr-bell__push-text strong { font-size: 13px; color: #fff; }
.gr-bell__push-text small { font-size: 11.5px; line-height: 1.35; color: rgba(255,255,255,0.5); }
.gr-bell__push-text small.is-on { color: #6fcf97; }
.gr-bell__push-text small.is-blocked { color: #eb5757; }
.gr-bell__push-btn {
	margin-left: auto;
	flex-shrink: 0;
	padding: 6px 12px;
	border-radius: 8px;
	background: #EBCF81;
	color: #1a1a2e;
	font-size: 12px;
	font-weight: 700;
}
.gr-bell__push-btn[hidden] { display: none; }
.gr-bell__push-btn.is-off { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); }
.gr-bell__push-btn:disabled { opacity: 0.6; }

.gr-bell__list { flex: 1; overflow-y: auto; padding: 0 6px 8px; overscroll-behavior: contain; }
.gr-bell__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 36px 16px;
	text-align: center;
	font-size: 13.5px;
	color: rgba(255,255,255,0.45);
}
.gr-bell__empty i { font-size: 26px; color: rgba(235,207,129,0.6); }
.gr-bell__more {
	display: block;
	width: calc(100% - 8px);
	margin: 6px 4px 2px;
	padding: 10px 12px;
	border: 1px solid rgba(235,207,129,0.22);
	border-radius: 12px;
	background: rgba(235,207,129,0.06);
	color: #EBCF81;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s;
}
.gr-bell__more:hover { background: rgba(235,207,129,0.12); }
.gr-bell__more span { color: rgba(235,207,129,0.6); font-weight: 400; }
.gr-bell__spin { animation: grBellSpin 0.8s linear infinite; }
@keyframes grBellSpin { to { transform: rotate(360deg); } }

.gr-notif {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 28px 10px 10px;
	border-radius: 12px;
	text-decoration: none;
	transition: background 0.15s;
}
.gr-notif:hover { background: rgba(255,255,255,0.05); }
.gr-notif--unread { background: rgba(235,207,129,0.06); }
.gr-notif__av {
	position: relative;
	width: 46px;
	height: 46px;
	flex-shrink: 0;
}
.gr-notif__av img,
.gr-notif__av > span {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(235,207,129,0.12);
	color: #EBCF81;
	font-weight: 700;
	font-size: 17px;
}
.gr-notif__kind {
	position: absolute;
	right: -3px;
	bottom: -3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: #1a1a2e;
	box-shadow: 0 0 0 2px #0b0b0b;
}
.gr-notif__kind--signal  { background: #EBCF81; }
.gr-notif__kind--win     { background: #46d18b; }
.gr-notif__kind--loss    { background: #e96a6a; color: #fff; }
.gr-notif__kind--pulse   { background: #8ab4ff; }
.gr-notif__kind--comment { background: #c39bff; }
.gr-notif__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gr-notif__text { font-size: 13.5px; line-height: 1.4; color: rgba(255,255,255,0.85); }
.gr-notif__text strong { color: #fff; font-weight: 700; }
.gr-notif__text .ti-lock { color: #EBCF81; font-size: 13px; }
.gr-notif__snippet {
	font-size: 12.5px;
	line-height: 1.35;
	color: rgba(255,255,255,0.5);
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.gr-notif__time { font-size: 11.5px; font-weight: 600; color: rgba(235,207,129,0.75); }
.gr-notif:not(.gr-notif--unread) .gr-notif__time { color: rgba(255,255,255,0.35); }
.gr-notif__dot {
	position: absolute;
	right: 10px;
	top: 50%;
	width: 9px;
	height: 9px;
	margin-top: -4px;
	border-radius: 50%;
	background: #EBCF81;
}

@media (min-width: 576px) {
	.gr-bell__panel { left: auto; right: 12px; width: 400px; }
}

/* Desktop: the bell sits beside the profile avatar */
@media (min-width: 1200px) {
	.gr-bell {
		position: relative;
		left: auto;
		top: auto;
		margin-top: 0;
		margin-left: auto;
		margin-right: 12px;
	}
	.gr-bell + .header__profile { margin-left: 0; }
	.gr-bell__panel {
		position: absolute;
		top: 52px;
		right: -58px;
		left: auto;
		max-height: min(620px, calc(100vh - 110px));
	}
}

/* ── GR Live is on: LIVE tag + pulse on the bell, pinned priority item ── */
.gr-bell__live {
	display: none;
	position: absolute;
	left: 50%;
	bottom: -5px;
	transform: translateX(-50%);
	padding: 0 4px;
	border-radius: 4px;
	background: #e5484d;
	color: #fff;
	font-size: 8.5px;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 13px;
	box-shadow: 0 0 0 2px #000;
	pointer-events: none;
	font-family: inherit;
}
.gr-bell.is-live .gr-bell__live { display: block; }
.gr-bell.is-live .gr-bell__btn { animation: grLiveRing 1.8s infinite; }
@keyframes grLiveRing {
	0%   { box-shadow: 0 0 0 0 rgba(229,72,77,0.55); }
	70%  { box-shadow: 0 0 0 9px rgba(229,72,77,0); }
	100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); }
}

.gr-notif--live,
.gr-notif--live.gr-notif--unread {
	margin-bottom: 6px;
	background: linear-gradient(135deg, rgba(229,72,77,0.2), rgba(229,72,77,0.06));
	border: 1px solid rgba(229,72,77,0.45);
}
.gr-notif--live:hover { background: linear-gradient(135deg, rgba(229,72,77,0.28), rgba(229,72,77,0.1)); }
.gr-notif__av > .gr-notif__live-av {
	background: #e5484d;
	color: #fff;
	font-size: 24px;
	animation: grLiveRing 1.8s infinite;
}
.gr-notif--live .gr-notif__kind { display: none; }
.gr-notif__live-tag {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 4px;
	background: #e5484d;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	vertical-align: 1px;
}
.gr-notif--live .gr-notif__time { color: #ff8a8d; }
.gr-notif--live .gr-notif__dot  { background: #e5484d; }

@media (prefers-reduced-motion: reduce) {
	.gr-bell.is-live .gr-bell__btn,
	.gr-notif__av > .gr-notif__live-av { animation: none; }
}
