/* مذاكرة — الطبقة الأخيرة (تُحمَّل بعد ui-polish.css)
   1) تقليل الأصفر: الهوية بنفسجي + تيل، والذهبي لمسة صغيرة فقط
   2) ترويسة بقائمة منظمة (المناهج كقائمة كبيرة)
   3) الرئيسية: بحث سريع وبطاقات الدعوة الختامية
   4) لوحات التحكم: شريط جانبي، غرفة قيادة للطالب، ستوديو للمعلم */

/* ============ 1) الألوان: أصفر أقل ============ */
:root {
	--amber: #C2A15A;
	--amber-bg: #F6F1E6;
	--amber-ink: #6A531F;
	--amber-line: #E9DFC6;
	--amber-deep: #7C4DE0;
	--on-amber: #fff;
	--grad-spark: linear-gradient(135deg, #7C4DE0 0%, #5B33C6 100%);
	--grad-ribbon: linear-gradient(135deg, #4E2AA2 0%, #5B33C6 48%, #7242DE 100%);
	--rose: #B4303F;
	--rose-bg: #FCE8EA;
	--teal-deep: #0E7A70;
	--ink-soft: #6B6288;
	--card-r: 22px;
}

.btn-brand, a.btn-brand { color: #fff; }
.btn-light, a.btn-light {
	background: #fff;
	color: #3B1D7A;
	box-shadow: 0 12px 26px -14px rgba(20, 8, 60, .6);
}
.btn-light:hover, a.btn-light:hover { transform: translateY(-1px); filter: none; box-shadow: 0 16px 30px -14px rgba(20, 8, 60, .7); }
.btn-ghost-light, a.btn-ghost-light {
	background: rgba(255, 255, 255, .1);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .35);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .2); }
.btn-xs { padding: 4px 12px; font-size: .82rem; border-radius: 10px; }
.btn-line.is-danger:hover { border-color: var(--rose); color: var(--rose); }

/* كل ما كان ذهبيًا يصبح بنفسجيًا/تيل */
.kicker.amber, .pill.amber { background: var(--tint); color: var(--heading); }
.tile.amber, .home .trust-strip > div:nth-child(3) .tile { background: var(--tint-2); color: var(--brand); }
.kpi.amber::after { background: color-mix(in srgb, var(--brand-2) 14%, transparent); }
.bar.amber > span, .mastery .ms-weak .bar > span { background: var(--brand-2); }
.today-ring circle.v { stroke: var(--brand-2); }
.home .hero h1 .marker path { stroke: var(--teal); opacity: .75; }
.home .hero::after {
	background:
		radial-gradient(260px 260px at 6% 8%, rgba(124, 77, 224, .16), transparent 70%),
		radial-gradient(320px 320px at 98% 100%, rgba(31, 168, 154, .14), transparent 70%);
}
.demo-bar { background: var(--tint); border-color: var(--tint-2); color: var(--heading); }
.demo-bar b { color: var(--heading); }
.st-weak { background: var(--rose-bg); color: var(--rose); }
.st-mid { background: var(--tint); color: var(--heading); }
.st-today { background: var(--brand); color: #fff; }

/* ============ 2) الترويسة والقوائم ============ */
.top { transition: box-shadow .2s ease, background .2s ease; }
.top.is-stuck { box-shadow: 0 10px 30px -22px rgba(59, 29, 122, .55); }
.top-in { position: relative; }

.nav .menu > li { position: relative; }
.nav .menu > li.has-mega { position: static; }
.mega-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 0;
	font: inherit;
	font-weight: 600;
	font-size: .95rem;
	color: var(--ink-2);
	padding: 7px 14px;
	border-radius: 12px;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.mega-btn svg { width: 11px; height: 11px; transition: transform .2s; }
.mega-btn:hover, li.open > .mega-btn, li:focus-within > .mega-btn { color: var(--heading); background: var(--tint); }
li.open > .mega-btn svg, li.has-mega:hover > .mega-btn svg { transform: rotate(180deg); }

.nav .mega {
	display: none;
	position: absolute;
	inset-inline: 0;
	top: 100%;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 0 0 24px 24px;
	box-shadow: 0 30px 60px -30px rgba(59, 29, 122, .5);
	padding: 22px 24px 18px;
	z-index: 60;
}
.nav li.has-mega:hover > .mega,
.nav li.has-mega:focus-within > .mega,
.nav li.has-mega.open > .mega { display: block; animation: mqFade .18s ease both; }
.mega-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.nav .mega ul { display: grid; position: static; border: 0; box-shadow: none; padding: 0; margin: 6px 0 0; gap: 2px; min-width: 0; background: none; }
.nav .mega-country {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 14px;
	background: var(--tint);
	color: var(--heading);
}
.nav .mega-country:hover { background: var(--tint-2); }
.mega-country .cflag { width: 30px; height: 20px; border-radius: 4px; flex: none; box-shadow: 0 0 0 1px rgba(36, 22, 71, .12); }
.mega-country span { display: grid; line-height: 1.35; }
.mega-country b { font-size: .98rem; }
.mega-country small { font-size: .74rem; color: var(--ink-soft); font-weight: 600; }
.nav .mega-col li a { padding: 5px 10px; font-size: .9rem; border-radius: 9px; font-weight: 600; }
.mega-foot { display: flex; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.nav .mega-foot a { display: inline-block; padding: 4px 0; color: var(--brand); font-weight: 800; font-size: .9rem; }
.nav .mega-foot a:hover { background: none; text-decoration: underline; }

.nav .has-drop { position: relative; }
.nav .drop {
	display: none;
	position: absolute;
	inset-inline-start: 0;
	top: 100%;
	min-width: 210px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow-lg);
	padding: 6px;
	z-index: 60;
	margin: 6px 0 0;
	flex-direction: column;
}
.nav li.has-drop:hover > .drop, .nav li.has-drop:focus-within > .drop, .nav li.has-drop.open > .drop { display: flex; animation: mqFade .18s ease both; }
.nav .drop a { padding: 9px 14px; }

@media (max-width: 900px) {
	.nav .menu > li.has-mega { position: relative; }
	.nav .mega, .nav .drop {
		position: static;
		box-shadow: none;
		border: 0;
		border-radius: 14px;
		padding: 6px 4px;
		background: var(--tint);
		margin: 4px 0 8px;
	}
	.nav li.has-mega:hover > .mega, .nav li.has-drop:hover > .drop { display: none; }
	.nav li.has-mega.open > .mega { display: block; }
	.nav li.has-drop.open > .drop { display: flex; }
	.mega-btn { width: 100%; justify-content: space-between; }
	.mega-cols { grid-template-columns: 1fr 1fr; gap: 10px; }
	.mega-foot { flex-direction: column; gap: 4px; }
}
@media (max-width: 520px) { .mega-cols { grid-template-columns: 1fr; } }

/* ============ 3) الرئيسية ============ */
.hero-search {
	display: flex;
	align-items: center;
	gap: 10px;
	width: min(100%, 470px);
	padding: 12px 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
	color: var(--ink-soft);
	text-decoration: none;
	font-weight: 600;
	font-size: .95rem;
	box-shadow: 0 12px 28px -22px rgba(59, 29, 122, .6);
	transition: border-color .15s, box-shadow .15s;
}
.hero-search:hover { border-color: var(--brand); box-shadow: 0 16px 30px -20px rgba(91, 51, 198, .55); }
.hero-search svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.hero-search span { flex: 1; }
.hero-search kbd, .ds-search kbd {
	font: 700 .7rem var(--font-latin);
	padding: 2px 7px;
	border-radius: 7px;
	border: 1px solid var(--line);
	background: var(--bg);
	color: var(--ink-soft);
}

.final-cta { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-top: 72px; }
.fc-card { border-radius: 28px; padding: clamp(26px, 4vw, 44px); display: grid; gap: 12px; align-content: center; justify-items: start; }
.fc-card h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); max-width: 18em; }
.fc-card p { max-width: 30em; }
.fc-student {
	background:
		radial-gradient(420px 260px at 0% 0%, rgba(255, 255, 255, .16), transparent 70%),
		var(--grad-ribbon);
	color: #E9E2FA;
}
.fc-student h2 { color: #fff; -webkit-text-fill-color: #fff; background: none; }
.fc-student .kicker { background: rgba(255, 255, 255, .16); color: #fff; }
.fc-teacher { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fc-teacher p { color: var(--ink-2); }
@media (max-width: 820px) { .final-cta { grid-template-columns: 1fr; margin-top: 48px; } }

/* ============ 4) لوحات التحكم ============ */
html.ds-lock { overflow: hidden; }
body.dashboard-page { background: var(--bg); }

.ds {
	display: grid;
	grid-template-columns: 292px minmax(0, 1fr);
	min-height: 100vh;
	--sb-1: #2A1260;
	--sb-2: #3B1D7A;
	--sb-3: #4E2AA2;
}

/* ----- الشريط الجانبي ----- */
.ds-side {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px 16px 16px;
	color: #D9CFF5;
	background:
		radial-gradient(260px 220px at 100% 0%, rgba(124, 77, 224, .45), transparent 70%),
		radial-gradient(240px 240px at 0% 100%, rgba(31, 168, 154, .22), transparent 70%),
		linear-gradient(175deg, var(--sb-1) 0%, var(--sb-2) 55%, var(--sb-3) 100%);
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
.admin-bar .ds-side { top: 32px; height: calc(100vh - 32px); }
.ds-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ds-brand a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.ds-brand img { background: #fff; border-radius: 12px; padding: 5px 6px; height: 44px; width: auto; }
.ds-brand span { display: grid; line-height: 1.25; }
.ds-brand b { font-size: 1.15rem; font-weight: 800; }
.ds-brand small { font-size: .74rem; color: #B9A9EA; font-weight: 600; }
.ds-x { display: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font-size: 1.4rem; line-height: 1; }

.ds-me {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .12);
}
.ds-avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); object-fit: cover; flex: none; }
.ds-me span { display: grid; min-width: 0; line-height: 1.3; }
.ds-me b { color: #fff; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-me small { color: #B9A9EA; font-size: .78rem; font-weight: 600; }

.ds-nav { display: grid; gap: 2px; align-content: start; }
.ds-group { margin: 12px 8px 4px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: #9C8BDB; }
.ds-nav a, .ds-links a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	color: #D9CFF5;
	text-decoration: none;
	font-weight: 700;
	font-size: .94rem;
	transition: background .18s, color .18s, transform .18s;
}
.ds-nav a:hover, .ds-links a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.ds-nav a:focus-visible, .ds-links a:focus-visible { outline: 2px solid #9CE8C8; outline-offset: 1px; }
.ds-nav a[aria-current="page"] {
	background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .17));
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.ds-nav a[aria-current="page"]::before {
	content: "";
	position: absolute;
	inset-block: 9px;
	inset-inline-start: -16px;
	width: 5px;
	border-radius: 0 6px 6px 0;
	background: #9CE8C8;
	box-shadow: 0 0 14px rgba(156, 232, 200, .8);
	transform: scaleX(-1);
}
.ds .ni { width: 20px; height: 20px; flex: none; opacity: .92; }
.ds-nav a[aria-current="page"] .ni { color: #9CE8C8; opacity: 1; }
.ds-badge {
	margin-inline-start: auto;
	min-width: 22px;
	padding: 1px 7px;
	border-radius: 99px;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	font: 800 .74rem var(--font-latin);
	text-align: center;
	font-style: normal;
}
.ds-badge.is-hot { background: #FF8FA0; color: #4A0F1A; }

.ds-mini {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 6px 12px;
	padding: 12px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .12);
	margin-top: auto;
}
.ds-mini b { color: #fff; font-size: .92rem; }
.ds-mini small { display: block; color: #B9A9EA; font-size: .78rem; font-weight: 600; }
.ds-mini > a { grid-column: 1 / -1; color: #9CE8C8; font-weight: 800; font-size: .85rem; text-decoration: none; }
.ds-mini-ring {
	--p: 0;
	position: relative;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: conic-gradient(#9CE8C8 calc(var(--p) * 1%), rgba(255, 255, 255, .16) 0);
}
.ds-mini-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--sb-2); }
.ds-mini-ring b { position: relative; font-size: .78rem; color: #fff; }
.ds-mini-note { grid-template-columns: 1fr; }
.ds-links { display: grid; gap: 2px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 10px; }
.ds-links a { font-size: .88rem; padding: 8px 12px; color: #C2B6EA; }

/* ----- المنطقة الرئيسية ----- */
.ds-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(520px 320px at 90% 0%, rgba(124, 77, 224, .08), transparent 70%),
		radial-gradient(420px 320px at 0% 40%, rgba(31, 168, 154, .06), transparent 70%),
		var(--bg);
}
.ds-top {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 68px;
	padding: 10px clamp(16px, 3vw, 36px);
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .ds-top { top: 32px; }
.ds-burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--heading); place-items: center; }
.ds-crumb { display: grid; line-height: 1.3; }
.ds-crumb small { color: var(--ink-soft); font-size: .78rem; font-weight: 700; }
.ds-crumb b { color: var(--heading); font-size: 1.2rem; font-weight: 800; }
.ds-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.ds-search {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 270px;
	padding: 9px 14px;
	border-radius: 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--ink-soft);
	text-decoration: none;
	font-size: .9rem;
	font-weight: 600;
}
.ds-search:hover { border-color: var(--brand); }
.ds-search .ni { width: 18px; height: 18px; color: var(--brand); }
.ds-search span { flex: 1; }
.ds-clock { display: grid; text-align: end; line-height: 1.25; padding-inline: 4px; }
.ds-clock time { font: 800 1.05rem var(--font-latin); color: var(--heading); font-variant-numeric: tabular-nums; }
.ds-clock span { font-size: .74rem; color: var(--ink-soft); font-weight: 600; }

.ds-body { flex: 1; width: 100%; max-width: 1280px; padding: 24px clamp(16px, 3vw, 36px) 40px; margin-inline: auto; }
.ds-body:focus { outline: none; }
.ds-foot { display: flex; justify-content: space-between; gap: 10px; padding: 16px clamp(16px, 3vw, 36px); color: var(--ink-soft); font-size: .85rem; border-top: 1px solid var(--line); }
.ds-foot a { color: var(--brand); font-weight: 700; text-decoration: none; }

/* ----- شبكات وبطاقات ----- */
.ds-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.ds-grid > * { min-width: 0; }
.ds-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--card-r);
	padding: 20px 22px;
	box-shadow: 0 1px 0 rgba(59, 29, 122, .03), 0 18px 34px -28px rgba(59, 29, 122, .4);
	display: grid;
	gap: 14px;
	align-content: start;
	min-width: 0;
}
.ds-card h2 { font-size: 1.08rem; padding: 0; border: 0; display: block; }
.ds-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ds-card-head a { font-size: .86rem; font-weight: 800; text-decoration: none; color: var(--brand); }
.ds-kicker {
	display: inline-flex;
	align-self: start;
	justify-self: start;
	font-size: .76rem;
	font-weight: 800;
	padding: 2px 12px;
	border-radius: 99px;
	background: var(--tint);
	color: var(--heading);
}
.ds-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-self: start;
	padding: 5px 14px;
	border-radius: 99px;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	font-weight: 700;
	font-size: .86rem;
	backdrop-filter: blur(6px);
}
.ds-chip .ni { width: 16px; height: 16px; color: #9CE8C8; }

/* ----- بطل اللوحة ----- */
.ds-hero {
	grid-column: 1 / -1;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 28px;
	align-items: center;
	padding: clamp(24px, 3.4vw, 40px);
	border-radius: 28px;
	color: #E5DDFB;
	background:
		radial-gradient(380px 240px at 8% 0%, rgba(156, 232, 200, .22), transparent 70%),
		radial-gradient(420px 300px at 100% 100%, rgba(255, 255, 255, .12), transparent 70%),
		var(--grad-ribbon);
	box-shadow: 0 30px 50px -34px rgba(59, 29, 122, .8);
}
.ds-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	opacity: .5;
	background-image: radial-gradient(rgba(255, 255, 255, .22) 1.2px, transparent 1.3px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
	mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
}
.ds-hero-copy { display: grid; gap: 14px; justify-items: start; }
.ds-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); color: #fff; -webkit-text-fill-color: #fff; background: none; line-height: 1.25; }
.ds-hero h1 span { color: #9CE8C8; -webkit-text-fill-color: #9CE8C8; }
.ds-hero p { max-width: 36em; font-size: 1.02rem; }
.ds-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ds-hero .btn svg { width: 16px; height: 16px; }
.ds-level { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: min(100%, 440px); }
.ds-level .lv { font-weight: 800; font-size: .82rem; padding: 2px 12px; border-radius: 99px; background: #fff; color: #3B1D7A; }
.ds-level .bar { flex: 1; min-width: 120px; height: 9px; background: rgba(255, 255, 255, .2); }
.ds-level .bar > span { background: #9CE8C8; }
.ds-level small { flex-basis: 100%; color: #E2D9FA; font-size: .82rem; }

.ds-hero-art { position: relative; display: grid; place-items: center; padding: 8px; }
.ds-ring { --p: 0; position: relative; width: 168px; height: 168px; display: grid; place-items: center; }
.ds-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg) scaleY(-1); }
.ds-ring circle { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 9; }
.ds-ring circle.v { stroke: #9CE8C8; stroke-linecap: round; stroke-dasharray: calc(var(--p) * 1) 100; filter: drop-shadow(0 0 8px rgba(156, 232, 200, .6)); transition: stroke-dasharray .8s cubic-bezier(.2, .7, .2, 1); }
.ds-ring div { display: grid; text-align: center; line-height: 1.2; }
.ds-ring b { font-size: 2rem; color: #fff; font-family: var(--font-latin); }
.ds-ring small { color: #C4B8EC; font-size: .78rem; font-weight: 700; }
.ds-bulb { position: absolute; inset-block-start: -8px; inset-inline-end: -6px; width: 54px; height: 54px; }
.ds-bulb svg { width: 100%; height: 100%; }

/* ----- بطاقات الأرقام ----- */
.ds-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ds-stat {
	position: relative;
	display: grid;
	gap: 2px;
	padding: 16px 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 20px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.ds-stat:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -26px rgba(59, 29, 122, .55); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.ds-stat .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; background: var(--tint-2); color: var(--brand); }
.ds-stat .ic .ni { width: 20px; height: 20px; }
.ds-stat small { color: var(--ink-soft); font-weight: 700; font-size: .84rem; }
.ds-stat b { font-size: 2.1rem; line-height: 1.1; color: var(--heading); font-family: var(--font-latin); font-weight: 600; }
.ds-stat b i { font-style: normal; font-size: 1.1rem; color: var(--ink-soft); }
.ds-stat .sub { font-size: .8rem; color: var(--ink-soft); font-weight: 600; text-decoration: none; }
.ds-stat a.sub { color: var(--brand); font-weight: 800; }
.ds-stat::after { content: ""; position: absolute; inset-inline-end: -26px; inset-block-start: -26px; width: 90px; height: 90px; border-radius: 50%; background: var(--tint); opacity: .7; z-index: 0; }
.ds-stat > * { position: relative; z-index: 1; }
.ds-stat.s2 .ic { background: #DDF4EF; color: var(--teal-deep); }
.ds-stat.s2::after { background: #E7F7F3; }
.ds-stat.s3 .ic { background: var(--rose-bg); color: var(--rose); }
.ds-stat.s3::after { background: #FDF1F2; }
.ds-stat.s4 .ic { background: #EADFFB; color: #7C2FD0; }
.ds-stat.s4::after { background: #F3ECFD; }

/* ----- أقسام النظرة العامة ----- */
.ds-overview .ds-focus { grid-column: span 5; background: linear-gradient(160deg, var(--surface) 40%, var(--tint)); }
.ds-overview .ds-streak { grid-column: span 7; }
.ds-overview .ds-week { grid-column: span 7; }
.ds-overview .ds-recent { grid-column: span 5; }
.ds-focus h2 { font-size: 1.6rem; color: var(--heading); }
.ds-focus .btn { justify-self: start; }

.ds-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; }
.ds-days li { position: relative; aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; background: var(--tint); transition: transform .15s; }
.ds-days li:hover { transform: scale(1.12); }
.ds-days li i { font: 700 .66rem var(--font-latin); font-style: normal; color: var(--ink-soft); }
.ds-days li.lv1 { background: #D6C8F7; }
.ds-days li.lv2 { background: #9D7CEC; }
.ds-days li.lv3 { background: var(--brand); }
.ds-days li.lv2 i, .ds-days li.lv3 i { color: #fff; }
.ds-days li.is-today { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--teal); }
.ds-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.ds-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ds-legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--tint); }
.ds-legend i.lv2 { background: #9D7CEC; }
.ds-legend i.lv3 { background: var(--brand); }

/* ----- خط زمني للأسبوع ----- */
.ds-timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 4px; }
.ds-timeline::before { content: ""; position: absolute; inset-block: 14px; inset-inline-start: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.ds-timeline li {
	position: relative;
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	padding: 9px 4px 9px 0;
	padding-inline-start: 28px;
	border-radius: 14px;
}
.ds-timeline li::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); z-index: 1; }
.ds-timeline .day { color: var(--heading); font-size: .95rem; border: 0; background: none; padding: 0; box-shadow: none; min-width: 0; border-radius: 0; }
.ds-timeline .tx { color: var(--ink-2); font-size: .92rem; min-width: 0; overflow-wrap: anywhere; }
.ds-timeline .tx a { color: var(--ink); font-weight: 700; text-decoration: none; }
.ds-timeline .tx a:hover { color: var(--brand); }
.ds-timeline li.wk-done::before { background: var(--teal); border-color: var(--teal); }
.ds-timeline li.wk-today { background: var(--tint); }
.ds-timeline li.wk-today::before { background: var(--brand); border-color: var(--tint-2); box-shadow: 0 0 0 4px rgba(91, 51, 198, .18); }
.ds-timeline li.wk-missed::before { background: var(--line); }
.ds-timeline li.is-locked { opacity: .65; }
.ds-timeline.is-full li { padding-block: 14px; }

/* ----- نتائج حديثة ----- */
.ds-feed { list-style: none; margin: 0; padding: 0; display: grid; }
.ds-feed li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ds-feed li:last-child { border: 0; }
.ds-feed .pc { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-weight: 800; font-size: .92rem; background: var(--tint); color: var(--heading); }
.ds-feed .ms-ok .pc { background: #DDF4EF; color: var(--teal-deep); }
.ds-feed .ms-weak .pc { background: var(--rose-bg); color: var(--rose); }
.ds-feed .tx { display: grid; line-height: 1.35; min-width: 0; }
.ds-feed .tx b { color: var(--heading); font-size: .95rem; }
.ds-feed .tx small { color: var(--ink-soft); }

/* ----- صفحات الأقسام ----- */
.ds-page { display: grid; gap: 18px; }
.ds-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ds-page-head > div { display: grid; gap: 6px; justify-items: start; }
.ds-page-head h1 {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	background: none;
	-webkit-text-fill-color: currentColor;
	color: var(--heading);
}
.ds-page-head p { max-width: 42em; }
.ds-page .pagehead, .ds-page .pagehead h1 { text-align: start; }
.ds-upsell { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; border-radius: 20px; background: var(--tint); border: 1px solid var(--tint-2); }
.ds-upsell b { color: var(--heading); }
.ds-upsell span { flex: 1; color: var(--ink-2); min-width: 200px; }

.ds-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.ds-unit {
	--c: var(--ink-soft);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 4px 14px;
	align-items: center;
	padding: 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 20px;
	text-decoration: none;
	color: var(--ink);
	transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ds-unit:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 20px 32px -26px var(--c); }
.ds-unit .status { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
.ds-unit.ms-ok { --c: var(--teal-deep); }
.ds-unit.ms-mid { --c: var(--brand); }
.ds-unit.ms-weak { --c: var(--rose); }
.u-ring { --p: 0; position: relative; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--tint) 0); }
.u-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.u-ring b { position: relative; font-size: .86rem; color: var(--c); }
.u-tx { display: grid; line-height: 1.35; min-width: 0; }
.u-tx b { color: var(--heading); font-size: 1.02rem; }
.u-tx small { color: var(--ink-soft); }

.ds-reads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ds-reads a { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s; height: 100%; }
.ds-reads a:hover { transform: translateY(-3px); box-shadow: 0 22px 34px -28px rgba(59, 29, 122, .6); }
.ds-reads img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ds-reads span { display: grid; gap: 4px; padding: 14px 16px 16px; }
.ds-reads b { color: var(--heading); line-height: 1.5; }
.ds-reads small { color: var(--ink-soft); }

.ds-plan.is-pro { background: linear-gradient(150deg, var(--surface) 50%, #E7F7F3); }
.ds-plan .ds-chip { background: var(--tint); color: var(--heading); }
.ds-plan .ds-chip { backdrop-filter: none; }

.d-chart .linechart { width: 100%; height: auto; max-height: 300px; }
.d-chart .linechart .ln { stroke: var(--brand); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.d-chart .linechart .pt { fill: #fff; stroke: var(--brand); stroke-width: 3.5; }
.d-chart .linechart .grid { stroke: var(--line); stroke-dasharray: 4 5; }
.d-chart .linechart .ax { fill: var(--ink-soft); font-size: 11px; text-anchor: start; }
.d-chart .linechart .lb { fill: var(--heading); font-size: 13px; font-weight: 800; text-anchor: middle; }

/* ----- ستوديو المعلم ----- */
.ds-hero-teacher { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); }
.ds-pipe { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 6px; align-items: center; padding: 18px 14px; border-radius: 22px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.ds-pipe div { display: grid; text-align: center; line-height: 1.25; gap: 2px; }
.ds-pipe b { font: 600 2rem var(--font-latin); color: #fff; }
.ds-pipe span { font-size: .78rem; color: #CFC4F0; font-weight: 700; }
.ds-pipe i { width: 18px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 4px, transparent 4px 8px); }
.ds-pipe .p-ok b { color: #9CE8C8; }
.ds-pipe .p-rej b { color: #FFB3BD; }

.ds-studio .ds-heat-card { grid-column: span 7; }
.ds-studio .ds-hard-card { grid-column: span 5; }
.ds-alert { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: var(--rose-bg); border: 1px solid #F3C4CA; color: #6B1822; flex-wrap: wrap; }
.ds-alert .ni { width: 24px; height: 24px; color: var(--rose); flex: none; }
.ds-alert span { flex: 1; display: grid; line-height: 1.4; min-width: 200px; }
.ds-alert small { color: #8B2A36; }

.ds-heat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ds-heat li { display: grid; gap: 1px; padding: 14px; border-radius: 18px; background: var(--tint); transition: transform .15s; }
.ds-heat li:hover { transform: translateY(-2px); }
.ds-heat .num { font: 600 1.7rem var(--font-latin); line-height: 1.1; }
.ds-heat b { font-size: .94rem; color: var(--heading); }
.ds-heat small { font-size: .76rem; color: var(--ink-soft); font-weight: 600; }
.ds-heat .hm-ok, .ds-heat li.hm-ok { background: #DDF4EF; } .ds-heat .hm-ok .num { color: var(--teal-deep); }
.ds-heat .hm-mid { background: var(--tint-2); } .ds-heat .hm-mid .num { color: var(--brand); }
.ds-heat .hm-weak { background: var(--rose-bg); } .ds-heat .hm-weak .num { color: var(--rose); }
.ds-heat .hm-new { background: #F0EEF5; } .ds-heat .hm-new .num { color: var(--ink-soft); }
.ds-heat.is-big { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.ds-heat.is-big .num { font-size: 2.2rem; }
.map-legend { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.ds-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ds-col { display: grid; gap: 12px; align-content: start; padding: 14px; border-radius: 24px; background: color-mix(in srgb, var(--tint) 70%, var(--surface)); border: 1px solid var(--tint-2); border-top: 4px solid var(--brand-2); }
.ds-col.col-ok { border-top-color: var(--teal); background: #F1FAF8; border-color: #D3EFE9; border-top-color: var(--teal); }
.ds-col.col-rej { border-top-color: var(--rose); background: #FEF6F7; border-color: #F6D6DA; border-top-color: var(--rose); }
.ds-col header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 8px; }
.ds-col header h2 { font-size: 1rem; }
.ds-col header em { font-style: normal; font-weight: 800; min-width: 26px; text-align: center; padding: 1px 8px; border-radius: 99px; background: var(--surface); color: var(--heading); font-size: .85rem; }
.ds-col header small { grid-column: 1 / -1; color: var(--ink-soft); font-size: .78rem; }
.ds-res { display: grid; gap: 6px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 20px -18px rgba(59, 29, 122, .45); transition: transform .15s; }
.ds-res:hover { transform: translateY(-2px); }
.ds-res .kind { justify-self: start; font-size: .72rem; font-weight: 800; padding: 1px 10px; border-radius: 99px; background: var(--tint); color: var(--heading); }
.ds-res h3 { font-size: .98rem; line-height: 1.5; }
.ds-res .where { color: var(--ink-soft); font-size: .82rem; }
.ds-res .why { font-size: .82rem; color: var(--rose); background: var(--rose-bg); padding: 6px 10px; border-radius: 10px; }
.ds-res footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.ds-res .views { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: .82rem; }
.ds-res .views .ni { width: 15px; height: 15px; }
.ds-res .acts { display: flex; gap: 6px; }
.ds-col-empty { text-align: center; color: var(--ink-soft); font-size: .85rem; padding: 18px 0; border: 2px dashed var(--line); border-radius: 16px; }

.ds-create { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.ds-create > * { grid-column: auto !important; }
.ds-create .t-guide { position: sticky; top: 90px; }

.ds-card .hard-list, .ds-card .feed { margin: 0; }

/* ----- استجابة ----- */
@media (max-width: 1180px) {
	.ds { grid-template-columns: 260px minmax(0, 1fr); }
	.ds-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ds-overview .ds-focus, .ds-overview .ds-streak, .ds-overview .ds-week, .ds-overview .ds-recent,
	.ds-studio .ds-heat-card, .ds-studio .ds-hard-card { grid-column: 1 / -1; }
	.ds-search { min-width: 0; }
	.ds-search span, .ds-search kbd { display: none; }
	.ds-search { padding: 10px; }
}
@media (max-width: 900px) {
	.ds { grid-template-columns: 1fr; }
	.ds-side {
		position: fixed;
		z-index: 90;
		inset-block: 0;
		inset-inline-start: 0;
		width: min(86vw, 330px);
		height: 100dvh;
		transform: translateX(105%);
		transition: transform .28s cubic-bezier(.2, .7, .2, 1);
		box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .5);
	}
	.admin-bar .ds-side { top: 46px; height: calc(100dvh - 46px); }
	.ds.is-open .ds-side { transform: none; }
	.ds-x { display: grid; place-items: center; }
	.ds-burger { display: inline-grid; }
	.ds-scrim { position: fixed; z-index: 80; inset: 0; background: rgba(20, 8, 50, .55); backdrop-filter: blur(2px); }
	.ds-scrim[hidden] { display: none; }
	.ds-clock span { display: none; }
	.ds-hero, .ds-hero-teacher { grid-template-columns: 1fr; }
	.ds-hero-art { justify-self: start; }
	.ds-ring { width: 130px; height: 130px; }
	.ds-ring b { font-size: 1.6rem; }
	.ds-board { grid-template-columns: 1fr; }
	.ds-create { grid-template-columns: 1fr; }
	.ds-create .t-guide { position: static; }
}
@media (max-width: 560px) {
	.ds-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.ds-stat { padding: 14px; }
	.ds-stat b { font-size: 1.7rem; }
	.ds-days { gap: 4px; }
	.ds-timeline li { grid-template-columns: 64px minmax(0, 1fr); }
	.ds-timeline li .status { grid-column: 2; justify-self: start; }
	.ds-clock { display: none; }
	.ds-crumb b { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
	.ds *, .ds-side { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
	.ds-body > * { animation: mqFade .45s cubic-bezier(.2, .7, .2, 1) both; }
	.ds-grid > *:nth-child(2) { animation: mqFade .5s .06s both; }
	.ds-grid > *:nth-child(3) { animation: mqFade .5s .12s both; }
	.ds-grid > *:nth-child(n+4) { animation: mqFade .5s .18s both; }
}

.ds-streak-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ds-streak-sum div { display: grid; gap: 0; text-align: center; }
.ds-streak-sum b { font: 600 1.5rem var(--font-latin); color: var(--heading); line-height: 1.2; }
.ds-streak-sum small { color: var(--ink-soft); font-size: .78rem; font-weight: 700; }

/* ============ 5) الرئيسية: ترتيب مترابط ============ */
:root { --head-h: 68px; }
.home .band { scroll-margin-top: calc(var(--head-h) + 64px); }
.home .band-explore { --band-bg: transparent; }
.home .band-journey { --band-bg: var(--tint); }
.home .band-library { --band-bg: var(--surface); }
.home .band-library::before { border-block: 1px solid var(--line); }
.home .band-pricing { --band-bg: var(--tint); }

/* شريط تنقل داخلي ثابت */
.home-nav {
	position: sticky;
	top: calc(var(--head-h) + 10px);
	z-index: 25;
	display: flex;
	gap: 4px;
	width: fit-content;
	max-width: 100%;
	margin: 26px auto 0;
	padding: 5px;
	background: color-mix(in srgb, var(--surface) 90%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border: 1px solid var(--line);
	border-radius: 99px;
	box-shadow: 0 14px 30px -22px rgba(59, 29, 122, .55);
	overflow-x: auto;
	scrollbar-width: none;
}
.home-nav::-webkit-scrollbar { display: none; }
.home-nav a { flex: none; padding: 8px 18px; border-radius: 99px; font-weight: 700; font-size: .9rem; color: var(--ink-2); text-decoration: none; transition: background .18s, color .18s; }
.home-nav a:hover { background: var(--tint); color: var(--heading); }
.home-nav a.is-on { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -10px rgba(91, 51, 198, .8); }
.home-nav a[hidden] { display: none; }

/* عنوان القسم الموحّد */
.home .sec-head { max-width: 760px; }
.home .sec-head.split { max-width: none; }

/* ----- المستكشف: البلد جانبًا والمواد بجواره ----- */
.explorer {
	display: grid;
	grid-template-columns: 308px minmax(0, 1fr);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 30px;
	box-shadow: 0 30px 60px -44px rgba(59, 29, 122, .55);
	overflow: hidden;
}
.ex-rail {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
	background:
		radial-gradient(240px 200px at 100% 0%, rgba(124, 77, 224, .12), transparent 70%),
		var(--tint);
	border-inline-end: 1px solid var(--line);
}
.ex-tab {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	font: inherit;
	text-align: start;
	color: var(--ink);
	cursor: pointer;
	transition: transform .18s, box-shadow .18s, border-color .18s, background .18s, color .18s;
}
.ex-tab:hover { transform: translateX(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 14px 24px -20px rgba(59, 29, 122, .6); }
.ex-tab:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
.ex-tab .cflag { width: 38px; height: 26px; border-radius: 6px; flex: none; box-shadow: 0 0 0 1px rgba(36, 22, 71, .14); }
.ex-txt { display: grid; line-height: 1.35; min-width: 0; }
.ex-txt b { font-size: 1.05rem; color: var(--heading); }
.ex-txt small { font-size: .76rem; color: var(--ink-soft); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-count { font-size: .72rem; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: var(--tint); color: var(--heading); white-space: nowrap; }
.ex-tab.on, .ex-tab[aria-selected="true"] {
	background: var(--grad-ribbon);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 18px 30px -20px rgba(59, 29, 122, .9);
}
.ex-tab.on:hover { transform: none; }
.ex-tab.on .ex-txt b, .ex-tab[aria-selected="true"] .ex-txt b { color: #fff; }
.ex-tab.on .ex-txt small, .ex-tab[aria-selected="true"] .ex-txt small { color: #DCD2F7; }
.ex-tab.on .ex-count, .ex-tab[aria-selected="true"] .ex-count { background: rgba(255, 255, 255, .2); color: #fff; }
.ex-all { margin-top: auto; padding: 10px 6px 0; font-weight: 800; font-size: .9rem; text-decoration: none; color: var(--brand); }
.ex-all:hover { text-decoration: underline; }

.ex-stage { padding: clamp(18px, 3vw, 32px); min-width: 0; display: grid; align-content: start; }
.ex-stage .country-panel { display: grid; gap: 18px; }
.ex-stage .country-panel[hidden] { display: none; }
.ex-stage .panel-note { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .92rem; color: var(--ink-2); }
.ex-stage .panel-note .cflag { width: 26px; height: 18px; border-radius: 4px; }
.explorer .bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.explorer .bento .subj { grid-column: span 2; min-height: 190px; }
.explorer .bento .subj-lg { grid-column: span 3; min-height: 220px; }
.explorer .year-tabs { margin-top: 6px; box-shadow: none; background: var(--bg); }

/* ----- الرحلة: الخطوات + التجربة + الخطة في قسم واحد ----- */
.steps4 { margin-top: 0; }
.journey-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; margin-top: 40px; align-items: stretch; position: relative; }
.journey-grid::before {
	content: "ثم جرّب بنفسك";
	position: absolute;
	inset-block-start: -30px;
	inset-inline-start: 50%;
	transform: translateX(50%);
	font-size: .8rem;
	font-weight: 800;
	color: var(--brand);
	background: var(--tint);
	padding: 0 12px;
	z-index: 1;
}
.journey-grid::after { content: ""; position: absolute; inset-inline: 0; inset-block-start: -22px; height: 0; border-top: 2px dashed color-mix(in srgb, var(--brand) 30%, transparent); }
.jcard {
	display: grid;
	gap: 16px;
	align-content: start;
	padding: clamp(18px, 3vw, 30px);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 28px;
	box-shadow: 0 24px 48px -38px rgba(59, 29, 122, .5);
	min-width: 0;
}
.jhead { display: grid; gap: 8px; justify-items: start; }
.jhead h3 { font-size: 1.35rem; color: var(--heading); }
.jtools .tool-tabs { display: grid; gap: 14px; }
.jtools .tool-panel { grid-template-columns: 1fr; gap: 16px; padding: 0; border: 0; box-shadow: none; background: none; min-height: 0; }
.jtools .tool-panel[hidden] { display: none; }
.jplan .plan-band { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 0; border: 0; background: none; box-shadow: none; }
.jplan .plan-copy h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.4; color: var(--heading); }
.jplan .plan-copy { gap: 10px; justify-items: start; }
.jplan .plan-stage { width: 100%; }
.jplan .ps-week { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1100px) {
	.explorer { grid-template-columns: 260px minmax(0, 1fr); }
	.explorer .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.explorer .bento .subj, .explorer .bento .subj-lg { grid-column: auto; }
	.journey-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.explorer { grid-template-columns: 1fr; border-radius: 24px; }
	.ex-rail { flex-direction: row; overflow-x: auto; scroll-snap-type: x proximity; padding: 12px; border-inline-end: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
	.ex-rail::-webkit-scrollbar { display: none; }
	.ex-tab { flex: 0 0 auto; min-width: 210px; scroll-snap-align: start; }
	.ex-tab:hover { transform: none; }
	.ex-all { display: none; }
	.journey-grid::before, .journey-grid::after { display: none; }
	.journey-grid { margin-top: 28px; }
}
@media (max-width: 560px) {
	.home-nav { margin-top: 18px; width: 100%; justify-content: flex-start; border-radius: 18px; }
	.home-nav a { padding: 8px 14px; }
	.explorer .bento { grid-template-columns: 1fr; }
	.ex-tab { min-width: 186px; padding: 10px 12px; }
	.ex-count { display: none; }
	.jplan .ps-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.final-cta { gap: 14px; }
}

/* رأس القسم المقسوم: العنوان + زر على نفس السطر */
.home .sec-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.home .sec-head.split > div { display: grid; gap: 11px; justify-items: start; flex: 1 1 420px; min-width: 0; max-width: 760px; }
.home .sec-head.split > .btn { flex: none; }
.explorer .bento .subj:last-child:nth-child(3n+1) { grid-column: 1 / -1; min-height: 150px; }
@media (max-width: 1100px) { .explorer .bento .subj:last-child:nth-child(3n+1) { grid-column: auto; min-height: 190px; } .explorer .bento .subj:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 560px) { .explorer .bento .subj:last-child:nth-child(odd) { grid-column: auto; } }
@media (max-width: 560px) { .explorer .bento .subj-lg p { display: none; } .explorer .bento .subj, .explorer .bento .subj-lg { min-height: 0; } }

/* ============ 6) لوحات التحكم: نسخة فاتحة + خط موحّد + بطل مبتكر ============ */
.ds { --font-latin: 'Cairo', system-ui, sans-serif; --sb-1: #fff; --sb-2: #fff; --sb-3: #fff; font-family: var(--font); }
.ds h1, .ds h2, .ds h3 { font-weight: 700; letter-spacing: 0; }
.ds .num, .ds b.num { font-family: var(--font); font-weight: 700; font-variant-numeric: tabular-nums; }
.btn-soft, a.btn-soft { background: var(--tint); color: var(--heading); border: 1px solid var(--line); }
.btn-soft:hover { background: #fff; border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }

/* الشريط الجانبي الفاتح */
.ds-side {
	color: var(--ink-2);
	background: linear-gradient(180deg, #fff 0%, #FAF8FF 100%);
	border-inline-end: 1px solid var(--line);
	scrollbar-color: var(--line) transparent;
}
.ds-brand a { color: var(--heading); }
.ds-brand img { background: var(--tint); }
.ds-brand small, .ds-me small { color: var(--ink-soft); }
.ds-x { border-color: var(--line); color: var(--heading); }
.ds-me { background: var(--tint); border: 1px solid var(--line); }
.ds-avatar { border-color: #fff; box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 35%, transparent); }
.ds-me b { color: var(--heading); }
.ds-group { color: var(--ink-soft); }
.ds-nav a, .ds-links a { color: var(--ink-2); }
.ds-nav a:hover, .ds-links a:hover { background: var(--tint); color: var(--heading); }
.ds-nav a:focus-visible, .ds-links a:focus-visible { outline-color: var(--brand); }
.ds-nav a[aria-current="page"] { background: var(--tint); color: var(--brand); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 22%, var(--line)); }
.ds-nav a[aria-current="page"]::before { background: var(--brand); box-shadow: none; inset-inline-start: -16px; }
.ds-nav a[aria-current="page"] .ni { color: var(--brand); }
.ds-badge { background: var(--tint); color: var(--heading); }
.ds-badge.is-hot { background: #FFE1E5; color: #8B1E2E; }
.ds-mini { background: var(--tint); border-color: var(--line); }
.ds-mini b { color: var(--heading); }
.ds-mini small { color: var(--ink-soft); }
.ds-mini > a { color: var(--brand); }
.ds-mini-ring { background: conic-gradient(var(--teal) calc(var(--p) * 1%), #E4DEF6 0); }
.ds-mini-ring::before { background: var(--tint); }

/* البطل الفاتح */
.ds-hero, .ds-hero-light {
	color: var(--ink-2);
	border: 1px solid var(--line);
	background:
		radial-gradient(420px 260px at 0% 0%, rgba(31, 168, 154, .14), transparent 70%),
		radial-gradient(520px 320px at 100% 100%, rgba(124, 77, 224, .16), transparent 70%),
		linear-gradient(135deg, #FFFFFF 0%, #F6F2FF 100%);
	box-shadow: 0 30px 56px -44px rgba(59, 29, 122, .55);
}
.ds-hero::before { background-image: radial-gradient(rgba(91, 51, 198, .16) 1.2px, transparent 1.3px); opacity: .7; }
.ds-hero h1 { color: var(--heading); -webkit-text-fill-color: var(--heading); font-weight: 800; }
.ds-hero h1 span { color: var(--brand); -webkit-text-fill-color: var(--brand); }
.ds-hero p { color: var(--ink-2); }
.ds-chip { background: #fff; color: var(--heading); border: 1px solid var(--line); box-shadow: 0 6px 14px -10px rgba(59, 29, 122, .5); backdrop-filter: none; }
.ds-chip .ni { color: #E8743B; }
.ds-hero-light { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); align-items: stretch; gap: clamp(18px, 3vw, 36px); }
.hx-main { display: grid; gap: 14px; justify-items: start; align-content: center; min-width: 0; }
.hx-main h1 { margin: 0; }
.hx-main p { margin: 0; }

.hx-week { list-style: none; margin: 6px 0 0; padding: 12px 14px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: min(100%, 460px); background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 20px; }
.hx-week li { display: grid; justify-items: center; gap: 6px; }
.hx-week li span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); border: 2px solid transparent; color: #fff; }
.hx-week li span svg { width: 16px; height: 16px; }
.hx-week li.on span { background: var(--teal); }
.hx-week li.today span { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.hx-week li em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--ink-soft); }
.hx-week li.today em { color: var(--brand); }

.hx-side { display: grid; gap: 14px; align-content: center; padding: 18px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 36px -30px rgba(59, 29, 122, .5); min-width: 0; }
.hx-level { display: flex; align-items: center; gap: 16px; }
.hx-level p { margin: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.6; }
.hx-level .ds-ring { width: 96px; height: 96px; flex: none; }
.ds-ring circle { stroke: #E9E3F8; stroke-width: 10; }
.ds-ring circle.v { stroke: var(--brand); filter: none; }
.ds-ring b { color: var(--heading); font-size: 1.7rem; font-family: var(--font); }
.ds-ring small { color: var(--ink-soft); }
.hx-level .ds-ring b { font-size: 1.55rem; line-height: 1; }
.hx-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hx-tasks li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: var(--tint); font-weight: 700; font-size: .92rem; color: var(--heading); }
.hx-tasks li a { flex: 1; color: inherit; text-decoration: none; }
.hx-tasks li span { flex: 1; }
.hx-tasks li b { font-size: .84rem; padding: 1px 10px; border-radius: 99px; background: #fff; color: var(--heading); }
.hx-tasks li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: transparent; flex: none; }
.hx-tasks li i svg { width: 12px; height: 12px; }
.hx-tasks li.done i { background: var(--teal); border-color: var(--teal); color: #fff; }
.hx-tasks li:hover { background: #EDE6FF; }

/* ستوديو المعلم: مسار فاتح */
.ds-pipe { background: rgba(255, 255, 255, .85); border: 1px solid var(--line); }
.ds-pipe b { color: var(--heading); font-family: var(--font); font-weight: 700; }
.ds-pipe span { color: var(--ink-soft); }
.ds-pipe i { background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px); }
.ds-pipe .p-ok b { color: var(--teal-deep); }
.ds-pipe .p-rej b { color: var(--rose); }

/* الشريط العلوي والمحتوى */
.ds-stat b { font-weight: 700; }

@media (max-width: 1100px) {
	.ds-hero-light { grid-template-columns: 1fr; }
	.hx-side { grid-template-columns: auto 1fr; align-items: center; }
}
@media (max-width: 700px) {
	.ds-hero-light { padding: 20px 16px; border-radius: 24px; }
	.hx-side { grid-template-columns: 1fr; padding: 14px; }
	.hx-week { padding: 10px; }
	.hx-week li span { width: 28px; height: 28px; }
	.ds-hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}
.ds-days li.lv2 { background: #B7A0F3; }
.ds-days li.lv3 { background: #8B64E8; }
.ds-legend .lv2, .ds-legend i.lv2 { background: #B7A0F3; } .ds-legend i.lv3 { background: #8B64E8; }

/* ============ 7) الموقع العام: لمسات إبداعية وتنظيم ============ */
/* عناصر عائمة حول بطاقة الاختبار */
.hero-art { position: relative; }
.hfloat {
	position: absolute;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 14px 9px 12px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 18px 30px -18px rgba(59, 29, 122, .55);
	font-size: .86rem;
	color: var(--heading);
	animation: mqFloat 6s ease-in-out infinite;
}
.hfloat i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #DDF4EF; color: var(--teal-deep); flex: none; }
.hfloat i svg { width: 16px; height: 16px; }
.hf-1 { inset-block-start: -20px; inset-inline-end: -26px; }
.hf-2 { display: none; }
.hf-2 i { background: var(--tint); color: var(--brand); }
.hf-3 { inset-block-end: -26px; inset-inline-start: 8%; flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 18px; background: var(--grad-ribbon); border: 0; color: #fff; animation-delay: -4s; }
.hf-3 b { font-size: 1.5rem; line-height: 1.1; color: #fff; }
.hf-3 small { font-size: .74rem; color: #E1D8FA; font-weight: 700; }
@keyframes mqFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hfloat { animation: none; } }
@media (max-width: 900px) { .home .hero { grid-template-columns: minmax(0, 1fr); } .hf-1 { inset-inline-end: 8px; } .hf-3 { inset-inline-start: 14px; } .home .hero-art { margin-bottom: 20px; } }
@media (max-width: 560px) { .hfloat { font-size: .78rem; padding: 7px 10px; } .hf-1 { inset-block-start: -14px; } }

/* شريط المزايا + التنقل الداخلي: أقرب وأنظف */
.trust-strip { margin-bottom: 0; }
.home-nav { margin-top: 22px; }

/* الأسعار: في المنتصف */
.home .band-pricing .sec-head { margin-inline: auto; text-align: center; justify-items: center; }
.home .band-pricing .sec-head h2, .home .band-pricing .sec-head p { margin-inline: auto; }
.home .band-pricing .pricing { margin-inline: auto; }
.home .band-pricing .pricing .plans { margin-inline: auto; max-width: 880px; }

/* المقالات: أغلفة أقصر وأرتب */
.home .article-layout .card-img { aspect-ratio: 16 / 7; max-height: 190px; }
.home .article-layout .card-featured .card-img { max-height: none; aspect-ratio: auto; }
.home .article-layout .card-art svg { width: 64px; height: 64px; }
.home .article-layout .card-art { display: grid; place-items: center; width: 100%; height: 100%; aspect-ratio: auto; }

/* التذييل: شبكة أوضح */
.site-footer { background: linear-gradient(180deg, var(--surface), #F7F4FF); }
.site-footer .footer-grid { grid-template-columns: 1.6fr 1.1fr 1fr 1fr; align-items: start; }
.footer-menu li a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.footer-menu small { display: inline; font-size: .76rem; opacity: .85; }
.site-footer .widget-title { position: relative; padding-bottom: 10px; margin-bottom: 14px; }
.site-footer .widget-title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--teal); }
@media (max-width: 860px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }
.home .band-pricing .pricing { margin-inline: auto !important; justify-self: center; width: 100%; max-width: 940px; }
.home .band-pricing .pricing .plans { margin-inline: auto !important; justify-self: center; width: 100%; max-width: 940px; }
.home .band-pricing .pricing .price-controls { align-items: center; justify-content: center; }
.home .band-pricing .plans { margin-inline: auto !important; max-width: 880px; }
.home .band-pricing .price-controls, .home .band-pricing .seg-country { justify-content: center; margin-inline: auto; }
