.mah-hero {
	--mouse-x: 0;
	--mouse-y: 0;

	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--mah-min-height);
	padding: 80px 24px;
	overflow: hidden;
	isolation: isolate;
	box-sizing: border-box;
	color: var(--mah-text);
	background:
		radial-gradient(circle at 50% 10%, var(--mah-gradient-1), transparent 48%),
		linear-gradient(145deg, var(--mah-gradient-2), var(--mah-bg));
	border-top-left-radius: var(--mah-radius-top, 0);
	border-top-right-radius: var(--mah-radius-top, 0);
	border-bottom-left-radius: var(--mah-radius-bottom, 0);
	border-bottom-right-radius: var(--mah-radius-bottom, 0);
	direction: rtl;
	margin-top: var(--mah-margin-top, 0);
	margin-bottom: var(--mah-margin-bottom, 0);
}

/* ==========================================
   Full Width Mode - Break Container
   ========================================== */

.mah-full-width {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-right: calc(-50vw + 50%) !important;
	margin-left: calc(-50vw + 50%) !important;
	margin-top: var(--mah-margin-top, 0) !important;
	margin-bottom: var(--mah-margin-bottom, 0) !important;
}

.mah-hero *,
.mah-hero *::before,
.mah-hero *::after {
	box-sizing: border-box;
}

.mah-noise {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.035;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.mah-theme-light .mah-noise {
	opacity: 0.02;
}

.mah-light {
	position: absolute;
	z-index: 0;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	filter: blur(100px);
	pointer-events: none;
	opacity: calc(var(--mah-glow) / 100);
	transition: transform 0.3s ease-out;
}

.mah-light-one {
	top: -180px;
	right: -80px;
	background: var(--mah-accent-1);
	transform: translate3d(
		calc(var(--mouse-x) * 18px),
		calc(var(--mouse-y) * 18px),
		0
	);
}

.mah-light-two {
	left: -120px;
	bottom: -220px;
	background: var(--mah-accent-2);
	transform: translate3d(
		calc(var(--mouse-x) * -22px),
		calc(var(--mouse-y) * -22px),
		0
	);
}

.mah-grid-effect {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.08;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
	background-size: 72px 72px;
	-webkit-mask-image: radial-gradient(circle at center, black, transparent 75%);
	mask-image: radial-gradient(circle at center, black, transparent 75%);
}

.mah-theme-light .mah-grid-effect {
	background-image:
		linear-gradient(rgba(15,23,42,0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(15,23,42,0.08) 1px, transparent 1px);
	opacity: 0.6;
}

/* ==========================================
   Floating Icons Layer
   ========================================== */

.mah-icons-layer {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.mah-floating-icon {
	position: absolute;
	top: var(--y);
	left: var(--x);
	width: var(--size-d);
	height: var(--size-d);
	transform:
		translate3d(
			calc(-50% + var(--parallax-x, 0px)),
			calc(-50% + var(--parallax-y, 0px)),
			0
		)
		rotate(var(--rotation));
	will-change: transform;
	pointer-events: auto;
}

.mah-floating-icon-inner {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none !important;
	cursor: default;
	transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
	animation:
		mah-float var(--speed) ease-in-out var(--delay, 0s) infinite alternate;
}

a.mah-floating-icon-inner {
	cursor: pointer;
}

.mah-floating-icon-inner:hover {
	transform: scale(1.2);
	z-index: 20;
}

.mah-floating-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 22%;
	filter:
		drop-shadow(
			0 18px 28px
			rgba(0, 0, 0, calc(0.22 + var(--icon-glow) * 0.002))
		)
		drop-shadow(
			0 0 calc(var(--icon-glow) * 0.35px)
			rgba(139, 92, 246, 0.35)
		);
	transform: perspective(600px)
		rotateX(var(--tilt-x, 0deg))
		rotateY(var(--tilt-y, 0deg));
	transition: filter 0.3s ease;
	will-change: transform;
}

.mah-theme-light .mah-floating-icon img {
	filter:
		drop-shadow(
			0 14px 20px
			rgba(15, 23, 42, calc(0.12 + var(--icon-glow) * 0.002))
		)
		drop-shadow(
			0 0 calc(var(--icon-glow) * 0.3px)
			rgba(139, 92, 246, 0.25)
		);
}

.mah-floating-icon-inner:hover img {
	filter:
		drop-shadow(0 25px 35px rgba(0, 0, 0, 0.4))
		drop-shadow(0 0 30px rgba(139, 92, 246, 0.5));
}

.mah-theme-light .mah-floating-icon-inner:hover img {
	filter:
		drop-shadow(0 20px 30px rgba(15, 23, 42, 0.2))
		drop-shadow(0 0 25px rgba(139, 92, 246, 0.35));
}

/* Tooltip */
.mah-icon-tooltip {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	background: rgba(15, 23, 42, 0.95);
	color: #fff;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: all 0.25s cubic-bezier(.34,1.56,.64,1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,0.1);
	z-index: 100;
	direction: ltr;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mah-icon-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: rgba(15, 23, 42, 0.95);
}

.mah-floating-icon:hover .mah-icon-tooltip {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* ==========================================
   Content Wrap
   ========================================== */

.mah-content-wrap {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: var(--mah-content-width);
}

.mah-content {
	padding: 44px 48px;
	border-radius: 32px;
	transition: all 0.3s ease;
}

/* ==========================================
   Content Styles (4 variants)
   ========================================== */

/* Style 1: None */
.mah-content-none .mah-content {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	padding: 20px 0;
}

/* Style 2: Simple */
.mah-content-simple .mah-content {
	background: transparent;
	border: 1px solid var(--mah-simple-border, rgba(255, 255, 255, 0.15));
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

/* Style 3: Glass */
.mah-content-glass .mah-content {
	border: 1px solid var(--mah-glass-border, rgba(255, 255, 255, 0.11));
	background: linear-gradient(
		145deg,
		var(--mah-glass-bg-1, rgba(255, 255, 255, 0.095)),
		var(--mah-glass-bg-2, rgba(255, 255, 255, 0.025))
	);
	box-shadow:
		var(--mah-glass-shadow, 0 30px 90px rgba(0, 0, 0, 0.25)),
		var(--mah-glass-inset, inset 0 1px 0 rgba(255, 255, 255, 0.1));
	backdrop-filter: blur(22px) saturate(140%);
	-webkit-backdrop-filter: blur(22px) saturate(140%);
}

/* Style 4: Colored */
.mah-content-colored .mah-content {
	position: relative;
	background: linear-gradient(
		145deg,
		var(--mah-glass-bg-1, rgba(255, 255, 255, 0.05)),
		transparent
	);
	border: 2px solid transparent;
	background-clip: padding-box;
	box-shadow:
		0 20px 60px rgba(139, 92, 246, 0.15),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mah-content-colored .mah-content::before {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: 32px;
	padding: 2px;
	background: linear-gradient(135deg, var(--mah-accent-1), var(--mah-accent-2));
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0.7;
	pointer-events: none;
	z-index: 1;
}

/* ==========================================
   Alignment
   ========================================== */

.mah-align-center .mah-content {
	text-align: center;
}

.mah-align-right .mah-content {
	text-align: right;
}

.mah-align-left .mah-content {
	text-align: left;
}

/* ==========================================
   Eyebrow
   ========================================== */

.mah-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 20px;
	color: var(--mah-eyebrow-text, rgba(255,255,255,0.82));
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.3px;
	line-height: 1;
}

.mah-eyebrow-style-badge .mah-eyebrow {
	padding: 8px 14px;
	border: 1px solid var(--mah-eyebrow-border, rgba(255,255,255,0.12));
	border-radius: 999px;
	background: var(--mah-eyebrow-bg, rgba(255,255,255,0.055));
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
}

.mah-eyebrow-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--mah-accent-2);
	box-shadow: 0 0 12px var(--mah-accent-2);
	animation: mah-pulse 2s ease-in-out infinite;
	flex-shrink: 0;
}

@keyframes mah-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.6; transform: scale(1.3); }
}

/* ==========================================
   Title
   ========================================== */

.mah-title {
	margin: 0;
	color: var(--mah-text);
	font-size: clamp(42px, 6vw, 82px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -3px;
}

.mah-title span {
	display: block;
	color: transparent;
	background: linear-gradient(
		120deg,
		var(--mah-accent-1),
		var(--mah-accent-2),
		var(--mah-title-end, #ffffff)
	);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	animation: mah-gradient 7s linear infinite;
}

.mah-description {
	max-width: 620px;
	margin: 25px auto 0;
	color: var(--mah-description);
	font-size: clamp(16px, 2vw, 19px);
	line-height: 1.95;
}

.mah-align-right .mah-description {
	margin-right: 0;
	margin-left: auto;
}

.mah-align-left .mah-description {
	margin-left: 0;
	margin-right: auto;
}

/* ==========================================
   Button
   ========================================== */

.mah-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	min-height: 56px;
	margin-top: 32px;
	padding: 0 27px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.18);
	border-radius: 18px;
	color: var(--mah-button-text);
	background: linear-gradient(
		135deg,
		var(--mah-button-1),
		var(--mah-button-2)
	);
	box-shadow:
		0 15px 38px rgba(37, 99, 235, 0.28),
		inset 0 1px 0 rgba(255,255,255,0.28);
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 700;
	transition:
		transform 0.3s cubic-bezier(.2,.8,.2,1),
		box-shadow 0.3s ease;
}

.mah-button::before {
	content: "";
	position: absolute;
	top: -60%;
	left: -30%;
	width: 50%;
	height: 220%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255,255,255,0.34),
		transparent
	);
	transform: rotate(22deg);
	transition: left 0.65s ease;
}

.mah-button:hover {
	color: var(--mah-button-text);
	transform: translateY(-4px) scale(1.02);
	box-shadow:
		0 22px 55px rgba(37, 99, 235, 0.38),
		inset 0 1px 0 rgba(255,255,255,0.3);
}

.mah-button:hover::before {
	left: 130%;
}

.mah-button svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transform: rotate(180deg);
	transition: transform 0.3s ease;
}

.mah-button:hover svg {
	transform: rotate(180deg) translateX(-4px);
}

@keyframes mah-float {
	from {
		transform: translate3d(0, calc(var(--float) * -0.5px), 0);
	}
	to {
		transform: translate3d(0, calc(var(--float) * 0.5px), 0);
	}
}

@keyframes mah-gradient {
	to {
		background-position: 200% center;
	}
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 1024px) {
	.mah-floating-icon {
		width: var(--size-t);
		height: var(--size-t);
	}

	.mah-content {
		padding: 38px 34px;
	}

	.mah-content-none .mah-content {
		padding: 15px 0;
	}
}

@media (max-width: 767px) {
	.mah-hero {
		min-height: min(var(--mah-min-height), 760px);
		padding: 55px 16px;
		border-top-left-radius: min(var(--mah-radius-top, 0), 24px);
		border-top-right-radius: min(var(--mah-radius-top, 0), 24px);
		border-bottom-left-radius: min(var(--mah-radius-bottom, 0), 24px);
		border-bottom-right-radius: min(var(--mah-radius-bottom, 0), 24px);
	}

	.mah-floating-icon {
		width: var(--size-m);
		height: var(--size-m);
		opacity: 0.72;
	}

	.mah-floating-icon.mah-hide-mobile {
		display: none;
	}

	.mah-content {
		padding: 32px 20px;
		border-radius: 24px;
	}

	.mah-content-none .mah-content {
		padding: 10px 0;
	}

	.mah-content-glass .mah-content {
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
	}

	.mah-title {
		font-size: clamp(38px, 12vw, 58px);
		letter-spacing: -2px;
	}

	.mah-description {
		font-size: 15px;
		line-height: 1.85;
	}

	.mah-light {
		width: 280px;
		height: 280px;
		filter: blur(80px);
	}

	.mah-icon-tooltip {
		display: none;
	}

	.mah-eyebrow {
		font-size: 13px;
	}

	.mah-eyebrow-style-badge .mah-eyebrow {
		font-size: 12px;
		padding: 6px 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mah-hero *,
	.mah-hero *::before,
	.mah-hero *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.mah-floating-icon {
		transform:
			translate3d(-50%, -50%, 0)
			rotate(var(--rotation)) !important;
	}
}


/* ==========================================
   Force Full Width (Works with any theme)
   ========================================== */
.mah-hero {
	position: relative !important;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(-50vw + 50%) !important;
	margin-right: calc(-50vw + 50%) !important;
	box-sizing: border-box !important;
	min-height: 100vh !important;
	min-height: 100dvh !important;
}

html, body {
	overflow-x: hidden !important;
	max-width: 100vw !important;
}

/* ==========================================
   Mobile Optimization
   ========================================== */
@media (max-width: 767px) {
	.mah-hero {
		min-height: 100vh !important;
		min-height: 100dvh !important;
		padding: 40px 20px !important;
	}
	
	.mah-title {
		font-size: clamp(32px, 9vw, 44px) !important;
		line-height: 1.2 !important;
		letter-spacing: -1px !important;
	}
	
	.mah-description {
		font-size: 14px !important;
		line-height: 1.7 !important;
		margin-top: 15px !important;
	}
	
	.mah-eyebrow {
		font-size: 12px !important;
		margin-bottom: 15px !important;
		padding: 6px 12px !important;
	}
	
	.mah-button {
		min-height: 48px !important;
		font-size: 14px !important;
		margin-top: 20px !important;
		padding: 0 24px !important;
	}
}

/* =============================================
   AJAX Search Box Styles (RTL Fixed)
   ============================================= */

.mah-search-wrap {
	position: relative;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	z-index: 10;
	direction: rtl;
}

.mah-align-right .mah-search-wrap {
	margin-right: 0;
	margin-left: auto;
}

.mah-align-left .mah-search-wrap {
	margin-left: 0;
	margin-right: auto;
}

/* =============================================
   ✨ Glassmorphism Search Box
   ============================================= */

/* ============ Glass Search Box ============ */
.mah-search-box {
	position: relative;
	display: flex;
	align-items: center;
	border-radius: 20px;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	direction: rtl;
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* ✨ Glass border effect (top highlight) */
.mah-search-box::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.4) 0%,
		rgba(255, 255, 255, 0.1) 40%,
		rgba(255, 255, 255, 0) 60%,
		rgba(255, 255, 255, 0.15) 100%
	);
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	z-index: 1;
}

/* ✨ Inner glow gradient */
.mah-search-box::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 50%;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.08) 0%,
		rgba(255, 255, 255, 0) 100%
	);
	border-radius: 20px 20px 0 0;
	pointer-events: none;
	z-index: 1;
}

/* Dark theme glass */
.mah-theme-dark .mah-search-box {
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.1) 0%,
		rgba(255, 255, 255, 0.04) 100%
	);
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.1),
		inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.mah-theme-dark .mah-search-box:focus-within {
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.14) 0%,
		rgba(255, 255, 255, 0.06) 100%
	);
	box-shadow:
		0 12px 40px rgba(139, 92, 246, 0.25),
		0 0 0 3px rgba(139, 92, 246, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.15);
	transform: translateY(-2px);
}

/* Light theme glass */
.mah-theme-light .mah-search-box {
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.7) 0%,
		rgba(255, 255, 255, 0.4) 100%
	);
	box-shadow:
		0 8px 32px rgba(15, 23, 42, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.8),
		inset 0 -1px 0 rgba(15, 23, 42, 0.03);
}

.mah-theme-light .mah-search-box:focus-within {
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.85) 0%,
		rgba(255, 255, 255, 0.55) 100%
	);
	box-shadow:
		0 12px 40px rgba(139, 92, 246, 0.15),
		0 0 0 3px rgba(139, 92, 246, 0.15),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	transform: translateY(-2px);
}

/* ============ Search Icon (Glass style) ============ */
.mah-search-icon {
	position: absolute !important;
	right: 20px !important;
	left: auto !important;
	top: 50% !important;
	transform: translateY(-50%);
	width: 20px !important;
	height: 20px !important;
	pointer-events: none;
	z-index: 3;
	transition: all 0.3s ease;
}

.mah-theme-dark .mah-search-icon {
	color: rgba(255, 255, 255, 0.6);
	filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
}

.mah-theme-light .mah-search-icon {
	color: rgba(15, 23, 42, 0.45);
}

.mah-search-box:focus-within .mah-search-icon {
	color: var(--mah-accent-1, #8b5cf6);
	filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6));
	transform: translateY(-50%) scale(1.1);
}

/* ============ Search Input ============ */
.mah-search-input {
	width: 100%;
	padding: 18px 54px 18px 54px !important;
	border: none !important;
	background: transparent !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	font-family: inherit !important;
	outline: none !important;
	direction: rtl;
	text-align: right;
	box-shadow: none !important;
	margin: 0 !important;
	line-height: 1.5 !important;
	border-radius: 0 !important;
	position: relative;
	z-index: 2;
	letter-spacing: 0.2px;
}

.mah-theme-dark .mah-search-input {
	color: #ffffff !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mah-theme-light .mah-search-input {
	color: #0f172a !important;
}

.mah-theme-dark .mah-search-input::placeholder {
	color: rgba(255, 255, 255, 0.45);
	opacity: 1;
	font-weight: 400;
}

.mah-theme-light .mah-search-input::placeholder {
	color: rgba(15, 23, 42, 0.4);
	opacity: 1;
	font-weight: 400;
}

/* Remove browser defaults */
.mah-search-input::-webkit-search-decoration,
.mah-search-input::-webkit-search-cancel-button,
.mah-search-input::-webkit-search-results-button,
.mah-search-input::-webkit-search-results-decoration {
	-webkit-appearance: none;
	display: none;
}

/* ============ Spinner ============ */
.mah-search-spinner {
	position: absolute !important;
	left: 20px !important;
	right: auto !important;
	top: 50% !important;
	transform: translateY(-50%);
	width: 20px !important;
	height: 20px !important;
	z-index: 3;
}

.mah-spinner-svg {
	width: 20px;
	height: 20px;
	animation: mah-spin 0.8s linear infinite;
}

.mah-theme-dark .mah-spinner-svg {
	color: var(--mah-accent-1, #8b5cf6);
	filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
}

.mah-theme-light .mah-spinner-svg {
	color: var(--mah-accent-1, #8b5cf6);
}

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

/* ============ Clear Button (Glass) ============ */
.mah-search-clear {
	position: absolute !important;
	left: 16px !important;
	right: auto !important;
	top: 50% !important;
	transform: translateY(-50%);
	width: 30px !important;
	height: 30px !important;
	padding: 0 !important;
	border: none !important;
	cursor: pointer;
	display: flex !important;
	align-items: center;
	justify-content: center;
	border-radius: 50% !important;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 3;
	margin: 0 !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.mah-search-clear svg {
	width: 14px;
	height: 14px;
	transition: transform 0.3s ease;
}

.mah-theme-dark .mah-search-clear {
	color: rgba(255, 255, 255, 0.6);
	background: rgba(255, 255, 255, 0.08) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mah-theme-dark .mah-search-clear:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.15) !important;
	transform: translateY(-50%) scale(1.1) rotate(90deg);
	box-shadow:
		0 4px 12px rgba(0, 0, 0, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.mah-theme-light .mah-search-clear {
	color: rgba(15, 23, 42, 0.5);
	background: rgba(15, 23, 42, 0.04) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.mah-theme-light .mah-search-clear:hover {
	color: #0f172a;
	background: rgba(15, 23, 42, 0.08) !important;
	transform: translateY(-50%) scale(1.1) rotate(90deg);
	box-shadow:
		0 4px 12px rgba(15, 23, 42, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ============ Results Dropdown (Glass) ============ */
.mah-search-results {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	left: 0;
	border-radius: 20px;
	overflow: hidden;
	max-height: 440px;
	overflow-y: auto;
	z-index: 100;
	direction: rtl;
	animation: mah-results-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
	backdrop-filter: blur(30px) saturate(180%);
	-webkit-backdrop-filter: blur(30px) saturate(180%);
}

/* Glass border for results */
.mah-search-results::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.3) 0%,
		rgba(255, 255, 255, 0.08) 50%,
		rgba(255, 255, 255, 0.15) 100%
	);
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	z-index: 1;
}

.mah-theme-dark .mah-search-results {
	background: linear-gradient(
		135deg,
		rgba(20, 20, 40, 0.85) 0%,
		rgba(15, 15, 30, 0.75) 100%
	);
	box-shadow:
		0 20px 60px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(255, 255, 255, 0.05),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mah-theme-light .mah-search-results {
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.9) 0%,
		rgba(255, 255, 255, 0.75) 100%
	);
	box-shadow:
		0 20px 60px rgba(15, 23, 42, 0.12),
		0 0 0 1px rgba(15, 23, 42, 0.04),
		inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@keyframes mah-results-in {
	from {
		opacity: 0;
		transform: translateY(-12px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Scrollbar */
.mah-search-results::-webkit-scrollbar {
	width: 6px;
}

.mah-search-results::-webkit-scrollbar-track {
	background: transparent;
	margin: 8px 0;
}

.mah-theme-dark .mah-search-results::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	backdrop-filter: blur(10px);
}

.mah-theme-dark .mah-search-results::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.25);
}

.mah-theme-light .mah-search-results::-webkit-scrollbar-thumb {
	background: rgba(15, 23, 42, 0.15);
	border-radius: 10px;
}

.mah-theme-light .mah-search-results::-webkit-scrollbar-thumb:hover {
	background: rgba(15, 23, 42, 0.25);
}

/* ============ Result Item ============ */
.mah-search-result-item {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	text-decoration: none !important;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	direction: rtl;
	position: relative;
	z-index: 2;
}

.mah-theme-dark .mah-search-result-item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mah-theme-dark .mah-search-result-item:hover {
	background: linear-gradient(
		90deg,
		rgba(139, 92, 246, 0.12) 0%,
		rgba(139, 92, 246, 0.05) 100%
	);
	transform: translateX(-4px);
}

.mah-theme-light .mah-search-result-item {
	border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.mah-theme-light .mah-search-result-item:hover {
	background: linear-gradient(
		90deg,
		rgba(139, 92, 246, 0.06) 0%,
		rgba(139, 92, 246, 0.02) 100%
	);
	transform: translateX(-4px);
}

.mah-search-result-item:last-child {
	border-bottom: none;
}

/* ============ Result Thumbnail (Glass) ============ */
.mah-result-thumb,
.mah-result-no-thumb {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.mah-result-thumb {
	background: rgba(128, 128, 128, 0.1);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mah-search-result-item:hover .mah-result-thumb,
.mah-search-result-item:hover .mah-result-no-thumb {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.mah-result-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mah-theme-dark .mah-result-no-thumb {
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.08) 0%,
		rgba(255, 255, 255, 0.03) 100%
	);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.1),
		inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.mah-theme-light .mah-result-no-thumb {
	background: linear-gradient(
		135deg,
		rgba(15, 23, 42, 0.06) 0%,
		rgba(15, 23, 42, 0.02) 100%
	);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.mah-result-no-thumb svg {
	width: 22px;
	height: 22px;
}

.mah-theme-dark .mah-result-no-thumb svg {
	color: rgba(255, 255, 255, 0.4);
}

.mah-theme-light .mah-result-no-thumb svg {
	color: rgba(15, 23, 42, 0.35);
}

/* ============ Result Text ============ */
.mah-result-text {
	flex: 1;
	min-width: 0;
	text-align: right;
}

.mah-result-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
	transition: color 0.2s ease;
}

.mah-theme-dark .mah-result-title {
	color: #ffffff;
}

.mah-theme-light .mah-result-title {
	color: #0f172a;
}

.mah-search-result-item:hover .mah-result-title {
	color: var(--mah-accent-1, #8b5cf6);
}

.mah-result-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	flex-wrap: nowrap;
	overflow: hidden;
}

/* Glass badge */
.mah-result-type {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 8px;
	flex-shrink: 0;
	white-space: nowrap;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.mah-theme-dark .mah-result-type {
	background: linear-gradient(
		135deg,
		rgba(139, 92, 246, 0.25) 0%,
		rgba(139, 92, 246, 0.12) 100%
	);
	color: rgba(196, 181, 253, 1);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.1),
		0 0 12px rgba(139, 92, 246, 0.15);
}

.mah-theme-light .mah-result-type {
	background: linear-gradient(
		135deg,
		rgba(139, 92, 246, 0.15) 0%,
		rgba(139, 92, 246, 0.06) 100%
	);
	color: #7c3aed;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.mah-result-excerpt {
	font-size: 12px;
	line-height: 1.5;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
	min-width: 0;
}

.mah-theme-dark .mah-result-excerpt {
	color: rgba(255, 255, 255, 0.5);
}

.mah-theme-light .mah-result-excerpt {
	color: rgba(15, 23, 42, 0.55);
}

/* ============ Result Arrow ============ */
.mah-result-arrow {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	opacity: 0;
	transform: translateX(8px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mah-search-result-item:hover .mah-result-arrow {
	opacity: 0.7;
	transform: translateX(0);
}

.mah-theme-dark .mah-result-arrow {
	color: var(--mah-accent-1, #8b5cf6);
	filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.4));
}

.mah-theme-light .mah-result-arrow {
	color: var(--mah-accent-1, #8b5cf6);
}

/* ============ No Results ============ */
.mah-search-no-results {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 40px 18px;
	text-align: center;
	position: relative;
	z-index: 2;
}

.mah-search-no-results svg {
	width: 40px;
	height: 40px;
	opacity: 0.35;
	animation: mah-float-icon 3s ease-in-out infinite;
}

@keyframes mah-float-icon {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

.mah-theme-dark .mah-search-no-results svg {
	color: #ffffff;
}

.mah-theme-light .mah-search-no-results svg {
	color: #0f172a;
}

.mah-theme-dark .mah-search-no-results span {
	color: rgba(255, 255, 255, 0.45);
	font-size: 14px;
	font-weight: 500;
}

.mah-theme-light .mah-search-no-results span {
	color: rgba(15, 23, 42, 0.45);
	font-size: 14px;
	font-weight: 500;
}

/* ============ Overlay ============ */
.mah-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 9;  /* پایین‌تر از dropdown */
	background: transparent;
}


/* ============ Responsive ============ */
@media (max-width: 768px) {
	.mah-search-wrap {
		max-width: 100%;
	}

	.mah-search-box {
		border-radius: 16px;
	}

	.mah-search-input {
		padding: 15px 48px 15px 48px !important;
		font-size: 15px !important;
	}

	.mah-search-icon {
		right: 16px !important;
	}

	.mah-search-spinner {
		left: 16px !important;
	}

	.mah-search-clear {
		left: 12px !important;
		width: 26px !important;
		height: 26px !important;
	}

	.mah-search-results {
		max-height: 360px;
		border-radius: 16px;
	}

	.mah-result-thumb,
	.mah-result-no-thumb {
		width: 42px;
		height: 42px;
		border-radius: 10px;
	}

	.mah-result-arrow {
		display: none;
	}

	.mah-result-title {
		font-size: 13px;
	}

	.mah-result-excerpt {
		font-size: 11px;
	}
}

/* ============ Reduced Motion ============ */
@media (prefers-reduced-motion: reduce) {
	.mah-search-box,
	.mah-search-results,
	.mah-search-result-item,
	.mah-result-arrow,
	.mah-result-thumb,
	.mah-result-no-thumb,
	.mah-search-clear {
		transition: none !important;
		animation: none !important;
	}
}


/* اضافه شدن فضای پایین برای هیرو وقتی سرچ فعاله */
.mah-hero.mah-search-active {
	padding-bottom: 120px;
}

@media (max-width: 768px) {
	.mah-hero.mah-search-active {
		padding-bottom: 80px;
	}
}

/* =============================================
   Font Sizes (Dynamic from admin)
   ============================================= */
.mah-hero .mah-eyebrow {
	font-size: var(--mah-font-eyebrow, 14px) !important;
}

.mah-hero .mah-title {
	font-size: var(--mah-font-title, 56px) !important;
}

.mah-hero .mah-description {
	font-size: var(--mah-font-description, 18px) !important;
}

.mah-hero .mah-button,
.mah-hero .mah-search-input {
	font-size: var(--mah-font-button, 16px) !important;
}

@media (max-width: 768px) {
	.mah-hero .mah-title {
		font-size: var(--mah-font-title-mobile, 36px) !important;
	}

	.mah-hero .mah-description {
		font-size: calc(var(--mah-font-description, 18px) - 2px) !important;
	}
}

/* =============================================
   Scroll Indicator
   ============================================= */
.mah-scroll-indicator {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	z-index: 15;
	animation: mah-scroll-fade-in 1s ease-out 0.5s both;
	transition: opacity 0.3s;
}

.mah-scroll-indicator:hover {
	opacity: 0.75;
}

.mah-scroll-text {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	writing-mode: horizontal-tb;
}

.mah-theme-dark .mah-scroll-text {
	color: rgba(255, 255, 255, 0.7);
}

.mah-theme-light .mah-scroll-text {
	color: rgba(15, 23, 42, 0.6);
}

.mah-scroll-arrow {
	width: 32px;
	height: 48px;
	border-radius: 20px;
	border: 2px solid;
	display: flex;
	justify-content: center;
	padding-top: 6px;
	position: relative;
	overflow: hidden;
}

.mah-theme-dark .mah-scroll-arrow {
	border-color: rgba(255, 255, 255, 0.5);
}

.mah-theme-light .mah-scroll-arrow {
	border-color: rgba(15, 23, 42, 0.4);
}

.mah-scroll-arrow svg {
	width: 18px;
	height: 18px;
	animation: mah-scroll-bounce 2s ease-in-out infinite;
}

.mah-theme-dark .mah-scroll-arrow svg {
	color: rgba(255, 255, 255, 0.8);
}

.mah-theme-light .mah-scroll-arrow svg {
	color: rgba(15, 23, 42, 0.7);
}

@keyframes mah-scroll-fade-in {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

@keyframes mah-scroll-bounce {
	0%, 100% {
		transform: translateY(-4px);
		opacity: 0.6;
	}
	50% {
		transform: translateY(4px);
		opacity: 1;
	}
}

/* If hero has scroll indicator, add space at bottom */
.mah-hero.mah-has-scroll-indicator {
	padding-bottom: 100px;
}

@media (max-width: 768px) {
	.mah-scroll-indicator {
		bottom: 20px;
	}

	.mah-scroll-arrow {
		width: 28px;
		height: 42px;
	}

	.mah-hero.mah-has-scroll-indicator {
		padding-bottom: 80px;
	}
}
/* =============================================
   🌓 Auto Theme - FULL Dark Override
   ============================================= */

/* وقتی سایت dark_mod هست، همه رنگ‌های هیرو auto رو dark کن */
html.dark_mod .mah-hero.mah-theme-auto {
	/* Background & Gradients */
	background:
		radial-gradient(circle at 50% 10%, #11142d, transparent 48%),
		linear-gradient(145deg, #05050c, #060713) !important;

	/* Text Colors */
	color: #ffffff !important;

	/* Override all CSS variables */
	--mah-bg: #060713 !important;
	--mah-gradient-1: #11142d !important;
	--mah-gradient-2: #05050c !important;
	--mah-text: #ffffff !important;
	--mah-description: #b8bad0 !important;

	--mah-eyebrow-bg: rgba(255,255,255,0.055) !important;
	--mah-eyebrow-border: rgba(255,255,255,0.12) !important;
	--mah-eyebrow-text: rgba(255,255,255,0.82) !important;
	--mah-title-end: #ffffff !important;

	--mah-glass-bg-1: rgba(255,255,255,0.095) !important;
	--mah-glass-bg-2: rgba(255,255,255,0.025) !important;
	--mah-glass-border: rgba(255, 255, 255, 0.11) !important;
	--mah-glass-shadow: 0 30px 90px rgba(0, 0, 0, 0.25) !important;
	--mah-glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
	--mah-simple-border: rgba(255,255,255,0.15) !important;
}

/* Title text */
html.dark_mod .mah-hero.mah-theme-auto .mah-title {
	color: #ffffff !important;
}

/* Description text */
html.dark_mod .mah-hero.mah-theme-auto .mah-description {
	color: #b8bad0 !important;
}

/* Eyebrow */
html.dark_mod .mah-hero.mah-theme-auto .mah-eyebrow {
	color: rgba(255,255,255,0.82) !important;
	background: rgba(255,255,255,0.055) !important;
	border-color: rgba(255,255,255,0.12) !important;
}

/* Noise */
html.dark_mod .mah-hero.mah-theme-auto .mah-noise {
	opacity: 0.035 !important;
}

/* Grid */
html.dark_mod .mah-hero.mah-theme-auto .mah-grid-effect {
	background-image:
		linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px) !important;
	opacity: 0.08 !important;
}

/* Icons */
html.dark_mod .mah-hero.mah-theme-auto .mah-floating-icon img {
	filter:
		drop-shadow(0 18px 28px rgba(0, 0, 0, calc(0.22 + var(--icon-glow) * 0.002)))
		drop-shadow(0 0 calc(var(--icon-glow) * 0.35px) rgba(139, 92, 246, 0.35)) !important;
}

/* ============ Search Box - Dark ============ */
html.dark_mod .mah-hero.mah-theme-auto .mah-search-box {
	background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04)) !important;
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-search-box:focus-within {
	background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06)) !important;
	box-shadow:
		0 12px 40px rgba(139, 92, 246, 0.25),
		0 0 0 3px rgba(139, 92, 246, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-search-input {
	color: #ffffff !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-search-input::placeholder {
	color: rgba(255, 255, 255, 0.45) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-search-icon {
	color: rgba(255, 255, 255, 0.6) !important;
	filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4)) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-search-clear {
	color: rgba(255, 255, 255, 0.6) !important;
	background: rgba(255, 255, 255, 0.08) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-search-clear:hover {
	color: #ffffff !important;
	background: rgba(255, 255, 255, 0.15) !important;
}

/* Results dropdown - Dark */
html.dark_mod .mah-hero.mah-theme-auto .mah-search-results {
	background: linear-gradient(135deg, rgba(20, 20, 40, 0.85), rgba(15, 15, 30, 0.75)) !important;
	box-shadow:
		0 20px 60px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-search-result-item {
	border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-search-result-item:hover {
	background: linear-gradient(90deg, rgba(139, 92, 246, 0.12), rgba(139, 92, 246, 0.05)) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-result-title {
	color: #ffffff !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-result-excerpt {
	color: rgba(255, 255, 255, 0.5) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-result-type {
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.12)) !important;
	color: rgba(196, 181, 253, 1) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-result-no-thumb {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-result-no-thumb svg {
	color: rgba(255, 255, 255, 0.4) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-search-no-results svg {
	color: #ffffff !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-search-no-results span {
	color: rgba(255, 255, 255, 0.45) !important;
}

/* Scroll Indicator - Dark */
html.dark_mod .mah-hero.mah-theme-auto .mah-scroll-text {
	color: rgba(255, 255, 255, 0.7) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-scroll-arrow {
	border-color: rgba(255, 255, 255, 0.5) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-scroll-arrow svg {
	color: rgba(255, 255, 255, 0.8) !important;
}

/* ============================================
   Auto Theme - Light Mode (وقتی سایت لایته)
   ============================================ */
html:not(.dark_mod) .mah-hero.mah-theme-auto {
}


/* =============================================
   🕐 Search History Dropdown
   ============================================= */
.mah-search-history {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	left: 0;
	border-radius: 20px;
	overflow: hidden;
	max-height: 400px;
	overflow-y: auto;
	z-index: 100;
	direction: rtl;
	animation: mah-results-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	backdrop-filter: blur(30px) saturate(180%);
	-webkit-backdrop-filter: blur(30px) saturate(180%);
}

.mah-search-history::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.3) 0%,
		rgba(255, 255, 255, 0.08) 50%,
		rgba(255, 255, 255, 0.15) 100%
	);
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	z-index: 1;
}

.mah-theme-dark .mah-search-history {
	background: linear-gradient(
		135deg,
		rgba(20, 20, 40, 0.9) 0%,
		rgba(15, 15, 30, 0.8) 100%
	);
	box-shadow:
		0 20px 60px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mah-theme-light .mah-search-history {
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.95) 0%,
		rgba(255, 255, 255, 0.8) 100%
	);
	box-shadow:
		0 20px 60px rgba(15, 23, 42, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ============ Header ============ */
.mah-history-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	position: relative;
	z-index: 2;
}

.mah-theme-dark .mah-history-header {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mah-theme-light .mah-history-header {
	border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.mah-history-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
}

.mah-history-title svg {
	width: 16px;
	height: 16px;
}

.mah-theme-dark .mah-history-title {
	color: rgba(255, 255, 255, 0.7);
}

.mah-theme-light .mah-history-title {
	color: rgba(15, 23, 42, 0.65);
}

.mah-history-clear-all {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.2s;
}

.mah-history-clear-all svg {
	width: 15px;
	height: 15px;
}

.mah-theme-dark .mah-history-clear-all {
	color: rgba(255, 255, 255, 0.5);
}

.mah-theme-dark .mah-history-clear-all:hover {
	color: #f87171;
	background: rgba(239, 68, 68, 0.12);
}

.mah-theme-light .mah-history-clear-all {
	color: rgba(15, 23, 42, 0.5);
}

.mah-theme-light .mah-history-clear-all:hover {
	color: #dc2626;
	background: rgba(239, 68, 68, 0.08);
}

/* ============ History List ============ */
.mah-history-list {
	position: relative;
	z-index: 2;
}

.mah-history-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	direction: rtl;
	position: relative;
}

.mah-theme-dark .mah-history-item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mah-theme-dark .mah-history-item:hover {
	background: linear-gradient(
		90deg,
		rgba(139, 92, 246, 0.1) 0%,
		rgba(139, 92, 246, 0.03) 100%
	);
}

.mah-theme-light .mah-history-item {
	border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.mah-theme-light .mah-history-item:hover {
	background: linear-gradient(
		90deg,
		rgba(139, 92, 246, 0.05) 0%,
		rgba(139, 92, 246, 0.02) 100%
	);
}

.mah-history-item:last-child {
	border-bottom: none;
}

/* History icon */
.mah-history-item-icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(10px);
}

.mah-history-item-icon svg {
	width: 15px;
	height: 15px;
}

.mah-theme-dark .mah-history-item-icon {
	background: rgba(139, 92, 246, 0.15);
	color: rgba(196, 181, 253, 1);
}

.mah-theme-light .mah-history-item-icon {
	background: rgba(139, 92, 246, 0.08);
	color: #7c3aed;
}

/* History text */
.mah-history-item-text {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	direction: rtl;
	text-align: right;
}

.mah-theme-dark .mah-history-item-text {
	color: rgba(255, 255, 255, 0.85);
}

.mah-theme-light .mah-history-item-text {
	color: #1e293b;
}

.mah-history-item:hover .mah-history-item-text {
	color: var(--mah-accent-1, #8b5cf6);
}

/* Remove button per item */
.mah-history-item-remove {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: all 0.2s;
}

.mah-history-item-remove svg {
	width: 12px;
	height: 12px;
}

.mah-history-item:hover .mah-history-item-remove {
	opacity: 1;
}

.mah-theme-dark .mah-history-item-remove {
	color: rgba(255, 255, 255, 0.4);
}

.mah-theme-dark .mah-history-item-remove:hover {
	color: #f87171;
	background: rgba(239, 68, 68, 0.12);
	transform: scale(1.1);
}

.mah-theme-light .mah-history-item-remove {
	color: rgba(15, 23, 42, 0.4);
}

.mah-theme-light .mah-history-item-remove:hover {
	color: #dc2626;
	background: rgba(239, 68, 68, 0.08);
	transform: scale(1.1);
}

/* ============ Empty State ============ */
.mah-history-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 32px 18px;
	text-align: center;
	position: relative;
	z-index: 2;
}

.mah-history-empty svg {
	width: 36px;
	height: 36px;
	opacity: 0.3;
}

.mah-theme-dark .mah-history-empty svg {
	color: #ffffff;
}

.mah-theme-light .mah-history-empty svg {
	color: #0f172a;
}

.mah-history-empty span {
	font-size: 13px;
}

.mah-theme-dark .mah-history-empty span {
	color: rgba(255, 255, 255, 0.4);
}

.mah-theme-light .mah-history-empty span {
	color: rgba(15, 23, 42, 0.4);
}

/* ============ Scrollbar ============ */
.mah-search-history::-webkit-scrollbar {
	width: 6px;
}

.mah-search-history::-webkit-scrollbar-track {
	background: transparent;
}

.mah-theme-dark .mah-search-history::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
	border-radius: 10px;
}

.mah-theme-light .mah-search-history::-webkit-scrollbar-thumb {
	background: rgba(15, 23, 42, 0.15);
	border-radius: 10px;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
	.mah-search-history {
		max-height: 340px;
		border-radius: 16px;
		top: calc(100% + 8px);
	}

	.mah-history-header {
		padding: 12px 14px;
	}

	.mah-history-item {
		padding: 10px 14px;
	}

	.mah-history-item-remove {
		opacity: 1;
	}

	.mah-history-item-icon {
		width: 28px;
		height: 28px;
	}

	.mah-history-item-text {
		font-size: 13px;
	}
}

/* ============ Dark Mode Auto Override ============ */
html.dark_mod .mah-hero.mah-theme-auto .mah-search-history {
	background: linear-gradient(135deg, rgba(20, 20, 40, 0.9), rgba(15, 15, 30, 0.8)) !important;
	box-shadow:
		0 20px 60px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-history-header {
	border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-history-title {
	color: rgba(255, 255, 255, 0.7) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-history-clear-all {
	color: rgba(255, 255, 255, 0.5) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-history-item {
	border-bottom-color: rgba(255, 255, 255, 0.04) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-history-item:hover {
	background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.03)) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-history-item-icon {
	background: rgba(139, 92, 246, 0.15) !important;
	color: rgba(196, 181, 253, 1) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-history-item-text {
	color: rgba(255, 255, 255, 0.85) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-history-item-remove {
	color: rgba(255, 255, 255, 0.4) !important;
}

html.dark_mod .mah-hero.mah-theme-auto .mah-history-empty svg,
html.dark_mod .mah-hero.mah-theme-auto .mah-history-empty span {
	color: rgba(255, 255, 255, 0.4) !important;
}