@font-face {
	font-family: 'IRANSansWeb';
	src: url('../fonts/IRANSansWeb.woff2') format('woff2'),
	url('../fonts/IRANSansWeb.woff') format('woff');
	font-display: swap;
}

body {
	margin: 0;
	background: #f1f3f6;
	font-family: IRANSansWeb, sans-serif;
}

#body {
	width: 100%;
	display: block;
	margin: auto;
}

.app-shell {
	justify-content: center;
	align-items: center;
	max-width: 420px;
	min-height: 100vh !important;
	margin: 0 auto !important;
	padding: 15px;
	display: flex !important;
}

/* ===== Splash ===== */
/* ===== Enhanced Splash ===== */
#splash {
	position: fixed;
	inset: 0;
	background: linear-gradient(135deg, #eef2ff, #ffffff);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transition: opacity .6s ease, visibility .6s ease;
}

#splash.hide {
	opacity: 0;
	visibility: hidden;
}

.splash-logo-wrapper {
	position: relative;
	width: 110px;
	height: 110px;
}

.splash-ring {
	position: absolute;
	inset: -12px;
	border-radius: 50%;
	border: 3px solid rgba(99, 102, 241, .35);
	animation: ringPulse 2s infinite;
}

.splash-logo {
	width: 100%;
	height: 100%;
	border-radius: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	animation: logoFloat 2.2s ease-in-out infinite;
}

.splash-logo img {
	width: 70%;
	height: 70%;
	object-fit: contain;
	animation: logoSpin 3s linear infinite;
}

.splash-title {
	margin-top: 26px;
	font-size: 19px;
	font-weight: 600;
	color: #1f2937;
	animation: fadeUp .8s ease forwards;
}

/* Animations */
@keyframes logoFloat {
	0%, 100% {
		transform: translateY(0) scale(1);
	}
	50% {
		transform: translateY(-10px) scale(1.05);
	}
}

@keyframes logoSpin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@keyframes ringPulse {
	0% {
		transform: scale(.9);
		opacity: .6;
	}
	70% {
		transform: scale(1.2);
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}


/* ===== Fullscreen Spinner Loader ===== */
#spinner-loader {
	position: fixed;
	inset: 0;
	background: #ffffff;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

/* Glow Ring Spinner */
.spinner {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	border: 4px solid rgba(106, 77, 253, 0.15);
	border-top-color: #6a4dfd;
	animation: spin 0.9s linear infinite;
	position: relative;
}

/* glow */
.spinner::after {
	content: '';
	position: absolute;
	inset: -10px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(106,77,253,.25), transparent 70%);
	animation: pulseGlow 1.4s ease-in-out infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
	0%, 100% {
		opacity: .4;
		transform: scale(0.9);
	}
	50% {
		opacity: .9;
		transform: scale(1.1);
	}
}

#menu-main {
	overflow-y: scroll;
	overflow-x: hidden;
}

#header-bar, #footer-bar {
	max-width: 420px;
	margin: auto;
}

/* استایل مخصوص لوگوی داخل هدر */
.header-title {
	font-weight: 600;
	text-decoration: none;
}

.header-title .header-text {
	display: inline-block;
}

.header-logo {
	width: 20px;
	height: 20px;
	object-fit: contain;
	vertical-align: middle;
	transition: transform 0.2s ease;
}

.header-logo:hover {
	transform: scale(1.1);
}

.ajax-page {
	height: 140px !important;
}
