/*
 * صفحة الدخول (v9): «بطاقة دخول الطالب» + معاينة ثابتة للوحة + نافذة الشروط.
 * بلا أي حركة: لا animation ولا transition.
 * تُحمَّل في قالب templates/page-login.php فقط.
 */

.lx {
	--lx-bg: #F6F3FD;
	--lx-cut: 88px;
	--lx-dash: #DDD3F3;
	display: grid;
	grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
	align-items: start;
	max-width: 1160px;
	margin: clamp(16px, 3vw, 40px) auto clamp(36px, 5vw, 72px);
	padding: clamp(12px, 2vw, 24px);
	border-radius: 32px;
	background: var(--lx-bg);
	box-shadow: inset 0 0 0 1px #ECE6F8;
}
.lx-ticket *, .lx-ticket *::before, .lx-ticket *::after,
.lx-modal *, .lx-modal *::before, .lx-modal *::after { animation: none !important; transition: none !important; }

/* ---------- البطاقة ---------- */
.lx-tw { filter: drop-shadow(0 1px 1px rgba(59, 29, 122, .06)) drop-shadow(0 18px 30px rgba(59, 29, 122, .14)); min-width: 0; }
.lx-ticket {
	display: flex; flex-direction: column;
	background: #fff; border-radius: 24px;
	/* ثقبا الفصل على جانبي البطاقة */
	-webkit-mask: radial-gradient(circle 13px at 0 var(--lx-cut), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% var(--lx-cut), #0000 97%, #000) right / 51% 100% no-repeat;
	mask: radial-gradient(circle 13px at 0 var(--lx-cut), #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% var(--lx-cut), #0000 97%, #000) right / 51% 100% no-repeat;
}
.lx-stub {
	display: flex; align-items: center; gap: 12px;
	height: var(--lx-cut); padding: 0 28px;
	border-radius: 24px 24px 0 0;
	background: linear-gradient(180deg, #F4EFFF, #FBF9FF);
	border-bottom: 2px dashed var(--lx-dash);
}
.lx-mark { width: 38px; height: auto; flex: none; }
.lx-stub-txt { display: grid; line-height: 1.35; min-width: 0; }
.lx-stub-txt small { font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.lx-stub-txt b { font-size: 1.08rem; font-weight: 800; color: var(--heading); }
.lx-seat { margin-inline-start: auto; display: grid; justify-items: center; padding: 6px 12px; border-radius: 12px; border: 1.5px dashed #CDBFEF; background: #fff; line-height: 1.3; }
.lx-seat small { font-size: .68rem; font-weight: 700; color: var(--ink-2); }
.lx-seat b { font-family: var(--font-latin); font-size: .84rem; font-weight: 600; color: var(--heading); letter-spacing: .5px; direction: ltr; }

.lx-body { flex: 1; padding: 26px 30px 6px; }
.lx-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: #F3F0FA; box-shadow: inset 0 0 0 1px #EAE4F6; }
.lx-tabs button, .lx-mtabs button { min-height: 44px; border: 0; border-radius: 11px; background: none; font: inherit; font-size: .95rem; font-weight: 800; color: var(--ink-2); cursor: pointer; }
.lx-tabs button.on, .lx-mtabs button.on { background: #fff; color: var(--heading); box-shadow: 0 1px 2px rgba(36, 22, 71, .08), 0 6px 14px -10px rgba(59, 29, 122, .45); }
.lx-tabs button:focus-visible, .lx-mtabs button:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

.lx-head { margin: 24px 0 18px; }
.lx-head h1, .lx-head h2 { margin: 0 0 4px; font-size: clamp(1.4rem, 1.15rem + .8vw, 1.75rem) !important; line-height: 1.35; font-weight: 800; color: var(--heading); background: none; color: var(--heading) !important; -webkit-text-fill-color: var(--heading) !important; background: none !important; }
.lx-head p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.lx .form-msg { margin: 0 0 16px; font-size: .9rem; }

/* الحقول */
.lx form p, .lx .lx-f { margin: 0 0 16px; }
.lx label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 700; color: var(--heading); }
.lx input[type="text"], .lx input[type="email"], .lx input[type="password"] {
	display: block; width: 100%; height: 50px; margin: 0;
	padding: 0 44px 0 14px; border-radius: 14px; border: 1.5px solid #E4DEF2;
	background-color: #FBFAFE; background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
	font: inherit; font-weight: 600; font-size: 1rem; color: var(--ink);
}
.lx input::placeholder { color: #A39BB8; font-weight: 500; }
.lx input[type="text"]:focus, .lx input[type="email"]:focus, .lx input[type="password"]:focus { outline: 0; border-color: var(--brand-2); background-color: #fff; box-shadow: var(--ring); }
.lx .pw-wrap input { padding-left: 48px !important; }
.lx .pw-eye { left: 6px; }
.lx .pw-meter { margin-top: 8px; }
.lx .pw-hint { display: block; margin-top: 6px; font-size: .8rem; color: var(--ink-2); }
.lx .caps-hint { display: block; margin-top: 6px; }
.lx .caps-hint[hidden] { display: none; }

.lx #loginform .lx-forgot { margin: -6px 0 14px; text-align: end; }
.lx-forgot a { font-size: .86rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.lx-forgot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* سطر الموافقة: مربع مخصص + رابط يفتح النافذة */
.lx-terms { position: relative; display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; row-gap: 2px; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; background: #F8F6FD; box-shadow: inset 0 0 0 1px #ECE6F8; font-size: .9rem; line-height: 1.7; }
.lx-terms input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; inset-inline-start: 14px; top: 13px; }
.lx-terms label { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.lx-box { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1.5px solid #C9BCEB; background: #fff; color: #fff; }
.lx-box svg { width: 15px; height: 15px; stroke-width: 3; opacity: 0; }
.lx-terms input:checked + label .lx-box { background: var(--brand); border-color: var(--brand); }
.lx-terms input:checked + label .lx-box svg { opacity: 1; }
.lx-terms input:focus-visible + label .lx-box { box-shadow: var(--ring); border-color: var(--brand-2); }
.lx-terms a { font-weight: 800; color: var(--brand); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* زر الإرسال */
.lx #wp-submit, .lx .lx-submit {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px;
	border: 0; border-radius: 14px; background: linear-gradient(135deg, #6A3FD6, #4F2BB5); color: #fff;
	font: inherit; font-size: 1.02rem; font-weight: 800; cursor: pointer;
	box-shadow: 0 12px 22px -14px rgba(79, 43, 181, .9); transform: none;
}
.lx #wp-submit:hover, .lx .lx-submit:hover { background: linear-gradient(135deg, #5B33C6, #42239C); }
.lx #wp-submit:focus-visible, .lx .lx-submit:focus-visible { outline: 3px solid #B9A6EC; outline-offset: 2px; }
.lx .login-submit { margin-bottom: 0; }

.lx-switch { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #EFEAF8; text-align: center; font-size: .92rem; color: var(--ink-2); }
.lx-switch .linkish { font-weight: 800; color: var(--brand); }

/* اختيار المنهج */
.lx-countries { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.lx-countries legend { margin-bottom: 8px; padding: 0; font-size: .88rem; font-weight: 700; color: var(--heading); }
.lx-cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lx-c { position: relative; margin: 0 !important; }
.lx-c input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lx-c span { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid #E4DEF2; background: #fff; font-size: .9rem; }
.lx-c span b { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-c svg, .lx-c img { width: 24px; height: 17px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.lx-c input:checked + span { border-color: var(--brand); background: var(--tint); }
.lx-c input:checked + span b { color: var(--heading); }
.lx-c input:focus-visible + span { box-shadow: var(--ring); }
.lx-closed { padding: 16px; border-radius: 14px; background: #F8F6FD; color: var(--ink-2); }

/* ذيل البطاقة: باركود وسطر المعلم */
.lx-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 16px 30px 20px; border-top: 2px dashed var(--lx-dash); }
.lx-foot p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.lx-foot a { font-weight: 800; color: var(--brand); }
.lx-code { width: 112px; height: 28px; flex: none; opacity: .75; background: repeating-linear-gradient(90deg, #3B1D7A 0 2px, transparent 2px 4px, #3B1D7A 4px 5px, transparent 5px 8px, #3B1D7A 8px 11px, transparent 11px 13px, #3B1D7A 13px 14px, transparent 14px 17px); }

/* ---------- الجانب: معاينة اللوحة ---------- */
.lx-side {
	align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-width: 0;
	padding: clamp(24px, 4vw, 56px);
	background: radial-gradient(#D8CEF2 1.2px, transparent 1.5px) 0 0 / 22px 22px;
	-webkit-mask: none;
}
.lx-side-in { width: 100%; max-width: 480px; margin-inline: auto; display: flex; flex-direction: column; }
.lx-eyebrow { align-self: flex-start; margin: 0; padding: 4px 14px; border-radius: 99px; background: #E3F6EE; color: #127A63; font-size: .8rem; font-weight: 800; }
.lx-side h2 { margin: 12px 0 8px; max-width: 22ch; font-size: clamp(1.35rem, 1.05rem + 1vw, 1.9rem) !important; line-height: 1.4; font-weight: 800; color: var(--heading); background: none; color: var(--heading) !important; -webkit-text-fill-color: var(--heading) !important; background: none !important; }
.lx-lead { margin: 0; max-width: 46ch; font-size: .98rem; line-height: 1.8; color: var(--ink-2); }

.lx-demo { position: relative; display: flex; flex-direction: column; margin: 24px 0 22px; }
.lx-dash { width: min(100%, 400px); padding: 18px 18px 26px; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(36, 22, 71, .05), 0 20px 36px -26px rgba(59, 29, 122, .45), inset 0 0 0 1px #EEE9F8; }
.lx-dash-top { display: flex; align-items: center; gap: 10px; }
.lx-av { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--tint); color: var(--brand); }
.lx-av svg { width: 20px; height: 20px; }
.lx-dash-top > span:nth-child(2) { display: grid; line-height: 1.4; min-width: 0; }
.lx-dash-top b { font-size: .95rem; color: var(--heading); }
.lx-dash-top small { font-size: .76rem; color: var(--ink-2); }
.lx-dash-top em { margin-inline-start: auto; padding: 4px 10px; border-radius: 99px; background: var(--amber-bg); color: var(--amber-ink); font-style: normal; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.lx-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 16px 0; padding: 0; list-style: none; }
.lx-week li { display: grid; justify-items: center; gap: 4px; font-size: .72rem; font-weight: 700; color: var(--ink-2); }
.lx-week i { display: grid; place-items: center; width: 100%; max-width: 34px; aspect-ratio: 1; border-radius: 10px; background: #F3F0FA; color: var(--teal); }
.lx-week i svg { width: 15px; height: 15px; stroke-width: 3; }
.lx-week .done i { background: #E2F6EC; }
.lx-week .today i { background: #fff; box-shadow: inset 0 0 0 1.5px var(--brand-2); }
.lx-week .today span { color: var(--brand); }
.lx-bars { display: grid; gap: 10px; margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px solid #F0ECF8; }
.lx-bars li { display: grid; grid-template-columns: 88px minmax(0, 1fr) 36px; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; color: var(--ink); }
.lx-bars i { height: 8px; border-radius: 8px; background: linear-gradient(90deg, #6BCCA5, #5C35BD) right / var(--p) 100% no-repeat, #EEE9F8; }
.lx-bars b { font-family: var(--font-latin); font-size: .78rem; color: var(--heading); text-align: end; }

.lx-q { position: relative; align-self: flex-end; width: 220px; margin-top: -22px; padding: 14px; border-radius: 18px; background: #fff; transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(36, 22, 71, .05), 0 22px 36px -22px rgba(59, 29, 122, .5), inset 0 0 0 1px #EEE9F8; }
.lx-q small { display: block; font-size: .7rem; font-weight: 800; color: var(--brand); }
.lx-q p { margin: 4px 0 8px; font-size: .84rem; font-weight: 700; line-height: 1.6; color: var(--heading); }
.lx-opt { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 5px 8px; border-radius: 10px; box-shadow: inset 0 0 0 1px #ECE6F8; font-family: var(--font-latin); font-size: .82rem; font-weight: 600; color: var(--ink); }
.lx-opt i { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: #F3F0FA; font-family: var(--font); font-style: normal; font-size: .7rem; font-weight: 800; color: var(--ink-2); }
.lx-opt.ok { background: #E2F6EC; box-shadow: inset 0 0 0 1px #A9E2C6; }
.lx-opt.ok i { background: var(--teal); color: #fff; }
.lx-opt.ok i svg { width: 13px; height: 13px; stroke-width: 3; }

.lx-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.lx-perks li { display: grid; align-content: start; gap: 8px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px #E9E2F7; font-size: .82rem; font-weight: 700; line-height: 1.6; color: var(--ink); }
.lx-perks span { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--tint); color: var(--brand); box-shadow: inset 0 0 0 1px #E6DFF6; }
.lx-perks svg { width: 17px; height: 17px; }

/* ---------- نافذة الشروط ---------- */
html:has(.lx-modal[open]) { overflow: hidden; }
.lx-modal { width: min(680px, calc(100% - 32px)); max-width: none; max-height: min(86vh, 760px); margin: auto; padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(36, 16, 79, .55); overflow: hidden; }
.lx-modal::backdrop { background: rgba(36, 16, 79, .42); }
.lx-modal-in { display: flex; flex-direction: column; max-height: min(86vh, 760px); }
.lx-modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 14px; }
.lx-modal-ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--tint); color: var(--brand); }
.lx-modal-ico svg { width: 22px; height: 22px; }
.lx-modal-head h2 { margin: 0; font-size: 1.2rem !important; line-height: 1.4; font-weight: 800; color: var(--heading); background: none; color: var(--heading) !important; -webkit-text-fill-color: var(--heading) !important; background: none !important; }
.lx-modal-head p { margin: 2px 0 0; font-size: .88rem; color: var(--ink-2); }
.lx-x { display: grid; place-items: center; width: 40px; height: 40px; flex: none; margin-inline-start: auto; border: 0; border-radius: 12px; background: #F3F0FA; color: var(--ink-2); cursor: pointer; }
.lx-x:hover { background: var(--tint); color: var(--heading); }
.lx-modal-need { display: flex; align-items: center; gap: 8px; margin: 0 22px 12px; padding: 10px 14px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-size: .88rem; font-weight: 700; }
.lx-modal-need[hidden] { display: none; }
.lx-mtabs { display: flex; gap: 4px; margin: 0 22px 14px; padding: 4px; border-radius: 14px; background: #F3F0FA; }
.lx-mtabs button { flex: 1; min-height: 40px; font-size: .9rem; }
.lx-modal-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 22px 18px; border-top: 1px solid #EFEAF8; border-bottom: 1px solid #EFEAF8; }
.lx-modal-body:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -2px; }
.lx-doc h2, .lx-doc h3 { margin: 18px 0 6px; font-size: 1.02rem !important; line-height: 1.5; font-weight: 800; color: var(--heading); background: none; color: var(--heading) !important; -webkit-text-fill-color: var(--heading) !important; background: none !important; }
.lx-doc p, .lx-doc li { font-size: .93rem; line-height: 1.95; color: var(--ink); }
.lx-doc p { margin: 0 0 10px; }
.lx-doc ul, .lx-doc ol { margin: 0 0 10px; padding-inline-start: 1.3em; }
.lx-doc-link { margin-top: 14px !important; }
.lx-doc-link a { font-size: .86rem; font-weight: 800; color: var(--brand); }
.lx-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; background: #FBFAFE; }
.lx-modal-foot .btn { min-height: 46px; padding: 10px 22px; border-radius: 12px; font-size: .95rem; transform: none; }
.lx-modal-foot .btn svg { width: 18px; height: 18px; stroke-width: 2.6; }

/* ---------- التجاوب ---------- */
@media (max-width: 1100px) {
	.lx { grid-template-columns: minmax(0, 430px) minmax(0, 1fr); }
	.lx-body { padding-inline: 26px; }
}
@media (max-width: 900px) {
	.lx { grid-template-columns: minmax(0, 1fr); max-width: 600px; gap: 8px; }
	.lx-tw { width: 100%; max-width: 520px; margin-inline: auto; }
	.lx-side { padding: 28px 20px 16px; }
	.lx-demo { max-width: 460px; }
}
@media (max-width: 560px) {
	.lx { --lx-cut: 76px; margin-top: 10px; padding: 8px; border-radius: 24px; }
	.lx-ticket { border-radius: 20px; }
	.lx-stub { padding: 0 18px; border-radius: 20px 20px 0 0; gap: 10px; }
	.lx-mark { width: 32px; }
	.lx-seat { padding: 4px 9px; }
	.lx-seat small { display: none; }
	.lx-body { padding: 20px 18px 4px; }
	.lx-head { margin: 20px 0 14px; }
	.lx-foot { padding: 14px 18px 16px; margin-top: 18px; }
	.lx-code { width: 84px; }
	.lx-side { padding: 24px 10px 10px; }
	.lx-demo { margin: 22px 0 20px; }
	.lx-q { width: 74%; transform: rotate(-2deg); }
	.lx-bars li { grid-template-columns: 78px minmax(0, 1fr) 34px; }
	.lx-perks { grid-template-columns: minmax(0, 1fr); }
	.lx-perks li { display: flex; align-items: center; padding: 10px 12px; font-size: .88rem; }
	/* النافذة كورقة سفلية على الجوال */
	.lx-modal { width: 100%; max-height: 90vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
	.lx-modal-in { max-height: 90vh; }
	.lx-modal-head { padding: 16px 18px 12px; }
	.lx-modal-ico { display: none; }
	.lx-modal-need, .lx-mtabs { margin-inline: 18px; }
	.lx-modal-body { padding-inline: 18px; }
	.lx-modal-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
	.lx-modal-foot .btn { flex: 1; padding-inline: 12px; }
}
@media (max-width: 330px) {
	.lx-cgrid { grid-template-columns: minmax(0, 1fr); }
	.lx-terms { font-size: .86rem; }
}


/* =====================================================================
 * v9.1 — طبقة إبداعية للنموذج: «ورقة إجابة» (بلا حركة)
 * الحقول مرقّمة كأسئلة، والخيارات فقاعات تظليل، وعلامات تسجيل في زوايا الورقة.
 * ===================================================================== */

/* علامات التسجيل في زوايا الورقة كما في أوراق الإجابة الممسوحة ضوئيًا */
.lx-body {
	position: relative;
	background:
		linear-gradient(#CDBFEF, #CDBFEF) right 14px top 14px / 9px 9px no-repeat,
		linear-gradient(#CDBFEF, #CDBFEF) left 14px top 14px / 9px 9px no-repeat,
		linear-gradient(#CDBFEF, #CDBFEF) right 14px bottom 4px / 9px 9px no-repeat,
		linear-gradient(#CDBFEF, #CDBFEF) left 14px bottom 4px / 9px 9px no-repeat;
}

/* التبويبان كسؤال اختيار من متعدد: أ / ب */
.lx-tabs { gap: 10px; padding: 0; background: none; box-shadow: none; }
.lx-tabs button { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px #E4DEF2; text-align: start; }
.lx-tabs button::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px #CDBFEF; }
.lx-tabs button.on { background: var(--tint); color: var(--heading); box-shadow: inset 0 0 0 2px var(--brand); }
.lx-tabs button.on::before { background: radial-gradient(circle, #fff 0 3.5px, var(--brand) 4px); box-shadow: none; }

/* العنوان: شارة صغيرة فوقه */
.lx-head { margin: 26px 0 20px; }
.lx-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .8rem; font-weight: 800; color: var(--teal); }
.lx-kicker i { display: inline-flex; gap: 4px; }
.lx-kicker i b { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.lx-kicker i b.e { background: none; box-shadow: inset 0 0 0 1.5px #9ED9C4; }

/* ترقيم الحقول كأسئلة */
.lx-panel { counter-reset: lxq; }
.lx .login-username > label, .lx .login-password > label, .lx .lx-f > label, .lx-countries legend { display: flex; align-items: center; gap: 8px; }
.lx .login-username > label::before, .lx .login-password > label::before, .lx .lx-f > label::before, .lx-countries legend::before {
	counter-increment: lxq; content: counter(lxq, decimal-leading-zero);
	display: grid; place-items: center; min-width: 26px; height: 22px; padding: 0 5px; border-radius: 7px;
	background: var(--tint); color: var(--brand); font-family: var(--font-latin); font-size: .72rem; font-weight: 600; letter-spacing: .3px;
}

/* الحقول: مربع الأيقونة داخل الحقل يتلوّن عند التركيز */
.lx input[type="text"], .lx input[type="email"], .lx input[type="password"] {
	height: 54px; padding-right: 58px; border-radius: 16px; border-color: #E4DEF2; background-color: #fff;
	background-position: right 7px center; background-size: 40px 40px;
}
.lx input[type="text"]:focus, .lx input[type="email"]:focus, .lx input[type="password"]:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124, 77, 224, .12); }
.lx .login-username input, .lx .fi-user input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='11' fill='%23EFEAFB'/%3E%3Cg transform='translate(10.4 10.4) scale(.8)' fill='none' stroke='%235B33C6' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c1.5-3.6 4.4-5.2 8-5.2s6.5 1.6 8 5.2'/%3E%3C/g%3E%3C/svg%3E"); }
.lx .login-username input:focus, .lx .fi-user input:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='11' fill='%235B33C6'/%3E%3Cg transform='translate(10.4 10.4) scale(.8)' fill='none' stroke='%23FFFFFF' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c1.5-3.6 4.4-5.2 8-5.2s6.5 1.6 8 5.2'/%3E%3C/g%3E%3C/svg%3E"); }
.lx .fi-mail input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='11' fill='%23EFEAFB'/%3E%3Cg transform='translate(10.4 10.4) scale(.8)' fill='none' stroke='%235B33C6' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.6'/%3E%3Cpath d='M4 7.5l8 5.8 8-5.8'/%3E%3C/g%3E%3C/svg%3E"); }
.lx .fi-mail input:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='11' fill='%235B33C6'/%3E%3Cg transform='translate(10.4 10.4) scale(.8)' fill='none' stroke='%23FFFFFF' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.6'/%3E%3Cpath d='M4 7.5l8 5.8 8-5.8'/%3E%3C/g%3E%3C/svg%3E"); }
.lx .login-password input, .lx .fi-lock input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='11' fill='%23EFEAFB'/%3E%3Cg transform='translate(10.4 10.4) scale(.8)' fill='none' stroke='%235B33C6' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.6'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/g%3E%3C/svg%3E"); }
.lx .login-password input:focus, .lx .fi-lock input:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='11' fill='%235B33C6'/%3E%3Cg transform='translate(10.4 10.4) scale(.8)' fill='none' stroke='%23FFFFFF' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.6'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/g%3E%3C/svg%3E"); }

/* موافقة الشروط: فقاعة تظليل دائرية */
.lx-terms { padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px #E4DEF2; }
.lx-box { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #CDBFEF; }
.lx-terms input { width: 24px; height: 24px; top: 14px; }
.lx-terms:has(input:checked) { background: #F1FBF6; box-shadow: inset 0 0 0 1.5px #A9E2C6; }
.lx-terms input:checked + label .lx-box { background: var(--teal); border-color: var(--teal); }

/* زر الإرسال: دائرة سهم في نهايته */
.lx #wp-submit, .lx .lx-submit { min-height: 56px; border-radius: 16px; padding-inline: 56px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='18' fill='%23fff'/%3E%3Cpath d='M21 12l-6 6 6 6' fill='none' stroke='%235B33C6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left 10px center / 36px 36px no-repeat, linear-gradient(135deg, #6A3FD6, #4F2BB5); }
.lx #wp-submit:hover, .lx .lx-submit:hover { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='18' fill='%23fff'/%3E%3Cpath d='M21 12l-6 6 6 6' fill='none' stroke='%235B33C6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left 10px center / 36px 36px no-repeat, linear-gradient(135deg, #5B33C6, #42239C); }

/* المناهج: فقاعة قبل العلم */
.lx-c span { min-height: 50px; border-radius: 14px; }
.lx-c span::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px #CDBFEF; }
.lx-c input:checked + span::before { background: radial-gradient(circle, #fff 0 3px, var(--brand) 3.5px); box-shadow: none; }
.lx-c input:checked + span { box-shadow: inset 0 0 0 .5px var(--brand); }

@media (max-width: 560px) {
	.lx-body { background-position: right 8px top 8px, left 8px top 8px, right 8px bottom 2px, left 8px bottom 2px; background-size: 7px 7px; }
	.lx-tabs { gap: 8px; }
	.lx-tabs button { min-height: 50px; padding: 0 10px; gap: 8px; font-size: .9rem; }
}

/* صفحة الدخول بلا انتقال متحرك بين الصفحات */
@view-transition { navigation: none; }

/* =====================================================================
 * v9.2 — الصفحة قسم واحد: البطاقة والمعاينة تملآن الشاشة دون تمرير.
 * ===================================================================== */
.lx { --lx-cut: 66px; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); align-items: center; min-height: calc(100svh - 120px); margin: 14px auto 22px; padding: 14px; }
.lx-tw { align-self: center; }
.lx-mark { width: 32px; }
.lx-seat { padding: 4px 10px; }
.lx-body { padding: 18px 28px 6px; }
.lx-tabs button { min-height: 46px; }
.lx-head { margin: 16px 0 12px; }
.lx-kicker { margin-bottom: 2px; }
.lx-head h1, .lx-head h2 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.55rem) !important; margin-bottom: 2px; }
.lx-head p { font-size: .88rem; }
.lx form p, .lx .lx-f { margin-bottom: 12px; }
.lx label { margin-bottom: 4px; }
.lx input[type="text"], .lx input[type="email"], .lx input[type="password"] { height: 48px; padding-right: 52px; background-size: 36px 36px; background-position: right 6px center; border-radius: 14px; }
.lx #loginform .lx-forgot { margin: -4px 0 10px; }
.lx-terms { margin-bottom: 12px; padding: 9px 12px; }
.lx-terms input { top: 11px; inset-inline-start: 12px; }
.lx #wp-submit, .lx .lx-submit { min-height: 50px; }
.lx-foot { margin-top: 14px; padding: 12px 28px 14px; }
.lx-code { height: 24px; }

/* حساب الطالب: الاسم والبريد جنبًا إلى جنب، والمناهج في صف واحد */
.lx-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lx-row > .lx-f { margin-bottom: 12px; }
.lx .pw-meter { margin-top: 6px; }
.lx .pw-hint { margin-top: 4px; font-size: .76rem; }
.lx-countries { margin-bottom: 12px; }
.lx-countries legend { margin-bottom: 4px; }
.lx-cgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.lx-c span { min-height: 44px; padding: 6px 8px; gap: 6px; font-size: .82rem; border-radius: 12px; }
.lx-c span::before { width: 14px; height: 14px; }
.lx-c input:checked + span::before { background: radial-gradient(circle, #fff 0 2.5px, var(--brand) 3px); }
.lx-c svg, .lx-c img { width: 20px; height: 14px; }

/* المعاينة: اللوحة وبطاقة السؤال متجاورتان */
.lx-side { padding: clamp(20px, 3vw, 44px); }
.lx-side h2 { font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem) !important; }
.lx-demo { flex-direction: row; align-items: flex-end; margin: 22px 0 0; }
.lx-dash { flex: 0 1 330px; width: auto; padding-bottom: 18px; }
.lx-q { flex: none; align-self: auto; width: 190px; margin: 0 0 -14px; margin-inline-start: -16px; }

@media (max-width: 1200px) {
	.lx-q { display: none; }
	.lx-dash { flex-basis: 100%; max-width: 380px; }
}
@media (max-width: 900px) {
	.lx { grid-template-columns: minmax(0, 1fr); min-height: 0; max-width: 600px; }
	.lx-side { display: none; }
	.lx-tw { max-width: 560px; }
}
@media (max-width: 560px) {
	.lx { --lx-cut: 60px; margin-top: 8px; padding: 6px; }
	.lx-body { padding: 16px 16px 4px; }
	.lx-foot { padding: 12px 16px 14px; }
	.lx-body { background-position: right 6px top 6px, left 6px top 6px, right 6px bottom 2px, left 6px bottom 2px; }
}
@media (max-width: 480px) {
	.lx-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.lx-cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* تكثيف إضافي حتى يتسع القسم لشاشات 768 */
.lx { margin-top: 10px; padding: 12px; }
.lx { --lx-cut: 60px; }
.lx-head { margin: 14px 0 10px; }
.lx form p, .lx .lx-f, .lx-row > .lx-f, .lx-countries, .lx-terms { margin-bottom: 10px; }
.lx input[type="text"], .lx input[type="email"], .lx input[type="password"] { height: 46px; }
.lx-c span { min-height: 40px; }
.lx #wp-submit, .lx .lx-submit { min-height: 48px; }
.lx .pw-hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lx .pw-meter { margin-top: 5px; }
.lx input[dir="ltr"]::placeholder { direction: rtl; text-align: right; }
.lx-cgrid .lx-c svg, .lx-cgrid .lx-c img { display: none; }
.lx-c span { justify-content: flex-start; padding-inline: 10px; }
.lx-side-in { max-width: 540px; }
.lx-demo { gap: 12px; }
.lx-q { width: 180px; margin: 0 0 -14px; }
@media (max-width: 480px) {
	.lx-cgrid .lx-c svg, .lx-cgrid .lx-c img { display: block; }
}
.lx-tabs button { white-space: nowrap; }

/* رابط «انضم كمعلم» في ذيل البطاقة: شارة بلون المعلمين (العنبري) */
.lx-foot { gap: 12px; }
.lx-teach { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px 6px 12px; border-radius: 14px; background: var(--amber-bg); box-shadow: inset 0 0 0 1.5px var(--amber-line, #F1E2BC); color: var(--amber-ink); text-decoration: none; }
.lx-teach:hover { background: #FFF2D6; box-shadow: inset 0 0 0 1.5px #E9CF8F; }
.lx-teach:focus-visible { outline: 3px solid #F2B233; outline-offset: 2px; }
.lx-teach-ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: #fff; color: var(--amber-ink); box-shadow: inset 0 0 0 1px #F1E2BC; }
.lx-teach-ico svg { width: 18px; height: 18px; }
.lx-teach-txt { display: grid; line-height: 1.3; }
.lx-teach-txt small { font-size: .72rem; font-weight: 700; color: #A57A2A; }
.lx-teach-txt b { font-size: .9rem; font-weight: 800; color: var(--amber-ink); }
.lx-teach-go { flex: none; margin-inline-start: 4px; }
@media (max-width: 560px) { .lx-teach { min-height: 44px; padding: 5px 8px 5px 10px; gap: 8px; } .lx-teach-ico { width: 30px; height: 30px; } }
.lx-teach-go { color: var(--amber-ink) !important; }

/* =====================================================================
 * v9.4 — صفحة «إنشاء حساب طالب» المستقلة
 * ===================================================================== */
/* التبويبان روابط بين الصفحتين بنفس شكل الفقاعات */
.lx-tabs a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px #E4DEF2; font-size: .95rem; font-weight: 800; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.lx-tabs a::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px #CDBFEF; }
.lx-tabs a:hover { color: var(--heading); box-shadow: inset 0 0 0 1.5px #CDBFEF; }
.lx-tabs a.on { background: var(--tint); color: var(--heading); box-shadow: inset 0 0 0 2px var(--brand); }
.lx-tabs a.on::before { background: radial-gradient(circle, #fff 0 3.5px, var(--brand) 4px); box-shadow: none; }
.lx-tabs a:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* الجانب: خطوات ما بعد التسجيل */
.lx-steps { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: none; }
.lx-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px #E9E2F7; }
.lx-sn { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--tint); color: var(--brand); font-family: var(--font-latin); font-size: .9rem; font-weight: 600; }
.lx-steps li:nth-child(2) .lx-sn { background: #E2F6EC; color: #127A63; }
.lx-steps li:nth-child(3) .lx-sn { background: var(--amber-bg); color: var(--amber-ink); }
.lx-steps b { display: block; font-size: .95rem; font-weight: 800; color: var(--heading); }
.lx-steps small { display: block; font-size: .82rem; color: var(--ink-2); line-height: 1.6; }
.lx-reg .lx-demo { margin-top: 16px; }
.lx-reg .lx-dash { flex-basis: 100%; max-width: 420px; }
.lx-reg .lx-dash .lx-bars { display: none; }
/* ذيل أنحف حتى تبقى البطاقة داخل شاشة 768 */
.lx-foot { margin-top: 12px; padding: 10px 28px 12px; }
.lx-teach { min-height: 40px; padding: 4px 8px 4px 10px; gap: 8px; border-radius: 12px; }
.lx-teach-ico { width: 30px; height: 30px; border-radius: 9px; }
.lx-teach-ico svg { width: 16px; height: 16px; }
.lx-teach-txt small { font-size: .68rem; }
.lx-teach-txt b { font-size: .85rem; }
@media (max-width: 560px) { .lx-foot { padding: 10px 16px 12px; } }
.lx { --lx-cut: 56px; }
.lx-tabs button, .lx-tabs a { min-height: 42px; }
.lx-head { margin: 12px 0 8px; }
.lx-terms { padding-block: 7px; }
.lx-terms input { top: 9px; }

/* =====================================================================
 * v9.6 — رسم توضيحي أصلي بجانب النموذج (SVG مضمّن، بلا صور خارجية)
 * ===================================================================== */
.lx-art { width: 100%; max-width: 420px; margin: 18px auto 22px; }
.lx-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.lx-reg .lx-art { display: none; max-width: 340px; margin: 10px auto 16px; }
@media (min-height: 880px) { .lx-reg .lx-art { display: block; } }
@media (max-width: 1200px) { .lx-art { max-width: 360px; } }
@media (max-width: 900px) { .lx-art { display: none; } }

/* v9.6 — النموذج وحده في منتصف الشاشة، بلا لوحة جانبية */
.lx { grid-template-columns: minmax(0, 560px) !important; justify-content: center; max-width: 100%; }
.lx-side { display: none !important; }
.lx-tw { width: 100%; max-width: 560px; margin-inline: auto; }
