/* ==========================================================================
   مذاكرة 6.0 — «لحظة الفهم»
   مطابق لدليل الهوية البصرية (الشريحة 8 و9):
   بنفسجي عميق #3B1D7A للعناوين والاسم · بنفسجي #5B33C6 للأزرار والروابط · بنفسجي مضيء #7C4DE0 للتدرجات والإبراز
   أخضر مائي #1FA89A للنجاح والتقدم · نعناعي #7ADBA8 للخلفيات الناعمة · كهرماني #FBB414 لمسة تميز فقط
   محايد #F7F7F7 والأبيض. النسب: محايد 40% · بنفسجي 35% · أخضر 15% · كهرماني 10%.
   الخطوط: Cairo ExtraBold للعناوين، Cairo SemiBold/Regular للنص، Poppins SemiBold للاسم اللاتيني والأرقام.
   الشعار: برمزه الأصلي فقط، دون تدوير أو ظل أو تغيير لون، وعلى الخلفيات الداكنة داخل مربع فاتح.
   ========================================================================== */

:root {
	--deep: #3B1D7A;
	--violet: #5B33C6;
	--violet-2: #7C4DE0;
	--teal: #1FA89A;
	--mint: #7ADBA8;
	--amber: #FBB414;
	--neutral: #F7F7F7;
	--white: #FFFFFF;
	--text: #4A4166;
	--muted: #6B6188;
	--line: #E3DDF0;
	--tint: #EFEAFB;
	--tint-2: #D8CCF5;
	--night: #1B1038;
	--good: #127A55; --good-bg: #E2F6EC; --bad: #B4303F; --bad-bg: #FCE8EA; --amber-bg: #FFF1CC; --amber-ink: #6B4A00;
	--mint-bg: #E4F8EE;
	--g-violet: linear-gradient(135deg, #7C4DE0 0%, #5B33C6 100%);
	--g-deep: linear-gradient(160deg, #4A2496 0%, #3B1D7A 55%, #2E1663 100%);
	--g-green: linear-gradient(135deg, #7ADBA8 0%, #1FA89A 100%);
	/* توافق مع الأنماط الأقدم */
	--brand: var(--violet); --brand-2: var(--violet-2); --heading: var(--deep); --bg: var(--neutral); --surface: var(--white); --ink: var(--text); --ink-2: var(--muted);
	--font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
	--font-latin: 'Poppins', 'Cairo', system-ui, sans-serif;
	--r-sm: 12px; --r: 20px; --r-lg: 28px; --r-xl: 36px;
	--sh: 0 1px 2px rgba(59, 29, 122, .06), 0 10px 26px -14px rgba(59, 29, 122, .22);
	--sh-lg: 0 2px 4px rgba(59, 29, 122, .05), 0 30px 60px -28px rgba(59, 29, 122, .45);
	--max: 1200px; --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}

body { background: var(--neutral); color: var(--text); font-family: var(--font); }
.wrap { max-width: var(--max); }
main { padding-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--deep); font-weight: 800; background: none; -webkit-text-fill-color: currentColor; }
.num { font-family: var(--font-latin); font-variant-numeric: tabular-nums; }
::selection { background: var(--tint-2); color: var(--deep); }
:focus-visible { outline: 3px solid var(--violet-2); outline-offset: 3px; }

/* ===== الأزرار ===== */
.m-btn, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 14px; font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; border: 0; transition: transform .2s var(--spring), box-shadow .2s var(--ease), background .2s, color .2s; }
.m-btn:hover, .btn:hover { transform: translateY(-2px); }
.m-btn:active, .btn:active { transform: translateY(0) scale(.98); }
.m-btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.06rem; border-radius: 16px; }
.m-btn-sm, .btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; border-radius: 12px; }
.btn-xs { min-height: 32px; padding: 0 12px; font-size: .82rem; border-radius: 10px; }
.m-btn-primary { background: var(--g-violet); color: #fff; box-shadow: 0 10px 24px -12px rgba(91, 51, 198, .75); }
.m-btn-primary:hover { color: #fff; box-shadow: 0 14px 30px -12px rgba(91, 51, 198, .85); }
.btn-brand, .m-btn-violet { background: var(--g-violet); color: #fff; box-shadow: 0 10px 24px -12px rgba(91, 51, 198, .8); }
.btn-brand:hover, .m-btn-violet:hover { color: #fff; }
.m-btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.m-btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.m-btn-soft, .btn-line { background: var(--white); color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--line); }
.m-btn-soft:hover, .btn-line:hover { color: var(--violet); box-shadow: inset 0 0 0 1.5px var(--violet); background: var(--white); }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { color: var(--violet); }
.m-link { font-weight: 700; color: var(--violet); text-decoration: none; background-image: linear-gradient(var(--mint), var(--mint)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 2px; transition: background-size .3s var(--ease); }
.m-link:hover { background-size: 0 2px; background-position: 100% 100%; }
.x-inert { cursor: default; }
.x-inert:hover { transform: none; }
.btn.is-sent { pointer-events: none; opacity: .8; }

/* ===== الترويسة ===== */
.top { background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.top.is-stuck { box-shadow: 0 10px 30px -24px rgba(59, 29, 122, .6); }
.top-in { min-height: 74px; }
.brand img { height: 50px; }
.nav a, .nav .mega-btn { border-radius: 12px; color: var(--muted); font-weight: 600; background: none; box-shadow: none; }
.nav a:hover, .nav .mega-btn:hover { background: var(--tint); color: var(--deep); }
.nav .current-menu-item > a, .nav .current_page_item > a, .nav .current-menu-ancestor > a { background: var(--tint); color: var(--deep); font-weight: 800; box-shadow: none; }
.nav ul ul, .nav .drop, .nav .mega { border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--sh-lg); }
.top-actions .btn-brand { background: var(--g-violet); color: #fff; box-shadow: none; }
.x-search-btn { border-radius: 12px; }
.meter-pill .dots i.on { background: var(--teal); }

/* ===== الأقسام ===== */
.m-sec { padding-block: clamp(56px, 7vw, 100px); position: relative; scroll-margin-top: 84px; }
.m-sec-soft { margin-inline: calc(50% - 50vw); padding-inline: max(20px, calc(50vw - var(--max) / 2 + 20px)); background: var(--white); }
.m-head { display: grid; gap: 10px; justify-items: start; max-width: 660px; margin-bottom: clamp(26px, 3vw, 40px); }
.m-head-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.m-sec-soft .m-head-mark { background: var(--neutral); }
.m-head-mark img { width: 26px; height: auto; }
.m-head h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); line-height: 1.25; }
.m-head p { margin: 0; font-size: 1.07rem; line-height: 1.85; color: var(--muted); }
.m-head.is-light h2 { color: #fff; }
.m-head.is-light p { color: rgba(255, 255, 255, .8); }
.m-split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 32px; margin-bottom: clamp(24px, 3vw, 36px); }
.m-split-head .m-head { margin-bottom: 0; }
.m-after { margin: 26px 0 0; }

/* ===== البطل: صفحة دفتر بيضاء + عرض متحرك لطريقة الحل ===== */
.m-hero { position: relative; margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 60px); align-items: center; padding: clamp(32px, 5vw, 64px) clamp(22px, 4.5vw, 64px) clamp(32px, 5vw, 64px); border-radius: var(--r-xl); color: var(--text); overflow: hidden; isolation: isolate;
	background-color: #fff;
	background-image: linear-gradient(to left, transparent 54px, rgba(124, 77, 224, .28) 54px, rgba(124, 77, 224, .28) 56px, transparent 56px), repeating-linear-gradient(180deg, transparent 0 41px, #ECE7F7 41px 42px);
	box-shadow: var(--sh); }
html[dir="ltr"] .m-hero { background-image: linear-gradient(to right, transparent 54px, rgba(124, 77, 224, .28) 54px, rgba(124, 77, 224, .28) 56px, transparent 56px), repeating-linear-gradient(180deg, transparent 0 41px, #ECE7F7 41px 42px); }
.m-hero::before { content: ""; position: absolute; inset: auto -80px -140px auto; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(122, 219, 168, .35), transparent 70%); z-index: -1; }
.m-hero::after { content: ""; position: absolute; top: -120px; inset-inline-end: 8%; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 77, 224, .18), transparent 70%); z-index: -1; }
.m-hero-copy { padding-inline-start: 36px; }
.m-hero-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 6px 16px 6px 6px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh); font-weight: 600; font-size: .92rem; color: var(--deep); }
.m-tile { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--tint); }
.m-tile img { width: 24px; height: auto; }
.m-hero h1 { color: var(--deep); font-size: clamp(2.6rem, 1.4rem + 4.4vw, 4.6rem); line-height: 1.12; letter-spacing: -.02em; }
.m-lead { margin: 20px 0 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.9; color: var(--muted); max-width: 48ch; }
.m-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.m-hero-stats { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 10px; }
.m-hero-stats li { padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 2px; }
.m-hero-stats b { font-size: 1.5rem; font-weight: 600; color: var(--deep); line-height: 1.2; }
.m-hero-stats span { font-size: .8rem; color: var(--muted); }
.m-hero-stats li:first-child { background: var(--tint); box-shadow: none; }
.m-hero-stats li:first-child b { color: var(--violet); }

.m-stage { position: relative; padding-top: 30px; }
.m-page { position: absolute; top: 60px; bottom: 50px; width: 56%; border-radius: var(--r-lg) var(--r-lg) 12px 12px; z-index: 0; transform-origin: 50% 100%; }
.m-page-1 { inset-inline-start: 0; background: var(--teal); transform: rotate(9deg) translateY(-6px); }
.m-page-2 { inset-inline-end: 0; background: var(--mint); transform: rotate(-9deg) translateY(-6px); }
.m-demo { position: relative; z-index: 1; margin: 0; background: #fff; border-radius: var(--r-lg); box-shadow: 0 40px 70px -32px rgba(59, 29, 122, .55), 0 0 0 1px var(--line); overflow: hidden; }
.m-demo-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--neutral); border-bottom: 1px solid var(--line); }
.m-demo-chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--tint-2); }
.m-demo-chrome i:nth-child(1) { background: var(--tint-2); } .m-demo-chrome i:nth-child(2) { background: var(--mint); }
.m-demo-chrome span { margin-inline-start: auto; font: 600 .74rem var(--font-latin); color: var(--muted); direction: ltr; padding: 3px 12px; border-radius: 99px; background: #fff; }
.m-demo-body { position: relative; padding: 22px 22px 16px; min-height: 452px; }
.m-demo-bulb { position: absolute; top: 12px; inset-inline-start: 50%; transform: translateX(50%); }
html[dir="ltr"] .m-demo-bulb { transform: translateX(-50%); }
.m-demo-bulb .bulb { width: 46px; height: 46px; }
.m-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--tint); color: var(--deep); font-weight: 700; font-size: .84rem; }
.m-card-count { font-size: .86rem; color: var(--muted); }
.m-card-bar { height: 8px; border-radius: 99px; background: var(--tint); margin: 16px 0 6px; overflow: hidden; }
.m-card-bar span { display: block; height: 100%; border-radius: 99px; background: var(--g-green); transition: width .6s var(--ease); }
.m-card-q { margin: 14px 0 12px; min-height: 3.2em; font-size: 1.18rem; font-weight: 800; line-height: 1.6; color: var(--deep); }
.m-opts { display: grid; gap: 8px; }
.m-opts .opt { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; min-height: 50px; padding: 7px 12px; border-radius: 15px; border: 1.5px solid var(--line); background: #fff; font: 700 1rem/1.5 var(--font); color: var(--deep); transition: border-color .25s, background .25s, transform .25s var(--spring); }
.m-opts .opt .l { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--violet); font-weight: 800; transition: background .25s, color .25s; }
.m-opts .opt.is-hover { border-color: var(--violet-2); background: var(--tint); }
.m-opts .opt.is-press { transform: scale(.97); }
.m-opts .opt.right { border-color: var(--teal); background: var(--good-bg); animation: m-pop .45s var(--spring); }
.m-opts .opt.right .l { background: var(--teal); color: #fff; }
.m-opts .opt.dim { opacity: .55; }
@keyframes m-pop { 40% { transform: scale(1.03); } }
.m-demo-fb { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--good-bg); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); min-height: 72px; }
.m-demo-fb.show { opacity: 1; transform: none; }
.m-demo-fb b { display: block; color: var(--good); }
.m-demo-fb p { margin: 2px 0 0; font-size: .9rem; color: var(--text); line-height: 1.7; }
.m-card-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.m-demo-ring { width: 30px; height: 30px; }
.m-demo-ring svg { width: 30px; height: 30px; transform: rotate(-90deg); }
.m-demo-ring circle { fill: none; stroke: var(--tint); stroke-width: 5; }
.m-demo-ring .v { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .6s var(--ease); }
.m-card-score { font-size: .9rem; color: var(--muted); }
.m-cursor { position: absolute; z-index: 4; width: 26px; height: 26px; top: 0; left: 0; opacity: 0; transition: transform .7s cubic-bezier(.45, .05, .25, 1), opacity .3s; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(27, 16, 56, .35)); }
.m-cursor.on { opacity: 1; }
.m-cursor.tap { animation: m-tap .3s; }
@keyframes m-tap { 50% { scale: .82; } }
.m-demo-cap { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--neutral); border-top: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--muted); }
.m-demo-live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(31, 168, 154, .5); animation: m-live 1.8s infinite; }
@keyframes m-live { 70% { box-shadow: 0 0 0 8px rgba(31, 168, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 168, 154, 0); } }
.m-burst { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.m-burst i { position: absolute; top: 45%; inset-inline-start: 50%; width: 10px; height: 10px; border-radius: 3px; animation: m-confetti 1s var(--ease) forwards; }
@keyframes m-confetti { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
@media (max-width: 980px) { .m-hero { grid-template-columns: 1fr; } .m-hero-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
	.m-hero { margin-inline: -8px; border-radius: 26px; padding: 26px 16px 28px; background-image: repeating-linear-gradient(180deg, transparent 0 41px, #ECE7F7 41px 42px); }
	.m-hero-copy { padding-inline-start: 0; }
	.m-hero h1 { font-size: 2.45rem; }
	.m-actions .m-btn { flex: 1 1 100%; }
	.m-hero-stats b { font-size: 1.25rem; }
	.m-demo-body { padding: 18px 14px 14px; min-height: 430px; }
	.m-card-q { font-size: 1.05rem; }
}

/* ===== شريط المواد المتحرك ===== */
.m-marquee { position: relative; overflow: hidden; margin: 22px calc(50% - 50vw) 0; padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.m-marquee-track { display: flex; gap: 12px; width: max-content; animation: m-scroll 50s linear infinite; }
.m-marquee:hover .m-marquee-track { animation-play-state: paused; }
@keyframes m-scroll { to { transform: translateX(50%); } }
html[dir="ltr"] .m-marquee-track { animation-name: m-scroll-ltr; }
@keyframes m-scroll-ltr { to { transform: translateX(-50%); } }
.m-mq { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; color: var(--deep); white-space: nowrap; }
.m-mq i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-style: normal; background: var(--k-bg); color: var(--k); font: 800 .95rem/1 var(--font-latin); }
.m-mq i svg { width: 17px; height: 17px; }

/* هوية المواد: مستمدة من ألوان الدليل وأقرب مشتقاتها */
.k-math    { --k: #5B33C6; --k-bg: #EFEAFB; }
.k-physics { --k: #7C4DE0; --k-bg: #F0EAFE; }
.k-chem    { --k: #1FA89A; --k-bg: #E2F6F3; }
.k-bio     { --k: #127A55; --k-bg: #E4F8EE; }
.k-arabic, .k-verbal { --k: #B07A00; --k-bg: #FFF1CC; }
.k-english { --k: #3B1D7A; --k-bg: #E6DDFB; }
.k-history { --k: #8A5A00; --k-bg: #FFF4DA; }
.k-earth   { --k: #1FA89A; --k-bg: #E4F8EE; }
.k-tahsili { --k: #5B33C6; --k-bg: #E4F8EE; }
.k-other   { --k: #5B33C6; --k-bg: #EFEAFB; }

/* ===== المناهج والمواد ===== */
.m-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.m-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 13px; border: 0; background: none; font: 700 .96rem var(--font); color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.m-tab .cflag { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.m-tab:hover { background: var(--tint); color: var(--deep); }
.m-tab.on { background: var(--deep); color: #fff; }
.m-panel.fade-in { animation: m-fade .35s var(--ease); }
@keyframes m-fade { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 640px) { .m-tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; max-width: 100%; scrollbar-width: none; } .m-tab { flex: none; } }
.m-cur { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; padding: 16px; margin-bottom: 18px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh); }
.m-cur-art { aspect-ratio: 16/10; border-radius: var(--r); overflow: hidden; background: var(--tint); }
.m-cur-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-cur-copy h3 { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; }
.m-cur-copy h3 .cflag { width: 30px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.m-cur-copy p { margin: 6px 0 12px; color: var(--muted); }
.m-cur-facts { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.m-cur-facts li { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--mint-bg); color: var(--good); font-size: .86rem; font-weight: 700; }
.m-cur-facts b { font-size: 1rem; }
@media (max-width: 640px) { .m-cur { grid-template-columns: 1fr; } }
.m-subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.m-subject { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: #fff; box-shadow: var(--sh); text-decoration: none; color: var(--text); overflow: hidden; isolation: isolate; transition: transform .25s var(--spring), box-shadow .25s var(--ease); }
.m-subject::after { content: ""; position: absolute; inset-inline-end: -30px; bottom: -40px; width: 110px; height: 110px; border-radius: 50%; background: var(--k-bg); z-index: -1; transition: transform .4s var(--ease); }
.m-subject:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.m-subject:hover::after { transform: scale(1.5); }
.m-subject-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--k-bg); color: var(--k); font: 800 1.5rem/1 var(--font-latin); transition: transform .3s var(--spring); }
.m-subject:hover .m-subject-ico { transform: rotate(-6deg) scale(1.06); }
.m-subject-ico svg { width: 28px; height: 28px; }
.m-subject-txt { display: grid; gap: 2px; min-width: 0; }
.m-subject-txt b { font-size: 1.12rem; color: var(--deep); font-weight: 800; }
.m-subject-txt small { color: var(--muted); font-size: .84rem; }
.m-subject .mini-ring { color: var(--k); }
.m-subject .demo-badge { grid-column: 2 / -1; justify-self: start; font-size: .68rem; margin-top: -6px; }
.m-empty { display: grid; justify-items: center; gap: 8px; padding: 32px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1.5px dashed var(--line); text-align: center; border: 1.5px dashed var(--line); }
.m-empty b { color: var(--deep); font-size: 1.1rem; }
.m-empty p { margin: 0; color: var(--muted); }

/* ===== كيف تعمل ===== */
.m-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.m-steps::before { content: ""; position: absolute; top: 104px; inset-inline: 10%; border-top: 2.5px dashed var(--tint-2); z-index: 0; }
.m-step { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 8px; padding: 0 6px; }
.m-step-art { width: 100%; height: 132px; border-radius: var(--r-lg); display: grid; place-items: center; grid-auto-flow: column; gap: 6px; background: var(--neutral); transition: transform .3s var(--spring); }
.m-step:hover .m-step-art { transform: translateY(-5px) rotate(-1deg); }
.s1 .m-step-art { background: var(--tint); } .s2 .m-step-art { background: var(--mint-bg); } .s3 .m-step-art { background: var(--mint-bg); } .s4 .m-step-art { background: var(--tint); }
.m-step-n { margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--g-violet); color: #fff; font-size: 1.05rem; font-weight: 600; box-shadow: 0 0 0 6px #fff, 0 10px 20px -8px rgba(91, 51, 198, .8); }
.m-step h3 { font-size: 1.2rem; }
.m-step p { margin: 0; color: var(--muted); font-size: .94rem; max-width: 26ch; }
.a-pill { font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--muted); }
.a-pill.is-on { background: var(--deep); color: #fff; }
.a-opt { width: 46px; height: 46px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.a-opt.is-on { background: var(--teal); box-shadow: none; transform: scale(1.1); }
.s3 .bulb { width: 74px; height: 74px; }
.a-day { width: 26px; height: 52px; border-radius: 9px; background: #fff; }
.a-day.is-on { background: var(--teal); transform: translateY(-8px); }
@media (max-width: 900px) { .m-steps { grid-template-columns: 1fr 1fr; row-gap: 34px; } .m-steps::before { display: none; } }
@media (max-width: 480px) { .m-steps { grid-template-columns: 1fr; } }

/* ===== الأدوات (بينتو) ===== */
.m-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(180px, auto); gap: 16px; }
.m-tile-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh); overflow: hidden; transition: transform .25s var(--spring), box-shadow .25s; }
.m-tile-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.m-tc-copy h3 { font-size: 1.2rem; }
.m-tc-copy p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.t-fix { grid-column: span 2; grid-row: span 2; background: var(--g-deep); }
.t-fix h3 { color: #fff; font-size: 1.5rem; }
.t-fix .m-tc-copy p { color: rgba(255, 255, 255, .78); }
.m-mini { background: #fff; border-radius: var(--r); padding: 18px; margin-top: auto; }
.m-mini .opt { border-radius: 14px; }
.t-units { grid-column: span 2; background: var(--mint-bg); }
.m-units { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.m-units a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #fff; text-decoration: none; color: var(--deep); font-weight: 700; transition: transform .2s var(--spring); }
.m-units a:hover { transform: translateX(-4px); }
.t-search .m-search { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--neutral); box-shadow: inset 0 0 0 2px var(--violet-2); color: var(--deep); text-decoration: none; font-weight: 700; font-size: .9rem; margin-top: auto; }
.m-search span { flex: 1; }
.m-search kbd { font: 600 .7rem var(--font-latin); padding: 2px 7px; border-radius: 6px; background: var(--tint); }
.m-search .ico { width: 18px; height: 18px; color: var(--violet); }
.t-exams { background: var(--amber-bg); }
.m-years { display: flex; gap: 6px; }
.m-years span { padding: 6px 12px; border-radius: 10px; background: #fff; font-weight: 600; color: var(--deep); }
.t-exams .m-link { margin-top: auto; align-self: flex-start; }
.t-dash { grid-column: span 2; flex-direction: row; align-items: center; justify-content: space-between; }
.t-dash .m-tc-copy { max-width: 220px; }
.m-dash { display: flex; align-items: center; gap: 18px; position: relative; }
.m-ring { position: relative; width: 104px; height: 104px; display: grid; place-items: center; }
.m-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.m-ring circle { fill: none; stroke: var(--tint); stroke-width: 12; }
.m-ring .v { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 72 100; }
.m-ring b { font-size: 1.3rem; color: var(--deep); }
.m-streak { display: grid; grid-template-columns: repeat(7, 18px); gap: 5px; }
.m-streak span { height: 34px; border-radius: 6px; background: var(--tint); }
.m-streak span.on { background: var(--g-green); }
.m-dash small { position: absolute; bottom: -18px; inset-inline-start: 0; font-size: .7rem; color: var(--muted); }
.t-limit { grid-column: span 2; }
.m-meter { margin-top: auto; padding: 14px; border-radius: 14px; background: var(--neutral); }
@media (max-width: 1000px) { .m-bento { grid-template-columns: 1fr 1fr; } .t-fix { grid-row: auto; } .t-dash { flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) { .m-bento { grid-template-columns: 1fr; } .t-fix, .t-units, .t-dash, .t-limit { grid-column: auto; } }

/* ===== بنك الأخطاء والخطة ===== */
.m-deep { margin-inline: calc(50% - 50vw); padding-inline: max(20px, calc(50vw - var(--max) / 2 + 20px)); background: var(--g-deep); color: #fff; overflow: hidden; isolation: isolate; }
.m-deep::before { content: ""; position: absolute; inset-inline-start: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(122, 219, 168, .22), transparent); z-index: -1; }
.m-deep-in { max-width: var(--max); margin-inline: auto; }
.m-deep .m-head-mark { background: #fff; box-shadow: none; }
.m-loop { display: grid; grid-template-columns: 250px minmax(0, 1fr) 260px; gap: 26px; align-items: center; }
.m-slip { position: relative; padding: 22px 18px; border-radius: var(--r); background: #fff; color: var(--text); transform: rotate(-3deg); box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .7); border-top: 6px solid var(--bad); transition: transform .3s var(--spring); }
.m-slip:hover { transform: rotate(0); }
.m-slip small { font-weight: 800; color: var(--bad); }
.m-slip p { margin: 6px 0 12px; font-weight: 800; color: var(--deep); line-height: 1.7; }
.m-slip-ans { display: flex; gap: 8px; }
.m-slip-ans span { padding: 4px 12px; border-radius: 9px; font-weight: 600; }
.m-slip-ans .is-bad { background: var(--bad-bg); color: var(--bad); text-decoration: line-through; }
.m-slip-ans .is-ok { background: var(--teal); color: #fff; }
.m-slip em { display: block; margin-top: 10px; font-style: normal; font-size: .82rem; color: var(--muted); }
.m-planner { background: #fff; color: var(--text); border-radius: var(--r-lg); padding: 18px; box-shadow: 0 40px 70px -34px rgba(0, 0, 0, .7); }
.m-planner .ps-day { border-radius: 14px; }
.m-planner .ps-day.is-target { background: var(--mint-bg); border-color: var(--teal); }
.m-planner .ps-chip { background: var(--teal); color: #fff; border-radius: 10px; }
.m-loop-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.m-loop-notes li { position: relative; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; color: rgba(255, 255, 255, .8); font-size: .94rem; line-height: 1.7; }
.m-loop-notes span { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--g-green); color: var(--deep); font-weight: 600; }
.m-loop-notes b { color: #fff; font-size: 1.05rem; }
.m-deep-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 34px; padding: 18px 22px; border-radius: var(--r); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.m-deep-foot p { margin: 0; color: rgba(255, 255, 255, .9); font-weight: 600; }
@media (max-width: 1080px) { .m-loop { grid-template-columns: 1fr 1.6fr; } .m-loop-notes { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .m-loop { grid-template-columns: 1fr; } .m-loop-notes { grid-template-columns: 1fr; } .m-slip { max-width: 300px; } }

/* ===== جدول الامتحانات ===== */
.x-matrix-wrap { overflow-x: auto; max-width: 100%; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh); }
.x-matrix { width: 100%; border-collapse: separate; border-spacing: 0; }
.x-matrix th, .x-matrix td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: start; background: none !important; }
.x-matrix td { text-align: center; }
.x-matrix thead th { font-size: .8rem; color: var(--muted); font-weight: 700; background: var(--neutral) !important; }
.x-matrix thead th.num { font-size: 1.2rem; font-weight: 600; color: var(--deep); text-align: center; }
.x-matrix tbody tr:last-child > * { border-bottom: 0; }
.x-matrix tbody tr { transition: background .2s; }
.x-matrix tbody tr:hover { background: #FBFAFF; }
.x-mx-subj { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--deep); text-decoration: none; }
.x-mx-subj:hover { color: var(--violet); }
.x-mx-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--k-bg); color: var(--k); font: 800 1rem/1 var(--font-latin); flex: none; }
.x-mx-ico svg { width: 18px; height: 18px; }
.x-mx-cell { display: inline-flex; align-items: stretch; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; }
.x-mx-open { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: .84rem; font-weight: 700; color: var(--deep); text-decoration: none; }
.x-mx-open svg { width: 16px; height: 16px; color: var(--muted); }
.x-mx-open:hover { background: var(--tint); }
.x-mx-act { display: grid; place-items: center; width: 38px; background: var(--g-violet); color: #fff; }
.x-mx-act svg { width: 14px; height: 14px; }
.x-mx-print { display: grid; place-items: center; width: 34px; color: var(--muted); border-inline-start: 1px solid var(--line); }
.x-mx-print:hover { background: var(--tint); }
.x-mx-print svg { width: 15px; height: 15px; }
.x-mx-none { color: var(--tint-2); font-weight: 800; }
@media (max-width: 600px) {
	.x-matrix th, .x-matrix td { padding: 10px 8px; }
	.x-mx-open .x-mx-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.x-mx-open { padding: 0 9px; }
	.x-mx-print, .x-matrix .demo-badge { display: none; }
	.x-matrix { min-width: 0 !important; }
	.x-matrix th[scope="row"] { width: 1%; white-space: nowrap; }
	.x-mx-subj { font-size: .9rem; gap: 6px; }
	.x-mx-ico { width: 28px; height: 28px; }
}

/* ===== الباقات ===== */
.x-price-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 26px; }
.x-pricing .seg { border-radius: 16px; padding: 5px; background: #fff; box-shadow: var(--sh); border: 0; }
.x-pricing .seg button, .x-pricing .seg .chip { border-radius: 12px; box-shadow: none; border: 0; background: none; }
.x-pricing .seg .on { background: var(--deep); color: #fff; }
.pricing .x-plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; max-width: 980px; margin: 0 auto !important; }
.pricing .x-plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px; margin: 0; border: 0; border-radius: var(--r-xl); box-shadow: var(--sh); background: #fff; }
.pricing .plan.x-plan-pro { background: var(--g-deep); color: #fff; box-shadow: var(--sh-lg); border: 0; }
.x-plan-pro h3, .x-plan-pro .x-price .num { color: #fff; }
.x-plan-pro .x-plan-head p, .x-plan-pro .price-note, .x-plan-pro .x-price small { color: rgba(255, 255, 255, .78); }
.x-plan-head { display: flex; gap: 12px; align-items: center; }
.x-plan-head h3 { font-size: 1.45rem; }
.x-plan-head p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.x-plan-ico { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--violet); }
.x-plan-pro .x-plan-ico { background: #fff; color: var(--violet); }
.x-plan-flag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--mint); color: var(--deep); font-weight: 800; font-size: .8rem; }
.x-plan-flag .ico { width: 14px; height: 14px; }
.x-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0; }
.x-price .num { font: 600 3.3rem/1 var(--font-latin); color: var(--deep); }
.x-price small { color: var(--muted); font-weight: 600; }
.x-plan-pro .save-tag { background: var(--mint); color: var(--deep); }
.x-plan-btn { width: 100%; }
.x-plan-pro .x-plan-btn { background: #fff; color: var(--deep); box-shadow: none; }
.x-feat { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.x-feat li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.x-feat .ico { width: 20px; height: 20px; flex: none; padding: 3px; border-radius: 50%; background: var(--good-bg); color: var(--teal); margin-top: 2px; }
.x-plan-pro .x-feat .ico { background: rgba(122, 219, 168, .2); color: var(--mint); }
.x-plan-pro .x-feat li { color: rgba(255, 255, 255, .92); }
.x-feat-head { font-weight: 800; color: var(--mint); font-size: .86rem; }
.x-pricing .today-meter { padding: 12px 14px; border-radius: 14px; background: var(--neutral); }
.pricing .x-compare { grid-column: 1 / -1; padding: 26px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--sh); }
.x-compare h3 { font-size: 1.15rem; margin-bottom: 10px; }
.x-compare .tw { overflow-x: auto; border: 0; }
.x-compare table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.x-compare th, .x-compare td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: start; background: transparent !important; white-space: nowrap; }
.x-compare tbody th { font-weight: 700; color: var(--deep); white-space: normal; }
.x-compare thead th { color: var(--muted); font-size: .8rem; }
.x-compare td { text-align: center; color: var(--muted); }
.x-compare .c-pro { color: var(--deep); font-weight: 700; }
.x-compare .yes .ico { color: var(--teal); width: 18px; } .x-compare .no .ico { color: var(--tint-2); width: 18px; }
.x-compare tr:last-child > * { border-bottom: 0; }
.assure li { border-radius: var(--r); box-shadow: var(--sh); border: 0; background: #fff; }
@media (max-width: 680px) { .pricing .x-plans { grid-template-columns: minmax(0, 1fr); } .pricing .x-plan-pro { order: -1; } .x-pricing .seg-country { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; } }

/* ===== المكتبة والمقالات ===== */
.m-lib { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.m-lib > .x-post-lead { grid-column: span 2; grid-row: span 2; }
.m-lib > .x-post-row { grid-column: span 2; padding: 12px; border-radius: var(--r); background: #fff; box-shadow: var(--sh); }
@media (max-width: 1000px) { .m-lib { grid-template-columns: 1fr 1fr; } .m-lib > .x-post-lead { grid-row: auto; } }
@media (max-width: 600px) { .m-lib { grid-template-columns: 1fr; } .m-lib > * { grid-column: auto !important; } }
.x-cover { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); background: var(--tint); aspect-ratio: 16/10; text-decoration: none; isolation: isolate; color: #fff; }
.x-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.x-cover:hover img { transform: scale(1.05); }
.x-cover-art { position: absolute; inset: 0; background: var(--g-deep); }
.x-cover .x-cover-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(27, 16, 56, .95) 0%, rgba(59, 29, 122, .78) 36%, rgba(59, 29, 122, .2) 66%, rgba(59, 29, 122, 0) 84%); }
.x-cover-txt { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: clamp(14px, 2.2vw, 24px); display: grid; gap: 8px; justify-items: start; }
.x-cover-kicker { font-size: .76rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: var(--amber); color: var(--deep); }
.x-cover-title { margin: 0; color: #fff; font-family: var(--font); font-weight: 800; font-size: 1.15rem; line-height: 1.5; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.x-post-lead .x-cover { height: 100%; min-height: 360px; aspect-ratio: auto; }
.x-post-lead .x-cover-title { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.3rem); line-height: 1.35; -webkit-line-clamp: 4; }
.x-post-lead .x-cover-txt { padding: clamp(18px, 3vw, 32px); }
.m-lib > .x-post-lead .x-post-body { display: none; }
.x-post { min-width: 0; }
.x-post-card, .x-post-lead { display: flex; flex-direction: column; gap: 12px; }
.x-post-body { display: grid; gap: 10px; }
.x-ex { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.85; }
.x-post-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.x-meta { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.x-post-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; }
.x-row-img { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--tint); }
.x-row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.x-post-row:hover .x-row-img img { transform: scale(1.07); }
.x-row-body { display: grid; gap: 4px; min-width: 0; }
.x-row-body h3, .x-post-mini h3 { font-size: 1.02rem; line-height: 1.55; font-weight: 800; }
.x-row-body h3 a, .x-post-mini h3 a { color: var(--deep); text-decoration: none; }
.x-row-body h3 a:hover, .x-post-mini h3 a:hover { color: var(--violet); }
.x-kicker-link { font-size: .76rem; font-weight: 700; color: var(--teal); text-decoration: none; }
.x-post-mini { display: block; padding-block: 12px; border-top: 1px solid var(--line); }
.x-num { display: none; }
.x-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: var(--tint); color: var(--deep); font-weight: 700; font-size: .82rem; text-decoration: none; }
.x-chip:hover { background: var(--tint-2); }
.x-chip.on { background: var(--deep); color: #fff; }
.x-chip .cflag { width: 20px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.x-chip-glass { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.x-chip-glass:hover { background: rgba(255, 255, 255, .26); color: #fff; }

/* ===== الختام ===== */
.m-close { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; margin-block: clamp(30px, 5vw, 70px); padding: clamp(26px, 4vw, 48px); border-radius: var(--r-xl); background: var(--g-violet); color: #fff; overflow: hidden; isolation: isolate; }
.m-close::after { content: ""; position: absolute; inset-inline-start: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(122, 219, 168, .35), transparent); z-index: -1; }
.m-close-tile { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 28px; background: #fff; }
.m-close-tile img { width: 70px; height: auto; }
.m-close h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.3rem); line-height: 1.3; }
.m-close p { margin: 8px 0 0; color: rgba(255, 255, 255, .86); }
.m-close-act { display: grid; gap: 12px; justify-items: center; }
.m-close-teach { color: #fff; font-weight: 700; font-size: .9rem; }
@media (max-width: 800px) { .m-close { grid-template-columns: 1fr; text-align: start; } .m-close-act { justify-items: start; } .m-close-tile { width: 84px; height: 84px; } .m-close-tile img { width: 52px; } }

/* ===== الصفحات الداخلية ===== */
.crumbs { margin-top: 20px; }
.x-pagehero { position: relative; padding: 30px 0 24px; max-width: 780px; }
.x-pagehero h1, .pagehead h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); line-height: 1.2; color: var(--deep); }
.x-kicker { margin: 0 0 8px; font-size: .9rem; font-weight: 700; color: var(--teal); }
.x-kicker::before { content: none !important; }
.x-sub { color: var(--muted); font-size: 1.06rem; line-height: 1.85; max-width: 62ch; margin: 10px 0 0; }
.pagehead { padding-block: 28px 22px; }
.pagehead-media { border-radius: var(--r-xl); background: #fff; border: 0; box-shadow: var(--sh); padding: clamp(20px, 3vw, 36px); margin-top: 12px; }
.pagehead-media .ph-media img { border-radius: var(--r-lg); box-shadow: none; }
.side, .form-card, .dcard, .feature, .step, .exam-item, .station-card, .qrow, .filters, .country, .subj { border-radius: var(--r); }
.side { box-shadow: var(--sh); border: 0; }
.x-block { padding-block: 34px; }
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.site-footer .widget-title { color: var(--deep); }
.x-filter { display: grid; gap: 10px; margin-bottom: 28px; position: sticky; top: 74px; z-index: 20; padding: 12px 0; background: rgba(247, 247, 247, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.admin-bar .x-filter { top: 106px; }
.x-filter-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.x-filter-row::-webkit-scrollbar { display: none; }
.x-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--deep); font-weight: 700; font-size: .92rem; text-decoration: none; }
.x-pill .num { font-size: .76rem; padding: 1px 7px; border-radius: 99px; background: var(--tint); color: var(--violet); }
.x-pill:hover { box-shadow: inset 0 0 0 1.5px var(--violet); }
.x-pill.on { background: var(--deep); color: #fff; box-shadow: none; }
.x-pill.on .num { background: rgba(255, 255, 255, .2); color: #fff; }
.x-filter-label { flex: none; font-weight: 700; font-size: .84rem; color: var(--muted); }
.x-filter-c .x-chip { flex: none; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.x-filter-c .x-chip.on { background: var(--deep); color: #fff; box-shadow: none; }
.x-lib-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; margin-bottom: 30px; }
.x-lib-side { display: grid; gap: 20px; align-content: start; }
.x-lib-side .x-cover { aspect-ratio: 16/9.5; }
.x-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; margin-bottom: 44px; }
.x-mosaic-item.is-row { padding: 12px; border-radius: var(--r); background: #fff; box-shadow: var(--sh); }
@media (min-width: 1000px) {
	.x-mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.x-mosaic-item.is-card { grid-column: span 2; }
	.x-mosaic-item.is-row { grid-column: span 3; }
	.x-mosaic-item.is-row .x-post-row { grid-template-columns: 150px 1fr; }
}
@media (max-width: 900px) { .x-lib-top { grid-template-columns: 1fr; } .x-mosaic { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .x-mosaic { grid-template-columns: 1fr; } }
.x-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .x-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .x-grid-3 { grid-template-columns: 1fr; } }
.x-search-form { margin-top: 18px; max-width: 560px; }
.nav-links, .pagination { margin-bottom: 60px; }

/* المقال: Cairo فقط حسب الدليل */
.x-article { margin-top: 16px; }
.x-article-cover { position: relative; overflow: hidden; border-radius: var(--r-xl); aspect-ratio: 16/7; min-height: 340px; background: var(--tint); isolation: isolate; }
.x-article-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.x-article-cover .x-cover-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(27, 16, 56, .95) 0%, rgba(59, 29, 122, .82) 32%, rgba(59, 29, 122, .25) 62%, rgba(59, 29, 122, 0) 84%); }
.x-article-title { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: clamp(20px, 4vw, 48px); display: grid; gap: 14px; justify-items: start; }
.x-article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.x-article .x-article-title h1.x-cover-h1 { color: #fff; -webkit-text-fill-color: #fff; background: none; font-family: var(--font); font-weight: 800; font-size: clamp(1.8rem, 1rem + 2.8vw, 3.2rem); line-height: 1.3; max-width: 24ch; }
.x-article-sub { max-width: 760px; margin: 26px auto 0; display: grid; gap: 14px; }
.x-article-sub .x-lead { margin: 0; font-size: 1.2rem; line-height: 1.9; color: var(--muted); }
.x-article-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.x-article-meta > * { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .84rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.x-article-meta a { color: var(--violet); }
.x-article-meta .ico { width: 16px; height: 16px; }
.x-article-cols { margin-top: 30px; }
.x-prose { font-family: var(--font); font-size: 1.08rem; line-height: 2; color: var(--text); max-width: 70ch; }
.x-prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.x-prose h3 { font-size: 1.22rem; }
.x-prose blockquote { border-inline-start: 4px solid var(--teal); background: var(--mint-bg); border-radius: 0 16px 16px 0; padding: 14px 20px; margin-inline: 0; }
.x-ready { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 26px; border-radius: var(--r-lg); background: var(--g-deep); color: #fff; border: 0; margin-block: 34px; }
.x-ready h2 { color: #fff; font-size: 1.3rem; margin: 0; }
.x-ready p { color: rgba(255, 255, 255, .82); margin: 4px 0 0; }
.x-ready .btn-light { background: #fff; color: var(--deep); }
.x-ready-bulb { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 20px; background: #fff; }
.x-ready-bulb .bulb { width: 50px; height: 50px; }
@media (max-width: 640px) { .x-ready { grid-template-columns: 1fr; } .x-ready-bulb { display: none; } .x-article-cover { aspect-ratio: auto; min-height: 380px; } }
.x-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0; }
.x-post-nav a { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r); background: #fff; box-shadow: var(--sh); text-decoration: none; transition: transform .2s var(--spring); }
.x-post-nav a:hover { transform: translateY(-3px); }
.x-post-nav small { color: var(--muted); font-weight: 600; }
.x-post-nav b { color: var(--deep); line-height: 1.5; }
.x-post-nav a:only-child { grid-column: 1 / -1; }
@media (max-width: 560px) { .x-post-nav { grid-template-columns: 1fr; } }
.x-convert { border-radius: var(--r-lg); }
.x-side-link { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .88rem; color: var(--violet); text-decoration: none; }
.x-related { padding: 44px 0 70px; margin-top: 20px; }
.x-head { margin-bottom: 22px; }
.x-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }

/* التواصل */
.x-contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 26px; align-items: start; padding-bottom: 70px; }
.x-form-card { padding: clamp(20px, 3vw, 34px); border-radius: var(--r-xl); border: 0; box-shadow: var(--sh-lg); background: #fff; }
.x-topics { border: 0; padding: 0; margin: 0 0 14px; }
.x-topics legend { font-weight: 800; color: var(--deep); margin-bottom: 8px; }
.x-topic-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.x-topic { position: relative; }
.x-topic input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.x-topic span { display: inline-block; padding: 9px 15px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; font-weight: 600; font-size: .9rem; color: var(--muted); transition: all .2s; }
.x-topic input:checked + span { background: var(--deep); color: #fff; box-shadow: none; }
.x-topic input:focus-visible + span { outline: 3px solid var(--violet-2); outline-offset: 2px; }
.x-form-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.x-form-foot p { display: flex; align-items: center; gap: 6px; margin: 0; }
.x-form-foot .ico { width: 17px; height: 17px; color: var(--teal); }
.x-contact-side { display: grid; gap: 10px; }
.x-info { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: #fff; box-shadow: var(--sh); text-decoration: none; color: var(--text); transition: transform .2s var(--spring); }
.x-info.is-link:hover { transform: translateY(-2px); }
.x-info b { display: block; color: var(--deep); }
.x-info small { color: var(--muted); line-height: 1.7; display: block; }
.x-info-ico { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--violet); font-weight: 800; }
.x-info-ico.mint { background: var(--mint-bg); color: var(--teal); }
.x-info-ico.amber { background: var(--tint); color: var(--violet); }
.x-info-ico svg, .x-info-ico .ico { width: 21px; height: 21px; }
.x-contact-img { width: 100%; height: auto; border-radius: var(--r); margin-top: 6px; }
@media (max-width: 900px) { .x-contact { grid-template-columns: 1fr; } }

/* صفحة الامتحانات */
.x-exfilter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; padding: 18px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh); margin-bottom: 22px; }
.x-exfilter .f { display: grid; gap: 6px; margin: 0; }
.x-exfilter label { font-weight: 700; color: var(--deep); font-size: .9rem; }
.x-exfilter select { width: 100%; font: inherit; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--neutral); color: var(--deep); min-height: 46px; }
.x-exfilter-acts { display: flex; gap: 8px; }
@media (max-width: 760px) { .x-exfilter { grid-template-columns: 1fr; } }
.x-result-line { font-weight: 800; color: var(--deep); margin: 0 0 14px; }
.x-exam-groups { display: grid; gap: 34px; }
.x-exam-groups > * { min-width: 0; }
.x-exam-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.x-exam-group-head > div { flex: 1; }
.x-exam-group-head h2 { font-size: 1.5rem; }
.x-exam-group-head h2 small { font-size: .9rem; color: var(--muted); font-weight: 600; margin-inline-start: 6px; }
.x-exam-group-head p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.x-eg-flag { padding: 7px; border-radius: 14px; background: #fff; box-shadow: var(--sh); line-height: 0; }
.x-eg-flag .cflag { width: 40px; height: 27px; border-radius: 4px; }
.x-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--violet); text-decoration: none; white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.x-more:hover { box-shadow: inset 0 0 0 1.5px var(--violet); }
.x-exam-legend { list-style: none; padding: 16px 18px; margin: 22px 0 60px; display: flex; flex-wrap: wrap; gap: 10px 26px; border-radius: var(--r); background: var(--tint); font-size: .88rem; color: var(--muted); }
.x-exam-legend li { display: flex; align-items: center; gap: 8px; }
.is-sample { display: inline-grid; place-items: center; border-radius: 9px; min-height: 30px; }
.x-mx-open.is-sample { box-shadow: inset 0 0 0 1px var(--line); background: #fff; padding: 4px 10px; }
.x-mx-act.is-sample { width: 30px; color: #fff; }
.x-mx-print.is-sample { width: 30px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; border: 0; }
.x-page-content { margin: 30px 0 60px; }
.x-empty { display: grid; justify-items: center; gap: 8px; padding: 32px; border-radius: var(--r-lg); background: #fff; border: 1.5px dashed var(--line); text-align: center; }
.x-empty b { color: var(--deep); font-size: 1.1rem; }
.x-empty-lg { padding: 54px 22px; margin: 18px 0 56px; }
.x-empty-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--tint); color: var(--violet); }
@media (max-width: 600px) { .x-exam-group-head { display: grid; grid-template-columns: auto 1fr; } .x-exam-group-head .x-more { grid-column: 1 / -1; justify-self: start; } }

/* اللوحات */
.ds-card, .ds-stat { border-radius: var(--r-lg); }

/* الملف الشخصي */
.x-profile { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.x-profile-id { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.x-profile-id b { display: block; font-size: 1.15rem; color: var(--deep); }
.x-profile-id small { color: var(--muted); }
.x-pw { border: 1.5px dashed var(--line); border-radius: 16px; padding: 14px; margin: 14px 0 18px; }
.x-pw legend { padding-inline: 6px; font-weight: 800; color: var(--deep); font-size: .9rem; }
.x-pw .f-row { align-items: start; }
.x-profile-side h2 { font-size: 1.1rem; margin-bottom: 10px; }
.x-profile-side .btn { margin-top: 14px; }
.x-profile-side .ni { width: 18px; height: 18px; }
@media (max-width: 900px) { .x-profile { grid-template-columns: 1fr; } }
.x-form, .x-form .f-row { display: grid; gap: 14px; }
.x-form .f-row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.x-form .f { display: grid; gap: 6px; margin: 0; }
.x-form label { font-weight: 700; color: var(--deep); font-size: .9rem; }
.x-form input[type=text], .x-form input[type=email], .x-form input[type=password] { width: 100%; font: inherit; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--neutral); color: var(--deep); min-height: 46px; }
.x-form input:focus, .x-exfilter select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--tint-2); background: #fff; }
.x-form .c-pick { border: 0; padding: 0; margin: 0; }
.x-form .c-pick legend { font-weight: 700; color: var(--deep); font-size: .9rem; margin-bottom: 8px; }
.x-form .c-pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.x-form .btn { justify-self: start; }
.x-form .pw-meter { display: flex; gap: 4px; margin-top: 4px; }
.x-form .pw-meter i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }

/* الصورة الرمزية بالحرف الأول */
.x-ava { display: inline-grid; place-items: center; flex: none; border-radius: 30%; font-weight: 800; color: #fff; background: var(--g-violet); line-height: 1; }
.x-ava-2 { background: var(--g-green); color: var(--deep); }
.x-ava-3 { background: var(--teal); color: #fff; }
.x-ava-4 { background: var(--deep); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.m-marquee-track { animation: none; }
}
@media print { .m-marquee, .x-filter, .m-close, .x-ready, .top, .site-footer { display: none !important; } }

/* ==========================================================================
   7.0 — بلا أصفر في الأزرار والعناصر، أغلفة مصممة للمقالات، جولة الحساب، صفحة المواد
   ========================================================================== */
.btn-amber, .badge, .mine-badge { background: var(--g-violet); color: #fff; box-shadow: none; }
.skip-link { background: var(--deep); color: #fff; }
.limit { border-color: var(--tint-2); }
.demo-badge::before { background: var(--violet-2); }
.ps-ring { background: conic-gradient(var(--teal) 0 50%, var(--tint) 0); }
.is-done .ps-day.is-target { border-color: var(--teal); background: var(--mint-bg); }
.entry-content blockquote { border-inline-start-color: var(--teal); }
.station.st-weak .dot { border-color: var(--violet-2); color: var(--violet); background: var(--tint); }
.m-hero-badge { padding: 7px 16px; }
.m-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--mint-bg); }

/* ===== صفحة المناهج والمواد: تسلسل هرمي ===== */
.s-hero { padding-bottom: 12px; }
.s-switch-wrap { position: sticky; top: 74px; z-index: 15; padding: 10px 0; margin-bottom: 18px; background: rgba(247, 247, 247, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.admin-bar .s-switch-wrap { top: 106px; }
.s-panel { padding-bottom: 60px; }
.s-panel.fade-in { animation: m-fade .35s var(--ease); }
.s-cur { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px 28px; align-items: center; padding: 22px 26px; border-radius: var(--r-xl); background: var(--g-deep); color: #fff; margin-bottom: 22px; }
.s-cur-id { display: flex; align-items: center; gap: 16px; }
.s-cur-flag { padding: 8px; border-radius: 14px; background: #fff; line-height: 0; }
.s-cur-flag .cflag { width: 44px; height: 30px; border-radius: 4px; }
.s-cur h2 { color: #fff; font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem); }
.s-cur-id p { margin: 4px 0 0; color: rgba(255, 255, 255, .78); font-size: .92rem; }
.s-cur-facts { display: flex; gap: 10px; margin: 0; }
.s-cur-facts div { display: flex; flex-direction: column-reverse; padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); }
.s-cur-facts dt { font-size: .74rem; color: rgba(255, 255, 255, .72); }
.s-cur-facts dd { margin: 0; font-size: 1.3rem; font-weight: 600; }
@media (max-width: 900px) { .s-cur { grid-template-columns: 1fr; } .s-cur-facts { flex-wrap: wrap; } .s-cur .m-btn { justify-self: start; } }
.s-subjects { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.s-subject { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 22px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh); position: relative; overflow: hidden; }
.s-subject::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5px; background: var(--k); }
.s-subject-id { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.s-subject-ico { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; background: var(--k-bg); color: var(--k); font: 800 1.5rem/1 var(--font-latin); }
.s-subject-ico svg { width: 28px; height: 28px; }
.s-subject h3 { font-size: 1.3rem; }
.s-subject h3 a { color: var(--deep); text-decoration: none; }
.s-subject h3 a:hover { color: var(--violet); }
.s-subject-id p { margin: 2px 0 0; color: var(--muted); font-size: .84rem; }
.s-subject .mini-ring { color: var(--k); }
.s-route { overflow-x: auto; scrollbar-width: thin; padding: 6px 2px 8px; }
.s-stops { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; min-width: max-content; position: relative; }
.s-stop { position: relative; width: 168px; flex: none; }
.s-stop::before { content: ""; position: absolute; top: 19px; inset-inline-start: 0; inset-inline-end: 0; height: 3px; background: var(--k-bg); z-index: 0; }
.s-stop:first-child::before { inset-inline-start: 50%; }
.s-stop:last-child::before { inset-inline-end: 50%; }
.s-stop > a, .s-stop-exam { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 0 8px; text-decoration: none; }
.s-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 3px var(--k); color: var(--k); font-weight: 700; font-size: .95rem; transition: transform .25s var(--spring), background .2s, color .2s; }
.s-dot .ni { width: 18px; height: 18px; }
.s-stop > a:hover .s-dot { transform: scale(1.12); background: var(--k); color: #fff; }
.s-stop b { font-size: .92rem; color: var(--deep); line-height: 1.4; }
.s-stop small { font-size: .74rem; color: var(--muted); }
.s-stop .status { font-size: .68rem; }
.s-stop-exam .s-dot { background: var(--k); color: #fff; box-shadow: none; }
.s-years { display: flex; gap: 6px; }
.s-years a { padding: 3px 10px; border-radius: 9px; background: var(--k-bg); color: var(--deep); font-size: .82rem; font-weight: 600; text-decoration: none; }
.s-years a:hover { background: var(--k); color: #fff; }
.s-soon { color: var(--muted); margin: 0; }
@media (max-width: 900px) {
	.s-subject { grid-template-columns: 1fr; padding: 16px; }
}
@media (max-width: 560px) {
	.s-route { overflow: visible; }
	.s-stops { flex-direction: column; min-width: 0; gap: 10px; }
	.s-stop { width: auto; }
	.s-stop::before { top: 0; bottom: 0; height: auto; width: 3px; inset-inline-start: 19px; inset-inline-end: auto; }
	.s-stop:first-child::before { top: 20px; inset-inline-start: 19px; }
	.s-stop:last-child::before { bottom: auto; height: 20px; inset-inline-end: auto; }
	.s-stop > a, .s-stop-exam { grid-template-columns: 40px 1fr auto; justify-items: start; text-align: start; align-items: center; column-gap: 12px; padding: 0; }
	.s-stop > a .s-dot, .s-stop-exam .s-dot { grid-row: span 2; }
	.s-stop small { grid-column: 2; }
	.s-stop .status { grid-column: 3; grid-row: 1 / span 2; }
	.s-years { grid-column: 2 / -1; flex-wrap: wrap; }
}

/* ==========================================================================
   8.0 — مقياس أصغر وأقسام أقصر: كل قسم يظهر كاملًا على شاشة حاسوب عادية
   ========================================================================== */
body { font-size: 15px; }
.m-sec { padding-block: clamp(40px, 5vw, 64px); }
.m-head { gap: 6px; margin-bottom: clamp(18px, 2.2vw, 26px); max-width: 620px; }
.m-head h2 { font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem); line-height: 1.3; display: flex; align-items: center; gap: 12px; }
.m-head h2::before { content: ""; flex: none; width: 30px; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--mint) 0 33%, var(--teal) 33% 66%, var(--violet) 66%); }
html[dir="rtl"] .m-head h2::before { background: linear-gradient(-90deg, var(--mint) 0 33%, var(--teal) 33% 66%, var(--violet) 66%); }
.m-head.is-light h2::before { background: linear-gradient(-90deg, var(--mint) 0 33%, var(--teal) 33% 66%, #fff 66%); }
.m-head p { font-size: .98rem; line-height: 1.75; }
.m-split-head { margin-bottom: clamp(18px, 2.2vw, 26px); }
.m-btn { min-height: 44px; padding: 0 20px; font-size: .95rem; }
.m-btn-lg { min-height: 50px; padding: 0 24px; font-size: 1rem; }

/* البطل: يتسع كاملًا داخل شاشة الحاسوب */
.m-hero { margin-top: 14px; padding: clamp(24px, 3.2vw, 44px) clamp(20px, 3.6vw, 52px); gap: clamp(24px, 3.5vw, 48px); }
.m-hero-badge { margin-bottom: 14px; font-size: .84rem; }
.m-hero h1 { font-size: clamp(2.1rem, 1.3rem + 2.7vw, 3.4rem); line-height: 1.15; }
.m-lead { margin-top: 14px; font-size: 1rem; line-height: 1.8; }
.m-actions { margin-top: 22px; }
.m-hero-stats { margin-top: 24px; gap: 8px; }
.m-hero-stats li { padding: 9px 13px; border-radius: 13px; }
.m-hero-stats b { font-size: 1.2rem; }
.m-hero-stats span { font-size: .74rem; }
.m-stage { padding-top: 16px; }
.m-page { top: 44px; bottom: 36px; }
.m-demo-chrome { padding: 8px 12px; }
.m-demo-body { padding: 16px 18px 12px; min-height: 352px; }
.m-demo-bulb { top: 8px; } .m-demo-bulb .bulb { width: 36px; height: 36px; }
.m-card-bar { margin: 12px 0 4px; height: 6px; }
.m-card-q { margin: 10px 0 8px; font-size: 1rem; min-height 2.6em; }
.m-opts { gap: 6px; }
.m-opts .opt { min-height: 40px; padding: 4px 10px; border-radius: 12px; font-size: .92rem; grid-template-columns: 28px 1fr; gap: 10px; }
.m-opts .opt .l { width: 26px; height: 26px; border-radius: 8px; font-size: .82rem; }
.m-demo-fb { margin-top: 8px; padding: 9px 12px; min-height: 58px; }
.m-demo-fb p { font-size: .82rem; }
.m-card-foot { margin-top: 8px; padding-top: 8px; }
.m-demo-cap { padding: 8px 14px; font-size: .76rem; }
@media (min-width: 981px) { .m-hero { max-height: calc(100vh - 110px); min-height: 520px; } }

.m-marquee { margin-top: 14px; padding: 8px 0; }
.m-mq { padding: 7px 14px 7px 9px; font-size: .88rem; }
.m-mq i { width: 26px; height: 26px; }

/* المناهج */
.m-tab { padding: 8px 13px; font-size: .9rem; }
.m-cur { grid-template-columns: 170px 1fr; padding: 12px; gap: 18px; margin-bottom: 14px; border-radius: var(--r); }
.m-cur-copy h3 { font-size: 1.2rem; }
.m-cur-copy p { margin: 4px 0 8px; font-size: .9rem; }
.m-cur-facts { margin-bottom: 8px; }
.m-cur-facts li { padding: 4px 10px; font-size: .8rem; }
.m-subjects { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.m-subject { padding: 12px 14px; gap: 12px; border-radius: 16px; }
.m-subject-ico { width: 44px; height: 44px; border-radius: 13px; font-size: 1.25rem; }
.m-subject-ico svg { width: 22px; height: 22px; }
.m-subject-txt b { font-size: 1rem; }
.m-subject-txt small { font-size: .78rem; }

/* الخطوات */
.m-steps::before { top: 82px; }
.m-step-art { height: 100px; border-radius: 22px; }
.m-step-n { width: 38px; height: 38px; margin-top: -19px; font-size: .95rem; }
.m-step h3 { font-size: 1.05rem; }
.m-step p { font-size: .88rem; }
.s3 .bulb { width: 56px; height: 56px; }
.a-opt { width: 38px; height: 38px; } .a-day { height: 42px; width: 22px; }

/* ===== كل ما تحتاجه: بطاقات متحركة ===== */
.g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.g-tile { display: grid; grid-template-rows: auto auto 1fr; gap: 4px; padding: 12px 12px 16px; border-radius: 22px; background: var(--neutral); transition: transform .25s var(--spring), box-shadow .25s; }
.g-tile:hover { transform: translateY(-3px); box-shadow: var(--sh); background: #fff; }
.g-tile h3 { margin: 8px 6px 0; font-size: 1.02rem; }
.g-tile p { margin: 0 6px; color: var(--muted); font-size: .86rem; line-height: 1.7; }
.g-anim { position: relative; height: 150px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.g-tile:hover .g-anim { box-shadow: inset 0 0 0 1px var(--tint-2); }
.g-tile:nth-child(2) .g-anim { background: #FCFBFF; }
.g-tile:nth-child(3) .g-anim, .g-tile:nth-child(6) .g-anim { background: #F8FCFA; }

/* 1. التصحيح الفوري: المؤشر يختار، يتلون الصحيح، يظهر الشرح */
.g-fix { display: grid; align-content: start; gap: 6px; padding: 14px 16px; }
.g-q { display: block; height: 8px; width: 85%; border-radius: 6px; background: var(--deep); opacity: .85; }
.g-q.short { width: 50%; opacity: .4; margin-bottom: 4px; }
.g-o { display: flex; align-items: center; gap: 8px; height: 22px; padding: 0 6px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--line); }
.g-o i { font-style: normal; font-size: .62rem; font-weight: 800; width: 16px; height: 16px; border-radius: 5px; display: grid; place-items: center; background: var(--tint); color: var(--violet); }
.g-o::after { content: ""; height: 5px; width: 40%; border-radius: 4px; background: var(--line); }
.g-o.is-ok { animation: g-ok 6s infinite; }
.g-o.is-ok i { animation: g-oki 6s infinite; }
.g-exp { position: absolute; inset-inline: 14px; bottom: 10px; display: grid; gap: 5px; padding: 8px 10px; border-radius: 10px; background: var(--good-bg); opacity: 0; transform: translateY(10px); animation: g-exp 6s infinite; }
.g-exp b { display: block; height: 5px; width: 80%; border-radius: 4px; background: var(--teal); opacity: .6; }
.g-exp b.short { width: 50%; }
.g-cur { position: absolute; width: 20px; height: 20px; top: 110px; inset-inline-start: 70%; animation: g-cur 6s infinite; filter: drop-shadow(0 2px 3px rgba(27, 16, 56, .3)); }
@keyframes g-cur { 0%, 8% { transform: translate(0, 30px); opacity: 0; } 15% { opacity: 1; } 32% { transform: translate(-60px, -26px); } 36% { transform: translate(-60px, -26px) scale(.8); } 40%, 70% { transform: translate(-60px, -26px) scale(1); opacity: 1; } 78%, 100% { opacity: 0; transform: translate(-60px, -26px); } }
html[dir="ltr"] .g-cur { animation-name: g-cur-ltr; }
@keyframes g-cur-ltr { 0%, 8% { transform: translate(0, 30px); opacity: 0; } 15% { opacity: 1; } 32%, 70% { transform: translate(60px, -26px); opacity: 1; } 78%, 100% { opacity: 0; transform: translate(60px, -26px); } }
@keyframes g-ok { 0%, 37% { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); } 40%, 88% { background: var(--good-bg); box-shadow: inset 0 0 0 1.5px var(--teal); } 100% { background: transparent; } }
@keyframes g-oki { 0%, 37% { background: var(--tint); color: var(--violet); } 40%, 88% { background: var(--teal); color: #fff; } 100% { background: var(--tint); } }
@keyframes g-exp { 0%, 42% { opacity: 0; transform: translateY(10px); } 50%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }

/* 2. بنك الأخطاء: بطاقة خاطئة تدخل البنك، وأخرى تخرج بعلامة صح */
.g-bank .g-tray { position: absolute; bottom: 14px; inset-inline-start: 50%; transform: translateX(50%); width: 62%; height: 46px; border-radius: 0 0 14px 14px; border: 2px solid var(--tint-2); border-top: 0; background: linear-gradient(180deg, transparent, var(--tint)); }
html[dir="ltr"] .g-bank .g-tray { transform: translateX(-50%); }
.g-tray em { position: absolute; top: -12px; inset-inline-end: -12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bad); color: #fff; font-style: normal; font-size: .78rem; animation: g-count 6s infinite; }
.g-card { position: absolute; inset-inline-start: 50%; top: 16px; width: 46%; height: 40px; margin-inline-start: -23%; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 10px; background: #fff; box-shadow: 0 6px 14px -6px rgba(27, 16, 56, .35); border-inline-start: 4px solid var(--bad); animation: g-in 6s infinite; }
.g-card i { width: 16px; height: 16px; border-radius: 50%; background: var(--bad-bg); flex: none; }
.g-card b { height: 6px; flex: 1; border-radius: 4px; background: var(--line); }
.g-card.is-out { border-inline-start-color: var(--teal); animation-name: g-out; opacity: 0; }
.g-card.is-out i { background: var(--teal); }
@keyframes g-in { 0% { transform: translateY(-50px); opacity: 0; } 12% { transform: none; opacity: 1; } 28% { transform: none; } 42% { transform: translateY(68px) scale(.7); opacity: 0; } 100% { opacity: 0; } }
@keyframes g-out { 0%, 52% { transform: translateY(68px) scale(.7); opacity: 0; } 66% { transform: none; opacity: 1; } 84% { transform: translateY(-14px); opacity: 1; } 96%, 100% { transform: translateY(-60px); opacity: 0; } }
@keyframes g-count { 0%, 40% { transform: scale(1); } 43% { transform: scale(1.35); } 47%, 100% { transform: scale(1); } }

/* 3. خطة الأسبوع: شريحة الوحدة الضعيفة تنتقل إلى يوم الأحد */
.g-plan { display: grid; align-content: end; padding: 14px; }
.g-chip { position: absolute; top: 16px; inset-inline-start: 50%; transform: translateX(50%); padding: 5px 12px; border-radius: 99px; background: var(--g-violet); color: #fff; font-size: .74rem; font-weight: 700; white-space: nowrap; animation: g-chip 6s infinite; z-index: 2; }
html[dir="ltr"] .g-chip { transform: translateX(-50%); animation-name: g-chip-ltr; }
.g-days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.g-days span { display: grid; gap: 4px; justify-items: center; }
.g-days i { width: 100%; height: 54px; border-radius: 9px; background: var(--neutral); box-shadow: inset 0 0 0 1px var(--line); }
.g-days small { font-size: .6rem; color: var(--muted); }
.g-days .is-target i { animation: g-slot 6s infinite; }
@keyframes g-chip { 0%, 15% { transform: translateX(50%) translateY(0); } 45%, 85% { transform: translateX(calc(50% + 4%)) translateY(58px) scale(.82); } 100% { transform: translateX(50%); } }
@keyframes g-chip-ltr { 0%, 15% { transform: translateX(-50%); } 45%, 85% { transform: translateX(-30%) translateY(58px) scale(.82); } 100% { transform: translateX(-50%); } }
@keyframes g-slot { 0%, 42% { background: var(--neutral); box-shadow: inset 0 0 0 1px var(--line); } 48%, 88% { background: var(--mint-bg); box-shadow: inset 0 0 0 2px var(--teal); } 100% { background: var(--neutral); } }

/* 4. التقدّم: الحلقة تمتلئ والأيام تضيء بالتتابع */
.g-prog { display: flex; align-items: center; justify-content: center; gap: 22px; }
.g-ring { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }
.g-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.g-ring circle { fill: none; stroke: var(--tint); stroke-width: 12; }
.g-ring .v { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 0 100; animation: g-ring 6s infinite; }
.g-ring b { font-size: 1.1rem; color: var(--deep); }
@keyframes g-ring { 0%, 8% { stroke-dasharray: 0 100; } 55%, 90% { stroke-dasharray: 72 100; } 100% { stroke-dasharray: 0 100; } }
.g-week { display: grid; grid-template-columns: repeat(7, 12px); gap: 5px; align-items: end; }
.g-week i { height: 46px; border-radius: 5px; background: var(--tint); animation: g-day 6s infinite; }
.g-week i:nth-child(2) { animation-delay: .25s; } .g-week i:nth-child(3) { animation-delay: .5s; } .g-week i:nth-child(4) { animation-delay: .75s; } .g-week i:nth-child(5) { animation-delay: 1s; } .g-week i:nth-child(6) { animation-delay: 1.25s; } .g-week i:nth-child(7) { animation-delay: 1.5s; }
@keyframes g-day { 0%, 10% { background: var(--tint); transform: scaleY(.6); } 20%, 85% { background: var(--teal); transform: none; } 100% { background: var(--tint); transform: scaleY(.6); } }

/* 5. الامتحانات: أوراق السنوات تتقلب ويظهر ختم «محلول» */
.g-exams { perspective: 600px; }
.g-paper { position: absolute; top: 18px; inset-inline-start: 50%; width: 52%; height: 116px; margin-inline-start: -26%; display: grid; align-content: start; gap: 6px; padding: 10px 12px; border-radius: 10px; background: #fff; box-shadow: 0 6px 16px -8px rgba(27, 16, 56, .35), inset 0 0 0 1px var(--line); }
.g-paper b { font-size: .86rem; color: var(--deep); }
.g-paper i { display: block; height: 5px; width: 85%; border-radius: 4px; background: var(--line); }
.g-paper i.short { width: 55%; }
.g-paper em { position: absolute; bottom: 12px; inset-inline-end: 10px; font-style: normal; font-size: .64rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; color: var(--good); box-shadow: inset 0 0 0 1.5px var(--teal); transform: rotate(-8deg) scale(0); }
.g-paper.p0 { z-index: 3; animation: g-flip 6s infinite; }
.g-paper.p1 { z-index: 2; transform: translate(-6px, 6px) rotate(-3deg); }
.g-paper.p2 { z-index: 1; transform: translate(-12px, 12px) rotate(-6deg); }
.g-paper.p0 em { animation: g-stamp 6s infinite; }
@keyframes g-stamp { 0%, 14% { transform: rotate(-8deg) scale(0); } 20%, 40% { transform: rotate(-8deg) scale(1); } 100% { transform: rotate(-8deg) scale(1); } }
@keyframes g-flip { 0%, 45% { transform: none; opacity: 1; } 62% { transform: translateX(-70%) rotate(-14deg); opacity: 0; } 63%, 80% { transform: translate(-12px, 12px) rotate(-6deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* 6. الوحدات: الحالة تتحسن والشريط يتقدم */
.g-units { display: grid; align-content: center; gap: 8px; padding: 14px 16px; }
.g-u { display: grid; grid-template-columns: 1fr 70px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.g-u b { height: 6px; border-radius: 4px; background: var(--deep); opacity: .7; }
.g-u i { height: 8px; border-radius: 5px; background: linear-gradient(-90deg, var(--teal) var(--w, 0%), var(--tint) var(--w, 0%)); }
html[dir="ltr"] .g-u i { background: linear-gradient(90deg, var(--teal) var(--w, 0%), var(--tint) var(--w, 0%)); }
@property --w { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.g-u.u1 i { animation: g-w1 6s infinite; } .g-u.u2 i { animation: g-w2 6s infinite .3s; } .g-u.u3 i { animation: g-w3 6s infinite .6s; }
@keyframes g-w1 { 0%, 8% { --w: 10%; } 50%, 90% { --w: 90%; } 100% { --w: 10%; } }
@keyframes g-w2 { 0%, 8% { --w: 0%; } 50%, 90% { --w: 65%; } 100% { --w: 0%; } }
@keyframes g-w3 { 0%, 8% { --w: 0%; } 50%, 90% { --w: 40%; } 100% { --w: 0%; } }

@media (max-width: 980px) { .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	.g-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: none; }
	.g-tile { flex: 0 0 78%; scroll-snap-align: center; background: #fff; box-shadow: var(--sh); }
}
@media (prefers-reduced-motion: reduce) {
	.g-anim *, .g-anim { animation: none !important; }
	.g-o.is-ok { background: var(--good-bg); box-shadow: inset 0 0 0 1.5px var(--teal); }
	.g-exp { opacity: 1; transform: none; }
	.g-ring .v { stroke-dasharray: 72 100; }
	.g-week i { background: var(--teal); }
	.g-paper em { transform: rotate(-8deg); }
	.g-card.is-out, .g-cur { display: none; }
	.g-u i { --w: 70%; }
}

/* بنك الأخطاء والخطة: أقصر */
.m-loop { gap: 20px; }
.m-slip { padding: 16px 14px; }
.m-slip p { font-size: .92rem; }
.m-planner { padding: 14px; }
.m-planner .ps-day { padding: 8px 10px; }
.m-loop-notes { gap: 10px; }
.m-loop-notes li { font-size: .88rem; }
.m-deep-foot { margin-top: 20px; padding: 12px 18px; }
.m-deep-foot p { font-size: .9rem; }

/* الامتحانات */
.x-matrix th, .x-matrix td { padding: 10px 14px; }
.x-matrix thead th.num { font-size: 1.05rem; }
.x-mx-open { padding: 6px 10px; font-size: .8rem; }
.x-mx-ico { width: 30px; height: 30px; }

/* الأسعار: جدول المقارنة قابل للطي */
.pricing .x-plan { padding: 22px; gap: 10px; border-radius: var(--r-lg); }
.x-price .num { font-size: 2.6rem; }
.x-plan-head h3 { font-size: 1.25rem; }
.x-feat { gap: 7px; } .x-feat li { font-size: .9rem; }
.x-pricing .today-meter { padding: 9px 12px; }
.x-price-controls { margin-bottom: 18px; }
details.x-compare { padding: 0; }
details.x-compare > summary { list-style: none; cursor: pointer; padding: 16px 22px; font-weight: 800; color: var(--deep); display: flex; justify-content: space-between; align-items: center; }
details.x-compare > summary::-webkit-details-marker { display: none; }
details.x-compare > summary::after { content: ""; width: 10px; height: 10px; border-inline-end: 2.5px solid var(--violet); border-bottom: 2.5px solid var(--violet); transform: rotate(45deg); transition: transform .25s; }
details.x-compare[open] > summary::after { transform: rotate(-135deg); }
details.x-compare .tw { padding: 0 22px 18px; }
.assure { margin-top: 14px; }
.assure li { padding: 12px 14px; }

/* المكتبة: أقصر */
.m-lib { gap: 14px; }
.x-cover-title { font-size: 1.02rem; }
.x-post-lead .x-cover { min-height: 300px; }
.x-post-lead .x-cover-title { font-size: clamp(1.3rem, 1rem + 1.1vw, 1.8rem); }
.m-lib > .x-post-row { padding: 10px; }
.x-post-row { grid-template-columns: 90px 1fr; }
.x-row-body h3 { font-size: .95rem; }

/* الختام */
.m-close { padding: clamp(20px, 3vw, 34px); gap: 20px; }
.m-close h2 { font-size: clamp(1.3rem, 1rem + 1.1vw, 1.8rem); }
.m-close-tile { width: 84px; height: 84px; border-radius: 22px; }
.m-close-tile img { width: 52px; }
/* أقسام أقصر */
.g-anim { height: 124px; }
.g-tile { padding: 10px 10px 14px; }
.g-tile h3 { margin-top: 6px; font-size: .98rem; }
.g-tile p { font-size: .82rem; line-height: 1.6; }
.g-fix { padding: 10px 14px; gap: 5px; }
.g-o { height: 19px; }
.g-cur { top: 92px; }
.g-days i { height: 42px; }
.g-paper { top: 12px; height: 100px; }
.g-ring { width: 84px; height: 84px; }
.g-week i { height: 38px; }
.g-bank .g-tray { height: 38px; bottom: 10px; }
.g-card { top: 12px; height: 34px; }
.home .x-pricing .assure { display: none; }
.home .x-pricing .today-meter { display: none; }
.home .pricing .x-plan { padding: 20px; }
.x-post-lead .x-cover { min-height: 0; }
.m-lib { grid-auto-rows: minmax(0, auto); }
.m-lib > .x-post-row { padding: 8px; }
.m-lib .x-row-img { aspect-ratio: 4/3; }
@media (min-width: 1061px) {
	.home #pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.05fr); grid-template-rows: auto auto 1fr; column-gap: 18px; align-items: start; }
	.home #pricing > .m-head { grid-column: 1; grid-row: 1; margin-bottom: 18px; }
	.home #pricing .x-pricing, .home #pricing .x-plans { display: contents; }
	.home #pricing .x-price-controls { grid-column: 1; grid-row: 2; justify-content: flex-start; flex-direction: column; align-items: flex-start; margin: 0 0 16px; }
	.home #pricing details.x-compare { grid-column: 1; grid-row: 3; align-self: start; }
	.home #pricing .x-plan:not(.x-plan-pro) { grid-column: 2; grid-row: 1 / span 3; }
	.home #pricing .x-plan-pro { grid-column: 3; grid-row: 1 / span 3; }
	.home #pricing details.x-compare[open] { grid-column: 1 / -1; grid-row: 4; margin-top: 16px; }
}
@media (min-width: 1061px) { .home #pricing .seg-country { flex-wrap: wrap; max-width: 100%; } }
.x-matrix th, .x-matrix td { padding: 8px 14px; }
.m-deep .m-head { margin-bottom: 16px; }
.m-planner .ps-score { padding-bottom: 8px; }
.m-planner .ps-week { margin-top: 8px; }
.m-cur-art { aspect-ratio: 16/9; }
.x-cover-kicker { background: rgba(255, 255, 255, .92); color: var(--deep); }
.m-demo-body { min-height: 322px; }
.m-close .m-btn-primary { background: #fff; color: var(--deep); box-shadow: 0 10px 24px -12px rgba(27, 16, 56, .6); }
.m-close .m-btn-primary:hover { color: var(--violet); }
.x-article-cover { width: 100%; max-width: 100%; }
@media (max-width: 1000px) { .x-article-cover { aspect-ratio: auto; min-height: 360px; } }

/* ==========================================================================
   8.1 — عناوين أصغر بتدرّج، مسافات أوسع بين الأقسام، وتحسين الأقسام الكلاسيكية
   ========================================================================== */
:root {
	--grad-title: linear-gradient(100deg, #2E1670 0%, #5B33C6 52%, #1FA89A 100%);
	--grad-title-light: linear-gradient(100deg, #FFFFFF 0%, #E4D9FF 55%, #9DF0E2 100%);
	--sec-y: clamp(64px, 8vw, 112px);
}

/* العناوين: أصغر + تدرّج لوني */
.m-hero h1,
.m-head h2,
main h1:not(.x-cover-title):not(.ds-x),
.x-article-title h1 {
	background-image: var(--grad-title);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	text-wrap: balance;
	padding-block-end: .1em;
}
.m-head.is-light h2, .m-deep .m-head h2, .x-article-title h1 { background-image: var(--grad-title-light); }
.m-hero h1 { font-size: clamp(1.95rem, 1.1rem + 3.3vw, 3.4rem); line-height: 1.22; letter-spacing: 0; }
.m-head h2 { font-size: clamp(1.28rem, 1rem + .95vw, 1.78rem); line-height: 1.4; }
main h1:not(.x-cover-title):not(.m-hero h1) { font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.5rem); line-height: 1.35; }
.x-article-title h1 { font-size: clamp(1.5rem, 1rem + 2.2vw, 2.6rem); }
.m-close h2 { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); }
.m-hero-copy p, .m-head p { font-size: clamp(.94rem, .9rem + .2vw, 1.04rem); }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
	.m-hero h1, .m-head h2, main h1 { color: var(--deep); -webkit-text-fill-color: currentColor; }
}

/* مسافات أوسع وإيقاع واضح */
.m-sec { padding-block: var(--sec-y); }
.m-head { margin-bottom: clamp(28px, 3.6vw, 48px); gap: 8px; max-width: 700px; }
.m-hero { margin-bottom: clamp(18px, 3vw, 36px); }
.m-split-head { margin-bottom: clamp(24px, 3vw, 38px); }
.m-split-head .m-head { margin-bottom: 0; }
.m-close { margin-block: clamp(48px, 7vw, 96px); }
.m-after { margin-top: clamp(22px, 3vw, 36px); }
.m-sec-soft { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }

/* المواد: بطاقات أغنى */
.m-subjects { gap: clamp(12px, 1.6vw, 18px); }
.m-subject { padding: 18px 20px; border-radius: 22px; overflow: hidden; }
.m-subject::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--k); opacity: .55; transition: opacity .25s, height .25s; }
.m-subject:hover::before { opacity: 1; height: 6px; }
.m-subject-ico { width: 58px; height: 58px; border-radius: 18px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 18%, transparent); }

/* الرحلة: خط وصل متصل */
.m-steps::before { border-top: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--violet-2), var(--teal), var(--mint)); opacity: .35; top: 66px; }
.m-step { transition: transform .3s var(--ease); }
.m-step:hover { transform: translateY(-4px); }
.m-step-art { box-shadow: inset 0 0 0 1px var(--line); background: linear-gradient(160deg, #fff, var(--tint)); }

/* جدول الامتحانات: رأس متدرج وصفوف أنعم */
.x-matrix-wrap { border: 1px solid var(--line); box-shadow: var(--sh); }
.x-matrix thead th { background: linear-gradient(180deg, #fff, var(--tint)) !important; border-bottom: 1px solid var(--line); }
.x-matrix tbody tr { transition: background .2s; }
.x-matrix tbody tr:hover > * { background: color-mix(in srgb, var(--tint) 55%, #fff) !important; }
.x-matrix th, .x-matrix td { padding: 12px 16px; }

/* المقالات: بطاقات أرقى */
.m-lib { gap: clamp(14px, 1.8vw, 22px); }
.x-cover { box-shadow: var(--sh); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.x-cover:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.x-cover .x-cover-art { transition: transform .7s var(--ease); width: 100%; height: 100%; display: block; }
.x-cover:hover .x-cover-art { transform: scale(1.06); }
.x-cover-art { width: 100%; height: 100%; display: block; }
.x-row-img .x-cover-art { border-radius: inherit; }
.x-article-cover .x-cover-art { position: absolute; inset: 0; }
.x-post-row { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.m-lib > .x-post-row:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }

/* الباقات */
.pricing .x-plan { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pricing .x-plan:hover { transform: translateY(-4px); }
.pricing .plan.x-plan-pro { background: var(--g-deep), radial-gradient(400px 220px at 100% 0%, rgba(124, 77, 224, .5), transparent 70%); }

/* الختام: ملمس ونقاط */
.m-close { background-image: radial-gradient(rgba(255, 255, 255, .12) 1.4px, transparent 1.6px), var(--g-deep); background-size: 26px 26px, auto; }

/* تجاوب */
@media (max-width: 900px) {
	.m-steps { grid-template-columns: 1fr 1fr; }
	.m-steps::before { display: none; }
	.m-close { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 18px; }
}
@media (max-width: 560px) {
	.m-steps { grid-template-columns: 1fr; }
	.m-sec { padding-block: clamp(48px, 12vw, 64px); }
	.m-subject { padding: 14px 16px; }
}
.m-lib > .x-post-lead .x-cover { min-height: clamp(260px, 30vw, 380px); }
.m-lib > .x-post-cover .x-cover, .m-lib > .x-post-card .x-cover { min-height: 190px; aspect-ratio: 16 / 10; }
@media (max-width: 600px) { .m-lib > .x-post-lead .x-cover { min-height: 240px; } }
