.fx-notify {
	position: fixed;
	inset: 0;
	z-index: 10060;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.fx-notify.is-on {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.35s ease, visibility 0s;
	pointer-events: auto;
}

.fx-notify.is-leave {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.fx-notify__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 14, 28, 0.62);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.fx-notify__card {
	position: relative;
	min-width: 280px;
	max-width: min(92vw, 360px);
	padding: 28px 28px 22px;
	text-align: center;
	background: linear-gradient(155deg, rgba(32, 38, 58, 0.98) 0%, rgba(22, 26, 42, 0.99) 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
	transform: scale(0.94) translateY(16px);
	opacity: 0;
	transition: transform 0.5s cubic-bezier(0.34, 1.35, 0.64, 1), opacity 0.45s ease;
}

.fx-notify.is-on .fx-notify__card {
	transform: scale(1) translateY(0);
	opacity: 1;
}

.fx-notify.is-leave .fx-notify__card {
	transform: scale(0.96) translateY(-12px);
	opacity: 0;
}

.fx-notify.is-success .fx-notify__card {
	box-shadow: 0 0 0 1px rgba(14, 203, 129, 0.12), 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 80px rgba(14, 203, 129, 0.08);
}

.fx-notify.is-error .fx-notify__card {
	box-shadow: 0 0 0 1px rgba(246, 70, 93, 0.15), 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 60px rgba(246, 70, 93, 0.08);
}

.fx-notify.is-warn .fx-notify__card {
	box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.18), 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 70px rgba(245, 158, 11, 0.1);
}

.fx-notify__ring {
	position: absolute;
	left: 50%;
	top: 38px;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	border: 2px solid rgba(14, 203, 129, 0.35);
	opacity: 0;
}

.fx-notify.is-on.is-success .fx-notify__ring {
	opacity: 1;
	animation: fxNotifyRing 2.2s ease-out infinite;
}

@keyframes fxNotifyRing {
	0% { transform: scale(0.85); opacity: 0.6; }
	70% { transform: scale(1.15); opacity: 0; }
	100% { transform: scale(1.15); opacity: 0; }
}

.fx-notify__icon {
	display: none;
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.fx-notify.is-success .fx-notify__icon--success { display: flex; background: linear-gradient(145deg, rgba(14, 203, 129, 0.25), rgba(14, 203, 129, 0.08)); color: #0ecb81; }
.fx-notify.is-error .fx-notify__icon--error { display: flex; background: linear-gradient(145deg, rgba(246, 70, 93, 0.25), rgba(246, 70, 93, 0.08)); color: #f6465d; }
.fx-notify.is-info .fx-notify__icon--info { display: flex; background: linear-gradient(145deg, rgba(168, 85, 247, 0.22), rgba(168, 85, 247, 0.08)); color: #a855f7; }
.fx-notify.is-warn .fx-notify__icon--warn { display: flex; background: linear-gradient(145deg, rgba(245, 158, 11, 0.28), rgba(245, 158, 11, 0.08)); color: #f59e0b; }

.fx-notify__title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #f2f4f8;
}

.fx-notify__sub {
	margin: 0 0 16px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #848e9c;
	word-break: keep-all;
}

.fx-notify__sub:empty {
	display: none;
	margin-bottom: 0;
}

.fx-notify__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.fx-notify__btn {
	min-width: 120px;
	height: 38px;
	padding: 0 20px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	color: #eaecef;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.fx-notify.is-confirm .fx-notify__btn-ok {
	min-width: 100px;
	border-color: rgba(168, 85, 247, 0.45);
	color: #c4b5fd;
	background: rgba(168, 85, 247, 0.12);
}

.fx-notify.is-confirm .fx-notify__btn-cancel {
	min-width: 100px;
}

.fx-notify.is-success .fx-notify__btn-ok {
	border-color: rgba(14, 203, 129, 0.35);
	color: #0ecb81;
}

.fx-notify.is-error .fx-notify__btn-ok {
	border-color: rgba(246, 70, 93, 0.35);
	color: #f6465d;
}

.fx-notify.is-warn .fx-notify__btn-ok {
	border-color: rgba(245, 158, 11, 0.45);
	color: #fbbf24;
	background: rgba(245, 158, 11, 0.12);
}

.fx-notify.is-warn.is-confirm .fx-notify__btn-ok {
	min-width: 128px;
	border-color: rgba(245, 158, 11, 0.5);
	color: #111827;
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Light mode */
body:not(.dark) .fx-notify__backdrop {
	background: rgba(15, 23, 42, 0.35);
}
body:not(.dark) .fx-notify__card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}
body:not(.dark) .fx-notify.is-success .fx-notify__card {
	box-shadow: 0 0 0 1px rgba(14, 203, 129, 0.18), 0 24px 48px rgba(15, 23, 42, 0.14);
}
body:not(.dark) .fx-notify.is-error .fx-notify__card {
	box-shadow: 0 0 0 1px rgba(246, 70, 93, 0.18), 0 24px 48px rgba(15, 23, 42, 0.14);
}
body:not(.dark) .fx-notify.is-warn .fx-notify__card {
	box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.22), 0 24px 48px rgba(15, 23, 42, 0.14);
}
body:not(.dark) .fx-notify__title {
	color: #0f172a;
}
body:not(.dark) .fx-notify__sub {
	color: #64748b;
}
body:not(.dark) .fx-notify__btn {
	background: #f1f5f9;
	border-color: #e2e8f0;
	color: #0f172a;
}
body:not(.dark) .fx-notify.is-success .fx-notify__btn-ok {
	border-color: rgba(14, 203, 129, 0.4);
	color: #0ecb81;
	background: rgba(14, 203, 129, 0.08);
}
body:not(.dark) .fx-notify.is-error .fx-notify__btn-ok {
	border-color: rgba(246, 70, 93, 0.4);
	color: #f6465d;
	background: rgba(246, 70, 93, 0.08);
}
body:not(.dark) .fx-notify.is-confirm .fx-notify__btn-ok {
	border-color: rgba(168, 85, 247, 0.45);
	color: #7c3aed;
	background: rgba(168, 85, 247, 0.1);
}
body:not(.dark) .fx-notify.is-warn .fx-notify__btn-ok {
	border-color: rgba(245, 158, 11, 0.45);
	color: #b45309;
	background: rgba(245, 158, 11, 0.1);
}
body:not(.dark) .fx-notify.is-warn.is-confirm .fx-notify__btn-ok {
	color: #111827;
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
	border-color: transparent;
}
/* keep green/red/purple icon accents */
body:not(.dark) .fx-notify.is-success .fx-notify__icon--success { color: #0ecb81; }
body:not(.dark) .fx-notify.is-error .fx-notify__icon--error { color: #f6465d; }
body:not(.dark) .fx-notify.is-info .fx-notify__icon--info { color: #a855f7; }
body:not(.dark) .fx-notify.is-warn .fx-notify__icon--warn { color: #d97706; }
