/* ==========================================================================
   Meydan Khiaban — main.css
   ========================================================================== */

:root {
	--bg: #050505;
	--bg-2: #0b0b0c;
	--fg: #f4f4f5;
	--muted: rgba(255, 255, 255, .58);
	--line: rgba(255, 255, 255, .1);
	--red: #ff2b2b;
	--red-deep: #b30f0f;
	--gold: #e6d3a3;
	--radius: 20px;
	--font-fa: 'Vazirmatn', 'Cairo', system-ui, sans-serif;
	--font-lat: 'Space Grotesk', 'Vazirmatn', system-ui, sans-serif;
	--font: var(--font-fa);
	--ease: cubic-bezier(.22, 1, .36, 1);
	--text-dir: rtl;
}
html[dir="ltr"] { --text-dir: ltr; --font: var(--font-lat); }
html[lang="ar"] { --font: 'Cairo', 'Vazirmatn', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.8;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
body::before { /* دانه فیلم */
	content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--red); color: #fff; }

.mk-wrap { width: min(1180px, 100% - 48px); margin-inline: auto; position: relative; z-index: 2; }
.mk-wrap--narrow { width: min(940px, 100% - 48px); }
.mk-wrap--wide { width: min(1280px, 100% - 32px); }

.mk-admin-note {
	margin: 1rem auto; padding: .8rem 1rem; max-width: 720px; text-align: center; font-size: .85rem;
	border: 1px dashed rgba(255, 255, 255, .3); border-radius: 12px; color: var(--muted);
}
.mk-admin-note code { color: var(--gold); direction: ltr; unicode-bidi: embed; }
.mk-admin-note--map { position: absolute; inset: 40% 10% auto; z-index: 3; }

/* ==========================================================================
   Header (ثابت)
   ========================================================================== */
.mk-header {
	position: fixed; inset: 0 0 auto 0; z-index: 60;
	display: flex; justify-content: space-between; align-items: flex-start;
	padding: max(20px, env(safe-area-inset-top)) clamp(16px, 3vw, 36px) 0;
	direction: ltr; /* چپ/راست فیزیکی: پرچم چپ، لوگو راست */
	pointer-events: none;
}
.mk-header > * { pointer-events: auto; }

.mk-flag {
	width: 44px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .6));
	transition: transform .5s var(--ease);
}
.mk-flag:hover { transform: translateY(-2px) rotate(-3deg) scale(1.06); }
.mk-flag__svg { width: 100%; height: auto; display: block; border-radius: 5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 0 26px rgba(35, 159, 64, .22); }

.mk-logo {
	display: inline-flex; align-items: center; gap: .5em; line-height: 1;
	font-size: clamp(1.1rem, 2.2vw, 1.5rem); direction: var(--text-dir);
	text-shadow: 0 0 24px rgba(0, 0, 0, .9);
}
.mk-logo__a { font-weight: 300; letter-spacing: .02em; opacity: .92; }
.mk-logo__b { font-weight: 900; position: relative; }
.mk-logo__b::after {
	content: ""; position: absolute; inset-inline: 0; bottom: -.28em; height: 2px;
	background: linear-gradient(90deg, transparent, var(--red), transparent);
	box-shadow: 0 0 12px var(--red);
}
.mk-logo__dot {
	width: .42em; height: .42em; border-radius: 50%; background: var(--red);
	box-shadow: 0 0 10px 2px rgba(255, 43, 43, .8); animation: mkBlink 2.4s ease-in-out infinite;
}
html[dir="ltr"] .mk-logo { text-transform: uppercase; letter-spacing: .16em; font-size: clamp(.95rem, 1.9vw, 1.25rem); }
html[dir="ltr"] .mk-logo__a { font-weight: 400; letter-spacing: .18em; }
html[dir="ltr"] .mk-logo__b { font-weight: 700; letter-spacing: .2em; }
@keyframes mkBlink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }

/* ==========================================================================
   Language switcher (پایین چپ)
   ========================================================================== */
.mk-lang { position: fixed; left: clamp(14px, 2.4vw, 28px); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 70; direction: ltr; }
.mk-lang__btn {
	display: inline-flex; align-items: center; gap: .55rem; padding: .62rem 1rem; border-radius: 999px;
	background: rgba(14, 14, 15, .72); border: 1px solid var(--line); color: var(--fg);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	font-family: var(--font-lat); font-weight: 600; letter-spacing: .12em; font-size: .82rem;
	transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.mk-lang__btn:hover, .mk-lang.is-open .mk-lang__btn { border-color: rgba(255, 255, 255, .4); box-shadow: 0 0 24px rgba(255, 255, 255, .12); }
.mk-lang__list {
	list-style: none; margin: 0; padding: 6px; position: absolute; left: 0; bottom: calc(100% + 10px); min-width: 170px;
	background: rgba(12, 12, 13, .92); border: 1px solid var(--line); border-radius: 18px;
	-webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
	opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom left; pointer-events: none;
	transition: opacity .3s, transform .4s var(--ease);
}
.mk-lang.is-open .mk-lang__list { opacity: 1; transform: none; pointer-events: auto; }
.mk-lang__list a { display: flex; gap: .8rem; align-items: center; padding: .55rem .8rem; border-radius: 12px; font-size: .9rem; line-height: 1.3; transition: background .25s; }
.mk-lang__list a b { font-family: var(--font-lat); font-weight: 700; width: 1.8rem; letter-spacing: .08em; color: var(--muted); }
.mk-lang__list a:hover { background: rgba(255, 255, 255, .08); }
.mk-lang__list a.is-active { background: rgba(255, 43, 43, .14); }
.mk-lang__list a.is-active b { color: var(--red); }

/* ==========================================================================
   Qiam-Yab FAB (پایین راست)
   ========================================================================== */
.mk-qiam-fab {
	position: fixed; right: clamp(14px, 2.4vw, 28px); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 70;
	width: 66px; height: 66px; display: grid; place-items: center; direction: ltr;
	opacity: 0; transform: scale(.3) translateY(30px); pointer-events: none;
	transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.mk-qiam-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.mk-qiam-fab__core {
	position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; color: #fff;
	background: radial-gradient(circle at 30% 25%, #ff5a5a, var(--red) 45%, var(--red-deep));
	box-shadow: 0 10px 34px rgba(255, 43, 43, .5), inset 0 1px 0 rgba(255, 255, 255, .35);
	transition: transform .4s var(--ease);
}
.mk-qiam-fab:hover .mk-qiam-fab__core { transform: scale(1.1) rotate(-6deg); }
.mk-qiam-fab__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); opacity: 0; animation: mkPulse 2.4s ease-out infinite; }
.mk-qiam-fab__ring--2 { animation-delay: 1.2s; }
@keyframes mkPulse { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(2.2); opacity: 0; } }
.mk-qiam-fab__label {
	position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(10px, -50%); white-space: nowrap;
	padding: .45rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 700; direction: var(--text-dir);
	background: rgba(14, 14, 15, .9); border: 1px solid var(--line); opacity: 0; pointer-events: none;
	transition: opacity .3s, transform .4s var(--ease);
}
.mk-qiam-fab:hover .mk-qiam-fab__label { opacity: 1; transform: translate(0, -50%); }

/* ==========================================================================
   Stage: Hero + Map
   ========================================================================== */
.mk-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.mk-stage__inner { position: absolute; inset: 0; display: grid; place-items: center; }
.mk-hero, .mk-map { grid-area: 1 / 1; }

.mk-hero { position: relative; z-index: 3; text-align: center; display: grid; justify-items: center; padding-inline: 16px; }
.mk-hero::before { /* هاله نوری */
	content: ""; position: absolute; width: min(90vw, 900px); aspect-ratio: 1; border-radius: 50%; z-index: -1;
	background: radial-gradient(circle, rgba(255, 43, 43, .16), transparent 62%); filter: blur(30px);
	animation: mkBreath 6s ease-in-out infinite;
}
@keyframes mkBreath { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
.mk-hero__num {
	font-size: clamp(8rem, 36vw, 34rem); font-weight: 900; line-height: .95; letter-spacing: -.02em;
	font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
	background: linear-gradient(180deg, #fff 20%, rgba(255, 255, 255, .55) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 0 40px rgba(255, 255, 255, .22)) drop-shadow(0 0 120px rgba(255, 43, 43, .28));
	direction: ltr; will-change: transform, opacity, filter;
}
html[dir="ltr"] .mk-hero__num { font-weight: 700; letter-spacing: -.05em; }
.mk-hero__label { margin: 1.2rem 0 0; font-size: clamp(1rem, 2.1vw, 1.5rem); letter-spacing: .04em; color: var(--muted); font-weight: 300; }
.mk-hero__cue { margin-top: clamp(2rem, 8vh, 4.5rem); display: grid; justify-items: center; gap: .7rem; font-size: .78rem; letter-spacing: .1em; color: var(--muted); }
.mk-hero__cue i { width: 1px; height: 54px; background: linear-gradient(var(--fg), transparent); animation: mkCue 2s ease-in-out infinite; transform-origin: top; }
@keyframes mkCue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.mk-map { position: relative; z-index: 2; width: 100%; display: grid; justify-items: center; align-content: center; gap: clamp(.4rem, 1.4vh, 1rem); padding: 76px 16px 10px; }
.mk-map__head { text-align: center; }
.mk-map__title { margin: 0; font-size: clamp(1.25rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.3; }
.mk-map__sub { margin: .2rem 0 0; color: var(--muted); font-size: clamp(.85rem, 1.4vw, 1.05rem); }
.mk-map__frame {
	position: relative; aspect-ratio: var(--ar, 1.2);
	width: min(92vw, calc(min(60vh, 700px) * var(--ar, 1.2)));
	direction: ltr;
}
.mk-map__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .95; filter: drop-shadow(0 0 30px rgba(255, 255, 255, .1)); }
.mk-map__dots { position: absolute; inset: 0; }

.mk-dot {
	position: absolute; width: clamp(4px, .62vw, 8px); aspect-ratio: 1; margin: calc(clamp(4px, .62vw, 8px) / -2) 0 0 calc(clamp(4px, .62vw, 8px) / -2);
	border-radius: 50%; background: var(--red);
	box-shadow: 0 0 6px 1px rgba(255, 43, 43, .95), 0 0 16px 3px rgba(255, 43, 43, .45);
}
.mk-dot.is-pulse::after {
	content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--red);
	animation: mkDotPing 2.6s ease-out infinite; animation-delay: var(--d, 0s);
}
.mk-dot.is-city { background: #fff; box-shadow: 0 0 8px 2px rgba(255, 90, 90, 1), 0 0 22px 6px rgba(255, 43, 43, .6); }
@keyframes mkDotPing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4.6); opacity: 0; } }
.mk-dbg { position: absolute; transform: translate(8px, -50%); font-size: 10px; color: #9ff; white-space: nowrap; pointer-events: none; font-family: var(--font-lat); }

.mk-stats { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; gap: clamp(1.4rem, 5vw, 4rem); justify-content: center; }
.mk-stats li { display: grid; justify-items: center; line-height: 1.2; }
.mk-stats b { font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.mk-stats span { font-size: .78rem; color: var(--muted); letter-spacing: .06em; }

/* ==========================================================================
   Sections: common
   ========================================================================== */
.mk-main { position: relative; z-index: 2; }
.mk-eyebrow { color: var(--red); font-size: .95rem; letter-spacing: .14em; font-weight: 700; margin: 0 0 2rem; display: flex; align-items: center; gap: .8rem; }
.mk-eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--red); box-shadow: 0 0 10px var(--red); }
.mk-sec-title { margin: 0 0 .6rem; text-align: center; font-size: clamp(1.8rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.25; }
.mk-sec-title::after { content: ""; display: block; width: 70px; height: 2px; margin: 1.1rem auto 0; background: linear-gradient(90deg, transparent, var(--red), transparent); box-shadow: 0 0 14px var(--red); }
.mk-sec-title--xl { font-size: clamp(2.1rem, 6.4vw, 4.6rem); text-shadow: 0 0 60px rgba(255, 43, 43, .35); }
.mk-sec-sub { text-align: center; color: var(--muted); margin: 0 auto 3rem; max-width: 640px; }

/* Manifesto */
.mk-manifesto { padding: clamp(6rem, 18vh, 12rem) 0; background: radial-gradient(ellipse at 50% 0, rgba(255, 43, 43, .06), transparent 60%); }
.mk-manifesto__p { margin: 0 0 clamp(2.4rem, 7vh, 4.6rem); font-size: clamp(1.45rem, 3.6vw, 2.7rem); line-height: 1.85; font-weight: 700; }
html[dir="ltr"] .mk-manifesto__p { line-height: 1.5; font-weight: 500; letter-spacing: -.01em; }
.mk-manifesto__p .w { display: inline-block; white-space: pre; }

/* Leaders */
.mk-leaders { padding: clamp(5rem, 14vh, 9rem) 0; }
.mk-leaders__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2rem); margin-top: 3.5rem; direction: ltr; align-items: start; }
.mk-leader { margin: 0; direction: var(--text-dir); }
.mk-leader--2 { margin-top: -2.2rem; }
.mk-leader__frame {
	position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 22px;
	background: #0e0e10; border: 1px solid var(--line);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.mk-leader__img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); transition: transform 1.2s var(--ease), filter .8s; }
.mk-leader:hover .mk-leader__img { transform: scale(1.05); filter: grayscale(0) contrast(1.08); }
.mk-leader__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 5, 5, .92) 0%, rgba(5, 5, 5, .1) 45%, transparent 70%); pointer-events: none; }
.mk-leader__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .08); background: radial-gradient(circle at 50% 30%, #1b1b1e, #0b0b0c); }
.mk-leader__ph svg { width: 46%; }
.mk-leader__ph small { position: absolute; bottom: 90px; font-size: .75rem; color: var(--muted); direction: ltr; }
.mk-leader__cap { display: grid; gap: .1rem; text-align: center; padding: 1.2rem .5rem 0; }
.mk-leader__no { font-size: .8rem; color: var(--red); letter-spacing: .2em; font-weight: 700; }
.mk-leader__name { font-size: clamp(1.1rem, 2vw, 1.55rem); font-weight: 800; line-height: 1.4; }
.mk-leader__suffix { font-style: normal; color: var(--gold); font-size: .95rem; opacity: .9; }

/* ==========================================================================
   Spiral gallery (خط نوری سفید)
   ========================================================================== */
.mk-gallery { padding: clamp(5rem, 14vh, 9rem) 0 clamp(2rem, 6vh, 4rem); position: relative; }
.mk-gallery--abroad { padding-top: clamp(3rem, 8vh, 6rem); }
.mk-spiral { position: relative; direction: ltr; padding: 3rem 0 4rem; margin-top: 2rem; }
.mk-spiral__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.mk-spiral .mk-line-track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1.5; }
.mk-spiral .mk-line-glow { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; opacity: .38; filter: blur(7px); }
.mk-spiral .mk-line-core { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 14px rgba(255, 255, 255, .8)); }
.mk-spiral .mk-conn { stroke: rgba(255, 255, 255, .85); stroke-width: 1.5; stroke-linecap: round; filter: drop-shadow(0 0 5px #fff); }
.mk-spiral .mk-node { fill: #fff; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 16px rgba(255, 255, 255, .9)); }
.mk-spiral .mk-head { fill: #fff; filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 22px #fff) drop-shadow(0 0 40px rgba(255, 255, 255, .8)); }

.mk-spiral__item { position: relative; z-index: 2; display: flex; margin: clamp(2rem, 6vh, 4.2rem) 0; }
.mk-spiral__item.is-left { justify-content: flex-start; }
.mk-spiral__item.is-right { justify-content: flex-end; }
.mk-spiral__fig { margin: 0; width: 38%; will-change: transform, opacity; }
.mk-spiral__imgwrap { overflow: hidden; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .14); background: #0c0c0d; box-shadow: 0 24px 70px rgba(0, 0, 0, .7), 0 0 40px rgba(255, 255, 255, .05); }
.mk-spiral__img { width: 100%; height: auto; transform-origin: center; }
.mk-spiral__fig figcaption { display: flex; align-items: center; gap: .6rem; margin-top: .7rem; font-size: .8rem; letter-spacing: .18em; color: var(--muted); font-family: var(--font-lat); }
.mk-spiral__item.is-right figcaption { justify-content: flex-end; }
.mk-spiral__fig figcaption i { width: 26px; height: 1px; background: rgba(255, 255, 255, .35); }

/* ==========================================================================
   Videos
   ========================================================================== */
.mk-videos { padding: clamp(5rem, 14vh, 9rem) 0; }
.mk-vid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 26px); direction: ltr; align-items: stretch; }
.mk-vid > * { direction: var(--text-dir); }
.mk-vid__main { display: flex; flex-direction: column; gap: 1.1rem; }
.mk-vid__stage {
	position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000;
	border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0, 0, 0, .75), 0 0 80px rgba(255, 43, 43, .08);
}
.mk-vid__stage video, .mk-vid__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.mk-vid__poster { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: #0c0c0d center / cover no-repeat; display: grid; place-items: center; }
.mk-vid__poster::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, transparent 30%, rgba(0, 0, 0, .55)); }
.mk-vid__playbtn {
	position: relative; z-index: 2; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; color: #fff;
	background: rgba(255, 43, 43, .92); box-shadow: 0 0 0 10px rgba(255, 43, 43, .2), 0 0 50px rgba(255, 43, 43, .6); transition: transform .4s var(--ease);
}
.mk-vid__poster:hover .mk-vid__playbtn { transform: scale(1.1); }
.mk-vid__playbtn svg { margin-inline-start: 4px; }
.mk-vid__title { margin: 0; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 800; }
.mk-vid__desc { margin: .3rem 0 0; color: var(--muted); font-size: .95rem; }

.mk-vid__list { position: relative; min-height: 320px; }
.mk-vid__scroll { position: absolute; inset: 0; overflow-y: auto; display: grid; align-content: start; gap: 10px; padding-inline-end: 6px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.mk-vid__item {
	display: grid; grid-template-columns: 38% 1fr auto; align-items: center; gap: 12px; text-align: start; width: 100%;
	padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid transparent;
	transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.mk-vid__item:hover { background: rgba(255, 255, 255, .07); transform: translateX(-3px); }
html[dir="ltr"] .mk-vid__item:hover { transform: translateX(3px); }
.mk-vid__item.is-active { background: rgba(255, 43, 43, .1); border-color: rgba(255, 43, 43, .5); box-shadow: 0 0 30px rgba(255, 43, 43, .15); }
.mk-vid__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; background: #151517 center / cover no-repeat; display: grid; place-items: center; color: rgba(255, 255, 255, .9); overflow: hidden; }
.mk-vid__thumb::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.mk-vid__thumb svg { position: relative; z-index: 2; }
.mk-vid__thumb small { position: absolute; z-index: 2; bottom: 4px; inset-inline-end: 6px; font-size: .68rem; background: rgba(0, 0, 0, .7); padding: 0 6px; border-radius: 6px; direction: ltr; }
.mk-vid__itemtitle { font-size: .93rem; font-weight: 700; line-height: 1.5; }
.mk-vid__eq { display: none; gap: 2px; align-items: flex-end; height: 16px; margin-inline-end: 6px; }
.mk-vid__item.is-active .mk-vid__eq { display: flex; }
.mk-vid__eq i { width: 3px; background: var(--red); border-radius: 2px; animation: mkEq 1s ease-in-out infinite; }
.mk-vid__eq i:nth-child(1) { height: 60%; animation-delay: -.2s; }
.mk-vid__eq i:nth-child(2) { height: 100%; animation-delay: -.5s; }
.mk-vid__eq i:nth-child(3) { height: 40%; animation-delay: -.8s; }
@keyframes mkEq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* ==========================================================================
   CTA + buttons
   ========================================================================== */
.mk-cta { padding: clamp(4rem, 12vh, 8rem) 0 clamp(5rem, 14vh, 9rem); }
.mk-cta__box {
	position: relative; overflow: hidden; text-align: center; padding: clamp(3rem, 9vw, 6.5rem) clamp(1.4rem, 5vw, 4rem);
	border-radius: 32px; background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
	border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
}
.mk-cta__glow { position: absolute; width: 70%; aspect-ratio: 1; left: 50%; top: -40%; transform: translateX(-50%); background: radial-gradient(circle, rgba(255, 43, 43, .35), transparent 65%); filter: blur(40px); pointer-events: none; }
.mk-cta__title { position: relative; margin: 0; font-size: clamp(2.6rem, 9vw, 6rem); font-weight: 900; line-height: 1.2; }
.mk-cta__text { position: relative; margin: 1rem auto 2.4rem; max-width: 620px; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.25rem); }

.mk-btn {
	position: relative; display: inline-flex; align-items: center; gap: .9rem; overflow: hidden; isolation: isolate;
	padding: 1.1rem 2.4rem; border: 0; border-radius: 999px; color: #fff; font-weight: 800; font-size: 1.1rem;
	background: linear-gradient(135deg, #ff4a4a, var(--red) 40%, var(--red-deep));
	box-shadow: 0 14px 44px rgba(255, 43, 43, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
	transition: transform .5s var(--ease), box-shadow .5s;
	animation: mkBtnGlow 3s ease-in-out infinite;
}
.mk-btn:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 22px 64px rgba(255, 43, 43, .65), inset 0 1px 0 rgba(255, 255, 255, .45); }
.mk-btn__shine { position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); animation: mkShine 3.2s ease-in-out infinite; }
.mk-btn__arrow { transition: transform .5s var(--ease); }
.mk-btn:hover .mk-btn__arrow { transform: translateX(6px); }
html[dir="rtl"] .mk-btn__arrow { transform: scaleX(-1); }
html[dir="rtl"] .mk-btn:hover .mk-btn__arrow { transform: scaleX(-1) translateX(6px); }
.mk-btn--sm { padding: .85rem 1.8rem; font-size: 1rem; animation: none; }
@keyframes mkShine { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }
@keyframes mkBtnGlow { 0%, 100% { box-shadow: 0 14px 44px rgba(255, 43, 43, .4), inset 0 1px 0 rgba(255, 255, 255, .35); } 50% { box-shadow: 0 14px 70px rgba(255, 43, 43, .7), inset 0 1px 0 rgba(255, 255, 255, .35); } }

/* Footer */
.mk-footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 2rem 16px 5.5rem; text-align: center; color: var(--muted); font-size: .92rem; }
.mk-footer__text { margin: 0; display: inline-flex; flex-wrap: wrap; gap: .5rem .7rem; justify-content: center; align-items: center; }
.mk-footer__heart { display: inline-block; animation: mkHeart 1.6s ease-in-out infinite; }
@keyframes mkHeart { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.2); } }

/* Plain pages */
.mk-plain { max-width: 780px; margin: 0 auto; padding: 9rem 24px 6rem; position: relative; z-index: 2; }
.mk-plain h1 { font-size: clamp(2rem, 5vw, 3rem); }

/* ==========================================================================
   Reveal helpers
   ========================================================================== */
.mk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   Qiam-Yab page
   ========================================================================== */
body.mk-qiam { overflow: hidden; }
body.mk-qiam::before { display: none; }
.mk-qy { position: fixed; inset: 0; z-index: 5; background: #0a0a0b; }
.mk-qy__map { position: absolute; inset: 0; }
.mk-qy__notice { position: absolute; z-index: 10; inset: 50% 16px auto; transform: translateY(-50%); max-width: 520px; margin-inline: auto; text-align: center; padding: 1.4rem; border-radius: 18px; background: rgba(14, 14, 15, .92); border: 1px solid var(--line); }

.mk-qy__bar { position: absolute; z-index: 20; inset: 74px 0 auto 0; display: grid; gap: .4rem; justify-items: center; pointer-events: none; padding-inline: 12px; }
.mk-qy__chips { pointer-events: auto; display: flex; gap: 8px; max-width: min(1100px, 100%); overflow-x: auto; padding: 8px 10px; border-radius: 999px; background: rgba(10, 10, 11, .72); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); scrollbar-width: none; }
.mk-qy__chips::-webkit-scrollbar { display: none; }
.mk-chip { flex: none; padding: .42rem 1rem; border-radius: 999px; border: 1px solid transparent; background: rgba(255, 255, 255, .06); font-size: .88rem; white-space: nowrap; transition: background .25s, border-color .25s, transform .3s var(--ease); }
.mk-chip:hover { background: rgba(255, 255, 255, .13); transform: translateY(-1px); }
.mk-chip.is-active { background: rgba(255, 43, 43, .2); border-color: var(--red); box-shadow: 0 0 18px rgba(255, 43, 43, .35); }
.mk-qy__status { margin: 0; font-size: .82rem; color: var(--muted); text-shadow: 0 1px 8px #000; text-align: center; }

.mk-plus {
	position: absolute; z-index: 30; right: clamp(14px, 2.4vw, 28px); bottom: max(22px, env(safe-area-inset-bottom)); width: 64px; height: 64px; border-radius: 50%; border: 0; color: #fff;
	background: radial-gradient(circle at 30% 25%, #ff5a5a, var(--red) 45%, var(--red-deep)); box-shadow: 0 10px 34px rgba(255, 43, 43, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
	display: grid; place-items: center; font-size: 2.2rem; line-height: 1; font-weight: 300; transition: transform .5s var(--ease);
	animation: mkBtnGlow 3s ease-in-out infinite;
}
.mk-plus span { transform: translateY(-2px); transition: transform .5s var(--ease); }
.mk-plus:hover { transform: scale(1.1); }
.mk-plus:hover span { transform: translateY(-2px) rotate(90deg); }

.mk-pickbar { position: absolute; z-index: 40; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 1rem; align-items: center; padding: .7rem 1.1rem; border-radius: 999px; background: rgba(10, 10, 11, .92); border: 1px solid var(--red); box-shadow: 0 0 34px rgba(255, 43, 43, .4); font-size: .92rem; max-width: calc(100% - 24px); }
.mk-pickbar button { border: 0; background: rgba(255, 255, 255, .12); padding: .3rem .9rem; border-radius: 999px; }
.mk-qy.is-picking .mk-qy__map canvas { cursor: crosshair !important; }

/* pins */
.mk-pin { width: 26px; height: 26px; cursor: pointer; display: none; }
.mk-qy.is-zoomed .mk-pin { display: block; }
.mk-pin__dot { position: absolute; inset: 6px; border-radius: 50%; background: var(--red); border: 2px solid #fff; box-shadow: 0 0 14px 3px rgba(255, 43, 43, .9); transition: transform .3s var(--ease); }
.mk-pin__dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--red); animation: mkDotPing 2.2s ease-out infinite; }
.mk-pin:hover .mk-pin__dot { transform: scale(1.35); }
.mk-pin--temp .mk-pin__dot { background: #fff; border-color: var(--red); }
.mk-pin--temp { display: block; }
.mk-city { display: grid; justify-items: center; gap: 2px; cursor: pointer; transition: opacity .3s; }
.mk-qy.is-zoomed .mk-city { opacity: 0; pointer-events: none; }
.mk-city__bub { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: .7rem; font-weight: 800; background: var(--red); color: #fff; box-shadow: 0 0 0 4px rgba(255, 43, 43, .25), 0 0 20px rgba(255, 43, 43, .8); }
.mk-city__bub.is-zero { background: #fff; color: transparent; min-width: 10px; height: 10px; padding: 0; box-shadow: 0 0 0 3px rgba(255, 43, 43, .35), 0 0 14px rgba(255, 43, 43, .9); }
.mk-city__name { font-size: .72rem; font-weight: 700; text-shadow: 0 1px 6px #000, 0 0 10px #000; white-space: nowrap; direction: var(--text-dir); }

/* popup card */
.maplibregl-popup.mk-popup .maplibregl-popup-content { padding: 0; background: rgba(12, 12, 13, .96); color: var(--fg); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .7), 0 0 30px rgba(255, 43, 43, .2); font-family: var(--font); direction: var(--text-dir); overflow: hidden; }
.maplibregl-popup.mk-popup .maplibregl-popup-tip { display: none; }
.mk-card { padding: 1rem 1.1rem 1.1rem; min-width: 230px; max-width: 290px; line-height: 1.7; }
.mk-card h3 { margin: 0 0 .1rem; font-size: 1.05rem; font-weight: 800; }
.mk-card__city { color: var(--red); font-size: .8rem; font-weight: 700; }
.mk-card__time { margin: .4rem 0 0; font-size: .85rem; color: var(--gold); }
.mk-card p { margin: .4rem 0 0; font-size: .85rem; color: var(--muted); }
.mk-card__go { display: inline-flex; margin-top: .8rem; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: .85rem; box-shadow: 0 6px 22px rgba(255, 43, 43, .45); }
.mk-card__tap { margin-top: .5rem; font-size: .72rem; color: var(--muted); }

/* modal */
.mk-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.mk-modal[hidden] { display: none; }
.mk-modal.is-collapsed { opacity: 0; pointer-events: none; }
.mk-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mk-modal__dialog { position: relative; width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 1.6rem 1.5rem 1.4rem; border-radius: 26px; background: #0e0e10; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 120px rgba(0, 0, 0, .85), 0 0 60px rgba(255, 43, 43, .12); direction: var(--text-dir); animation: mkModal .6s var(--ease); }
@keyframes mkModal { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
.mk-modal__dialog h2 { margin: 0 0 1.1rem; font-size: 1.4rem; font-weight: 900; }
.mk-modal__x { position: absolute; top: 12px; inset-inline-end: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); font-size: 1.4rem; line-height: 1; }
.mk-field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.mk-field > span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.mk-field input[type=text], .mk-field select, .mk-field textarea { width: 100%; padding: .75rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: #151517; color: var(--fg); font: inherit; outline: none; transition: border-color .25s, box-shadow .25s; }
.mk-field input:focus, .mk-field select:focus, .mk-field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 43, 43, .2); }
.mk-field__row { display: flex; gap: 8px; flex-wrap: wrap; }
.mk-field__hint { color: var(--muted); font-size: .8rem; }
.mk-field__hint.is-ok { color: #6be08a; }
.mk-mini { padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--red); background: rgba(255, 43, 43, .16); font-size: .88rem; font-weight: 700; transition: background .25s; }
.mk-mini:hover { background: rgba(255, 43, 43, .32); }
.mk-mini--ghost { border-color: var(--line); background: rgba(255, 255, 255, .05); }
.mk-form__msg { min-height: 1.4em; margin: 0 0 .6rem; font-size: .9rem; }
.mk-form__msg.is-ok { color: #6be08a; }
.mk-form__msg.is-err { color: #ff8585; }
.mk-form__actions { display: flex; gap: 10px; align-items: center; }
.mk-form__actions .mk-btn[disabled] { opacity: .6; pointer-events: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
	.mk-vid { grid-template-columns: 1fr; }
	.mk-vid__list { min-height: 0; }
	.mk-vid__scroll { position: static; max-height: 360px; }
}
@media (max-width: 767px) {
	body { font-size: 16px; }
	.mk-flag { width: 36px; }
	.mk-leaders__grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
	.mk-leader--2 { margin-top: 0; }
	.mk-spiral__item, .mk-spiral__item.is-left, .mk-spiral__item.is-right { justify-content: flex-end; }
	.mk-spiral__fig { width: calc(100% - 46px); }
	.mk-spiral__item.is-right figcaption { justify-content: flex-start; }
	.mk-map { padding-top: 70px; }
	.mk-map__frame { width: min(94vw, calc(52vh * var(--ar, 1.2))); }
	.mk-stats { gap: 1.4rem; }
	.mk-qiam-fab, .mk-plus { width: 58px; height: 58px; }
	.mk-qiam-fab__label { display: none; }
	.mk-qy__bar { inset-block-start: 66px; }
	.mk-modal { align-items: end; padding: 0; }
	.mk-modal__dialog { border-radius: 26px 26px 0 0; width: 100%; max-height: 92dvh; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Neshan map controls offset (زیر لوگو) */
.mk-qy .maplibregl-ctrl-top-right { margin-top: 128px; }
.mk-qy .maplibregl-ctrl-group { background: rgba(14, 14, 15, .85); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mk-qy .maplibregl-ctrl-group button { filter: invert(1); }
@media (max-width: 767px) { .mk-qy .maplibregl-ctrl-top-right { margin-top: 118px; } }
