/* ==========================================================================
   MU EXODUS - Custom Confirmation Modal
   ========================================================================== */

.exo-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(4, 9, 14, 0.82);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}

.exo-modal-backdrop.is-active {
	opacity: 1;
	visibility: visible;
}

.exo-modal-box {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: linear-gradient(160deg, #11212b 0%, #0c1720 55%, #081118 100%);
	border: 1px solid rgba(225, 178, 70, 0.35);
	border-radius: 18px;
	padding: 28px 26px 24px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8),
	            0 0 35px rgba(216, 169, 60, 0.16),
	            inset 0 1px 0 rgba(255, 255, 255, 0.08),
	            inset 0 0 20px rgba(225, 178, 70, 0.04);
	text-align: center;
	transform: scale(0.92) translateY(16px);
	opacity: 0;
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
	overflow: hidden;
}

.exo-modal-backdrop.is-active .exo-modal-box {
	transform: scale(1) translateY(0);
	opacity: 1;
}

/* Top luminous accent */
.exo-modal-box::before {
	content: "";
	position: absolute;
	top: 0;
	left: 15%;
	right: 15%;
	height: 2px;
	background: linear-gradient(90deg, transparent, #efc255 50%, transparent);
	box-shadow: 0 0 14px #efc255;
}

/* Close button (X) */
.exo-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	color: #6c808e;
	font-size: 14px;
	cursor: pointer;
	transition: 0.18s ease;
	padding: 0;
}

.exo-modal-close:hover {
	border-color: rgba(225, 178, 70, 0.4);
	background: rgba(225, 178, 70, 0.1);
	color: #f4c452;
}

/* Modal Icon Emblem */
.exo-modal-emblem {
	width: 58px;
	height: 58px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(225, 178, 70, 0.22) 0%, rgba(16, 33, 44, 0.6) 72%);
	border: 1px solid rgba(225, 178, 70, 0.5);
	display: grid;
	place-items: center;
	font-size: 24px;
	color: #f2c453;
	box-shadow: 0 0 24px rgba(225, 178, 70, 0.28);
	animation: exoEmblemPulse 2.8s ease-in-out infinite;
}

@keyframes exoEmblemPulse {
	0%, 100% { box-shadow: 0 0 20px rgba(225, 178, 70, 0.25); transform: scale(1); }
	50% { box-shadow: 0 0 30px rgba(225, 178, 70, 0.45); transform: scale(1.03); }
}

.exo-modal-kicker {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: #d6a438;
	margin-bottom: 6px;
}

.exo-modal-title {
	font-size: 19px;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: 0.3px;
	line-height: 1.25;
	margin: 0 0 10px;
}

.exo-modal-desc {
	font-size: 13.5px;
	line-height: 1.6;
	color: #9ab0bf;
	margin: 0 0 22px;
	word-break: break-word;
}

.exo-modal-desc strong {
	color: #f0c354;
	font-weight: 700;
}

/* Modal Actions */
.exo-modal-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.exo-modal-actions.is-single-btn {
	grid-template-columns: 1fr;
}

.exo-modal-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 10px 18px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.18s ease;
	user-select: none;
}

.exo-modal-btn-cancel {
	border: 1px solid #2d4554;
	background: rgba(255, 255, 255, 0.03);
	color: #8fa1af;
}

.exo-modal-btn-cancel:hover {
	border-color: #49687e;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

.exo-modal-btn-confirm {
	border: 1px solid #f2c75a;
	background: linear-gradient(135deg, #e7b545 0%, #b87f22 100%);
	color: #0b1319;
	box-shadow: 0 4px 16px rgba(216, 169, 60, 0.32);
}

.exo-modal-btn-confirm:hover {
	transform: translateY(-1px);
	filter: brightness(1.08);
	box-shadow: 0 6px 22px rgba(216, 169, 60, 0.5);
}

.exo-modal-btn:active {
	transform: scale(0.98);
}

@media (max-width: 480px) {
	.exo-modal-box {
		padding: 24px 20px 20px;
	}
	.exo-modal-actions {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   MU EXODUS - Toast Notification System (Bottom-Left)
   ========================================================================== */

.exo-toast-container {
	position: fixed !important;
	bottom: 26px !important;
	left: 26px !important;
	top: auto !important;
	right: auto !important;
	z-index: 999999 !important;
	display: flex !important;
	flex-direction: column-reverse !important;
	gap: 12px !important;
	pointer-events: none !important;
	max-width: min(480px, calc(100vw - 40px)) !important;
}

.exo-toast {
	pointer-events: auto !important;
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
	min-width: 320px !important;
	width: 100% !important;
	padding: 16px 46px 16px 18px !important;
	border: 1px solid #2d4554 !important;
	border-radius: 12px !important;
	background: linear-gradient(145deg, #13222c, #0d1720) !important;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
	color: #eef3f6 !important;
	font: 600 13px/1.45 Roboto, Arial, sans-serif !important;
	overflow: hidden !important;
	animation: exoToastIn .28s cubic-bezier(0.16, 1, 0.3, 1), exoToastOut .25s ease-in 6s forwards !important;
}

/* If rendered standalone without container before JS */
body > .exo-toast,
#content > .exo-toast,
.character-market-page > .exo-toast,
.usercp-page > .exo-toast,
.alert.exo-toast {
	position: fixed !important;
	bottom: 26px !important;
	left: 26px !important;
	z-index: 999999 !important;
	max-width: min(480px, calc(100vw - 40px)) !important;
}

.exo-toast > i {
	font-size: 20px !important;
	flex-shrink: 0 !important;
}

.exo-toast-body {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 2px !important;
}

.exo-toast-body strong {
	color: #ffffff !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
}

.exo-toast-body span {
	color: #eef3f6 !important;
	word-break: break-word !important;
}

.exo-toast-close {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	display: grid !important;
	place-items: center !important;
	width: 26px !important;
	height: 26px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: rgba(255, 255, 255, 0.06) !important;
	color: #8b9ea9 !important;
	cursor: pointer !important;
	transition: background .18s, color .18s !important;
}

.exo-toast-close:hover {
	background: rgba(255, 255, 255, 0.16) !important;
	color: #ffffff !important;
}

/* Success */
.exo-toast-success {
	border-color: rgba(85, 208, 149, 0.45) !important;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(85, 208, 149, 0.14) !important;
}
.exo-toast-success > i {
	color: #4ee294 !important;
}
.exo-toast-success::after {
	background: linear-gradient(90deg, #1fa363, #4ee294) !important;
}

/* Error */
.exo-toast-error {
	border-color: rgba(237, 132, 144, 0.45) !important;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(237, 132, 144, 0.14) !important;
}
.exo-toast-error > i {
	color: #f06a78 !important;
}
.exo-toast-error::after {
	background: linear-gradient(90deg, #d34250, #f06a78) !important;
}

/* Warning */
.exo-toast-warning {
	border-color: rgba(240, 195, 84, 0.45) !important;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(240, 195, 84, 0.14) !important;
}
.exo-toast-warning > i {
	color: #f0c354 !important;
}
.exo-toast-warning::after {
	background: linear-gradient(90deg, #b87f22, #f0c354) !important;
}

/* Info */
.exo-toast-info {
	border-color: rgba(77, 171, 247, 0.45) !important;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(77, 171, 247, 0.14) !important;
}
.exo-toast-info > i {
	color: #4dabf7 !important;
}
.exo-toast-info::after {
	background: linear-gradient(90deg, #1c7ed6, #4dabf7) !important;
}

/* Progress bar countdown timer */
.exo-toast::after {
	content: "" !important;
	position: absolute !important;
	left: 0 !important;
	bottom: 0 !important;
	right: 0 !important;
	height: 3px !important;
	transform-origin: left !important;
	animation: exoToastProgress 6s linear forwards !important;
}

.exo-toast:hover,
.exo-toast:hover::after {
	animation-play-state: paused !important;
}

@keyframes exoToastIn {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes exoToastOut {
	to {
		opacity: 0;
		visibility: hidden;
		transform: translateY(10px) scale(0.96);
	}
}

@keyframes exoToastProgress {
	from { transform: scaleX(1); }
	to { transform: scaleX(0); }
}

@media (max-width: 600px) {
	.exo-toast-container,
	body > .exo-toast,
	#content > .exo-toast,
	.character-market-page > .exo-toast,
	.usercp-page > .exo-toast {
		left: 14px !important;
		right: 14px !important;
		bottom: 14px !important;
		max-width: none !important;
	}
	.exo-toast {
		min-width: 0 !important;
	}
}
