/* =============================================================================
   Xtreme Nano — Theme Stylesheet
   -----------------------------------------------------------------------------
   Cinematic luxury automotive-tech aesthetic.
   Dark base + purple/gold accents + glassmorphism + light beams.
   Author: Ahmed Al-Shami
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1) DESIGN TOKENS (CSS Custom Properties)
   ----------------------------------------------------------------------------- */
:root{
	/* Brand palette — overridable from Customizer */
	--xn-purple: #7C43A6;
	--xn-purple-deep: #5A2E80;
	--xn-purple-glow: rgba(124, 67, 166, 0.45);
	--xn-gold: #E6C83A;
	--xn-gold-soft: #F2D75A;
	--xn-gold-glow: rgba(230, 200, 58, 0.35);
	--xn-dark: #0E1320;
	--xn-dark-2: #131A2A;
	--xn-dark-3: #1A2236;
	--xn-white: #FFFFFF;
	--xn-soft: #F3F5F8;
	--xn-muted: #8A93A6;
	--xn-line: rgba(255, 255, 255, 0.08);
	--xn-line-strong: rgba(255, 255, 255, 0.16);

	/* Surfaces */
	--xn-surface: #0E1320;
	--xn-surface-2: rgba(255, 255, 255, 0.03);
	--xn-glass: rgba(255, 255, 255, 0.04);
	--xn-glass-strong: rgba(255, 255, 255, 0.07);

	/* Type */
	--xn-font-display-en: 'Cairo', system-ui, sans-serif;
	--xn-font-body-en: 'Cairo', system-ui, sans-serif;
	--xn-font-display-ar: 'Cairo', system-ui, sans-serif;
	--xn-font-body-ar: 'Cairo', system-ui, sans-serif;

	/* Sizing */
	--xn-radius: 14px;
	--xn-radius-lg: 22px;
	--xn-radius-xl: 32px;
	--xn-container: 1280px;
	--xn-gutter: clamp(1rem, 4vw, 2rem);

	/* Motion */
	--xn-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--xn-dur-fast: 200ms;
	--xn-dur: 400ms;
	--xn-dur-slow: 700ms;

	/* Shadows */
	--xn-shadow-sm: 0 4px 12px rgba(0,0,0,0.25);
	--xn-shadow: 0 12px 40px rgba(0,0,0,0.45);
	--xn-shadow-purple: 0 20px 60px rgba(124,67,166,0.35);
	--xn-shadow-gold: 0 20px 60px rgba(230,200,58,0.30);
}

/* -----------------------------------------------------------------------------
   2) RESET / BASE
   ----------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/*
 * Horizontal overflow strategy (iOS-Safari friendly):
 *
 * Rule 1: Only the BODY clips horizontal overflow. Not html, not html+body.
 *         iOS Safari's momentum scrolling breaks if html element has
 *         overflow-x:hidden because the browser's internal scrolling owner
 *         becomes ambiguous.
 *
 * Rule 2: NEVER use position:relative on body — this also breaks iOS scroll.
 *
 * Rule 3: Don't set max-width:100vw on body. 100vw includes the scrollbar
 *         width on desktop, causing hidden horizontal scroll.
 *
 * Rule 4: Use overflow-x:clip (not hidden) on inner sections only. `clip`
 *         doesn't create a new scroll container, so iOS scroll continues
 *         working normally.
 */
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	-webkit-overflow-scrolling: touch;
}
body {
	font-family: var(--xn-font-body-en);
	font-size: 16px;
	line-height: 1.65;
	color: var(--xn-soft);
	background: var(--xn-dark);
	overflow-x: hidden;
	font-feature-settings: "kern", "liga";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Inner sections clip overflow without creating a scroll container.
   `overflow-x: clip` is iOS-safe (16+) and doesn't break momentum scroll. */
.xn-section,
.xn-hero,
.xn-page-hero { max-width: 100%; overflow-x: clip; }

/* Container: never wider than the viewport */
.xn-container { max-width: min(var(--xn-container, 1200px), 100%); }

/* Lang-specific font branching — applied via body class added in setup.php */
body.xn-lang-ar { font-family: var(--xn-font-body-ar); }
body.xn-lang-en { font-family: var(--xn-font-body-en); }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--xn-dur) var(--xn-ease); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--xn-purple); color: #fff; }

/* Skip link (a11y) — only visible on KEYBOARD focus, never accidentally on mobile */
.xn-skip-link {
	position: absolute;
	top: -200px;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	background: var(--xn-purple);
	color: #fff;
	padding: 12px 20px;
	z-index: 9999;
	border-radius: 0 0 8px 0;
	font-weight: 700;
	pointer-events: none;
	opacity: 0;
	transition: none;
}
/* Only show when focused via keyboard (Tab) — :focus-visible never matches mobile taps */
.xn-skip-link:focus-visible {
	top: 0;
	left: 0;
	width: auto;
	height: auto;
	overflow: visible;
	pointer-events: auto;
	opacity: 1;
}
/* Hard guarantee: never display on any touch-primary device.
   `pointer: coarse` matches phones, tablets, and any touch-first input. */
@media (pointer: coarse) {
	.xn-skip-link { display: none !important; }
}

/* Scroll progress bar at the top */
.xn-progress {
	position: fixed; top: 0; left: 0; right: 0;
	height: 3px;
	background: rgba(255,255,255,0.05);
	z-index: 1000;
	pointer-events: none;
}
.xn-progress > span {
	display: block; height: 100%; width: 0;
	background: linear-gradient(90deg, var(--xn-purple), var(--xn-gold));
	transition: width 100ms linear;
}

/* -----------------------------------------------------------------------------
   3) TYPOGRAPHY
   ----------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
	font-family: var(--xn-font-display-en);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #fff;
}
body.xn-lang-ar h1, body.xn-lang-ar h2, body.xn-lang-ar h3, body.xn-lang-ar h4, body.xn-lang-ar h5 {
	font-family: var(--xn-font-display-ar);
	letter-spacing: 0;
	line-height: 1.3;
}

.xn-h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
.xn-h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 1rem; }
.xn-h2--white { color: #fff; }
.xn-h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.xn-lead {
	font-size: clamp(1rem, 1.5vw, 1.15rem);
	line-height: 1.7;
	color: var(--xn-muted);
	max-width: 60ch;
}
.xn-lead--center { margin-left: auto; margin-right: auto; text-align: center; }
.xn-lead--white { color: rgba(255,255,255,0.85); }

.xn-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--xn-gold);
	margin-bottom: 1.25rem;
}
body.xn-lang-ar .xn-eyebrow {
	letter-spacing: 0.05em;
	text-transform: none;
	font-size: 0.95rem;
}
.xn-eyebrow__dot {
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--xn-gold);
	box-shadow: 0 0 12px var(--xn-gold-glow);
}

/* -----------------------------------------------------------------------------
   4) LAYOUT PRIMITIVES
   ----------------------------------------------------------------------------- */
.xn-container {
	max-width: var(--xn-container);
	margin: 0 auto;
	padding: 0 var(--xn-gutter);
	width: 100%;
}
.xn-section {
	padding: clamp(4rem, 9vw, 7.5rem) 0;
	position: relative;
}
.xn-section__head {
	text-align: center;
	max-width: 720px;
	margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.xn-section__cta { text-align: center; margin-top: clamp(2rem, 4vw, 3.5rem); }

/* -----------------------------------------------------------------------------
   5) BUTTONS
   ----------------------------------------------------------------------------- */
.xn-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 26px;
	font-family: inherit;
	font-weight: 700;
	font-size: 0.95rem;
	border-radius: 999px;
	transition: all var(--xn-dur) var(--xn-ease);
	border: 1px solid transparent;
	white-space: nowrap;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	will-change: transform;
}
.xn-btn svg { flex-shrink: 0; transition: transform var(--xn-dur) var(--xn-ease); }
.xn-btn:hover svg { transform: translateX(3px); }
body.xn-rtl .xn-btn:hover svg { transform: translateX(-3px); }

.xn-btn--lg { padding: 18px 32px; font-size: 1rem; }
.xn-btn--sm { padding: 8px 16px; font-size: 0.85rem; }
.xn-btn--block { width: 100%; justify-content: center; }

.xn-btn--purple {
	background: linear-gradient(135deg, var(--xn-purple), var(--xn-purple-deep));
	color: #fff;
	box-shadow: var(--xn-shadow-purple);
}
.xn-btn--purple:hover { transform: translateY(-3px); box-shadow: 0 25px 70px rgba(124,67,166,0.5); }

.xn-btn--gold {
	background: linear-gradient(135deg, var(--xn-gold), var(--xn-gold-soft));
	color: var(--xn-dark);
	box-shadow: var(--xn-shadow-gold);
}
.xn-btn--gold:hover { transform: translateY(-3px); box-shadow: 0 25px 70px rgba(230,200,58,0.45); }

.xn-btn--ghost {
	background: var(--xn-glass);
	color: #fff;
	border-color: var(--xn-line-strong);
	backdrop-filter: blur(10px);
}
.xn-btn--ghost:hover { background: var(--xn-glass-strong); border-color: var(--xn-purple); }

.xn-btn--outline {
	background: transparent;
	color: #fff;
	border-color: rgba(255,255,255,0.4);
}
.xn-btn--outline:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

.xn-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	background: var(--xn-glass);
	color: #fff;
	border: 1px solid var(--xn-line);
	transition: all var(--xn-dur) var(--xn-ease);
}
.xn-icon-btn svg { width: 18px; height: 18px; }
.xn-icon-btn:hover { background: var(--xn-purple); border-color: var(--xn-purple); transform: translateY(-2px); }

/* -----------------------------------------------------------------------------
   6) HEADER / LANG / BURGER / SLIDE-IN PANEL (v3 — compact + premium)
   ----------------------------------------------------------------------------- */
.xn-header {
	position: fixed; top: 0; left: 0; right: 0;
	z-index: 100;
	padding: 14px 0; /* Overridden inline from Customizer */
	transition: padding 0.3s var(--xn-ease);
	pointer-events: none;
	will-change: transform;
}
.xn-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(14, 19, 32, 0.6);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
	transition: background 0.3s var(--xn-ease);
	pointer-events: none;
}
.xn-header.is-scrolled::before {
	background: rgba(14, 19, 32, 0.92);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 90%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, #000 90%, transparent 100%);
}

.xn-header__inner {
	position: relative;
	max-width: var(--xn-container);
	margin: 0 auto;
	padding: 0 var(--xn-gutter);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	pointer-events: auto;
}
.xn-header__lang  { justify-self: start; }
.xn-header__brand { justify-self: center; min-width: 0; }
.xn-header__menu  { justify-self: end; }

.xn-logo { display: inline-flex; align-items: center; line-height: 0; }
.xn-logo__svg { width: auto; }
.xn-logo .custom-logo-link { display: inline-flex; align-items: center; }

/* Compact glassy language pill */
.xn-lang {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.12);
	font-family: 'Cairo', sans-serif;
	font-size: 0.78rem;
	font-weight: 800;
	color: rgba(255,255,255,0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: all 0.3s var(--xn-ease);
	white-space: nowrap;
	min-height: 36px;
	box-sizing: border-box;
}
.xn-lang:hover {
	border-color: var(--xn-gold);
	background: rgba(230, 200, 58, 0.1);
	transform: translateY(-1px);
}
.xn-lang__globe { color: var(--xn-gold); flex-shrink: 0; transition: transform 0.4s var(--xn-ease); }
.xn-lang:hover .xn-lang__globe { transform: rotate(180deg); }
.xn-lang__label { letter-spacing: 0.05em; }

/* Burger — same dimensions as language pill for visual symmetry */
.xn-burger {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 36px; height: 36px;
	border-radius: 12px;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.12);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	cursor: pointer;
	transition: all 0.3s var(--xn-ease);
	box-sizing: border-box;
}
.xn-burger:hover {
	border-color: var(--xn-gold);
	background: rgba(230,200,58,0.08);
}
.xn-burger span {
	display: block;
	width: 18px; height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: all 0.3s var(--xn-ease);
	transform-origin: center;
}
.xn-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--xn-gold); }
.xn-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.xn-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--xn-gold); }

/* ===== Premium slide-in panel ===== */
.xn-overlay {
	position: fixed;
	inset: 0;
	background: rgba(7, 9, 26, 0.7);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	opacity: 0;
	visibility: hidden;
	z-index: 110;
	transition: opacity 0.4s var(--xn-ease), visibility 0.4s;
	cursor: pointer;
}
.xn-overlay.is-open { opacity: 1; visibility: visible; }

.xn-panel {
	position: fixed;
	top: 0;
	bottom: 0;
	/* In LTR: attach to right of screen. In RTL: attach to left. */
	right: 0;
	left: auto;
	width: min(380px, 88vw);
	background:
		radial-gradient(ellipse at top right, rgba(124, 67, 166, 0.25), transparent 55%),
		radial-gradient(ellipse at bottom left, rgba(230, 200, 58, 0.08), transparent 50%),
		linear-gradient(180deg, #0c1020 0%, #15192e 60%, #0a0e1c 100%);
	border-left: 1px solid rgba(230, 200, 58, 0.12);
	border-right: 0;
	z-index: 120;
	display: flex;
	flex-direction: column;
	padding: 0;
	box-shadow:
		0 0 80px rgba(0, 0, 0, 0.7),
		inset 1px 0 0 rgba(255, 255, 255, 0.04);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.5s var(--xn-ease), visibility 0.5s;
	overflow-y: auto;
	overscroll-behavior: contain;
}
/* Decorative top accent line */
.xn-panel::before {
	content: "";
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(230, 200, 58, 0.6), transparent);
	pointer-events: none;
}
/* Subtle vertical accent on the inside edge */
.xn-panel::after {
	content: "";
	position: absolute;
	top: 20%;
	bottom: 20%;
	left: 0;
	width: 1px;
	background: linear-gradient(180deg, transparent, rgba(124, 67, 166, 0.5), transparent);
	pointer-events: none;
}
.xn-panel.is-open {
	transform: translateX(0);
	visibility: visible;
}

/* RTL: panel on the LEFT, slides in from the left. */
body.xn-rtl .xn-panel {
	right: auto;
	left: 0;
	border-left: 0;
	border-right: 1px solid rgba(230, 200, 58, 0.12);
	background:
		radial-gradient(ellipse at top left, rgba(124, 67, 166, 0.25), transparent 55%),
		radial-gradient(ellipse at bottom right, rgba(230, 200, 58, 0.08), transparent 50%),
		linear-gradient(180deg, #0c1020 0%, #15192e 60%, #0a0e1c 100%);
	box-shadow:
		0 0 80px rgba(0, 0, 0, 0.7),
		inset -1px 0 0 rgba(255, 255, 255, 0.04);
	transform: translateX(-100%);
}
body.xn-rtl .xn-panel::after {
	left: auto;
	right: 0;
}
body.xn-rtl .xn-panel.is-open {
	transform: translateX(0);
}

/* Decorative top gradient */
.xn-panel::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 200px;
	background:
		radial-gradient(circle at 80% 0%, rgba(124, 67, 166, 0.4), transparent 60%),
		radial-gradient(circle at 20% 30%, rgba(230, 200, 58, 0.18), transparent 60%);
	pointer-events: none;
	z-index: 0;
}

.xn-panel__head {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px 16px;
	border-bottom: 1px solid rgba(255,255,255,0.05);
}
.xn-panel__close {
	width: 38px; height: 38px;
	display: grid; place-items: center;
	border-radius: 10px;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.1);
	color: #fff;
	cursor: pointer;
	transition: all 0.3s var(--xn-ease);
}
.xn-panel__close:hover { background: var(--xn-gold); color: var(--xn-dark); border-color: var(--xn-gold); transform: rotate(90deg); }
.xn-panel__close svg { width: 18px; height: 18px; }

.xn-panel__nav {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	padding: 20px 16px;
	gap: 4px;
}

.xn-panel__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 14px;
	color: rgba(255,255,255,0.85);
	font-size: 1rem;
	font-weight: 600;
	transition: all 0.3s var(--xn-ease);
	position: relative;
	/* Stagger entrance: each item delayed by --i * 60ms */
	opacity: 0;
	transform: translateX(30px);
}
body.xn-rtl .xn-panel__link { transform: translateX(-30px); }
.xn-panel.is-open .xn-panel__link {
	animation: xn-panel-link-in 0.5s var(--xn-ease) forwards;
	animation-delay: calc(var(--i, 0) * 0.06s + 0.15s);
}
@keyframes xn-panel-link-in {
	to { opacity: 1; transform: translateX(0); }
}

.xn-panel__link:hover {
	background: rgba(124, 67, 166, 0.12);
	color: #fff;
	transform: translateX(0);
}
body.xn-rtl .xn-panel__link:hover { transform: translateX(0); }
.xn-panel__link::before {
	content: "";
	position: absolute;
	top: 50%; transform: translateY(-50%);
	inset-inline-start: 0;
	width: 3px; height: 0;
	background: linear-gradient(180deg, var(--xn-purple), var(--xn-gold));
	border-radius: 3px;
	transition: height 0.3s var(--xn-ease);
}
.xn-panel__link:hover::before { height: 60%; }

.xn-panel__link-icon {
	width: 38px; height: 38px;
	display: grid; place-items: center;
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(124, 67, 166, 0.18), rgba(230, 200, 58, 0.08));
	color: var(--xn-gold);
	flex-shrink: 0;
	transition: all 0.3s var(--xn-ease);
}
.xn-panel__link:hover .xn-panel__link-icon {
	background: linear-gradient(135deg, var(--xn-purple), var(--xn-purple-dark));
	color: #fff;
	transform: scale(1.05);
}
.xn-panel__link-icon svg { width: 18px; height: 18px; }
.xn-panel__link-label { flex: 1; }
.xn-panel__link-arrow { opacity: 0.4; transition: all 0.3s var(--xn-ease); }
body.xn-rtl .xn-panel__link-arrow svg { transform: scaleX(-1); }
.xn-panel__link:hover .xn-panel__link-arrow { opacity: 1; color: var(--xn-gold); transform: translateX(4px); }
body.xn-rtl .xn-panel__link:hover .xn-panel__link-arrow { transform: translateX(-4px); }

.xn-panel__ctas {
	position: relative;
	z-index: 1;
	padding: 20px 24px;
	border-top: 1px solid rgba(255,255,255,0.05);
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: auto;
	opacity: 0;
	transform: translateY(20px);
}
.xn-panel.is-open .xn-panel__ctas {
	animation: xn-panel-ctas-in 0.5s var(--xn-ease) forwards;
	animation-delay: calc(var(--i, 6) * 0.06s + 0.15s);
}
@keyframes xn-panel-ctas-in {
	to { opacity: 1; transform: translateY(0); }
}

.xn-panel__quick {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.xn-panel__quick-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px;
	border-radius: 12px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.85);
	font-size: 0.85rem;
	font-weight: 700;
	transition: all 0.3s var(--xn-ease);
	position: relative;
	z-index: 1;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	text-decoration: none;
}
.xn-panel__quick-btn svg {
	width: 16px;
	height: 16px;
	pointer-events: none;
}
.xn-panel__quick-btn:hover {
	background: rgba(124, 67, 166, 0.15);
	border-color: var(--xn-purple);
	color: #fff;
}

.xn-panel__social {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 10px;
	padding: 0 24px 24px;
	justify-content: center;
	opacity: 0;
	transform: translateY(20px);
	flex-wrap: wrap;
}
.xn-panel.is-open .xn-panel__social {
	animation: xn-panel-ctas-in 0.5s var(--xn-ease) forwards;
	animation-delay: 0.55s;
}
.xn-panel__social-link {
	/* Bigger touch target on mobile so icons are easy to tap and don't get
	   crowded by neighbours. iOS recommends at least 44×44px for buttons. */
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.85);
	transition: all 0.3s var(--xn-ease);
	/* Defensive: ensure clicks land on the <a>, not whatever's behind it,
	   and disable iOS Safari's 300ms tap delay + grey tap highlight. */
	position: relative;
	z-index: 1;
	pointer-events: auto;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	text-decoration: none;
}
.xn-panel__social-link:hover,
.xn-panel__social-link:focus-visible {
	background: var(--xn-purple);
	color: #fff;
	border-color: var(--xn-purple);
	transform: translateY(-3px);
}
.xn-panel__social-link svg {
	width: 18px;
	height: 18px;
	pointer-events: none; /* clicks bubble to the <a>, not the SVG */
}

/* Empty state — icon visible but visibly inactive; encourages adding URL via Customizer */
.xn-panel__social-link.is-empty {
	opacity: 0.35;
	border-style: dashed;
	cursor: default;
}
.xn-panel__social-link.is-empty:hover {
	background: rgba(255,255,255,0.04);
	color: rgba(255,255,255,0.7);
	border-color: rgba(255,255,255,0.08);
	transform: none;
}

/* Lock body when panel open */
body.xn-panel-open {
	overflow: hidden;
	touch-action: none;
}

/* ===== Performance: prevent backdrop-filter from killing scroll on mobile ===== */
@media (max-width: 768px) {
	.xn-header::before {
		/* On mobile, drop heavy filter for solid color (much smoother scroll) */
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background: rgba(14, 19, 32, 0.92);
	}
}

/* -----------------------------------------------------------------------------
   7) HERO SECTION
   ----------------------------------------------------------------------------- */
.xn-hero {
	position: relative;
	min-height: calc(100vh - 60px);
	min-height: calc(100svh - 60px);
	display: flex;
	align-items: center;
	overflow: hidden;
	padding: 60px var(--xn-gutter) 50px;
	color: #fff;
}
@media (max-width: 768px) {
	.xn-hero { padding: 40px var(--xn-gutter) 40px; min-height: calc(100vh - 50px); }
}
.xn-hero__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}
.xn-hero__bg-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	object-fit: cover;
	object-position: center center;
	opacity: 0.6;
	display: block;
	border: 0;
	pointer-events: none;
}

/* Hero background VIDEO — sits over the image when configured.
   Image stays as poster/fallback so there's always something to look at while
   the video buffers, or if the video format isn't supported.
   Styled identically to the image so the cinematic feel is preserved. */
.xn-hero__bg-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	opacity: 0.6; /* same as the image — lets overlay do the work */
	display: block;
	border: 0;
	pointer-events: none;
	z-index: 1;
}
/* When video is present, hide the still image so we don't double-up */
.xn-hero.has-video .xn-hero__bg-img {
	opacity: 0;
}
/* Optionally hide video on mobile to save data */
@media (max-width: 768px) {
	.xn-hero.video-desktop-only .xn-hero__bg-video { display: none; }
	.xn-hero.video-desktop-only .xn-hero__bg-img { opacity: 0.65 !important; }
}

@media (max-width: 768px) {
	.xn-hero__bg-img {
		opacity: 0.65 !important;
		object-position: 70% center;
		visibility: visible !important;
		display: block !important;
	}
	.xn-hero__bg {
		display: block !important;
		visibility: visible !important;
	}
	.xn-hero__bg-video {
		object-position: 70% center;
	}
}
.xn-hero__overlay {
	position: absolute; inset: 0;
	z-index: 2; /* above video (z=1) and image (z=0) */
	background:
		radial-gradient(ellipse at 30% 50%, rgba(124,67,166,0.35) 0%, transparent 60%),
		radial-gradient(ellipse at 80% 70%, rgba(230,200,58,0.18) 0%, transparent 60%),
		linear-gradient(180deg, rgba(14,19,32,0.6) 0%, rgba(14,19,32,0.95) 100%);
}

/* Diagonal light beams (matching brand car shot) */
.xn-hero__beams { position: absolute; inset: 0; overflow: hidden; z-index: 3; pointer-events: none; }
.xn-beam {
	position: absolute;
	width: 200%;
	height: 200px;
	transform-origin: 0 0;
	filter: blur(40px);
	opacity: 0;
	animation: xn-beam-in 1.5s var(--xn-ease) forwards;
}
.xn-beam--purple {
	background: linear-gradient(90deg, transparent, var(--xn-purple), transparent);
	top: 30%; left: -50%;
	transform: rotate(-18deg);
	animation-delay: 0.3s;
}
.xn-beam--purple.xn-beam--2 {
	top: 55%; left: -60%;
	transform: rotate(-22deg);
	height: 120px;
	opacity: 0;
	animation-delay: 0.6s;
}
.xn-beam--purple.xn-beam--3 {
	top: 75%; left: -40%;
	transform: rotate(-15deg);
	height: 80px;
	animation-delay: 0.9s;
}
.xn-beam--gold {
	background: linear-gradient(90deg, transparent, var(--xn-gold), transparent);
	top: 45%; left: -50%;
	transform: rotate(-20deg);
	height: 60px;
	animation-delay: 1.2s;
	opacity: 0;
}
@keyframes xn-beam-in { to { opacity: 0.4; } }

/* Subtle grid pattern overlay */
.xn-hero__grid {
	position: absolute; inset: 0;
	z-index: 3;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
	background-size: 60px 60px;
	mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
	-webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Animated grain noise overlay */
.xn-grain {
	position: absolute; inset: 0;
	z-index: 4;
	pointer-events: none;
	opacity: 0.06;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
	mix-blend-mode: overlay;
}

.xn-hero__inner {
	position: relative;
	z-index: 10;
	max-width: var(--xn-container);
	margin: 0 auto;
	width: 100%;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}
.xn-hero__inner .xn-eyebrow { justify-content: center; }

.xn-hero__title {
	font-size: clamp(2.5rem, 7vw, 5.5rem);
	font-weight: 900;
	line-height: 1.05;
	margin: 0 0 1.5rem;
	background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.7) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.xn-hero__subtitle {
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	color: rgba(255,255,255,0.75);
	max-width: 720px;
	margin: 0 auto 2.5rem;
	line-height: 1.7;
}
.xn-hero__ctas {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

.xn-hero__scroll {
	display: inline-flex;
	flex-direction: column; align-items: center;
	gap: 6px;
	margin: 24px auto 0;
	color: rgba(255,255,255,0.5);
	font-size: 0.65rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	transition: color 0.3s var(--xn-ease);
	cursor: pointer;
}
.xn-hero__scroll:hover { color: var(--xn-gold); }
body.xn-lang-ar .xn-hero__scroll { letter-spacing: 0.04em; text-transform: none; font-size: 0.72rem; }

.xn-hero__scroll-icon {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1.5px solid rgba(230, 200, 58, 0.35);
	color: var(--xn-gold);
	animation: xn-scroll-bounce 2s ease-in-out infinite;
}
.xn-hero__scroll-icon svg { width: 14px; height: 14px; }
.xn-hero__scroll:hover .xn-hero__scroll-icon {
	border-color: var(--xn-gold);
	background: rgba(230, 200, 58, 0.08);
	transform: scale(1.05);
}

@keyframes xn-scroll-bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
	40% { transform: translateY(4px); }
	60% { transform: translateY(2px); }
}

/* Legacy line element no longer needed, but keep gracefully hidden */
.xn-hero__scroll-line { display: none; }

/* -----------------------------------------------------------------------------
   8) TRUST BADGES — Compact horizontal marquee (smaller, fits in hero area)
   ----------------------------------------------------------------------------- */
.xn-trust {
	padding: 1.25rem 0;
	background: linear-gradient(180deg, rgba(14,19,32,0.95), var(--xn-dark-2));
	border-top: 1px solid rgba(255,255,255,0.04);
	border-bottom: 1px solid rgba(255,255,255,0.04);
	overflow: hidden;
	position: relative;
}

/* Side gradient shadows that fade the marquee on left & right */
.xn-trust::before,
.xn-trust::after {
	content: "";
	position: absolute;
	top: 0; bottom: 0;
	width: 10%;
	z-index: 2;
	pointer-events: none;
}
.xn-trust::before { left: 0;  background: linear-gradient(90deg,  var(--xn-dark) 10%, transparent); }
.xn-trust::after  { right: 0; background: linear-gradient(270deg, var(--xn-dark) 10%, transparent); }

/* The viewport that clips the moving track */
.xn-trust__viewport {
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* Track that holds duplicated items for seamless loop */
.xn-trust__track {
	display: flex;
	gap: 14px;
	width: max-content;
	animation: xn-trust-marquee 28s linear infinite;
	will-change: transform;
}
.xn-trust:hover .xn-trust__track { animation-play-state: paused; }

@keyframes xn-trust-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(calc(-50% - 7px)); }
}
body.xn-rtl .xn-trust__track {
	animation-direction: reverse;
}

/* Each card — smaller, more compact */
.xn-trust__item {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(124,67,166,0.10), rgba(230,200,58,0.04));
	border: 1px solid rgba(255,255,255,0.07);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow:
		-8px 0 20px rgba(124,67,166,0.10),
		 8px 0 20px rgba(230,200,58,0.06),
		 0 4px 12px rgba(0,0,0,0.3);
}

.xn-trust__icon {
	width: 32px; height: 32px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--xn-purple-glow), var(--xn-gold-glow));
	color: var(--xn-gold);
	border: 1px solid var(--xn-line-strong);
	flex-shrink: 0;
}
.xn-trust__icon svg { width: 16px; height: 16px; }

.xn-trust__label {
	font-size: 0.82rem;
	font-weight: 700;
	color: rgba(255,255,255,0.92);
	white-space: nowrap;
	line-height: 1.3;
}

@media (max-width: 768px) {
	.xn-trust { padding: 1rem 0; }
	.xn-trust__item { padding: 8px 14px; gap: 8px; }
	.xn-trust__icon { width: 28px; height: 28px; }
	.xn-trust__icon svg { width: 14px; height: 14px; }
	.xn-trust__label { font-size: 0.75rem; }
	.xn-trust__track { animation-duration: 22s; gap: 10px; }
	@keyframes xn-trust-marquee {
		from { transform: translateX(0); }
		to   { transform: translateX(calc(-50% - 5px)); }
	}
}

/* -----------------------------------------------------------------------------
   9) ABOUT PREVIEW
   ----------------------------------------------------------------------------- */
.xn-about { background: var(--xn-dark); }
.xn-about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}
.xn-about__media-frame {
	position: relative;
	border-radius: var(--xn-radius-lg);
	overflow: hidden;
	aspect-ratio: 4/5;
	box-shadow: var(--xn-shadow);
}
.xn-about__media-frame img,
.xn-about__placeholder { width: 100%; height: 100%; object-fit: cover; }
.xn-about__placeholder {
	background: linear-gradient(135deg, var(--xn-dark-2), var(--xn-dark-3));
	display: flex; align-items: center; justify-content: center;
	padding: 2rem;
}
.xn-about__placeholder svg { max-width: 80%; }

.xn-about__corner {
	position: absolute;
	width: 60px; height: 60px;
	border: 2px solid var(--xn-gold);
	border-radius: 6px;
	pointer-events: none;
}
.xn-about__corner--tl { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.xn-about__corner--br { bottom: 16px; right: 16px; border-left: none; border-top: none; }

.xn-about__points {
	margin: 1.5rem 0 2rem;
	display: flex; flex-direction: column; gap: 12px;
}
.xn-about__points li {
	display: flex; align-items: center; gap: 12px;
	color: rgba(255,255,255,0.85);
	font-weight: 500;
}
.xn-about__points svg {
	width: 20px; height: 20px;
	color: var(--xn-gold);
	flex-shrink: 0;
}

/* -----------------------------------------------------------------------------
   10) SERVICES GRID
   ----------------------------------------------------------------------------- */
.xn-services { background: linear-gradient(180deg, var(--xn-dark), var(--xn-dark-2)); }
.xn-services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.xn-service-card {
	position: relative;
	border-radius: var(--xn-radius-lg);
	overflow: hidden;
	transition: transform var(--xn-dur) var(--xn-ease);
}
.xn-service-card:hover { transform: translateY(-6px); }

.xn-service-card__glow {
	position: absolute; inset: -2px;
	background: linear-gradient(135deg, var(--xn-purple), var(--xn-gold));
	opacity: 0;
	border-radius: inherit;
	transition: opacity var(--xn-dur) var(--xn-ease);
	z-index: 0;
}
.xn-service-card:hover .xn-service-card__glow { opacity: 0.6; }

.xn-service-card__inner {
	position: relative;
	z-index: 1;
	background: linear-gradient(180deg, var(--xn-dark-3), var(--xn-dark-2));
	border: 1px solid var(--xn-line);
	border-radius: var(--xn-radius-lg);
	padding: 2rem;
	height: 100%;
	display: flex; flex-direction: column;
}
.xn-service-card__icon {
	width: 64px; height: 64px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--xn-purple-glow), transparent);
	border: 1px solid var(--xn-line);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 1.5rem;
	color: var(--xn-gold);
	transition: all var(--xn-dur) var(--xn-ease);
}
.xn-service-card:hover .xn-service-card__icon {
	background: linear-gradient(135deg, var(--xn-purple), var(--xn-gold));
	color: #fff;
}
.xn-service-card__icon svg { width: 30px; height: 30px; }

.xn-service-card__title {
	font-size: 1.35rem;
	margin-bottom: 0.75rem;
	color: #fff;
}
.xn-service-card__desc {
	color: var(--xn-muted);
	font-size: 0.95rem;
	margin-bottom: 1.5rem;
	flex-grow: 1;
}
.xn-service-card__link {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--xn-gold);
	font-weight: 600;
	font-size: 0.9rem;
	transition: gap var(--xn-dur);
}
.xn-service-card__link:hover { gap: 14px; color: var(--xn-gold-soft); }

/* -----------------------------------------------------------------------------
   11) BENEFITS
   ----------------------------------------------------------------------------- */
.xn-benefits { background: var(--xn-dark); }
.xn-benefits__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}
.xn-benefit {
	padding: 2rem 1.5rem;
	background: var(--xn-glass);
	border: 1px solid var(--xn-line);
	border-radius: var(--xn-radius);
	text-align: center;
	transition: all var(--xn-dur) var(--xn-ease);
}
.xn-benefit:hover {
	transform: translateY(-4px);
	border-color: var(--xn-purple);
	background: var(--xn-glass-strong);
}
.xn-benefit__icon {
	width: 64px; height: 64px;
	margin: 0 auto 1.25rem;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--xn-purple), var(--xn-purple-deep));
	color: var(--xn-gold);
}
.xn-benefit__icon svg { width: 28px; height: 28px; }
.xn-benefit__title { font-size: 1.1rem; margin-bottom: 0.5rem; color: #fff; }
.xn-benefit__desc { font-size: 0.9rem; color: var(--xn-muted); line-height: 1.6; }

/* -----------------------------------------------------------------------------
   12) COUNTERS
   ----------------------------------------------------------------------------- */
.xn-counters {
	background:
		radial-gradient(ellipse at 30% 50%, rgba(124,67,166,0.18), transparent 60%),
		radial-gradient(ellipse at 80% 50%, rgba(230,200,58,0.10), transparent 60%),
		linear-gradient(135deg, #0a0e1a 0%, #11172a 100%);
	position: relative;
	overflow: hidden;
	padding: 5rem 0;
}
.xn-counters__bg {
	position: absolute; inset: 0;
	pointer-events: none;
}
.xn-counters__beam {
	position: absolute;
	top: 50%; left: -20%;
	width: 140%; height: 200px;
	background: linear-gradient(90deg, transparent, var(--xn-gold-glow), transparent);
	transform: rotate(-8deg) translateY(-50%);
	filter: blur(60px);
	opacity: 0.4;
}
.xn-counters__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	position: relative;
	z-index: 1;
}

/* ---- Speedometer-styled counter ---- */
.xn-counter {
	position: relative;
	text-align: center;
	color: #fff;
	padding: 32px 16px 24px;
	border-radius: 24px;
	background:
		radial-gradient(ellipse at center top, rgba(124,67,166,0.12), transparent 70%),
		linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
	border: 1px solid rgba(255,255,255,0.06);
	transition: all 0.4s var(--xn-ease);
	overflow: hidden;
}
.xn-counter::before {
	content: "";
	position: absolute;
	top: -1px; left: 50%;
	width: 60%;
	height: 1px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, transparent, var(--xn-gold), transparent);
	opacity: 0.6;
}
.xn-counter:hover {
	transform: translateY(-4px);
	border-color: rgba(230,200,58,0.25);
	box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

/* The gauge ring around each number */
.xn-counter__gauge {
	position: relative;
	width: 140px;
	height: 140px;
	margin: 0 auto 16px;
	display: grid;
	place-items: center;
}
.xn-counter__gauge svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(135deg);
}
.xn-counter__gauge-track {
	fill: none;
	stroke: rgba(255,255,255,0.08);
	stroke-width: 6;
	stroke-linecap: round;
}
.xn-counter__gauge-fill {
	fill: none;
	stroke: url(#xn-gauge-grad);
	stroke-width: 6;
	stroke-linecap: round;
	stroke-dasharray: 0 999;
	transition: stroke-dasharray 1.8s cubic-bezier(.16,1,.3,1);
}
.xn-counter.is-active .xn-counter__gauge-fill {
	/* Animated to actual % via inline style from JS, but a default reveal here */
}

/* Tick marks (small lines around the dial) */
.xn-counter__ticks {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.xn-counter__ticks span {
	position: absolute;
	top: 50%; left: 50%;
	width: 2px;
	height: 6px;
	background: rgba(230, 200, 58, 0.35);
	transform-origin: 50% 64px;
	margin-left: -1px;
	margin-top: -3px;
}

/* Number readout in center */
.xn-counter__num {
	position: relative;
	z-index: 1;
	font-family: 'Cairo', sans-serif;
	font-size: clamp(1.6rem, 3.2vw, 2.4rem);
	font-weight: 900;
	line-height: 1;
	display: inline-flex;
	align-items: baseline;
	color: #fff;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	min-width: 1ch; /* ensures the "0" is always visible */
}
.xn-counter__val {
	display: inline-block;
	min-width: 1ch;
	color: #fff;
}
.xn-counter__suf {
	color: var(--xn-gold);
	margin-inline-start: 2px;
	font-size: 0.7em;
	font-weight: 800;
}

.xn-counter__label {
	font-size: 0.9rem;
	color: rgba(255,255,255,0.7);
	font-weight: 600;
	margin-top: 4px;
}

/* -----------------------------------------------------------------------------
   13) BRANCHES
   ----------------------------------------------------------------------------- */
.xn-branches { background: var(--xn-dark); }
.xn-branches__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.xn-branch-card {
	position: relative;
	padding: 2rem;
	background: linear-gradient(180deg, var(--xn-dark-2), var(--xn-dark-3));
	border: 1px solid var(--xn-line);
	border-radius: var(--xn-radius-lg);
	transition: all var(--xn-dur) var(--xn-ease);
}
.xn-branch-card:hover {
	transform: translateY(-4px);
	border-color: var(--xn-purple);
	box-shadow: var(--xn-shadow);
}

.xn-branch-card__pin {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
}
body.xn-rtl .xn-branch-card__pin { right: auto; left: 24px; }
.xn-branch-card__pin-dot {
	position: relative; z-index: 2;
	width: 12px; height: 12px;
	border-radius: 50%;
	background: var(--xn-gold);
	box-shadow: 0 0 16px var(--xn-gold);
}
.xn-branch-card__pin-pulse {
	position: absolute;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: var(--xn-gold);
	opacity: 0.3;
	animation: xn-pulse 2s ease-out infinite;
}
@keyframes xn-pulse {
	0% { transform: scale(0.5); opacity: 0.6; }
	100% { transform: scale(1.5); opacity: 0; }
}

.xn-branch-card__name {
	font-size: 1.35rem;
	color: #fff;
	margin-bottom: 0.4rem;
	padding-right: 50px;
}
body.xn-rtl .xn-branch-card__name { padding-right: 0; padding-left: 50px; }

.xn-branch-card__city {
	color: var(--xn-gold);
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 1rem;
}
.xn-branch-card__addr {
	color: var(--xn-muted);
	font-size: 0.95rem;
	margin-bottom: 1rem;
	line-height: 1.6;
}
.xn-branch-card__hours {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 0.85rem;
	color: rgba(255,255,255,0.7);
	padding: 6px 12px;
	background: var(--xn-glass);
	border-radius: 999px;
	margin-bottom: 1.5rem;
}
.xn-branch-card__ctas {
	display: flex; align-items: center; gap: 10px;
	flex-wrap: wrap;
}

/* -----------------------------------------------------------------------------
   14) TESTIMONIALS
   ----------------------------------------------------------------------------- */
.xn-testimonials { background: linear-gradient(180deg, var(--xn-dark-2), var(--xn-dark)); }
.xn-testimonials__grid,
.xn-testimonials__track {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
@media (max-width: 980px) {
	.xn-testimonials__grid,
	.xn-testimonials__track { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

/*
 * Mobile (≤ 600px): switch from a vertical stack to a horizontal carousel.
 *
 * - `display: flex` lays the cards in a row.
 * - `overflow-x: auto` enables horizontal scroll.
 * - `scroll-snap-type` makes the scroll snap one card at a time.
 * - Each card gets a fixed width (~85% of viewport) so a peek of the next
 *   card is visible — that's the visual hint "swipe for more".
 * - Padding on the wrapper + scroll-padding keeps the active card centered.
 */
@media (max-width: 600px) {
	.xn-testimonials__grid,
	.xn-testimonials__track {
		display: flex;
		flex-wrap: nowrap;
		gap: 14px;
		grid-template-columns: none;
		overflow-x: auto;
		overflow-y: visible;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scroll-padding-inline: 16px;
		padding: 8px 16px 24px;
		margin: 0 -16px;
		scrollbar-width: none; /* hide Firefox scrollbar */
	}
	.xn-testimonials__grid::-webkit-scrollbar,
	.xn-testimonials__track::-webkit-scrollbar { display: none; }

	.xn-testimonials__grid > .xn-quote,
	.xn-testimonials__track > .xn-quote {
		flex: 0 0 85%;
		max-width: 360px;
		scroll-snap-align: center;
	}
}
.xn-quote {
	padding: 2rem;
	background: var(--xn-glass);
	border: 1px solid var(--xn-line);
	border-radius: var(--xn-radius-lg);
	position: relative;
	transition: all var(--xn-dur) var(--xn-ease);
}
.xn-quote:hover { border-color: var(--xn-gold); transform: translateY(-4px); }

.xn-quote__rating {
	display: flex; gap: 4px;
	color: var(--xn-gold);
	margin-bottom: 1rem;
}
.xn-quote__rating svg { width: 18px; height: 18px; }
.xn-quote__text {
	color: rgba(255,255,255,0.9);
	font-size: 1rem;
	line-height: 1.7;
	margin-bottom: 1.5rem;
	position: relative;
}
.xn-quote__mark {
	width: 28px; height: 28px;
	color: var(--xn-purple);
	opacity: 0.4;
	margin-bottom: 8px;
}
.xn-quote__person {
	display: flex; align-items: center; gap: 14px;
	border-top: 1px solid var(--xn-line);
	padding-top: 1.25rem;
}
.xn-quote__avatar {
	width: 48px; height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--xn-gold);
}
.xn-quote__avatar--initial {
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--xn-purple), var(--xn-purple-deep));
	color: var(--xn-gold);
	font-weight: 800;
	font-size: 1.2rem;
	font-family: var(--xn-font-display-en);
}
.xn-quote__name { font-weight: 700; color: #fff; }
.xn-quote__role { font-size: 0.85rem; color: var(--xn-muted); }

/* -----------------------------------------------------------------------------
   15) FINAL CTA PANEL
   ----------------------------------------------------------------------------- */
.xn-cta-final { background: var(--xn-dark); }
.xn-cta-panel {
	position: relative;
	border-radius: var(--xn-radius-xl);
	overflow: hidden;
	padding: clamp(3rem, 7vw, 5rem) clamp(2rem, 6vw, 4rem);
	text-align: center;
}
.xn-cta-panel__bg {
	position: absolute; inset: 0;
	background:
		radial-gradient(ellipse at 30% 30%, var(--xn-purple) 0%, transparent 50%),
		radial-gradient(ellipse at 70% 80%, var(--xn-gold) 0%, transparent 50%),
		var(--xn-dark-3);
	opacity: 0.9;
}
.xn-cta-panel__bg::after {
	content: '';
	position: absolute; inset: 0;
	background: rgba(14,19,32,0.3);
	backdrop-filter: blur(40px);
}
.xn-cta-panel__content {
	position: relative; z-index: 2;
	max-width: 720px;
	margin: 0 auto;
}
.xn-cta-panel__buttons {
	display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
	margin-top: 2rem;
}
.xn-cta-panel__articles {
	display: inline-flex; align-items: center; gap: 8px;
	margin-top: 2rem;
	font-size: 0.85rem;
	color: rgba(255,255,255,0.6);
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px dashed var(--xn-line-strong);
	transition: all var(--xn-dur);
}
.xn-cta-panel__articles:hover { color: var(--xn-gold); border-color: var(--xn-gold); }

/* -----------------------------------------------------------------------------
   16) FOOTER
   ----------------------------------------------------------------------------- */
.xn-footer {
	position: relative;
	background: #0a0e18;
	color: rgba(255,255,255,0.7);
	padding-top: 4rem;
	border-top: 1px solid var(--xn-line);
}
.xn-footer__ribbon {
	position: absolute; top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--xn-purple), var(--xn-gold), var(--xn-purple));
	background-size: 200% 100%;
	animation: xn-ribbon 6s linear infinite;
}
@keyframes xn-ribbon { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

.xn-footer__inner {
	max-width: var(--xn-container);
	margin: 0 auto;
	padding: 0 var(--xn-gutter);
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 3rem;
}
.xn-footer__brand .xn-logo { margin-bottom: 1rem; }
.xn-footer__tagline { font-size: 0.95rem; max-width: 260px; margin-bottom: 1.5rem; }

.xn-footer__title {
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 1.25rem;
	font-family: var(--xn-font-display-en);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
body.xn-lang-ar .xn-footer__title { text-transform: none; letter-spacing: 0; font-family: var(--xn-font-display-ar); }

.xn-footer__links { display: flex; flex-direction: column; gap: 10px; }
.xn-footer__links a {
	font-size: 0.92rem;
	color: rgba(255,255,255,0.6);
	transition: color var(--xn-dur), padding var(--xn-dur);
	position: relative;
}
.xn-footer__links a:hover { color: var(--xn-gold); padding-left: 6px; }
body.xn-rtl .xn-footer__links a:hover { padding-left: 0; padding-right: 6px; }

.xn-footer__contact { display: flex; flex-direction: column; gap: 12px; }
.xn-footer__contact li {
	display: flex; align-items: center; gap: 10px;
	font-size: 0.92rem;
}
.xn-footer__contact svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--xn-gold); }
.xn-footer__contact a { color: rgba(255,255,255,0.7); }
.xn-footer__contact a:hover { color: var(--xn-gold); }

.xn-social { display: flex; gap: 10px; }
.xn-social__link {
	width: 38px; height: 38px;
	border-radius: 10px;
	background: var(--xn-glass);
	border: 1px solid var(--xn-line);
	display: flex; align-items: center; justify-content: center;
	color: rgba(255,255,255,0.7);
	transition: all var(--xn-dur);
}
.xn-social__link svg { width: 18px; height: 18px; }
.xn-social__link:hover {
	background: var(--xn-purple);
	color: #fff;
	border-color: var(--xn-purple);
	transform: translateY(-2px);
}

.xn-footer__bottom {
	margin-top: 3rem;
	padding: 1.5rem var(--xn-gutter);
	border-top: 1px solid var(--xn-line);
	display: flex; justify-content: space-between; align-items: center;
	font-size: 0.85rem;
	color: rgba(255,255,255,0.5);
	flex-wrap: wrap;
	gap: 1rem;
}
.xn-credit {
	font-weight: 600;
	color: rgba(255,255,255,0.75);
	letter-spacing: 0.02em;
}
.xn-credit__heart {
	color: var(--xn-gold);
	display: inline-block;
	animation: xn-heart 1.6s ease-in-out infinite;
}
@keyframes xn-heart { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* -----------------------------------------------------------------------------
   17) FAB (Floating WhatsApp)
   ----------------------------------------------------------------------------- */
.xn-fab {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 90;
	display: flex; flex-direction: column; gap: 12px;
}
body.xn-rtl .xn-fab { right: auto; left: 24px; }
.xn-fab__btn {
	width: 56px; height: 56px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: #fff;
	box-shadow: var(--xn-shadow);
	transition: transform var(--xn-dur);
}
.xn-fab__btn--wa {
	background: linear-gradient(135deg, #25D366, #128C7E);
	animation: xn-fab-pulse 2.5s ease-in-out infinite;
}
.xn-fab__btn:hover { transform: scale(1.08); }
.xn-fab__btn svg { width: 28px; height: 28px; }
@keyframes xn-fab-pulse {
	0%,100% { box-shadow: 0 12px 40px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.4); }
	50% { box-shadow: 0 12px 40px rgba(37,211,102,0.45), 0 0 0 14px rgba(37,211,102,0); }
}

/* -----------------------------------------------------------------------------
   18) GSAP REVEAL STATES (initial hidden, JS animates to visible)
   FAILSAFE: After 1.5s, force-reveal everything in case GSAP failed to load
   (CDN block, slow connection, or JS error). This guarantees content is
   never permanently invisible.
   ----------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; animation: xn-reveal-failsafe 0.6s 1.5s forwards; }
.no-js [data-reveal] { opacity: 1; animation: none; }
.has-js.xn-gsap-ready [data-reveal] { animation: none; }

@keyframes xn-reveal-failsafe {
	to { opacity: 1; transform: none; }
}

/* The hero trust marquee must NEVER hide — it's the brand banner. */
.xn-hero-trust { opacity: 1 !important; }
.xn-hero-trust[data-reveal] { animation: none; }

/* -----------------------------------------------------------------------------
   19) UTILITIES
   ----------------------------------------------------------------------------- */
.xn-hide-mobile { display: inline-flex; }
.xn-only-mobile { display: none; }

/* -----------------------------------------------------------------------------
   20) PAGE TEMPLATES — Generic page header + content
   ----------------------------------------------------------------------------- */
.xn-page {
	padding-top: 130px;
}
.xn-page__hero {
	padding: 4rem 0;
	text-align: center;
	background: linear-gradient(180deg, var(--xn-dark-2), var(--xn-dark));
	border-bottom: 1px solid var(--xn-line);
	position: relative;
	overflow: hidden;
}
.xn-page__hero::before {
	content: '';
	position: absolute; inset: 0;
	background: radial-gradient(ellipse at center top, var(--xn-purple-glow) 0%, transparent 60%);
	pointer-events: none;
}
.xn-page__hero h1 {
	font-size: clamp(2.5rem, 5vw, 3.75rem);
	margin-bottom: 1rem;
	position: relative; z-index: 1;
}
.xn-page__hero p { color: var(--xn-muted); font-size: 1.1rem; position: relative; z-index: 1; }

.xn-page__body {
	padding: 4rem 0;
}
.xn-page__body .xn-prose {
	max-width: 740px;
	margin: 0 auto;
	color: rgba(255,255,255,0.85);
	font-size: 1.05rem;
	line-height: 1.85;
}
.xn-prose h2, .xn-prose h3 { margin: 2rem 0 1rem; color: #fff; }
.xn-prose p { margin-bottom: 1.25rem; }
.xn-prose a { color: var(--xn-gold); border-bottom: 1px solid currentColor; }
.xn-prose ul, .xn-prose ol { margin: 1rem 0 1.25rem 1.5rem; }
body.xn-rtl .xn-prose ul, body.xn-rtl .xn-prose ol { margin-left: 0; margin-right: 1.5rem; }
.xn-prose li { margin-bottom: 0.5rem; }
.xn-prose blockquote {
	border-left: 3px solid var(--xn-gold);
	padding: 0.5rem 0 0.5rem 1.5rem;
	margin: 2rem 0;
	font-style: italic;
	color: rgba(255,255,255,0.75);
}
body.xn-rtl .xn-prose blockquote { border-left: none; border-right: 3px solid var(--xn-gold); padding: 0.5rem 1.5rem 0.5rem 0; }
.xn-prose img { border-radius: var(--xn-radius); margin: 1.5rem 0; }

/* FAQ accordion */
.xn-faq__list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.xn-faq__item {
	background: var(--xn-glass);
	border: 1px solid var(--xn-line);
	border-radius: var(--xn-radius);
	overflow: hidden;
	transition: border-color var(--xn-dur);
}
.xn-faq__item.is-open { border-color: var(--xn-purple); }
.xn-faq__q {
	width: 100%;
	padding: 1.25rem 1.5rem;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: #fff;
	text-align: inherit;
}
.xn-faq__q-icon {
	width: 32px; height: 32px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--xn-glass);
	color: var(--xn-gold);
	flex-shrink: 0;
	transition: transform var(--xn-dur) var(--xn-ease);
}
.xn-faq__item.is-open .xn-faq__q-icon { transform: rotate(45deg); background: var(--xn-purple); color: #fff; }
.xn-faq__a {
	max-height: 0;
	overflow: hidden;
	transition: max-height var(--xn-dur-slow) var(--xn-ease);
}
.xn-faq__a-inner {
	padding: 0 1.5rem 1.5rem;
	color: rgba(255,255,255,0.75);
	line-height: 1.75;
}

/* Blog list */
.xn-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}
.xn-blog-card {
	background: var(--xn-dark-2);
	border: 1px solid var(--xn-line);
	border-radius: var(--xn-radius-lg);
	overflow: hidden;
	transition: all var(--xn-dur) var(--xn-ease);
}
.xn-blog-card:hover { transform: translateY(-4px); border-color: var(--xn-purple); }
.xn-blog-card__thumb {
	aspect-ratio: 4/3;
	overflow: hidden;
	background: var(--xn-dark-3);
}
.xn-blog-card__thumb img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform var(--xn-dur-slow) var(--xn-ease);
}
.xn-blog-card:hover .xn-blog-card__thumb img { transform: scale(1.06); }
.xn-blog-card__body { padding: 1.5rem; }
.xn-blog-card__date { font-size: 0.8rem; color: var(--xn-gold); margin-bottom: 0.5rem; letter-spacing: 0.05em; }
.xn-blog-card__title { font-size: 1.2rem; color: #fff; margin-bottom: 0.75rem; }
.xn-blog-card__excerpt { color: var(--xn-muted); font-size: 0.92rem; line-height: 1.6; }

/* 404 */
.xn-404 { padding: 8rem 0; text-align: center; min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.xn-404__num {
	font-size: clamp(7rem, 22vw, 16rem);
	font-weight: 900;
	font-family: var(--xn-font-display-en);
	line-height: 0.9;
	background: linear-gradient(135deg, var(--xn-purple), var(--xn-gold));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 1.5rem;
}

/* Single blog post */
.xn-single { padding-top: 130px; }
.xn-single__hero {
	padding: 4rem 0;
	text-align: center;
	border-bottom: 1px solid var(--xn-line);
}
.xn-single__meta {
	display: flex; align-items: center; justify-content: center; gap: 1.5rem;
	color: var(--xn-muted);
	font-size: 0.9rem;
	margin-bottom: 1rem;
}
.xn-single__featured {
	max-width: var(--xn-container);
	margin: 2rem auto 0;
	border-radius: var(--xn-radius-lg);
	overflow: hidden;
	aspect-ratio: 16/8;
}
.xn-single__featured img { width: 100%; height: 100%; object-fit: cover; }
.xn-single__body { padding: 4rem 0; }

/* -----------------------------------------------------------------------------
   21) RESPONSIVE
   ----------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.xn-services__grid,
	.xn-branches__grid,
	.xn-testimonials__track,
	.xn-blog-grid { grid-template-columns: repeat(2, 1fr); }
	.xn-benefits__grid { grid-template-columns: repeat(2, 1fr); }
	.xn-counters__grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
	.xn-trust__grid { grid-template-columns: repeat(2, 1fr); }
	.xn-footer__inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
	.xn-nav { display: none; }
	.xn-burger { display: flex; }
	.xn-hide-mobile { display: none !important; }
	.xn-only-mobile { display: inline-flex; }
	.xn-about__grid { grid-template-columns: 1fr; }
	.xn-services__grid,
	.xn-branches__grid,
	.xn-testimonials__track,
	.xn-blog-grid { grid-template-columns: 1fr; }
	.xn-benefits__grid { grid-template-columns: 1fr; }
	.xn-counters__grid { grid-template-columns: repeat(2, 1fr); }
	.xn-trust__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
	.xn-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
	.xn-footer__bottom { flex-direction: column; text-align: center; }
	.xn-hero { padding-top: 100px; }
	.xn-hero__ctas .xn-btn { width: 100%; justify-content: center; }
	.xn-hero__scroll { display: none; }
	.xn-cta-panel__buttons .xn-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
	.xn-counters__grid { grid-template-columns: 1fr; gap: 2rem; }
	.xn-fab__btn { width: 52px; height: 52px; }
	.xn-fab__btn svg { width: 24px; height: 24px; }
}

/* -----------------------------------------------------------------------------
   22) PRINT
   ----------------------------------------------------------------------------- */
@media print {
	.xn-header, .xn-footer, .xn-fab, .xn-progress, .xn-hero__bg, .xn-grain { display: none; }
	body { background: #fff; color: #000; }
	* { color: #000 !important; background: #fff !important; }
}

/* -----------------------------------------------------------------------------
   23) PREFERS-REDUCED-MOTION
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	[data-reveal] { opacity: 1 !important; transform: none !important; }

	/* EXCEPTION: hero trust marquee continues running — it's a brand banner, not motion-sickness territory */
	.xn-hero-trust__track {
		animation-duration: 28s !important;
		animation-iteration-count: infinite !important;
	}
}

/* -----------------------------------------------------------------------------
   23) Branches detailed (template-branches.php)
   ----------------------------------------------------------------------------- */
.xn-branches-detailed {
	display: grid;
	gap: 32px;
	margin-bottom: 80px;
}
.xn-branch-detailed {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 0;
	background: linear-gradient(180deg, var(--xn-dark-2), var(--xn-dark-3));
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 24px;
	overflow: hidden;
	transition: all 350ms cubic-bezier(.16,1,.3,1);
}
.xn-branch-detailed:hover { border-color: rgba(230, 200, 58, 0.25); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.xn-branch-detailed:nth-child(even) { grid-template-columns: 1fr 1.1fr; }
.xn-branch-detailed:nth-child(even) .xn-branch-detailed__map { order: 2; }

.xn-branch-detailed__map {
	position: relative;
	min-height: 320px;
	background: var(--xn-dark-3);
}
.xn-branch-detailed__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: 0;
	filter: grayscale(0.2) brightness(0.92);
	transition: filter 350ms ease;
}
.xn-branch-detailed:hover .xn-branch-detailed__map iframe { filter: none; }

.xn-branch-detailed__map-fallback {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	height: 100%; min-height: 320px;
	color: rgba(255,255,255,0.4);
	text-align: center; padding: 24px;
}
.xn-branch-detailed__map-fallback svg { width: 60px; height: 60px; margin-bottom: 12px; }

.xn-branch-detailed__info {
	padding: 40px;
	display: flex; flex-direction: column; gap: 14px;
	justify-content: center;
}
.xn-branch-detailed__name { font-size: 1.6rem; font-weight: 800; color: #fff; margin: 0; }
.xn-branch-detailed__city { font-size: 0.9rem; color: var(--xn-gold); font-weight: 700; margin: 0; }
.xn-branch-detailed__addr,
.xn-branch-detailed__hours {
	display: flex; align-items: center; gap: 8px;
	font-size: 0.95rem; color: rgba(255,255,255,0.7); margin: 0;
}
.xn-branch-detailed__hours svg, .xn-branch-detailed__addr svg { color: var(--xn-purple); flex-shrink: 0; }
.xn-branch-detailed__ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

@media (max-width: 768px) {
	.xn-branch-detailed,
	.xn-branch-detailed:nth-child(even) {
		grid-template-columns: 1fr;
	}
	.xn-branch-detailed:nth-child(even) .xn-branch-detailed__map { order: 0; }
	.xn-branch-detailed__info { padding: 24px; }
	.xn-branch-detailed__name { font-size: 1.3rem; }
}

/* -----------------------------------------------------------------------------
   24) Hero default image — handled in section 7 (no extra overrides needed)
   ----------------------------------------------------------------------------- */

/* Make hero text always readable over the photo */
.xn-hero__overlay {
	background:
		linear-gradient(180deg, rgba(14,19,32,0.4) 0%, rgba(14,19,32,0.55) 50%, rgba(14,19,32,0.92) 100%),
		linear-gradient(90deg, rgba(14,19,32,0.7) 0%, rgba(14,19,32,0.3) 50%, rgba(14,19,32,0.6) 100%);
}

/* Lang switcher globe + label refinement */
.xn-lang__globe { color: var(--xn-gold); flex-shrink: 0; }
.xn-lang { padding: 8px 13px; gap: 7px; }
.xn-lang__other { color: rgba(255,255,255,0.95); font-weight: 800; }

/* ============================================================================
   25) MOBILE PERFORMANCE OVERRIDES (fix scroll lag/stutter)
   ============================================================================ */
@media (max-width: 768px) {
	/* Hero beams: dramatic on desktop, simplified on mobile */
	.xn-hero__beams .xn-beam { filter: blur(40px) !important; opacity: 0.25 !important; }
	.xn-beam--3 { display: none; } /* Drop one extra beam on mobile */

	/* Grain: drop on mobile (animated noise is expensive) */
	.xn-grain { display: none !important; }

	/* Hero grid pattern: reduce */
	.xn-hero__grid { opacity: 0.4; }

	/* Hero image: cover but no parallax (parallax = repaint = jank on mobile) */
	.xn-hero__bg-img { transform: none !important; }

	/* All backdrop-filters except the panel: drop them */
	.xn-trust__item { backdrop-filter: none; -webkit-backdrop-filter: none; }
	.xn-lang, .xn-burger { backdrop-filter: none; -webkit-backdrop-filter: none; }

	/* Force GPU layer on hero so the image scrolls smoothly */
	.xn-hero__bg-img { will-change: auto; transform: translateZ(0); }
}

/* Disable parallax for any mobile (regardless of media query — extra safety) */
@media (max-width: 1024px) {
	[data-parallax] { transform: none !important; }
}

/* (Smooth-scroll rules consolidated at the top of the file) */

/* ============================================================================
   26) PAGE HERO (unified for all internal pages: about, services, branches, blog, faq)
   ============================================================================ */
.xn-page-hero {
	position: relative;
	padding: 140px 0 80px;
	overflow: hidden;
	background: linear-gradient(180deg, var(--xn-dark) 0%, var(--xn-dark-2) 100%);
	border-bottom: 1px solid rgba(255,255,255,0.05);
	margin-bottom: 0;
}
@media (max-width: 768px) {
	.xn-page-hero { padding: 110px 0 50px; }
}

.xn-page-hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}
.xn-page-hero__beam {
	position: absolute;
	width: 800px;
	height: 200px;
	filter: blur(80px);
	opacity: 0.4;
	border-radius: 50%;
}
.xn-page-hero__beam--1 {
	top: -50px;
	inset-inline-start: -100px;
	background: radial-gradient(ellipse at center, var(--xn-purple), transparent 70%);
}
.xn-page-hero__beam--2 {
	bottom: -100px;
	inset-inline-end: -150px;
	background: radial-gradient(ellipse at center, rgba(230, 200, 58, 0.4), transparent 70%);
}

.xn-page-hero__content {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
	padding: 0 var(--xn-gutter);
}

.xn-page-hero__title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0.5rem 0 1rem;
	background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.7) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.xn-page-hero__lead {
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	line-height: 1.7;
	color: rgba(255,255,255,0.75);
	margin: 0;
}

.xn-section--narrow {
	padding-top: 60px;
	padding-bottom: 80px;
}

/* ============================================================================
   27) VISION / MISSION / VALUES (about page cards)
   ============================================================================ */
.xn-vm__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 900px) {
	.xn-vm__grid { grid-template-columns: 1fr; }
}

.xn-vm__card {
	background: linear-gradient(180deg, var(--xn-dark-2), var(--xn-dark-3));
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 22px;
	padding: 36px 28px;
	text-align: center;
	transition: all 0.4s var(--xn-ease);
}
.xn-vm__card:hover {
	transform: translateY(-6px);
	border-color: rgba(230, 200, 58, 0.25);
	box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.xn-vm__icon {
	width: 64px; height: 64px;
	margin: 0 auto 20px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--xn-purple), var(--xn-purple-dark));
	color: #fff;
	box-shadow: 0 10px 30px rgba(124, 67, 166, 0.4);
}
.xn-vm__icon svg { width: 28px; height: 28px; }
.xn-vm__icon--gold {
	background: linear-gradient(135deg, var(--xn-gold), var(--xn-gold-dark));
	color: var(--xn-dark);
	box-shadow: 0 10px 30px rgba(230, 200, 58, 0.4);
}

.xn-vm__title {
	font-size: 1.4rem;
	font-weight: 800;
	color: #fff;
	margin: 0 0 12px;
}
.xn-vm__desc {
	color: rgba(255,255,255,0.7);
	line-height: 1.7;
	margin: 0;
}

/* ============================================================================
   28) PROSE (rich text content for pages)
   ============================================================================ */
.xn-prose {
	max-width: 760px;
	margin: 0 auto;
	color: rgba(255,255,255,0.85);
	font-size: 1.05rem;
	line-height: 1.85;
}
.xn-prose h2 { font-size: 1.8rem; margin: 2.5rem 0 1rem; color: #fff; font-weight: 800; }
.xn-prose h3 { font-size: 1.3rem; margin: 2rem 0 0.8rem; color: #fff; font-weight: 700; }
.xn-prose p  { margin: 0 0 1.25rem; }
.xn-prose ul, .xn-prose ol { padding-inline-start: 1.5rem; margin: 0 0 1.25rem; }
.xn-prose ul { list-style: disc; }
.xn-prose ol { list-style: decimal; }
.xn-prose li { margin-bottom: 0.5rem; }
.xn-prose a  { color: var(--xn-gold); text-decoration: underline; text-underline-offset: 3px; }
.xn-prose img { border-radius: 16px; margin: 1.5rem 0; }
.xn-prose blockquote {
	border-inline-start: 4px solid var(--xn-gold);
	padding-inline-start: 1.5rem;
	font-style: italic;
	color: #fff;
	margin: 1.5rem 0;
}

/* ============================================================================
   29) HERO TRUST MARQUEE — embedded inside hero, under the Book CTA.

   Behavior on load:
     1. All 4 badges are visible immediately (no fade, no transform).
     2. The marquee animation is in PAUSED state for ~1.2s so the user can
        register all the badges as a coherent group.
     3. Animation starts running smoothly from the natural position.

   This is achieved by:
     - opacity:1 + visibility:visible from frame 0
     - animation-play-state: paused initially
     - JS toggles a `.is-running` class after a short delay to start motion
       (with a CSS fallback that auto-starts after 1.2s if JS is missing)
   ============================================================================ */
.xn-hero-trust {
	width: 100%;
	max-width: 720px;
	margin: 56px auto 0;
	position: relative;
	opacity: 1 !important;
	visibility: visible !important;
}

.xn-hero-trust__viewport {
	overflow: hidden;
}

/* Mask only applies once animation kicks in, so badges aren't faded at edges initially */
@media (prefers-reduced-motion: no-preference) {
	.xn-hero-trust__viewport {
		mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
	}
}

.xn-hero-trust__track {
	display: inline-flex;
	gap: 10px;
	width: max-content;
	opacity: 1 !important;
	visibility: visible !important;
	transform: translate3d(0, 0, 0);
	animation: xn-hero-trust-loop 28s linear infinite;
	animation-play-state: paused; /* paused — JS sets .is-running after 1.2s */
	will-change: transform;
}

/* JS adds .is-running on the parent after 1.2s — see main.js */
.xn-hero-trust.is-running .xn-hero-trust__track {
	animation-play-state: running;
}

/* No-JS fallback: animation simply starts on page load (no pause) */
.no-js .xn-hero-trust__track { animation-play-state: running; }

@media (hover: hover) {
	.xn-hero-trust.is-running:hover .xn-hero-trust__track {
		animation-play-state: paused;
	}
}

@keyframes xn-hero-trust-loop {
	0%   { transform: translate3d(0, 0, 0); }
	100% { transform: translate3d(calc(-50% - 5px), 0, 0); }
}

/* RTL: use a SEPARATE keyframe instead of `animation-direction: reverse`.
   `reverse` combined with `play-state: paused` causes Safari to render the
   track at the LAST frame as the initial state — which moves badges 50% off
   screen, making them invisible until the animation starts. By using a
   forward-running keyframe with inverted values, the badges stay at
   translate(0,0) while paused. */
body.xn-rtl .xn-hero-trust__track {
	animation-direction: normal;
	animation-name: xn-hero-trust-loop-rtl;
}
@keyframes xn-hero-trust-loop-rtl {
	0%   { transform: translate3d(0, 0, 0); }
	100% { transform: translate3d(calc(50% + 5px), 0, 0); }
}

@media (max-width: 768px) {
	.xn-hero-trust { margin-top: 40px; }
}

/* Each pill */
.xn-hero-trust__item {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(14, 19, 32, 0.55);
	border: 1px solid rgba(230, 200, 58, 0.25);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow:
		0 2px 12px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.xn-hero-trust__icon {
	width: 22px; height: 22px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--xn-purple), var(--xn-purple-dark));
	color: var(--xn-gold);
	flex-shrink: 0;
}
.xn-hero-trust__icon svg { width: 12px; height: 12px; }

.xn-hero-trust__label {
	font-size: 0.78rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.92);
	white-space: nowrap;
	letter-spacing: 0.01em;
}

/* Mobile: even more compact */
@media (max-width: 640px) {
	.xn-hero-trust { margin-top: 28px; max-width: 100%; }
	.xn-hero-trust__track { gap: 8px; animation-duration: 22s; }
	.xn-hero-trust__item { padding: 6px 12px; gap: 6px; }
	.xn-hero-trust__icon { width: 20px; height: 20px; }
	.xn-hero-trust__icon svg { width: 11px; height: 11px; }
	.xn-hero-trust__label { font-size: 0.72rem; }
}

/* Drop heavy filter on mobile for smoother scroll */
@media (max-width: 768px) {
	.xn-hero-trust__item {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background: rgba(14, 19, 32, 0.75);
	}
}

/* ============================================================================
   30) SERVICE CARD WITH BACKGROUND IMAGE
   ============================================================================ */
.xn-service-card.has-bg {
	min-height: 360px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
.xn-service-card.has-bg .xn-service-card__inner {
	background: transparent;
	border: 0;
	position: relative;
	z-index: 2;
	height: auto;
	padding: 24px;
}
.xn-service-card__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	border-radius: inherit;
}
.xn-service-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--xn-ease);
}
.xn-service-card.has-bg:hover .xn-service-card__media img {
	transform: scale(1.08);
}
.xn-service-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(14, 19, 32, 0.2) 0%,
		rgba(14, 19, 32, 0.6) 50%,
		rgba(14, 19, 32, 0.95) 100%
	);
	transition: opacity 0.4s var(--xn-ease);
}
.xn-service-card.has-bg:hover .xn-service-card__overlay {
	background: linear-gradient(
		180deg,
		rgba(124, 67, 166, 0.25) 0%,
		rgba(14, 19, 32, 0.7) 50%,
		rgba(14, 19, 32, 0.97) 100%
	);
}

.xn-service-card.has-bg .xn-service-card__icon {
	width: 48px; height: 48px;
	background: rgba(230, 200, 58, 0.15);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(230, 200, 58, 0.4);
}
.xn-service-card.has-bg .xn-service-card__icon svg {
	width: 22px; height: 22px;
}
.xn-service-card.has-bg .xn-service-card__title {
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.xn-service-card.has-bg .xn-service-card__desc {
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
	.xn-service-card.has-bg { min-height: 280px; }
	.xn-service-card.has-bg .xn-service-card__media img { transform: none !important; }
}

/* ============================================================================
   31) HERO SAFETY — guarantee text always visible regardless of GSAP state
   ============================================================================ */
.xn-hero__eyebrow,
.xn-hero__title,
.xn-hero__subtitle,
.xn-hero__ctas {
	opacity: 1 !important;
	transform: none !important;
}

/* If they DO have data-reveal (legacy), still force visible after 1.5s via failsafe */
.xn-hero [data-reveal] { animation: xn-reveal-failsafe 0.6s 0.5s forwards; }

/* ============================================================================
   32) CONTACT SECTION (homepage block at #xn-contact)
   ============================================================================ */
.xn-contact-section {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, var(--xn-dark-2) 0%, var(--xn-dark) 100%);
}
.xn-contact-section__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse at 20% 30%, rgba(124,67,166,0.18), transparent 50%),
		radial-gradient(ellipse at 80% 70%, rgba(230,200,58,0.10), transparent 50%);
}

.xn-contact-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 48px;
	position: relative;
}
@media (max-width: 900px) {
	.xn-contact-cards { grid-template-columns: 1fr; gap: 16px; max-width: 480px; margin-left: auto; margin-right: auto; }
}

.xn-contact-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	padding: 36px 24px;
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
	border: 1px solid rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.9);
	transition: all 0.4s var(--xn-ease);
	overflow: hidden;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}
.xn-contact-card::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(135deg, rgba(124,67,166,0.15), transparent 70%);
	opacity: 0;
	transition: opacity 0.4s var(--xn-ease);
}
.xn-contact-card:hover {
	transform: translateY(-6px);
	border-color: rgba(230,200,58,0.4);
	box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.xn-contact-card:hover::before { opacity: 1; }

.xn-contact-card__icon {
	width: 64px; height: 64px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--xn-purple), #5a2e7c);
	color: var(--xn-gold);
	box-shadow: 0 8px 24px rgba(124,67,166,0.4);
	position: relative;
	z-index: 1;
	transition: transform 0.4s var(--xn-ease);
}
.xn-contact-card:hover .xn-contact-card__icon {
	transform: scale(1.08) rotate(-5deg);
}
.xn-contact-card__icon svg { width: 28px; height: 28px; }
.xn-contact-card__icon--wa {
	background: linear-gradient(135deg, #25D366, #128C7E);
	color: #fff;
	box-shadow: 0 8px 24px rgba(37,211,102,0.4);
}

.xn-contact-card__title {
	font-size: 1.15rem;
	font-weight: 800;
	color: #fff;
	margin: 0;
	position: relative;
	z-index: 1;
}
.xn-contact-card__value {
	font-size: 0.95rem;
	color: rgba(255,255,255,0.6);
	margin: 0;
	font-weight: 500;
	position: relative;
	z-index: 1;
}
.xn-contact-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(230,200,58,0.12);
	border: 1px solid rgba(230,200,58,0.3);
	color: var(--xn-gold);
	font-size: 0.82rem;
	font-weight: 700;
	transition: all 0.3s var(--xn-ease);
	position: relative;
	z-index: 1;
}
body.xn-rtl .xn-contact-card__cta svg { transform: scaleX(-1); }
.xn-contact-card:hover .xn-contact-card__cta {
	background: var(--xn-gold);
	color: var(--xn-dark);
}
.xn-contact-card__cta--wa {
	background: rgba(37,211,102,0.15);
	border-color: rgba(37,211,102,0.4);
	color: #25D366;
}
.xn-contact-card:hover .xn-contact-card__cta--wa {
	background: #25D366;
	color: #fff;
}

/* Featured card (WhatsApp) */
.xn-contact-card--featured {
	border-color: rgba(37,211,102,0.3);
	background: linear-gradient(180deg, rgba(37,211,102,0.06), rgba(255,255,255,0.01));
	transform: scale(1.02);
}
.xn-contact-card--featured:hover {
	border-color: rgba(37,211,102,0.6);
	transform: scale(1.02) translateY(-6px);
}

.xn-contact-card__badge {
	position: absolute;
	top: 14px;
	inset-inline-end: 14px;
	padding: 4px 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, #25D366, #128C7E);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	z-index: 2;
}

/* ============================================================================
   33) PRELOADER — HTML/CSS Speedometer Splash
   ============================================================================ */
.xn-preloader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: radial-gradient(ellipse at center, #131829 0%, #0a0e1a 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.6s ease, visibility 0.6s ease;
	overflow: hidden;
}
.xn-preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
/* Only lock scroll WHEN the preloader element actually exists in the DOM.
   This prevents stale `xn-preloader-active` body class from blocking scroll
   if the preloader was disabled mid-session or its JS failed silently. */
body.xn-preloader-active:has(#xn-preloader) { overflow: hidden; }
/* Fallback for browsers without :has() support — kept harmless: */
body.xn-preloader-active { overflow: hidden; }

.xn-preloader__bg { position: absolute; inset: 0; pointer-events: none; }
.xn-preloader__beam {
	position: absolute;
	width: 600px; height: 200px;
	filter: blur(80px);
	opacity: 0.4;
	border-radius: 50%;
}
.xn-preloader__beam--1 {
	top: 15%; left: -100px;
	background: radial-gradient(ellipse, var(--xn-purple), transparent 70%);
	animation: xn-pre-beam 4s ease-in-out infinite alternate;
}
.xn-preloader__beam--2 {
	bottom: 15%; right: -100px;
	background: radial-gradient(ellipse, rgba(230, 200, 58, 0.5), transparent 70%);
	animation: xn-pre-beam 4s ease-in-out 1s infinite alternate;
}
@keyframes xn-pre-beam {
	from { opacity: 0.25; transform: translateX(-30px); }
	to   { opacity: 0.55; transform: translateX(30px); }
}

.xn-preloader__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding: 0 24px;
	width: 100%;
	max-width: 360px;
}

.xn-preloader__logo {
	opacity: 0;
	animation: xn-pre-fade-in 0.6s ease-out 0.1s forwards;
	display: flex;
	align-items: center;
	justify-content: center;
}
.xn-preloader__logo img,
.xn-preloader__logo svg { max-width: 200px; display: block; }
@keyframes xn-pre-fade-in {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---- Speedometer (HTML/CSS) ---- */
.xn-speedo {
	position: relative;
	width: 240px;
	height: 240px;
	max-width: 80vw;
	max-height: 80vw;
	opacity: 0;
	animation: xn-pre-fade-in 0.6s ease-out 0.3s forwards;
}

/* Outer bezel ring */
.xn-speedo__bezel {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background:
		radial-gradient(circle at 30% 30%, rgba(255,255,255,0.06), transparent 50%),
		linear-gradient(135deg, #2a2f42, #11172a);
	box-shadow:
		inset 0 0 20px rgba(0,0,0,0.6),
		0 8px 30px rgba(124, 67, 166, 0.25);
}

/* Inner glass face */
.xn-speedo__face {
	position: absolute;
	inset: 8px;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 30%, #1a1f30, #0a0e1a);
	border: 1px solid rgba(255,255,255,0.04);
}

/* Conic-gradient progress arc.
   Conic gradient runs from -135deg (start) to +135deg (end) = 270deg total.
   We use --pct (0-100) to control how much of the gradient is colored. */
.xn-speedo__arc {
	position: absolute;
	inset: 6px;
	border-radius: 50%;
	background: conic-gradient(
		from 225deg,
		var(--xn-purple) 0%,
		#b86fdb calc(var(--pct, 0) * 1.35%),
		var(--xn-gold) calc(var(--pct, 0) * 2.7%),
		rgba(255,255,255,0.06) calc(var(--pct, 0) * 2.7%),
		rgba(255,255,255,0.06) 75%,
		transparent 75%
	);
	mask: radial-gradient(circle, transparent 78px, #000 80px, #000 95px, transparent 96px);
	-webkit-mask: radial-gradient(circle, transparent 78px, #000 80px, #000 95px, transparent 96px);
	transition: background 0.15s linear;
}

/* Tick marks container */
.xn-speedo__ticks {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.xn-speedo__tick {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 2px;
	height: 8px;
	background: rgba(255,255,255,0.45);
	border-radius: 1px;
	transform-origin: 50% 50%;
}
.xn-speedo__tick.is-high { background: var(--xn-gold); height: 10px; width: 2.5px; }

.xn-speedo__num {
	position: absolute;
	top: 50%;
	left: 50%;
	font-family: 'Cairo', sans-serif;
	font-size: 9px;
	font-weight: 700;
	color: rgba(255,255,255,0.5);
	pointer-events: none;
}
.xn-speedo__num.is-high { color: var(--xn-gold); }

/* Needle */
.xn-speedo__needle {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 4px;
	height: 80px;
	background: linear-gradient(to top, var(--xn-gold), #f4d955);
	border-radius: 2px;
	transform-origin: 50% 100%;
	transform: translate(-50%, -100%) rotate(-135deg);
	transition: transform 0.15s ease-out;
	box-shadow: 0 0 8px rgba(230, 200, 58, 0.6);
	z-index: 3;
}
.xn-speedo__needle::before {
	content: "";
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 12px;
	height: 18px;
	background: var(--xn-gold);
	border-radius: 2px;
}

/* Center hub */
.xn-speedo__hub {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--xn-gold) 0%, var(--xn-gold) 30%, #1a1f30 35%);
	border: 2px solid rgba(255,255,255,0.1);
	transform: translate(-50%, -50%);
	z-index: 4;
	box-shadow: 0 0 0 4px rgba(0,0,0,0.4);
}

/* Digital readout box */
.xn-speedo__readout {
	position: absolute;
	bottom: 50px;
	left: 50%;
	transform: translateX(-50%);
	min-width: 70px;
	padding: 6px 10px;
	background: rgba(0,0,0,0.6);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 6px;
	color: var(--xn-gold);
	font-family: 'Cairo', sans-serif;
	font-size: 18px;
	font-weight: 900;
	text-align: center;
	font-variant-numeric: tabular-nums;
	z-index: 5;
}
.xn-speedo__num-suf { font-size: 0.75em; margin-inline-start: 2px; }

.xn-speedo__label {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	font-family: 'Cairo', sans-serif;
	font-size: 9px;
	font-weight: 700;
	color: rgba(255,255,255,0.35);
	letter-spacing: 4px;
	z-index: 5;
}

/* Bottom progress bar */
.xn-preloader__bar {
	width: 100%;
	max-width: 200px;
	height: 3px;
	background: rgba(255,255,255,0.08);
	border-radius: 999px;
	overflow: hidden;
	margin-top: 4px;
}
.xn-preloader__fill {
	display: block;
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--xn-purple), var(--xn-gold));
	border-radius: 999px;
	box-shadow: 0 0 8px rgba(230, 200, 58, 0.5);
	transition: width 0.15s ease-out;
}

@media (max-width: 480px) {
	.xn-speedo { width: 220px; height: 220px; }
}

/* ============================================================================
   34) HERO BOOK BUTTON — no shadow, animated shimmer/glow sweep
   ============================================================================ */
	box-shadow: none !important;
	background: linear-gradient(135deg, var(--xn-gold) 0%, #f4d955 50%, var(--xn-gold) 100%);
	background-size: 200% 200%;
	border: 1px solid rgba(230, 200, 58, 0.4);
	position: relative;
	overflow: hidden;
	isolation: isolate; /* So shimmer is clipped by border-radius */
}

/* The traveling shimmer highlight */
.xn-hero__ctas .xn-btn--gold::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 60%;
	height: 100%;
	background: linear-gradient(
		110deg,
		transparent 0%,
		transparent 30%,
		rgba(255, 255, 255, 0.55) 50%,
		transparent 70%,
		transparent 100%
	);
	transform: skewX(-25deg);
	animation: xn-shine 3s ease-in-out infinite;
	z-index: 1;
	pointer-events: none;
}
@keyframes xn-shine {
	0%   { left: -100%; }
	60%  { left: 200%; }
	100% { left: 200%; } /* Hold then loop */
}

/* Soft pulsing glow ring (no harsh box-shadow) */
.xn-hero__ctas .xn-btn--gold::after {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(230, 200, 58, 0.3), rgba(230, 200, 58, 0.05));
	z-index: -1;
	opacity: 0;
	animation: xn-glow-pulse 2.5s ease-in-out infinite;
	filter: blur(6px);
}
@keyframes xn-glow-pulse {
	0%, 100% { opacity: 0.2; transform: scale(1); }
	50%      { opacity: 0.6; transform: scale(1.04); }
}

.xn-hero__ctas .xn-btn--gold:hover {
	transform: translateY(-2px);
	box-shadow: none !important;
	background-position: 100% 0;
}
.xn-hero__ctas .xn-btn--gold > * { position: relative; z-index: 2; }

/* ============================================================================
   35) CTA PANEL — Background image (constrained to card, not larger than panel)
   ============================================================================ */
.xn-cta-panel {
	position: relative;
	overflow: hidden; /* clip the image to the card's rounded corners */
	isolation: isolate;
}
.xn-cta-panel__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	border-radius: inherit;
}
.xn-cta-panel__media img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* fills the card without distortion */
	object-position: center center;
	display: block;
	max-width: 100%;
	max-height: 100%;
}
/* When a custom image is set, raise content above and add a darker overlay for legibility */
.xn-cta-panel.has-bg .xn-cta-panel__bg {
	background:
		linear-gradient(135deg, rgba(14,19,32,0.7), rgba(14,19,32,0.85)),
		radial-gradient(ellipse at 30% 30%, rgba(124,67,166,0.6), transparent 50%);
}
.xn-cta-panel.has-bg .xn-cta-panel__content { position: relative; z-index: 2; }

/* ============================================================================
   36) BLOG LISTING PAGE — cinematic dark cards + pagination
   ============================================================================ */

/* Page hero variant for blog */
.xn-page-hero--blog {
	position: relative;
	padding: 140px 0 80px;
	text-align: center;
	background: radial-gradient(ellipse at top, var(--xn-purple-deep) 0%, var(--xn-dark) 60%);
	overflow: hidden;
}
.xn-page-hero--blog .xn-page-hero__bg {
	position: absolute; inset: 0;
	pointer-events: none;
}
.xn-page-hero--blog .xn-page-hero__beam {
	position: absolute;
	top: -50%; left: 50%;
	width: 80%; height: 200%;
	transform: translateX(-50%) rotate(15deg);
	background: radial-gradient(ellipse, rgba(124, 67, 166, 0.4), transparent 50%);
	filter: blur(60px);
}
.xn-page-hero--blog .xn-eyebrow { justify-content: center; margin-bottom: 12px; }
.xn-page-hero__title {
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	font-weight: 900;
	color: #fff;
	margin: 0 0 16px;
	letter-spacing: -0.02em;
}
.xn-page-hero__lead {
	max-width: 580px;
	margin: 0 auto;
	color: rgba(255,255,255,0.7);
	font-size: 1.05rem;
	line-height: 1.7;
}

/* Blog section */
.xn-blog-section {
	background: linear-gradient(180deg, var(--xn-dark) 0%, var(--xn-dark-2) 100%);
	padding: 80px 0 100px;
}

/* Cards grid */
.xn-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
@media (max-width: 980px) {
	.xn-blog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
	.xn-blog-grid { grid-template-columns: 1fr; }
}

.xn-blog-card {
	border-radius: 20px;
	overflow: hidden;
	background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
	border: 1px solid rgba(255,255,255,0.06);
	transition: all 0.4s var(--xn-ease);
}
.xn-blog-card:hover {
	transform: translateY(-4px);
	border-color: rgba(230, 200, 58, 0.25);
	box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.xn-blog-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.xn-blog-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(135deg, var(--xn-purple-deep), var(--xn-dark));
}
.xn-blog-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s var(--xn-ease);
}
.xn-blog-card:hover .xn-blog-card__media img {
	transform: scale(1.05);
}
.xn-blog-card__placeholder {
	width: 100%; height: 100%;
	display: grid; place-items: center;
	color: var(--xn-purple);
	opacity: 0.4;
}
.xn-blog-card__placeholder svg { width: 60%; max-width: 100px; }

.xn-blog-card__cat {
	position: absolute;
	top: 14px;
	inset-inline-start: 14px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(0,0,0,0.7);
	backdrop-filter: blur(10px);
	color: var(--xn-gold);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	border: 1px solid rgba(230,200,58,0.3);
}

.xn-blog-card__body {
	padding: 22px 22px 24px;
}
.xn-blog-card__meta {
	display: flex; align-items: center; gap: 8px;
	color: rgba(255,255,255,0.5);
	font-size: 0.78rem;
	margin-bottom: 10px;
}
.xn-blog-card__meta svg { color: var(--xn-gold); flex-shrink: 0; }
.xn-blog-card__dot { color: rgba(255,255,255,0.3); }

.xn-blog-card__title {
	font-size: 1.15rem;
	font-weight: 800;
	color: #fff;
	margin: 0 0 10px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.3s;
}
.xn-blog-card:hover .xn-blog-card__title { color: var(--xn-gold); }

.xn-blog-card__excerpt {
	font-size: 0.9rem;
	color: rgba(255,255,255,0.65);
	line-height: 1.6;
	margin: 0 0 14px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.xn-blog-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--xn-gold);
	font-size: 0.85rem;
	font-weight: 700;
	transition: gap 0.3s;
}
body.xn-rtl .xn-blog-card__more svg { transform: scaleX(-1); }
.xn-blog-card:hover .xn-blog-card__more { gap: 10px; }

/* ---- Pagination ---- */
.xn-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 56px;
}
.xn-pagination__item a,
.xn-pagination__item span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: 12px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.7);
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
	transition: all 0.3s var(--xn-ease);
}
.xn-pagination__item a:hover {
	background: rgba(230, 200, 58, 0.1);
	border-color: rgba(230, 200, 58, 0.4);
	color: var(--xn-gold);
	transform: translateY(-2px);
}
.xn-pagination__item .current {
	background: linear-gradient(135deg, var(--xn-purple), #5a2e7c);
	border-color: var(--xn-purple);
	color: #fff;
	box-shadow: 0 6px 20px rgba(124, 67, 166, 0.4);
}

/* Empty state */
.xn-empty {
	text-align: center;
	padding: 80px 24px;
	color: rgba(255,255,255,0.6);
}
.xn-empty__icon {
	width: 80px; height: 80px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	display: grid; place-items: center;
	color: var(--xn-gold);
}
.xn-empty__icon svg { width: 36px; height: 36px; }
.xn-empty__title {
	color: #fff;
	font-size: 1.4rem;
	font-weight: 800;
	margin: 0 0 8px;
}
.xn-empty__lead { font-size: 0.95rem; max-width: 360px; margin: 0 auto; }

/* ============================================================================
   37) FOOTER CREDIT LINK STYLING (Ahmed Elshamy → byahmedelshamy.com)
   ============================================================================ */
.xn-credit__link {
	color: var(--xn-gold);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: all 0.3s var(--xn-ease);
	padding: 0 2px;
}
.xn-credit__link:hover {
	color: #f4d955;
	border-bottom-color: var(--xn-gold);
	text-shadow: 0 0 12px rgba(230, 200, 58, 0.5);
}

/* ============================================================================
   38) BREADCRUMBS (SEO + UX)
   ============================================================================ */
.xn-breadcrumbs {
	padding: 16px 0 8px;
	font-size: 0.85rem;
	color: rgba(255,255,255,0.5);
}
.xn-breadcrumbs ol {
	list-style: none;
	padding: 0; margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.xn-breadcrumbs li {
	display: flex;
	align-items: center;
	gap: 8px;
}
.xn-breadcrumbs li:not(:last-child)::after {
	content: '›';
	color: rgba(255,255,255,0.3);
	margin-inline-start: 4px;
}
body.xn-rtl .xn-breadcrumbs li:not(:last-child)::after {
	content: '‹';
}
.xn-breadcrumbs a {
	color: rgba(255,255,255,0.6);
	text-decoration: none;
	transition: color 0.2s;
}
.xn-breadcrumbs a:hover { color: var(--xn-gold); }
.xn-breadcrumbs .is-current span {
	color: var(--xn-gold);
	font-weight: 600;
}

/* ============================================================================
   39) MOBILE OVERFLOW HARDENING (iOS-Safari friendly)
   Targets only inner elements — html and body remain untouched on mobile
   to preserve momentum scrolling.
   ============================================================================ */
@media (max-width: 768px) {
	/* Anything fixed-positioned must stay within viewport */
	.xn-fab,
	.xn-progress { max-width: 100vw; }

	/* Marquee on mobile: enforce strict container width to prevent horizontal page scroll */
	.xn-hero-trust {
		max-width: calc(100vw - 32px);
		overflow: hidden;
	}
	.xn-hero-trust__viewport {
		max-width: 100%;
		overflow: hidden;
	}

	/* Container respects viewport width minus gutter */
	.xn-container {
		max-width: 100%;
		padding-left: 16px;
		padding-right: 16px;
	}

	/* Cards/grids should not push content out */
	.xn-services__grid,
	.xn-benefits__grid,
	.xn-counters__grid,
	.xn-blog-grid,
	.xn-contact-cards { max-width: 100%; }

	/* Images and media should never exceed parent width */
	img, video, iframe, svg, picture { max-width: 100%; height: auto; }

	/* Hero text shouldn't push out due to extreme letter-spacing */
	.xn-hero__title { word-break: break-word; overflow-wrap: break-word; }
}

/* For very small phones (< 380px) */
@media (max-width: 380px) {
	.xn-container { padding-left: 12px; padding-right: 12px; }
	.xn-hero { padding-left: 12px; padding-right: 12px; }
}

/* ============================================================================
   40) PANEL LOGO — explicit sizing rules so Customizer height always wins
   ============================================================================ */
.xn-panel__logo img,
.xn-panel__logo svg {
	display: block;
	width: auto !important;
	max-width: 180px !important;
	object-fit: contain !important;
}

/* ============================================================================
   41) BRANCH CARDS — background photo support
   ============================================================================ */

/* ---- Detailed page (template-branches.php) ---- */
.xn-branch-detailed {
	position: relative;
	isolation: isolate;
}
.xn-branch-detailed.has-bg {
	overflow: hidden; /* clip the photo to the rounded card */
}
.xn-branch-detailed__photo {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	border-radius: inherit;
}
.xn-branch-detailed__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	max-width: 100%;
	max-height: 100%;
}
.xn-branch-detailed__photo-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(14,19,32,0.82) 0%, rgba(14,19,32,0.68) 50%, rgba(14,19,32,0.85) 100%),
		radial-gradient(ellipse at 30% 30%, rgba(124,67,166,0.35), transparent 50%);
}
.xn-branch-detailed.has-bg > .xn-branch-detailed__map,
.xn-branch-detailed.has-bg > .xn-branch-detailed__info {
	position: relative;
	z-index: 1;
}
/* When a photo is present, lighten the map background so iframe blends */
.xn-branch-detailed.has-bg .xn-branch-detailed__map {
	background: rgba(0,0,0,0.25);
}

/* ---- Homepage preview cards (branches-preview.php) ---- */
.xn-branch-card {
	position: relative;
	isolation: isolate;
}
.xn-branch-card.has-bg {
	overflow: hidden;
}
.xn-branch-card__photo {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	border-radius: inherit;
}
.xn-branch-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}
.xn-branch-card__photo-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(14,19,32,0.55) 0%, rgba(14,19,32,0.92) 100%),
		radial-gradient(circle at 30% 20%, rgba(124,67,166,0.3), transparent 50%);
}
.xn-branch-card.has-bg > *:not(.xn-branch-card__photo) {
	position: relative;
	z-index: 1;
}
/* ============================================================================
   42) SPEEDOMETER STAT CARDS (v3 — clean SVG-based gauges)
   ============================================================================ */
.xn-speedo-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
@media (max-width: 980px) { .xn-speedo-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }

.xn-speedo-card {
	position: relative;
	padding: 24px 18px 24px;
	border-radius: 22px;
	background:
		radial-gradient(ellipse at center top, rgba(124,67,166,0.18), transparent 65%),
		linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
	border: 1px solid rgba(255,255,255,0.07);
	transition: all 0.4s var(--xn-ease);
	overflow: hidden;
	text-align: center;
}
.xn-speedo-card::before {
	content: "";
	position: absolute;
	top: 0; left: 50%;
	width: 60%;
	height: 1px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, transparent, rgba(230,200,58,0.5), transparent);
}
.xn-speedo-card:hover {
	transform: translateY(-4px);
	border-color: rgba(230,200,58,0.3);
	box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}

.xn-speedo-card__dial {
	position: relative;
	width: 100%;
	max-width: 180px;
	margin: 0 auto;
	aspect-ratio: 1 / 1;
}
.xn-speedo-card__dial svg {
	width: 100%;
	height: 100%;
	display: block;
	filter: drop-shadow(0 4px 12px rgba(124,67,166,0.2));
}

/* Animated fill arc */
.xn-speedo-card__fill {
	transition: stroke-dashoffset 1.6s cubic-bezier(.16,1,.3,1);
}

/* Animated needle */
.xn-speedo-card__needle {
	transition: transform 1.6s cubic-bezier(.16,1,.3,1);
	filter: drop-shadow(0 0 6px rgba(230, 200, 58, 0.6));
}

/* Number readout below the dial */
.xn-speedo-card__readout {
	margin-top: 14px;
	font-family: 'Cairo', sans-serif;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 900;
	line-height: 1;
	color: #fff;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
}
.xn-speedo-card__val { color: #fff; min-width: 1ch; }
.xn-speedo-card__suf {
	color: var(--xn-gold);
	font-size: 0.65em;
	font-weight: 800;
	margin-inline-start: 2px;
}

.xn-speedo-card__label {
	margin-top: 6px;
	font-size: 0.92rem;
	color: rgba(255,255,255,0.75);
	font-weight: 600;
}

@media (max-width: 480px) {
	.xn-speedo-card { padding: 20px 14px; }
	.xn-speedo-card__dial { max-width: 150px; }
	.xn-speedo-card__readout { font-size: 1.5rem; margin-top: 10px; }
	.xn-speedo-card__label { font-size: 0.85rem; }
}


.xn-dock {
	position: fixed;
	bottom: 18px;
	left: 0;
	right: 0;
	/*
	 * z-index 90: kept BELOW the mobile panel (z-index 120) so when the panel
	 * is open, its content (especially the social icons row at the bottom)
	 * remains fully clickable. Previously this was 998 which floated on top
	 * of the panel and intercepted clicks on social icons → looked like clicks
	 * were activating the Call/WhatsApp buttons by mistake.
	 */
	z-index: 90;
	pointer-events: none;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 16px;
	width: 100%;
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.xn-dock__inner {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px;
	border-radius: 999px;
	background: rgba(20, 24, 38, 0.55);
	backdrop-filter: blur(20px) saturate(150%);
	-webkit-backdrop-filter: blur(20px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow:
		0 12px 40px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	pointer-events: auto;
	opacity: 0;
	transform: translateY(30px);
	animation: xn-dock-rise 0.6s cubic-bezier(.16,1,.3,1) 0.4s forwards;
	max-width: 100%;
}
@keyframes xn-dock-rise {
	to { opacity: 1; transform: translateY(0); }
}

.xn-dock__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 999px;
	color: #fff;
	font-family: 'Cairo', sans-serif;
	font-weight: 700;
	font-size: 0.88rem;
	text-decoration: none;
	transition: all 0.3s var(--xn-ease);
	white-space: nowrap;
}
.xn-dock__btn--call {
	background: linear-gradient(135deg, var(--xn-purple) 0%, #5a2e7c 100%);
}
.xn-dock__btn--call:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(124, 67, 166, 0.5);
	color: #fff;
}
.xn-dock__btn--wa {
	background: linear-gradient(135deg, #25D366 0%, #1ba851 100%);
}
.xn-dock__btn--wa:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
	color: #fff;
}

.xn-dock__icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
}
.xn-dock__icon svg { width: 100%; height: 100%; }
.xn-dock__label { letter-spacing: 0.01em; }

.xn-dock__divider {
	width: 1px;
	height: 22px;
	background: rgba(255, 255, 255, 0.15);
	flex-shrink: 0;
}

@media (max-width: 480px) {
	.xn-dock { bottom: 14px; }
	.xn-dock__btn { padding: 10px 14px; font-size: 0.82rem; gap: 6px; }
	.xn-dock__icon { width: 16px; height: 16px; }
}

/*
 * Hide dock entirely when the mobile menu panel is open.
 * Uses `body.xn-panel-open` because main.js sets that class on the body when
 * the user opens the panel. Previously used a sibling selector that didn't
 * match the actual DOM structure (panel and dock have different parents).
 */
body.xn-panel-open .xn-dock {
	opacity: 0;
	pointer-events: none;
	transform: translateY(20px);
	visibility: hidden;
}
@media print { .xn-dock { display: none !important; } }

/* ============================================================================
   44) SINGLE SERVICE PAGE
   ============================================================================ */
.xn-page-hero--service {
	position: relative;
	padding: 160px 0 100px;
	overflow: hidden;
	background: linear-gradient(180deg, var(--xn-dark-2) 0%, var(--xn-dark) 100%);
}
.xn-page-hero--service.has-bg .xn-page-hero__bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.35;
}
.xn-page-hero--service .xn-page-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(14,19,32,0.72), rgba(14,19,32,0.92)),
		radial-gradient(ellipse at 30% 30%, rgba(124,67,166,0.5), transparent 60%);
}
.xn-page-hero--service .xn-page-hero__content {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 760px;
	margin: 0 auto;
}

.xn-service-body {
	padding: 80px 0 100px;
	background: var(--xn-dark);
}
.xn-service-body__container {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 50px;
	align-items: start;
}
@media (max-width: 980px) {
	.xn-service-body__container {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

.xn-service-content {
	color: rgba(255,255,255,0.85);
	font-size: 1.05rem;
	line-height: 1.85;
}
.xn-service-content h2,
.xn-service-content h3 {
	color: #fff;
	margin-top: 1.6em;
	margin-bottom: 0.6em;
	font-weight: 800;
}
.xn-service-content h2 { font-size: 1.6rem; }
.xn-service-content h3 { font-size: 1.25rem; }
.xn-service-content p { margin-bottom: 1.2em; }
.xn-service-content ul, .xn-service-content ol {
	margin: 1.2em 0;
	padding-inline-start: 24px;
}
.xn-service-content li { margin-bottom: 0.6em; }
.xn-service-content img {
	border-radius: 16px;
	margin: 1.5em 0;
}
.xn-service-content__empty {
	font-style: italic;
	color: rgba(255,255,255,0.55);
}

/* Sidebar */
.xn-service-aside {
	position: sticky;
	top: 100px;
}
@media (max-width: 980px) {
	.xn-service-aside { position: static; }
}
.xn-service-aside__card {
	padding: 32px 28px;
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(124,67,166,0.12), rgba(255,255,255,0.02));
	border: 1px solid rgba(230, 200, 58, 0.15);
	box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.xn-service-aside__title {
	font-size: 1.3rem;
	font-weight: 800;
	color: #fff;
	margin: 0 0 10px;
}
.xn-service-aside__lead {
	color: rgba(255,255,255,0.7);
	font-size: 0.95rem;
	line-height: 1.7;
	margin: 0 0 22px;
}
.xn-service-aside__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 24px;
}
.xn-service-aside__actions .xn-btn {
	width: 100%;
	justify-content: center;
}
.xn-service-aside__features {
	border-top: 1px solid rgba(255,255,255,0.08);
	padding-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.xn-service-aside__feature {
	display: flex;
	align-items: center;
	gap: 12px;
	color: rgba(255,255,255,0.8);
	font-size: 0.88rem;
}
.xn-service-aside__feature svg {
	width: 18px;
	height: 18px;
	color: var(--xn-gold);
	flex-shrink: 0;
}

/* ============================================================================
   45) ABOUT PAGE
   ============================================================================ */
.xn-about-story {
	padding: 80px 0 100px;
	background: var(--xn-dark);
}
.xn-about-story__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}
@media (max-width: 900px) {
	.xn-about-story__grid { grid-template-columns: 1fr; gap: 40px; }
}

.xn-about-story__media-frame {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	aspect-ratio: 4/5;
	background: var(--xn-dark-2);
	border: 1px solid rgba(255,255,255,0.08);
}
.xn-about-story__media-frame img {
	width: 100%; height: 100%; object-fit: cover;
}
.xn-about-story__placeholder { width: 100%; height: 100%; display: grid; place-items: center; }
.xn-about-story__placeholder svg { width: 80%; }
.xn-about-story__badge {
	position: absolute;
	bottom: 20px;
	inset-inline-start: 20px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(0,0,0,0.7);
	backdrop-filter: blur(10px);
	color: var(--xn-gold);
	font-weight: 700;
	font-size: 0.88rem;
	border: 1px solid rgba(230,200,58,0.3);
}
.xn-about-story__badge svg { width: 16px; height: 16px; }

.xn-about-story__content .xn-eyebrow { margin-bottom: 12px; }
.xn-about-story__content p {
	color: rgba(255,255,255,0.7);
	font-size: 1rem;
	line-height: 1.85;
	margin-bottom: 1em;
}
.xn-about-story__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid rgba(255,255,255,0.08);
}
.xn-about-story__stats > div { text-align: center; }
.xn-about-story__stats strong {
	display: block;
	font-size: 2rem;
	font-weight: 900;
	color: var(--xn-gold);
	line-height: 1;
	margin-bottom: 4px;
}
.xn-about-story__stats span {
	font-size: 0.85rem;
	color: rgba(255,255,255,0.6);
}

/* 3 Pillars */
.xn-about-pillars {
	padding: 80px 0;
	background: linear-gradient(180deg, var(--xn-dark) 0%, var(--xn-dark-2) 100%);
}
.xn-pillars-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 48px;
}
@media (max-width: 900px) { .xn-pillars-grid { grid-template-columns: 1fr; } }

.xn-pillar {
	padding: 36px 28px;
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
	border: 1px solid rgba(255,255,255,0.06);
	text-align: center;
	transition: all 0.4s var(--xn-ease);
}
.xn-pillar:hover {
	transform: translateY(-6px);
	border-color: rgba(230, 200, 58, 0.25);
	box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.xn-pillar--featured {
	background:
		linear-gradient(180deg, rgba(124, 67, 166, 0.15), rgba(255,255,255,0.02)),
		var(--xn-dark);
	border-color: rgba(124, 67, 166, 0.3);
}
.xn-pillar__icon {
	width: 64px; height: 64px;
	margin: 0 auto 18px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--xn-purple), #5a2e7c);
	color: var(--xn-gold);
	box-shadow: 0 8px 24px rgba(124, 67, 166, 0.4);
}
.xn-pillar__icon svg { width: 28px; height: 28px; }
.xn-pillar__title {
	font-size: 1.3rem;
	font-weight: 800;
	color: #fff;
	margin: 0 0 12px;
}
.xn-pillar__desc {
	color: rgba(255,255,255,0.7);
	font-size: 0.95rem;
	line-height: 1.7;
}

/* Why us */
.xn-about-why {
	padding: 80px 0;
	background: var(--xn-dark);
}
.xn-why-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 48px;
}
@media (max-width: 900px) { .xn-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .xn-why-grid { grid-template-columns: 1fr; } }

.xn-why-item {
	display: flex;
	gap: 14px;
	padding: 22px;
	border-radius: 16px;
	background: rgba(255,255,255,0.03);
	border: 1px solid rgba(255,255,255,0.06);
}
.xn-why-item__check {
	width: 36px; height: 36px;
	flex-shrink: 0;
	display: grid; place-items: center;
	border-radius: 50%;
	background: rgba(230, 200, 58, 0.1);
	color: var(--xn-gold);
	border: 1px solid rgba(230, 200, 58, 0.3);
}
.xn-why-item__check svg { width: 18px; height: 18px; }
.xn-why-item__title {
	font-size: 1rem;
	font-weight: 800;
	color: #fff;
	margin: 0 0 6px;
}
.xn-why-item__desc {
	color: rgba(255,255,255,0.65);
	font-size: 0.88rem;
	line-height: 1.6;
}

/* Final CTA */
.xn-about-cta {
	padding: 60px 0 100px;
	background: var(--xn-dark);
}
.xn-about-cta__panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 50px;
	border-radius: 24px;
	background:
		linear-gradient(135deg, rgba(124, 67, 166, 0.5), rgba(14, 19, 32, 0.95)),
		linear-gradient(180deg, var(--xn-purple-deep), var(--xn-dark));
	border: 1px solid rgba(230, 200, 58, 0.2);
	flex-wrap: wrap;
}
.xn-about-cta__content { flex: 1; min-width: 280px; }
.xn-about-cta__content p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-top: 8px; }
.xn-about-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }


/* ============================================================================
   46) FAQ PAGE
   ============================================================================ */
.xn-faq-warranty {
	padding: 50px 0 30px;
	background: linear-gradient(180deg, var(--xn-dark) 0%, var(--xn-dark-2) 100%);
}
.xn-warranty-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
@media (max-width: 700px) { .xn-warranty-grid { grid-template-columns: 1fr; } }

.xn-warranty-card {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 22px 26px;
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(124, 67, 166, 0.15), rgba(255,255,255,0.02));
	border: 1px solid rgba(230, 200, 58, 0.15);
}
.xn-warranty-card__icon {
	width: 48px; height: 48px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: rgba(230, 200, 58, 0.12);
	color: var(--xn-gold);
	flex-shrink: 0;
}
.xn-warranty-card__icon svg { width: 22px; height: 22px; }
.xn-warranty-card__num {
	font-size: 1.7rem;
	font-weight: 900;
	color: var(--xn-gold);
	line-height: 1;
	margin-inline-end: 4px;
}
.xn-warranty-card__label {
	color: rgba(255,255,255,0.75);
	font-weight: 600;
	font-size: 0.9rem;
}

.xn-faq-section {
	padding: 70px 0 100px;
	background: var(--xn-dark);
}
.xn-faq-section__container {
	max-width: 880px;
}
.xn-faq-section__head {
	text-align: center;
	margin-bottom: 44px;
}

.xn-faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.xn-faq-item {
	border-radius: 16px;
	background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
	border: 1px solid rgba(255,255,255,0.07);
	overflow: hidden;
	transition: all 0.3s var(--xn-ease);
}
.xn-faq-item:hover { border-color: rgba(230, 200, 58, 0.2); }
.xn-faq-item[open] {
	background: linear-gradient(180deg, rgba(124,67,166,0.10), rgba(255,255,255,0.01));
	border-color: rgba(230, 200, 58, 0.3);
}

.xn-faq-item__q {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 22px;
	cursor: pointer;
	list-style: none;
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
}
.xn-faq-item__q::-webkit-details-marker { display: none; }

.xn-faq-item__num {
	font-family: 'Cairo', sans-serif;
	font-size: 0.85rem;
	font-weight: 800;
	color: var(--xn-gold);
	letter-spacing: 0.05em;
	flex-shrink: 0;
	width: 28px;
}
.xn-faq-item__q-text { flex: 1; line-height: 1.5; }

.xn-faq-item__icon {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgba(230, 200, 58, 0.1);
	color: var(--xn-gold);
	border: 1px solid rgba(230, 200, 58, 0.2);
	flex-shrink: 0;
	transition: all 0.3s var(--xn-ease);
}
.xn-faq-item__icon svg { width: 14px; height: 14px; transition: transform 0.3s; }
.xn-faq-item[open] .xn-faq-item__icon { transform: rotate(45deg); background: var(--xn-gold); color: var(--xn-dark); }
.xn-faq-item[open] .xn-faq-item__icon svg { transform: none; }

.xn-faq-item__a {
	padding: 0 22px 22px;
	padding-inline-start: 64px;
	color: rgba(255,255,255,0.75);
	font-size: 0.95rem;
	line-height: 1.85;
}

/* Help block */
.xn-faq-help {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 50px;
	padding: 30px;
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(124, 67, 166, 0.18), rgba(255,255,255,0.02));
	border: 1px solid rgba(124, 67, 166, 0.3);
	flex-wrap: wrap;
}
.xn-faq-help__icon {
	width: 60px; height: 60px;
	flex-shrink: 0;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--xn-purple);
	color: var(--xn-gold);
}
.xn-faq-help__icon svg { width: 28px; height: 28px; }
.xn-faq-help__content { flex: 1; min-width: 200px; }
.xn-faq-help__content h3 {
	color: #fff;
	font-size: 1.15rem;
	font-weight: 800;
	margin: 0 0 4px;
}
.xn-faq-help__content p { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin: 0; }
.xn-faq-help__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Page hero variants for FAQ */
.xn-page-hero--faq,
.xn-page-hero--about {
	text-align: center;
	padding: 140px 0 70px;
}
.xn-page-hero--faq .xn-page-hero__content,
.xn-page-hero--about .xn-page-hero__content {
	max-width: 700px;
	margin: 0 auto;
}
.xn-page-hero__beam--1, .xn-page-hero__beam--2 {
	position: absolute;
	width: 600px;
	height: 200px;
	filter: blur(80px);
	opacity: 0.4;
	border-radius: 50%;
	pointer-events: none;
}
.xn-page-hero__beam--1 {
	top: -10%;
	left: -10%;
	background: radial-gradient(ellipse, var(--xn-purple), transparent 70%);
}
.xn-page-hero__beam--2 {
	bottom: -10%;
	right: -10%;
	background: radial-gradient(ellipse, rgba(230, 200, 58, 0.4), transparent 70%);
}

/* ============================================================================
   47) SINGLE BRANCH PAGE
   ============================================================================ */
.xn-page-hero--branch {
	text-align: center;
	padding: 140px 0 70px;
}
.xn-page-hero--branch .xn-page-hero__content {
	max-width: 700px;
	margin: 0 auto;
}

.xn-branch-body { padding: 80px 0 100px; background: var(--xn-dark); }
.xn-branch-body__container {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 40px;
	align-items: start;
}
@media (max-width: 980px) {
	.xn-branch-body__container { grid-template-columns: 1fr; gap: 28px; }
}

.xn-branch-body__map,
.xn-branch-body__photo {
	border-radius: 22px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.08);
	background: var(--xn-dark-2);
	min-height: 380px;
}
.xn-branch-body__map iframe,
.xn-branch-body__photo img {
	width: 100%;
	height: 100%;
	min-height: 380px;
	display: block;
	border: 0;
	object-fit: cover;
}
.xn-branch-body__map--placeholder {
	display: grid; place-items: center;
	color: rgba(255,255,255,0.4);
	gap: 12px;
}
.xn-branch-body__map--placeholder svg { width: 56px; height: 56px; }

.xn-branch-body__card {
	padding: 28px;
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(124,67,166,0.10), rgba(255,255,255,0.02));
	border: 1px solid rgba(230, 200, 58, 0.15);
}

.xn-branch-body__row {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(255,255,255,0.06);
}
.xn-branch-body__row:last-of-type { border-bottom: 0; }

.xn-branch-body__row-icon {
	width: 38px; height: 38px;
	flex-shrink: 0;
	display: grid; place-items: center;
	border-radius: 50%;
	background: rgba(230, 200, 58, 0.12);
	color: var(--xn-gold);
	border: 1px solid rgba(230, 200, 58, 0.25);
}
.xn-branch-body__row-icon svg { width: 18px; height: 18px; }

.xn-branch-body__row-label {
	font-size: 0.78rem;
	color: rgba(255,255,255,0.55);
	font-weight: 600;
	margin-bottom: 2px;
	letter-spacing: 0.02em;
}
.xn-branch-body__row-value {
	color: #fff;
	font-weight: 600;
	line-height: 1.5;
}
.xn-branch-body__row-value a { color: var(--xn-gold); text-decoration: none; }
.xn-branch-body__row-value a:hover { text-decoration: underline; }

.xn-branch-body__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid rgba(255,255,255,0.08);
}
.xn-branch-body__actions .xn-btn { flex: 1 1 auto; justify-content: center; }

/* ============================================================================
   48) (Removed in v1.38 — services listing now uses the unified .has-bg style
        shared with the home services grid for visual consistency.)
   ============================================================================ */

/* ============================================================================
   49) SINGLE BLOG POST — refined typography for hero meta + body
   ============================================================================ */
/*
 * Tighten + spaceify the article hero so title and excerpt feel like a
 * proper magazine layout, not a generic page header.
 */
.xn-single .xn-page-hero {
	text-align: center;
	padding: 130px 0 50px;
}
.xn-single .xn-page-hero__content {
	max-width: 780px;
	margin: 0 auto;
}
.xn-single .xn-page-hero__title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	line-height: 1.25;
	margin: 0.7rem 0 1.2rem;
}
.xn-single .xn-page-hero__lead {
	font-size: clamp(1rem, 1.5vw, 1.18rem);
	line-height: 1.85;
	color: rgba(255, 255, 255, 0.7);
	max-width: 640px;
	margin: 0 auto;
}
.xn-single .xn-eyebrow {
	font-size: 0.78rem;
	letter-spacing: 0.2em;
	color: var(--xn-gold);
	font-weight: 700;
}

/* Article body: comfortable reading width + tuned typography */
.xn-single .xn-prose {
	max-width: 760px;
	margin: 0 auto;
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.05rem;
	line-height: 1.95;
}
.xn-single .xn-prose h2,
.xn-single .xn-prose h3 {
	margin: 2.4rem 0 1rem;
	color: #fff;
	letter-spacing: -0.01em;
}
.xn-single .xn-prose h2 { font-size: 1.65rem; font-weight: 800; }
.xn-single .xn-prose h3 { font-size: 1.3rem;  font-weight: 700; }
.xn-single .xn-prose p { margin: 0 0 1.3rem; }
.xn-single .xn-prose ul,
.xn-single .xn-prose ol { margin: 0 0 1.5rem; padding-inline-start: 1.6rem; }
.xn-single .xn-prose li { margin-bottom: 0.55rem; }
.xn-single .xn-prose img {
	border-radius: 18px;
	margin: 1.6rem 0;
	max-width: 100%;
	height: auto;
}
.xn-single .xn-prose a {
	color: var(--xn-gold);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}
.xn-single .xn-prose blockquote {
	border-inline-start: 3px solid var(--xn-gold);
	padding: 0.4rem 0 0.4rem 1.2rem;
	margin: 1.6rem 0;
	color: rgba(255, 255, 255, 0.75);
	font-style: italic;
}

@media (max-width: 600px) {
	.xn-single .xn-page-hero { padding: 110px 0 30px; }
	.xn-single .xn-prose { font-size: 1rem; line-height: 1.85; }
}

/* ============================================================================
   50) PAGE HERO WITH IMAGE BACKGROUND (e.g. /branches/ hero)
   ============================================================================ */
.xn-page-hero--has-image {
	position: relative;
	overflow: hidden;
	min-height: 380px;
	display: flex;
	align-items: center;
}
.xn-page-hero--has-image .xn-page-hero__image {
	position: absolute;
	inset: 0;
	background-image: var(--xn-hero-bg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
	will-change: transform;
}
.xn-page-hero--has-image .xn-page-hero__veil {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(14,19,32,0.55) 0%, rgba(14,19,32,0.85) 80%, var(--xn-dark) 100%),
		radial-gradient(circle at 30% 30%, rgba(124,67,166,0.25), transparent 60%);
	z-index: 1;
}
.xn-page-hero--has-image .xn-container {
	position: relative;
	z-index: 2;
}
@media (max-width: 720px) {
	.xn-page-hero--has-image { min-height: 280px; }
}

/* ============================================================================
   51) SINGLE POST HERO — Cinematic, brand-aligned
   ============================================================================ */
.xn-single-hero {
	position: relative;
	min-height: 540px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	padding-top: 130px;
	padding-bottom: 60px;
	isolation: isolate;
}
@media (max-width: 720px) {
	.xn-single-hero { min-height: 460px; padding-top: 110px; padding-bottom: 40px; }
}

/* Variant: with featured image background */
.xn-single-hero__image {
	position: absolute;
	inset: 0;
	background-image: var(--xn-hero-bg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
	transform: scale(1.05);
	filter: brightness(0.78);
	animation: xn-hero-zoom 16s ease-out forwards;
}
@keyframes xn-hero-zoom {
	from { transform: scale(1.12); }
	to   { transform: scale(1.0); }
}
.xn-single-hero__veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg,
			rgba(14,19,32,0.35) 0%,
			rgba(14,19,32,0.7) 55%,
			rgba(14,19,32,0.95) 85%,
			var(--xn-dark) 100%
		),
		radial-gradient(ellipse at 20% 60%, rgba(124,67,166,0.4), transparent 55%),
		radial-gradient(ellipse at 85% 30%, rgba(230,200,58,0.18), transparent 50%);
}

/* Variant: no image — cinematic gradient with grid + decorative accents */
.xn-single-hero__beams {
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(ellipse at 30% 25%, rgba(124,67,166,0.45), transparent 55%),
		radial-gradient(ellipse at 75% 75%, rgba(230,200,58,0.15), transparent 55%),
		var(--xn-dark);
}
.xn-single-hero__beams::before {
	/* Subtle grid pattern for editorial feel */
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
	pointer-events: none;
}
.xn-single-hero__beams::after {
	/* Animated shimmer line — sweeps right→left subtly */
	content: "";
	position: absolute;
	top: 35%;
	inset-inline-start: -20%;
	width: 140%;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(230,200,58,0) 40%,
		rgba(230,200,58,0.5) 50%,
		rgba(230,200,58,0) 60%,
		transparent 100%
	);
	animation: xn-hero-shimmer 8s ease-in-out infinite;
	pointer-events: none;
}
@keyframes xn-hero-shimmer {
	0%, 100% { transform: translateX(-15%); opacity: 0; }
	50%      { transform: translateX(15%);  opacity: 1; }
}
.xn-single-hero__beam {
	position: absolute;
	width: 600px;
	height: 600px;
	border-radius: 50%;
	filter: blur(100px);
	opacity: 0.5;
}
.xn-single-hero__beam--1 {
	background: var(--xn-purple);
	top: -120px;
	inset-inline-start: -100px;
}
.xn-single-hero__beam--2 {
	background: var(--xn-gold);
	bottom: -200px;
	inset-inline-end: -100px;
	opacity: 0.22;
}

.xn-single-hero__container {
	position: relative;
	z-index: 2;
	max-width: 900px;
	margin: 0 auto;
}
.xn-single-hero__content {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

/* Meta row: date + reading time */
.xn-single-hero__meta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 18px;
	margin-bottom: 24px;
	background: rgba(14,19,32,0.55);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 100px;
	color: rgba(255,255,255,0.85);
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.01em;
}
.xn-single-hero__date,
.xn-single-hero__read {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.xn-single-hero__date svg,
.xn-single-hero__read svg {
	color: var(--xn-gold);
	flex-shrink: 0;
}
.xn-single-hero__dot {
	color: rgba(255,255,255,0.35);
	font-weight: 700;
}

.xn-single-hero__title {
	font-size: clamp(1.8rem, 4.2vw, 3rem);
	line-height: 1.22;
	letter-spacing: -0.015em;
	margin: 0 0 22px;
	color: #fff;
	font-weight: 800;
	text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.xn-single-hero__lead {
	font-size: clamp(1rem, 1.5vw, 1.18rem);
	line-height: 1.85;
	color: rgba(255,255,255,0.82);
	max-width: 640px;
	margin: 0 auto;
	text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

/* Breadcrumbs inside hero — lift them and lighten contrast */
.xn-single-hero .xn-breadcrumbs {
	position: relative;
	z-index: 3;
	justify-content: center;
	margin-bottom: 28px;
}

/* Single body */
.xn-single-body {
	padding-top: 70px;
	padding-bottom: 100px;
}
@media (max-width: 720px) {
	.xn-single-body { padding-top: 50px; padding-bottom: 70px; }
}
