/* Fontxsis notifications — Latest Updates style list */
.fx-notice-root {
	--fx-msg-ink: #1f2937;
	--fx-msg-muted: #8b93a7;
	--fx-msg-line: rgba(31, 41, 55, 0.1);
	--fx-msg-accent: #3db4ff;
	--fx-msg-panel: #ffffff;
	position: relative;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	z-index: 40;
}

.fx-notice-root * {
	box-sizing: border-box;
}

.fx-notice-bell {
	position: relative;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--fx-border-strong, rgba(26, 39, 68, 0.14));
	border-radius: 8px;
	background: var(--fx-bg-panel, #fff);
	color: var(--fx-text-muted, #7a8499);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fx-notice-bell:hover,
.fx-notice-root.is-open .fx-notice-bell {
	background: var(--fx-bg-soft, #f5f7fb);
	border-color: var(--fx-border-strong, rgba(26, 39, 68, 0.2));
	color: var(--fx-text, #15203a);
}

.fx-notice-bell:focus-visible {
	outline: 2px solid rgba(61, 180, 255, 0.35);
	outline-offset: 2px;
}

.fx-notice-bell__icon {
	width: 16px;
	height: 16px;
	display: block;
}

.fx-notice-bell__badge {
	position: absolute;
	top: -3px;
	right: -3px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #ef4444;
	border: 2px solid var(--fx-bg-panel, #fff);
	color: #fff;
	font-size: 0.62rem;
	font-weight: 800;
	line-height: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.fx-notice-bell__badge[hidden] {
	display: none !important;
}

.fx-notice-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: min(380px, calc(100vw - 24px));
	max-height: min(480px, calc(100vh - 80px));
	display: flex;
	flex-direction: column;
	border-radius: 14px;
	overflow: hidden;
	background: var(--fx-msg-panel);
	color: var(--fx-msg-ink);
	border: 1px solid var(--fx-msg-line);
	box-shadow: 0 16px 40px rgba(20, 28, 48, 0.14);
	opacity: 0;
	transform: translateY(-6px) scale(0.98);
	transform-origin: top right;
	pointer-events: none;
	visibility: hidden;
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
	z-index: 50;
	/* Prefer is-open visibility over [hidden] so close animation is not cut off */
}

.fx-notice-panel[hidden] {
	display: flex !important;
}

.fx-notice-root.is-open .fx-notice-panel {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
	visibility: visible;
}

.fx-notice-panel__head {
	padding: 14px 16px;
	text-align: center;
	border-bottom: 1px solid var(--fx-msg-line);
	background: #fff;
}

.fx-notice-panel__title {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 650;
	letter-spacing: -0.01em;
	color: var(--fx-msg-ink);
}

.fx-notice-panel__body {
	flex: 1;
	overflow: auto;
	padding: 0;
	background: #fff;
	min-height: 80px;
}

.fx-notice-panel__foot {
	padding: 12px 16px 14px;
	border-top: 1px solid var(--fx-msg-line);
	text-align: center;
	background: #fff;
}

.fx-notice-panel__all {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--fx-msg-muted);
	text-decoration: none;
}

.fx-notice-panel__all:hover {
	color: #1aa0e8;
	text-decoration: underline;
}

.fx-notice-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fx-notice-item {
	border-bottom: 1px solid var(--fx-msg-line);
}

.fx-notice-item:last-child {
	border-bottom: 0;
}

.fx-notice-item__row {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px 16px;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
	transition: background 0.12s ease;
}

.fx-notice-item__row:hover {
	background: #f8fafc;
}

.fx-notice-item.is-unread .fx-notice-item__title {
	font-weight: 800;
}

.fx-notice-item.is-unread .fx-notice-item__badge {
	border-color: rgba(61, 180, 255, 0.85);
	background: rgba(61, 180, 255, 0.14);
}

.fx-notice-item__badge {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 8px;
	border-radius: 6px;
	border: 1px solid rgba(61, 180, 255, 0.55);
	color: #1aa0e8;
	background: rgba(61, 180, 255, 0.08);
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
}

.fx-notice-item__title {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--fx-msg-ink);
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fx-notice-item__chevron {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	color: var(--fx-msg-muted);
	transition: transform 0.18s ease, color 0.15s ease;
}

.fx-notice-item.is-expanded .fx-notice-item__chevron {
	transform: rotate(90deg);
	color: var(--fx-msg-accent);
}

.fx-notice-item__detail {
	padding: 0 16px 14px 16px;
	animation: fx-notice-expand 0.16s ease;
}

.fx-notice-item__detail-inner {
	padding: 12px 12px 12px;
	border-radius: 10px;
	background: #f4f7fb;
	border: 1px solid var(--fx-msg-line);
}

.fx-notice-item__meta {
	margin: 0 0 6px;
	font-size: 0.72rem;
	color: var(--fx-msg-muted);
}

.fx-notice-item__body {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.5;
	color: #4b5568;
	white-space: pre-wrap;
	word-break: break-word;
}

.fx-notice-item__cta {
	display: inline-flex;
	margin-top: 10px;
	padding: 7px 11px;
	border-radius: 999px;
	background: #1aa0e8;
	color: #fff;
	font-size: 0.74rem;
	font-weight: 700;
	text-decoration: none;
}

.fx-notice-item__cta:hover {
	filter: brightness(0.95);
}

.fx-notice-empty {
	margin: 0;
	padding: 32px 20px;
	text-align: center;
	color: var(--fx-msg-muted);
	font-size: 0.84rem;
	line-height: 1.5;
}

@keyframes fx-notice-expand {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

html[data-fx-theme="dark"] .fx-notice-bell {
	background: var(--fx-bg-panel);
	border-color: var(--fx-border-strong);
	color: var(--fx-text-muted);
}

html[data-fx-theme="dark"] .fx-notice-bell:hover,
html[data-fx-theme="dark"] .fx-notice-root.is-open .fx-notice-bell {
	background: var(--fx-bg-soft);
	color: var(--fx-text);
}

html[data-fx-theme="dark"] .fx-notice-panel,
html[data-fx-theme="dark"] .fx-notice-panel__head,
html[data-fx-theme="dark"] .fx-notice-panel__body,
html[data-fx-theme="dark"] .fx-notice-panel__foot {
	background: #151a24;
	color: #eef2f8;
	border-color: rgba(255, 255, 255, 0.08);
}

html[data-fx-theme="dark"] .fx-notice-panel {
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

html[data-fx-theme="dark"] .fx-notice-panel__title {
	color: #f3f5fa;
}

html[data-fx-theme="dark"] .fx-notice-panel__all {
	color: #a8b3c9;
}

html[data-fx-theme="dark"] .fx-notice-panel__all:hover {
	color: #3db4ff;
}

html[data-fx-theme="dark"] .fx-notice-item {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-fx-theme="dark"] .fx-notice-item__row:hover,
html[data-fx-theme="dark"] .fx-notice-item.is-expanded .fx-notice-item__row {
	background: rgba(255, 255, 255, 0.04);
}

html[data-fx-theme="dark"] .fx-notice-item__title {
	color: #f3f5fa;
}

html[data-fx-theme="dark"] .fx-notice-item__detail-inner {
	background: #0f131b;
	border-color: rgba(255, 255, 255, 0.08);
}

html[data-fx-theme="dark"] .fx-notice-item__body {
	color: #b6bfcf;
}

html[data-fx-theme="dark"] .fx-notice-empty {
	color: #8b95a8;
}

@media (max-width: 720px) {
	.fx-notice-panel {
		right: -8px;
		width: min(340px, calc(100vw - 20px));
		max-height: min(440px, calc(100vh - 72px));
	}
}

/* ===== Center modal notices ===== */
.fx-notice-modal {
	position: fixed;
	inset: 0;
	z-index: 12000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 16px;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.fx-notice-modal[hidden] {
	display: none !important;
}

.fx-notice-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 12, 20, 0.62);
	backdrop-filter: blur(4px);
}

.fx-notice-modal__dialog {
	position: relative;
	width: min(100%, 400px);
	overflow: hidden;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
	animation: fx-notice-modal-pop 0.22s ease;
}

.fx-notice-modal__media {
	position: relative;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	background: #0f172a;
}

.fx-notice-modal__media[hidden] {
	display: none !important;
}

.fx-notice-modal__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fx-notice-modal__media-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.28) 0%,
		transparent 42%,
		transparent 70%,
		rgba(0, 0, 0, 0.18) 100%
	);
	pointer-events: none;
}

.fx-notice-modal__tags {
	position: absolute;
	top: 14px;
	left: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	z-index: 1;
}

.fx-notice-modal__tag {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.22);
	backdrop-filter: blur(8px);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
}

.fx-notice-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.35);
	backdrop-filter: blur(8px);
	color: #fff;
	cursor: pointer;
}

.fx-notice-modal__close:hover {
	background: rgba(15, 23, 42, 0.55);
}

.fx-notice-modal__dialog:has(.fx-notice-modal__media[hidden]) .fx-notice-modal__close {
	background: rgba(15, 23, 42, 0.08);
	color: #6b7280;
}

.fx-notice-modal__dialog:has(.fx-notice-modal__media[hidden]) .fx-notice-modal__close:hover {
	background: rgba(15, 23, 42, 0.12);
	color: #111827;
}

.fx-notice-modal__close svg {
	width: 14px;
	height: 14px;
	display: block;
}

.fx-notice-modal__content {
	position: relative;
	padding: 22px 22px 24px;
	text-align: center;
}

.fx-notice-modal__title {
	margin: 0 0 10px;
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.2;
	color: #111827;
}

.fx-notice-modal__body {
	margin: 0 0 22px;
	color: #6b7280;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
}

.fx-notice-modal__cta {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}

.fx-notice-modal__cta:hover {
	background: #030712;
}

.fx-notice-modal__cta[hidden] {
	display: none !important;
}

.fx-notice-modal__cta-icon {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	color: #111827;
}

.fx-notice-modal__cta-icon svg {
	width: 12px;
	height: 12px;
	display: block;
}

.fx-notice-modal__dismiss {
	appearance: none;
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 8px;
	border: 0;
	background: transparent;
	color: #9ca3af;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
}

.fx-notice-modal__dismiss:hover {
	color: #111827;
}

@keyframes fx-notice-modal-pop {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 480px) {
	.fx-notice-modal__dialog {
		width: 100%;
	}
	.fx-notice-modal__title {
		font-size: 1.28rem;
	}
}

