/* منصة الاستعمال الآمن للتكنولوجيا — واجهة الطالب والصفحات العامة */

/* ---------- الخط: TT Norms Pro (مستضاف على الموقع) ---------- */
@font-face { font-family: "TT Norms Pro"; src: url("../fonts/tt-norms-pro-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "TT Norms Pro"; src: url("../fonts/tt-norms-pro-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "TT Norms Pro"; src: url("../fonts/tt-norms-pro-demibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "TT Norms Pro"; src: url("../fonts/tt-norms-pro-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "TT Norms Pro"; src: url("../fonts/tt-norms-pro-extrabold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
	--navy-950: #06122b;
	--navy-900: #0a1a3a;
	--navy-800: #10285a;
	--navy-700: #173a7a;
	--blue: #2457c5;
	--sky: #eef3ff;
	--gold: #f5b301;
	--gold-300: #ffd34d;
	--gold-700: #9a6c00;
	--gold-100: #fff4d1;
	--gold-ink: #2b1f00;
	--green: #1f9d55;
	--green-100: #e3f6e9;
	--red: #c62828;
	--red-100: #fdeaea;
	--amber: #9a5b00;
	--amber-100: #fff3dc;
	--ink: #0c1730;
	--ink-2: #33415c;
	--muted: #66728a;
	--line: #e3e8f0;
	--bg: #f4f6fa;
	--card: #fff;
	--soft: #f6f8fc;
	--radius: 18px;
	--shadow-sm: 0 1px 2px rgba(10, 26, 58, .05);
	--shadow: 0 1px 2px rgba(10, 26, 58, .05), 0 16px 40px -16px rgba(10, 26, 58, .22);
	--font: "TT Norms Pro", "Segoe UI", Tahoma, sans-serif;
	--pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='100' viewBox='0 0 92 100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.075' stroke-width='1.2'%3E%3Cpath d='M26 6l18 6v14c0 11-8 19-18 22-10-3-18-11-18-22V12z'/%3E%3Cpath d='M72 54l18 6v14c0 11-8 19-18 22-10-3-18-11-18-22V60z'/%3E%3C/g%3E%3Cg fill='%23f5b301' fill-opacity='.4'%3E%3Ccircle cx='70' cy='20' r='1.6'/%3E%3Ccircle cx='22' cy='80' r='1.3'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.st-body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
:where(.st-body) img { max-width: 100%; height: auto; }
.st-body a { color: var(--blue); text-decoration: none; }
.st-body h1, .st-body h2, .st-body h3, .st-body h4 { line-height: 1.3; margin: 0 0 .45em; font-weight: 700; color: inherit; }
.st-body h1 { font-size: 34px; font-weight: 800; }
.st-body h2 { font-size: 24px; }
.st-body h3 { font-size: 18px; }
.st-body p { margin: 0 0 1em; }
.st-ico { flex: none; vertical-align: middle; }
.st-mono { font-family: var(--font); font-feature-settings: "tnum"; direction: ltr; unicode-bidi: isolate; letter-spacing: .02em; }
.st-muted { color: var(--muted); }
.st-small { font-size: 14px; }
.st-good { color: var(--green); }
.st-center { text-align: center; }
.st-lead { font-size: 18px; color: var(--ink-2); }
.st-dot { color: var(--gold); }
.st-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
[hidden] { display: none !important; }

/* السطر العلوي بمربع ذهبي (لا نستخدم تباعد الحروف مع العربية) */
.st-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--gold-700); }
.st-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); flex: none; }
.st-eyebrow.is-light { color: var(--gold-300); }
.st-center .st-eyebrow { justify-content: center; }

/* ---------- خلفية الهوية: كحلي متدرّج مع نقش دروع خفيف ---------- */
.st-pattern, .st-tcover, .st-ccover, .st-continue-thumb {
	position: relative;
	isolation: isolate;
	color: #fff;
	background-color: var(--navy-900);
	background-image:
		radial-gradient(900px 420px at 85% -10%, rgba(36, 87, 197, .55), transparent 60%),
		radial-gradient(600px 320px at 0% 110%, rgba(245, 179, 1, .13), transparent 60%),
		linear-gradient(160deg, var(--navy-800), var(--navy-950));
}
.st-pattern::before, .st-tcover::before, .st-ccover::before, .st-continue-thumb::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--pattern);
	background-size: 92px 100px;
	pointer-events: none;
}

/* ---------- الأزرار والتنبيهات ---------- */
.st-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border-radius: 12px; border: 1.5px solid transparent;
	font: 700 16px/1.3 var(--font); cursor: pointer; text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.st-btn:hover { transform: translateY(-1px); }
.st-btn:active { transform: none; }
.st-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.st-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.st-btn-primary { background: var(--navy-800); color: #fff !important; }
.st-btn-primary:hover { background: var(--navy-700); }
.st-btn-gold { background: var(--gold); color: var(--gold-ink) !important; box-shadow: 0 10px 24px -10px rgba(245, 179, 1, .8); }
.st-btn-gold:hover { background: #ffc21f; }
.st-btn-ghost { background: #fff; color: var(--navy-800) !important; border-color: var(--line); }
.st-btn-ghost:hover { border-color: #c9d3e3; }
.st-btn-glass { background: rgba(255, 255, 255, .08); color: #fff !important; border-color: rgba(255, 255, 255, .28); }
.st-btn-glass:hover { background: rgba(255, 255, 255, .14); }
.st-btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.st-btn-block { width: 100%; }

.st-alert { padding: 12px 16px; border-radius: 14px; margin: 0 0 18px; font-weight: 500; font-size: 15px; }
.st-alert p { margin: 0; }
.st-alert-bad { background: var(--red-100); color: #7f1d1d; }
.st-alert-good { background: var(--green-100); color: #14532d; }
.st-alert-info { background: var(--sky); color: var(--navy-800); }

.st-avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-800); color: var(--gold-300); font-weight: 700; font-size: 16px; flex: none; }
.st-avatar.is-lg { width: 48px; height: 48px; font-size: 20px; }
.st-avatar.is-xl { width: 88px; height: 88px; font-size: 38px; background: var(--gold); color: var(--navy-900); box-shadow: 0 0 0 6px rgba(255, 255, 255, .12); }

.st-progress-line { display: block; height: 6px; background: #e8ecf3; border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.st-progress-line > span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(to left, var(--gold), var(--gold-300)); transition: width .4s ease; }
.st-progress-line.is-thin { height: 4px; }

/* ---------- الصفحات العامة: الرئيسية ---------- */
.st-public { display: block; }
.st-hero { display: flex; flex-direction: column; min-height: 780px; padding: 0 clamp(16px, 5vw, 64px); border-radius: 0 0 40px 40px; overflow: hidden; }
.st-hero.st-pattern {
	background-color: #021a3d;
	background-image:
		radial-gradient(620px 520px at 27% 50%, rgba(56, 189, 248, .26), transparent 68%),
		radial-gradient(560px 260px at 28% 92%, rgba(245, 179, 1, .2), transparent 70%),
		radial-gradient(900px 520px at 95% -15%, rgba(36, 87, 197, .5), transparent 62%),
		linear-gradient(180deg, #03163a 0%, #021a3d 55%, #042250 100%);
}
.st-hero.st-pattern::before { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 35%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 72% 35%, #000 20%, transparent 75%); }
.st-pubbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; max-width: 1200px; width: 100%; margin: 0 auto; }
.st-pubbar-brand img { height: 46px; width: auto; display: block; }
.st-pubbar nav { display: flex; align-items: center; gap: 26px; }
.st-pubbar nav a { color: rgba(255, 255, 255, .78); font-size: 15px; font-weight: 500; }
.st-pubbar nav a:hover { color: #fff; }
.st-pubbar .st-pubbar-me { display: inline-flex; align-items: center; gap: 8px; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); padding: 6px 14px 6px 8px; border-radius: 99px; font-weight: 600; }
.st-pubbar .st-pubbar-me .st-avatar { width: 28px; height: 28px; font-size: 14px; }
.st-hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; max-width: 1200px; width: 100%; margin: 0 auto; padding: 28px 0 44px; flex: 1; }
.st-hero-title { font-size: clamp(46px, 6.4vw, 84px) !important; line-height: 1.12 !important; font-weight: 800 !important; margin: 0 0 22px !important; color: #fff; }
.st-hero-title span, .st-rise { display: block; animation: st-rise .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0) * .12s + .1s); }
.st-hero-title span:last-child { background: linear-gradient(90deg, #fff 35%, #ffe08a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-hero-title span:last-child i { -webkit-text-fill-color: var(--gold); }
@keyframes st-rise { from { opacity: 0; transform: translateY(18px); } }
.st-hero-title i { font-style: normal; color: var(--gold); }
.st-hero-text > p { font-size: 18px; color: #c9d5f0; max-width: 540px; }
.st-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.st-hero .st-cta { display: flex; }
.st-guides { display: flex !important; align-items: center; gap: 12px; margin-top: 30px; color: #b9c7e6; font-size: 14.5px; max-width: 460px; }
.st-guides b { color: #fff; }
.st-guides-av { display: flex; flex: none; }
.st-guides-av img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 3px #021a3d; }
.st-guides-av img + img { margin-inline-start: -12px; }

/* درع الحقيبة وبطاقاته العائمة */
.st-hero-visual { position: relative; width: 100%; max-width: 600px; justify-self: center; aspect-ratio: 1200 / 1101; }
.st-hero-glow { position: absolute; inset: 12% 14% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(94, 234, 255, .32), transparent 65%); filter: blur(30px); animation: st-breathe 6s ease-in-out infinite; }
.st-body .st-hero-art { position: relative; width: 100%; height: auto; display: block; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 78%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 78%, transparent 100%); animation: st-rise 1s cubic-bezier(.2, .8, .2, 1) both .15s; }
.st-float {
	position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
	padding: 10px 14px; border-radius: 16px; color: #fff;
	background: rgba(8, 28, 62, .62); border: 1px solid rgba(255, 255, 255, .16);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
	animation: st-pop-in .7s cubic-bezier(.2, 1.3, .4, 1) both, st-bob 6s ease-in-out infinite;
	animation-delay: calc(var(--d) * .12s + .2s), calc(var(--d) * .4s);
}
.st-float small { display: block; font-size: 11.5px; color: #a9bbdf; line-height: 1.3; }
.st-float b { display: block; font-size: 14px; line-height: 1.35; }
.st-float em { font-style: normal; font-size: 12px; font-weight: 700; }
.st-f-badge { top: 4%; right: 0; }
.st-f-badge .st-badge-svg { flex: none; filter: drop-shadow(0 6px 12px rgba(245, 179, 1, .45)); }
.st-f-pass { top: 30%; left: -6%; flex-direction: column; align-items: stretch; gap: 4px; min-width: 210px; }
.st-f-pass .st-mono { font-size: 15px; }
.st-f-meter { display: block; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; margin-top: 4px; }
.st-f-meter i { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(to left, #22c55e, #86efac); transform-origin: right; animation: st-fill 1.6s cubic-bezier(.2, .8, .2, 1) both 1.2s; }
.st-f-pass em { color: #86efac; display: inline-flex; align-items: center; gap: 4px; }
.st-f-phish { bottom: 1%; right: 2%; }
.st-f-flag { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(239, 68, 68, .2); color: #fca5a5; flex: none; }
.st-f-phish em { background: #ef4444; color: #fff; padding: 3px 10px; border-radius: 99px; }
.st-f-cert { bottom: 15%; left: -5%; }
.st-f-cert > svg { width: 62px; height: 62px; border-radius: 8px; flex: none; }
.st-f-cert span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--gold-300); font-weight: 700; }
@keyframes st-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes st-pop-in { from { opacity: 0; transform: translateY(14px) scale(.92); } }
@keyframes st-breathe { 50% { opacity: .65; transform: scale(1.06); } }
@keyframes st-fill { from { transform: scaleX(.15); } }
@media (prefers-reduced-motion: reduce) {
	.st-hero *, .st-hero *::before { animation: none !important; }
}


.st-strip { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1200px; width: 100%; margin: 0 auto 36px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.st-strip > div { display: grid; gap: 2px; padding: 18px 22px; border-inline-start: 1px solid rgba(255, 255, 255, .1); }
.st-strip > div:first-child { border-inline-start: 0; }
.st-strip small { font-size: 12px; font-weight: 700; color: var(--gold-300); }
.st-strip b { font-size: 19px; color: #fff; }
.st-strip span { font-size: 13px; color: #9fb0d6; }
.st-strip .is-gold { background: var(--gold); }
.st-strip .is-gold small, .st-strip .is-gold span { color: rgba(43, 31, 0, .72); }
.st-strip .is-gold b { color: var(--gold-ink); }

.st-section { max-width: 1200px; margin: 76px auto; padding: 0 clamp(16px, 4vw, 40px); }
.st-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.st-section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: 0; }
.st-how { max-width: none; margin: 0 clamp(12px, 2.5vw, 32px); padding: 60px clamp(20px, 5vw, 72px); border-radius: 32px; }
.st-how .st-section-head { max-width: 1200px; margin-inline: auto; }
.st-how-steps { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1200px; }
.st-how-steps li { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 22px; }
.st-how-steps span { display: block; font-size: 13px; font-weight: 700; color: var(--gold-300); font-feature-settings: "tnum"; }
.st-how-steps .st-ico { color: var(--gold); margin: 14px 0 10px; }
.st-how-steps h3 { color: #fff; }
.st-how-steps p { color: #c2cee9; font-size: 15px; margin: 0; }
.st-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.st-features > div { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.st-feature-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--gold-100); color: var(--gold-700); margin-bottom: 14px; }
.st-features p { color: var(--muted); font-size: 15px; margin: 0; }
.st-duo { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 44px; background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: clamp(24px, 4vw, 48px); }
.st-duo img { width: 100%; max-width: 520px; justify-self: center; }
.st-duo h2 { font-size: 36px; font-weight: 800; }

.st-foot { margin-top: 76px; padding: 52px clamp(16px, 5vw, 64px) 22px; border-radius: 36px 36px 0 0; }
.st-foot-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.st-foot-brand { display: grid; gap: 22px; align-content: start; }
.st-foot-brand img { height: 48px; width: auto; }
.st-foot-help > b { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 12px; }
.st-foot-help .st-ico { color: var(--gold); }
.st-foot-help ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.st-foot-help li { display: flex; align-items: center; gap: 12px; color: #c9d5f0; }
.st-foot-help li a, .st-help-strip a { display: inline-block; min-width: 54px; text-align: center; padding: 1px 10px; border-radius: 9px; background: var(--gold); color: var(--gold-ink) !important; font-weight: 800; font-feature-settings: "tnum"; }
.st-foot-help p { color: #9fb0d6; font-size: 14px; margin: 0; }
.st-foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; max-width: 1200px; margin: 36px auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.st-foot-bottom span { color: var(--gold-300); font-weight: 700; }
.st-foot-bottom a { color: #c9d5f0; }

/* ---------- الدخول والتسجيل ---------- */
.st-auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.st-auth-panel { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: clamp(28px, 4vw, 52px); overflow: hidden; }
.st-auth-brand { height: 46px; width: auto; }
.st-auth-panel h1 { color: #fff; font-size: clamp(36px, 4vw, 52px); }
.st-auth-panel p { color: #c9d5f0; font-size: 18px; max-width: 460px; }
.st-auth-art { max-width: 440px; width: 80%; align-self: center; margin-bottom: -60px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
.st-auth-form { display: grid; place-items: center; padding: clamp(24px, 4vw, 52px); }
.st-auth-box { width: min(420px, 100%); }
.st-auth-box h2 { font-size: 32px; font-weight: 800; }
.st-auth-alt { font-size: 15px; color: var(--muted); margin: 16px 0 0; }
.st-form { display: grid; gap: 16px; }
.st-field { display: grid; gap: 6px; }
.st-field > span { font-weight: 600; font-size: 15px; color: var(--ink-2); }
.st-field small { font-weight: 400; color: var(--muted); }
.st-field input, .st-field textarea, .st-q textarea {
	width: 100%; font: 500 17px/1.4 var(--font); padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
	transition: border-color .15s, box-shadow .15s;
}
.st-field input:focus, .st-q textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(36, 87, 197, .12); }
.st-code-input { text-align: center; font-feature-settings: "tnum"; letter-spacing: .14em; text-transform: uppercase; font-size: 22px !important; font-weight: 700 !important; }
.st-whoami { display: flex; align-items: center; gap: 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin: 6px 0 8px; }
.st-whoami div { display: grid; }
.st-whoami b { font-size: 18px; }
.st-whoami span { color: var(--muted); font-size: 14px; }

.st-meter { display: flex; align-items: center; gap: 10px; margin-top: -6px; }
.st-meter-bar { flex: 1; height: 8px; background: #e8ecf3; border-radius: 99px; overflow: hidden; }
.st-meter-bar span { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .2s, background .2s; }
.st-meter b { font-size: 14px; min-width: 76px; }
.st-meter[data-level="0"] span, .st-meter[data-level="1"] span { background: var(--red); }
.st-meter[data-level="2"] span { background: #e09b00; }
.st-meter[data-level="3"] span { background: #5aa832; }
.st-meter[data-level="4"] span { background: var(--green); }

/* ---------- التحقق من الشهادات ---------- */
.st-verify { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 16px; }
.st-verify-card { width: min(500px, 100%); background: #fff; color: var(--ink); border-radius: 26px; padding: clamp(24px, 4vw, 36px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.st-verify-brand { height: 42px; width: auto; margin-bottom: 18px; }
.st-verify-card h1 { font-size: 30px; }
.st-verify-result { border-radius: 16px; padding: 14px 16px; margin: 6px 0 18px; }
.st-verify-result.is-valid { background: var(--green-100); }
.st-verify-result.is-invalid { background: var(--red-100); color: #7f1d1d; }
.st-verify-status { display: flex; align-items: center; gap: 8px; font-weight: 800; margin: 0 0 8px; }
.st-verify-result.is-valid .st-verify-status { color: var(--green); }
.st-verify-result dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; font-size: 15px; }
.st-verify-result dt { color: var(--muted); }
.st-verify-result dd { margin: 0; font-weight: 600; }
.st-verify-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.st-verify-form input { text-align: center; font-feature-settings: "tnum"; letter-spacing: .1em; text-transform: uppercase; }
.st-verify-foot { color: rgba(255, 255, 255, .6); font-size: 14px; }
.st-verify-foot a { color: #fff; }

/* ---------- لوحة الطالب: القائمة الجانبية ---------- */
.st-shell { display: flex; min-height: 100vh; }
.st-side { width: 268px; flex: none; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 16px; overflow-y: auto; }
.admin-bar .st-side { top: 32px; height: calc(100vh - 32px); }
.st-side-top { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.st-side-brand { height: 42px; width: auto; display: block; }
.st-side-close { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
.st-side-label { display: flex; align-items: center; gap: 8px; margin: 30px 12px 8px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .5); }
.st-side-label::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); }
.st-menu { display: grid; gap: 4px; }
.st-menu a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: #c9d5f0; font-weight: 500; font-size: 15.5px; transition: background .15s, color .15s; }
.st-menu a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.st-menu a.is-active { background: #fff; color: var(--navy-900); font-weight: 700; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
.st-menu a.is-active .st-ico { color: var(--navy-700); }
.st-menu a.is-active::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-inline-start: auto; }
.st-menu em { margin-inline-start: auto; font-style: normal; font-size: 12px; font-weight: 700; background: rgba(245, 179, 1, .18); color: var(--gold-300); padding: 0 8px; border-radius: 99px; }
.st-menu a.is-active em { margin-inline-start: auto; background: var(--gold-100); color: var(--gold-700); }
.st-menu a.is-active:has(em)::after { display: none; }
.st-side-card { margin-top: auto; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 16px; }
.st-side-card p { color: #c2cee9; font-size: 13.5px; margin: 0 0 12px; }
.st-side-card .st-btn { width: 100%; }

.st-app { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 66px; padding: 0 clamp(16px, 3vw, 32px); background: rgba(244, 246, 250, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .st-appbar { top: 32px; }
.st-menu-btn { display: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; width: 42px; height: 42px; place-items: center; cursor: pointer; color: var(--ink); }
.st-appbar-mark { display: none; height: 30px; width: auto; }
.st-appbar-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.st-appbar > * { flex-shrink: 0; }
.st-me { display: flex; align-items: center; gap: 8px; padding: 4px; padding-inline-end: 14px; background: #fff; border: 1px solid var(--line); border-radius: 99px; color: var(--ink) !important; font-weight: 600; font-size: 15px; }
.st-icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink-2) !important; }
.st-icon-btn:hover { color: var(--red) !important; }
.st-main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 32px) 48px; }
.st-help-strip { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 16px clamp(16px, 3vw, 32px); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.st-help-strip b { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.st-scrim { display: none; }

/* ---------- لوحة الطالب: المكوّنات ---------- */
.st-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.st-page-head h1 { margin: 0; }
.st-page-head .st-lead { color: var(--muted); font-size: 16.5px; max-width: 680px; margin: 8px 0 0; }

.st-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-sm); }
.st-card + .st-card { margin-top: 20px; }
.st-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.st-card-head h2 { font-size: 19px; margin: 0; }
.st-card-head a { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.st-cols-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin: 20px 0; }
.st-empty-state { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 18px; background: var(--soft); border-radius: 16px; color: var(--muted); margin-bottom: 12px; }
.st-empty-state .st-ico { color: var(--gold-700); }
.st-empty-state p { margin: 0; }

.st-welcome { display: grid; grid-template-columns: 1fr 300px; align-items: end; gap: 16px; padding: 32px 34px 0; border-radius: 26px; overflow: hidden; min-height: 300px; }
.st-welcome-text { padding-bottom: 30px; }
.st-welcome h1 { color: #fff; font-size: clamp(28px, 3.3vw, 40px); }
.st-welcome-text > p { color: #c9d5f0; max-width: 520px; }
.st-welcome-img { align-self: end; width: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.st-glass-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; max-width: 640px; }
.st-glass-stats > div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 12px 14px; }
.st-glass-stats b { display: block; font-size: 28px; line-height: 1.1; color: #fff; font-feature-settings: "tnum"; }
.st-glass-stats b small { font-size: 15px; color: rgba(255, 255, 255, .55); }
.st-glass-stats span { font-size: 13px; color: #b9c7e6; }

.st-continue { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st-continue a { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; color: inherit !important; transition: background .15s; }
.st-continue a:hover { background: var(--soft); }
.st-continue-thumb { flex: none; width: 96px; height: 70px; border-radius: 12px; overflow: hidden; display: grid; place-items: end center; }
.st-continue-thumb img { height: 92%; width: auto; }
.st-continue-text { flex: 1; min-width: 0; display: grid; }
.st-continue-text small { font-size: 12.5px; color: var(--muted); }
.st-continue-text small:first-child { color: var(--gold-700); font-weight: 700; }
.st-continue-text b { font-size: 16px; }

.st-timeline { list-style: none; margin: 0; padding: 0; }
.st-timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.st-timeline li:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 14px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.st-timeline li.is-done:not(:last-child)::before { background: #a9dcbc; }
.st-tl-dot { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); border: 1.5px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14px; position: relative; }
.st-timeline li.is-done .st-tl-dot { background: var(--green); border-color: var(--green); color: #fff; }
.st-timeline li.is-current .st-tl-dot { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); box-shadow: 0 0 0 5px var(--gold-100); }
.st-timeline div { display: grid; }
.st-timeline b { font-size: 15.5px; }
.st-timeline small { color: var(--muted); font-size: 13.5px; }

/* بطاقات المسارات */
.st-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.st-tcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; color: inherit !important; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
a.st-tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.st-tcover { aspect-ratio: 16 / 10.5; overflow: hidden; }
.st-tcover img { position: absolute; bottom: 0; left: 0; right: 0; margin: auto; height: 94%; width: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .3)); }
.st-tcover-num { position: absolute; top: 10px; inset-inline-start: 16px; font-size: 40px; font-weight: 800; color: rgba(255, 255, 255, .13); font-feature-settings: "tnum"; line-height: 1; }
.st-tcover-chip { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.st-tcover-chip.is-done { background: var(--green); border-color: var(--green); }
.st-tband { display: flex; justify-content: space-between; gap: 8px; padding: 6px 16px; background: var(--gold); color: var(--gold-ink); font-size: 12.5px; font-weight: 700; }
.st-tbody { padding: 14px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.st-tbody h3 { font-size: 17.5px; margin-bottom: 4px; }
.st-tbody p { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; line-height: 1.6; }
.st-tmeta { margin-top: auto; display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.st-tmeta span { display: inline-flex; align-items: center; gap: 5px; }
.st-tmeta .st-ico { color: var(--gold-700); }
.st-tprog { font-size: 12.5px; color: var(--muted); }
.st-tcard .st-progress-line { margin-top: auto; }
.st-tcard.is-soon .st-tcover img { filter: grayscale(.7) opacity(.55); }
.st-tcard.is-soon .st-tband { background: #e8ecf3; color: var(--muted); }
.st-tcard.is-done { border-color: #a9dcbc; }
.st-tcard.is-done .st-tband { background: var(--green); color: #fff; }
.st-tstatus { display: inline-flex; align-items: center; gap: 4px; }

/* رأس صفحة المسار */
.st-track-head { display: grid; grid-template-columns: 1fr auto 240px; align-items: center; gap: 24px; padding: 26px 32px 0 32px; border-radius: 26px; overflow: hidden; margin-bottom: 22px; }
.st-track-head > div:first-child { padding-bottom: 26px; }
.st-track-head h1 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.st-crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .7) !important; margin-bottom: 14px; }
.st-crumb:hover { color: #fff !important; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: 13px; color: rgba(255, 255, 255, .88); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.st-chips .st-ico { color: var(--gold-300); }
.st-track-head-img { align-self: end; width: 100%; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .35)); }

.st-ring {
	--c: var(--gold); --track: rgba(255, 255, 255, .14); --inner: var(--navy-900); --tc: #fff;
	width: 108px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; color: var(--tc);
	background: radial-gradient(closest-side, var(--inner) 80%, transparent 81% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--track) 0);
	transition: background .4s;
}
.st-ring b { font-size: 26px; line-height: 1; font-feature-settings: "tnum"; }
.st-ring span { font-size: 12px; opacity: .75; }
.st-ring.is-lg { --track: #e8ecf3; --inner: #fff; --tc: var(--navy-900); width: 170px; margin: 10px auto 18px; }
.st-ring.is-lg b { font-size: 52px; }
.st-band-high { --c: var(--green); }
.st-band-mid { --c: var(--gold); }
.st-band-low { --c: #e0662b; }

/* صفحة المسار: المحتوى الجانبي والمسرح */
.st-track-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; }
.st-curriculum { position: sticky; top: 86px; max-height: calc(100vh - 104px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px 14px; }
.admin-bar .st-curriculum { top: 118px; }
.st-curriculum h3 { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 8px 10px; cursor: default; }
.st-cl, .st-cl ul { list-style: none; margin: 0; padding: 0; }
.st-cl-step { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; line-height: 1.45; transition: background .15s; }
.st-cl-step:hover { background: var(--soft); }
.st-cl-step .st-ico { color: #9aa6b8; }
.st-cl-step.is-done .st-ico { color: var(--green); }
.st-cl-step.is-current { background: var(--sky); color: var(--navy-800); font-weight: 700; }
.st-cl-step.is-current .st-ico { color: var(--blue); }
.st-cl-step.is-locked, .st-cl-exam.is-locked, .st-cl-cert.is-locked { opacity: .45; cursor: not-allowed; }
.st-cl-part { margin-top: 12px; }
.st-cl-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 6px; }
.st-cl-head div { display: grid; line-height: 1.35; }
.st-cl-head small { font-size: 12px; color: var(--gold-700); font-weight: 700; }
.st-cl-head b { font-size: 15px; }
.st-cl-part ul { margin-inline-start: 20px; padding-inline-start: 6px; border-inline-start: 2px dashed var(--line); }
.st-cl-exam, .st-cl-cert { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px; border-radius: 14px; background: var(--soft); cursor: pointer; }
.st-cl-exam div, .st-cl-cert div { display: grid; line-height: 1.35; }
.st-cl-exam b, .st-cl-cert b { font-size: 14.5px; }
.st-cl-exam small, .st-cl-cert small { font-size: 12.5px; color: var(--muted); font-feature-settings: "tnum"; }
.st-cl-exam-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy-800); color: var(--gold-300); flex: none; }
.st-cl-exam.is-done .st-cl-exam-ico, .st-cl-cert.is-done .st-cl-exam-ico { background: var(--green); color: #fff; }
.st-cl-exam.is-current, .st-cl-cert.is-current { background: var(--sky); box-shadow: inset 0 0 0 1.5px #c8d6f5; }

.st-stage { min-width: 0; }
.st-stage-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.st-stage-top .st-progress-line { flex: 1; margin: 0; height: 8px; }
.st-step-count { font-size: 13px; font-weight: 600; color: var(--muted); font-feature-settings: "tnum"; white-space: nowrap; }
.st-step { display: none; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3.4vw, 36px); box-shadow: var(--shadow-sm); }
.st-step.is-current { display: block; animation: st-in .3s ease; }
@keyframes st-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.st-step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }

.st-step-intro.is-current { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.st-checks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.st-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; }
.st-checks .st-ico { color: var(--green); margin-top: 4px; }
.st-intro-parts { display: grid; gap: 10px; }
.st-intro-parts > div { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); font-weight: 700; }
.st-intro-parts span { display: grid; line-height: 1.4; }
.st-intro-parts small { font-size: 12px; color: var(--gold-700); }

.st-step-part.is-current { display: grid; justify-items: center; text-align: center; padding-block: 44px; }
.st-step-part .st-badge-svg { margin-bottom: 18px; filter: drop-shadow(0 14px 26px rgba(245, 179, 1, .35)); }
.st-step-part .st-eyebrow { justify-content: center; }
.st-step-part h2 { font-size: 32px; font-weight: 800; }
.st-step-part .st-lead { max-width: 480px; color: var(--muted); }

.st-learn h2 { display: flex; align-items: center; gap: 14px; color: var(--navy-900); font-size: 26px; }
.st-learn-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--gold-100); color: var(--gold-700); flex: none; }
.st-tone-warn { background: var(--amber-100); border-color: #f3d18a; }
.st-tone-warn .st-learn-ico { background: #fff; color: var(--amber); }
.st-quote { background: var(--sky); border-inline-start: 4px solid var(--navy-700); padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; }
.st-dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-dodont > div { border-radius: 18px; padding: 16px 18px; }
.st-dodont h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 17px; }
.st-dodont ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; font-size: 15.5px; }
.st-do { background: var(--green-100); }
.st-do h4 { color: var(--green); }
.st-dont { background: var(--red-100); }
.st-dont h4 { color: var(--red); }

.st-say { display: flex; align-items: flex-start; gap: 14px; margin: 20px 0 6px; }
.st-say img { width: 56px; height: 56px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(10, 26, 58, .15); }
.st-say > div { background: var(--soft); border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; padding: 10px 16px; }
.st-say b { display: block; font-size: 13px; color: var(--gold-700); }
.st-say p { margin: 0; font-size: 16px; }

.st-activity h2 { color: var(--navy-900); margin-bottom: 4px; font-size: 26px; }
.st-activity-body { margin-top: 18px; }
.st-exam { border-color: #c8d6f5; box-shadow: 0 0 0 4px var(--sky); }

/* صح أم خطأ */
.st-tf-card { border: 1px solid var(--line); border-radius: 22px; padding: 28px 22px; text-align: center; background: linear-gradient(180deg, #fff, var(--soft)); }
.st-tf-count { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; font-feature-settings: "tnum"; }
.st-tf-text { font-size: 22px; font-weight: 700; margin: 0 0 22px; line-height: 1.6; }
.st-tf-btns { display: flex; justify-content: center; gap: 14px; }
.st-tf-btns .st-btn { min-width: 140px; font-size: 18px; background: #fff; }
.st-tf-true { border-color: #9fd7b4 !important; color: var(--green) !important; }
.st-tf-false { border-color: #efb3b3 !important; color: var(--red) !important; }
.st-tf-btns .st-btn.is-picked:disabled { opacity: 1; }
.st-tf-btns .is-picked.st-tf-true { background: var(--green); color: #fff !important; border-color: var(--green) !important; }
.st-tf-btns .is-picked.st-tf-false { background: var(--red); color: #fff !important; border-color: var(--red) !important; }

.st-feedback { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 16px; text-align: start; animation: st-in .2s ease; }
.st-feedback b { display: block; }
.st-feedback.is-ok { background: var(--green-100); color: #14532d; }
.st-feedback.is-bad { background: var(--red-100); color: #7f1d1d; }
.st-feedback .st-ico { flex: none; margin-top: 3px; }

/* التصنيف */
.st-pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 60px; padding: 14px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); margin-bottom: 14px; }
.st-pool:empty::after { content: "كل البطاقات في مكانها."; color: var(--muted); font-size: 15px; align-self: center; }
.st-item { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 15px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); font: 700 17px/1.3 var(--font); font-feature-settings: "tnum"; direction: ltr; cursor: grab; user-select: none; box-shadow: 0 2px 0 #dfe5ee; transition: transform .12s, box-shadow .12s, border-color .12s; color: var(--ink); }
.st-item:hover { border-color: var(--navy-700); }
.st-item.is-held { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245, 179, 1, .3), 0 10px 20px rgba(10, 26, 58, .14); transform: translateY(-3px); }
.st-item.is-ok { border-color: var(--green); background: var(--green-100); cursor: default; }
.st-item.is-bad { border-color: var(--red); background: var(--red-100); cursor: default; }
.st-item small { font: 500 13px/1.45 var(--font); direction: rtl; color: var(--ink); max-width: 220px; text-align: center; }
.st-buckets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.st-bucket { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-height: 150px; padding: 10px; border: 2px dashed #cdd6e4; border-radius: 18px; transition: background .12s, border-color .12s; }
.st-bucket h4 { margin: 0 0 4px; padding: 5px; border-radius: 10px; text-align: center; font-size: 16px; }
.st-bucket.tone-bad h4 { background: var(--red-100); color: var(--red); }
.st-bucket.tone-mid h4 { background: var(--amber-100); color: var(--amber); }
.st-bucket.tone-good h4 { background: var(--green-100); color: var(--green); }
.st-bucket .st-item { align-self: center; }
.st-sorting .st-bucket { cursor: pointer; border-color: var(--navy-700); background: #f5f8ff; }
.st-bucket.is-over { background: var(--gold-100); border-color: var(--gold); }
.st-check-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.st-result { font-weight: 800; font-size: 18px; }

/* تحدّي عبارة المرور */
.st-meter-box { display: grid; gap: 14px; }
.st-meter-box input { width: 100%; font: 700 22px/1.4 var(--font); direction: ltr; text-align: center; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; }
.st-meter-box input:focus { outline: none; border-color: var(--navy-700); }
.st-meter-box .st-meter { margin: 0; }
.st-meter-box .st-meter b { font-size: 17px; min-width: 96px; }
.st-rules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 15px; }
.st-rules li { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.st-rules li.is-ok { color: var(--green); font-weight: 600; }
.st-rules li.is-warn { color: var(--red); font-weight: 600; }
.st-privacy { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--navy-800); background: var(--sky); padding: 9px 12px; border-radius: 12px; }

/* المواقف */
.st-scn { display: grid; grid-template-columns: 290px 1fr; gap: 24px; align-items: start; }
.st-phone { background: var(--navy-900); border-radius: 32px; padding: 12px; box-shadow: var(--shadow); }
.st-phone-head { display: flex; align-items: center; gap: 10px; color: #fff; padding: 6px 10px 10px; font-weight: 700; }
.st-phone-head > div { display: grid; line-height: 1.3; }
.st-phone-head .st-avatar { width: 36px; height: 36px; background: #2f5bb5; color: #fff; }
.st-phone-head small { font-weight: 400; font-size: 12px; opacity: .7; }
.st-phone-screen { background: #e9eef6; border-radius: 22px; padding: 14px 10px; min-height: 260px; display: flex; flex-direction: column; gap: 10px; }
.st-msg { max-width: 88%; padding: 8px 12px; border-radius: 14px; font-size: 15px; line-height: 1.6; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); animation: st-in .3s ease both; }
.st-msg small { display: block; font-size: 11px; font-weight: 700; opacity: .7; }
.st-msg-them { align-self: flex-start; background: #fff; border-start-start-radius: 4px; }
.st-msg-sms { align-self: center; background: #fdf6dc; border: 1px dashed #e2c46b; text-align: center; font-size: 14px; }
.st-msg-call { align-self: stretch; background: #fff; }
.st-call-badge { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--green); font-weight: 700; font-size: 14px; }
.st-scn-q h3 { margin-bottom: 12px; }
.st-scn-count { font-size: 13px; font-weight: 700; color: var(--muted); }
.st-choices { display: grid; gap: 10px; }
.st-choice { display: block; width: 100%; text-align: start; font: 500 16px/1.55 var(--font); padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); transition: border-color .12s; }
.st-choice:hover:not(:disabled) { border-color: var(--navy-700); }
.st-choice:disabled { cursor: default; }
.st-choice.is-ok { border-color: var(--green); background: var(--green-100); }
.st-choice.is-bad { border-color: var(--red); background: var(--red-100); }

/* قائمة الفحص */
.st-checklist { display: grid; gap: 10px; }
.st-check { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.st-check input { width: 22px; height: 22px; accent-color: var(--green); flex: none; }
.st-check.is-on { border-color: #9fd7b4; background: var(--green-100); }
.st-check-parent { border-style: dashed; border-color: #ecc65a; background: var(--gold-100); }
.st-check-parent input { accent-color: var(--gold-700); }

/* بطاقات تعلّم إضافية: عناصر، عمودان، أسئلة «فكّر»، «هل تعلم؟» */
.st-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st-tiles > div { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.st-tiles b { display: block; font-size: 15.5px; margin: 6px 0 2px; color: var(--navy-900); }
.st-tiles p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.st-tile-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--navy-800); color: var(--gold-300); }
.st-pair-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.st-pair-cards > div { border-radius: 18px; padding: 16px 18px; background: var(--sky); }
.st-pair-cards > div:last-child { background: var(--gold-100); }
.st-pair-cards h4 { margin: 0 0 4px; font-size: 17px; color: var(--navy-800); }
.st-pair-cards p { margin: 0; font-size: 15.5px; }
.st-think { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.st-think li { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 16px 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.st-think span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-800); color: var(--gold-300); font-weight: 800; }
.st-think b { font-size: 18px; color: var(--navy-900); }
.st-think small { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.st-tone-tip { background: var(--gold-100); border-color: #f1d98a; }
.st-tone-tip .st-learn-ico { background: #fff; }

/* أين أقف؟ */
.st-judge { border: 1px solid var(--line); border-radius: 22px; padding: 24px 22px; background: linear-gradient(180deg, #fff, var(--soft)); }
.st-judge-text { font-size: 21px; font-weight: 700; margin: 4px 0 18px; line-height: 1.6; }
.st-judge-step { margin-bottom: 16px; transition: opacity .2s; }
.st-judge-step > b { display: block; font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.st-judge-step.is-dim { opacity: .5; }
.st-judge-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip-btn { font: 600 15px/1.3 var(--font); padding: 9px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .12s; }
.st-chip-btn:hover:not(:disabled) { border-color: var(--navy-700); }
.st-chip-btn.is-on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.st-chip-btn.is-ok { background: var(--green-100); border-color: var(--green); color: var(--green); }
.st-chip-btn.is-bad { background: var(--red-100); border-color: var(--red); color: var(--red); }
.st-chip-btn:disabled { cursor: default; }
.st-judge .st-tf-btns { justify-content: flex-start; }
.st-shake { animation: st-shake .35s ease; }
@keyframes st-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* منشور قبل النشر */
.st-msg-post { align-self: stretch; max-width: none; background: #fff; border-radius: 14px; padding: 10px 12px 8px; font-size: 15.5px; }
.st-post-bar { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.st-post-bar button { margin-inline-start: auto; font: 700 12px var(--font); background: var(--blue); color: #fff; border: 0; border-radius: 8px; padding: 4px 12px; opacity: .55; }

/* قائمة فحص بنمط «نعم = خطر» وملاحظة مكتوبة */
.st-checklist.is-risk .st-check input { accent-color: #e0662b; }
.st-checklist.is-risk .st-check.is-on { border-color: #f2b38f; background: #fff1e8; }
.st-check em { margin-inline-start: auto; font-style: normal; font-size: 12px; font-weight: 700; color: #b4501d; opacity: 0; }
.st-check.is-on em { opacity: 1; }
.st-note-field { margin-top: 14px; }
.st-note-field textarea { width: 100%; font: 500 16px/1.6 var(--font); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; resize: vertical; }

/* فتح المسار التالي */
.st-unlock { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; width: min(560px, 100%); margin: 6px auto 4px; padding: 16px 18px; border-radius: 18px; background: var(--sky); border: 1px solid #c8d6f5; text-align: start; }
.st-unlock > div { display: grid; flex: 1; min-width: 180px; }
.st-unlock small { color: var(--muted); }
.st-unlock-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--navy-800); color: var(--gold-300); flex: none; }
.st-unlock-note { display: flex; align-items: center; gap: 6px; margin: 10px 0 0 !important; font-weight: 700; color: var(--navy-800); }
.st-tcard.is-locked .st-tcover img { filter: grayscale(.5) opacity(.6); }
.st-tcard.is-locked .st-tband { background: #e8ecf3; color: var(--ink-2); }
.st-tlock { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; color: var(--ink-2); font-weight: 600; }
.st-continue li.is-locked a { opacity: .6; }

/* نتيجة اختبار المسار */
.st-exam-result { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 18px; border-radius: 18px; }
.st-exam-result.is-pass { background: var(--green-100); }
.st-exam-result.is-fail { background: var(--red-100); }
.st-exam-result .st-ring { --inner: inherit; --track: rgba(10, 26, 58, .1); --tc: var(--navy-900); width: 84px; flex: none; }
.st-exam-result.is-pass .st-ring { --c: var(--green); --inner: var(--green-100); }
.st-exam-result.is-fail .st-ring { --c: #e0662b; --inner: var(--red-100); }
.st-exam-result .st-ring b { font-size: 20px; }
.st-exam-result h3 { margin: 0 0 2px; }
.st-exam-result p { margin: 0 0 8px; color: var(--ink-2); }
.st-exam-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* نهاية المسار */
.st-step-done.is-current { display: grid; justify-items: center; text-align: center; }
.st-step-done .st-eyebrow { justify-content: center; }
.st-body .st-done-img { width: 100%; max-width: 280px; margin: 0 auto 8px; }
.st-step-done h2 { font-size: 32px; font-weight: 800; }
.st-done-cert { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: 6px 0 16px; }
.st-done-cert code, .st-cbody code { font: 700 16px/1 var(--font); font-feature-settings: "tnum"; letter-spacing: .06em; direction: ltr; background: var(--gold-100); color: var(--navy-900); padding: 8px 12px; border-radius: 10px; }

/* الشهادات */
.st-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.st-ccard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); }
.st-ccover { aspect-ratio: 16 / 8; overflow: hidden; }
.st-ccover img { position: absolute; bottom: 0; left: 0; right: 0; margin: auto; height: 96%; width: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .3)); }
.st-ccover-chip { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.st-ccard.is-earned .st-ccover-chip { background: #fff; color: var(--green); border-color: #fff; }
.st-cbody { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.st-ckind { font-size: 12.5px; font-weight: 700; color: var(--gold-700); }
.st-cbody h3 { font-size: 18px; margin: 0; }
.st-cbody p { font-size: 14px; color: var(--muted); margin: 0; }
.st-cbody .st-progress-line { width: 100%; }
.st-cbody .st-btn { margin-top: auto; }
.st-cbody code { margin: 4px 0; }
.st-ccard.is-final { border: 1.5px solid var(--gold); box-shadow: 0 0 0 4px var(--gold-100); }
.st-ccard.is-soon .st-ccover img { filter: grayscale(.7) opacity(.5); }
.st-ccard:not(.is-earned) .st-ccover img { opacity: .75; }

/* صفحة الشهادة (A4 أفقية) */
.st-cert-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.st-cert-toolbar > div { display: flex; gap: 8px; flex-wrap: wrap; }
.st-cert-toolbar .st-crumb { color: var(--ink-2) !important; margin: 0; }
.st-cert-wrap { container-type: inline-size; max-width: 1123px; margin: 0 auto; }
.st-cert-sheet { aspect-ratio: 297 / 210; width: 100%; font-size: 1.43cqw; display: grid; grid-template-columns: 27% 1fr; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); color: var(--ink); }
.st-cert-band { display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; padding: 2.4em 1.8em; }
.st-body .st-cert-brand { width: 100%; max-width: 15em; }
.st-cert-seal .st-badge-svg { width: 7.6em; height: auto; filter: drop-shadow(0 1em 1.6em rgba(0, 0, 0, .4)); }
.st-cert-qr { display: grid; justify-items: center; gap: .3em; }
.st-cert-qr svg { width: 8.4em; height: 8.4em; padding: .3em; background: #fff; border-radius: .7em; box-shadow: 0 0 0 .22em rgba(245, 179, 1, .55); }
.st-cert-qr small { font-size: .74em; color: rgba(255, 255, 255, .7); margin-top: .35em; }
.st-cert-qr b { font-size: 1.15em; letter-spacing: .08em; font-feature-settings: "tnum"; color: var(--gold-300); }
.st-cert-main { position: relative; display: flex; flex-direction: column; padding: 2.2em 3.2em 2.2em; }
.st-cert-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: 2.2em; }
.st-cert-top .st-eyebrow { margin: 0; }
.st-cert-main::after { content: ""; position: absolute; inset-inline-start: 2.4em; bottom: 4.6em; width: 12em; height: 14em; background: url("../img/mark.webp") center / contain no-repeat; opacity: .05; pointer-events: none; }
.st-body .st-cert-moe { height: 4.2em; width: auto; }
.st-cert-main .st-eyebrow { font-size: .95em; }
.st-cert-title { font-size: 2.6em !important; font-weight: 800 !important; color: var(--navy-900); margin: 0 0 .8em !important; }
.st-cert-to { color: var(--muted); margin: 0 0 .2em !important; font-size: 1em; }
.st-cert-name { font-size: 3em !important; font-weight: 800 !important; color: var(--navy-800); margin: 0 0 .15em !important; padding-bottom: .1em; border-bottom: .1em solid var(--gold); align-self: flex-start; }
.st-cert-school { color: var(--muted); font-size: .95em; margin: .3em 0 .9em !important; }
.st-cert-line { font-size: 1.1em; max-width: 92%; margin: 0 0 1.2em !important; }
.st-cert-content { margin-bottom: 1.2em; }
.st-cert-content small { display: block; font-size: .78em; color: var(--muted); margin-bottom: .35em; }
.st-cert-content div { display: flex; flex-wrap: wrap; gap: .4em; }
.st-cert-content span { font-size: .82em; font-weight: 600; background: var(--soft); border: 1px solid var(--line); padding: .25em .8em; border-radius: 99px; }
.st-cert-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9em, 1fr)); gap: 1em; margin: auto 0 0; padding-top: 1em; border-top: 1px solid var(--line); }
.st-cert-facts div { display: grid; gap: .1em; }
.st-cert-facts dt { font-size: .75em; color: var(--muted); }
.st-cert-facts dd { margin: 0; font-size: .98em; font-weight: 700; font-feature-settings: "tnum"; }
.st-cert-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 3em; margin-top: 1.6em; }
.st-cert-sign span { border-top: 1px solid #b8c2d3; padding-top: .35em; font-size: .78em; color: var(--muted); }

/* الشارات */
.st-bcounter { display: inline-flex; align-items: baseline; gap: 12px; padding: 18px 26px; border-radius: 20px; margin-bottom: 8px; }
.st-bcounter b { font-size: 44px; line-height: 1; font-feature-settings: "tnum"; }
.st-bcounter b small { font-size: 20px; color: rgba(255, 255, 255, .55); }
.st-bcounter span { font-size: 13px; font-weight: 700; color: var(--gold-300); }
.st-group-title { display: flex; align-items: center; gap: 12px; font-size: 15px !important; font-weight: 700 !important; color: var(--ink-2); margin: 30px 0 14px !important; }
.st-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.st-group-title small { font-size: 12px; color: var(--muted); background: #e8ecf3; padding: 1px 10px; border-radius: 99px; }
.st-bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
.st-bcard { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 14px 16px; box-shadow: var(--shadow-sm); }
.st-bcard .st-badge-svg { margin-bottom: 8px; }
.st-bcard.is-earned .st-badge-svg { filter: drop-shadow(0 8px 16px rgba(245, 179, 1, .35)); }
.st-bcard b { font-size: 15.5px; line-height: 1.4; }
.st-bcard p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.st-bcard .st-progress-line { width: 100%; margin-top: auto; padding-top: 0; }
.st-bcard:not(.is-earned) { background: #fbfcfe; }
.st-bdate { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--gold-700); background: var(--gold-100); padding: 3px 10px; border-radius: 99px; }
.st-bprog { font-size: 12px; color: var(--muted); font-feature-settings: "tnum"; }
.st-bgrid.is-compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* نافذة الشارة الجديدة */
.st-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(6, 18, 43, .6); backdrop-filter: blur(4px); animation: st-fade .2s ease; }
.st-modal-card { position: relative; width: min(460px, 100%); background: #fff; border-radius: 28px; overflow: hidden; text-align: center; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5); animation: st-pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.st-modal-top { padding: 30px 20px 22px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.st-modal-top .st-badge-svg { filter: drop-shadow(0 12px 22px rgba(245, 179, 1, .45)); animation: st-float 3s ease-in-out infinite; }
.st-modal-body { padding: 20px 26px 26px; }
.st-modal-body h2 { font-size: 26px; font-weight: 800; }
.st-modal-body p { color: var(--muted); }
.st-modal-body .st-eyebrow { justify-content: center; }
@keyframes st-fade { from { opacity: 0; } }
@keyframes st-pop { from { opacity: 0; transform: scale(.85) translateY(20px); } }
@keyframes st-float { 50% { transform: translateY(-6px); } }

/* ---------- المقياس والاختبار والميثاق ---------- */
.st-panel { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 4vw, 42px); margin: 0 auto 22px; box-shadow: var(--shadow-sm); }
.st-narrow { max-width: 780px; }
.st-h2 { font-size: 20px !important; margin: 0 0 14px !important; }
.st-stepper-bar { display: none; margin: 8px 0 24px !important; height: 8px !important; }
.st-stepper.is-js .st-stepper-bar { display: block; }
.st-stepper.is-js .st-q { display: none; }
.st-stepper.is-js .st-q.is-current { display: block; animation: st-in .25s ease; }
.st-stepper-nav { display: none; margin-top: 16px; }
.st-stepper.is-js .st-stepper-nav { display: flex; }
.st-q { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.st-q legend { display: block; font-size: 22px; font-weight: 700; margin-bottom: 16px; padding: 0; line-height: 1.5; }
.st-q legend small { font-weight: 400; color: var(--muted); font-size: 15px; }
.st-q-num { display: table; font-size: 13px; font-weight: 700; background: var(--sky); color: var(--navy-700); border-radius: 99px; padding: 1px 10px; margin-bottom: 8px; font-feature-settings: "tnum"; }
.st-q textarea { margin: 6px 0 16px; resize: vertical; }
.st-scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st-scale label, .st-options label { position: relative; cursor: pointer; }
.st-scale input, .st-options input, .st-pledge input { position: absolute; opacity: 0; pointer-events: none; }
.st-scale span { display: block; text-align: center; padding: 16px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 18px; transition: all .12s; }
.st-scale label:hover span { border-color: var(--navy-700); }
.st-scale input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.st-scale input:focus-visible + span, .st-options input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.st-options { display: grid; gap: 10px; }
.st-options span { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 500; font-size: 17px; transition: all .12s; }
.st-options span i { font-style: normal; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); font-weight: 700; }
.st-options label:hover span { border-color: var(--navy-700); }
.st-options input:checked + span { border-color: var(--navy-700); background: var(--sky); }
.st-options input:checked + span i { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.st-compare { text-align: start; margin: 18px 0 24px; display: grid; gap: 6px; }
.st-compare-row { display: grid; grid-template-columns: 220px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; font-size: 15px; }
.st-compare-row span { grid-row: span 2; }
.st-compare-row.is-up span { color: var(--green); font-weight: 700; }
.st-compare-row i, .st-legend i { display: block; height: 7px; border-radius: 99px; width: var(--w); min-width: 4px; }
.st-bar-pre { background: #bcc6d8; }
.st-bar-post { background: var(--green); }
.st-legend { display: flex; gap: 14px; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.st-legend i { display: inline-block; width: 18px; }

.st-review { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.st-review li { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--soft); }
.st-review li div { display: grid; gap: 2px; }
.st-review small { color: var(--muted); }
.st-review-ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; }
.st-review .is-ok .st-review-ico { background: var(--green-100); color: var(--green); }
.st-review .is-bad .st-review-ico { background: var(--red-100); color: var(--red); }

.st-charter { display: grid; gap: 10px; }
.st-pledge { position: relative; display: block; cursor: pointer; }
.st-pledge span { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 500; }
.st-pledge span::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid #b8c3d6; background: #fff center / 16px no-repeat; }
.st-pledge input:checked + span { border-color: #9fd7b4; background: var(--green-100); }
.st-pledge input:checked + span::before { background-color: var(--green); border-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.st-pledge input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.st-charter .st-field { margin-top: 10px; }
.st-charter .st-btn { justify-self: start; margin-top: 6px; }

/* الحساب */
.st-profile-cover { display: flex; align-items: center; gap: 20px; padding: 28px 30px; border-radius: 26px; }
.st-profile-cover h1 { color: #fff; font-size: 28px; margin: 0; }
.st-profile-cover p { margin: 0; color: #b9c7e6; }
.st-profile-stats { margin-inline-start: auto; display: flex; gap: 10px; }
.st-profile-stats div { display: grid; text-align: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 10px 18px; }
.st-profile-stats b { font-size: 24px; line-height: 1.2; }
.st-profile-stats span { font-size: 12.5px; color: #b9c7e6; }
.st-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 14px; }
.st-dl dt { color: var(--muted); }
.st-dl dd { margin: 0; font-weight: 600; }

/* ---------- الشاشات المتوسطة والصغيرة ---------- */
@media (max-width: 1200px) {
	.st-track-layout { grid-template-columns: 270px minmax(0, 1fr); }
	.st-track-head { grid-template-columns: 1fr auto; }
	.st-track-head-img { display: none; }
	.st-track-head > div:first-child { padding-bottom: 26px; }
	.st-track-head { padding-bottom: 0; }
	.st-track-head .st-ring { margin-bottom: 26px; }
}
@media (max-width: 1024px) {
	.st-side { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 60; height: 100vh; transform: translateX(105%); transition: transform .25s ease; box-shadow: -20px 0 40px rgba(0, 0, 0, .3); }
	.admin-bar .st-side { top: 0; height: 100vh; }
	body.st-side-open .st-side { transform: none; }
	body.st-side-open .st-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(6, 18, 43, .5); }
	.st-side-close { display: block; }
	.st-menu-btn { display: grid; }
	.st-appbar-mark { display: block; }
	.st-track-layout { grid-template-columns: 1fr; }
	.st-curriculum { position: static; max-height: none; }
	.st-curriculum h3 { cursor: pointer; display: flex; justify-content: space-between; margin-bottom: 0; }
	.st-curriculum h3::after { content: "عرض المحتوى ▾"; color: var(--blue); }
	.st-curriculum.is-open h3::after { content: "إخفاء ▴"; }
	.st-curriculum:not(.is-open) .st-cl { display: none; }
	.st-curriculum.is-open h3 { margin-bottom: 10px; }
	.st-hero-inner { grid-template-columns: 1fr; text-align: start; }
	.st-hero-visual { max-width: 520px; }
	.st-f-pass { left: 0; }
	.st-f-phish { right: 0; }
	.st-f-cert { left: 0; }
	.st-how-steps, .st-features { grid-template-columns: repeat(2, 1fr); }
	.st-strip { grid-template-columns: repeat(2, 1fr); }
	.st-strip > div:nth-child(3) { border-inline-start: 0; }
	.st-strip > div:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .1); }
	.st-pubbar nav a:not(.st-pubbar-me) { display: none; }
}
@media (max-width: 900px) {
	.st-cols-2, .st-scn { grid-template-columns: 1fr; }
	.st-phone { max-width: 340px; width: 100%; margin: 0 auto; }
	.st-auth-split { grid-template-columns: 1fr; }
	.st-auth-panel { padding-bottom: 28px; }
	.st-auth-art { display: none; }
	.st-auth-panel h1 { font-size: 32px; }
	.st-duo { grid-template-columns: 1fr; }
	.st-foot-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	body.st-body { font-size: 15.5px; }
	.st-body h1 { font-size: 27px; }
	.st-main { padding: 20px 14px 40px; }
	.st-page-head { flex-direction: column; align-items: flex-start; }
	.st-welcome { grid-template-columns: 1fr; padding: 24px 20px 0; }
	.st-welcome-img { display: none; }
	.st-glass-stats { grid-template-columns: repeat(2, 1fr); }
	.st-track-head { grid-template-columns: 1fr; padding: 22px 20px 0; }
	.st-track-head .st-ring { display: none; }
	.st-step-intro.is-current, .st-dodont, .st-buckets, .st-rules, .st-pair-cards { grid-template-columns: 1fr; }
	.st-tiles { grid-template-columns: 1fr 1fr; }
	.st-think { grid-template-columns: 1fr 1fr; }
	.st-bucket { min-height: 90px; }
	.st-tf-text { font-size: 19px; }
	.st-tf-btns .st-btn { min-width: 0; flex: 1; }
	.st-scale span { padding: 14px 4px; font-size: 16px; }
	.st-q legend { font-size: 19px; }
	.st-compare-row { grid-template-columns: 130px 1fr; font-size: 14px; }
	.st-how-steps, .st-features { grid-template-columns: 1fr; }
	.st-hero { min-height: 0; border-radius: 0 0 26px 26px; }
	.st-float { padding: 8px 10px; gap: 8px; border-radius: 12px; }
	.st-float b { font-size: 12.5px; }
	.st-f-pass, .st-f-phish { display: none; }
	.st-f-cert { bottom: 0; left: 0; }
	.st-f-cert > svg { width: 46px; height: 46px; }
	.st-f-badge .st-badge-svg { width: 34px; height: 37px; }
	.st-section { margin: 52px auto; }
	.st-profile-cover { flex-wrap: wrap; padding: 22px; }
	.st-profile-stats { margin-inline-start: 0; }
	.st-verify-form { grid-template-columns: 1fr; }
	.st-help-strip { font-size: 12.5px; }
	.st-me-name { display: none; }
	.st-me { padding-inline-end: 4px; }
	.st-appbar-mark { height: 26px; }
}

/* ---------- الطباعة: الشهادة على صفحة A4 أفقية ---------- */
@media print {
	@page { size: A4 landscape; margin: 0; }
	* { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
	body.st-body { background: #fff; }
	.st-noprint, .st-side, .st-appbar, .st-help-strip, .st-alert, .st-scrim, .st-modal, #wpadminbar { display: none !important; }
	.st-shell, .st-app, .st-main { display: block; padding: 0 !important; margin: 0 !important; max-width: none !important; }
	.st-cert-wrap { max-width: none; width: 297mm; }
	.st-cert-sheet { width: 297mm; height: 210mm; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
	html { margin-top: 0 !important; }
}
