/* =====================================================================
   Infinity Answers — نظام تصميم واجهة الطلاب (القرار 19)
   يُحمَّل في صفحات الطلاب فقط (body.ic-student). الإدارة لا تتأثر.
   الهوية: تركوازي #3DA7A9 · برتقالي #F25524 · خط Cairo.
   ===================================================================== */

:root {
  --brand-50: #EAF5F5; --brand-100: #D3ECEC; --brand-200: #9ED3D4; --brand-400: #5DB9BB;
  --brand-500: #3DA7A9; --brand-600: #2F8E90; --brand-700: #26706F; --brand-800: #1F5A5C; --brand-900: #173F40;
  --flame-50: #FDEDE7; --flame-100: #FBD9CC; --flame-400: #F4744A; --flame-500: #F25524; --flame-600: #DC4819; --flame-700: #C43D10;
  --ink: #0F1B1C; --ink-2: #334244; --muted: #66777A; --line: #E3EAEA; --line-2: #EEF3F3;
  --surface: #FFFFFF; --bg: #F4F8F8; --success: #15803D; --success-bg: #ECFDF3; --warning: #B45309; --warning-bg: #FFF7E6;
  --danger: #C2410C; --danger-bg: #FFF1EC; --info: #1F5A5C; --info-bg: #EAF5F5;
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(15, 27, 28, .05);
  --shadow-sm: 0 1px 2px rgba(15, 27, 28, .05), 0 4px 14px rgba(15, 27, 28, .05);
  --shadow-md: 0 2px 6px rgba(15, 27, 28, .05), 0 12px 32px rgba(15, 27, 28, .08);
  --shadow-lg: 0 20px 50px rgba(15, 27, 28, .14);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ─── الأساس ─────────────────────────────────────────────────────────── */
body.ic-student {
  background: var(--bg);
  color: var(--ink);
  font-family: "Cairo", "Noto Kufi Arabic", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.ic-student *, .ic-student *::before, .ic-student *::after { box-sizing: border-box; }
.ic-student img, .ic-student video, .ic-student iframe { max-width: 100%; }
.ic-student h1, .ic-student h2, .ic-student h3 { color: var(--ink); line-height: 1.35; letter-spacing: 0; }
/* الروابط ترث لون النص، إلا الأزرار: كانت القاعدة تطغى على لون نص الزر فيظهر داكنًا على البرتقالي. */
:where(.ic-student) a { color: inherit; } /* بلا أولوية: لا يطغى على ألوان الأزرار والروابط المنسقة */
.ic-student :focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-500) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.ic-student ::selection { background: var(--brand-100); }
@media (prefers-reduced-motion: reduce) { .ic-student * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.ic-container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .ic-container { padding-inline: 24px; } }
@media (min-width: 1024px) { .ic-container { padding-inline: 32px; } }

/* ─── المكوّنات ──────────────────────────────────────────────────────── */
.ui-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--r-md); border: 1px solid transparent;
  font: 700 15px/1.2 "Cairo", sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .08s var(--ease);
}
.ui-btn:active { transform: translateY(1px); }
.ui-btn[disabled], .ui-btn.is-disabled { opacity: .55; pointer-events: none; }
.ui-btn--primary { background: var(--brand-500); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-500) 28%, transparent); }
.ui-btn--primary:hover { background: var(--brand-600); }
.ui-btn--accent { background: var(--flame-500); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--flame-500) 28%, transparent); }
.ui-btn--accent:hover { background: var(--flame-600); }
.ui-btn--soft { background: var(--brand-50); color: var(--brand-800); }
.ui-btn--soft:hover { background: var(--brand-100); }
.ui-btn--ghost { background: var(--surface); color: var(--ink-2); border-color: var(--line); }
.ui-btn--ghost:hover { border-color: var(--brand-200); color: var(--brand-800); }
.ui-btn--danger { background: var(--surface); color: var(--danger); border-color: #F6D5C8; }
.ui-btn--danger:hover { background: var(--danger-bg); }
.ui-btn--sm { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: var(--r-sm); }
.ui-btn--lg { min-height: 52px; padding: 12px 24px; font-size: 16px; }
.ui-btn--block { width: 100%; }

.ui-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.ui-card--pad { padding: 20px; }
@media (min-width: 768px) { .ui-card--pad { padding: 28px; } }
.ui-card--hover { transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease); }
.ui-card--hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--brand-100); }

.ui-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font: 700 12px/1.6 "Cairo", sans-serif; white-space: nowrap; }
.ui-badge--brand { background: var(--brand-50); color: var(--brand-800); }
.ui-badge--flame { background: var(--flame-50); color: var(--flame-700); }
.ui-badge--success { background: var(--success-bg); color: var(--success); }
.ui-badge--warning { background: var(--warning-bg); color: var(--warning); }
.ui-badge--danger { background: var(--danger-bg); color: var(--danger); }
.ui-badge--neutral { background: var(--line-2); color: var(--ink-2); }

.ui-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); font-size: 14px; border: 1px solid transparent; }
.ui-alert--info { background: var(--info-bg); color: var(--info); border-color: var(--brand-100); }
.ui-alert--success { background: var(--success-bg); color: var(--success); border-color: #CDEFD9; }
.ui-alert--warning { background: var(--warning-bg); color: var(--warning); border-color: #F8E2B8; }
.ui-alert--danger { background: var(--danger-bg); color: var(--danger); border-color: #F6D5C8; }

.ui-label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.ui-input, .ui-select, .ui-textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); font: 500 15px/1.5 "Cairo", sans-serif;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.ui-input:focus, .ui-select:focus, .ui-textarea:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 15%, transparent); }
.ui-hint { margin-top: 6px; font-size: 12px; color: var(--muted); }

.ui-page-head { padding-block: 24px 8px; }
@media (min-width: 768px) { .ui-page-head { padding-block: 40px 12px; } }
.ui-page-title { margin: 0; font-size: clamp(22px, 3.2vw, 32px); font-weight: 800; }
.ui-page-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.ui-section-title { margin: 0 0 12px; font-size: 18px; font-weight: 800; }

.ui-empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.ui-empty i { font-size: 36px; color: var(--brand-200); margin-bottom: 10px; display: block; }

.ui-progress { height: 8px; background: var(--line-2); border-radius: var(--r-pill); overflow: hidden; }
.ui-progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--brand-400)); border-radius: inherit; }

/* ─── الترويسة ───────────────────────────────────────────────────────── */
.ic-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter:saturate(160%) blur(12px);backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .25s var(--ease); }
.ic-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 27, 28, .06); }
.ic-header__bar { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.ic-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.ic-brand img { height: 36px; width: auto; }
.ic-brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.ic-brand__name b { font-size: 17px; font-weight: 800; color: var(--flame-500); }
.ic-brand__name small { font: 700 9px/1.2 "Inter", sans-serif; letter-spacing: .08em; color: var(--brand-600); }
@media (max-width: 380px) { .ic-brand__name { display: none; } }

.ic-nav { display: none; align-items: center; gap: 6px; margin-inline-start: 14px; }
@media (min-width: 1024px) { .ic-nav { display: flex; } }
.ic-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; color: var(--ink-2); font-weight: 700; font-size: 15px; text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
.ic-nav a i { color: var(--brand-500); font-size: 15px; transition: color .18s var(--ease); }
.ic-nav a:hover { background: var(--brand-50); color: var(--brand-800); }
.ic-nav a[aria-current="page"] { background: var(--brand-100); color: var(--brand-800); font-weight: 800; box-shadow: inset 0 0 0 1px var(--brand-200); }
.ic-nav a[aria-current="page"] i { color: var(--brand-700); }   /* الصفحة الحالية كانت بلون التمرير نفسه فلا تتميّز */

.ic-header__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.ic-iconbtn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; text-decoration: none; transition: border-color .2s var(--ease), color .2s var(--ease); }
.ic-iconbtn:hover { border-color: var(--brand-200); color: var(--brand-700); }
.ic-count { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-pill); background: var(--flame-500); color: #fff; font: 800 11px/20px "Inter", sans-serif; text-align: center; box-shadow: 0 0 0 2px #fff; }

.ic-desktop-only { display: none !important; }
@media (min-width: 1024px) { .ic-desktop-only { display: inline-flex !important; } .ic-mobile-only { display: none !important; } }

.ic-user { position: relative; }
.ic-user__btn { display: inline-flex; align-items: center; gap: 10px; padding: 4px 6px 4px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); cursor: pointer; font: 700 14px "Cairo", sans-serif; color: var(--ink-2); }
.ic-user__btn:hover { border-color: var(--brand-200); }
.ic-avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--flame-400), var(--flame-500)); color: #fff; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.ic-user__meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.ic-user__meta small { color: var(--muted); font-weight: 600; font-size: 11px; }
.ic-menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 240px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; z-index: 70; }
.ic-user.is-open .ic-menu { opacity: 1; visibility: visible; transform: none; }
.ic-menu a, .ic-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-2); font: 600 14px "Cairo", sans-serif; text-decoration: none; cursor: pointer; text-align: start; }
.ic-menu a i, .ic-menu button i { width: 18px; color: var(--brand-500); text-align: center; }
.ic-menu a:hover, .ic-menu button:hover { background: var(--brand-50); color: var(--brand-800); }
.ic-menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 4px; }
.ic-menu .is-danger, .ic-menu .is-danger i { color: var(--danger); }

/* ─── القائمة المنبثقة (الهاتف) ──────────────────────────────────────── */
.ic-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.ic-drawer.is-open { visibility: visible; }
.ic-drawer__overlay { position: absolute; inset: 0; background: rgba(15, 27, 28, .45); opacity: 0; transition: opacity .25s var(--ease); }
.ic-drawer.is-open .ic-drawer__overlay { opacity: 1; }
.ic-drawer__panel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(86vw, 340px); display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s var(--ease); }
[dir="ltr"] .ic-drawer__panel { transform: translateX(-100%); }
.ic-drawer.is-open .ic-drawer__panel { transform: none; }
.ic-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.ic-drawer__user { display: flex; align-items: center; gap: 12px; padding: 16px; margin: 12px 12px 4px; border-radius: var(--r-md); background: var(--brand-50); }
.ic-drawer__user b { display: block; font-size: 15px; }
.ic-drawer__user small { color: var(--brand-700); font-weight: 700; }
.ic-drawer__body { flex: 1; overflow-y: auto; padding: 8px 12px 16px; -webkit-overflow-scrolling: touch; }
.ic-drawer__group { margin-top: 12px; }
.ic-drawer__label { padding: 0 8px 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.ic-drawer__body a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 12px; border-radius: var(--r-md); color: var(--ink-2); font-weight: 700; font-size: 15px; text-decoration: none; }
.ic-drawer__body a i { width: 22px; text-align: center; color: var(--brand-500); }
.ic-drawer__body a:hover, .ic-drawer__body a[aria-current="page"] { background: var(--brand-50); color: var(--brand-800); }
.ic-drawer__body a .ic-count { position: static; margin-inline-start: auto; box-shadow: none; }
.ic-drawer__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); }
body.ic-lock { overflow: hidden; }
body.ic-lock .ic-whatsapp { display: none; }

/* ─── التذييل ────────────────────────────────────────────────────────── */
.ic-footer { margin-top: 48px; background: var(--surface); border-top: 1px solid var(--line); }
.ic-footer__grid { display: grid; gap: 28px; padding-block: 36px 24px; }
@media (min-width: 768px) { .ic-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-block: 48px 28px; } }
.ic-footer h3 { margin: 0 0 12px; font-size: 15px; font-weight: 800; }
.ic-footer p { margin: 0; color: var(--muted); font-size: 14px; }
.ic-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ic-footer ul a { color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.ic-footer ul a:hover { color: var(--brand-700); }
.ic-social { display: flex; gap: 8px; margin-top: 14px; }
.ic-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-700); text-decoration: none; }
.ic-social a:hover { background: var(--brand-100); }
.ic-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 16px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 13px; }
.ic-whatsapp { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); inset-inline-end: 18px; z-index: 50; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; font-size: 26px; box-shadow: 0 10px 24px rgba(37, 211, 102, .35); text-decoration: none; transition: transform .2s var(--ease); }
.ic-whatsapp:hover { transform: scale(1.06); }

.ic-staging-bar { background: #FFF4E0; color: #6B3E0C; text-align: center; font: 600 12px/1.6 "Cairo", sans-serif; padding: 6px 12px; }
.ic-staging-bar a { color: inherit; text-decoration: underline; }

/* ─── رفع الصفحات القديمة إلى النظام الجديد (نطاق الطلاب فقط) ────────── */
.ic-student main { min-height: 50vh; }
.ic-student .glass-card { background: var(--surface) !important; border: 1px solid var(--line) !important; box-shadow: var(--shadow-sm) !important; -webkit-backdrop-filter:none !important;backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.ic-student main .shadow-2xl, .ic-student main .shadow-xl { box-shadow: var(--shadow-md) !important; }
.ic-student main .shadow-lg { box-shadow: var(--shadow-sm) !important; }
.ic-student main .rounded-3xl { border-radius: var(--r-xl); }
.ic-student main .bg-primary { background-color: var(--brand-500); }
.ic-student main .bg-primary:hover { background-color: var(--brand-600); }
.ic-student main input[type="text"], .ic-student main input[type="email"], .ic-student main input[type="password"],
.ic-student main input[type="tel"], .ic-student main input[type="number"], .ic-student main select, .ic-student main textarea { font-family: "Cairo", sans-serif; }
.ic-student main button, .ic-student main .rounded-full { font-family: "Cairo", sans-serif; }

/* =====================================================================
   الدفعة ٢ — بطاقة الدورة، والصفحة الرئيسية، وتصفح الدورات (ألوان فاتحة)
   ===================================================================== */
.ui-grid-courses { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .ui-grid-courses { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ui-grid-courses { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.ui-cover { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; }
.ui-cover--0 { background: radial-gradient(120% 90% at 100% 0%, var(--brand-100) 0%, transparent 60%), linear-gradient(135deg, #F2FAFA, #FFFFFF); }
.ui-cover--1 { background: radial-gradient(120% 90% at 0% 0%, var(--flame-100) 0%, transparent 55%), linear-gradient(135deg, #FFF7F3, #FFFFFF); }
.ui-cover--2 { background: radial-gradient(90% 80% at 100% 100%, var(--brand-100) 0%, transparent 60%), radial-gradient(80% 70% at 0% 0%, var(--flame-100) 0%, transparent 55%), #FFFFFF; }
.ui-cover i { position: absolute; inset-inline-start: 16px; top: 14px; font-size: 18px; color: var(--brand-400); opacity: .8; }
.ui-cover span { font-size: 40px; font-weight: 800; color: var(--brand-600); letter-spacing: 1px; opacity: .85; }
.ui-cover--1 span { color: var(--flame-500); }
.ui-cover--code span { font: 800 30px/1 "Inter", "Cairo", sans-serif; letter-spacing: .5px; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); }

.ui-ccard { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs); transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease); }
.ui-ccard:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--brand-100); }
.ui-ccard__media { position: relative; aspect-ratio: 16 / 9; background: var(--brand-50); border-bottom: 1px solid var(--line-2); }
.ui-ccard__media > a { display: block; width: 100%; height: 100%; }
.ui-ccard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ui-ccard:hover .ui-ccard__media img { transform: scale(1.03); }
.ui-ccard__tags { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.ui-ccard__tags .ui-badge { box-shadow: 0 2px 8px rgba(15, 27, 28, .08); background-clip: padding-box; }
.ui-ccard__tags .ui-badge--brand { background: #fff; }
.ui-fav { position: absolute; top: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--muted); box-shadow: 0 2px 10px rgba(15, 27, 28, .1); cursor: pointer; transition: transform .15s var(--ease), color .15s var(--ease); }
.ui-fav:hover { transform: scale(1.08); color: #E11D48; }
.ui-fav.is-on { color: #E11D48; }
.ui-ccard__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 12px; flex: 1; }
.ui-ccard__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ui-ccard__meta i { color: var(--brand-400); margin-inline-end: 5px; }
.ui-ccard__title { margin: 0; font-size: 16.5px; font-weight: 800; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ui-ccard__title a { text-decoration: none; color: var(--ink); }
.ui-ccard__title a:hover { color: var(--brand-700); }
.ui-ccard__desc { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ui-ccard__teacher { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.ui-mini-avatar { display: inline-grid; margin-inline-end: 8px; vertical-align: -7px; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-size: 12px; font-weight: 800; }
.ui-ccard__progress-top { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; color: var(--muted); font-weight: 700; }
.ui-ccard__progress-top b { color: var(--brand-700); }
.ui-ccard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line-2); background: #FCFEFE; }
.ui-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ui-price b { font-size: 19px; font-weight: 800; color: var(--ink); }
.ui-price b small { font-size: 12px; font-weight: 700; color: var(--muted); }
.ui-price s { color: var(--muted); font-size: 13px; }

/* ─── الرئيسية ───────────────────────────────────────────────────────── */
.hm-hero { position: relative; z-index: 3; overflow: visible; overflow-x: clip;   /* اقتراحات البحث كانت تُقص أسفل القسم */ background: radial-gradient(60% 70% at 100% 0%, #E3F4F4 0%, transparent 60%), radial-gradient(50% 60% at 0% 100%, #FFF1EA 0%, transparent 60%), #FBFEFE; border-bottom: 1px solid var(--line-2); }
.hm-hero__grid { display: grid; gap: 28px; align-items: center; padding-block: 32px 40px; }
@media (min-width: 1024px) { .hm-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; padding-block: 64px 72px; } }
.hm-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--brand-100); color: var(--brand-700); font-size: 13px; font-weight: 800; box-shadow: var(--shadow-xs); }
.hm-title { margin: 14px 0 12px; font-size: clamp(30px, 5vw, 50px); font-weight: 800; line-height: 1.25; }
.hm-title em { font-style: normal; color: var(--brand-600); }
.hm-title .hl { color: var(--flame-500); }
.hm-lead { margin: 0 0 22px; color: var(--ink-2); font-size: clamp(15px, 1.6vw, 18px); max-width: 560px; }
.hm-search { display: flex; gap: 8px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); max-width: 560px; }
.hm-search .ui-input { border: 0; min-height: 48px; box-shadow: none !important; background: transparent; }
.hm-search .ui-btn { min-height: 48px; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hm-chips a { padding: 6px 12px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 700; text-decoration: none; }
.hm-chips a:hover { border-color: var(--brand-200); color: var(--brand-700); }
.hm-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; color: var(--muted); font-size: 13px; max-width: 560px; }
@media (min-width: 640px) { .hm-trust { font-size: 14px; gap: 24px; } }
.hm-trust b { display: block; color: var(--ink); font-size: clamp(18px, 2.4vw, 22px); font-weight: 800; line-height: 1.3; }
.hm-visual { position: relative; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); overflow: hidden; }
.hm-visual video, .hm-visual img { display: block; width: 100%; height: auto; }
.hm-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md); font-size: 13px; font-weight: 700; }
.hm-float i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; }
.hm-float--a { bottom: 14px; inset-inline-start: 14px; } .hm-float--a i { background: var(--success-bg); color: var(--success); }
.hm-float--b { top: 14px; inset-inline-end: 14px; } .hm-float--b i { background: var(--flame-50); color: var(--flame-500); }
@media (max-width: 640px) { .hm-float { display: none; } }

.hm-section { padding-block: 44px; }
@media (min-width: 768px) { .hm-section { padding-block: 72px; } }
.hm-section--tint { background: #F7FBFB; border-block: 1px solid var(--line-2); }
.hm-head { text-align: center; max-width: 680px; margin: 0 auto 28px; }
.hm-head h2 { margin: 10px 0 8px; font-size: clamp(22px, 3.2vw, 32px); font-weight: 800; }
.hm-head p { margin: 0; color: var(--muted); }
.hm-head--row { display: flex; align-items: end; justify-content: space-between; gap: 12px; text-align: start; max-width: none; }
.hm-head--row h2 { margin: 0 0 4px; }

.hm-steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 768px) { .hm-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.hm-step { position: relative; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.hm-step__num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 14px; background: var(--brand-50); color: var(--brand-700); font-weight: 800; font-size: 18px; }
.hm-step:nth-child(2) .hm-step__num { background: var(--flame-50); color: var(--flame-500); }
.hm-step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.hm-step p { margin: 0; color: var(--muted); font-size: 14px; }

.hm-features { display: grid; gap: 14px; }
@media (min-width: 640px) { .hm-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hm-features { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.hm-feature { display: flex; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.hm-feature__icon { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 19px; }
.hm-feature__icon.t { background: var(--brand-50); color: var(--brand-600); }
.hm-feature__icon.f { background: var(--flame-50); color: var(--flame-500); }
.hm-feature__icon.g { background: var(--success-bg); color: var(--success); }
.hm-feature h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.hm-feature p { margin: 0; color: var(--muted); font-size: 13.5px; }

.hm-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.hm-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 16px; }
.hm-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; font-weight: 800; font-size: 15px; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: "+"; display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-weight: 800; transition: transform .2s var(--ease); }
.hm-faq details[open] summary::after { content: "−"; }
.hm-faq details p { margin: 0 0 16px; color: var(--ink-2); font-size: 14.5px; }

.hm-cta { display: grid; gap: 16px; align-items: center; padding: 28px; border-radius: var(--r-xl); background: radial-gradient(70% 120% at 100% 0%, #D9F0F0 0%, transparent 60%), radial-gradient(60% 120% at 0% 100%, #FFE8DE 0%, transparent 60%), #F6FBFB; border: 1px solid var(--brand-100); }
@media (min-width: 768px) { .hm-cta { grid-template-columns: 1fr auto; padding: 40px; } }
.hm-cta h2 { margin: 0 0 6px; font-size: clamp(20px, 2.8vw, 28px); font-weight: 800; }
.hm-cta p { margin: 0; color: var(--ink-2); }
.hm-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }


/* ─── تصفح الدورات ───────────────────────────────────────────────────── */
.ls-top { background: radial-gradient(60% 120% at 100% 0%, #E6F5F5 0%, transparent 60%), #FBFEFE; border-bottom: 1px solid var(--line-2); }
.ls-top__inner { padding-block: 24px 20px; }
@media (min-width: 768px) { .ls-top__inner { padding-block: 36px 24px; } }
.ls-search { display: flex; gap: 8px; margin-top: 16px; max-width: 680px; }
.ls-search .ui-input { min-height: 50px; }
.ls-bar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(251, 254, 254, .94); -webkit-backdrop-filter:blur(10px);backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ls-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block: 10px; }
.ui-seg { display: inline-flex; padding: 4px; background: #EEF5F5; border-radius: var(--r-md); gap: 2px; }
.ui-seg a { padding: 7px 14px; border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ui-seg a[aria-current="true"] { background: #fff; color: var(--brand-800); box-shadow: var(--shadow-xs); }
.ls-selects { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.ls-selects .ui-select { min-height: 40px; padding-block: 6px; width: auto; min-width: 150px; font-size: 14px; }
@media (max-width: 639px) { .ls-selects { flex-basis: 100%; } .ls-selects .ui-select { flex: 1; min-width: 0; } .ui-seg { width: 100%; } .ui-seg a { flex: 1; text-align: center; } }
.ls-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 8px; }
.ls-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); background: var(--brand-50); color: var(--brand-800); font-size: 13px; font-weight: 700; text-decoration: none; }
.ls-chip i { font-size: 11px; opacity: .7; }
.ls-count { color: var(--muted); font-size: 14px; font-weight: 600; margin-inline-end: auto; }
.ls-section { padding-block: 8px 12px; }
.ls-section + .ls-section { padding-top: 20px; }

/* =====================================================================
   الدفعة ٣ — صفحة الدورة
   ===================================================================== */
.cp { padding-bottom: 24px; }
.cp-hero { background: radial-gradient(55% 90% at 100% 0%, #E1F3F3 0%, transparent 60%), radial-gradient(45% 80% at 0% 100%, #FFF0E8 0%, transparent 60%), #FBFEFE; border-bottom: 1px solid var(--line-2); }
.cp-hero__inner { padding-block: 18px 26px; }
@media (min-width: 1024px) { .cp-hero__inner { padding-block: 26px 40px; padding-inline-end: calc(360px + 64px); } }
.cp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.cp-crumbs a { color: var(--brand-700); text-decoration: none; }
.cp-crumbs i { font-size: 9px; opacity: .6; }
.cp-hero__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cp-title { margin: 0 0 8px; font-size: clamp(24px, 3.6vw, 38px); font-weight: 800; line-height: 1.3; }
.cp-lead { margin: 0 0 14px; color: var(--ink-2); font-size: clamp(15px, 1.6vw, 17px); max-width: 760px; }
.cp-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.cp-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.cp-meta i { color: var(--brand-500); }

.cp-layout { display: grid; gap: 18px; padding-block: 18px 8px; }
@media (min-width: 1024px) { .cp-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: -28px; } }
.cp-main { display: grid; gap: 18px; min-width: 0; }
.cp-aside { min-width: 0; }
@media (min-width: 1024px) { .cp-aside { position: sticky; top: calc(var(--header-h) + 16px); order: 2; } }
@media (max-width: 1023px) { .cp-aside { order: -1; } }

.cp-video { padding: 10px; overflow: hidden; }
.cp .video-container-wrapper { border-radius: var(--r-md) !important; background: #EEF5F5 !important; box-shadow: none !important; margin: 0 !important; }
.cp-video__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 6px 4px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.cp-video__cap i { color: var(--brand-500); }

.cp-block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; }
.cp-block__head .ui-section-title { margin: 0; }
.cp-block__sum { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.cp-desc { color: var(--ink-2); font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }

.cp-terms { display: grid; gap: 10px; }
.cp-term { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.cp-term summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: #F8FCFC; font-weight: 800; }
.cp-term summary::-webkit-details-marker { display: none; }
.cp-term summary::after { content: "\f078"; font: 900 12px "IC Icons"; color: var(--brand-600); transition: transform .2s var(--ease); margin-inline-start: 6px; }
.cp-term[open] summary::after { transform: rotate(180deg); }
.cp-term__name { flex: 1; min-width: 0; }
.cp-term__meta { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.cp-term__action { padding: 10px 16px 0; }
.cp-lessons { list-style: none; margin: 0; padding: 6px 8px 8px; }
.cp-lesson { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; }
.cp-lesson + .cp-lesson { border-top: 1px dashed var(--line-2); }
.cp-lesson i { width: 18px; text-align: center; color: #B7C4C6; }
.cp-lesson.is-open i { color: var(--brand-500); }
.cp-lesson a, .cp-lesson > span:not(.ui-badge) { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.cp-lesson a:hover { color: var(--brand-700); }
.cp-lesson.is-open:hover { background: var(--brand-50); }
.cp-lesson time { color: var(--muted); font-size: 12.5px; font-weight: 600; direction: ltr; }

.cp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
@media (min-width: 640px) { .cp-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cp-facts div { padding: 12px; border-radius: var(--r-md); background: #F8FCFC; border: 1px solid var(--line-2); }
.cp-facts dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.cp-facts dd { margin: 2px 0 0; font-weight: 800; font-size: 14.5px; overflow-wrap: anywhere; }

.cp-buy { padding: 20px; display: grid; gap: 14px; box-shadow: var(--shadow-md); }
.cp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.cp-price b { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.cp-price b small { font-size: 15px; color: var(--muted); }
.cp-price s { color: var(--muted); font-size: 15px; }
.cp-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--muted); font-size: 13px; }
.cp-note i { margin-top: 4px; color: var(--brand-500); }
.cp-note.is-warn { color: var(--danger); } .cp-note.is-warn i { color: var(--danger); }
.cp-form { display: grid; gap: 12px; }
.cp-payopts { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.ui-payopt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.ui-payopt input { margin-top: 5px; accent-color: var(--brand-500); width: 17px; height: 17px; flex-shrink: 0; }
.ui-payopt b { display: block; font-size: 15px; }
.ui-payopt small { color: var(--muted); font-size: 12.5px; }
.ui-payopt:has(input:checked) { border-color: var(--brand-400); background: var(--brand-50); }
.cp-codes { border: 1px dashed var(--line); border-radius: var(--r-md); }
.cp-codes summary { list-style: none; cursor: pointer; padding: 10px 12px; color: var(--brand-700); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.cp-codes summary::-webkit-details-marker { display: none; }
.cp-codes__body { display: grid; gap: 8px; padding: 0 12px 12px; }
.cp-wait { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--warning-bg); border: 1px solid #F8E2B8; }
.cp-owned { display: grid; gap: 6px; }
.cp-owned p { margin: 0; color: var(--ink-2); font-size: 14px; }
.cp-includes { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 8px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.cp-includes i { width: 20px; color: var(--brand-500); }

.cp-related { padding-block: 28px 8px; }

.cp-mbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 55; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 27, 28, .06); }
.cp-mbar__txt { font-weight: 800; font-size: 17px; }
@media (min-width: 1024px) { .cp-mbar { display: none; } }
@media (max-width: 1023px) { body:has(.cp-mbar) .ic-whatsapp { bottom: calc(86px + env(safe-area-inset-bottom)); } body:has(.cp-mbar) .ic-footer { padding-bottom: 72px; } }

/* =====================================================================
   الدفعة ٤ — المشغّل
   ===================================================================== */
.pl { padding-bottom: 24px; }
.pl-top { background: #FBFEFE; border-bottom: 1px solid var(--line); }
.pl-top__inner { display: flex; align-items: center; gap: 14px; min-height: 58px; padding-block: 8px; }
.pl-back { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 8px 10px; border-radius: var(--r-sm); color: var(--brand-700); font-weight: 700; font-size: 14px; text-decoration: none; }
.pl-back:hover { background: var(--brand-50); }
@media (max-width: 639px) { .pl-back span { display: none; } }
.pl-top__title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pl-top__title b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-top__progress { display: flex; align-items: center; gap: 10px; }
.pl-top__progress .ui-progress { flex: 0 1 220px; height: 6px; }
.pl-top__progress small { color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pl-flash { margin-top: 14px; }

.pl-layout { display: grid; gap: 16px; padding-block: 16px 8px; grid-template-areas: "stage" "bar" "side" "rest"; }
@media (min-width: 1024px) { .pl-layout { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "stage side" "bar side" "rest side"; gap: 18px 24px; align-items: start; padding-top: 22px; } }
.pl-stage { grid-area: stage; min-width: 0; }
.pl-bar { grid-area: bar; min-width: 0; }
.pl-side { grid-area: side; min-width: 0; }
.pl-rest { grid-area: rest; min-width: 0; display: grid; gap: 16px; }
@media (min-width: 1024px) { .pl-side { position: sticky; top: calc(var(--header-h) + 14px); } }

.pl .video-container-wrapper { border-radius: var(--r-lg) !important; box-shadow: var(--shadow-md) !important; background: #0F1B1C; margin: 0 !important; }
@media (max-width: 639px) { .pl .video-container-wrapper { border-radius: var(--r-md) !important; } }
.pl-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; background: radial-gradient(70% 90% at 100% 0%, #E3F4F4 0%, transparent 60%), radial-gradient(60% 80% at 0% 100%, #FFEFE7 0%, transparent 60%), #F8FCFC; color: var(--ink); }
.pl-lock i { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #fff; color: var(--brand-600); font-size: 22px; box-shadow: var(--shadow-sm); }
.pl-lock__title { margin: 4px 0 0; font-size: clamp(15px, 2.2vw, 19px); font-weight: 800; }
.pl-lock__msg { margin: 0 0 6px; max-width: 460px; color: var(--ink-2); font-size: 13.5px; }
@media (max-width: 420px) { .pl-lock__msg { display: none; } }

.pl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.pl-bar__info { min-width: 0; flex: 1 1 260px; }
.pl-bar__eyebrow { color: var(--brand-700); font-size: 13px; font-weight: 700; }
.pl-bar__title { margin: 2px 0 0; font-size: clamp(19px, 2.6vw, 25px); font-weight: 800; line-height: 1.4; }
.pl-bar__nav { display: flex; gap: 8px; }

.pl-curr { overflow: hidden; }
.pl-curr__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line-2); }
.pl-curr__head span { color: var(--muted); font-size: 13px; font-weight: 700; }
.pl-curr__list { padding: 8px; }
@media (min-width: 1024px) { .pl-curr__list { max-height: calc(100vh - var(--header-h) - 120px); overflow-y: auto; } }
.pl-term + .pl-term { margin-top: 6px; }
.pl-term summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 10px; border-radius: 10px; font-weight: 800; font-size: 14px; }
.pl-term summary::-webkit-details-marker { display: none; }
.pl-term summary > span:first-child { flex: 1; min-width: 0; }
.pl-term summary small { color: var(--muted); font-weight: 700; font-size: 12px; }
.pl-term summary::after { content: "\f078"; font: 900 11px "IC Icons"; color: var(--muted); transition: transform .2s var(--ease); }
.pl-term[open] summary::after { transform: rotate(180deg); }
.pl-term summary:hover { background: #F4FAFA; }
.pl-term__action { padding: 2px 8px 8px; }
.pl-lessons { list-style: none; margin: 0; padding: 0 0 4px; }
.pl-lesson a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.pl-lesson a:hover { background: var(--brand-50); }
.pl-lesson i { width: 18px; text-align: center; color: var(--brand-400); flex-shrink: 0; }
.pl-lesson.is-done i { color: var(--success); }
.pl-lesson.is-locked a { color: var(--muted); }
.pl-lesson.is-locked i { color: #B7C4C6; }
.pl-lesson.is-current a { background: var(--brand-50); color: var(--brand-800); font-weight: 800; box-shadow: inset -3px 0 0 var(--brand-500); }
.pl-lesson.is-current i { color: var(--brand-600); }
.pl-lesson__title { flex: 1; min-width: 0; line-height: 1.5; }
.pl-lesson__meta { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pl-lesson__meta time { color: var(--muted); font-size: 12px; direction: ltr; }
/*
 * «أين وصل الطالب» في كل درس (طلب المالكة). أسماء مفحوصة: لا تصادم مع موجود.
 * السطر الثالث داخل نفس الرابط، فيلزم flex-wrap على الرابط وعرض كامل للعنصر.
 * الصف الأول يبقى سطرًا واحدًا كما كان (الأيقونة والعنوان ثابتان، والعنوان يتقلّص).
 */
.pl-lesson a { flex-wrap: wrap; row-gap: 5px; }
.pl-lesson__prog { flex: 0 0 100%; display: flex; align-items: center; gap: 8px; }
.pl-lesson__bar { flex: 1; min-width: 0; height: 4px; background: var(--line-2); border-radius: var(--r-pill); overflow: hidden; }
.pl-lesson__bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--brand-400)); border-radius: inherit; }
.pl-lesson__at { flex-shrink: 0; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.pl-lesson__at i { width: auto; margin-inline-end: 3px; color: var(--success); }
.pl-lesson.is-done .pl-lesson__bar > span { background: var(--success); }
.pl-lesson.is-current .pl-lesson__at { color: var(--brand-700); }

.pl-watch .ic-badge, .pl-files .ic-badge { font-family: "Cairo", sans-serif; }
.pl-about__text { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.9; }
.pl-files__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pl-files__head span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pl-files ul li { background: #FAFDFD !important; border-color: var(--line) !important; }
.pl-upsell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; border-radius: var(--r-lg); background: radial-gradient(70% 120% at 100% 0%, #D9F0F0 0%, transparent 60%), #F6FBFB; border: 1px solid var(--brand-100); }
.pl-upsell h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.pl-upsell p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* =====================================================================
   الدفعة ٥ — إطار الحساب، ومكوّنات ic-* بالتصميم الجديد، ولوحة الطالب، ودوراتي
   ===================================================================== */
.ac-navwrap { background: #fff; border-bottom: 1px solid var(--line); }
.ac-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; -webkit-overflow-scrolling: touch; }
.ac-nav::-webkit-scrollbar { display: none; }
.ac-nav a { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.ac-nav a i { color: var(--brand-400); font-size: 13px; }
.ac-nav a:hover { background: var(--brand-50); color: var(--brand-800); }
.ac-nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-800); box-shadow: inset 0 -2px 0 var(--brand-500); }
.ac-nav .ic-count { position: static; box-shadow: none; margin-inline-start: 2px; }
.ac-page { padding-block: 22px 12px; }
@media (min-width: 768px) { .ac-page { padding-block: 30px 16px; } }
.ac-title { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.ac-sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.ac-headrow { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }

/* مكوّنات ic-* الموجودة (المحفظة، والأقساط، والأجهزة، والاسترداد) */
.ic-student .ic-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.ic-student .ic-card-title { color: var(--ink); font-weight: 800; }
.ic-student .ic-card-sub { color: var(--muted); }
.ic-student .ic-btn { border-radius: var(--r-md); font-family: "Cairo", sans-serif; font-weight: 700; min-height: 42px; }
.ic-student .ic-btn-sm { min-height: 36px; border-radius: var(--r-sm); }
.ic-student .ic-btn-primary { background: var(--brand-500); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--brand-500) 25%, transparent); }
.ic-student .ic-btn-primary:hover { background: var(--brand-600); }
.ic-student .ic-btn-accent { background: var(--flame-500); color: #fff; }
.ic-student .ic-btn-accent:hover { background: var(--flame-600); }
.ic-student .ic-badge { border-radius: var(--r-pill); font-family: "Cairo", sans-serif; font-weight: 700; }
.ic-student .ic-alert { border-radius: var(--r-md); }
.ic-student .ic-input, .ic-student .ic-select, .ic-student .ic-textarea { border-radius: var(--r-md); border-color: var(--line); font-family: "Cairo", sans-serif; min-height: 44px; }
.ic-student .ic-table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; }
.ic-student .ic-table th { background: #F6FAFA; color: var(--ink-2); font-weight: 800; }

/* لوحة الطالب */
.db-hero { background: radial-gradient(55% 100% at 100% 0%, #E1F3F3 0%, transparent 60%), radial-gradient(40% 90% at 0% 100%, #FFF0E8 0%, transparent 60%), #FBFEFE; border-bottom: 1px solid var(--line-2); }
.db-hero__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.db-hello { display: flex; align-items: center; gap: 14px; }
.db-hello .ic-avatar { width: 54px; height: 54px; font-size: 22px; }
.db-hello h1 { margin: 0; font-size: clamp(20px, 3vw, 28px); font-weight: 800; }
.db-hello p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.db-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 18px; }
@media (min-width: 900px) { .db-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.db-stat { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: inherit; }
.db-stat:hover { border-color: var(--brand-200); }
.db-stat i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 17px; flex-shrink: 0; }
.db-stat i.t { background: var(--brand-50); color: var(--brand-600); } .db-stat i.f { background: var(--flame-50); color: var(--flame-500); } .db-stat i.g { background: var(--success-bg); color: var(--success); } .db-stat i.w { background: var(--warning-bg); color: var(--warning); }
.db-stat b { display: block; font-size: 20px; font-weight: 800; line-height: 1.3; }
.db-stat small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.db-continue { display: grid; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(135deg, #F2FAFA, #FFFFFF 60%); border: 1px solid var(--brand-100); }
@media (min-width: 768px) { .db-continue { grid-template-columns: 180px 1fr auto; padding: 20px; } }
.db-continue__media { aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--brand-50); }
.db-continue__media img { width: 100%; height: 100%; object-fit: cover; }
.db-continue__eyebrow { color: var(--brand-700); font-size: 13px; font-weight: 800; }
.db-continue h2 { margin: 2px 0 10px; font-size: 18px; font-weight: 800; }
.db-continue .ui-progress { max-width: 420px; }
.db-continue small { display: block; margin-top: 6px; color: var(--muted); font-weight: 700; }
.db-grid { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 1024px) { .db-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.db-side { display: grid; gap: 18px; }
.db-list { list-style: none; margin: 0; padding: 0; display: grid; }
.db-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line-2); font-size: 14px; }
.db-list li:first-child { border-top: 0; }
.db-list b { display: block; font-weight: 700; color: var(--ink); }
.db-list small { color: var(--muted); font-size: 12.5px; }
.db-list .is-unread b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 6px; border-radius: 50%; background: var(--flame-500); vertical-align: middle; }
.db-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.db-card-head a { color: var(--brand-700); font-weight: 700; font-size: 13.5px; text-decoration: none; }

/* دوراتي */
.mc-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .mc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.mc-card__media { position: relative; aspect-ratio: 16 / 8; background: var(--brand-50); }
.mc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.mc-card__media .ui-badge { position: absolute; top: 10px; inset-inline-start: 10px; box-shadow: 0 2px 8px rgba(15, 27, 28, .08); }
.mc-card__body { display: grid; gap: 10px; padding: 14px 16px; flex: 1; }
.mc-card__body h2 { margin: 0; font-size: 16.5px; font-weight: 800; line-height: 1.5; }
.mc-card__body h2 a { color: var(--ink); text-decoration: none; }
.mc-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line-2); background: #FCFEFE; }
.mc-card__foot .ui-btn--primary { flex: 1; }
.mc-card__foot form { margin: 0; }
.mc-link-danger { background: none; border: 0; padding: 6px 4px; color: var(--danger); font: 700 13px "Cairo", sans-serif; cursor: pointer; text-decoration: none; }
.mc-link-danger:hover { text-decoration: underline; }
.mc-grants { display: grid; gap: 8px; }
.mc-grants li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: #FAFDFD; }

/* =====================================================================
   الدفعة ٦ — صفحات الدخول والتسجيل
   ===================================================================== */
.au { padding-block: 24px 40px; }
@media (min-width: 768px) { .au { padding-block: 44px 64px; } }
.au-wrap { display: grid; gap: 20px; max-width: 1040px; margin-inline: auto; align-items: stretch; }
@media (min-width: 960px) { .au-wrap { grid-template-columns: 1fr 1.05fr; gap: 28px; } .au-wrap--wide { grid-template-columns: .8fr 1.2fr; } }
.au-side { display: none; position: relative; overflow: hidden; padding: 36px; border-radius: var(--r-xl); background: radial-gradient(80% 70% at 100% 0%, #D6EFEF 0%, transparent 60%), radial-gradient(70% 60% at 0% 100%, #FFE6DB 0%, transparent 60%), #F7FCFC; border: 1px solid var(--brand-100); }
@media (min-width: 960px) { .au-side { display: flex; flex-direction: column; justify-content: center; } }
.au-side h2 { margin: 14px 0 8px; font-size: 28px; font-weight: 800; line-height: 1.35; }
.au-side h2 em { font-style: normal; color: var(--brand-600); }
.au-side p { margin: 0 0 18px; color: var(--ink-2); }
.au-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.au-points li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink-2); }
.au-points i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff; color: var(--brand-600); box-shadow: var(--shadow-xs); flex-shrink: 0; }
.au-points li:nth-child(2) i { color: var(--flame-500); }
.au-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
@media (min-width: 640px) { .au-card { padding: 34px; } }
.au-logo { display: flex; justify-content: center; margin-bottom: 10px; }
.au-logo img { height: 44px; width: auto; }
.au-title { margin: 0; text-align: center; font-size: clamp(22px, 3vw, 28px); font-weight: 800; }
.au-sub { margin: 6px 0 20px; text-align: center; color: var(--muted); font-size: 14.5px; }
.au-form { display: grid; gap: 14px; }
.au-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .au-grid { grid-template-columns: 1fr 1fr; } }
.au-sec { margin: 8px 0 -2px; padding-top: 12px; border-top: 1px solid var(--line-2); color: var(--brand-700); font-size: 14px; font-weight: 800; }
.au-sec:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.au-field { display: grid; gap: 6px; }
.au-field .ui-label { margin: 0; }
.au-pass { position: relative; }
.au-pass .ui-input { padding-inline-end: 46px; }
.au-pass button { position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.au-pass button:hover { background: var(--brand-50); color: var(--brand-700); }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.au-row a { color: var(--brand-700); font-weight: 700; text-decoration: none; }
.au-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); }
.au-check input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--brand-500); flex-shrink: 0; }
.au-check a { color: var(--brand-700); font-weight: 700; }
.au-foot { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 14.5px; }
.au-foot a { color: var(--brand-700); font-weight: 800; text-decoration: none; }
.ui-select:disabled { background: #F4F7F7; color: var(--muted); }
.border-red-400 { border-color: #F87171 !important; }

/* الإشعارات والملف الشخصي */
.nt-filters { display: grid; gap: 10px; padding: 12px; margin-bottom: 14px; }
@media (min-width: 720px) { .nt-filters { grid-template-columns: 1fr 180px 160px; } }
.nt-list { display: grid; gap: 10px; }
.nt-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.nt-item.is-unread { border-color: var(--brand-200); background: #FBFEFE; box-shadow: inset -3px 0 0 var(--flame-500), var(--shadow-xs); }
.nt-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; font-size: 18px; background: var(--brand-50); color: var(--brand-600); }
.nt-item--success .nt-icon { background: var(--success-bg); color: var(--success); }
.nt-item--warning .nt-icon { background: var(--warning-bg); color: var(--warning); }
.nt-item--error .nt-icon { background: var(--danger-bg); color: var(--danger); }
.nt-body { flex: 1; min-width: 0; }
.nt-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nt-top h2 { margin: 0; font-size: 15.5px; font-weight: 800; }
.nt-body p { margin: 4px 0 8px; color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.nt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.nt-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
@media (max-width: 560px) { .nt-item { flex-wrap: wrap; } .nt-actions { flex-direction: row; width: 100%; justify-content: flex-end; } .nt-hide-sm { display: none; } }
.pf-grid { display: grid; gap: 18px; }
@media (min-width: 1024px) { .pf-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.pf-avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--shadow-sm); }

/* مجموعاتي */
.fg-page > * + * { margin-top: 16px; }
.fg-sec > * + * { margin-top: 10px; }
.fg-lead { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.fg-empty { margin: 0; color: var(--muted); font-size: 14px; }
.fg-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #FAFDFD; font-size: 14px; }
.fg-row--col { display: grid; }
.fg-row--col > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.fg-row p { margin: 0; }
.fg-title { font-weight: 800; color: var(--ink); }
.fg-bigcode { font: 800 20px/1.2 "Inter", "Cairo", sans-serif; letter-spacing: 1px; color: var(--brand-700); }
.fg-code strong { font-family: "Inter", sans-serif; letter-spacing: .5px; }

/* =====================================================================
   الدفعة ٧ — صفحات النتيجة والحساب (الدفع، والاسترداد، والأجهزة، والإيقاف)
   ===================================================================== */
.rs { padding-block: 32px 48px; }
@media (min-width: 768px) { .rs { padding-block: 56px 72px; } }
.rs-card { max-width: 560px; margin-inline: auto; padding: 30px 22px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
@media (min-width: 640px) { .rs-card { padding: 40px 36px; } }
.rs-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 24px; font-size: 32px; }
.rs-icon--ok { background: var(--success-bg); color: var(--success); box-shadow: 0 0 0 10px #F3FBF6; }
.rs-icon--wait { background: var(--brand-50); color: var(--brand-600); box-shadow: 0 0 0 10px #F5FBFB; }
.rs-icon--warn { background: var(--warning-bg); color: var(--warning); box-shadow: 0 0 0 10px #FFFBF2; }
.rs-icon--fail { background: var(--danger-bg); color: var(--danger); box-shadow: 0 0 0 10px #FFF7F4; }
.rs-title { margin: 0; font-size: clamp(21px, 3vw, 27px); font-weight: 800; }
.rs-msg { margin: 8px auto 0; max-width: 440px; color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.rs-msg strong { font-family: "Inter", "Cairo", sans-serif; }
.rs-actions { display: grid; gap: 10px; margin-top: 22px; }
@media (min-width: 480px) { .rs-actions { grid-auto-flow: column; justify-content: center; } }
.rs-summary { margin: 22px 0 0; padding: 0; list-style: none; text-align: start; border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; }
.rs-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: 14px; }
.rs-summary li + li { border-top: 1px solid var(--line-2); }
.rs-summary span { color: var(--muted); }
.rs-summary b { font-weight: 800; }
.rs-summary li.is-total { background: #F8FCFC; }
.rs-summary li.is-total b { font-size: 16px; color: var(--brand-800); }
.rs-help { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.rs-help a { color: var(--brand-700); font-weight: 700; }

/* طلب الاسترداد وحد الأجهزة: صفحات ic-* بعرض مريح ورأس موحد */
.rq-wrap { max-width: 820px; margin-inline: auto; display: grid; gap: 16px; }
.rq-wrap--narrow { max-width: 680px; }
.rq-back { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-700); font-weight: 700; font-size: 14px; text-decoration: none; }
.rq-warn { border: 1px solid #F8E2B8 !important; background: #FFFCF5 !important; }

/* رسالة مخالفة تصوير الشاشة داخل الشاشة السوداء */
#blackScreenOverlay .sv-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; text-align: center; color: #fff; }
#blackScreenOverlay .sv-msg i { font-size: 30px; color: #FDBA74; }
#blackScreenOverlay .sv-msg b { font-size: clamp(16px, 2.4vw, 20px); font-weight: 800; }
#blackScreenOverlay .sv-msg p { margin: 0; max-width: 460px; color: rgba(255, 255, 255, .82); font-size: clamp(12.5px, 1.8vw, 14.5px); line-height: 1.8; }
#blackScreenOverlay .sv-msg button { margin-top: 6px; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 10px; background: transparent; color: #fff; font: 700 13px "Cairo", sans-serif; cursor: pointer; }
@media (max-width: 420px) { #blackScreenOverlay .sv-msg p { display: none; } }

/* =====================================================================
   قائمة «حسابي» الجانبية (بدل شريط التبويبات) — بلا تكرار مع الترويسة
   ===================================================================== */
.ac-shell { display: block; padding-block: 14px 8px; }
@media (min-width: 1024px) { .ac-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; padding-block: 28px 12px; } }
.ac-main { min-width: 0; }
.ac-side { margin-bottom: 14px; }
@media (min-width: 1024px) { .ac-side { position: sticky; top: calc(var(--header-h) + 18px); margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; } }
.ac-me { display: none; }
@media (min-width: 1024px) { .ac-me { display: flex; align-items: center; gap: 12px; padding: 18px 16px; background: linear-gradient(135deg, #F2FAFA, #FFFFFF); border-bottom: 1px solid var(--line-2); } .ac-me b { display: block; font-size: 15px; font-weight: 800; line-height: 1.4; } .ac-me small { color: var(--brand-700); font-weight: 700; font-size: 12px; } }
.ac-menu { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.ac-menu::-webkit-scrollbar { display: none; }
.ac-group { display: contents; }
.ac-group__label { display: none; }
.ac-menu a { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ac-menu a i { color: var(--brand-400); font-size: 13px; width: 16px; text-align: center; }
.ac-menu a[aria-current="page"] { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-800); }
.ac-menu .ic-count { position: static; box-shadow: none; }
@media (min-width: 1024px) {
  .ac-menu { display: block; overflow: visible; padding: 8px; }
  .ac-group { display: block; }
  .ac-group + .ac-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-2); }
  .ac-group__label { display: block; padding: 8px 10px 4px; color: var(--muted); font-size: 12px; font-weight: 800; }
  .ac-menu a { display: flex; border: 0; border-radius: 10px; background: transparent; padding: 9px 10px; }
  .ac-menu a:hover { background: #F4FAFA; color: var(--brand-800); }
  .ac-menu a[aria-current="page"] { background: var(--brand-50); box-shadow: inset -3px 0 0 var(--brand-500); }
  .ac-menu a span:not(.ic-count) { flex: 1; }
  .ac-mobile-only { display: none !important; }
}
/* المحتوى داخل الإطار: بلا حاويات وحشوات مكررة */
.ac-main .ic-container, .ac-main .container { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
.ac-main > main { padding-top: 0 !important; min-height: 0; }
.ac-main .ac-page { padding-block: 0 12px; }
.ac-main .db-hero { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ac-main .db-hero__inner { padding-inline: 20px !important; }
.ac-main .mx-auto { margin-inline: 0 !important; }
.ac-main .rq-wrap { max-width: none; }
@media (min-width: 1024px) { .ac-main .ui-grid-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .ac-main .ui-grid-courses { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ac-main .mc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) and (max-width: 1279px) { .ac-main .db-grid { grid-template-columns: minmax(0, 1fr); } .ac-main .mc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* علامة مائية متحركة وغطاء فقدان التركيز فوق الفيديو */
.wm-layer { position: absolute; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; user-select: none; -webkit-user-select: none; }
.wm-layer span { position: absolute; white-space: nowrap; font: 700 clamp(11px, 1.5vw, 15px)/1 "Cairo", sans-serif; color: rgba(255, 255, 255, .55); text-shadow: 0 1px 2px rgba(0, 0, 0, .55); letter-spacing: .3px; }
.wm-move { transition: top 1.2s ease, left 1.2s ease; transform: rotate(-12deg); }
.wm-fixed { bottom: 48px; inset-inline-start: 14px; font-size: 11px !important; color: rgba(255, 255, 255, .38) !important; }
.focus-cover { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; text-align: center; background: #0B1415; color: #fff; }
.focus-cover[hidden] { display: none; }
.focus-cover > div { display: grid; justify-items: center; gap: 8px; max-width: 420px; }
.focus-cover i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 20px; }
.focus-cover b { font-size: clamp(16px, 2.2vw, 19px); font-weight: 800; }
.focus-cover p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 14px; }
.focus-cover button { margin-top: 6px; padding: 10px 18px; border: 0; border-radius: 12px; background: var(--brand-500); color: #fff; font: 700 14px "Cairo", sans-serif; cursor: pointer; }

/* =====================================================================
   شريط «حسابي» العلوي بتبويبات (بدل القائمة الجانبية) — عرض احترافي للابتوب
   ===================================================================== */
.ah { background: linear-gradient(180deg, #F5FBFB 0%, #FFFFFF 100%); border-bottom: 1px solid var(--line); }
.ah .ic-container { display: grid; gap: 10px; padding-top: 16px; }
@media (min-width: 1024px) { .ah .ic-container { padding-top: 22px; gap: 14px; } }
.ah__me { display: flex; align-items: center; gap: 12px; }
.ah__me .ic-avatar { width: 44px; height: 44px; font-size: 18px; }
.ah__me b { display: block; font-size: 17px; font-weight: 800; line-height: 1.3; }
.ah__me small { color: var(--brand-700); font-size: 12.5px; font-weight: 700; }
@media (max-width: 639px) { .ah__me { display: none; } .ah .ic-container { padding-top: 6px; } }
.ah__tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-bottom: -1px; }
.ah__tabs::-webkit-scrollbar { display: none; }
.ah__tabs a { position: relative; display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 12px 14px 14px; color: var(--muted); font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.ah__tabs a i { font-size: 13px; color: currentColor; opacity: .8; }
.ah__tabs a:hover { color: var(--brand-700); }
.ah__tabs a[aria-current="page"] { color: var(--brand-800); border-bottom-color: var(--brand-500); }
.ah__tabs .ic-count { position: static; box-shadow: none; margin-inline-start: 2px; }
@media (min-width: 1024px) { .ah__tabs .ac-mobile-only { display: none !important; } }

/* المحتوى تحت الشريط بعرض الصفحة */
.ah ~ main .ac-page, .ah + main.ac-page { padding-top: 24px; }
@media (min-width: 1024px) { .ah ~ main .ac-page, .ah + main.ac-page { padding-top: 32px; } }
.ah ~ main .db-hero { max-width: 1200px; margin: 20px auto 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 1240px) { .ah ~ main .db-hero { margin-inline: 16px; } }
.ah ~ main .db-hello .ic-avatar { display: none; }
@media (min-width: 1100px) { .mc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ah { background: #FBFEFE; }
.ah .ic-container { padding-top: 4px !important; gap: 0 !important; }
.ah ~ main .db-hero { width: calc(100% - 32px); max-width: 1136px; margin-inline: auto !important; }
@media (min-width: 640px) { .ah ~ main .db-hero { width: calc(100% - 48px); } }
@media (min-width: 1024px) { .ah ~ main .db-hero { width: calc(100% - 64px); } }

/* كوبون الأصدقاء */
.fg-page > * + * { margin-top: 20px; }
.fg-created { align-items: center; }
.fg-created > div { flex: 1; }
.fg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .fg-steps { grid-template-columns: repeat(3, 1fr); } }
.fg-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.fg-steps li > span { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); font-weight: 800; }
.fg-steps li:nth-child(2) > span { background: var(--flame-50); color: var(--flame-500); }
.fg-steps li:nth-child(3) > span { background: var(--success-bg); color: var(--success); }
.fg-steps b { display: block; font-size: 14.5px; }
.fg-steps small { color: var(--muted); font-size: 13px; }
.fg-sec > .ui-section-title { margin-bottom: 12px; }
.fg-offers { display: grid; gap: 14px; }
@media (min-width: 900px) { .fg-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fg-offer { display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.fg-offer__top { display: flex; align-items: center; gap: 12px; padding: 16px; }
.fg-offer__top > div { flex: 1; min-width: 0; }
.fg-offer__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--flame-50); color: var(--flame-500); font-size: 19px; flex-shrink: 0; }
.fg-offer h3 { margin: 0; font-size: 16px; font-weight: 800; }
.fg-offer p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.fg-offer__discount { flex-shrink: 0; padding: 6px 12px; border-radius: var(--r-pill); background: var(--brand-50); color: var(--brand-800); font-weight: 800; font-size: 14px; white-space: nowrap; }
.fg-offer__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: #FAFDFD; border-top: 1px solid var(--line-2); }
.fg-offer__foot form { margin: 0; }
.fg-mine { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.fg-mine strong { font: 800 15px "Inter", "Cairo", sans-serif; color: var(--brand-800); letter-spacing: .5px; }
.fg-codes { display: grid; gap: 14px; }
@media (min-width: 700px) { .fg-codes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fg-codes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fg-code { display: grid; gap: 8px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.fg-code.is-off { opacity: .75; }
.fg-code__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fg-bigcode { font: 800 22px/1.2 "Inter", "Cairo", sans-serif; letter-spacing: 1px; color: var(--brand-700); }
.fg-code__meta { margin: 0; color: var(--muted); font-size: 13px; }
.fg-code__off { margin: 0; color: var(--danger); font-size: 13px; }
.fg-code__foot { display: flex; justify-content: flex-end; margin-top: 4px; }
.fg-copy { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--brand-200); border-radius: 10px; background: #fff; color: var(--brand-700); font: 700 13px "Cairo", sans-serif; cursor: pointer; transition: background-color .2s var(--ease); }
.fg-copy:hover { background: var(--brand-50); }
.fg-copy.is-done { background: var(--success-bg); border-color: #CDEFD9; color: var(--success); }
.fg-subs { display: grid; gap: 10px; }
.fg-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.fg-sub__info p { margin: 0; }
.fg-title { font-weight: 800; color: var(--ink); }
.fg-sub__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fg-sub__actions form { margin: 0; }
.fg-note { color: var(--muted); font-size: 13px; }
.fg-page > .fg-steps { margin-top: 20px; }

/* =====================================================================
   الدفعة ١١ — قائمة الحساب الموحدة، ولوحة الطالب بلا تكرار
   ===================================================================== */
.ic-menu--account { width: 290px; max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; padding: 0 6px 6px; }
.ic-menu__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; margin: 0 -6px 4px; padding: 14px 14px 12px; background: linear-gradient(135deg, #F2FAFA, #FFFFFF); border-bottom: 1px solid var(--line-2); }
.ic-menu__head b { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.35; }
.ic-menu__head small { display: block; color: var(--muted); font-size: 12px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-menu__group { padding: 4px 0; }
.ic-menu__group + .ic-menu__group { border-top: 1px solid var(--line-2); }
.ic-menu__label { display: block; padding: 6px 12px 2px; color: var(--muted); font-size: 11.5px; font-weight: 800; }
.ic-menu--account a { padding: 8px 12px; }
.ic-menu--account a span:not(.ic-count) { flex: 1; }
.ic-menu--account a[aria-current="page"] { background: var(--brand-50); color: var(--brand-800); }
.ic-menu--account .ic-count { position: static; box-shadow: none; }

.db-hero--card { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.db-hero--card .db-hero__inner { padding: 20px 24px; }
.db-hero--card .db-hello h1 { font-size: clamp(20px, 2.6vw, 26px); }
.db-grid.is-solo { grid-template-columns: minmax(0, 1fr); }
.db-grid.is-solo .db-side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }

/* الواجهة الرئيسية: شعار متحرك بدل الصورة التوضيحية */
.hm-title { letter-spacing: -.3px; }
.hm-title .hl { background: linear-gradient(90deg, var(--flame-500), #F7893F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-trust { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; gap: 14px !important; max-width: 620px !important; }
.hm-trust > div { display: flex; align-items: center; gap: 10px; }
.hm-trust > div > i { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--brand-600); box-shadow: var(--shadow-xs); }
.hm-trust > div:nth-child(2) > i { color: var(--flame-500); }
.hm-trust > div > span b { font-size: 16px !important; }
.hm-stage { position: relative; display: grid; place-items: center; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; margin-inline: auto; }
@media (max-width: 1023px) { .hm-stage { max-width: 320px; margin-top: 8px; } }
@media (max-width: 480px) { .hm-stage { max-width: 260px; } }
.hm-glow { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(61, 167, 169, .22) 0%, rgba(242, 85, 36, .12) 45%, transparent 70%); filter: blur(12px); animation: hmGlow 6s ease-in-out infinite; }
.hm-ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(61, 167, 169, .28); animation: hmPulse 7s ease-in-out infinite; }
.hm-ring--1 { inset: 20%; }
.hm-ring--2 { inset: 9%; border-color: rgba(242, 85, 36, .20); animation-delay: -2.3s; }
.hm-ring--3 { inset: 0; border-style: dashed; border-color: rgba(61, 167, 169, .20); animation: hmSpin 60s linear infinite; }
.hm-orbit { position: absolute; inset: -2%; border-radius: 50%; animation: hmSpin 18s linear infinite; pointer-events: none; }
.hm-orbit--rev { inset: 4%; animation-duration: 13s; animation-direction: reverse; }
.hm-dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255, 255, 255, .92), 0 6px 16px rgba(15, 27, 28, .12); }
.hm-dot--t { top: -8px; left: calc(50% - 8px); background: var(--brand-500); }
.hm-dot--f { bottom: -8px; left: calc(50% - 8px); background: var(--flame-500); }
.hm-dot--s { top: calc(50% - 5px); right: -5px; width: 10px; height: 10px; background: #F7893F; }
.hm-logo { position: relative; display: grid; place-items: center; width: 44%; aspect-ratio: 1 / 1; border-radius: 34%; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(15, 27, 28, .10), 0 0 0 10px rgba(255, 255, 255, .6); animation: hmIn .9s var(--ease) both, hmFloat 6s ease-in-out 1s infinite; }
.hm-logo img { width: 74%; height: auto; }
.hm-stage .hm-float { animation: hmIn .9s var(--ease) .4s both; }
.hm-stage .hm-float--b { top: 12%; inset-inline-end: -2%; }
.hm-stage .hm-float--a { bottom: 12%; inset-inline-start: -2%; }
@media (max-width: 640px) { .hm-stage .hm-float { display: none; } }
@keyframes hmSpin { to { transform: rotate(360deg); } }
@keyframes hmPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.04); opacity: .55; } }
@keyframes hmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes hmGlow { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .6; transform: scale(1.08); } }
@keyframes hmIn { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }


/* =====================================================================
   توحيد الأزرار مع الهوية (ملاحظة المالكة): الإجراء الأساسي برتقالي بنص أبيض
   - #D44417: أقرب درجة للبرتقالي الأصلي (#F25524) تحقق وضوح النص الأبيض
     وفق WCAG AA (4.53:1). الأصلي 3.44:1 فقط، والتركوازي 2.88:1.
   - التركوازي للهوية: الروابط، والتقدم، والحالة المختارة، والأزرار الثانوية الفاتحة.
   ===================================================================== */
:root { --cta: #D44417; --cta-hover: #B93A12; --cta-glow: rgba(212, 68, 23, .26); }
.ic-student .ui-btn { text-decoration: none; }
.ic-student .ui-btn--primary,
.ic-student .ui-btn--accent,
.ic-student .ic-btn-primary,
.ic-student .ic-btn-accent {
  background: var(--cta) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 16px var(--cta-glow) !important;
}
.ic-student .ui-btn--primary:hover,
.ic-student .ui-btn--accent:hover,
.ic-student .ic-btn-primary:hover,
.ic-student .ic-btn-accent:hover { background: var(--cta-hover) !important; color: #fff !important; }
.ic-student .ui-btn--primary i, .ic-student .ui-btn--accent i { color: #fff; }
.ic-student .ui-btn--ghost { color: var(--ink-2); }
.ic-student .ui-btn--soft { color: var(--brand-800); }
.ic-student .ui-btn--danger { color: var(--danger); }
.ic-student .focus-cover button, .ic-student .cp-mbar .ui-btn { color: #fff; }
.ic-student .focus-cover button { background: var(--cta); }

/* تصنيف «شرح بروجكت جامعي» */
.ui-badge--project { background: #FFF4E8; color: #9A3A0F; }
.ui-ccard__tags .ui-badge--project { background: #FFF7EE; }
@media (max-width: 639px) { .ui-seg { overflow-x: auto; scrollbar-width: none; } .ui-seg::-webkit-scrollbar { display: none; } .ui-seg a { flex: 0 0 auto; } }

/* حركة الشعار (فيديو) بدل الشعار الثابت */
.hm-logo-video { position: relative; z-index: 1; width: 82%; height: auto; mix-blend-mode: multiply; background: transparent; animation: hmIn .8s var(--ease) both; }
.hm-stage .hm-ring--1 { opacity: .7; }
.hm-stage .hm-ring--2 { opacity: .6; }

/* مسافة بين «انفنيتي انسارز» و«INFINITY ANSWERS» */
.ic-brand__name { gap: 3px; }
.ic-brand__name b { line-height: 1.25; }
.ic-brand__name small { display: block; margin-top: 2px; line-height: 1.15; }
@media (max-width: 639px) { .ls-bar .ui-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; } .ls-bar .ui-seg a { text-align: center; } }

/* =====================================================================
   الدفعة ١٤ — لون الشعار للأزرار، وصفحات الدخول، والتذييل
   ===================================================================== */
/* برتقالي الشعار الفعلي (#F36829 من logo.png) لكل البرتقالي في الواجهة، بقرار المالكة */
:root { --flame-400: #F6864F; --flame-500: #F36829; --flame-600: #DD5A1E; --cta: #F36829; --cta-hover: #DD5A1E; --cta-glow: rgba(243, 104, 41, .30); }
.ic-student .ui-btn--primary, .ic-student .ui-btn--accent, .ic-student .ic-btn-primary, .ic-student .ic-btn-accent { font-weight: 800; text-shadow: 0 1px 1px rgba(120, 40, 5, .25); }
.hm-title .hl { background: linear-gradient(90deg, #F36829, #F7894A); -webkit-background-clip: text; background-clip: text; }

/* الدخول والتسجيل: حقلان متوازيان، وبلا خلفية التعبئة التلقائية الزرقاء */
.au-form input[dir="ltr"] { text-align: right; }
.au-pass .ui-input { padding-left: 48px !important; padding-right: 14px !important; }
.au-pass button { left: 6px !important; right: auto !important; inset-inline-end: auto !important; }
.ic-student .ui-input:-webkit-autofill, .ic-student .ui-input:-webkit-autofill:hover, .ic-student .ui-input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #fff inset !important; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); transition: background-color 9999s ease-out 0s; }
.au-card { display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 960px) { .au-card .au-logo { display: none; } .au-wrap { gap: 32px; } }
.au-side { align-items: stretch; text-align: start; }
.au-side .au-logo-video { display: block; width: 62%; max-width: 280px; height: auto; margin: -8px auto 6px; mix-blend-mode: multiply; }
.au-side h2 { margin: 6px 0 8px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; line-height: 1.35; text-align: center; }
.au-side h2 em { font-style: normal; display: block; color: var(--flame-500); }
.au-side > p { margin: 0 auto 22px; max-width: 380px; color: var(--ink-2); text-align: center; font-size: 15px; }
.au-points { gap: 10px !important; }
.au-points li { align-items: flex-start !important; padding: 12px 14px; background: rgba(255, 255, 255, .75); border: 1px solid var(--line); border-radius: var(--r-md); }
.au-points li b { display: block; font-size: 14.5px; color: var(--ink); }
.au-points li small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* التذييل */
.ic-footer { margin-top: 56px; background: #FBFEFE; }
.ic-footer__top { display: grid; gap: 32px; padding-block: 40px 28px; }
@media (min-width: 900px) { .ic-footer__top { grid-template-columns: 1.3fr 2fr; gap: 56px; padding-block: 56px 40px; } }
.ic-footer__brand p { margin: 14px 0 0; max-width: 380px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.ic-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (min-width: 640px) { .ic-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ic-footer__cols h3 { margin: 0 0 14px; font-size: 14px; font-weight: 800; color: var(--ink); }
.ic-footer__cols ul { gap: 10px; }
.ic-footer__cols ul a { color: var(--ink-2); font-size: 14px; font-weight: 600; transition: color .2s var(--ease); }
.ic-footer__cols ul a:hover { color: var(--brand-700); }
.ic-footer__base { border-top: 1px solid var(--line); background: #F4F9F9; }
.ic-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 16px; border-top: 0 !important; color: var(--muted); font-size: 13px; }
.ic-footer__pay { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); }
.ic-footer__pay i { color: var(--brand-600); }

/* الملف الشخصي: البريد وكلمة المرور برمز التحقق */
.pf-side { display: grid; gap: 18px; align-content: start; }
.pf-current { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #F8FCFC; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.pf-current i { color: var(--brand-600); }
.pf-step__note { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.pf-code { font: 800 22px/1 "Inter", "Cairo", sans-serif !important; letter-spacing: 10px; text-align: center !important; }
.pf-step__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.pf-step__links form { margin: 0; }
.pf-link { padding: 4px 0; border: 0; background: none; color: var(--brand-700); font: 700 13.5px "Cairo", sans-serif; cursor: pointer; }
.pf-link:hover { text-decoration: underline; }

/* ملفات الدرس المقفلة (الدورة غير مفتوحة): بلا زر تنزيل */
.pl-files__lock { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); background: #FFF8EC; border: 1px solid #F6DFB0; color: #7A5200; font-size: 14px; font-weight: 600; }
.pl-files__lock i { color: #D98A0B; }
.pl-files__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.pl-file { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #F8FAFA; }
.pl-file__name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink-2); font-weight: 600; }
.pl-file__name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-file__name i { color: var(--muted); }
.pl-file.is-locked { opacity: .85; }
.pl-file__locked { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: #EEF2F2; color: var(--muted); font-size: 13px; font-weight: 700; }

/* صفحة الاسترداد: سبب عدم الأهلية مفصلًا (بلا مبلغ قابل للاسترداد) */
.rq-denied { display: grid; gap: 14px; border-inline-start: 4px solid #D98A0B; }
.rq-denied__head { display: flex; align-items: flex-start; gap: 12px; }
.rq-denied__icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; background: #FFF4E0; color: #C27400; font-size: 19px; }
.rq-denied__title { margin: 0; font-size: 19px; font-weight: 800; color: var(--ink); }
.rq-denied__reason { margin: 2px 0 0; color: #8A5A00; font-weight: 700; font-size: 15px; }
.rq-denied__detail { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.9; }
.rq-denied__facts { display: grid; gap: 8px; margin: 0; padding: 12px 14px; border-radius: var(--r-md); background: #F8FAFA; border: 1px solid var(--line); }
.rq-denied__facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 14px; }
.rq-denied__facts dt { color: var(--muted); }
.rq-denied__facts dd { margin: 0; font-weight: 700; color: var(--ink); }
.rq-denied__support { margin: 0; color: var(--muted); font-size: 13.5px; }
.rq-denied__support a { color: var(--brand-700); text-decoration: underline; }

/* =====================================================================
   صفحتا الدخول وإنشاء الحساب: تصميم احترافي
   - النموذج أولًا (يمين الصفحة، بداية القراءة)، ولوحة الهوية يسارًا ثابتة أثناء التمرير
     بارتفاع محتواها، فلا فراغ فوق الشعار وتحته مع النموذج الطويل.
   - البطاقة تبدأ من الأعلى بلا فراغ، وحقول أكبر بأيقونات، وخطوات مرقمة للتسجيل.
   ===================================================================== */
.au { background: radial-gradient(55% 45% at 100% 0%, rgba(61, 167, 169, .09), transparent 70%), radial-gradient(45% 40% at 0% 100%, rgba(243, 104, 41, .07), transparent 70%); }
@media (min-width: 960px) {
  .au .au-wrap { max-width: 1120px; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr) !important; gap: 36px !important; align-items: start !important; }
  .au .au-card { order: 1; }
  /* بلا sticky: عناصر overflow-x:hidden في html وbody وmain تجعلها حاويات تمرير لا تتحرك،
     فكان الإلصاق يُنزل اللوحة 88px عن البطاقة ولا يلتصق. محاذاة بأعلى البطاقة وتمرير طبيعي. */
  .au .au-side { order: 2; position: static; }
}
.au .au-card { justify-content: flex-start !important; padding: clamp(24px, 3.4vw, 46px) !important; border-radius: 28px !important; border-color: #E6EFEF; box-shadow: 0 30px 70px rgba(15, 27, 28, .08) !important; }
.au .au-title { text-align: start; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.2px; }
.au .au-sub { text-align: start; margin: 8px 0 28px; font-size: 15px; }
.au .au-logo { justify-content: flex-start; }
.au .au-form { gap: 18px; }
.au .au-form .ui-input, .au .au-form .ui-select { height: 52px; border-radius: 14px; border: 1.5px solid #DCE7E7; background: #FBFDFD; font-size: 15px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease); }
.au .au-form .ui-input:hover, .au .au-form .ui-select:hover { border-color: #C5D8D8; }
.au .au-form .ui-input:focus, .au .au-form .ui-select:focus { border-color: var(--brand-500); background: #fff; box-shadow: 0 0 0 4px rgba(61, 167, 169, .14); outline: none; }
.au .au-form .ui-label { font-size: 14px; font-weight: 700; color: var(--ink); }
.au-ctl { position: relative; }
.au-ctl__icon { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); color: #94A7A8; font-size: 15px; pointer-events: none; transition: color .2s var(--ease); }
.au-ctl:focus-within .au-ctl__icon { color: var(--brand-600); }
.au .au-ctl .ui-input { padding-right: 44px !important; }
.au .au-pass.au-ctl .ui-input { padding-right: 44px !important; padding-left: 50px !important; }
.au .au-sec { display: flex; align-items: center; gap: 10px; margin: 12px 0 2px; padding-top: 20px; border-top: 1px solid #EDF3F3; color: var(--ink); font-size: 15px; font-weight: 800; }
.au .au-sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.au .au-sec span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--brand-50); color: var(--brand-700); font-size: 13px; font-weight: 800; }
.au .au-grid { gap: 16px; }
.au .au-row a { font-size: 13.5px; }
.au .au-check { padding: 12px 14px; border-radius: 14px; background: #F8FBFB; border: 1px solid #EDF3F3; }
.au .ui-btn--lg.ui-btn--block { height: 54px; border-radius: 14px; font-size: 16.5px; margin-top: 4px; }
.au-secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin: -4px 0 0; color: #7E9092; font-size: 12.5px; font-weight: 600; }
.au-secure i { color: var(--brand-600); font-size: 12px; }
.au .au-foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid #EDF3F3; }
/* لوحة الهوية */
.au .au-side { padding: 40px 36px !important; border-radius: 28px !important; border: 1px solid #E3EFEF; background: radial-gradient(70% 55% at 100% 0%, #DDF1F1 0%, transparent 62%), radial-gradient(60% 50% at 0% 100%, #FFEBDD 0%, transparent 60%), #FFFFFF !important; }
.au .au-side .au-logo-video { width: 54%; max-width: 230px; margin: -6px auto 2px; }
.au .au-side h2 { font-size: clamp(24px, 2.2vw, 30px); }
.au .au-side > p { margin-bottom: 20px; }
.au .au-points { gap: 0 !important; }
.au .au-points li { padding: 14px 4px !important; background: transparent !important; border: 0 !important; border-bottom: 1px dashed #DCE9E9 !important; border-radius: 0 !important; }
.au .au-points li:last-child { border-bottom: 0 !important; }
.au .au-points i { width: 42px !important; height: 42px !important; border-radius: 13px !important; background: #fff !important; border: 1px solid #E3EFEF; }
.au-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #E3EFEF; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.au-trust span { display: inline-flex; align-items: center; gap: 7px; }
.au-trust i { color: var(--brand-600); }
.au-trust span:nth-child(3) i { color: #25A55A; }
/* زر إظهار كلمة المرور يسارًا: الخصائص المنطقية أولًا ثم الفيزيائية (inset-inline-end في RTL هي
   «left»، فكان إعلانها بعد left يلغيه ويعيد الزر فوق أيقونة القفل يمينًا). */
.au-pass button { inset-inline-end: auto !important; inset-inline-start: auto !important; left: 8px !important; right: auto !important; }

/* =====================================================================
   الترويسة الثابتة، والشعار عالي الدقة، والأسئلة الشائعة، والتذييل
   ===================================================================== */
/* ثبات الترويسة: app.css يضع overflow-x:hidden على html وbody وmain، فتصير حاويات تمرير
   لا تتحرك ويتعطل كل sticky (الترويسة، وشريط التصفية، وصندوق الشراء، وقائمة الدروس).
   clip يمنع التمرير الأفقي نفسه بلا إنشاء حاوية تمرير. hidden قبله احتياطٌ للمتصفحات القديمة. */
html, body.ic-student, body.ic-student main { overflow-x: hidden; overflow-x: clip; }
body.ic-student [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.ic-header { box-shadow: 0 1px 0 rgba(15, 27, 28, .06); }
@media (min-width: 1024px) { .pl-side { max-height: calc(100vh - var(--header-h) - 28px); overflow-y: auto; overscroll-behavior: contain; } }

/* الشعار: متجه من ملف الطباعة (بلا النص الإنجليزي)، والاسم العربي فقط */
.ic-brand { gap: 10px; }
.ic-brand img, .ic-brand .ic-brand__mark { height: 30px; width: auto; display: block; }
.ic-brand__name b { font-size: 19px; line-height: 1.2; }
.ic-footer .ic-brand .ic-brand__mark { height: 34px; }
.au-logo img { height: 40px; width: auto; }

/* الأسئلة الشائعة: عمودان (مقدمة وتواصل، وقائمة منسقة) */
.hm-faq2 { display: grid; gap: 28px; }
@media (min-width: 960px) { .hm-faq2 { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 48px; align-items: start; } }
.hm-faq2__intro { display: grid; gap: 12px; align-content: start; }
@media (min-width: 960px) { .hm-faq2__intro { position: sticky; top: calc(var(--header-h) + 28px); } }
.hm-faq2__eyebrow { display: inline-flex; align-items: center; gap: 8px; width: max-content; padding: 6px 12px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); color: var(--brand-700); font-size: 13px; font-weight: 800; }
.hm-faq2__intro h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.35; color: var(--ink); }
.hm-faq2__intro p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.9; }
.hm-faq2__intro .ui-btn { width: max-content; margin-top: 6px; }
.hm-faq2__intro .ui-btn i { color: #25A55A; }
.hm-faq2__list { display: grid; gap: 12px; }
.hm-qa { background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.hm-qa:hover { border-color: #CFE3E3; }
.hm-qa[open] { border-color: rgba(61, 167, 169, .45); box-shadow: 0 14px 34px rgba(15, 27, 28, .06); }
.hm-qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.hm-qa summary::-webkit-details-marker { display: none; }
.hm-qa summary:focus-visible { outline: 3px solid rgba(61, 167, 169, .35); outline-offset: 2px; border-radius: 18px; }
.hm-qa__icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); font-size: 15px; }
.hm-qa[open] .hm-qa__icon { background: var(--brand-500); color: #fff; }
.hm-qa__q { flex: 1; font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.6; }
.hm-qa__chev { flex-shrink: 0; color: var(--muted); font-size: 13px; transition: transform .25s var(--ease), color .2s var(--ease); }
.hm-qa[open] .hm-qa__chev { transform: rotate(180deg); color: var(--brand-700); }
.hm-qa__a { padding: 0 20px 18px 20px; padding-inline-start: 74px; }
.hm-qa__a p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.95; }
@media (max-width: 639px) { .hm-qa__a { padding-inline-start: 20px; } .hm-qa summary { padding: 16px; } }

/* الشعار المضمَّن (svg + use) بمقاس الصورة السابقة */
.ic-brand .ic-brand__mark { height: 30px; width: auto; aspect-ratio: 513.94 / 284.84; display: block; flex-shrink: 0; }
.ic-footer .ic-brand .ic-brand__mark { height: 34px; }
.au-logo .au-logo__mark { height: 40px; width: auto; aspect-ratio: 513.94 / 284.84; display: block; }

/* =====================================================================
   قسم الدعوة «طموحك يستحق التفوّق»: حركة تشجع على الاشتراك
   ===================================================================== */
.hm-cta2 { position: relative; overflow: hidden; display: grid; gap: 28px; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 32px; border: 1px solid #DDEDED; background: linear-gradient(135deg, #F3FBFB 0%, #FFFFFF 45%, #FFF6EF 100%); isolation: isolate; }
@media (min-width: 900px) { .hm-cta2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 40px; } }
.hm-cta2__blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(40px); opacity: .55; animation: ctaDrift 14s ease-in-out infinite alternate; }
.hm-cta2__blob--a { width: 340px; height: 340px; top: -120px; inset-inline-start: -80px; background: radial-gradient(circle, rgba(21, 164, 170, .45), transparent 70%); }
.hm-cta2__blob--b { width: 300px; height: 300px; bottom: -140px; inset-inline-end: 8%; background: radial-gradient(circle, rgba(243, 104, 41, .40), transparent 70%); animation-duration: 17s; animation-delay: -4s; }
.hm-cta2__blob--c { width: 220px; height: 220px; top: 30%; inset-inline-end: -60px; background: radial-gradient(circle, rgba(21, 164, 170, .30), transparent 70%); animation-duration: 12s; animation-delay: -7s; }
@keyframes ctaDrift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(30px, 20px, 0) scale(1.08); } 100% { transform: translate3d(-20px, 30px, 0) scale(.95); } }

.hm-cta2.is-armed .hm-cta2__text > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hm-cta2.is-in .hm-cta2__text > * { opacity: 1; transform: none; }
.hm-cta2.is-in .hm-cta2__text > :nth-child(2) { transition-delay: .12s; }
.hm-cta2.is-in .hm-cta2__text > :nth-child(3) { transition-delay: .24s; }
.hm-cta2 h2 { margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; line-height: 1.3; letter-spacing: -.3px; color: var(--ink); }
.hm-cta2 h2 em { font-style: normal; background: linear-gradient(90deg, #F36829, #F7894A 45%, #15A4AA); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: ctaText 6s ease-in-out infinite alternate; }
@keyframes ctaText { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hm-cta2 p { margin: 0 0 24px; max-width: 540px; color: var(--ink-2); font-size: clamp(15.5px, 1.5vw, 17.5px); line-height: 1.9; }
.hm-cta2__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-cta2__go { position: relative; overflow: hidden; gap: 10px; padding-inline: 26px !important; }
.hm-cta2__go::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: ctaShine 3.4s ease-in-out infinite; }
@keyframes ctaShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.hm-cta2__go i { transition: transform .25s var(--ease); }
.hm-cta2__go:hover i { transform: translateX(-5px); }
.hm-cta2.is-in .hm-cta2__go { animation: ctaPulse 2.8s ease-in-out 1.2s 2; }
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 6px 16px var(--cta-glow); } 50% { box-shadow: 0 6px 16px var(--cta-glow), 0 0 0 10px rgba(243, 104, 41, .12); } }

.hm-cta2__visual { position: relative; display: grid; place-items: center; min-height: 280px; }
.hm-cprog { position: relative; width: min(240px, 70vw); aspect-ratio: 1; filter: drop-shadow(0 18px 30px rgba(15, 27, 28, .08)); }
.hm-cprog svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hm-cprog__track { fill: #FFFFFF; stroke: #E6F1F1; stroke-width: 10; }
.hm-cprog__bar { fill: none; stroke: url(#hmRingGrad); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s cubic-bezier(.22, .9, .3, 1) .15s; }
.hm-cta2.is-armed .hm-cprog__bar { stroke-dashoffset: 326.73; }
.hm-cta2.is-in .hm-cprog__bar { stroke-dashoffset: 0; }
.hm-cprog__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.hm-cprog__center b { font: 800 clamp(34px, 4vw, 46px)/1 "Inter", "Cairo", sans-serif; color: var(--ink); direction: ltr; }
.hm-cprog__center b small { font-size: .5em; color: var(--muted); margin-inline-start: 2px; }
.hm-cprog__center > span { color: var(--brand-700); font-size: 14px; font-weight: 800; }
.hm-float2 { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; background: #fff; border: 1px solid #E3EFEF; box-shadow: 0 10px 24px rgba(15, 27, 28, .08); font-size: 13.5px; font-weight: 800; color: var(--ink); white-space: nowrap; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hm-cta2.is-armed .hm-float2 { opacity: 0; transform: translateY(12px) scale(.96); }
.hm-float2 i { color: var(--brand-600); }
.hm-float2--1 { top: 6%; inset-inline-start: 2%; }
.hm-float2--1 i { color: #F36829; }
.hm-float2--2 { top: 44%; inset-inline-end: -2%; }
.hm-float2--3 { bottom: 4%; inset-inline-start: 10%; }
.hm-float2--3 i { color: #1F9D5B; }
.hm-cta2.is-in .hm-float2 { opacity: 1; transform: none; animation: ctaFloat 5s ease-in-out infinite; }
.hm-cta2.is-in .hm-float2--1 { transition-delay: .9s; animation-delay: 1.5s; }
.hm-cta2.is-in .hm-float2--2 { transition-delay: 1.2s; animation-delay: 2.1s; }
.hm-cta2.is-in .hm-float2--3 { transition-delay: 1.5s; animation-delay: 2.7s; }
@keyframes ctaFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 899px) { .hm-cta2__visual { min-height: 250px; } .hm-float2--2 { inset-inline-end: 0; } }
@media (max-width: 420px) { .hm-float2 { font-size: 12px; padding: 7px 10px; } }
@media (prefers-reduced-motion: reduce) {
  .hm-cta2__blob, .hm-cta2 h2 em, .hm-cta2__go::after, .hm-cta2.is-in .hm-float2, .hm-cta2.is-in .hm-cta2__go { animation: none !important; }
  .hm-cta2__text > *, .hm-float2 { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hm-cprog__bar { stroke-dashoffset: 0 !important; transition: none !important; }
}

/* =====================================================================
   الهاتف: عرض احترافي بلا تجاوز عرض الشاشة
   ===================================================================== */
/* شبكة الواجهة بعمود واحد كانت تتسع لأدنى عرض محتواها (صف الثقة 3×150 = 478px) فتتجاوز
   شاشة 390px ويُقصّ النص والبحث من الجانبين. العمود محدود بعرض الشاشة وعناصره تنكمش. */
.hm-hero__grid { grid-template-columns: minmax(0, 1fr); }
.hm-hero__grid > * { min-width: 0; }
@media (min-width: 1024px) { .hm-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
@media (max-width: 639px) {
  .hm-hero__grid { gap: 8px; padding-block: 24px 28px; }
  .hm-title { font-size: clamp(34px, 10.5vw, 44px); line-height: 1.25; }
  .hm-lead { font-size: 15.5px; line-height: 1.85; }
  .hm-search { max-width: none; }
  .hm-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-inline: -16px; padding-inline: 16px; padding-bottom: 2px; }
  .hm-chips::-webkit-scrollbar { display: none; }
  .hm-chips a { flex: 0 0 auto; }
  .hm-trust { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; max-width: none !important; margin-top: 18px; }
  .hm-trust > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .85); }
  .hm-trust > div > i { width: 34px; height: 34px; }
  .hm-trust > div > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
  .hm-stage { max-width: 280px; margin-top: 4px; }
}
/* صفحة الدورة: إطار الفيديو ضمن البطاقة على الهاتف (نمط قديم كان يمدّه 4rem خارجها فيتجاوز الشاشة) */
@media (max-width: 768px) { .cp .video-container-wrapper { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; padding-bottom: 56.25% !important; border-radius: 16px !important; } }
/* زر واتساب على الهاتف: أصغر، ويختفي أثناء النزول */
.ic-whatsapp { transition: transform .28s var(--ease), opacity .28s var(--ease), box-shadow .2s var(--ease); }
@media (max-width: 1023px) {
  .ic-whatsapp { width: 48px; height: 48px; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline-end: 14px; font-size: 24px; }
  .ic-whatsapp.is-tucked { transform: translateY(calc(100% + 28px)); opacity: 0; pointer-events: none; }
}
/* حقل الصورة الشخصية بالعربية */
.pf-file { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 6px 6px 14px; padding-inline-start: 6px; border: 1.5px dashed #CFE0E0; border-radius: 14px; background: #FBFDFD; }
.pf-file__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.pf-file__btn { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; margin: 0; padding: 9px 14px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); font-size: 14px; font-weight: 800; cursor: pointer; transition: background-color .2s var(--ease); }
.pf-file__btn:hover { background: #D8F0F0; }
.pf-file:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(61, 167, 169, .14); }
.pf-file__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13.5px; }
.pf-file__name.is-set { color: var(--ink); font-weight: 700; direction: ltr; }

/* البحث الديناميكي */
form.has-suggest { position: relative; }
.ic-suggest { position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 40; display: grid; max-height: 420px; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 22px 50px rgba(15, 27, 28, .14); text-align: start; }
/* display: grid أعلاه يتغلب على [hidden] في tailwind (الخصوصية نفسها وstudent.css بعده)، فكان الصندوق المخفي يظهر مربعًا أبيض فارغًا ويبقى عالقًا بعد الإغلاق. */
.ic-suggest[hidden] { display: none; }
.ic-suggest__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.ic-suggest__item:hover, .ic-suggest__item.is-active { background: var(--brand-50); }
.ic-suggest__text { display: grid; gap: 2px; min-width: 0; }
.ic-suggest__text b { font-size: 14.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-suggest__text small { color: var(--muted); font-size: 12.5px; }
/* شارة نوع الدورة في الاقتراحات: ألوان بطاقات الدورات نفسها. */
.ic-suggest__text b { display: flex; align-items: center; gap: 8px; }
.ic-suggest__type { flex-shrink: 0; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; line-height: 1.7; background: var(--brand-50); color: var(--brand-700); }
.ic-suggest__type--university_project { background: #FDEBE1; color: #C24A12; }
.ic-suggest__type--soft_skills { background: #EEF0F6; color: #3F4A6B; }
.ic-suggest__price { flex-shrink: 0; color: #E15A1C; font: 800 13.5px "Inter", "Cairo", sans-serif; }
.ic-suggest__empty { padding: 12px; color: var(--muted); font-size: 14px; }
.ic-suggest__all { display: block; margin-top: 4px; padding: 10px 12px; border-top: 1px solid var(--line-2); color: var(--brand-700); font-size: 13.5px; font-weight: 800; text-decoration: none; }

/* كرت الدورة: السعر المميز وزر التفاصيل */
.ui-ccard { border-radius: 20px; }
.ui-ccard__foot { padding: 14px 16px; background: linear-gradient(180deg, #FFFFFF, #FBFDFD); }
.ui-price2 { display: grid; gap: 2px; }
.ui-price2__now { display: inline-flex; align-items: baseline; gap: 4px; font: 800 24px/1 "Inter", "Cairo", sans-serif; color: #E15A1C; letter-spacing: -.3px; }
.ui-price2__now small { font: 800 13px "Cairo", sans-serif; color: #E15A1C; }
.ui-price2.is-free .ui-price2__now { color: #1F9D5B; font-family: "Cairo", sans-serif; font-size: 19px; }
.ui-price2__was { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; }
.ui-price2__was s { color: var(--muted); }
.ui-price2__was em { font-style: normal; padding: 2px 8px; border-radius: 99px; background: #E9F7EF; color: #15803D; font-weight: 800; font-size: 11.5px; }
.ui-ccard__go { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); font-size: 14px; font-weight: 800; text-decoration: none; transition: background-color .2s var(--ease), gap .2s var(--ease); }
.ui-ccard__go:hover { background: #D8F0F0; gap: 12px; }

/* تفاصيل الدورة وسياسة الوصول والإلغاء */
.cd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 640px) { .cd-list { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.cd-list li { display: grid; grid-template-columns: 36px auto 1fr; align-items: center; gap: 10px; padding: 12px 2px; border-bottom: 1px dashed #E2EDED; }
.cd-list li i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); font-size: 14px; }
.cd-list li span { color: var(--muted); font-size: 14px; }
.cd-list li b { text-align: end; font-size: 14.5px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.cd-policy__grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .cd-policy__grid { grid-template-columns: 1fr 1fr; } }
.cd-policy__item { display: flex; gap: 12px; padding: 16px; border: 1px solid #DDEDED; border-radius: 16px; background: linear-gradient(160deg, #F3FBFB, #FFFFFF); }
.cd-policy__item.is-off { border-color: #F3DCD2; background: linear-gradient(160deg, #FFF6F1, #FFFFFF); }
.cd-policy__icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: #fff; border: 1px solid #DDEDED; color: var(--brand-700); }
.cd-policy__item.is-off .cd-policy__icon { color: #C2410C; border-color: #F3DCD2; }
.cd-policy__item small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.cd-policy__item b { display: block; margin: 2px 0 4px; font-size: 16px; font-weight: 800; color: var(--ink); }
.cd-policy__item p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.8; }
.cd-policy__mine { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 14px; }
.cd-policy__link { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cd-policy__link:hover { color: #C2410C; }
/* ملاحظة سياسة بدل رابط الإلغاء لمشترك فصل: نص لا زر، بلا إيحاء بإمكان الإلغاء. */
.cd-policy__note { color: var(--muted); font-size: 12.5px; line-height: 1.8; }
/*
 * سياسة الفصل: سطر واحد أسفل البطاقة لا تحت كل فصل.
 *
 * **لا flex هنا**: مع display:flex يصير كل <strong> عنصرًا مستقلًا في الصف
 * وتتناثر الجملة في صناديق متجاورة (كسر ظهر في صورة المالكة). النص فقرة عادية،
 * والأيقونة inline داخلها.
 */
.cd-policy__note--term { display: block; margin: 12px 0 0; padding: 11px 13px;
  border: 1px solid #fed7aa; border-radius: 12px; background: #fff7ed;
  color: var(--ink); font-size: 13px; line-height: 1.9; text-align: start; }
.cd-policy__note--term i { display: inline; margin-inline-end: 7px; color: var(--flame-500); }
.cd-policy__note--term strong { color: var(--flame-600); font-weight: 700; white-space: nowrap; }

/* «دوراتي»: دورات انتهى الوصول إليها */
.mc-ended { margin-top: 36px; }
.mc-ended__head { margin-bottom: 14px; }
.mc-ended__head h2 { display: flex; align-items: center; gap: 10px; }
.mc-ended__head h2 i { color: var(--muted); }
.mc-ended__head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.mc-ended__list { display: grid; gap: 12px; }
.mc-ended__item { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.mc-ended__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; filter: grayscale(.92); opacity: .78; }   /* رمادي واضح: النصف كان يحوّل لون الهوية إلى بنّي كامد */
.mc-ended__media img { width: 100%; height: 100%; object-fit: cover; }
.mc-ended__body h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 800; }
.mc-ended__body h3 a { color: var(--ink); text-decoration: none; }
.mc-ended__body p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; }
.mc-ended__body small { color: var(--muted); font-size: 13px; }
@media (max-width: 639px) { .mc-ended__item { grid-template-columns: 88px minmax(0, 1fr); } .mc-ended__renew { grid-column: 1 / -1; justify-content: center; } }
/* صفحة الدورة: تنبيها انتهاء الوصول والإلغاء مرة واحدة */
.cp-notice { display: flex; gap: 10px; margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.8; }
.cp-notice i { margin-top: 4px; }
.cp-notice b { display: block; font-size: 14px; }
.cp-notice--ended { background: #F3F6F7; border: 1px solid #E1E8EA; color: var(--ink-2); }
.cp-notice--warn { background: #FFF7ED; border: 1px solid #FED7AA; color: #9A3412; }

/* =====================================================================
   صفحة الدورة: الشراء (قرار المالكة 51) — «تطبيق» الكود، وجدول الدفعات،
   والدفع من المحفظة، والدورة المجانية، والاشتراك المغلق لانتهاء الفترة.
   ===================================================================== */
.cp-coderow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.cp-coderow .ui-btn { min-height: 44px; padding-inline: 16px; white-space: nowrap; }
.cp-coderow .ui-input[readonly] { background: var(--brand-50); }
.cp-codemsg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.7; }
.cp-codemsg[hidden] { display: none; }
.cp-codemsg.is-success { background: var(--success-bg); color: var(--success); border: 1px solid #CDEFD9; }
.cp-codemsg.is-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #F6D5C8; }
.cp-codemsg.is-warn { background: #FFF7ED; color: #9A3412; border: 1px solid #FED7AA; }
.cp-codemsg__rm { margin-inline-start: auto; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.cp-price s[hidden] { display: none; }

.cp-sched { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.cp-sched > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 11px 12px; color: var(--brand-700); font-weight: 700; font-size: 14px; }
.cp-sched > summary::-webkit-details-marker { display: none; }
.cp-sched > summary::after { content: ""; width: 8px; height: 8px; margin-inline-start: 4px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.cp-sched[open] > summary::after { transform: rotate(-135deg); }
.cp-sched__count { margin-inline-start: auto; padding: 2px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-800); font-size: 12px; font-weight: 700; }
.cp-sched__list { list-style: none; margin: 0; padding: 0 12px; display: grid; }
.cp-sched__list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.cp-sched__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--line-2); color: var(--ink-2); font: 800 13px "Inter", "Cairo", sans-serif; }
.cp-sched__list li.is-now .cp-sched__n { background: var(--brand-500); color: #fff; }
.cp-sched__d { display: grid; min-width: 0; }
.cp-sched__d b { font-size: 14px; }
.cp-sched__d small { color: var(--muted); font-size: 12.5px; }
.cp-sched__list li.is-now .cp-sched__d small { color: var(--brand-700); font-weight: 700; }
.cp-sched__a { font: 800 14.5px "Inter", "Cairo", sans-serif; white-space: nowrap; }
.cp-sched__a small { color: var(--muted); font-size: 12px; font-weight: 600; }
.cp-sched__total { display: flex; justify-content: space-between; margin: 0; padding: 10px 12px; border-top: 1px dashed var(--line); font-size: 14px; }
.cp-sched__total b { font: 800 15px "Inter", "Cairo", sans-serif; }
.cp-sched__hint { margin: 0; padding: 0 12px 12px; color: var(--muted); font-size: 12.5px; }

.cp-src .ui-payopt.is-short { opacity: .62; cursor: not-allowed; }
.cp-due { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2, #F6FAFA); border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.cp-due b { font: 800 18px "Inter", "Cairo", sans-serif; color: var(--ink); }
.ic-student .ui-btn.is-busy { opacity: .7; pointer-events: none; }
.cp-split { margin: -4px 0 0; padding: 0 12px; color: var(--brand-800); font: 700 13px "Inter", "Cairo", sans-serif; text-align: start; }
.cp-split[hidden] { display: none; }

.cp-free { display: grid; gap: 6px; }
.cp-free .cp-price { align-items: center; }
.cp-free__lead { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.8; }

.cp-closed { display: grid; justify-items: center; gap: 10px; padding: 8px 4px 4px; text-align: center; }
.cp-closed__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #F3F6F7; border: 1px solid #E1E8EA; color: var(--ink-2); font-size: 24px; }
.cp-closed h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink); }
.cp-closed p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.9; }
.cp-closed small { color: var(--muted); font-size: 12.5px; }

/* =====================================================================
   الصورة الشخصية (ic-avatar بصورة)، والملف الشخصي، والترحيب بعد الدخول
   ===================================================================== */
.ic-avatar.has-img { background: #fff; overflow: hidden; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--brand-100); }
.ic-avatar.has-img img, .pf-photo.has-img img, .ic-welcome__avatar.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

.pf-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin-bottom: 18px; padding: 20px; border-radius: var(--r-xl); background: radial-gradient(70% 90% at 100% 0%, #E3F4F4 0%, transparent 60%), radial-gradient(60% 80% at 0% 100%, #FFF1EA 0%, transparent 60%), #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pf-hero__avatar { position: relative; flex-shrink: 0; }
.pf-photo { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--flame-400), var(--flame-500)); color: #fff; font-size: 38px; font-weight: 800; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(15, 27, 28, .12); }
.pf-photo.has-img { background: #fff; }
.pf-hero__cam { position: absolute; bottom: 0; inset-inline-start: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-500); color: #fff; border: 3px solid #fff; cursor: pointer; font-size: 13px; box-shadow: var(--shadow-sm); }
.pf-hero__cam:hover { background: var(--brand-600); }
.pf-hero__info { display: grid; gap: 6px; min-width: 0; flex: 1 1 260px; }
.pf-hero__info .ac-sub { margin: 0; overflow-wrap: anywhere; }
.pf-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pf-hero__actions form { position: relative; margin: 0; }
.pf-hero__actions label.ui-btn { cursor: pointer; margin: 0; }
.pf-hero__actions input[type="file"]:focus-visible + label { box-shadow: 0 0 0 4px rgba(61, 167, 169, .25); }
.pf-hero__hint { color: var(--muted); font-size: 12.5px; }
.ic-student .pf-del { color: var(--danger); }
.ic-student .pf-del:hover { border-color: #F6D5C8; color: var(--danger); }
@media (max-width: 639px) { .pf-hero { justify-content: center; text-align: center; } .pf-hero__info .ac-sub { text-align: center !important; } .pf-hero__actions { justify-content: center; } }

.ic-welcome { width: min(440px, calc(100vw - 28px)); max-width: none; padding: 0; border: 0; border-radius: 26px; background: transparent; overflow: visible; }
.ic-welcome::backdrop { background: rgba(15, 27, 28, .45); -webkit-backdrop-filter:blur(3px);backdrop-filter: blur(3px); }
.ic-welcome[open] { animation: ic-welcome-in .32s var(--ease); }
.ic-welcome.is-closing { opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .18s ease, transform .18s ease; }
@keyframes ic-welcome-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ic-welcome[open] { animation: none; } .ic-welcome.is-closing { transition: none; } }
.ic-welcome__card { position: relative; display: grid; gap: 16px; padding: 26px 22px 20px; border-radius: 26px; background: radial-gradient(90% 60% at 100% 0%, #E3F4F4 0%, transparent 60%), radial-gradient(80% 50% at 0% 0%, #FFF1EA 0%, transparent 55%), #fff; box-shadow: var(--shadow-lg); text-align: center; }
.ic-welcome__x { position: absolute; top: 12px; inset-inline-end: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .8); color: var(--ink-2); cursor: pointer; font-size: 15px; }
.ic-welcome__x:hover { background: var(--line-2); }
.ic-welcome__top { display: grid; justify-items: center; gap: 4px; }
.ic-welcome__ring { padding: 4px; border-radius: 50%; background: conic-gradient(var(--flame-500), var(--brand-500), var(--flame-500)); margin-bottom: 8px; }
.ic-welcome__avatar { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; background: linear-gradient(135deg, var(--flame-400), var(--flame-500)); color: #fff; font-size: 34px; font-weight: 800; }
.ic-welcome__avatar.has-img { background: #fff; }
.ic-welcome__hi { margin: 0; color: var(--brand-700); font-size: 14.5px; font-weight: 800; }
.ic-welcome h2 { margin: 0; font-size: clamp(24px, 6vw, 30px); font-weight: 800; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.ic-welcome__line { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.9; }
.ic-welcome__course { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-align: start; text-decoration: none; color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.ic-welcome__course:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.ic-welcome__course-icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); }
.ic-welcome__course-body { display: grid; gap: 4px; min-width: 0; flex: 1; }
.ic-welcome__course-body small { color: var(--muted); font-size: 12px; }
.ic-welcome__course-body b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-welcome__course-body em { font-style: normal; color: var(--brand-700); font-size: 12px; font-weight: 700; }
.ic-welcome__bar { display: block; height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.ic-welcome__bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-400), var(--brand-600)); }
.ic-welcome__actions { display: grid; gap: 8px; }


/* =====================================================================
   محفظتي (wl-)
   ===================================================================== */
.wl-page { max-width: 980px; }
.wl-alert { margin-bottom: 14px; }
.wl-muted { margin: 0; color: var(--muted); font-size: 13.5px; }
.wl-hero { display: grid; gap: 16px; padding: 22px; margin-bottom: 14px; border-radius: var(--r-xl); color: var(--ink); background: radial-gradient(80% 120% at 100% 0%, #D8F0F0 0%, transparent 55%), radial-gradient(60% 90% at 0% 100%, #FFE8DD 0%, transparent 60%), #fff; border: 1px solid var(--brand-100); box-shadow: var(--shadow-md); }
@media (min-width: 768px) { .wl-hero { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 26px 28px; } }
.wl-hero__main { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.wl-hero__icon { display: grid; place-items: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-500); color: #fff; font-size: 22px; box-shadow: 0 8px 20px rgba(61, 167, 169, .3); }
.wl-hero__label { margin: 0; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.wl-hero__amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: nowrap; white-space: nowrap; margin: 2px 0 6px; font: 800 clamp(34px, 7vw, 46px)/1.1 "Inter", "Cairo", sans-serif; color: var(--brand-800); }
.wl-hero__amount small { font: 700 17px "Cairo", sans-serif; color: var(--muted); white-space: nowrap; }
.wl-hero__amount.is-neg { color: var(--danger); }
.wl-hero__hint { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.8; max-width: 520px; }
.wl-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-hero__held { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--warning-bg); color: var(--warning); font-size: 13.5px; border: 1px solid #F8E2B8; }
.wl-hero__held i { margin-top: 5px; }
.wl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 639px) { .wl-stats { gap: 8px; } .wl-stat { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; } .wl-stat__icon { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; } .wl-stat small { font-size: 11.5px; } .wl-stat b { font-size: 14.5px; } }
.wl-stat { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); min-width: 0; }
.wl-stat div { display: grid; min-width: 0; }
.wl-stat small { color: var(--muted); font-size: 12.5px; }
.wl-stat b { font: 800 18px "Inter", "Cairo", sans-serif; color: var(--ink); text-align: start; }
.wl-stat b span { font: 600 12px "Cairo", sans-serif; color: var(--muted); }
.wl-stat__icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--line-2); color: var(--ink-2); }
.wl-stat__icon.is-in { background: var(--success-bg); color: var(--success); }
.wl-stat__icon.is-out { background: var(--flame-50); color: var(--flame-700); }
.wl-debts { margin-bottom: 14px; border-color: #F8E2B8; }
.wl-debts .ui-section-title i { color: var(--warning); margin-inline-end: 6px; }
.wl-debts__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.wl-debts__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 14px; background: var(--warning-bg); }
.wl-debts__list li > div { display: grid; flex: 1 1 200px; min-width: 0; }
.wl-debts__list small { color: var(--muted); font-size: 12px; text-align: start; }
.wl-debts__list strong { font: 800 16px "Inter", "Cairo", sans-serif; }
.wl-debts__list form { margin: 0; }
.wl-history__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.wl-history__head .ui-section-title { margin-bottom: 2px; }
.wl-tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--line-2); }
.wl-tabs a { padding: 7px 14px; border-radius: 9px; color: var(--ink-2); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.wl-tabs a[aria-current="true"] { background: #fff; color: var(--brand-800); box-shadow: var(--shadow-xs); }
.wl-list { list-style: none; margin: 0; padding: 0; display: grid; }
.wl-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line-2); }
.wl-item:first-child { border-top: 0; }
.wl-item__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-size: 16px; }
.wl-item__icon.is-in { background: var(--success-bg); color: var(--success); }
.wl-item__icon.is-out { background: var(--flame-50); color: var(--flame-700); }
.wl-item__icon.is-back { background: var(--brand-50); color: var(--brand-700); }
.wl-item__body { display: grid; gap: 3px; min-width: 0; justify-items: start; }
.wl-item__body b { font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.wl-item__body small { color: var(--muted); font-size: 12px; }
.wl-item__body .ui-badge { margin-top: 2px; }
.wl-item__amt { display: grid; justify-items: end; gap: 2px; text-align: end; }
.wl-item__amt b { font: 800 16px "Inter", "Cairo", sans-serif; white-space: nowrap; }
.wl-item__amt b.is-in { color: var(--success); }
.wl-item__amt b.is-out { color: var(--ink); }
.wl-item__amt small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.wl-item.is-reversed .wl-item__amt b { color: var(--muted); text-decoration: line-through; }
@media (max-width: 639px) { .wl-item { grid-template-columns: 40px minmax(0, 1fr); } .wl-item__icon { width: 40px; height: 40px; } .wl-item__amt { grid-column: 2; justify-items: start; text-align: start; } }
.wl-empty, .ip-empty { display: grid; justify-items: center; gap: 6px; padding: 30px 12px; text-align: center; }
.wl-empty > span, .ip-empty > span { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); font-size: 24px; margin-bottom: 6px; }
.wl-empty b, .ip-empty b { font-size: 16px; }
.wl-empty p, .ip-empty p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }

/* =====================================================================
   أقساطي (ip-)
   ===================================================================== */
.ip-page { max-width: 980px; }
.ip-alert { margin-bottom: 14px; }
.ip-wallet { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; text-decoration: none; box-shadow: var(--shadow-xs); }
.ip-wallet i { color: var(--brand-600); }
.ip-wallet b { font: 800 14px "Inter", "Cairo", sans-serif; color: var(--brand-800); }
.ip-wallet:hover { border-color: var(--brand-200); }
.ip-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (max-width: 767px) { .ip-summary { grid-template-columns: minmax(0, 1fr); } }
.ip-sum { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); border-inline-start: 4px solid var(--brand-400); min-width: 0; }
.ip-sum small { color: var(--muted); font-size: 12.5px; }
.ip-sum b { font: 800 20px "Inter", "Cairo", sans-serif; color: var(--ink); text-align: start; }
.ip-sum b span { font: 600 12px "Cairo", sans-serif; color: var(--muted); }
.ip-sum em { font-style: normal; color: var(--ink-2); font-size: 12.5px; }
.ip-sum.is-late { border-inline-start-color: var(--danger); }
.ip-sum.is-late em { color: var(--danger); font-weight: 700; }
.ip-sum.is-ok { border-inline-start-color: #7CCB9B; }
.ip-group { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; color: var(--muted); font-size: 15px; font-weight: 800; }
.ip-plan { display: grid; gap: 14px; padding: 18px; margin-bottom: 14px; }
@media (min-width: 768px) { .ip-plan { padding: 22px; } }
.ip-plan.is-ended { opacity: .85; background: #FBFCFC; }
.ip-plan__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ip-plan__title { min-width: 0; }
.ip-plan__title h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.ip-plan__title p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.ip-plan__title small { color: var(--muted); font: 600 12px "Inter", sans-serif; }
.ip-progress { display: grid; gap: 8px; }
.ip-progress__nums { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; color: var(--ink-2); font-size: 13.5px; }
.ip-progress__nums b { font-family: "Inter", "Cairo", sans-serif; }
.ip-progress__bar { height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.ip-progress__bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-400), var(--brand-600)); }
.ip-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ip-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; }
.ip-row__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--line-2); color: var(--ink-2); font: 800 14px "Inter", "Cairo", sans-serif; }
.ip-row__body { display: grid; gap: 2px; min-width: 0; }
.ip-row__body b { font-size: 14.5px; }
.ip-row__body small { color: var(--muted); font-size: 12.5px; }
.ip-row__side { display: grid; justify-items: end; gap: 4px; }
.ip-row__side > b { font: 800 15.5px "Inter", "Cairo", sans-serif; white-space: nowrap; }
.ip-row__side > b span { font: 600 12px "Cairo", sans-serif; color: var(--muted); }
.ip-row__pay, .ip-row__early { grid-column: 1 / -1; }
.ip-row.is-paid { background: #FAFDFB; }
.ip-row.is-paid .ip-row__n { background: var(--success-bg); color: var(--success); font-size: 13px; }
.ip-row.is-next { border-color: var(--brand-200); background: linear-gradient(0deg, #fff, #F5FBFB); box-shadow: var(--shadow-xs); }
.ip-row.is-next .ip-row__n { background: var(--brand-500); color: #fff; }
.ip-row.is-late { border-color: #F6D5C8; background: #FFF9F6; }
.ip-row.is-late .ip-row__n { background: var(--danger); color: #fff; }
.ip-row.is-late .ip-row__body small { color: var(--danger); font-weight: 700; }
.ip-row.is-off .ip-row__body b, .ip-row.is-off .ip-row__side > b { color: var(--muted); }
.ip-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ip-actions form { margin: 0; }
.ip-note { color: var(--muted); font-size: 12.5px; align-self: center; }
.ip-row__early summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--brand-700); font-size: 13px; font-weight: 700; list-style: none; }
.ip-row__early summary::-webkit-details-marker { display: none; }
.ip-row__early summary::after { content: ""; width: 7px; height: 7px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform .2s var(--ease); }
.ip-row__early[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.ip-row__early[open] .ip-actions { margin-top: 10px; }
.ip-foot { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.ip-foot i { margin-top: 5px; color: var(--brand-500); }
@media (max-width: 639px) { .ip-row { grid-template-columns: 32px minmax(0, 1fr); } .ip-row__n { width: 32px; height: 32px; } .ip-row__side { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; } .ip-actions .ui-btn { flex: 1 1 auto; } }
/* المبلغ بإشارته (+/−) يُعرض من اليسار لليمين معزولًا عن اتجاه الصفحة. */
.wl-item__amt b, .wl-stat b, .wl-hero__amount span, .ip-sum b, .ip-row__side > b, .ip-wallet b { direction: ltr; unicode-bidi: isolate; }
/* رسالة نتيجة الاشتراك في الفصل المجاني أو إلغائه داخل «محتوى الدورة» */
.cp-term-msg { margin: 0 0 12px; }
/* الهاتف: اسم الفصل بسطر كامل، والشارات تحته (كان الاسم يلتف كلمة كلمة بجانب الشارات). */
@media (max-width: 639px) {
  .cp-term summary { flex-wrap: wrap; row-gap: 6px; }
  .cp-term__name { flex: 1 1 calc(100% - 30px); }
  .cp-term summary::after { order: 2; }
  .cp-term__meta { order: 3; flex: 1 1 100%; flex-wrap: wrap; white-space: normal; }
}

/* =====================================================================
   تثبيت التطبيق (PWA): بطاقة التثبيت، وتعليمات iPhone، ودخول القائمة والدرج
   ===================================================================== */
/* display في هذه الأصناف يتغلب على [hidden] (الدرس نفسه في .ic-suggest). */
.ic-menu button[hidden], .ic-drawer__install[hidden], .ic-install[hidden], .ic-install-toast[hidden] { display: none !important; }
.ic-menu__install i { color: var(--flame-500) !important; }

.ic-install { position: fixed; z-index: 940;   /* فوق زر المساعد (900) ودعوة المجتمع (880) */ inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px 12px; align-items: center; max-width: 560px; margin-inline: auto; padding: 14px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(15, 27, 28, .16); opacity: 0; transform: translateY(18px); transition: opacity .22s var(--ease), transform .22s var(--ease); }
.ic-install.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ic-install { transition: none; } }
.ic-install__icon { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: var(--shadow-xs); }
.ic-install__text { display: grid; gap: 2px; min-width: 0; padding-inline-end: 22px; }
.ic-install__text b { font-size: 15px; font-weight: 800; color: var(--ink); }
.ic-install__text span { color: var(--muted); font-size: 13px; line-height: 1.7; }
.ic-install__actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.ic-install__actions .ui-btn { flex: 1 1 0; }
.ic-install__x { position: absolute; top: 8px; inset-inline-end: 8px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.ic-install__x:hover { background: var(--line-2); }
@media (min-width: 768px) { .ic-install { grid-template-columns: 52px minmax(0, 1fr) auto; inset-inline: auto 24px; bottom: 24px; margin: 0; width: 520px; } .ic-install__actions { grid-column: auto; } .ic-install__actions .ui-btn { flex: 0 0 auto; } .ic-install__text { padding-inline-end: 8px; } .ic-install__x { display: none; } }
@media (max-width: 1023px) { body:has(.cp-mbar) .ic-install { bottom: calc(78px + env(safe-area-inset-bottom)); } }
body:has(.ic-install.is-in) .ic-whatsapp { opacity: 0; pointer-events: none; }

.ic-drawer__install { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--brand-100); border-radius: 16px; background: linear-gradient(0deg, #fff, var(--brand-50)); color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.ic-drawer__install > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.ic-drawer__install b { font-size: 14.5px; font-weight: 800; }
.ic-drawer__install small { color: var(--muted); font-size: 12px; }
.ic-drawer__install > i { color: var(--flame-500); }
.ic-drawer__install-icon img { display: block; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); }

.ic-ios-install { width: min(420px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 24px; background: transparent; }
.ic-ios-install::backdrop { background: rgba(15, 27, 28, .45); }
.ic-ios-install__card { display: grid; justify-items: center; gap: 12px; padding: 24px 20px 18px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg); text-align: center; }
.ic-ios-install__card img { border-radius: 16px; border: 1px solid var(--line-2); }
.ic-ios-install h2 { margin: 0; font-size: 19px; font-weight: 800; }
.ic-ios-install ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; text-align: start; }
.ic-ios-install li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--brand-50); color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.ic-ios-install li i { color: var(--brand-700); margin-inline: 2px; }
.ic-ios-install__n { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: var(--brand-500); color: #fff; font: 800 13px "Inter", "Cairo", sans-serif; }

.ic-install-toast { position: fixed; z-index: 95; inset-inline: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 420px; margin-inline: auto; display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--success-bg); color: var(--success); border: 1px solid #CDEFD9; box-shadow: var(--shadow-md); font-size: 14px; font-weight: 700; }

/* «دفعة قيد التحقق»: دفعة Tap لم يصل تأكيدها بعد (partials/tap_pending.php). */
.ic-pay-pending { margin-bottom: 14px; line-height: 1.9; }
.ic-pay-pending b { display: block; }
.ic-pay-pending i.fa-hourglass-half { margin-top: 5px; }
.ic-pay-pending__refresh { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 4px; color: inherit; font-weight: 800; text-decoration: underline; white-space: nowrap; }

/* BR-INS-014: سداد عدة أقساط بدفعة واحدة (my_installments). */
.ip-many { margin: 4px 0 10px; border: 1px solid var(--brand-100); border-radius: 18px; background: var(--brand-50); }
.ip-many > summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; font-weight: 800; color: var(--brand-800); list-style: none; }
.ip-many > summary::-webkit-details-marker { display: none; }
.ip-many__form { display: grid; gap: 10px; padding: 0 16px 14px; }
.ip-many__opts { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.ip-many__opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.ip-many__opt:has(input:checked) { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
.ip-many__opt span { flex: 1; min-width: 0; font-weight: 700; color: var(--ink); }
.ip-many__opt b { white-space: nowrap; color: var(--ink); }
.ip-many__actions [hidden] { display: none !important; }
.ip-many__note { margin: 0; color: var(--muted); font-size: 12.5px; }

/* إلغاء الاشتراك في دورة مجانية كاملة، داخل «سياسة الوصول والإلغاء» (نُقل من «دوراتي»). */
.cd-policy__cancel { margin: 0 0 12px; }

/* BR-SUP-001: بيان دعم الأسئلة في صفحة الدورة. */
.cd-policy__support { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--brand-50); color: var(--ink-2); font-size: 13px; }

/* صفحات الجامعة والتخصص (تجميع الدورات للبحث). */
.dir-page { display: grid; gap: 18px; padding-block: 18px; }
.dir-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.dir-crumbs a { color: var(--brand-700); text-decoration: none; }
.dir-crumbs a:hover { text-decoration: underline; }
.dir-hero { display: grid; gap: 10px; }
.dir-hero__sub { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.dir-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dir-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dir-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; text-decoration: none; }
.dir-chips a:hover { border-color: var(--brand-500); background: var(--brand-50); }
.dir-chips span { color: var(--muted); font-size: 12px; }
.dir-section { display: grid; gap: 12px; }
.dir-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.dir-more { color: var(--brand-700); font-size: 13px; text-decoration: none; }
.dir-more:hover { text-decoration: underline; }
.dir-empty { text-align: center; display: grid; gap: 10px; justify-items: center; }
.dir-empty p { margin: 0; color: var(--muted); }

/* روابط الجامعة والتخصص في صفحة الدورة. */
.cd-policy__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #F7FAFA; font-size: 13px; }
.cd-policy__links a { color: var(--brand-700); text-decoration: none; }
.cd-policy__links a:hover { text-decoration: underline; }

/* رسالة الدورات المجانية في اللوحة: قابلة للإخفاء (بلاغ المالكة). */
.db-freebanner { position: relative; padding-inline-end: 44px; }
/* سبب بلاغ المالكة: .ui-alert تفرض display:flex فتتغلب على سمة hidden، فلم تختفِ بالضغط. */
.db-freebanner[hidden] { display: none !important; }
.db-freebanner__close { position: absolute; inset-inline-end: 10px; inset-block-start: 10px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(21, 128, 61, .08); color: var(--success); cursor: pointer; }
.db-freebanner__close:hover { background: rgba(21, 128, 61, .16); }

/* زر «اسأل معلمك»: شكل احترافي بثلاث حالات ومؤشر واضح (بلاغ المالكة). */
.qa-launch { gap: 12px; padding: 10px 16px 10px 12px; border-color: var(--line); box-shadow: 0 14px 34px rgba(15, 27, 28, .14); }
.qa-launch__avatar { position: relative; }
.qa-launch__badge { position: absolute; inset-block-start: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--flame-500); color: #fff; font: 700 11px/1 "Cairo", sans-serif; border: 2px solid #fff; }
.qa-launch__icon { color: var(--brand-500); font-size: 15px; }
.qa-launch.is-reply { border-color: var(--flame-400); box-shadow: 0 14px 34px rgba(242, 85, 36, .22); }
.qa-launch.is-reply .qa-launch__text small { color: var(--flame-600); font-weight: 700; }
.qa-launch.is-reply .qa-launch__icon { color: var(--flame-500); animation: qa-nudge 1.6s ease-in-out infinite; }
.qa-launch.is-waiting .qa-launch__text small { color: var(--warning); }
.qa-launch.is-waiting .qa-launch__icon { color: var(--warning); }
@keyframes qa-nudge { 50% { transform: translateY(-2px) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .qa-launch.is-reply .qa-launch__icon { animation: none; } }
.ic-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ─── «أجهزتي»: بنظام تصميم الطالب (بلاغ المالكة) ───────────────── */
.dv-page { display: grid; gap: 16px; padding-block: 18px; }
.dv-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.dv-hero__sub { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.8; max-width: 46ch; }
.dv-hero__meter { display: grid; gap: 4px; min-width: 160px; }
.dv-hero__meter b { font: 800 30px/1 "Inter", "Cairo", sans-serif; color: var(--brand-700); }
.dv-hero__meter b span { font-size: 17px; color: var(--muted); font-weight: 700; }
.dv-hero__meter small { color: var(--muted); font-size: 12px; }
.dv-hero__bar { display: block; height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.dv-hero__bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-500), var(--brand-700)); }
.dv-note__list { display: grid; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.dv-note__list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 13.5px; line-height: 1.8; }
.dv-note__list i { margin-top: 4px; color: var(--brand-500); }
.dv-head__sub { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.dv-list { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.dv-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.dv-item.is-current { border-color: var(--brand-400); background: var(--brand-50); }
.dv-item.is-revoked { opacity: .72; }
.dv-item__icon { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); }
.dv-item.is-current .dv-item__icon { background: #fff; }
.dv-item__body { flex: 1; min-width: 0; }
.dv-item__name { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
.dv-item__meta { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 12px; }
.dv-item__meta i { margin-inline-end: 5px; }
.dv-item__status { flex-shrink: 0; }
@media (max-width: 480px) {
  .dv-hero__meter { min-width: 100%; }
  .dv-item { flex-wrap: wrap; }
  .dv-item__status { margin-inline-start: 52px; }
}

/* ─── تصفح الدورات على الهاتف (بلاغ المالكة) ─────────────────────── */
@media (max-width: 639px) {
  /* شريط البحث يبقى في الأعلى عند التمرير، فلا يعود الطالب لأعلى الصفحة */
  .ls-bar { position: sticky; top: calc(var(--header-h) + 4px); z-index: 12; padding: 10px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .96); -webkit-backdrop-filter:blur(8px);backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); }
  .ls-bar form { gap: 8px; }
  .ls-bar .ui-input { font-size: 15px; }
  /* المرشحات شرائح تنزلق أفقيًا بدل أعمدة مكدّسة تدفع النتائج للأسفل */
  .ls-selects { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .ls-selects::-webkit-scrollbar { display: none; }
  .ls-selects .ui-select { flex: 0 0 auto; min-width: 46%; }
  /* بطاقات الدورات: عمود واحد بمساحات مريحة وصورة أقصر */
  .ui-grid-courses { grid-template-columns: 1fr; gap: 12px; }
  .ls-section { gap: 10px; }
  .ls-count { font-size: 12.5px; }
}

/* ─── لوحة الطالب على الهاتف: أرقام أوضح ومتابعة أبرز ──────────── */
@media (max-width: 639px) {
  .db-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .db-stat { padding: 12px; }
  .db-stat b { font-size: 20px; }
  .db-stat small { font-size: 11.5px; }
  .db-continue { grid-template-columns: 1fr; }
  .db-continue__media { max-height: 150px; }
  .db-continue h2 { font-size: 17px; }
  .db-hero__inner { gap: 12px; }
  .db-grid { gap: 14px; }
}
.db-stat__money { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.db-stat__money span { font-size: .55em; font-weight: 700; color: var(--muted); }


/* ─── نص بطاقات الدورات على الهاتف (بلاغ المالكة) ────────────────── */
@media (max-width: 639px) {
  .ui-course__title { font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ui-course__desc { font-size: 12.5px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ui-course__meta { gap: 6px 12px; font-size: 11.5px; }
  .ui-course__body { padding: 12px 14px 14px; gap: 8px; }
  .ui-course__foot { padding: 0 14px 14px; gap: 8px; }
  .ui-course__price { font-size: 17px; }
  .ui-course__price small { font-size: 11.5px; }
  .ui-course__cta { padding: 9px 16px; font-size: 13px; }
}

/* ─── وحدة العملة: دائمًا بجانب الرقم في كل الأقسام ──────────────── */
.ic-money { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.ic-money > span, .ic-money small { font-size: .62em; font-weight: 700; color: var(--muted); }
.ip-sum b, .ip-row__side > b, .ip-wallet b, .wl-item__amt b, .wl-stat b { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.ip-sum b span, .ip-row__side > b span, .ip-wallet b span, .wl-item__amt b span, .wl-stat b span { font-size: 12px; font-weight: 700; color: var(--muted); }
/* وحدة العملة الموحّدة: تبقى ملتصقة بالرقم في سطر واحد في كل الأقسام. */
/*
 * قرار المالكة: «10 د.ك» — الرقم أولًا ثم الوحدة بعده. الحاوية بالاتجاه العربي فيظهر الرقم
 * أولًا (يمينًا) والوحدة بعده، والرقم نفسه بـdir=ltr حتى لا تُقلب خاناته.
 */
.ic-money__unit { font-size: .62em; font-weight: 700; color: var(--muted); white-space: nowrap; margin-inline-start: 4px; }
.ip-sum b, .ip-row__side > b, .ip-wallet b, .wl-item__amt b, .wl-stat b, .db-stat__money, .wl-hero__amount { direction: rtl !important; }
.ip-sum b > span:not(.ic-money__unit), .ip-row__side > b > span:not(.ic-money__unit), .ip-wallet b > span:not(.ic-money__unit),
.wl-item__amt b > span:not(.ic-money__unit), .wl-stat b > span:not(.ic-money__unit), .wl-hero__amount > span:not(.ic-money__unit) { direction: ltr; unicode-bidi: isolate; }
.wl-hero__amount .ic-money__unit, .ip-sum .ic-money__unit { font-size: 15px; }

/* ─── بلاغات المالكة على الهاتف ──────────────────────────────────── */
/* صورة الدورة تملأ إطارها في بطاقة «تابع من حيث توقفت» */
.db-continue__media { overflow: hidden; }
/* بلاغ المالكة: الصورة تملأ إطارها كاملًا بلا حواف. */
.db-continue__media { min-height: 150px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-50); }
@media (max-width: 639px) {
  .db-continue { padding: 0 0 16px; gap: 10px; }
  .db-continue > :not(.db-continue__media) { padding-inline: 16px; }
  .db-continue__media { border-radius: var(--r-lg) var(--r-lg) 0 0; margin: 0; aspect-ratio: 16 / 8; }
}
.db-continue__media img, .db-continue__media .ui-cover { width: 100%; height: 100%; min-height: inherit; object-fit: cover; display: grid; place-items: center; border-radius: inherit; }
.db-continue__media .ui-cover { align-content: center; }

/* حقل البحث: النص كامل ومقروء بلا قصّ */
.ui-input { text-overflow: ellipsis; }
@media (max-width: 639px) {
  .hm-search .ui-input, .ls-bar .ui-input { font-size: 14px; padding-inline: 14px; }
  .hm-search .ui-input::placeholder, .ls-bar .ui-input::placeholder { font-size: 13px; }
}

/* رسالة إيقاف المشاهدة: مقاس مناسب للهاتف */
@media (max-width: 639px) {
  .pl-guard, .cp-guard, [class*="guard"] .ui-card { padding: 16px !important; border-radius: var(--r-lg) !important; }
  .pl-guard b, .cp-guard b { font-size: 16px; }
  .pl-guard p, .cp-guard p { font-size: 13px; line-height: 1.75; }
  .pl-guard .ui-btn, .cp-guard .ui-btn { width: 100%; justify-content: center; }
}

/* زر الدرس داخل «محتوى الدورة»: واضح وقابل للضغط بكامل عرضه. */
.cp-lesson__go { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-800); font-weight: 600; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.cp-lesson__go:hover { background: var(--brand-100); transform: translateX(-2px); }
/* بلاغ المالكة: حُذفت الدائرة بجانب اسم الدرس؛ سهم صغير هادئ بدلها. */
.cp-lesson__go i { flex-shrink: 0; color: var(--brand-600); font-size: 12px; opacity: .85; }
.cp-lesson.is-open > i { display: none; }

/* رسالة إيقاف المشاهدة: مقاس مناسب على الهاتف (بلاغ المالكة). */
@media (max-width: 639px) {
  .focus-cover > div { padding: 16px !important; max-width: 92% !important; border-radius: var(--r-lg); }
  .focus-cover b { font-size: 16px; display: block; margin-block: 6px 4px; }
  .focus-cover p { font-size: 12.5px; line-height: 1.7; margin: 0 0 10px; }
  .focus-cover i { font-size: 22px; }
  .focus-cover .ui-btn, .focus-cover button { width: 100%; justify-content: center; }
}

/* رصيد المحفظة في لوحة الطالب: رقم أوضح على الهاتف واللابتوب (بلاغ المالكة). */
.db-stat .db-stat__money { font-size: 21px; }
.db-stat__money span { font-size: 12.5px; }
@media (min-width: 640px) { .db-stat .db-stat__money { font-size: 24px; } .db-stat__money span { font-size: 13.5px; } }

/* بطاقة «تابع من حيث توقفت» على اللابتوب: صورة بعرض ثابت والنص بجانبها (إصلاح تخطيط). */
@media (min-width: 640px) {
  .db-continue { grid-template-columns: 260px 1fr; align-items: stretch; padding: 18px; gap: 16px; }
  .db-continue > :not(.db-continue__media) { padding-inline: 0; }
  .db-continue__media { border-radius: var(--r-md); aspect-ratio: auto; min-height: 150px; grid-row: 1 / -1; align-self: stretch; }
  .db-continue > :not(.db-continue__media) { grid-column: 2; }
  .db-continue__body, .db-continue > div:last-child { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
}

/* نص البحث الإرشادي يظهر كاملًا على اللابتوب والهاتف (بلاغ المالكة). */
.hm-search .ui-input, .ls-bar .ui-input { text-overflow: ellipsis; }
.hm-search .ui-input::placeholder, .ls-bar .ui-input::placeholder { font-size: 14.5px; }
@media (max-width: 480px) {
  .hm-search .ui-input, .ls-bar .ui-input { font-size: 13.5px; padding-inline: 12px; }
  .hm-search .ui-input::placeholder, .ls-bar .ui-input::placeholder { font-size: 12px; letter-spacing: -.1px; }
  /* زر البحث يتقلّص إلى أيقونة فيتسع الحقل للنص كاملًا. */
  .ls-bar form { gap: 6px; }
  .ls-bar .ui-btn { padding-inline: 12px; }
  .ls-bar .ui-input { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 480px) {
  /* بلاغ المالكة: يظهر «ابحث باسم المادة أو رمزها، مثل CVL398» كاملًا (الصنف ls-search). */
  .ls-search { gap: 8px; }
  .ls-search .ui-input { flex: 1 1 auto; min-width: 0; padding-inline: 12px; font-size: 13.5px; }
  .ls-search .ui-input::placeholder { font-size: 12.2px; letter-spacing: -.1px; }
  .ls-search .ui-btn { flex: 0 0 auto; padding-inline: 14px; }
  .hm-search .ui-input::placeholder { font-size: 12.2px; letter-spacing: -.1px; }
}

/* شعارات وسائل الدفع في التذييل: شعارات فقط بلا كتابة (قرار المالكة). */
.ic-paymarks { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: 10px; }
.ic-paymarks img { height: 26px; width: auto; max-width: 52px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; }
@media (max-width: 480px) { .ic-paymarks { width: 100%; margin: 8px 0 0; justify-content: center; } .ic-paymarks img { height: 24px; } }

/* مدارا الشعار: كرتان تدوران حوله بلا تداخل، وبمقاس مناسب للهاتف (بلاغ المالكة). */
.hm-stage .hm-orbit { z-index: 2; }
@media (max-width: 639px) {
  .hm-stage .hm-orbit { inset: 0; animation-duration: 22s; }
  .hm-stage .hm-orbit--rev { inset: 6%; animation-duration: 16s; }
  .hm-dot { width: 11px; height: 11px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .92); }
  .hm-dot--t { top: -6px; left: calc(50% - 5.5px); }
  .hm-dot--f { bottom: -6px; left: calc(50% - 5.5px); }
}
@media (prefers-reduced-motion: reduce) { .hm-stage .hm-orbit { animation: none; } }

/* ─── مدارا الشعار: خط منقّط ظاهر والكرات على الخط نفسه (قرار المالكة) ─── */
.hm-stage .hm-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(61, 167, 169, .30);
  pointer-events: none;
}
/*
 * سبب توقف الكرات سابقًا: `animation: hmSpin linear infinite` بلا مدة في قاعدة أعلى أولوية
 * كانت تضبط المدة على صفر وتُلغي المدة في قاعدة الصنف. الآن المدة داخل نفس القاعدة.
 * والمداران أوسع من الشعار فلا يقطع الخط كلمة InfinityAnswers على اللابتوب.
 */
.hm-stage .hm-orbit--out { inset: -13%; animation: hmSpin 26s linear infinite; }
.hm-stage .hm-orbit--in { inset: -3%; border-color: rgba(242, 85, 36, .26); animation: hmSpin 17s linear infinite reverse; }
/* الذراع يحمل الكرة على محيط الدائرة بزاوية ثابتة، فلا تتحرك خارج الخط. */
.hm-arm { position: absolute; inset: 0; transform: rotate(var(--a, 0deg)); }
.hm-el { position: absolute; top: 0; left: 50%; width: 13px; height: 13px; margin: -7.5px 0 0 -6.5px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 255, 255, .95), 0 4px 12px rgba(15, 27, 28, .12); }
.hm-el--t { background: var(--brand-500); }
.hm-el--f { background: var(--flame-500); }
.hm-el--s { background: #F7893F; width: 10px; height: 10px; margin: -6px 0 0 -5px; }
@media (max-width: 639px) {
  .hm-stage .hm-orbit--out { inset: -4%; animation-duration: 30s; }
  .hm-stage .hm-orbit--in { inset: 4%; animation-duration: 20s; }
  .hm-el { width: 10px; height: 10px; margin: -6px 0 0 -5px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .95); }
  .hm-el--s { width: 8px; height: 8px; margin: -5px 0 0 -4px; }
}
@media (prefers-reduced-motion: reduce) { .hm-stage .hm-orbit { animation: none; } }
/* التذييل: شريط الشعارات وحده بعد حذف النص (قرار المالكة). */
.ic-footer__pay { display: inline-flex; align-items: center; }
.ic-footer__pay .ic-paymarks { margin-inline-start: 0; }

/* ─── كتلة الاشتراك في فصل واحد: اللابتوب والهاتف (بلاغ المالكة) ─── */
.cp-term__buy { display: grid; gap: 12px; margin: 10px 0 6px; padding: 14px 16px; border: 1px solid var(--brand-200, var(--line)); border-radius: var(--r-lg); background: linear-gradient(135deg, #F4FBFA 0%, #FFF7F3 100%); }
.cp-term__buyhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cp-term__buytitle { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.cp-term__buytitle i { color: var(--brand-600); }
.cp-term__price { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; padding: 6px 14px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); color: var(--brand-800); font-size: 17px; font-weight: 800; }
.cp-term__buy form { margin: 0; }
.cp-term__buy > form { display: inline-flex; }
.cp-term__buy .ui-btn { white-space: nowrap; }
.cp-term__note { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.cp-term__note i { margin-top: 3px; color: var(--brand-500); }
/* سياسة الاشتراك الجزئي: ملاحظة تُقرأ قبل الدفع لا تُتجاهل. اسم الصنف مفحوص: لا تصادم. */
.cp-term__note--warn { color: var(--ink); background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 8px 10px; }
.cp-term__note--warn i { color: var(--flame-500, #f36829); }
.cp-term__note--warn strong { color: var(--flame-600, #d9531e); font-weight: 700; }
/* الزرّان جنبًا إلى جنب على اللابتوب */
@media (min-width: 640px) {
  .cp-term__buy { grid-template-columns: 1fr auto auto; align-items: center; column-gap: 10px; }
  .cp-term__buyhead { grid-column: 1; }
  .cp-term__buy > form:nth-of-type(1) { grid-column: 2; }
  .cp-term__buy > form:nth-of-type(2) { grid-column: 3; }
  .cp-term__note { grid-column: 1 / -1; }
}
/* الهاتف: زرّان بعرض كامل ومساحة ضغط مريحة */
@media (max-width: 639px) {
  .cp-term__buy { padding: 12px; gap: 10px; }
  .cp-term__buy > form { display: block; }
  .cp-term__buy .ui-btn { width: 100%; justify-content: center; padding-block: 11px; font-size: 13.5px; }
  .cp-term__price { font-size: 16px; padding: 5px 12px; }
  .cp-term__buytitle { font-size: 13.5px; }
}
/* شعار صفحة «من نحن» (بدل صور البنرات المحذوفة). */
.ab-logo { display: inline-grid; place-items: center; padding: 18px 26px; border-radius: var(--r-lg); background: linear-gradient(135deg, #F4FBFA, #FFF7F3); }
.ab-logo svg { max-width: 100%; height: auto; }

/* صورة الإشعار مصغّرة (طلب المالكة: كانت تملأ البطاقة) ورابطه ظاهر تحت النص. */
.nt-img { display: block; margin: 10px 0; max-width: 320px; border-radius: 14px; overflow: hidden; }
.nt-img img { display: block; width: 100%; height: auto; max-height: 200px; object-fit: cover; }
.nt-link { margin: 10px 0 0; }
@media (max-width: 560px) { .nt-img { max-width: 100%; } }

/* ─── ترويسة صفحات دخول اللوحات (المحاضر) ───────────────────────────
   بديلة عن ترويسة الزائر التي تعرض «إنشاء حساب» — وهو للطلاب لا للمحاضرين. */
.au-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px clamp(14px, 4vw, 40px); background: #fff; border-bottom: 1px solid var(--line);
}
.au-bar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.au-bar__brand b { display: block; color: var(--flame-500); font-size: 15px; font-weight: 800; white-space: nowrap; }
.au-bar__brand small { display: block; color: var(--muted); font-size: 11px; }
.au-bar__back {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill);
    background: var(--brand-50); color: var(--brand-700); font-size: 12.5px; font-weight: 700; text-decoration: none;
}
.au-bar__back:hover { background: var(--brand-100, #D7EDED); }
@media (max-width: 480px) {
    .au-bar__brand small { display: none; }
    .au-bar__back span { display: none; }
}

/* الملاحظة الإدارية داخل المشغّل: لمن يراجع المحتوى وحده. */
.pl-note {
    display: flex; align-items: flex-start; gap: 10px; margin-top: 14px;
    padding: 12px 14px; border-radius: var(--r-lg); background: #FFF8EC;
    color: #8A5A00; font-size: 13px; line-height: 1.8;
}
.pl-note i { margin-top: 4px; color: #D98A0B; }
.pl-note b { color: #6E4700; }

/* عنوان بلا رمز مادة: نصّ مختصر في سطرين بدل حرف واحد لا يقول شيئًا. */
.ui-cover--title span {
    max-width: 86%; font-size: 17px; line-height: 1.5; text-align: center;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ─── صفحة الموافقة على السياسات ──────────────────────────────────────── */
.pa { padding: clamp(24px, 6vw, 56px) 0; }
.pa-card {
    max-width: 520px; margin: 0 auto; padding: clamp(22px, 5vw, 36px);
    background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--r-xl, 24px);
    box-shadow: var(--shadow-md); text-align: center;
}
.pa-icon {
    display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 10px;
    border-radius: 50%; background: var(--brand-50); color: var(--brand-600); font-size: 24px;
}
.pa-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: var(--ink); }
.pa-lead { margin: 0 0 18px; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.pa-docs { display: grid; gap: 10px; margin-bottom: 18px; text-align: start; }
.pa-docs a {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: 16px; background: var(--line-2, #F6F9F9);
    color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s;
}
.pa-docs a:hover { border-color: var(--brand-300, #8FCBCB); background: #fff; }
.pa-docs a > i:first-child { color: var(--brand-500); font-size: 18px; width: 22px; text-align: center; }
.pa-docs span { flex: 1; }
.pa-docs b { display: block; font-size: 14px; }
.pa-docs small { display: block; color: var(--muted); font-size: 12px; }
.pa-docs__open { color: var(--muted); font-size: 12px; }
.pa-form { display: grid; gap: 14px; text-align: start; }
.pa-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.7; cursor: pointer; }
.pa-check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--brand-500); flex-shrink: 0; }
.pa-out { margin-top: 12px; }
.pa-out button { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.pa-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.pa-note i { margin-inline-end: 4px; }

/* ═══ «من نحن» كقصة — فصول على خطّ قصة (طلب المالكة) ═══════════════════ */
.ab-story { background: linear-gradient(180deg, #fff 0%, var(--brand-50) 38%, #fff 100%); overflow: hidden; }

.ab-hero { padding: clamp(40px, 7vw, 96px) 0 clamp(28px, 5vw, 64px); }
.ab-hero__grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ab-hero__grid { grid-template-columns: 1.05fr .95fr; } }
.ab-eyebrow {
    display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 800;
    color: var(--brand-700); background: #fff; box-shadow: inset 0 0 0 1px var(--brand-200);
}
.ab-hero__title { margin: 16px 0 14px; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.25; font-weight: 800; color: var(--ink); }
.ab-hero__title em { font-style: normal; color: var(--brand-600); }
.ab-hero__lead { max-width: 560px; font-size: clamp(15px, 1.5vw, 18px); line-height: 2; color: var(--ink-2); }
.ab-hero__next { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; color: var(--brand-700); text-decoration: none; }
.ab-hero__next i { transition: transform .3s; }
.ab-hero__next:hover i { transform: translateY(4px); }

.ab-hero__media { position: relative; margin: 0; }
.ab-hero__media img, .ab-hero__art {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px;
    box-shadow: 0 30px 60px -20px rgba(31, 90, 92, .35); display: block;
}
.ab-hero__art {
    display: grid; place-items: center;
    background: radial-gradient(120% 90% at 100% 0%, var(--brand-100) 0%, transparent 60%),
                radial-gradient(90% 80% at 0% 100%, #FFE6D8 0%, transparent 55%), #fff;
    box-shadow: 0 30px 60px -20px rgba(31, 90, 92, .25), inset 0 0 0 1px var(--line);
}
.ab-hero__media figcaption {
    position: absolute; inset-inline-start: 18px; bottom: -16px; padding: 8px 16px; border-radius: 999px;
    background: var(--brand-600); color: #fff; font-size: 13px; font-weight: 700; box-shadow: var(--shadow-md);
}

/* خطّ القصة: عمود رأسي تتدلّى عليه الفصول بعقد مرقّمة */
.ab-line { position: relative; padding: 24px 0 40px; }
.ab-line::before {
    content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 27px; width: 2px;
    background: linear-gradient(180deg, var(--brand-200), var(--brand-400) 50%, var(--brand-200));
}
.ab-ch {
    position: relative; margin: 0 0 28px; padding: clamp(22px, 3vw, 32px); padding-inline-start: clamp(22px, 3vw, 32px);
    margin-inline-start: 72px; background: #fff; border-radius: 24px; box-shadow: var(--shadow-md);
}
.ab-ch__node {
    position: absolute; inset-inline-start: -72px; top: 26px; width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; font: 800 16px/1 "Inter", sans-serif; color: #fff;
    background: var(--brand-600); box-shadow: 0 0 0 6px #fff, 0 8px 20px rgba(31, 90, 92, .25);
}
.ab-ch__kicker { display: block; font-size: 13px; font-weight: 800; color: #F26B2B; letter-spacing: .3px; margin: 0 0 6px; }
.ab-ch__title { margin: 0 0 12px; font-size: clamp(21px, 2.4vw, 28px); font-weight: 800; color: var(--ink); line-height: 1.4; }
.ab-ch p { margin: 0; font-size: 16px; line-height: 2; color: var(--ink-2); }

.ab-founders { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ab-founders li {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px;
    background: var(--brand-50); font-weight: 700; color: var(--brand-800);
}
.ab-founders i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand-600); font-size: 17px; }

.ab-quote {
    margin: 4px 0 16px; padding: 18px 20px; border-inline-start: 4px solid #F26B2B; border-radius: 16px;
    background: #FFF6F0; font-size: 17px; line-height: 2; color: var(--ink); font-weight: 600;
}
.ab-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ab-chips li { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #B4471B; background: #FFE9DE; }

.ab-pillars { display: grid; gap: 12px; margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ab-pillars div { padding: 16px; border-radius: 18px; background: linear-gradient(160deg, var(--brand-50), #fff); box-shadow: inset 0 0 0 1px var(--line); }
.ab-pillars b { display: block; font-size: 20px; font-weight: 800; color: var(--brand-700); }
.ab-pillars span { font-size: 13px; color: var(--muted); }

.ab-moments { margin: 0 0 28px; margin-inline-start: 72px; }
.ab-moments__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ab-moments__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-md); }

.ab-vision { font-size: clamp(17px, 1.8vw, 20px) !important; font-weight: 600; color: var(--ink) !important; }
.ab-sub { margin: 24px 0 12px; font-size: 17px; font-weight: 800; color: var(--brand-800); }
.ab-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: abstep; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ab-steps li {
    counter-increment: abstep; position: relative; padding: 16px; padding-inline-start: 54px; border-radius: 18px;
    background: #fff; box-shadow: inset 0 0 0 1px var(--line);
}
.ab-steps li::before {
    content: counter(abstep); position: absolute; inset-inline-start: 14px; top: 16px; width: 28px; height: 28px; border-radius: 9px;
    display: grid; place-items: center; font: 800 14px/1 "Inter", sans-serif; color: #fff; background: #F26B2B;
}
.ab-steps b { display: block; font-weight: 800; color: var(--ink); }
.ab-steps span { font-size: 13px; color: var(--muted); }

.ab-message { position: relative; margin: 26px 0 0; padding: 26px 24px 20px; border-radius: 22px; color: #fff;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); overflow: hidden; }
.ab-message__mark { position: absolute; inset-inline-end: 18px; top: -18px; font: 800 120px/1 Georgia, serif; opacity: .15; }
.ab-message blockquote { margin: 0; font-size: 17px; line-height: 2.05; font-weight: 600; }
.ab-message figcaption { margin-top: 10px; font-size: 13px; font-weight: 800; opacity: .8; }

.ab-close { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); text-align: center; }
.ab-close__tag { margin: 0 0 8px; font-weight: 800; color: var(--brand-600); }
.ab-close h2 { margin: 0 0 20px; font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--ink); }
.ab-close__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* الظهور التدريجي */
.ab-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.ab-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ab-reveal { opacity: 1; transform: none; transition: none; } }

/* الجوال: الخطّ والعقد أصغر */
@media (max-width: 640px) {
    .ab-line::before { inset-inline-start: 17px; }
    .ab-ch, .ab-moments { margin-inline-start: 46px; }
    .ab-ch__node { inset-inline-start: -46px; width: 36px; height: 36px; font-size: 12px; box-shadow: 0 0 0 4px #fff; }
}

/* ═══ صفحات السياسات الثلاث — إطار واحد (policy_shell.php) ═══════════════ */
.pol { background: linear-gradient(180deg, var(--brand-50) 0, #fff 420px); padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); }
.pol__wrap { max-width: 1120px; }
.pol-head { text-align: center; margin-bottom: 22px; }
.pol-head__eyebrow { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--brand-700); background: #fff; box-shadow: inset 0 0 0 1px var(--brand-200); }
.pol-head__title { margin: 12px 0 8px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--ink); }
.pol-head__lead { max-width: 640px; margin: 0 auto; font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.pol-head__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.pol-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; padding: 5px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-md); }
.pol-tabs a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.pol-tabs a:hover { background: var(--brand-50); }
.pol-tabs a.is-active { background: var(--brand-600); color: #fff; }

.pol-summary { margin: 0 auto 22px; padding: 20px 22px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-md), inset 4px 0 0 var(--brand-500); }
[dir="rtl"] .pol-summary { box-shadow: var(--shadow-md), inset -4px 0 0 var(--brand-500); }
.pol-summary h2 { margin: 0 0 10px; font-size: 17px; font-weight: 800; color: var(--brand-800); }
.pol-summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pol-summary li { position: relative; padding-inline-start: 26px; line-height: 1.9; color: var(--ink); }
.pol-summary li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--brand-500); }
.pol-summary__note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

.pol-layout { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .pol-layout { grid-template-columns: 250px 1fr; } }
.pol-toc { padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 980px) { .pol-toc { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; } }
.pol-toc h2 { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--muted); }
.pol-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: poltoc; }
.pol-toc li { counter-increment: poltoc; }
.pol-toc a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 10px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.pol-toc a::before { content: counter(poltoc); min-width: 18px; font: 700 12px/1.9 "Inter", sans-serif; color: var(--brand-600); }
.pol-toc a:hover { background: var(--brand-50); color: var(--brand-800); }

.pol-body { display: grid; gap: 14px; min-width: 0; }
.pol-sec, .pol-contact { padding: clamp(18px, 2.6vw, 26px); border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 90px; }
.pol-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: clamp(18px, 2vw, 21px); font-weight: 800; color: var(--ink); }
.pol-num { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 10px; font: 800 14px/1 "Inter", sans-serif; color: #fff; background: var(--brand-600); }
.pol-sec h3 { margin: 14px 0 6px; font-size: 15px; font-weight: 800; color: var(--brand-800); }
.pol-sec p, .pol-contact p { margin: 0 0 8px; font-size: 15.5px; line-height: 2; color: var(--ink-2); }
.pol-sec a, .pol-summary a { color: var(--brand-700); font-weight: 700; }
.pol-list { margin: 4px 0 8px; padding: 0; list-style: none; display: grid; gap: 6px; }
.pol-list li { position: relative; padding-inline-start: 20px; font-size: 15.5px; line-height: 2; color: var(--ink-2); }
.pol-list li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-400); }
.pol-list--x li::before { content: "✕"; width: auto; height: auto; top: 0; inset-inline-start: 0; background: none; font-size: 12px; font-weight: 800; color: #C2410C; }
.pol-steps { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: polstep; display: grid; gap: 8px; }
.pol-steps li { counter-increment: polstep; position: relative; padding: 10px 14px; padding-inline-start: 48px; border-radius: 14px; background: var(--brand-50); line-height: 1.9; color: var(--ink); }
.pol-steps li::before { content: counter(polstep); position: absolute; inset-inline-start: 12px; top: 10px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 800 13px/1 "Inter", sans-serif; color: #fff; background: #F26B2B; }
.pol-example { margin: 10px 0; padding: 14px 16px; border-radius: 14px; background: #FFF6F0; line-height: 2; color: var(--ink); box-shadow: inset 0 0 0 1px #FDE3D3; }

.pol-contact h2 { margin: 0 0 6px; font-size: 19px; font-weight: 800; color: var(--ink); }
.pol-contact__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.pol-contact__links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 700; color: var(--brand-800); background: var(--brand-50); text-decoration: none; }
.pol-contact__company { font-size: 12.5px !important; line-height: 1.9 !important; color: var(--muted) !important; }
@media (max-width: 520px) {
    .pol-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; border-radius: 16px; gap: 2px; padding: 4px; scrollbar-width: none; }
    .pol-tabs::-webkit-scrollbar { display: none; }
    .pol-tabs a { flex: 0 0 auto; padding: 7px 11px; font-size: 13px; }
}

/* ─── المؤسسون (صور مقصوصة على خلفية الهوية) ─────────────────────────── */
.ab-hero__group {
    position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
    background:
        radial-gradient(58% 70% at 50% 108%, var(--brand-500) 0 62%, transparent 62.4%),
        radial-gradient(80% 60% at 100% 0%, #FFE6D8 0%, transparent 60%),
        linear-gradient(180deg, #F4FAFA 0%, var(--brand-50) 100%);
    box-shadow: 0 30px 60px -20px rgba(31, 90, 92, .35), inset 0 0 0 1px var(--line);
}
.ab-hero__group::before {   /* قوس برتقالي خفيف خلف المؤسسين */
    content: ""; position: absolute; left: 50%; bottom: -34%; width: 96%; aspect-ratio: 1; transform: translateX(-50%);
    border-radius: 50%; border: 10px solid rgba(242, 107, 43, .9); border-bottom-color: transparent; border-left-color: transparent; rotate: -45deg;
}
.ab-hero__group img { position: relative; width: 104%; max-width: none; height: auto; aspect-ratio: auto; border-radius: 0; box-shadow: none; object-fit: contain; margin-bottom: -1px; }

.ab-people { display: grid; gap: 14px; margin: 18px 0 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .ab-people { gap: 8px; } }
.ab-person { margin: 0; text-align: center; }
.ab-person__frame {
    position: relative; aspect-ratio: 520 / 610; border-radius: 20px; overflow: hidden;
    background:
        radial-gradient(75% 55% at 50% 100%, var(--brand-500) 0 60%, transparent 60.5%),
        linear-gradient(180deg, #F4FAFA, var(--brand-50));
    box-shadow: inset 0 0 0 1px var(--line);
}
.ab-person__frame img { position: absolute; inset: auto 0 0 0; width: 100%; height: auto; display: block; transition: transform .5s ease; transform-origin: 50% 100%; }
.ab-person:hover .ab-person__frame img { transform: scale(1.03); }
.ab-person figcaption { margin-top: 8px; display: grid; gap: 2px; }
.ab-person figcaption b { font-size: clamp(13px, 1.5vw, 16px); font-weight: 800; color: var(--ink); }
.ab-person figcaption span { font-size: 12px; font-weight: 700; color: #F26B2B; }
.ab-founders__label { margin: 14px 0 0 !important; font-size: 13px !important; font-weight: 800; color: var(--muted) !important; }
@media (prefers-reduced-motion: reduce) { .ab-person__frame img { transition: none; } }
/* تنقيح بعد المعاينة: إطار بنسبة الصورة الجماعية، ودائرة ناعمة خلف الرؤوس بدل القوس */
.ab-hero__group {
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 50% 46%, var(--brand-200) 0 26%, transparent 26.4%),
        radial-gradient(circle at 18% 58%, var(--brand-100) 0 17%, transparent 17.4%),
        radial-gradient(circle at 82% 58%, var(--brand-100) 0 17%, transparent 17.4%),
        radial-gradient(90% 70% at 100% 0%, #FFE9DD 0%, transparent 55%),
        linear-gradient(180deg, #F6FBFB 0%, var(--brand-50) 100%);
}
.ab-hero__group::before { content: none; }
.ab-hero__group img { width: 112%; }
.ab-person__frame {
    background:
        radial-gradient(circle at 50% 36%, var(--brand-200) 0 29%, transparent 29.5%),
        linear-gradient(180deg, #F6FBFB 0%, var(--brand-100) 100%);
}

/* ─── «؟» في الترويسة: من نحن والمساعدة داخل المنصة ─────────────────────── */
.ic-help { position: relative; }
.ic-help.is-open .ic-menu { opacity: 1; visibility: visible; transform: none; }
.ic-help.is-open .ic-help__btn, .ic-help__btn:hover { border-color: var(--brand-400); color: var(--brand-700); }
.ic-help__btn i { font-size: 18px; }
/* «؟» حرفًا لا دائرةً داخل مربع (شكل «دائرة في مربع» كان يزحم الزر بجانب الجرس)، وبوزن الجرس نفسه. */
.ic-help__q { font: 800 19px/1 "Cairo", sans-serif; display: block; margin-top: -1px; }
.ic-help.is-open .ic-help__q, .ic-help__btn:hover .ic-help__q { color: var(--brand-700); }
.ic-menu--help { width: min(300px, calc(100vw - 24px)); padding: 10px; }
.ic-help__head { display: flex; align-items: center; gap: 10px; padding: 6px 6px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.ic-help__mark { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--brand-50); }
.ic-help__head b { display: block; font-size: 14px; font-weight: 800; color: var(--ink); }
.ic-help__head small { display: block; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.ic-menu--help a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.ic-menu--help a:hover, .ic-menu--help a:focus-visible { background: var(--brand-50); color: var(--brand-800); outline: none; }
.ic-menu--help a > i { width: 18px; text-align: center; color: var(--brand-600); }
.ic-menu--help a .fa-whatsapp { color: #25D366; }
.ic-menu--help .ic-help__primary { padding: 11px 10px; margin-bottom: 2px; background: linear-gradient(135deg, var(--brand-50), #fff); box-shadow: inset 0 0 0 1px var(--brand-100); }
.ic-help__primary > i { font-size: 18px; }
.ic-help__primary span { display: grid; line-height: 1.45; }
.ic-help__primary b { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.ic-help__primary small { font-size: 12px; color: var(--muted); }
.ic-help__primary[aria-current="page"] { box-shadow: inset 0 0 0 1.5px var(--brand-400); }
/* قروب الجامعة داخل «؟»: بطاقة خضراء صغيرة تميّزه عن رقم الدعم العام. */
.ic-menu--help .ic-help__community { margin-top: 6px; padding: 10px; background: #EFFBF3; box-shadow: inset 0 0 0 1px #CDEFD9; }
.ic-menu--help .ic-help__community:hover, .ic-menu--help .ic-help__community:focus-visible { background: #E2F7EA; color: #145C33; }
.ic-help__community-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: #25D366; }
.ic-menu--help .ic-help__community-icon .fa-whatsapp { color: #fff; font-size: 18px; }
.ic-help__community span:last-child { display: grid; line-height: 1.45; }
.ic-help__community b { font-size: 14px; font-weight: 800; color: #145C33; }
.ic-help__community small { font-size: 12px; color: #3F6B52; }
.ic-menu--help hr { margin: 8px 4px; border: 0; border-top: 1px solid var(--line); }
.ic-help__policies { display: flex; flex-wrap: wrap; gap: 2px 4px; padding: 0 2px 2px; }
.ic-help__policies a { padding: 5px 8px !important; font-size: 12px !important; color: var(--muted) !important; }
.ic-help__policies a:hover { color: var(--brand-700) !important; }
.ic-help__policies a { width: auto !important; }

/* ─── نبذة المهندسين: البطاقة زرّ يفتح لوحة احترافية ─────────────────────── */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
button.ab-person { appearance: none; border: 0; padding: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: center; display: block; width: 100%; border-radius: 22px; }
button.ab-person:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 4px; }
.ab-person__frame { display: block; transition: box-shadow .3s ease, transform .3s ease; }
button.ab-person:hover .ab-person__frame { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(31, 90, 92, .45), inset 0 0 0 1px var(--brand-200); }
.ab-person__hint {
    position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; white-space: nowrap;
    background: rgba(15, 27, 28, .62); -webkit-backdrop-filter:blur(6px);backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: .92; transition: opacity .25s, background .25s;
}
button.ab-person:hover .ab-person__hint { opacity: 1; background: var(--brand-700); }
.ab-person__cap { margin-top: 8px; display: grid; gap: 2px; }
.ab-person__cap b { font-size: clamp(13px, 1.5vw, 16px); font-weight: 800; color: var(--ink); }
.ab-person__cap > span { font-size: 12px; font-weight: 700; color: #F26B2B; }
@media (max-width: 560px) { .ab-person__hint { font-size: 10.5px; padding: 4px 8px; bottom: 6px; } }

.ab-bio {
    width: min(760px, calc(100vw - 32px)); max-height: min(88vh, 820px); padding: 0; border: 0; border-radius: 26px; overflow: hidden;
    background: #fff; color: var(--ink); box-shadow: 0 40px 80px -20px rgba(15, 27, 28, .45);
}
.ab-bio::backdrop { background: rgba(15, 27, 28, .55); -webkit-backdrop-filter:blur(3px);backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.ab-bio[open] { animation: abBioIn .28s ease both; }
@keyframes abBioIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.ab-bio__card { display: flex; flex-direction: column; max-height: min(88vh, 820px); }
.ab-bio__card[hidden] { display: none; }
.ab-bio__head {
    display: grid; grid-template-columns: 170px 1fr; align-items: end; gap: 18px; padding: 22px 26px 0;
    background: radial-gradient(90% 120% at 100% 0%, #FFE9DD 0%, transparent 55%), linear-gradient(180deg, var(--brand-50), #fff);
}
.ab-bio__photo {
    position: relative; aspect-ratio: 520 / 610; border-radius: 20px 20px 0 0; overflow: hidden;
    background: radial-gradient(circle at 50% 36%, var(--brand-200) 0 30%, transparent 30.5%), linear-gradient(180deg, #F6FBFB, var(--brand-100));
}
.ab-bio__photo img { position: absolute; inset: auto 0 0 0; width: 100%; height: auto; }
.ab-bio__id { padding-bottom: 20px; }
.ab-bio__role { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--brand-700); background: #fff; box-shadow: inset 0 0 0 1px var(--brand-200); }
.ab-bio__name { margin: 10px 0 4px; font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--ink); line-height: 1.25; }
.ab-bio__field { font-size: 15px; font-weight: 800; color: #F26B2B; }
.ab-bio__body { overflow-y: auto; padding: 18px 26px 6px; display: grid; gap: 16px; border-top: 1px solid var(--line); }
.ab-bio__sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; font-weight: 800; color: var(--brand-800); }
.ab-bio__sec h3 i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; color: #fff; background: var(--brand-600); }
.ab-bio__edu { padding: 14px 16px; border-radius: 16px; background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-100); }
.ab-bio__edu b { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.ab-bio__edu span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-2); }
.ab-bio__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ab-bio__list li { position: relative; padding: 10px 14px; padding-inline-start: 34px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); line-height: 1.8; color: var(--ink-2); }
.ab-bio__list li::before { content: "✓"; position: absolute; inset-inline-start: 12px; top: 11px; font-size: 12px; font-weight: 800; color: var(--brand-600); }
.ab-bio__awards { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ab-bio__awards li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #FFF6F0, #fff); box-shadow: inset 0 0 0 1px #FDE3D3; line-height: 1.8; font-weight: 700; color: var(--ink); }
.ab-bio__awards i { flex: 0 0 auto; margin-top: 4px; color: #F26B2B; font-size: 16px; }
.ab-bio__nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 26px 18px; border-top: 1px solid var(--line-2); }
.ab-bio__count { font: 700 13px/1 "Inter", sans-serif; color: var(--muted); }
.ab-bio__nav > div { display: flex; gap: 8px; }
.ab-bio__step, .ab-bio__close {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer;
    display: grid; place-items: center; transition: border-color .2s, color .2s, background .2s;
}
.ab-bio__step:hover, .ab-bio__close:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); }
.ab-bio__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; background: rgba(255, 255, 255, .9); }
@media (max-width: 640px) {
    /* مثبّتة على الحافة السفلية: 100vh في متصفحات الجوال أطول من المساحة الظاهرة. */
    .ab-bio { position: fixed; inset: auto 0 0 0; width: 100vw; max-width: 100vw; max-height: 92vh; max-height: 92dvh; margin: 0; border-radius: 24px 24px 0 0; }
    .ab-bio[open] { animation: abBioUp .3s ease both; }
    @keyframes abBioUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
    .ab-bio__card { max-height: 92vh; max-height: 92dvh; }
    .ab-bio__head { grid-template-columns: 112px 1fr; gap: 14px; padding: 18px 18px 0; }
    .ab-bio__body { padding: 14px 18px 4px; }
    .ab-bio__nav { padding: 10px 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { .ab-bio[open] { animation: none; } button.ab-person:hover .ab-person__frame { transform: none; } }

/* ─── الأسئلة الشائعة: تصنيفات وروابط للسياسات ─────────────────────────── */
.hm-faq2__main { display: grid; gap: 14px; min-width: 0; }
.hm-faq2__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-faq2__cats button {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-family: inherit; font-weight: 700; font-size: 13.5px; line-height: 1.2;
    transition: background .2s, color .2s, border-color .2s;
}
.hm-faq2__cats button i { font-size: 12px; color: var(--brand-500); }
.hm-faq2__cats button:hover { border-color: var(--brand-300, var(--brand-200)); color: var(--brand-800); }
.hm-faq2__cats button.is-active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.hm-faq2__cats button.is-active i { color: #fff; }
@media (max-width: 640px) {
    .hm-faq2__cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-inline: -4px; padding-inline: 4px; }
    .hm-faq2__cats::-webkit-scrollbar { display: none; }
    .hm-faq2__cats button { flex: 0 0 auto; }
}
.hm-qa[hidden] { display: none; }
.hm-qa__a p b { color: var(--ink); font-weight: 800; }
.hm-qa__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13.5px; font-weight: 800; color: var(--brand-700); text-decoration: none; }
.hm-qa__more i { font-size: 11px; transition: transform .2s; }
.hm-qa__more:hover i { transform: translateX(-3px); }
.hm-faq2__docs { font-size: 13px !important; color: var(--muted) !important; }
.hm-faq2__docs a { color: var(--brand-700); font-weight: 700; text-decoration: none; }
.hm-faq2__docs a:hover { text-decoration: underline; }
@media (min-width: 641px) { .hm-faq2__cats { gap: 6px; } .hm-faq2__cats button { padding: 7px 12px; font-size: 13px; } }

/* «من نحن»: بلا الدائرة الفيروزية خلف الرؤوس (طلب المالكة) — خلفية متدرّجة هادئة فقط */
.ab-hero__group {
    background:
        radial-gradient(90% 70% at 100% 0%, #FFE9DD 0%, transparent 55%),
        linear-gradient(180deg, #F6FBFB 0%, var(--brand-50) 100%);
}
.ab-person__frame { background: radial-gradient(80% 60% at 100% 0%, #FFF1E8 0%, transparent 60%), linear-gradient(180deg, #F6FBFB 0%, var(--brand-100) 100%); }
.ab-bio__photo { background: linear-gradient(180deg, #F6FBFB 0%, var(--brand-100) 100%); }

/* ═════════════ البطاقة الجذابة (طلب المالكة، المقترح المعتمد) ═════════════ */
.ui-cover--themed { color: #fff; place-items: center; }
.ui-cover--themed::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 22px 22px; }
.ui-cover--t-teal { background: linear-gradient(135deg, #15A4AA, #1F5A5C); }
.ui-cover--t-deep { background: linear-gradient(135deg, #1F5A5C, #12393A); }
.ui-cover--t-orange { background: linear-gradient(135deg, #F26A2C, #FF9A62); }
.ui-cover--t-ember { background: linear-gradient(135deg, #C9471A, #F26A2C); }
.ui-cover--t-sky { background: linear-gradient(135deg, #2BC0C6, #15A4AA); }
.ui-cover--t-sun { background: linear-gradient(135deg, #FF8A4C, #FFB27A); }
.ui-cover--themed i.ui-cover__wm { position: absolute; top: auto; inset-inline-start: auto; inset-inline-end: -16px; bottom: -28px; font-size: 150px; color: #fff; opacity: .15; transform: rotate(-12deg); transition: transform .5s var(--ease); }
.ui-ccard:hover .ui-cover--themed i.ui-cover__wm { transform: rotate(-6deg) scale(1.05); }
.ui-cover--themed span.ui-cover__code { position: relative; z-index: 1; font: 900 46px/1 "Inter", "Cairo", sans-serif; letter-spacing: 1px; color: #fff; opacity: 1; background: none; border: 0; padding: 0; text-shadow: 0 6px 20px rgba(0, 0, 0, .16); }
.ui-cover--themed.ui-cover--title span.ui-cover__code { font: 900 22px/1.45 "Cairo", sans-serif; letter-spacing: 0; padding: 0 22px; text-align: center; }
.ui-cover--themed small.ui-cover__maj { position: absolute; z-index: 1; bottom: 12px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: #fff; opacity: .95; }
.ui-cover--themed small.ui-cover__maj i { position: static; font-size: 12px; color: #fff; opacity: 1; }
.ui-ccard__tags .ui-badge--type { background: #fff; color: var(--brand-700); }
.ui-ccard__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ui-ccard__chips span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: 12px; font-weight: 800; }
.ui-ccard__chips i { font-size: 9px; color: var(--brand-400); }
.ui-ccard__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.ui-ccard__row .ui-ccard__teacher { margin-top: 0; padding-top: 0; min-width: 0; }
.ui-ccard__stu { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.ui-ccard__stu i { color: #F26A2C; }
.ui-ccard__stu.is-new i { color: #F59E0B; }
.ui-ccard__go { background: #F26A2C; color: #fff; box-shadow: 0 8px 18px rgba(242, 106, 44, .28); }
.ui-ccard__go:hover { background: #D9551C; color: #fff; }
.ui-ccard:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(15, 27, 28, .14); }
@media (prefers-reduced-motion: reduce) { .ui-ccard:hover { transform: none; } .ui-ccard:hover .ui-cover--themed i.ui-cover__wm { transform: rotate(-12deg); } }

/* الغلاف بهوية التخصص في «دوراتي» ولوحة الطالب */
.mc-card__uni { margin: -2px 0 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.mc-card__uni i { color: var(--brand-400); }
.mc-card__media .ui-cover--themed span.ui-cover__code { font-size: 38px; }
/* الغلاف المصغّر (قائمة الدورات المنتهية): الرمز كان أكبر من المربع فيُقصّ من طرفيه */
.mc-ended__media .ui-cover--themed span.ui-cover__code { font-size: 19px; letter-spacing: 0; text-shadow: none; }
.mc-ended__media .ui-cover--themed.ui-cover--title span.ui-cover__code { font-size: 11.5px; line-height: 1.35; padding: 0 8px; }
.mc-ended__media .ui-cover--themed small.ui-cover__maj { display: none; }
.mc-ended__media .ui-cover--themed i.ui-cover__wm { font-size: 62px; bottom: -12px; inset-inline-end: -8px; }
.mc-ended__media .ui-cover--themed::after { background-size: 11px 11px; }
.db-continue__media .ui-cover--themed span.ui-cover__code { font-size: 34px; }
.db-continue__media .ui-cover--themed small.ui-cover__maj { bottom: 10px; font-size: 12px; }

/* ═════════════ اختبار فهم الدرس (lesson_quiz) ═════════════ */
.lq { background: linear-gradient(180deg, #EAF5F5 0, #F6FAFA 320px); min-height: 70vh; padding-block: 22px 60px; }
.lq__wrap { max-width: 860px !important; display: grid; gap: 16px; }
.lq__back { justify-self: start; font-size: 14px; font-weight: 800; color: var(--brand-700); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.lq__card { background: #fff; border: 1px solid #E4EDED; border-radius: 24px; padding: 26px; box-shadow: 0 18px 44px rgba(11, 36, 38, .08); }
.lq__center { text-align: center; }
.lq__big { font-size: 44px; }
.lq__badge { display: inline-block; font-size: 12px; font-weight: 900; color: var(--brand-800); background: var(--brand-50); border-radius: 999px; padding: 5px 12px; }
.lq h1 { margin: 10px 0 6px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; color: #0F2E2F; }
.lq__sub { margin: 0; color: #5B6B6D; font-size: 14.5px; }
.lq__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; }
.lq__facts div { background: #F6FAFA; border: 1px solid #E4EDED; border-radius: 16px; padding: 14px 10px; text-align: center; display: grid; gap: 2px; }
.lq__facts b { font-size: 22px; font-weight: 900; color: var(--brand-800); }
.lq__facts span { font-size: 12.5px; color: #66777A; font-weight: 700; }
.lq__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.lq__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid #CFE3E3; background: #fff; color: var(--brand-800); font-family: inherit; font-size: 15px; font-weight: 900; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.lq__btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(31, 90, 92, .14); }
.lq__btn:disabled { opacity: .45; cursor: not-allowed; }
.lq__btn--main { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color: #fff; border-color: transparent; }
.lq__note { margin: 14px 0 0; font-size: 12.5px; color: #7A8A8C; }
.lq__hist { margin-top: 22px; padding-top: 18px; border-top: 1px solid #EEF3F3; display: grid; gap: 10px; }
.lq__hist h2 { margin: 0 0 4px; font-size: 15px; font-weight: 900; }
.lq__hrow { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px 12px; align-items: center; }
.lq__hbar { grid-column: 1; height: 8px; border-radius: 999px; background: #EEF3F3; overflow: hidden; }
.lq__hbar span { display: block; height: 100%; border-radius: 999px; }
.lq__hbar .is-pass { background: #22A06B; } .lq__hbar .is-fail { background: #F59E0B; }
.lq__hrow b { grid-column: 2; grid-row: 1 / 3; font-size: 16px; font-weight: 900; }
.lq__hrow small { grid-column: 1; font-size: 12px; color: #7A8A8C; }
/* الأسئلة */
.lq__top { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 800; color: #5B6B6D; }
.lq__prog { flex: 1; height: 8px; background: #EEF3F3; border-radius: 999px; overflow: hidden; }
.lq__prog span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-400), var(--brand-700)); border-radius: 999px; transition: width .3s ease; }
.lq__q { margin: 22px 0 18px; font-size: clamp(17px, 2.2vw, 21px); font-weight: 800; line-height: 1.8; color: #0F2E2F; }
.lq__opts { display: grid; gap: 10px; }
.lq__opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; padding: 14px 16px; border-radius: 16px; border: 2px solid #E4EDED; background: #fff; font-family: inherit; font-size: 15.5px; color: #1F2D2E; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.lq__opt:hover { border-color: var(--brand-200); background: #F8FCFC; }
.lq__opt.is-on { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(47, 142, 144, .12); }
.lq__key { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #F1F5F5; font-weight: 900; color: var(--brand-800); }
.lq__opt.is-on .lq__key { background: var(--brand-700); color: #fff; }
.lq__otext { flex: 1; line-height: 1.7; }
.lq__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.lq__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.lq__dots span { width: 9px; height: 9px; border-radius: 50%; background: #DDE8E8; }
.lq__dots .is-done { background: var(--brand-400); } .lq__dots .is-cur { outline: 2px solid var(--brand-700); outline-offset: 2px; }
/* النتيجة */
.lq__res { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.lq__ring { --p: 0; --c: #22A06B; width: 150px; height: 150px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), #EEF3F3 0); }
.lq__res.is-fail .lq__ring { --c: #F59E0B; }
.lq__ring b { font-size: 34px; font-weight: 900; color: #0F2E2F; line-height: 1.1; }
.lq__ring small { font-size: 13px; color: #66777A; font-weight: 800; }
.lq__restext { flex: 1; min-width: 240px; }
.lq__restext p { margin: 4px 0; color: #4B5B5D; }
.lq__meta { font-size: 13px; color: #7A8A8C !important; }
.lq__weak { font-weight: 800; color: #92400E !important; background: #FFFBEB; border-radius: 10px; padding: 8px 12px; display: inline-block; }
.lq__rtitle { margin: 26px 0 12px; font-size: 18px; font-weight: 900; }
.lq__item { border: 1px solid #E4EDED; border-radius: 18px; padding: 16px; margin-bottom: 12px; background: #fff; }
.lq__item.is-wrong { border-color: #FBD5D5; background: #FFFBFB; }
.lq__ihead { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; line-height: 1.8; }
.lq__mark { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: #22A06B; }
.lq__item.is-wrong .lq__mark { background: #DC2626; }
.lq__ropt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; margin-top: 6px; font-size: 14.5px; background: #F8FAFA; }
.lq__ropt .lq__key { flex-basis: 28px; height: 28px; font-size: 13px; }
.lq__ropt em { margin-inline-start: auto; font-style: normal; font-size: 12px; font-weight: 900; }
.lq__ropt.is-correct { background: #E7F6EC; border: 1px solid #BCE6CC; } .lq__ropt.is-correct em { color: #12703F; }
.lq__ropt.is-chosen { background: #FEF2F2; border: 1px solid #FBD5D5; } .lq__ropt.is-chosen em { color: #B42318; }
.lq__exp { margin: 12px 0 6px; font-size: 14px; line-height: 1.85; color: #374151; background: #F6FAFA; border-radius: 12px; padding: 10px 12px; }
.lq__src { display: inline-block; font-size: 12.5px; font-weight: 800; color: var(--brand-700); text-decoration: none; margin-top: 4px; }
.lq__skip { font-size: 13px; color: #B42318; margin: 8px 0 0; }
.lq__loading { position: fixed; inset: 0; z-index: 990; background: rgba(246, 250, 250, .86); display: grid; place-content: center; justify-items: center; gap: 14px; font-size: 15px; color: var(--brand-800); }
.lq__loading[hidden] { display: none; }
.lq__spin { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #D3ECEC; border-top-color: var(--brand-700); animation: lqSpin .9s linear infinite; }
@keyframes lqSpin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .lq__card { padding: 18px; border-radius: 20px; }
  .lq__facts { grid-template-columns: repeat(2, 1fr); }
  .lq__actions .lq__btn { flex: 1 1 100%; }
  .lq__ring { width: 124px; height: 124px; }
}
/* اختبار الدرس: منتقي الدرس · سجل قابل للمراجعة · توصيات */
.lq__picker { display: grid; gap: 8px; }
.lq__picker-t { font-size: 13px; font-weight: 900; color: #5B6B6D; }
.lq__picker-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.lq__pick { flex: 0 0 auto; min-width: 190px; display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; background: #fff; border: 1px solid #E4EDED; text-decoration: none; color: #0F2E2F; transition: border-color .15s ease, box-shadow .15s ease; }
.lq__pick:hover { border-color: var(--brand-200); box-shadow: 0 8px 20px rgba(31, 90, 92, .08); }
.lq__pick b { font-size: 14px; font-weight: 900; }
.lq__pick small { font-size: 12px; color: #66777A; font-weight: 700; }
.lq__pick.is-cur { border: 2px solid var(--brand-600); background: var(--brand-50); }
.lq__pick.is-off { opacity: .55; cursor: not-allowed; }
button.lq__hrow { width: 100%; background: none; border: 0; padding: 6px 4px; border-radius: 10px; font-family: inherit; text-align: start; cursor: pointer; color: inherit; }
button.lq__hrow:hover { background: #F6FAFA; }
button.lq__hrow u { color: var(--brand-700); text-decoration: none; font-weight: 900; }
.lq__hist h2 i { color: var(--brand-600); margin-inline-end: 6px; }
.lq__focus h2 { margin: 0 0 4px; font-size: 18px; font-weight: 900; }
.lq__focus h2 i { color: #D97706; margin-inline-end: 6px; }
.lq__flist { display: grid; gap: 12px; margin-top: 14px; }
.lq__fitem { border: 1px solid #FDE68A; background: #FFFCF2; border-radius: 16px; padding: 12px 14px; display: grid; gap: 8px; }
.lq__fhead { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.lq__fhead b { font-size: 15px; font-weight: 900; color: #78350F; }
.lq__fhead span { font-size: 12px; font-weight: 800; color: #92400E; }
.lq__fbar { height: 7px; border-radius: 999px; background: #FDF1D0; overflow: hidden; }
.lq__fbar span { display: block; height: 100%; background: #F59E0B; border-radius: 999px; }
.lq__fsrc { font-size: 12.5px; color: #78350F; font-weight: 800; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lq__fsrc a, .lq__fsrc span { background: #fff; border: 1px solid #FDE68A; border-radius: 999px; padding: 3px 10px; color: #92400E; text-decoration: none; }

/* ═════════ «معلّمك الذكي» في صفحة الدورة ═════════ */
.cp-ai { position: relative; overflow: hidden; padding: 22px; border: 0 !important; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(93, 211, 213, .35) 0, transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(243, 104, 41, .22) 0, transparent 60%),
              linear-gradient(135deg, #1F5A5C 0%, #173F40 60%, #0F2E2F 100%); box-shadow: 0 18px 40px rgba(15, 46, 47, .25); }
.cp-ai::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14; background-image: radial-gradient(rgba(255,255,255,.6) 1px, transparent 1.2px); background-size: 14px 14px; }
.cp-ai > * { position: relative; z-index: 1; }
.cp-ai__head { display: flex; align-items: center; gap: 16px; }
.cp-ai__bot { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(255,255,255,.2), rgba(255,255,255,.05));
  box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 10px 28px rgba(47, 198, 201, .35); }
.cp-ai__tag { display: inline-block; font-size: 11.5px; font-weight: 900; color: #0F2E2F; background: #8FF3F5; border-radius: 999px; padding: 3px 10px; }
.cp-ai h2 { margin: 6px 0 4px; font-size: clamp(18px, 2.2vw, 22px); font-weight: 900; color: #fff; }
.cp-ai__head p { margin: 0; font-size: 13.5px; color: #CDEBEB; line-height: 1.8; }
.cp-ai__list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cp-ai__list li { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 10px 12px; font-size: 13px; color: #E6F6F6; }
.cp-ai__list li i { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(143, 243, 245, .16); color: #8FF3F5; }
.cp-ai__list b { color: #fff; }
.cp-ai__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.cp-ai__cta { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #1F5A5C; font-weight: 900; font-size: 14.5px; border-radius: 999px; padding: 8px 18px 8px 10px; text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
[dir="rtl"] .cp-ai__cta { padding: 8px 10px 8px 18px; }
.cp-ai__free { display: inline-flex; align-items: center; background: #F36829; color: #fff; font-weight: 900; font-size: 14px; border-radius: 999px; padding: 8px 16px; }
.cp-ai__note { font-size: 12.5px; color: #BFE7E8; font-weight: 700; }
@media (max-width: 640px) { .cp-ai { padding: 18px; } .cp-ai__list { grid-template-columns: 1fr; } .cp-ai__bot { width: 68px; height: 68px; border-radius: 20px; } .cp-ai__bot .aibot { width: 52px; height: 52px; } }

/* ═════════ اختبر فهمك v2 — تجربة امتحان احترافية ═════════ */
.qz { background: linear-gradient(180deg, #E6F3F3 0, #F5F9F9 360px); min-height: 72vh; padding-block: 20px 64px; }
.qz__wrap { max-width: 1120px !important; display: grid; gap: 14px; }
.qz__back { justify-self: start; font-size: 14px; font-weight: 800; color: var(--brand-700); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.qz__card { background: #fff; border: 1px solid #E1ECEC; border-radius: 22px; padding: 20px; box-shadow: 0 14px 36px rgba(11, 36, 38, .06); }
.qz__card h2 { margin: 0 0 12px; font-size: 15px; font-weight: 900; color: #0F2E2F; display: flex; align-items: baseline; gap: 8px; }
.qz__card h2 small { font-size: 11.5px; color: #7A8A8C; font-weight: 700; }
.qz__center { text-align: center; } .qz__big { font-size: 44px; }
.qz__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.qz__side { display: grid; gap: 14px; }
.qz__main { background: #fff; border: 1px solid #E1ECEC; border-radius: 24px; overflow: hidden; box-shadow: 0 18px 44px rgba(11, 36, 38, .08); }
.qz__hero { display: flex; align-items: center; gap: 16px; padding: 26px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(93, 211, 213, .35) 0, transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(243, 104, 41, .22) 0, transparent 60%), linear-gradient(135deg, #1F5A5C, #173F40 60%, #0F2E2F); }
.qz__heroav { flex: 0 0 auto; width: 78px; height: 78px; border-radius: 22px; display: grid; place-items: center; background: rgba(255,255,255,.12); box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset; }
.qz__kicker { display: inline-block; font-size: 11.5px; font-weight: 900; letter-spacing: .3px; color: #0F2E2F; background: #8FF3F5; border-radius: 999px; padding: 3px 10px; }
.qz__hero h1 { margin: 8px 0 4px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; color: #fff; }
.qz__hero p { margin: 0; font-size: 13.5px; color: #CDEBEB; }
.qz__stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #EEF3F3; }
.qz__stats div { padding: 16px 10px; text-align: center; display: grid; gap: 2px; border-inline-end: 1px solid #EEF3F3; }
.qz__stats div:last-child { border: 0; }
.qz__stats b { font-size: 22px; font-weight: 900; color: #1F5A5C; direction: ltr; }
.qz__stats span { font-size: 11.5px; color: #7A8A8C; font-weight: 800; letter-spacing: .3px; direction: ltr; }
.qz__rules { list-style: none; margin: 0; padding: 18px 24px 4px; display: grid; gap: 8px; font-size: 13.5px; color: #3E5456; }
.qz__rules i { color: #22A06B; margin-inline-end: 6px; }
.qz__actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 24px 0; }
.qz__restext .qz__actions { padding: 12px 0 0; }
.qz__keys { margin: 0; padding: 12px 24px 22px; font-size: 12px; color: #7A8A8C; }
.qz__keys kbd { font-family: ui-monospace, Menlo, monospace; font-size: 11px; border: 1px solid #D7E4E4; border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: #F6FAFA; color: #1F5A5C; }
.qz__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid #CFE3E3; background: #fff; color: #1F5A5C;
  font-family: inherit; font-size: 14.5px; font-weight: 900; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.qz__btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(31, 90, 92, .14); }
.qz__btn:disabled { opacity: .4; cursor: not-allowed; }
.qz__btn--main { background: linear-gradient(135deg, #2F8E90, #1F5A5C); color: #fff; border-color: transparent; }
.qz__btn--main.is-submit { background: linear-gradient(135deg, #F36829, #D9531B); }
.qz__btn--ghost { border-color: transparent; background: transparent; }
.qz__lessons { display: grid; gap: 6px; }
.qz__lesson { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid #EEF3F3; text-decoration: none; color: #0F2E2F; font-size: 13.5px; font-weight: 800; }
.qz__lesson:hover { border-color: #9ED3D4; }
.qz__lesson.is-cur { background: #EAF5F5; border-color: #5DB9BB; }
.qz__lesson.is-off { opacity: .5; }
.qz__lesson em { font-style: normal; font-size: 12px; font-weight: 900; color: #7A8A8C; direction: ltr; }
.qz__lesson em.is-pass { color: #12703F; } .qz__lesson em.is-fail { color: #B45309; }
.qz__att { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid #EEF3F3; background: #fff; font-family: inherit; cursor: pointer; margin-bottom: 6px; text-align: start; color: #3E5456; font-size: 12.5px; }
.qz__att:hover { border-color: #9ED3D4; }
.qz__att b { min-width: 52px; font-size: 16px; font-weight: 900; direction: ltr; }
.qz__att b.is-pass { color: #12703F; } .qz__att b.is-fail { color: #B45309; }
.qz__att span { flex: 1; direction: ltr; text-align: start; }
.qz__att i { color: #9CA3AF; }
.qz__focus h2 i { color: #D97706; }
.qz__fitem { display: grid; gap: 6px; padding: 10px 0; border-top: 1px dashed #F1E3C0; }
.qz__fitem:first-of-type { border-top: 0; }
.qz__fitem > div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.qz__fitem > div span { color: #92400E; font-weight: 800; font-size: 12px; }
.qz__fbar { height: 6px; border-radius: 999px; background: #FDF1D0; overflow: hidden; } .qz__fbar span { display: block; height: 100%; background: #F59E0B; }
.qz__fitem a { font-size: 12px; font-weight: 800; color: #92400E; text-decoration: none; }
/* الامتحان */
.qz__exam { max-width: 820px; width: 100%; justify-self: center; padding: 26px; }
.qz__examtop { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; color: #5B6B6D; }
.qz__count { font-size: 14px; font-weight: 900; color: #0F2E2F; }
.qz__diff { border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 900; }
.qz__diff.is-easy { background: #E7F6EC; color: #12703F; } .qz__diff.is-medium { background: #FEF3C7; color: #92400E; } .qz__diff.is-hard { background: #FEE2E2; color: #B42318; }
.qz__timer { margin-left: auto; font-variant-numeric: tabular-nums; color: #7A8A8C; }
.qz__prog { height: 6px; margin: 14px 0 0; background: #EEF3F3; border-radius: 999px; overflow: hidden; }
.qz__prog span { display: block; height: 100%; background: linear-gradient(90deg, #5DD3D5, #1F5A5C); transition: width .3s ease; }
.qz__q { margin: 24px 0 18px; font-family: "Inter", "Cairo", system-ui, sans-serif; font-size: clamp(17px, 2.1vw, 20px); font-weight: 700; line-height: 1.65; color: #0F2E2F; text-align: left; }
.qz__opts { display: grid; gap: 10px; }
.qz__opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 16px; border: 2px solid #E4EDED; background: #fff;
  font-family: "Inter", "Cairo", system-ui, sans-serif; font-size: 15.5px; color: #1F2D2E; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .1s ease; }
.qz__opt:hover { border-color: #9ED3D4; background: #F8FCFC; }
.qz__opt:active { transform: scale(.995); }
.qz__opt.is-on { border-color: #2F8E90; background: #EAF5F5; box-shadow: 0 0 0 4px rgba(47, 142, 144, .12); }
.qz__key { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #F1F5F5; font-family: "Inter", system-ui, sans-serif; font-weight: 900; color: #1F5A5C; }
.qz__opt.is-on .qz__key { background: #1F5A5C; color: #fff; }
.qz__otext { flex: 1; line-height: 1.6; }
.qz__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; }
.qz__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.qz__dot { width: 30px; height: 30px; border-radius: 9px; border: 1px solid #DDE8E8; background: #fff; font-family: "Inter", system-ui, sans-serif; font-size: 12px; font-weight: 900; color: #7A8A8C; cursor: pointer; }
.qz__dot.is-done { background: #D3ECEC; color: #1F5A5C; border-color: #BFE3E3; }
.qz__dot.is-cur { background: #1F5A5C; color: #fff; border-color: #1F5A5C; }
/* النتيجة */
.qz__res { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.qz__ring { --p: 0; --c: #22A06B; width: 150px; height: 150px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), #EEF3F3 0); }
.qz__res.is-fail .qz__ring { --c: #F59E0B; }
.qz__ring b { font-size: 34px; font-weight: 900; color: #0F2E2F; line-height: 1.1; direction: ltr; }
.qz__ring small { font-size: 13px; color: #66777A; font-weight: 800; direction: ltr; }
.qz__restext { flex: 1; min-width: 240px; }
.qz__restext h1 { margin: 8px 0 4px; font-size: 24px; font-weight: 900; }
.qz__restext p { margin: 4px 0; color: #4B5B5D; }
.qz__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; justify-content: flex-end; }
.qz__chip { border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 900; background: #F3F4F6; color: #4B5563; }
.qz__chip.is-ok { background: #E7F6EC; color: #12703F; } .qz__chip.is-bad { background: #FEF2F2; color: #B42318; }
.qz__weak { background: #FFFBEB; border-radius: 10px; padding: 8px 12px; color: #92400E !important; font-weight: 800; display: inline-block; }
.qz__rtitle { margin: 26px 0 12px; font-size: 18px; font-weight: 900; }
.qz__item { border: 1px solid #E4EDED; border-radius: 18px; padding: 16px; margin-bottom: 12px; background: #fff; }
.qz__item.is-wrong { border-color: #FBD5D5; background: #FFFBFB; }
.qz__ihead { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; line-height: 1.7; font-family: "Inter", "Cairo", system-ui, sans-serif; text-align: left; }
.qz__mark { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: #22A06B; font-size: 13px; }
.qz__item.is-wrong .qz__mark { background: #DC2626; }
.qz__ropt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; margin-top: 6px; font-size: 14px; background: #F8FAFA; text-align: left; font-family: "Inter", "Cairo", system-ui, sans-serif; }
.qz__ropt .qz__key { flex-basis: 28px; height: 28px; font-size: 12.5px; border-radius: 8px; }
.qz__ropt em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 900; white-space: nowrap; }
.qz__ropt.is-correct { background: #E7F6EC; border: 1px solid #BCE6CC; } .qz__ropt.is-correct em { color: #12703F; } .qz__ropt.is-correct .qz__key { background: #22A06B; color: #fff; }
.qz__ropt.is-chosen { background: #FEF2F2; border: 1px solid #FBD5D5; } .qz__ropt.is-chosen em { color: #B42318; } .qz__ropt.is-chosen .qz__key { background: #DC2626; color: #fff; }
.qz__exp { margin: 12px 0 6px; background: #F6FAFA; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; line-height: 1.8; color: #374151; }
.qz__exp p { margin: 0; } .qz__exp p[dir="ltr"] { text-align: left; font-family: "Inter", "Cairo", system-ui, sans-serif; }
.qz__exp-ar { margin-top: 6px !important; padding-top: 6px; border-top: 1px dashed #D7E4E4; color: #4B5B5D; }
.qz__src { display: inline-block; font-size: 12.5px; font-weight: 800; color: var(--brand-700); text-decoration: none; margin-top: 4px; }
.qz__skip { font-size: 13px; color: #B42318; margin: 8px 0 0; text-align: left; }
.qz__loading { position: fixed; inset: 0; z-index: 990; background: rgba(246, 250, 250, .88); display: grid; place-content: center; justify-items: center; gap: 14px; font-size: 15px; color: var(--brand-800); }
.qz__loading[hidden] { display: none; }
.qz__spin { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #D3ECEC; border-top-color: #1F5A5C; animation: lqSpin .9s linear infinite; }
@media (max-width: 900px) { .qz__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .qz__hero { padding: 20px; } .qz__heroav { width: 60px; height: 60px; border-radius: 18px; } .qz__heroav .aibot { width: 46px; height: 46px; }
  .qz__stats { grid-template-columns: repeat(2, 1fr); } .qz__stats div:nth-child(2) { border-inline-end: 0; } .qz__stats div:nth-child(-n+2) { border-bottom: 1px solid #EEF3F3; }
  .qz__actions .qz__btn { flex: 1 1 100%; }
  .qz__exam { padding: 18px; } .qz__nav { flex-wrap: wrap; } .qz__dots { order: 3; width: 100%; }
  .qz__nav .qz__btn { flex: 1; }
}
.qz [hidden] { display: none !important; }   /* display:grid كان يتغلّب على hidden فتبقى البداية ظاهرة */
.qz__prog { direction: ltr; }
/* الواجهة عربية — السؤال والخيارات وحدها بالإنجليزية */
.qz__stats span { direction: rtl; letter-spacing: 0; font-size: 12px; }
.qz__timer { margin-left: 0; margin-inline-start: auto; }
.qz__exph { display: block; font-size: 12.5px; font-weight: 900; color: #1F5A5C; margin-bottom: 6px; }
.qz__exp .qz__exp-ar { margin: 0 !important; padding: 0; border: 0; color: #263B3C; font-size: 14px; line-height: 1.9; }
.qz__exp .qz__exp-en { margin-top: 8px !important; padding-top: 8px; border-top: 1px dashed #D7E4E4; color: #5B6B6D; font-size: 13px; text-align: left; font-family: "Inter", "Cairo", system-ui, sans-serif; }
.qz__chips { justify-content: flex-start; }
.qz__lesson.is-buy { opacity: 1; border-style: dashed; border-color: #F9C49E; background: #FFF8F3; }
.qz__lesson.is-buy em { color: #D9531B; }
.qz__btn--warn { background: #FFF4EC; border-color: #F9C49E; color: #B8430F; }
/* «عندك اختبار لم تكمله» */
.qz__resume { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 18px 24px 0; padding: 14px 16px; border-radius: 16px; background: #FFF8EC; border: 1px solid #FBD9A5; }
.qz__resico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #F59E0B; color: #fff; font-size: 18px; }
.qz__resume > div { flex: 1; min-width: 200px; display: grid; }
.qz__resume b { font-size: 15px; color: #7C2D12; } .qz__resume small { font-size: 12.5px; color: #92400E; line-height: 1.7; }

/* خطوتا البداية: ١ اختر الدرس · ٢ ابدأ الاختبار */
.qz__step { display: flex; align-items: flex-start; gap: 12px; padding: 18px 24px 8px; }
.qz__stepn { flex: 0 0 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #1F5A5C; color: #fff; font-weight: 900; font-size: 15px; }
.qz__step b { display: block; font-size: 16px; font-weight: 900; color: #0F2E2F; }
.qz__step small { display: block; font-size: 12.5px; color: #66777A; }
.qz__pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; padding: 6px 24px 8px 24px; }
.qz__pl { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 2px solid #E4EDED; background: #fff; text-decoration: none; color: #0F2E2F; transition: border-color .15s ease, box-shadow .15s ease; }
.qz__pl:hover { border-color: #9ED3D4; }
.qz__pl.is-cur { border-color: #2F8E90; background: #F2FAFA; box-shadow: 0 0 0 4px rgba(47, 142, 144, .12); }
.qz__plr { flex: 0 0 20px; height: 20px; border-radius: 50%; border: 2px solid #BFD3D4; display: grid; place-items: center; font-size: 11px; }
.qz__pl.is-cur .qz__plr { border-color: #1F5A5C; background: radial-gradient(circle, #1F5A5C 45%, #fff 48%); }
.qz__plt { flex: 1; min-width: 0; display: grid; }
.qz__plt b { font-size: 14px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qz__plt small { font-size: 11.5px; color: #7A8A8C; }
.qz__pl em { font-style: normal; font-weight: 900; font-size: 13px; direction: ltr; } .qz__pl em.is-pass { color: #12703F; } .qz__pl em.is-fail { color: #B45309; }
.qz__plok { position: absolute; top: -10px; inset-inline-start: 12px; font-style: normal; font-size: 11px; font-weight: 900; background: #1F5A5C; color: #fff; border-radius: 999px; padding: 1px 9px; }
.qz__pl.is-lock { border-style: dashed; border-color: #F9C49E; background: #FFF8F3; }
.qz__pl.is-lock small { color: #D9531B; font-weight: 800; }
.qz__pl.is-off { opacity: .55; }
.qz__main .qz__stats { margin-top: 8px; border-top: 1px solid #EEF3F3; }
@media (max-width: 640px) { .qz__step, .qz__pick { padding-inline: 16px; } .qz__pick { grid-template-columns: 1fr; } }
.qz__grid--solo { grid-template-columns: minmax(0, 860px); justify-content: center; } .qz__grid--solo .qz__side { display: none; }

/* «0:10 من 2:08:50» بترتيب عربي صحيح (ic-num كان يقلب السطر كله LTR) */
#watchTimeDetail { direction: rtl; unicode-bidi: isolate; }

/* «توقفت المشاهدة» على شاشة الجوال: نص أصغر ومرتب داخل مساحة الفيديو الصغيرة */
@media (max-width: 640px) {
  .focus-cover { padding: 10px; }
  .focus-cover > div { gap: 4px; max-width: 92%; }
  .focus-cover i { width: 36px; height: 36px; font-size: 14px; }
  .focus-cover b { font-size: 14px; }
  .focus-cover p { font-size: 11.5px; line-height: 1.6; margin: 0; }
  .focus-cover button { min-height: 34px; padding: 0 14px; font-size: 12.5px; border-radius: 10px; }
}
@media (max-width: 380px) { .focus-cover p { display: none; } }
/* زر تقرير المستوى PDF — واضح ومرتب */
.qz__btn--pdf { background: #fff; border: 1.5px solid #F3B48C; color: #C2410C; gap: 10px; }
.qz__btn--pdf i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #FFF1E7; color: #EA580C; font-size: 13px; }
.qz__btn--pdf:hover { background: #FFF8F3; border-color: #F36829; }

/* ═════════ المعلّم الذكي — رصيدي ═════════ */
.aw { background: linear-gradient(180deg, #E6F3F3 0, #F5F9F9 320px); padding-block: 20px 64px; min-height: 70vh; }
.aw__wrap { max-width: 1080px !important; display: grid; gap: 16px; }
.aw__flash { border-radius: 14px; padding: 12px 16px; font-weight: 800; font-size: 14px; }
.aw__flash.is-ok { background: #E7F6EC; color: #12703F; border: 1px solid #BCE6CC; } .aw__flash.is-err { background: #FEF2F2; color: #B42318; border: 1px solid #FBD5D5; }
.aw__hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 24px; border-radius: 24px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(93, 211, 213, .35) 0, transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(243, 104, 41, .22) 0, transparent 60%), linear-gradient(135deg, #1F5A5C, #173F40 60%, #0F2E2F);
  box-shadow: 0 18px 40px rgba(15, 46, 47, .22); }
.aw__av { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: rgba(255,255,255,.12); box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset; }
.aw__htxt { flex: 1; min-width: 220px; }
.aw__kick { display: inline-block; font-size: 11.5px; font-weight: 900; color: #0F2E2F; background: #8FF3F5; border-radius: 999px; padding: 3px 10px; }
.aw__hero h1 { margin: 6px 0 4px; font-size: 26px; font-weight: 900; color: #fff; }
.aw__hero p { margin: 0; color: #CDEBEB; font-size: 13.5px; line-height: 1.8; }
.aw__big { display: grid; justify-items: center; gap: 2px; padding: 14px 22px; border-radius: 20px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); min-width: 180px; }
.aw__big b { font-size: 44px; font-weight: 900; line-height: 1.1; }
.aw__big span { font-size: 12.5px; color: #CDEBEB; font-weight: 800; }
.aw__cta { margin-top: 8px; background: #F36829; color: #fff; border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 900; text-decoration: none; box-shadow: 0 8px 18px rgba(243, 104, 41, .35); }
.aw__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aw__card { background: #fff; border: 1px solid #E1ECEC; border-radius: 22px; padding: 20px; box-shadow: 0 12px 30px rgba(11, 36, 38, .05); }
.aw__card h2 { margin: 0 0 14px; font-size: 17px; font-weight: 900; color: #0F2E2F; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.aw__card h2 small { font-size: 12px; color: #7A8A8C; font-weight: 700; }
.aw__credit { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: #F6FAFA; border: 1px solid #E8F0F0; margin-bottom: 10px; }
.aw__credit.is-pack { background: #F5F3FF; border-color: #E4DEFD; }
.aw__ch { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.aw__ch span { font-weight: 900; color: #1F5A5C; }
.aw__credit small { font-size: 12px; color: #6B7B7D; }
.aw__bar { height: 7px; border-radius: 999px; background: #E4EDED; overflow: hidden; } .aw__bar i { display: block; height: 100%; background: linear-gradient(90deg, #5DD3D5, #1F5A5C); }
.aw__credit.is-pack .aw__bar i { background: linear-gradient(90deg, #A78BFA, #6D28D9); }
.aw__note { margin: 6px 0 0; font-size: 12px; color: #7A8A8C; }
.aw__muted { color: #7A8A8C; font-size: 13.5px; }
.aw__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.aw__stats div { text-align: center; padding: 12px 6px; border-radius: 14px; background: #F6FAFA; } .aw__stats b { display: block; font-size: 22px; font-weight: 900; color: #1F5A5C; } .aw__stats span { font-size: 11.5px; color: #7A8A8C; font-weight: 800; }
.aw__courses { display: grid; gap: 8px; }
.aw__course { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #EEF3F3; border-radius: 14px; }
.aw__course > div { flex: 1; min-width: 0; display: grid; } .aw__course b { font-size: 14px; } .aw__course small { font-size: 11.5px; color: #7A8A8C; }
.aw__course a { font-size: 12.5px; font-weight: 900; text-decoration: none; padding: 6px 12px; border-radius: 10px; background: #1F5A5C; color: #fff; white-space: nowrap; }
.aw__course a.is-ghost { background: #fff; color: #1F5A5C; border: 1px solid #CFE3E3; }
.aw__packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.aw__pack { position: relative; display: grid; gap: 4px; padding: 18px 16px 14px; border-radius: 18px; border: 2px solid #E4EDED; text-align: center; background: #fff; }
.aw__pack.is-best { border-color: #F36829; box-shadow: 0 12px 26px rgba(243, 104, 41, .15); }
.aw__best { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #F36829; color: #fff; border-radius: 999px; padding: 2px 12px; font-size: 11.5px; font-weight: 900; white-space: nowrap; }
.aw__pn { font-size: 14px; color: #3E5456; } .aw__pq { font-size: 30px; font-weight: 900; color: #0F2E2F; line-height: 1.2; } .aw__pq small { font-size: 13px; font-weight: 800; color: #66777A; }
.aw__pp { font-size: 20px; font-weight: 900; color: #1F5A5C; } .aw__pp small { font-size: 12px; } .aw__pv { font-size: 11.5px; color: #7A8A8C; }
.aw__pay > summary { list-style: none; margin-top: 10px; cursor: pointer; border-radius: 12px; padding: 10px; font-weight: 900; font-size: 14px; color: #fff; background: linear-gradient(135deg, #2F8E90, #1F5A5C); }
.aw__pack.is-best .aw__pay > summary { background: linear-gradient(135deg, #F36829, #D9531B); }
.aw__pay > summary::-webkit-details-marker { display: none; } .aw__pay[open] > summary { opacity: .55; }
.aw__opts { display: grid; gap: 8px; margin-top: 10px; } .aw__opts form { margin: 0; }
.aw__opt { width: 100%; display: flex; align-items: center; gap: 10px; text-align: start; padding: 10px 12px; border-radius: 12px; border: 1px solid #CFE3E3; background: #fff; font-family: inherit; color: #0F2E2F; cursor: pointer; }
.aw__opt > i { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; display: grid; place-items: center; background: #EAF5F5; color: #1F5A5C; }
.aw__opt span { display: grid; } .aw__opt b { font-size: 13.5px; } .aw__opt small { font-size: 11px; color: #66777A; }
.aw__opt.is-main { background: #1F5A5C; color: #fff; border-color: transparent; } .aw__opt.is-main b, .aw__opt.is-main small { color: #fff; } .aw__opt.is-main > i { background: rgba(255,255,255,.18); color: #fff; }
.aw__moves { display: grid; gap: 6px; }
.aw__move { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #F8FAFA; }
.aw__mi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #fff; border: 1px solid #E4EDED; }
.aw__move > div { flex: 1; min-width: 0; display: grid; } .aw__move b { font-size: 13.5px; } .aw__move small { font-size: 11.5px; color: #7A8A8C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw__move em { font-style: normal; font-weight: 900; font-size: 15px; } .aw__move em.is-pos { color: #12703F; } .aw__move em.is-neg { color: #B42318; }
@media (max-width: 820px) { .aw__grid { grid-template-columns: 1fr; } .aw__big { width: 100%; } }
.qz__done { display: flex; align-items: center; gap: 12px; margin: 16px 24px 0; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #ECFDF5, #F0FAF4); border: 1px solid #BBF7D0; }
.qz__doneico { font-size: 26px; } .qz__done > div { display: grid; } .qz__done b { color: #065F46; font-size: 15px; } .qz__done small { color: #166534; font-size: 12.5px; line-height: 1.7; }
.qz__cov { margin: 12px 24px 0; font-size: 12.5px; color: #66777A; } .qz__cov b { color: #1F5A5C; }
.qz__recy { margin: 10px 0 0; font-size: 12.5px; font-weight: 800; color: #92400E; background: #FFFBEB; border-radius: 10px; padding: 6px 10px; }
/* صف الدورة في «استعمالك»: اسم الدورة سطرًا، والزران تحته بعرض متساوٍ */
.aw__course { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
.aw__cinfo { display: flex; align-items: center; gap: 10px; }
.aw__cico { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; display: grid; place-items: center; background: #EAF5F5; color: #1F5A5C; }
.aw__cinfo > div { display: grid; min-width: 0; } .aw__cinfo b { font-size: 14.5px; }
.aw__cacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aw__cacts a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 10px !important; border-radius: 12px !important; }
/* أزرار «اختبر فهمك»: الرئيسي بعرض كامل، ثم الخيارات الأخرى بجانب بعض، ثم التقرير */
.qz__main .qz__actions, .qz__restext .qz__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qz__main .qz__actions > .qz__btn { width: 100%; }
.qz__main .qz__actions > .qz__btn--main, .qz__restext .qz__actions > .qz__btn--main { grid-column: 1 / -1; min-height: 52px; font-size: 15.5px; }
.qz__main .qz__actions > .qz__btn:only-child { grid-column: 1 / -1; }
.qz__main .qz__actions > .qz__btn--pdf, .qz__restext .qz__actions > .qz__btn--pdf { grid-column: 1 / -1; justify-content: center; }
.qz__restext .qz__actions > .qz__btn--ghost { grid-column: 1 / -1; min-height: 40px; }
.qz__main .qz__actions { padding-bottom: 22px; }
@media (max-width: 520px) { .qz__main .qz__actions, .qz__restext .qz__actions { grid-template-columns: 1fr; } }

/* ═════════ الرئيسية: قسم «معلّمك الذكي» ═════════ */
.hm-ai { padding-block: 26px 10px; }
.hm-ai__card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; padding: 34px; border-radius: 30px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(93, 211, 213, .35) 0, transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(243, 104, 41, .28) 0, transparent 60%), linear-gradient(135deg, #1F5A5C 0%, #173F40 60%, #0F2E2F 100%);
  box-shadow: 0 26px 60px rgba(15, 46, 47, .25); }
.hm-ai__card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12; background-image: radial-gradient(rgba(255,255,255,.6) 1px, transparent 1.2px); background-size: 16px 16px; }
.hm-ai__card > * { position: relative; z-index: 1; }
.hm-ai__badge { display: inline-block; font-size: 12px; font-weight: 900; color: #0F2E2F; background: #8FF3F5; border-radius: 999px; padding: 4px 12px; }
.hm-ai__text h2 { margin: 12px 0 8px; font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; line-height: 1.3; color: #fff; }
.hm-ai__text h2 em { font-style: normal; color: #FDBA74; }
.hm-ai__text > p { margin: 0 0 16px; color: #D6EFEF; font-size: 15.5px; line-height: 1.9; max-width: 560px; }
.hm-ai__list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-ai__list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #EAF8F8; }
.hm-ai__list i { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(143, 243, 245, .15); color: #8FF3F5; }
.hm-ai__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hm-ai__cta .ui-btn--primary { background: #F36829; border-color: #F36829; box-shadow: 0 12px 26px rgba(243, 104, 41, .4); }
.hm-ai__free { font-size: 13.5px; font-weight: 800; color: #FDE2CF; }
.hm-ai__demo { position: relative; justify-self: center; width: min(340px, 100%); }
.hm-ai__phone { background: #F5F9F9; border-radius: 26px; padding: 12px; color: #0F2E2F; box-shadow: 0 24px 50px rgba(0,0,0,.28), 0 0 0 8px rgba(255,255,255,.08); transform: rotate(-2deg); }
.hm-ai__bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 16px; background: linear-gradient(135deg, #1F5A5C, #173F40); color: #fff; font-size: 13px; }
.hm-ai__bar i { margin-inline-start: auto; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }
.hm-ai__av { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.hm-ai__me { margin: 12px 0 10px auto; width: fit-content; max-width: 88%; background: #1F5A5C; color: #fff; border-radius: 16px 16px 4px 16px; padding: 9px 12px; font-size: 12.5px; font-weight: 700; }
.hm-ai__bot { background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 6px 18px rgba(15, 46, 47, .08); font-size: 12.5px; }
.hm-ai__bot p { margin: 6px 0; line-height: 1.8; }
.hm-ai__src { display: inline-block; font-size: 11px; font-weight: 900; color: #12703F; background: #E7F6EC; border-radius: 999px; padding: 2px 9px; }
.hm-ai__step { display: flex; align-items: center; gap: 8px; } .hm-ai__step > b:first-child { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: #1F5A5C; color: #fff; font-size: 11px; }
.hm-ai__ref { display: inline-block; font-size: 11px; font-weight: 800; color: #26706F; background: #F4F9F9; border: 1px solid #E1ECEC; border-radius: 999px; padding: 1px 8px; }
.hm-ai__score { position: absolute; bottom: -14px; inset-inline-start: -18px; display: grid; justify-items: center; padding: 10px 16px; border-radius: 18px; background: #fff; color: #0F2E2F; box-shadow: 0 16px 34px rgba(0,0,0,.22); transform: rotate(3deg); }
.hm-ai__score b { font-size: 24px; font-weight: 900; color: #12703F; line-height: 1.1; } .hm-ai__score span { font-size: 11.5px; font-weight: 800; color: #66777A; }
@media (max-width: 900px) { .hm-ai__card { grid-template-columns: 1fr; padding: 24px; } .hm-ai__demo { margin-top: 6px; } }
@media (max-width: 520px) { .hm-ai__list { grid-template-columns: 1fr; } .hm-ai__score { inset-inline-start: 0; } }

/* رابط الأسئلة الشائعة (بدل القسم الطويل) */
.hm-faqcta { padding-block: 6px 16px; }
.hm-faqlink { display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 0 auto; padding: 16px 20px; border-radius: 20px; background: #fff; border: 1px solid #DCEBEB; color: #0F2E2F; text-decoration: none; box-shadow: 0 10px 26px rgba(15, 46, 47, .06); }
.hm-faqlink > i:first-child { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #EAF5F5; color: #1F5A5C; font-size: 20px; }
.hm-faqlink span { flex: 1; display: grid; } .hm-faqlink b { font-size: 15px; } .hm-faqlink small { font-size: 12.5px; color: #66777A; }
.hm-faqlink > i:last-child { color: #26706F; }
.hm-faqlink:hover { border-color: #9ED3D4; }
.hm-faqpage .hm-faq2__intro h1 { margin: 10px 0; font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.3; }
.aw__course > .aw__cinfo { display: flex; flex: none; }
.aw__course > .aw__cacts { display: grid; flex: none; }

/* شارة «معلّم ذكي» في الواجهة: سطر واحد وبشخصية المعلّم */
.hm-trust__ai { white-space: nowrap; }
.hm-trust__bot { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #EAF9F9, #D3ECEC); box-shadow: 0 6px 14px rgba(47, 142, 144, .18); }
.hm-trust__ai > span:last-child { white-space: nowrap; }

/* ═════════ الرئيسية: «اختبر فهمك» مجاني لكل درس ═════════ */
.hm-qz { padding-block: 14px 10px; }
.hm-qz__card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: center; padding: 30px; border-radius: 28px; background: linear-gradient(135deg, #FFFFFF, #FFF7F0 70%, #FFEFE3); border: 1px solid #FBE0CC; box-shadow: 0 18px 44px rgba(243, 104, 41, .08); }
.hm-qz__badge { display: inline-block; font-size: 12px; font-weight: 900; color: #fff; background: #F36829; border-radius: 999px; padding: 4px 12px; }
.hm-qz__text h2 { margin: 12px 0 8px; font-size: clamp(24px, 3vw, 34px); font-weight: 900; color: #0F2E2F; }
.hm-qz__text p { margin: 0 0 16px; color: #4B5B5D; font-size: 15px; line-height: 1.9; max-width: 560px; }
.hm-qz__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-qz__chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid #FBD9BF; font-size: 13px; font-weight: 800; color: #7C2D12; }
.hm-qz__chips i { color: #16A34A; }
.hm-qz__demo { position: relative; justify-self: center; width: min(330px, 100%); }
.hm-qz__q { display: grid; gap: 8px; padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 18px 40px rgba(15, 46, 47, .12); direction: ltr; text-align: left; font-family: "Inter", "Cairo", system-ui, sans-serif; transform: rotate(-1.5deg); }
.hm-qz__top { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 800; color: #5B6B6D; } .hm-qz__top em { font-style: normal; background: #E7F6EC; color: #12703F; border-radius: 999px; padding: 1px 8px; }
.hm-qz__q > b { font-size: 14px; color: #0F2E2F; line-height: 1.5; }
.hm-qz__opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid #E4EDED; font-size: 13px; color: #1F2D2E; }
.hm-qz__opt i { font-style: normal; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: #F1F5F5; font-weight: 900; color: #1F5A5C; font-size: 12px; }
.hm-qz__opt.is-ok { border-color: #22A06B; background: #E7F6EC; } .hm-qz__opt.is-ok i { background: #22A06B; color: #fff; }
.hm-qz__ring { position: absolute; bottom: -16px; inset-inline-end: -14px; display: grid; justify-items: center; padding: 10px 16px; border-radius: 18px; background: #0F2E2F; color: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.2); transform: rotate(3deg); }
.hm-qz__ring b { font-size: 22px; font-weight: 900; color: #8FF3F5; line-height: 1.1; } .hm-qz__ring span { font-size: 11px; font-weight: 800; }
@media (max-width: 900px) { .hm-qz__card { grid-template-columns: 1fr; padding: 22px; } .hm-qz__text { order: -1; } }
.aw__packs { align-items: start; }
/* أيقونة «معلّم ذكي» بنفس إطار باقي الشارات وفي منتصفه (كانت ترث قاعدة نص الشارة فتنزاح) */
.hm-trust > div > span.hm-trust__bot { display: grid !important; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; padding: 0; gap: 0; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.hm-trust > div > span.hm-trust__bot .aibot { display: block; margin: 0 auto; transform: translateY(1px); }
.hm-trust__ai { white-space: normal; }
@media (max-width: 640px) { .hm-trust > div > span.hm-trust__bot { width: 34px; height: 34px; flex-basis: 34px; } .hm-trust > div > span.hm-trust__bot .aibot { width: 24px; height: 24px; } }

/* «اختبر فهمك» v2: إبراز «مجاني لكل درس» */
.hm-qz__card { grid-template-columns: 1.2fr .8fr; background: linear-gradient(135deg, #FFFFFF 0%, #F3FBF7 55%, #E6F6EE 100%); border-color: #CDEBD9; box-shadow: 0 18px 44px rgba(18, 112, 63, .08); }
.hm-qz__text { order: 0; }
.hm-qz__free { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 18px; background: #fff; border: 1.5px solid #BBF7D0; box-shadow: 0 8px 20px rgba(18, 112, 63, .08); }
[dir="rtl"] .hm-qz__free { padding: 8px 8px 8px 18px; }
.hm-qz__free b { display: grid; place-items: center; padding: 8px 16px; border-radius: 12px; background: linear-gradient(135deg, #16A34A, #12703F); color: #fff; font-size: 20px; font-weight: 900; letter-spacing: .3px; }
.hm-qz__free span { font-size: 13px; font-weight: 800; color: #166534; line-height: 1.6; }
.hm-qz__text h2 { margin-top: 16px; }
.hm-qz__badge, .hm-qz__chips { display: none; }
.hm-qz__feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-qz__feats > div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #DDF0E4; }
.hm-qz__feats i { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; display: grid; place-items: center; background: #E7F6EC; color: #12703F; }
.hm-qz__feats span { display: grid; font-size: 12px; color: #5B6B6D; line-height: 1.5; } .hm-qz__feats b { font-size: 14px; color: #0F2E2F; }
.hm-qz__stamp { position: absolute; top: -14px; inset-inline-start: -10px; z-index: 2; padding: 6px 14px; border-radius: 999px; background: #16A34A; color: #fff; font-size: 13px; font-weight: 900; box-shadow: 0 8px 18px rgba(22, 163, 74, .35); transform: rotate(-6deg); }
.hm-qz__opt u { margin-left: auto; text-decoration: none; color: #16A34A; font-weight: 900; }
@media (max-width: 900px) { .hm-qz__card { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hm-qz__feats { grid-template-columns: 1fr; } .hm-qz__free b { font-size: 17px; } }
.hm-qz__stamp { inset-inline-start: auto; left: -12px; top: -14px; }
.hm-qz__ring { inset-inline-end: auto; inset-inline-start: auto; right: -16px; left: auto; bottom: -18px; }
@media (max-width: 520px) { .hm-qz__ring { right: -4px; bottom: -14px; } .hm-qz__stamp { left: -4px; } }

/* «كيف يعمل معلّمك الذكي؟» */
.aw__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.aw__steps li { position: relative; display: grid; gap: 8px; padding: 16px; border-radius: 18px; background: linear-gradient(180deg, #F6FBFB, #fff); border: 1px solid #E1ECEC; }
.aw__steps li:not(:last-child)::after { content: ""; position: absolute; top: 34px; inset-inline-end: -12px; width: 12px; height: 2px; background: #BFE3E3; }
.aw__sn { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #2F8E90, #1F5A5C); color: #fff; font-weight: 900; font-size: 16px; }
.aw__steps li:last-child .aw__sn { background: linear-gradient(135deg, #F36829, #D9531B); }
.aw__steps b { font-size: 15px; color: #0F2E2F; } .aw__steps p { margin: 2px 0 0; font-size: 12.8px; color: #5B6B6D; line-height: 1.8; }
.aw__rules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.aw__rules span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #F6FAFA; border: 1px solid #E4EDED; font-size: 12.5px; font-weight: 800; color: #3E5456; }
.aw__rules i { color: #22A06B; }
@media (max-width: 900px) { .aw__steps { grid-template-columns: 1fr 1fr; } .aw__steps li::after { display: none; } }
@media (max-width: 520px) { .aw__steps { grid-template-columns: 1fr; } }

/* «اختبر فهمك» بالبرتقالي (هوية «مجاني») */
.hm-qz__card { background: radial-gradient(90% 120% at 100% 0%, rgba(243, 104, 41, .10) 0, transparent 60%), linear-gradient(135deg, #FFFFFF 0%, #FFF8F2 55%, #FFEFE3 100%); border-color: #FBD9BF; box-shadow: 0 22px 50px rgba(243, 104, 41, .12); }
.hm-qz__free { border-color: #FBC9A6; box-shadow: 0 10px 24px rgba(243, 104, 41, .14); }
.hm-qz__free b { background: linear-gradient(135deg, #F7893F, #E3561B); box-shadow: 0 6px 16px rgba(243, 104, 41, .35); }
.hm-qz__free span { color: #9A3412; }
.hm-qz__text h2 em { font-style: normal; color: #F36829; }
.hm-qz__feats > div { border-color: #FCE3D1; transition: transform .15s ease, box-shadow .15s ease; }
.hm-qz__feats > div:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(243, 104, 41, .10); }
.hm-qz__feats i { background: #FFF1E7; color: #E3561B; }
.hm-qz__stamp { background: linear-gradient(135deg, #F7893F, #E3561B); box-shadow: 0 8px 18px rgba(243, 104, 41, .4); }
.hm-qz__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 22px; border-radius: 14px; background: linear-gradient(135deg, #F7893F, #E3561B); color: #fff; font-weight: 900; text-decoration: none; box-shadow: 0 12px 26px rgba(243, 104, 41, .35); }
.hm-qz__cta:hover { filter: brightness(1.05); }

/* «اختبر فهمك» v3: نفس ارتفاع وبنية قسم المعلّم الذكي، و«مجاني» كشارة أنيقة لا مربع */
.hm-qz__card { grid-template-columns: 1.15fr .85fr; gap: 28px; padding: 30px 34px; border-radius: 30px; }
.hm-qz__pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #F7893F, #E3561B); box-shadow: 0 8px 18px rgba(243, 104, 41, .3); }
.hm-qz__text h2 { margin: 12px 0 8px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.3; }
.hm-qz__text p { margin: 0 0 16px; font-size: 15.5px; }
.hm-qz__list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-qz__list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #3E2A1E; }
.hm-qz__list i { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; display: grid; place-items: center; background: #FFF1E7; color: #E3561B; }
.hm-qz__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hm-qz__row .hm-qz__cta { margin-top: 0; }
.hm-qz__zero { font-size: 13.5px; font-weight: 800; color: #9A3412; }
.hm-qz__zero b { display: inline-block; margin-inline-end: 6px; padding: 2px 10px; border-radius: 8px; background: #FFF1E7; border: 1px dashed #F3B48C; color: #E3561B; font-size: 14px; font-weight: 900; direction: ltr; }
.hm-qz__free, .hm-qz__feats, .hm-qz__stamp { display: none !important; }
.hm-qz__demo { width: min(320px, 100%); }
.hm-qz__q { padding: 14px; gap: 7px; }
.hm-qz__opt { padding: 7px 10px; }
@media (max-width: 900px) { .hm-qz__card { grid-template-columns: 1fr; padding: 24px; } }
@media (max-width: 520px) { .hm-qz__list { grid-template-columns: 1fr; } }
.hm-qz__zero b { direction: rtl; unicode-bidi: isolate; }

/* «كيف يعمل معلّمك الذكي؟» v2 — خط زمني أفقي مرتب، مضغوط على الجوال */
.aw__how { padding: 22px 22px 18px; }
.aw__howhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.aw__howhead h2 { margin: 0 !important; }
.aw__howhead span { font-size: 12.5px; font-weight: 800; color: #7A8A8C; }
.aw__flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.aw__flow::before { content: ""; position: absolute; top: 27px; inset-inline: 12.5%; height: 2px; background: repeating-linear-gradient(90deg, #BFE3E3 0 8px, transparent 8px 14px); }
.aw__flow li { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 0 8px; }
.aw__fi { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, #2F8E90, #1F5A5C); box-shadow: 0 10px 22px rgba(31, 90, 92, .22); }
.aw__fi em { position: absolute; top: -7px; inset-inline-end: -7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11.5px; font-weight: 900; background: #fff; color: #1F5A5C; border: 2px solid #D3ECEC; }
.aw__flow li.is-free .aw__fi { background: linear-gradient(135deg, #F7893F, #E3561B); box-shadow: 0 10px 22px rgba(243, 104, 41, .3); }
.aw__flow li.is-free .aw__fi em { color: #E3561B; border-color: #FBD0B0; }
.aw__flow b { margin-top: 4px; font-size: 14.5px; color: #0F2E2F; }
.aw__flow b small { display: inline-block; margin-inline-start: 4px; padding: 0 8px; border-radius: 999px; background: #FFF1E7; color: #E3561B; font-size: 11px; font-weight: 900; vertical-align: 2px; }
.aw__flow p { margin: 0; font-size: 12.5px; color: #66777A; line-height: 1.7; max-width: 190px; }
.aw__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed #E1ECEC; }
.aw__facts span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: #4B5B5D; }
.aw__facts i { color: #22A06B; font-size: 12px; }
.aw__facts .is-gift { color: #C2410C; } .aw__facts .is-gift i { color: #F36829; }
.aw__steps, .aw__rules { display: none !important; }
@media (max-width: 720px) {
  .aw__flow { grid-template-columns: 1fr 1fr; gap: 16px 8px; }
  .aw__flow::before { display: none; }
  .aw__fi { width: 48px; height: 48px; border-radius: 15px; font-size: 17px; }
  .aw__flow p { font-size: 12px; }
  .aw__facts { justify-content: flex-start; flex-direction: column; gap: 6px; }
}
/* مصدر السؤال من الفيديو */
.qz__src.is-video, .qz__focus a.is-video, a.is-video { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #1F5A5C, #2F8E90) !important; color: #fff !important; border-radius: 999px; padding: 4px 12px; font-weight: 900; text-decoration: none; }
.qz__plsrc { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.qz__plsrc i { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: #F2F7F7; color: #4B5B5D; border: 1px solid #E1ECEC; }
.qz__plsrc i.is-v { background: #EAF5F5; color: #1F5A5C; border-color: #BFE3E3; }

/* ═════ شاشة «معلّمك يجهّز لك الأسئلة» ═════ */
.qz__loading { background: radial-gradient(700px 500px at 50% 35%, rgba(93, 211, 213, .22), transparent 65%), rgba(246, 250, 250, .94); -webkit-backdrop-filter:blur(6px);backdrop-filter: blur(6px); }
.qzl { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 20px; max-width: 420px; }
.qzl__bot { position: relative; width: 170px; height: 170px; display: grid; place-items: center; }
.qzl__bot .aibot { position: relative; z-index: 2; animation: qzlBob 2.4s ease-in-out infinite; filter: drop-shadow(0 16px 24px rgba(31, 90, 92, .25)); }
.qzl__ring { position: absolute; inset: 14px; border-radius: 50%; border: 3px solid rgba(47, 142, 144, .25); border-top-color: #2F8E90; animation: qzlSpin 1.6s linear infinite; }
.qzl__ring.is-2 { inset: 0; border-width: 2px; border-color: rgba(243, 104, 41, .15); border-bottom-color: #F36829; animation-duration: 2.6s; animation-direction: reverse; }
.qzl__paper { position: absolute; z-index: 1; width: 26px; height: 32px; border-radius: 5px; background: #fff; border: 2px solid #CFE3E3; box-shadow: 0 6px 12px rgba(15, 46, 47, .12); animation: qzlPaper 3s ease-in-out infinite; }
.qzl__paper::before, .qzl__paper::after { content: ""; position: absolute; left: 5px; right: 5px; height: 3px; border-radius: 2px; background: #BFE3E3; top: 8px; }
.qzl__paper::after { top: 16px; right: 10px; }
.qzl__paper.p1 { left: -8px; top: 40px; } .qzl__paper.p2 { right: -10px; top: 20px; animation-delay: .8s; } .qzl__paper.p3 { right: 4px; bottom: 6px; animation-delay: 1.6s; }
.qzl__t { font-size: 20px; font-weight: 900; color: #0F2E2F; }
.qzl__sub { font-size: 14.5px; font-weight: 800; color: #E3561B; min-height: 22px; animation: qzlFade 1.8s ease-in-out infinite; }
.qzl__steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; width: 100%; }
.qzl__steps[hidden] { display: none; }
.qzl__steps li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid #E1ECEC; font-size: 13.5px; font-weight: 800; color: #9AA9AB; transition: all .3s ease; }
.qzl__steps li.is-on { color: #1F5A5C; border-color: #9ED3D4; box-shadow: 0 6px 16px rgba(31, 90, 92, .12); transform: scale(1.02); }
.qzl__steps li.is-on::after { content: ""; margin-inline-start: auto; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #BFE3E3; border-top-color: #2F8E90; animation: qzlSpin .8s linear infinite; }
.qzl__steps li.is-done { color: #12703F; background: #F2FBF5; border-color: #CDEBD8; }
.qzl__steps li.is-done::after { content: "✓"; margin-inline-start: auto; font-weight: 900; }
.qzl__hint { font-size: 12px; color: #7A8A8C; font-weight: 700; }
.qzl__hint[hidden] { display: none; }
@keyframes qzlSpin { to { transform: rotate(360deg); } }
@keyframes qzlBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes qzlPaper { 0%, 100% { transform: translateY(0) rotate(-8deg); opacity: .9; } 50% { transform: translateY(-10px) rotate(6deg); opacity: 1; } }
@keyframes qzlFade { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .qzl__bot .aibot, .qzl__ring, .qzl__paper, .qzl__sub { animation: none; } }

/* ═════ الرئيسية: المعلّم الذكي (مراجعة مادة / شرح بروجكت) — التصميم المعتمد ═════ */
.hm-ai2 { padding-block: 26px 10px; }
.hx-card { position: relative; overflow: hidden; border-radius: 34px; padding: 40px 44px; color: #fff;
  background: radial-gradient(700px 420px at 85% -10%, rgba(93,211,213,.38), transparent 60%), radial-gradient(620px 480px at -5% 110%, rgba(243,104,41,.32), transparent 60%), linear-gradient(135deg, #1F5A5C 0%, #153A3B 55%, #0C2627 100%);
  box-shadow: 0 30px 70px rgba(15,46,47,.3); }
.hx-card::before { content: ""; position: absolute; inset: 0; opacity: .10; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1.2px); background-size: 18px 18px; }
.hx-card > * { position: relative; z-index: 1; }
.hx-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.hx-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 900; color: #0F2E2F; background: linear-gradient(90deg, #8FF3F5, #C8FBFC); border-radius: 999px; padding: 5px 14px; box-shadow: 0 6px 16px rgba(143,243,245,.25); }
.hx-badge i { width: 8px; height: 8px; border-radius: 50%; background: #12703F; box-shadow: 0 0 0 3px rgba(18,112,63,.2); }
.hx-text h2 { margin: 14px 0 10px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; line-height: 1.22; color: #fff; }
.hx-text h2 em { font-style: normal; background: linear-gradient(90deg, #FDBA74, #F7893F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-lead { color: #D2ECEC; font-size: 16px; line-height: 1.95; max-width: 560px; margin: 0 0 20px; }
.hx-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 20px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.14); max-width: 520px; margin-bottom: 22px; }
.hx-seg button { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 0; border-radius: 15px; background: transparent; color: #BFE0E0; cursor: pointer; font-family: inherit; text-align: start; transition: background .2s, color .2s, box-shadow .2s; }
.hx-seg button b { display: block; font-size: 15px; font-weight: 900; } .hx-seg button small { display: block; font-size: 11.5px; font-weight: 700; opacity: .8; }
.hx-seg .i { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: rgba(255,255,255,.08); }
.hx-seg button.is-on { background: #fff; color: #0F2E2F; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.hx-seg button.is-on .i { background: #EAF5F5; } .hx-seg button[data-go="p"].is-on .i { background: #FFF1E7; }
.hx-ben { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.hx-ben > div { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.hx-ben i { flex: 0 0 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 18px; background: rgba(143,243,245,.14); }
.hx-ben.is-p i { background: rgba(253,186,116,.18); }
.hx-ben b { display: block; font-size: 14.5px; font-weight: 900; color: #fff; } .hx-ben small { display: block; font-size: 12.5px; color: #BFDDDD; line-height: 1.7; }
.hx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hx-btn { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #F7893F, #E3561B); color: #fff !important; border-radius: 16px; padding: 15px 26px; font-weight: 900; font-size: 16px; text-decoration: none; box-shadow: 0 14px 30px rgba(243,104,41,.45); transition: transform .15s; }
.hx-btn:hover { transform: translateY(-2px); }
.hx-btn2 { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); color: #fff !important; border-radius: 16px; padding: 14px 20px; font-weight: 900; font-size: 14.5px; text-decoration: none; }
.hx-btn2 .pl { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #1F5A5C; display: grid; place-items: center; font-size: 11px; }
.hx-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 13px; font-weight: 800; color: #CFE8E8; }
.hx-trust span::before { content: "✓"; color: #8FF3F5; margin-inline-end: 6px; font-weight: 900; }
.hx-gift { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 900; color: #FDE2CF; padding: 8px 14px; border-radius: 12px; background: rgba(243,104,41,.14); border: 1px dashed rgba(253,186,116,.45); }
.hx-dev { position: relative; justify-self: center; width: min(360px, 100%); margin: 18px 0 26px; }
.hx-dev > .hx-pane { position: relative; }
.hx-glow { position: absolute; inset: 40px 10px; border-radius: 40px; background: radial-gradient(circle, rgba(143,243,245,.35), transparent 70%); filter: blur(20px); }
.hx-phone { position: relative; z-index: 2; border-radius: 38px; padding: 10px; background: linear-gradient(145deg, #2F3739, #0D1112 45%, #1E2527); box-shadow: 0 34px 70px rgba(0,0,0,.45), inset 0 0 0 1.5px rgba(255,255,255,.12); transform: rotate(-2.5deg); }
.hx-scr { border-radius: 30px; overflow: hidden; background: #F5F9F9; color: #0F2E2F; }
.hx-isl { width: 96px; height: 24px; border-radius: 14px; background: #0A0D0E; margin: 8px auto 0; }
.hx-bar { display: flex; align-items: center; gap: 8px; margin: 8px; padding: 9px 10px; border-radius: 16px; background: linear-gradient(135deg, #1F5A5C, #173F40); color: #fff; font-size: 13px; font-weight: 900; }
.hx-bar i { margin-inline-start: auto; font-style: normal; font-size: 10.5px; font-weight: 800; color: #8FF3F5; }
.hx-av { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.hx-chat { padding: 4px 12px 14px; }
.hx-me { margin: 8px 0 10px auto; width: fit-content; max-width: 88%; background: #1F5A5C; color: #fff; border-radius: 16px 16px 4px 16px; padding: 9px 12px; font-size: 12.5px; font-weight: 700; line-height: 1.7; }
.hx-bt { background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 8px 20px rgba(15,46,47,.08); font-size: 12.5px; line-height: 1.85; }
.hx-bt p { margin: 0; }
.hx-src { display: inline-block; font-size: 11px; font-weight: 900; border-radius: 999px; padding: 2px 10px; margin-bottom: 4px; color: #12703F; background: #E7F6EC; }
.hx-src.is-o { color: #C2410C; background: #FFF1E7; }
.hx-q { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: #FFF8F2; border: 1px dashed #FBC9A6; color: #9A3412; font-weight: 800; font-size: 12px; }
.hx-step { display: flex; gap: 6px; align-items: center; margin-top: 6px; } .hx-step b.n { width: 20px; height: 20px; border-radius: 6px; background: #1F5A5C; color: #fff; display: grid; place-items: center; font-size: 11px; }
.hx-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hx-chip { font-size: 11px; font-weight: 800; color: #26706F; background: #F4F9F9; border: 1px solid #E1ECEC; border-radius: 999px; padding: 2px 9px; }
.hx-vchip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 900; color: #fff; background: linear-gradient(135deg, #1F5A5C, #2F8E90); border-radius: 999px; padding: 3px 10px 3px 4px; }
.hx-vchip s { width: 16px; height: 16px; border-radius: 50%; background: #F36829; display: inline-block; }
.hx-float { position: absolute; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 16px; background: #fff; color: #0F2E2F; font-size: 12.5px; font-weight: 900; box-shadow: 0 16px 34px rgba(0,0,0,.28); white-space: nowrap; }
.hx-float small { display: block; font-size: 10.5px; color: #7A8A8C; font-weight: 800; }
.hx-float .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; }
.hx-float.f1 { top: -14px; left: -34px; transform: rotate(-4deg); } .hx-float.f2 { bottom: -24px; right: -8px; transform: rotate(3deg); }
.hm-qz__how { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: 14px; color: #C2410C; text-decoration: none; padding: 10px 14px; border-radius: 12px; background: #FFF1E7; }
@media (max-width: 900px) {
  .hx-card { padding: 24px 20px; border-radius: 26px; } .hx-grid { grid-template-columns: 1fr; gap: 26px; }
  .hx-ben { grid-template-columns: 1fr; } .hx-seg button { padding: 8px 10px; } .hx-seg button small { display: none; }
  .hx-float.f1 { left: -4px; } .hx-float.f2 { right: -6px; } .hx-btn, .hx-btn2 { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .hx-btn { transition: none; } }

/* ═════ صفحة «أخبار انفنيتي» — غرفة أخبار ═════ */
.nw-page { padding-bottom: 40px; }
.nw-page [hidden] { display: none !important; }
.nw-hero { background: linear-gradient(180deg, #EAF5F5, rgba(234,245,245,0)); border-bottom: 1px solid #E1ECEC; margin-bottom: 26px; }
.nw-hero__in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding-top: 34px; padding-bottom: 22px; }
.nw-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: 999px; background: #1F5A5C; color: #fff; font-size: 12.5px; font-weight: 900; letter-spacing: .2px; }
.nw-kicker .ic-news-ico { width: 15px; height: 15px; }
.nw-hero h1 { margin: 12px 0 4px; font-size: clamp(30px, 4vw, 42px); font-weight: 900; color: #0F2E2F; }
.nw-hero p { margin: 0; color: #5B6B6D; font-size: 16px; }
.nw-filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 16px; background: #fff; border: 1px solid #DDE9E9; }
.nw-filter button { border: 0; background: transparent; padding: 9px 16px; border-radius: 12px; font-family: inherit; font-weight: 900; font-size: 13.5px; color: #4B5B5D; cursor: pointer; }
.nw-filter button.is-on { background: #1F5A5C; color: #fff; box-shadow: 0 6px 14px rgba(31,90,92,.22); }
.nw-label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: -6px; }
.nw-label b { font-size: 18px; font-weight: 900; color: #0F2E2F; }
.nw-label time, .nw-card time { font-size: 12.5px; font-weight: 800; color: #8A9A9C; }
.nw-pill { display: inline-block; font-size: 11.5px; font-weight: 900; padding: 3px 11px; border-radius: 999px; background: #EAF5F5; color: #1F5A5C; }
.nw-pill.is-o { background: #FFF1E7; color: #C2410C; }
.nw-feed { margin-top: 34px; }
.nw-feed__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #E1ECEC; }
.nw-feed__head h2 { font-size: 22px; font-weight: 900; color: #0F2E2F; margin: 0; } .nw-feed__head span { font-size: 13px; font-weight: 800; color: #8A9A9C; }
.nw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nw-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid #E1ECEC; box-shadow: 0 10px 26px rgba(15,46,47,.05); transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.nw-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: #2F8E90; }
.nw-card.is-o::before { background: #F36829; } .nw-card.is-g::before { background: #22A06B; } .nw-card.is-n::before { background: #94A3B8; }
.nw-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15,46,47,.10); }
.nw-card__top { display: flex; align-items: center; gap: 8px; }
.nw-card__top time { margin-inline-start: auto; }
.nw-card__ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #EAF5F5; color: #1F5A5C; font-size: 16px; }
.nw-card.is-o .nw-card__ico { background: #FFF1E7; color: #C2410C; } .nw-card.is-g .nw-card__ico { background: #E7F6EC; color: #12703F; } .nw-card.is-n .nw-card__ico { background: #F1F5F9; color: #475569; }
.nw-card.is-o .nw-pill { background: #FFF1E7; color: #C2410C; } .nw-card.is-g .nw-pill { background: #E7F6EC; color: #12703F; } .nw-card.is-n .nw-pill { background: #F1F5F9; color: #475569; }
.nw-card h3 { margin: 4px 0 0; font-size: 17px; font-weight: 900; color: #0F2E2F; }
.nw-card p { margin: 0; font-size: 14px; line-height: 1.85; color: #5B6B6D; flex: 1; }
.nw-card a { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 900; color: #1F5A5C; text-decoration: none; }
.nw-card a:hover { color: #E3561B; }
@media (max-width: 980px) { .nw-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .nw-grid { grid-template-columns: 1fr; } .nw-hero__in { align-items: stretch; } .nw-filter { width: 100%; overflow-x: auto; flex-wrap: nowrap; } .nw-filter button { flex: 0 0 auto; } }
.ic-news-ico { flex: 0 0 auto; vertical-align: -3px; }
/* رابط «أخبار انفنيتي» في الشريط: نقطة «جديد» صغيرة */
.ic-nav a .ic-newdot, .ic-drawer__group a .ic-newdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #F36829; margin-inline-start: 6px; box-shadow: 0 0 0 3px rgba(243,104,41,.18); vertical-align: middle; }
/* أخبار انفنيتي: مقروء / غير مقروء */
.ic-newsbadge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-inline-start: 6px; border-radius: 999px; background: #F36829; color: #fff; font-size: 11px; font-weight: 900; line-height: 1; box-shadow: 0 0 0 2px #fff; vertical-align: middle; }
.nw-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.nw-unreadsum { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 900; color: #C2410C; background: #FFF1E7; border: 1px solid #FBD9BF; padding: 6px 12px; border-radius: 999px; }
.nw-unreadsum i, .nw-state i { width: 8px; height: 8px; border-radius: 50%; background: #F36829; box-shadow: 0 0 0 3px rgba(243,104,41,.2); display: inline-block; }
.nw-markall { border: 1px solid #CFE3E3; background: #fff; color: #1F5A5C; border-radius: 999px; padding: 6px 14px; font-family: inherit; font-weight: 900; font-size: 13px; cursor: pointer; }
.nw-allread { font-size: 13.5px; font-weight: 900; color: #12703F; background: #E7F6EC; padding: 6px 12px; border-radius: 999px; }
.nw-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 900; color: #12703F; }
.nw-label.is-unread .nw-state { color: #C2410C; }
.nw-card.is-unread { border-color: #FBC9A6; box-shadow: 0 12px 30px rgba(243,104,41,.12); background: linear-gradient(180deg, #FFFBF8, #fff 40%); }
.nw-card.is-unread h3::after { content: "جديد"; margin-inline-start: 8px; font-size: 10.5px; font-weight: 900; color: #fff; background: #F36829; padding: 2px 8px; border-radius: 999px; vertical-align: 3px; }
.nw-card:not(.is-unread) { opacity: .92; }
.nw-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.nw-mark { border: 0; background: transparent; color: #7A8A8C; font-family: inherit; font-weight: 800; font-size: 12px; cursor: pointer; padding: 4px 0; }
.nw-mark:hover { color: #12703F; }
.nw-read { font-size: 12px; font-weight: 800; color: #12703F; }

/* «شاهد بالفيديو»: كيف يعمل المعلّم الذكي و«اختبر فهمك» */
.aw__howhead { align-items: center !important; }
.aw__howhead > div:first-child span { display: block; margin-top: 2px; }
.aw__vids { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border-radius: 16px; background: #F4F9F9; border: 1px solid #E1ECEC; }
.aw__vids-t { font-size: 12.5px !important; font-weight: 900 !important; color: #1F5A5C !important; padding-inline: 6px; display: inline-flex !important; align-items: center; gap: 6px; }
.aw__vids .hv-watch { margin: 0; }
@media (max-width: 640px) { .aw__vids { width: 100%; } .aw__vids .hv-watch { flex: 1 1 100%; justify-content: flex-start; } }
/* منشورات «أخبار انفنيتي» */
.nw-card__img { display: block; margin: -18px -18px 4px; aspect-ratio: 1200 / 630; background: #EAF5F5 center / cover no-repeat; }
.nw-card h3 a { color: inherit; text-decoration: none; } .nw-card h3 a:hover { color: #1F5A5C; }
.nw-pin { font-size: 13px; }
.nw-post__in { max-width: 860px; padding-top: 26px; }
.nw-back { display: inline-block; margin-bottom: 14px; font-weight: 900; font-size: 14px; color: #26706F; text-decoration: none; }
.nw-art { background: #fff; border: 1px solid #E1ECEC; border-radius: 26px; overflow: hidden; box-shadow: 0 16px 40px rgba(15,46,47,.07); position: relative; }
.nw-art::before { content: ""; display: block; height: 5px; background: #2F8E90; }
.nw-art.is-o::before { background: #F36829; } .nw-art.is-g::before { background: #22A06B; } .nw-art.is-n::before { background: #94A3B8; }
.nw-art__img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.nw-art__body { padding: 26px 30px 30px; }
.nw-art.is-o .nw-card__ico, .nw-art.is-o .nw-pill { background: #FFF1E7; color: #C2410C; } .nw-art.is-g .nw-card__ico, .nw-art.is-g .nw-pill { background: #E7F6EC; color: #12703F; } .nw-art.is-n .nw-card__ico, .nw-art.is-n .nw-pill { background: #F1F5F9; color: #475569; }
.nw-art h1 { margin: 14px 0 8px; font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; color: #0F2E2F; line-height: 1.3; }
.nw-art__lead { font-size: 17px; color: #4B5B5D; line-height: 1.9; margin: 0 0 14px; font-weight: 700; }
.nw-art__text { font-size: 16px; line-height: 2; color: #1F2D2E; }
.nw-art__text p { margin: 0 0 12px; } .nw-art__text ul { margin: 0 0 14px; padding-inline-start: 22px; } .nw-art__text li { margin-bottom: 6px; }
.nw-art__text a { color: #1F5A5C; font-weight: 800; }
.nw-art__cta { margin-top: 14px; }
@media (max-width: 640px) { .nw-art__body { padding: 20px; } }
.nw-card a.nw-card__img { display: block; align-self: stretch; padding: 0; } .nw-card h3 a { display: inline; align-self: auto; font-size: inherit; font-weight: inherit; }
.nw-art__text ul { list-style: disc; } .nw-art__text li::marker { color: #F36829; }

/* ═════ أخبار انفنيتي — تصميم مجلة (خبر رئيسي + بطاقات موحّدة) ═════ */
.nx { margin-bottom: 34px; }
.nx-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #0F2E2F; }
.nx-head h2 { margin: 0; font-size: 24px; font-weight: 900; color: #0F2E2F; letter-spacing: -.2px; }
.nx-head span { font-size: 13px; font-weight: 800; color: #8A9A9C; }
/* الغلاف: صورة أو لون المنشور بأيقونته */
.nx-cover { position: relative; display: block; overflow: hidden; background: center / cover no-repeat; text-decoration: none; }
.nx-cover:not(.has-img) { background-image: radial-gradient(420px 260px at 85% 0%, rgba(255,255,255,.22), transparent 60%), linear-gradient(135deg, #1F5A5C, #0F2E2F); }
.nx-cover.is-o:not(.has-img) { background-image: radial-gradient(420px 260px at 85% 0%, rgba(255,255,255,.25), transparent 60%), linear-gradient(135deg, #F7893F, #C2410C); }
.nx-cover.is-g:not(.has-img) { background-image: radial-gradient(420px 260px at 85% 0%, rgba(255,255,255,.22), transparent 60%), linear-gradient(135deg, #22A06B, #0E6B43); }
.nx-cover.is-n:not(.has-img) { background-image: radial-gradient(420px 260px at 85% 0%, rgba(255,255,255,.2), transparent 60%), linear-gradient(135deg, #64748B, #334155); }
.nx-cover:not(.has-img)::after { content: ""; position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.3px); background-size: 16px 16px; }
.nx-cover__ico { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.92); font-size: 44px; z-index: 1; }
.nx-cover__ico i { filter: drop-shadow(0 8px 18px rgba(0,0,0,.25)); }
.nx-cover.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.12)); }
/* الخبر الرئيسي */
.nx-lead { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid #E1ECEC; border-radius: 24px; overflow: hidden; box-shadow: 0 16px 40px rgba(15,46,47,.07); margin-bottom: 20px; transition: box-shadow .2s, transform .2s; }
.nx-lead:hover { box-shadow: 0 22px 50px rgba(15,46,47,.12); transform: translateY(-2px); }
.nx-lead__cover { min-height: 300px; height: 100%; }
.nx-lead__cover .nx-cover__ico { font-size: 72px; }
.nx-lead__body { display: flex; flex-direction: column; gap: 10px; padding: 28px 30px; }
.nx-lead h3 { margin: 4px 0 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; line-height: 1.35; color: #0F2E2F; }
.nx-lead p { margin: 0; color: #4B5B5D; font-size: 16px; line-height: 1.95; flex: 1; }
/* البطاقات */
.nx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nx-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #E1ECEC; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 26px rgba(15,46,47,.05); transition: box-shadow .2s, transform .2s; }
.nx-card:hover { box-shadow: 0 18px 38px rgba(15,46,47,.11); transform: translateY(-3px); }
.nx-card__cover { aspect-ratio: 16 / 9; }
.nx-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.nx-card h3 { margin: 2px 0 0; font-size: 17.5px; font-weight: 900; line-height: 1.45; color: #0F2E2F; }
.nx-card p { margin: 0; font-size: 14px; line-height: 1.85; color: #5B6B6D; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nx-lead h3 a, .nx-card h3 a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
.nx-lead:hover h3 a, .nx-card:hover h3 a { background-size: 100% 2px; }
/* بيانات الخبر */
.nx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nx-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 900; padding: 4px 11px; border-radius: 999px; background: #EAF5F5; color: #1F5A5C; }
.nx-tag.is-o { background: #FFF1E7; color: #C2410C; } .nx-tag.is-g { background: #E7F6EC; color: #12703F; } .nx-tag.is-n { background: #F1F5F9; color: #475569; }
.nx-pinned { font-size: 11px; font-weight: 900; padding: 3px 9px; border-radius: 999px; background: #0F2E2F; color: #fff; }
.nx-new { font-size: 11px; font-weight: 900; padding: 3px 9px; border-radius: 999px; background: #F36829; color: #fff; box-shadow: 0 4px 10px rgba(243,104,41,.3); }
.nx-lead:not(.is-unread) .nx-new, .nx-card:not(.is-unread) .nx-new { display: none; }
.nx-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; margin-top: 4px; border-top: 1px solid #EEF3F3; }
.nx-date { font-size: 12.5px; font-weight: 800; color: #8A9A9C; }
.nx-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 900; color: #1F5A5C; text-decoration: none; }
.nx-more i { transition: transform .2s; } .nx-more:hover { color: #E3561B; } .nx-more:hover i { transform: translateX(-3px); }
@media (max-width: 980px) { .nx-grid { grid-template-columns: 1fr 1fr; } .nx-lead { grid-template-columns: 1fr; } .nx-lead__cover { min-height: 0; aspect-ratio: 16 / 9; } }
@media (max-width: 640px) { .nx-grid { grid-template-columns: 1fr; } .nx-lead__body { padding: 20px; } }

/* صفحة الخبر */
.nx-post__in { max-width: 820px; padding-top: 24px; padding-bottom: 20px; }
.nx-crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13.5px; }
.nx-crumbs a { display: inline-flex; align-items: center; gap: 6px; color: #26706F; font-weight: 900; text-decoration: none; } .nx-crumbs span { color: #A7B4B6; } .nx-crumbs b { color: #5B6B6D; font-weight: 800; }
.nx-art { background: #fff; border: 1px solid #E1ECEC; border-radius: 26px; overflow: hidden; box-shadow: 0 16px 40px rgba(15,46,47,.07); }
.nx-art__head { padding: 30px 34px 20px; }
.nx-art h1 { margin: 14px 0 10px; font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; line-height: 1.3; color: #0F2E2F; letter-spacing: -.3px; }
.nx-art__lead { margin: 0 0 16px; font-size: 18px; line-height: 1.9; color: #4B5B5D; font-weight: 700; }
.nx-art__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 14px; border-top: 1px solid #EEF3F3; font-size: 13px; font-weight: 800; color: #7A8A8C; }
.nx-art__meta > span + span::before { content: "·"; margin-inline-end: 16px; color: #C5D0D1; }
.nx-by { display: inline-flex; align-items: center; gap: 8px; color: #0F2E2F; }
.nx-by__logo { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #F4F9F9; border: 1px solid #E1ECEC; }
.nx-art__fig { margin: 0; } .nx-art__fig img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.nx-art__text { padding: 26px 34px 6px; font-size: 17px; line-height: 2.05; color: #1F2D2E; }
.nx-art__text p { margin: 0 0 16px; }
.nx-art__text ul { margin: 0 0 18px; padding: 14px 20px 14px 14px; list-style: none; border-radius: 16px; background: #F7FBFB; border: 1px solid #E6F0F0; }
.nx-art__text li { position: relative; padding-inline-start: 22px; margin: 6px 0; }
.nx-art__text li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .8em; width: 8px; height: 8px; border-radius: 50%; background: #F36829; box-shadow: 0 0 0 3px rgba(243,104,41,.18); }
.nx-art__text a { color: #1F5A5C; font-weight: 800; }
.nx-art__cta { padding: 4px 34px 10px; }
.nx-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 34px 28px; padding-top: 16px; border-top: 1px solid #EEF3F3; }
.nx-share > span { font-size: 13px; font-weight: 900; color: #5B6B6D; margin-inline-end: 4px; }
.nx-share__b { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 12px; border: 1px solid #DCE6E6; background: #fff; color: #1F5A5C; font-family: inherit; font-weight: 900; font-size: 13px; cursor: pointer; text-decoration: none; }
.nx-share__b.is-wa { color: #128C4A; border-color: #BFE8CF; background: #F2FBF5; }
.nx-more-sec { margin-top: 30px; } .nx-more-sec h2 { font-size: 20px; font-weight: 900; color: #0F2E2F; margin: 0 0 14px; }
@media (max-width: 640px) { .nx-art__head { padding: 22px 20px 16px; } .nx-art__text { padding: 20px 20px 4px; font-size: 16px; } .nx-art__cta { padding: 4px 20px 8px; } .nx-share { margin: 14px 20px 22px; } }

/* ═════ تحسينات الجوال (طلب المالكة) ═════ */
/* محفظتي: الإحصاءات الثلاث في بطاقة واحدة بصفوف واضحة بدل ثلاث بطاقات مضغوطة */
@media (max-width: 639px) {
  .wl-stats { grid-template-columns: 1fr !important; gap: 0 !important; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 8px 22px rgba(15,46,47,.06); overflow: hidden; }
  .wl-stat { flex-direction: row !important; align-items: center !important; gap: 12px !important; padding: 14px 16px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
  .wl-stat + .wl-stat { border-top: 1px solid var(--line-2, #EEF3F3) !important; }
  .wl-stat__icon { width: 38px !important; height: 38px !important; border-radius: 12px !important; font-size: 14px !important; }
  .wl-stat > div { flex: 1; display: flex !important; align-items: center; justify-content: space-between; gap: 10px; }
  .wl-stat small { font-size: 14px !important; font-weight: 800; color: var(--ink-2, #3E5456) !important; }
  .wl-stat b { font-size: 18px !important; white-space: nowrap; }
}
.wl-stat__icon.is-in { background: #E7F6EC !important; color: #12703F !important; }
.wl-stat__icon.is-out { background: #FFF1E7 !important; color: #C2410C !important; }
/* «اختبر فهمك»: رأس الصفحة لا يُقصّ على الشاشات الضيقة */
@media (max-width: 640px) {
  .qz__hero { flex-direction: column; align-items: flex-start; text-align: start; }
  .qz__hero > div { min-width: 0; width: 100%; }
  .qz__hero p { overflow-wrap: anywhere; }
}

/* ═════ الرئيسية: «لماذا انفنيتي انسارز؟» — شريطا مزايا متحركان ═════ */
.hm-mqs { display: grid; gap: 14px; margin-inline: calc(50% - 50vw); }
.hm-mq { overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.hm-mq__track { display: flex; gap: 14px; width: max-content; animation: hmMq 55s linear infinite; }
.hm-mq.is-rev .hm-mq__track { animation-direction: reverse; animation-duration: 62s; }
.hm-mq:hover .hm-mq__track, .hm-mq:active .hm-mq__track { animation-play-state: paused; }
@keyframes hmMq { from { transform: translateX(0); } to { transform: translateX(calc(50% + 7px)); } }
.hm-mqc { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; width: 330px; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line, #E1ECEC); box-shadow: 0 10px 26px rgba(15,46,47,.06); transition: transform .2s, box-shadow .2s, border-color .2s; }
.hm-mqc:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15,46,47,.11); border-color: #BFE3E3; }
.hm-mqc h3 { margin: 0; font-size: 15.5px; font-weight: 900; color: var(--ink, #0F2E2F); }
.hm-mqc p { margin: 3px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted, #66777A); }
.hm-mqc .hm-feature__icon { flex: 0 0 auto; }
@media (max-width: 640px) { .hm-mqc { width: 270px; padding: 13px 14px; } .hm-mq__track { animation-duration: 45s; } .hm-mq.is-rev .hm-mq__track { animation-duration: 50s; } }
@media (prefers-reduced-motion: reduce) {
  .hm-mqs { margin-inline: 0; } .hm-mq { -webkit-mask-image: none; mask-image: none; }
  .hm-mq__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; } .hm-mqc[data-dup] { display: none; }
}

/* ═════ الرئيسية: «لماذا انفنيتي انسارز؟» — عرض تفاعلي للمنصة ═════ */
.fx-head { text-align: center; margin-bottom: 34px; }
.fx-head span { display: inline-block; font-size: 12.5px; font-weight: 900; color: #2F8E90; letter-spacing: .3px; }
.fx-head h2 { margin: 8px 0 6px; font-size: clamp(26px, 3.2vw, 40px); font-weight: 900; color: #0F2E2F; line-height: 1.25; }
.fx-head h2 em { font-style: normal; background: linear-gradient(90deg, #1F8F92, #F36829); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-head p { margin: 0 auto; max-width: 560px; color: #66777A; font-size: 15.5px; line-height: 1.8; }
.fx-body { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: 1040px; margin: 0 auto; }
.fx-list { display: grid; gap: 10px; }
.fx-it { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; align-items: center; padding: 18px 20px; border-radius: 20px; border: 1px solid transparent; background: transparent; font-family: inherit; text-align: start; cursor: pointer; transition: background .3s, border-color .3s, box-shadow .3s; }
.fx-it .ic { grid-row: span 2; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 19px; background: #F1F6F6; color: #7A8A8C; transition: all .3s; }
.fx-it b { font-size: 17.5px; font-weight: 900; color: #7A8A8C; transition: color .3s; }
.fx-it p { margin: 0; font-size: 14px; line-height: 1.8; color: #66777A; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s ease, opacity .3s; }
.fx-it .bar { position: absolute; inset-inline: 20px; bottom: 0; height: 3px; border-radius: 3px; background: #E6EEEE; overflow: hidden; opacity: 0; }
.fx-it .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #F36829, #2F8E90); margin-inline-start: 0; }
.fx-it:hover b { color: #3E5456; }
.fx-it.on { background: #fff; border-color: #E1ECEC; box-shadow: 0 18px 40px rgba(15,46,47,.08); }
.fx-it.on .ic { background: linear-gradient(135deg, #1F5A5C, #2F8E90); color: #fff; box-shadow: 0 10px 22px rgba(31,90,92,.28); }
.fx-it.on.o .ic { background: linear-gradient(135deg, #F7893F, #E3561B); box-shadow: 0 10px 22px rgba(243,104,41,.28); }
.fx-it.on b { color: #0F2E2F; } .fx-it.on p { max-height: 90px; opacity: 1; } .fx-it.on .bar { opacity: 1; }
.fx-stage { position: relative; display: grid; place-items: center; min-height: 620px; }
.fx-glow { position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(47,142,144,.22), transparent 65%); filter: blur(10px); }
.fx-glow.b { width: 300px; height: 300px; transform: translate(120px, 160px); background: radial-gradient(circle, rgba(243,104,41,.18), transparent 65%); }
.fx-ring { position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px dashed rgba(47,142,144,.25); }
.fx-phone { position: relative; z-index: 2; width: 290px; height: 552px; border-radius: 46px; padding: 10px; background: linear-gradient(145deg, #2F3739, #0D1112 45%, #1E2527); box-shadow: 0 40px 80px rgba(15,46,47,.3), inset 0 0 0 1.5px rgba(255,255,255,.1); }
.fx-scr { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #fff; }
.fx-scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.03); transition: opacity .6s ease, transform .8s ease; }
.fx-scr img.on { opacity: 1; transform: none; }
.fx-isl { position: absolute; top: 8px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: 14px; background: #050607; z-index: 3; }
.fx-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 16px; background: #fff; box-shadow: 0 18px 38px rgba(15,46,47,.16); font-size: 13.5px; font-weight: 900; color: #0F2E2F; white-space: nowrap; }
.fx-chip small { display: block; font-size: 11px; color: #7A8A8C; font-weight: 800; }
.fx-chip .d { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #EAF5F5; color: #1F5A5C; } .fx-chip .d.o { background: #FFF1E7; color: #E3561B; }
.fx-chip.c1 { top: 90px; inset-inline-end: -10px; } .fx-chip.c2 { bottom: 80px; inset-inline-start: -20px; }
.fx-chip.pop { animation: fxPop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes fxPop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.fx-desc { display: none; text-align: center; margin: 12px 0 0; font-size: 14.5px; line-height: 1.8; color: #4B5B5D; }
.fx-try { display: flex; align-items: center; gap: 16px; max-width: 1040px; margin: 34px auto 0; padding: 18px 22px; border-radius: 22px; color: #fff; background: radial-gradient(360px 200px at 100% 0%, rgba(93,211,213,.3), transparent 60%), linear-gradient(135deg, #1F5A5C, #0F2E2F); box-shadow: 0 20px 44px rgba(15,46,47,.22); }
.fx-try__bot { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.fx-try__txt b { display: block; font-size: 17px; font-weight: 900; } .fx-try__txt small { display: block; font-size: 13.5px; color: #CFE6E6; margin-top: 3px; }
.fx-try__acts { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fx-try__go { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px; background: linear-gradient(135deg, #F7893F, #E3561B); color: #fff !important; font-weight: 900; font-size: 14.5px; text-decoration: none; box-shadow: 0 10px 22px rgba(243,104,41,.35); }
.fx-try .hv-watch { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.fx-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; max-width: 1040px; margin: 24px auto 0; }
.fx-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #3E5456; } .fx-trust i { color: #2F8E90; }
@media (max-width: 860px) {
  .fx-body { grid-template-columns: 1fr; gap: 16px; }
  .fx-list { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; } .fx-list::-webkit-scrollbar { display: none; }
  .fx-it { flex: 0 0 auto; grid-template-columns: auto; padding: 10px 16px; border-radius: 999px; border-color: #E1ECEC; background: #fff; }
  .fx-it .ic, .fx-it p, .fx-it .bar { display: none; } .fx-it b { font-size: 14px; } .fx-it.on { background: #1F5A5C; border-color: #1F5A5C; box-shadow: none; } .fx-it.on b { color: #fff; }
  .fx-stage { min-height: 480px; } .fx-phone { width: 240px; height: 454px; border-radius: 40px; } .fx-scr { border-radius: 31px; } .fx-ring { width: 380px; height: 380px; } .fx-glow { width: 340px; height: 340px; }
  .fx-chip { padding: 9px 12px; font-size: 12.5px; } .fx-chip .d { width: 30px; height: 30px; } .fx-chip.c1 { top: 60px; inset-inline-end: 0; } .fx-chip.c2 { bottom: 50px; inset-inline-start: 0; }
  .fx-desc { display: block; }
  .fx-try { flex-wrap: wrap; } .fx-try__acts { width: 100%; margin: 0; } .fx-try__go { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .fx-scr img, .fx-it p, .fx-chip.pop { transition: none; animation: none; } }

/* ═════ «ابدأ مراجعتك الآن» — بطاقتان متساويتان تمامًا ═════ */
.as2-sec { padding-bottom: 0 !important; }
.as2-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.as2-head h2 { margin: 0; font-size: 22px; font-weight: 900; color: #0F2E2F; }
.as2-ctx { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 6px 5px 14px; border-radius: 999px; background: #fff; border: 1px solid #E1ECEC; box-shadow: 0 6px 16px rgba(15,46,47,.05); text-decoration: none; color: #0F2E2F; transition: border-color .2s; }
[dir="rtl"] .as2-ctx { padding: 5px 14px 5px 6px; }
.as2-ctx:hover { border-color: #9ED3D4; }
.as2-ctx__k { font-size: 12px; font-weight: 800; color: #8A9A9C; white-space: nowrap; }
.as2-ctx__code { font: 900 12.5px Inter, sans-serif; letter-spacing: .3px; padding: 4px 10px; border-radius: 999px; background: #1F5A5C; color: #fff; white-space: nowrap; }
.as2-ctx__les { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; font-weight: 900; color: #1F5A5C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as2-ctx__les i { color: #F36829; }
.as2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.as2-grid.is-one { grid-template-columns: minmax(0, 1fr); }
.as2-card { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 196px; padding: 22px; border-radius: 22px; text-decoration: none; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.as2-card:hover { transform: translateY(-3px); }
.as2-card.is-ai { color: #fff; background: radial-gradient(360px 200px at 100% 0%, rgba(93,211,213,.3), transparent 60%), linear-gradient(135deg, #1F5A5C, #0F2E2F); box-shadow: 0 18px 40px rgba(15,46,47,.2); }
.as2-card.is-qz { color: #0F2E2F; background: linear-gradient(135deg, #FFF6EF, #fff 70%); border: 1px solid #FBD9BF; box-shadow: 0 14px 32px rgba(243,104,41,.1); }
.as2-top { display: flex; align-items: center; gap: 14px; }
.as2-top b { font-size: 18px; font-weight: 900; line-height: 1.4; }
.as2-bot, .as2-ic { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; }
.as2-bot { background: rgba(255,255,255,.1); }
.as2-ic { font-size: 22px; color: #fff; background: linear-gradient(135deg, #F7893F, #E3561B); box-shadow: 0 10px 22px rgba(243,104,41,.3); }
.as2-card small { display: block; font-size: 14px; line-height: 1.8; opacity: .88; }
.as2-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.as2-card.is-qz .as2-bottom { border-top-color: #FBE3D2; }
.as2-bottom em { font-style: normal; font-size: 12.5px; font-weight: 900; padding: 4px 12px; border-radius: 999px; background: rgba(143,243,245,.16); color: #8FF3F5; }
.as2-card.is-qz .as2-bottom em { background: #FFF1E7; color: #C2410C; }
.as2-go { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 13px; font-weight: 900; font-size: 14.5px; white-space: nowrap; }
.as2-card.is-ai .as2-go { background: #fff; color: #0F2E2F; } .as2-card.is-qz .as2-go { background: linear-gradient(135deg, #F7893F, #E3561B); color: #fff; }
@media (max-width: 800px) {
  .as2-head { align-items: flex-start; flex-direction: column; } .as2-ctx { width: 100%; }
  .as2-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } .as2-card { min-height: 0; padding: 18px; } .as2-top b { font-size: 16.5px; }
}

/* ═════ زر «مساعدة» في الترويسة بدل «؟» ═════ */
.ic-help__btn--txt { width: auto !important; padding: 0 12px !important; gap: 7px; display: inline-flex !important; align-items: center; font-family: inherit; font-weight: 900; font-size: 14px; color: var(--brand-700, #1F5A5C); }
.ic-help__ico { width: 19px; height: 19px; flex: 0 0 19px; }
@media (max-width: 760px) { .ic-help__btn--txt { width: 42px !important; padding: 0 !important; justify-content: center; } .ic-help__lbl { display: none; } }

/* ═════ قائمة الجوال: أنحف وأنظف (طلب المالكة: «القائمة عريضة جدًّا») ═════ */
.ic-drawer__panel { width: min(78vw, 300px) !important; border-start-end-radius: 0; border-end-end-radius: 0; border-start-start-radius: 0; }
[dir="rtl"] .ic-drawer__panel { border-radius: 24px 0 0 24px; }
.ic-drawer__overlay { background: rgba(15,27,28,.38); -webkit-backdrop-filter:blur(2px);backdrop-filter: blur(2px); }
.ic-drawer__head { padding: 12px 14px; }
.ic-drawer__head .ic-brand__name { display: none; }
.ic-drawer__user { padding: 10px 12px; margin: 10px 10px 2px; gap: 10px; border-radius: 16px; background: linear-gradient(135deg, #F2FAFA, #E9F5F5); border: 1px solid #DCEBEB; }
.ic-drawer__user b { font-size: 14.5px; } .ic-drawer__user small { font-size: 12px; }
.ic-drawer__body { padding: 4px 10px 12px; }
.ic-drawer__group { margin-top: 10px; }
.ic-drawer__group + .ic-drawer__group { padding-top: 10px; border-top: 1px solid #EEF3F3; }
.ic-drawer__label { padding: 0 8px 4px; font-size: 11px; letter-spacing: .4px; color: #9AA9AB; }
.ic-drawer__body a { min-height: 42px; padding: 5px 8px; gap: 11px; border-radius: 12px; font-size: 14.5px; font-weight: 800; color: #2E4244; }
.ic-drawer__body a > i, .ic-drawer__body a > svg, .ic-drawer__body a > .ic-ai-ico { flex: 0 0 32px; width: 32px !important; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #F1F6F6; color: #2F8E90; font-size: 13.5px; }
.ic-drawer__body a > svg { padding: 8px; box-sizing: border-box; }
.ic-drawer__body a > .ic-ai-ico svg { width: 22px; height: 22px; }
.ic-drawer__body a[aria-current="page"] { background: #EAF5F5; color: #0F2E2F; }
.ic-drawer__body a[aria-current="page"] > i, .ic-drawer__body a[aria-current="page"] > svg { background: #1F5A5C; color: #fff; }
.ic-drawer__body a .ic-newsbadge, .ic-drawer__body a .ic-count { margin-inline-start: auto; }
.ic-drawer__foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.ic-drawer__foot a, .ic-drawer__foot button { min-height: 42px !important; font-size: 14px !important; border-radius: 12px !important; }
.fx-try .hv-watch, .fx-try .hv-watch * { color: #fff !important; } .fx-try .hv-watch__dur { opacity: .75; border-color: rgba(255,255,255,.25) !important; }
.as2-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 14px; font-size: 12.5px; font-weight: 800; color: #8A9A9C; }
.as2-switch a { padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid #E1ECEC; color: #1F5A5C; font: 900 12px Inter, "Cairo", sans-serif; text-decoration: none; }
.as2-switch a:hover { border-color: #9ED3D4; background: #F2FAFA; }

/* ═════ «ركّز على» خاصة بكل درس ═════ */
.qz__fhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.qz__fhead h2 { margin: 0 !important; }
.qz__fhead span { font-size: 12.5px; font-weight: 900; color: #92400E; background: #FEF3C7; border-radius: 999px; padding: 2px 10px; }
.qz__fsub { margin: 6px 0 4px; font-size: 12.5px; color: #7A6A4A; line-height: 1.7; }
.qz__focus .qz__fitem { gap: 7px; padding: 12px; margin-top: 10px; border: 1px solid #F4E6C8; border-radius: 16px; background: #FFFCF5; }
.qz__focus .qz__fitem:first-of-type { border-top: 1px solid #F4E6C8; }
.qz__ftop { display: flex; align-items: center; gap: 8px; }
.qz__ftop b { flex: 1; min-width: 0; font-size: 13.5px; color: #1F2D2E; line-height: 1.5; }
.qz__fnum { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font: 900 12px Inter, sans-serif; background: #FDE7C3; color: #92400E; }
.qz__frate { flex: 0 0 auto; font-size: 11.5px; font-weight: 900; padding: 2px 9px; border-radius: 999px; }
.qz__fitem.is-hi .qz__frate { background: #FEE2E2; color: #B42318; } .qz__fitem.is-hi .qz__fbar span { background: linear-gradient(90deg, #F97316, #DC2626); }
.qz__fitem.is-md .qz__frate { background: #FEF3C7; color: #92400E; } .qz__fitem.is-md .qz__fbar span { background: #F59E0B; }
.qz__fitem.is-lo .qz__frate { background: #ECFDF3; color: #12703F; } .qz__fitem.is-lo .qz__fbar span { background: #84CC16; }
.qz__focus .qz__fbar { height: 7px; }
.qz__fcount { font-size: 11.5px; color: #8A7A5A; font-weight: 700; }
.qz__fsrc { display: flex; flex-wrap: wrap; gap: 6px; }
.qz__focus a.is-doc { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid #F1DDB0; font-size: 11.5px; font-weight: 800; color: #92400E; text-decoration: none; }
.qz__focus.is-clear { background: #F2FBF5; border-color: #CDEBD8; } .qz__focus.is-clear h2 i { color: #12703F !important; } .qz__focus.is-clear .qz__fhead span { background: #E7F6EC; color: #12703F; } .qz__focus.is-clear .qz__fsub { color: #1F6B45; }

/* ─── قائمة الهاتف: أكثر احترافية وتتسع بلا تمرير طويل (طلب المالكة) ─── */
body.ic-lock .as-root, body.ic-lock .as-fab, body.ic-lock .as-hello, body.ic-lock .ic-whatsapp, body.ic-lock .cm-invite { opacity: 0 !important; pointer-events: none !important; visibility: hidden !important; }
.ic-drawer__panel { width: min(84vw, 330px) !important; }
.ic-drawer__head { padding: 12px 14px; gap: 10px; background: linear-gradient(135deg, #F2FAFA, #E6F3F3); border-bottom: 1px solid #DCEBEB; }
.ic-drawer__head .ic-drawer__user { flex: 1; min-width: 0; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.ic-drawer__head .ic-drawer__user > div { min-width: 0; }
.ic-drawer__head .ic-drawer__user b { display: block; font-size: 15px; font-weight: 900; color: #0F1B1C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-drawer__head .ic-drawer__user small { font-size: 12px; font-weight: 700; color: #2F8E90; }
.ic-drawer__head .ic-iconbtn { flex: 0 0 auto; background: #fff; }
.ic-drawer__body { padding: 2px 12px 12px; scrollbar-width: none; }
.ic-drawer__body::-webkit-scrollbar { display: none; }
.ic-drawer__group { margin-top: 12px; }
.ic-drawer__label { padding: 0 6px 6px; font-size: 11.5px; font-weight: 800; color: #8A9A9B; letter-spacing: 0; }
/* قائمة واحدة مضغوطة ومصنّفة (اختيار المالكة ①) */
.ic-drawer__group { margin-top: 6px !important; padding-top: 8px; }
.ic-drawer__group + .ic-drawer__group { border-top: 1px solid #EEF3F3; }
.ic-drawer__label { display: flex; align-items: center; gap: 8px; padding: 0 8px 4px !important; font-size: 11.5px !important; font-weight: 900; color: #2F8E90 !important; }
.ic-drawer__label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to left, #DCEBEB, transparent); }
.ic-drawer__body a { min-height: 40px !important; padding: 4px 8px !important; font-size: 14px !important; gap: 11px !important; }
.ic-drawer__body a > i, .ic-drawer__body a > svg, .ic-drawer__body a > .ic-ai-ico { flex: 0 0 30px !important; width: 30px !important; height: 30px !important; border-radius: 9px !important; }
/* الصفحة المفتوحة حاليًا بالبرتقالي (طلب المالكة)، وعنوان قسمها كذلك */
.ic-drawer__body a[aria-current="page"] { background: #FFF1E8 !important; color: #C2410C !important; box-shadow: inset -3px 0 0 #F36829 !important; }
.ic-drawer__body a[aria-current="page"] > i, .ic-drawer__body a[aria-current="page"] > svg, .ic-drawer__body a[aria-current="page"] > .ic-ai-ico { background: #F36829 !important; color: #fff !important; }
.ic-drawer__group:has(a[aria-current="page"]) .ic-drawer__label { color: #F36829 !important; }
.ic-drawer__group:has(a[aria-current="page"]) .ic-drawer__label::after { background: linear-gradient(to left, #FBD5BF, transparent); }
.ic-drawer__foot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
.ic-drawer__foot .ui-btn--danger { min-height: 44px; font-size: 14px; background: #fff; border: 1px solid #F2D4CC; color: #B4402A; }
@media (max-height: 640px) { .ic-drawer__body a { min-height: 36px !important; } }

/* ─── قائمة الحساب في اللابتوب بنفس شكل قائمة الهاتف (طلب المالكة) ─── */
.ic-menu--account { width: 290px; padding: 0 8px 8px; scrollbar-width: thin; }
.ic-menu--account .ic-menu__head { margin: 0 -8px 2px; padding: 12px 14px; background: linear-gradient(135deg, #F2FAFA, #E6F3F3); border-bottom: 1px solid #DCEBEB; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.ic-menu--account .ic-menu__group { padding: 6px 0 2px; }
.ic-menu--account .ic-menu__group + .ic-menu__group { border-top: 1px solid #EEF3F3; }
.ic-menu--account .ic-menu__label { display: flex; align-items: center; gap: 8px; padding: 2px 8px 4px; font-size: 11.5px; font-weight: 900; color: #2F8E90; }
.ic-menu--account .ic-menu__label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to left, #DCEBEB, transparent); }
.ic-menu--account a { gap: 11px; min-height: 38px; padding: 4px 8px; border-radius: 12px; font-weight: 800; font-size: 14px; color: #2E4244; }
.ic-menu--account a > i, .ic-menu--account a > svg, .ic-menu--account a > .ic-ai-ico { flex: 0 0 30px; width: 30px !important; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #F1F6F6; color: #2F8E90; font-size: 13px; }
.ic-menu--account a:hover { background: #F4F9F9; color: #1F5A5C; }
.ic-menu--account a[aria-current="page"] { background: #FFF1E8; color: #C2410C; box-shadow: inset -3px 0 0 #F36829; }
.ic-menu--account a[aria-current="page"] > i, .ic-menu--account a[aria-current="page"] > svg, .ic-menu--account a[aria-current="page"] > .ic-ai-ico { background: #F36829; color: #fff; }
.ic-menu--account .ic-menu__group:has(a[aria-current="page"]) .ic-menu__label { color: #F36829; }
.ic-menu--account .ic-menu__group:has(a[aria-current="page"]) .ic-menu__label::after { background: linear-gradient(to left, #FBD5BF, transparent); }
.ic-menu--account hr { margin: 6px 0; border: 0; border-top: 1px solid #EEF3F3; }
.ic-menu--account form button.is-danger { justify-content: center; min-height: 40px; border: 1px solid #F2D4CC; border-radius: 12px; background: #fff; color: #B4402A; font-weight: 800; }
.ic-menu--account form button.is-danger i { color: #B4402A; }
.ic-menu--account form button.is-danger:hover { background: #FFF5F2; }

/* ── «مجتمع انفنيتي» في قائمة المساعدة، فوق قروب الواتساب ── */
.ic-menu--help .ic-help__ia{display:flex;align-items:center;gap:10px;margin-top:6px;padding:10px;border-radius:14px;background:linear-gradient(135deg,#EAF6F6,#F4FBFB);box-shadow:inset 0 0 0 1px #CFE6E6;color:#0F2E2F;text-decoration:none}
.ic-menu--help .ic-help__ia:hover,.ic-menu--help .ic-help__ia:focus-visible{background:linear-gradient(135deg,#DDF0F0,#EEF8F8);color:#0F2E2F}
.ic-menu--help .ic-help__ia[aria-current="page"]{box-shadow:inset 0 0 0 1.5px #2F8E90}
.ic-help__ia-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:linear-gradient(135deg,#2F8E90,#1F5A5C);color:#fff}
.ic-help__ia-icon .ic-news-ico{width:18px;height:18px;margin:0!important}
.ic-help__ia-t{display:grid;line-height:1.45;flex:1;min-width:0}.ic-help__ia-t b{font-size:14px;font-weight:900}.ic-help__ia-t small{font-size:11.5px;color:#5B6E70;font-weight:700}
.ic-help__ia-new{flex:0 0 auto;padding:2px 8px;border-radius:999px;background:#F36829;color:#fff;font-size:11px;font-weight:900}
.ic-help__ia-go{flex:0 0 auto;color:#2F8E90;font-weight:900}
.ic-menu--help .ic-help__ia + .ic-help__community{margin-top:6px}

/* ═══ الشريط العلوي v289: 4 روابط + أدوات بأيقونات + فاصل + قائمة حساب عريضة + زر «المنصات» ═══ */
.ic-nav { gap: 4px; margin-inline-start: 18px; }
.ic-nav a { padding: 8px 13px; border-radius: 11px; font-size: 14.5px; }
.ic-nav a[aria-current="page"] { background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-100); }
.ic-header__actions .ic-iconbtn { width: 40px; height: 40px; border-radius: 12px; }
.ic-hsep { width: 1px; height: 26px; margin: 0 4px; background: var(--line); align-self: center; }

/* زر «المنصات» ولوحته */
.ic-pf { position: relative; }
.ic-pf.is-open .ic-menu { opacity: 1; visibility: visible; transform: none; }
.ic-pf.is-open .ic-pf__btn { border-color: var(--brand-200); background: var(--brand-50); color: var(--brand-800); box-shadow: 0 0 0 3px rgba(61,167,169,.14); }
.ic-pf__grid { width: 19px; height: 19px; }
.ic-menu.ic-pf__menu { width: 360px; padding: 14px; inset-inline-end: auto; inset-inline-start: 0; border-radius: 20px; }
.ic-pf__label { display: flex; align-items: center; justify-content: space-between; margin: 2px 6px 10px; font-size: 12px; font-weight: 800; color: #8A9A9B; }
.ic-pf__preview { padding: 1px 9px; border-radius: 999px; background: #FFF1E8; color: #C2410C; font-size: 11px; font-weight: 800; }
.ic-menu .ic-pf__row { gap: 12px; padding: 12px; border-radius: 15px; border: 1px solid transparent; color: var(--ink); }
.ic-menu .ic-pf__row + .ic-pf__row { margin-top: 6px; }
.ic-menu .ic-pf__row.is-here { background: var(--brand-50); border-color: var(--brand-100); }
.ic-menu .ic-pf__row:hover { background: #F4F9F9; color: var(--ink); }
.ic-menu .ic-pf__row.is-here:hover { background: var(--brand-50); }
.ic-pf__logo { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px; color: #fff; }
.ic-menu .ic-pf__logo i, .ic-pf__logo i { width: auto; color: #fff; font-size: 18px; }
.ic-pf__logo--edu { background: linear-gradient(135deg, #2B7C7E, #1F5A5C); }
.ic-pf__logo--svc { background: linear-gradient(135deg, #14B1B6, #0B7F84); }
.ic-pf__t { flex: 1; min-width: 0; display: grid; line-height: 1.45; }
.ic-pf__t b { font-size: 15px; font-weight: 900; }
.ic-pf__t small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.ic-pf__bdg { flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.ic-pf__bdg--here { background: #fff; color: var(--brand-800); box-shadow: inset 0 0 0 1px var(--brand-200); }
.ic-pf__bdg--free { background: var(--success-bg); color: var(--success); }
.ic-pf__foot { display: flex; align-items: center; gap: 8px; margin: 12px 4px 0; padding-top: 12px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 12.5px; font-weight: 700; }
.ic-pf__foot svg { flex: 0 0 auto; color: var(--brand-600); }

/* قائمة الحساب */
.ic-menu.ic-am { width: 540px; max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; padding: 0; border-radius: 20px; scrollbar-width: thin; }
.ic-am__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: linear-gradient(135deg, #F2FAFA, #fff); border-bottom: 1px solid var(--line-2); }
.ic-am__head .ic-avatar { width: 46px; height: 46px; flex: 0 0 46px; font-size: 17px; }
.ic-am__who { flex: 1; min-width: 0; }
.ic-am__who b { display: flex; align-items: center; gap: 5px; font-size: 16px; font-weight: 900; line-height: 1.35; }
.ic-am__who small { display: block; color: var(--muted); font: 600 12.5px "Inter", sans-serif; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-menu .ic-am__profile { width: auto; flex: 0 0 auto; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid #CFE3E3; border-radius: 11px; background: #fff; color: var(--brand-800); font-weight: 800; font-size: 13px; white-space: nowrap; }
.ic-menu .ic-am__profile i { width: auto; color: var(--brand-700); }
.ic-menu .ic-am__profile:hover, .ic-menu .ic-am__profile[aria-current="page"] { background: var(--brand-50); }
.ic-am__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 20px 6px; }
.ic-menu .ic-am__stat { display: block; width: auto; padding: 11px 13px 12px; border: 1px solid var(--line); border-radius: 14px; background: #FBFDFD; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.ic-menu .ic-am__stat:hover { background: #fff; border-color: var(--brand-200); box-shadow: 0 10px 22px -16px rgba(15,27,28,.35); color: var(--ink); }
.ic-am__stat small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.ic-menu .ic-am__stat small i { width: auto; font-size: 12px; color: var(--brand-600); }
.ic-am__ai { display: inline-grid; width: 16px; height: 16px; }
.ic-am__ai svg { width: 16px; height: 16px; }
.ic-am__stat strong { display: block; margin-top: 5px; font-size: 17px; font-weight: 900; white-space: nowrap; }
.ic-am__stat strong.is-empty { color: #8A9A9B; font-size: 15px; }
.ic-am__num { font-family: "Inter", sans-serif; font-weight: 800; }
.ic-am__stat em { display: block; margin-top: 1px; font-style: normal; color: #8A9A9B; font-size: 11.5px; font-weight: 700; }
.ic-menu .ic-am__stat.is-soon { background: #FFF8F3; border-color: #FBE0CC; }
.ic-am__stat.is-soon em { color: #C2410C; }
.ic-am__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px 8px; }
.ic-am__label { display: block; margin: 6px 8px 4px; font-size: 11.5px; font-weight: 800; color: #8A9A9B; }
.ic-menu .ic-am__col a { gap: 10px; padding: 7px 8px; border-radius: 11px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.ic-menu .ic-am__col a > i, .ic-menu .ic-am__col a > .ic-ai-ico { display: grid; place-items: center; flex: 0 0 30px !important; width: 30px !important; height: 30px; border-radius: 9px; background: #F1F6F6; color: var(--brand-600); font-size: 13px; }
.ic-menu .ic-am__col a > .ic-ai-ico .aibot, .ic-menu .ic-am__col a > .ic-ai-ico svg { width: 20px; height: 20px; margin: 0; }
.ic-menu .ic-am__col a > span:not(.ic-am__pill) { flex: 1; }
.ic-menu .ic-am__col a:hover { background: #F4F9F9; color: var(--brand-800); }
.ic-menu .ic-am__col a[aria-current="page"] { background: var(--brand-50); color: var(--brand-800); }
.ic-menu .ic-am__col a[aria-current="page"] > i { background: var(--brand-800); color: #fff; }
.ic-am__pill { flex: 0 0 auto; padding: 1px 8px; border-radius: 999px; background: #FFF1E8; color: #C2410C; font-size: 11px; font-weight: 800; }
.ic-am__foot { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--line-2); background: #FAFCFC; }
.ic-menu .ic-am__foot a, .ic-menu .ic-am__foot > button { width: auto; gap: 7px; padding: 7px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ic-menu .ic-am__foot a i, .ic-menu .ic-am__foot > button i { width: auto; color: var(--muted); }
.ic-menu .ic-am__foot a:hover, .ic-menu .ic-am__foot > button:hover { background: var(--brand-50); color: var(--brand-800); }
.ic-am__out { margin-inline-start: auto; }
.ic-menu .ic-am__out button.is-danger { width: auto; gap: 7px; padding: 7px 10px; border: 0; border-radius: 10px; background: none; color: #B42318; font-size: 13px; font-weight: 800; }
.ic-menu .ic-am__out button.is-danger i { width: auto; color: #B42318; }
.ic-menu .ic-am__out button.is-danger:hover { background: #FFF5F2; }
@media (max-width: 1180px) { .ic-menu.ic-am { width: 500px; } }

/* قسم «المنصات» أعلى القائمة الجانبية (الهاتف) */
.ic-dpf { position: relative; margin: 12px 0 2px; padding: 10px; border-radius: 16px; background: #F7FBFB; border: 1px solid #E1EDED; }
.ic-dpf__tag { position: absolute; top: -9px; inset-inline-end: 12px; padding: 1px 9px; border-radius: 999px; background: #F36829; color: #fff; font-size: 10.5px; font-weight: 800; box-shadow: 0 0 0 3px #fff; }
.ic-dpf__tag.is-preview { background: #FFF1E8; color: #C2410C; }
.ic-dpf__label { display: block; padding: 0 2px 8px; font-size: 11.5px; font-weight: 800; color: #8A9A9B; }
.ic-dpf__two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ic-drawer__body a.ic-dpf__card { display: grid; justify-items: start; align-content: start; gap: 6px; min-height: 0; padding: 10px; border-radius: 13px; border: 1px solid #E3EDED; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 900; line-height: 1.3; }
.ic-drawer__body a.ic-dpf__card.is-here { border-color: var(--brand-200); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-100); }
.ic-drawer__body a.ic-dpf__card .ic-pf__logo { width: 34px; height: 34px; border-radius: 10px; }
.ic-drawer__body a.ic-dpf__card .ic-pf__logo i { width: auto; height: auto; background: none; color: #fff; font-size: 15px; }
.ic-drawer__body a.ic-dpf__card .ic-pf__bdg { padding: 2px 8px; font-size: 10.5px; }
/* لابتوب ضيق (1024–1180): الاسم الأول يُخفى من زر الحساب وتتقارب الروابط حتى لا يخرج شيء عن الشاشة */
@media (min-width: 1024px) and (max-width: 1180px) {
    .ic-nav { margin-inline-start: 8px; gap: 2px; }
    .ic-nav a { padding: 8px 10px; gap: 7px; }
    .ic-header__bar { gap: 12px; }
    .ic-user__meta { display: none; }
    .ic-user__btn { gap: 6px; padding-inline-start: 6px; }
}
/* v291: صور الإشعارات — مكان محجوز بنسبتها، ظل تحميل هادئ، ثم ظهور ناعم بدل الرسم سطرًا سطرًا */
.nt2-body .nt-img { position: relative; display: block; width: 100%; max-width: 380px; margin: 12px 0 4px; border-radius: 16px; overflow: hidden; border: 1px solid #E6EFEF; background: #EEF5F5; }
.nt2-body .nt-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.65) 50%, transparent 80%) #EEF5F5; background-size: 220% 100%; animation: ntShimmer 1.3s ease-in-out infinite; }
.nt2-body .nt-img.is-ok::before { opacity: 0; animation: none; transition: opacity .3s; }
.nt2-body .nt-img img { position: relative; display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; opacity: 0; transition: opacity .35s ease, transform .35s ease; transform: scale(1.01); }
.nt2-body .nt-img.is-ok img { opacity: 1; transform: none; }
.nt2-body .nt-img:hover img { transform: scale(1.02); }
@keyframes ntShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .nt2-body .nt-img::before { animation: none; } .nt2-body .nt-img img { transition: none; } }
@media (max-width: 560px) { .nt2-body .nt-img { max-width: 100%; } }

/* v292: لوحة «منصات انفنيتي» — بطاقتان متجاورتان (بأسلوب لوحات التطبيقات) + سطر الحساب */
.ic-menu.ic-pf__menu { width: 404px; padding: 16px; border-radius: 22px; box-shadow: 0 30px 70px -30px rgba(15, 27, 28, .45), 0 2px 6px -2px rgba(15, 27, 28, .08); }
.ic-pf__hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 0 2px 14px; }
.ic-pf__hd b { display: block; font-size: 15px; font-weight: 900; color: var(--ink); line-height: 1.4; }
.ic-pf__hd small { display: block; font-size: 12px; font-weight: 700; color: #7A8A8C; }
.ic-pf__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ic-menu a.ic-pf__tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: auto; padding: 14px 14px 12px; border: 1.5px solid #E3EDED; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .18s, background .18s; }
.ic-menu a.ic-pf__tile:hover { border-color: #9FD3D4; background: #fff; color: var(--ink); transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(15, 27, 28, .5); }
.ic-menu a.ic-pf__tile.is-here { border-color: #BFE0E1; background: linear-gradient(160deg, #F1F9F9, #FFFFFF 70%); }
.ic-menu a.ic-pf__tile.is-here:hover { transform: none; box-shadow: none; }
.ic-pf__tile .ic-pf__logo { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 8px; box-shadow: 0 10px 20px -12px rgba(15, 90, 92, .7); }
.ic-pf__tile .ic-pf__logo svg { color: #fff; }
.ic-pf__tile b { font-size: 15px; font-weight: 900; line-height: 1.35; }
.ic-pf__tile small { font-size: 12px; font-weight: 600; color: #6B7C7E; line-height: 1.5; }
.ic-pf__st { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.ic-pf__st--here { background: #E2F2F2; color: #1F5A5C; }
.ic-pf__st--go { background: #E7F8EE; color: #15803D; }
.ic-pf__go { display: inline-grid; font-style: normal; transition: transform .18s; }
.ic-menu a.ic-pf__tile:hover .ic-pf__go { transform: translateX(-3px); }
.ic-pf__acct { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 4px 2px; border-top: 1px solid #EEF3F3; }
.ic-pf__av { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #F36829; color: #fff; font-weight: 900; font-size: 13px; }
.ic-pf__acct b { display: block; font-size: 13px; font-weight: 800; color: var(--ink); line-height: 1.35; }
.ic-pf__acct small { display: block; font-size: 11.5px; font-weight: 700; color: #7A8A8C; }
@media (prefers-reduced-motion: reduce) { .ic-menu a.ic-pf__tile, .ic-pf__go { transition: none; } }

/* v293: «منصات انفنيتي» — التصور 1: شعار انفنيتي + اسم المنصة كعلامة بلونين (بدل البطاقات والأيقونات) */
.ic-menu.ic-pf__menu.ic-pfl { width: 340px; padding: 0; overflow: hidden; border-radius: 18px; }
.ic-pfl__hd { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px 7px; font-size: 11.5px; font-weight: 800; color: #8A9A9B; }
.ic-pfl a.ic-pfl__it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border-radius: 0; border-top: 1px solid #F0F5F5; color: var(--ink); text-decoration: none; transition: background .15s; }
.ic-pfl a.ic-pfl__it:hover { background: #F7FBFB; color: var(--ink); }
.ic-pfl a.ic-pfl__it.is-here { background: #FAFCFC; }
.ic-pfl__lm { width: 42px; height: 42px; flex: none; border-radius: 12px; background: #fff; border: 1px solid #E6EFEF; display: grid; place-items: center; }
.ic-pfl__mk { display: block; }
.ic-pfl__wm { flex: 1; min-width: 0; line-height: 1.35; }
.ic-pfl__wm b { display: block; font-size: 15px; font-weight: 900; }
.ic-pfl__wm b .is-edu { color: #F36829; }
.ic-pfl__wm b .is-svc { color: #0B7F84; }
.ic-pfl__wm small { display: block; font-size: 12px; font-weight: 700; color: #7A8A8C; }
.ic-pfl__ok { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #1F5A5C; color: #fff; }
.ic-pfl__go { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; color: #1F5A5C; transition: gap .15s; }
.ic-pfl a.ic-pfl__it:hover .ic-pfl__go { gap: 7px; }
.ic-pfl__ft { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; border-top: 1px solid #EEF3F3; font-size: 12px; font-weight: 700; color: #7A8A8C; }
.ic-pfl__ft b { font-weight: 800; color: #3B4A4C; }
/* الهاتف: نفس القائمة داخل القائمة الجانبية */
.ic-pfl--drawer { margin: 2px 0 10px; border: 1px solid #E6EFEF; border-radius: 16px; overflow: hidden; background: #fff; }
.ic-drawer__body .ic-pfl--drawer a.ic-pfl__it { padding: 11px 12px; font-weight: 800; }
.ic-drawer__body .ic-pfl--drawer a.ic-pfl__it > svg, .ic-drawer__body .ic-pfl--drawer .ic-pfl__lm svg { width: auto; height: auto; background: none; }
.ic-pfl--drawer .ic-pfl__lm { width: 38px; height: 38px; }
.ic-pfl--drawer .ic-pfl__hd { padding: 10px 12px 6px; }

/* v294: علامة كل منصة — التصور «ج»: شعار انفنيتي أبيض على مربع بلون المنصة */
.ic-pfl__lm { border: 0; box-shadow: 0 8px 16px -10px rgba(15, 60, 62, .7); }
.ic-pfl__lm--edu { background: linear-gradient(140deg, #FF8A50, #E8551A); }
.ic-pfl__lm--svc { background: linear-gradient(140deg, #19B6BB, #0B7F84); }
.ic-drawer__body .ic-pfl--drawer .ic-pfl__lm svg { width: 25px; height: 14px; }

/* v295: اسم المنصة فقط بلا سطر وصف */
.ic-pfl__wm b { font-size: 15.5px; }
.ic-pfl a.ic-pfl__it { padding-top: 11px; padding-bottom: 11px; }

/* v369: منع التكبير التلقائي في آيفون عند الكتابة (يجعل الصفحة تبدو مزاحة لليسار).
   سفاري يكبّر أي خانة خطها أقل من 16px ولا يرجع؛ 16px على الجوال يمنعه دون تعطيل التكبير اليدوي. */
@media (max-width: 900px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea { font-size: 16px !important; }
}


/* v384: تنسيق الترويسة الموحّدة في ملف الرأس (كان داخل الصفحة فيظهر الرأس بلا تنسيق لحظة التحميل) */

.ic-header__bar{min-height:68px}
.ic-pfchip{display:inline-flex;align-items:center;height:26px;padding:0 12px;border-radius:999px;background:#FFF1E8;color:#C2410C;font:900 12.5px Cairo,sans-serif;margin-inline-start:10px;position:relative}
.ic-pfchip::before{content:"";position:absolute;inset-inline-start:-6px;top:4px;bottom:4px;width:1px;background:#DCE6E6}
.ic-nav a{font:800 15px Cairo,sans-serif!important;color:#3B4A4C!important;padding:8px 14px!important;border-radius:10px!important;gap:6px!important}
.ic-nav a:hover{background:#F2F7F7!important;color:#15201F!important}
.ic-nav a[aria-current="page"]{background:#EEF6F6!important;color:#0E7C80!important;box-shadow:none!important}
.ic-header__actions .ui-btn--sm{height:40px!important;padding:0 16px!important;border-radius:12px!important;font:900 14px Cairo,sans-serif!important;align-items:center}
.ic-header__actions .ui-btn--ghost.ui-btn--sm{border:1.5px solid #DCE6E6!important;background:#fff!important;color:#15201F!important}
.ic-header__actions .ic-iconbtn{width:40px;height:40px}
.ic-mlogin{display:none}
@media (max-width:1023px){.ic-mlogin{display:inline-flex;align-items:center;height:38px;padding:0 14px;border-radius:11px;border:1.5px solid #DCE6E6;font:900 13.5px Cairo,sans-serif;color:#15201F;text-decoration:none;background:#fff}
 .ic-pfchip{height:22px;padding:0 9px;font-size:11px;margin-inline-start:8px}}
@media (max-width:440px){.ic-pfchip{display:none}}

/* v384: مؤشر تحميل هادئ أسفل الترويسة أثناء تجهيز محتوى الصفحة (يظهر فقط إن تأخر أكثر من ثلث ثانية) */
.ic-pl{position:fixed;inset:68px 0 0;display:grid;place-items:start center;padding-top:22vh;background:var(--bg,#F6F9F9);z-index:5;opacity:0;animation:icPlIn .2s ease-out .35s forwards;pointer-events:none}
.ic-pl span{width:34px;height:34px;border-radius:50%;border:3px solid #DCE8E8;border-top-color:#0E7C80;animation:icPlSpin .8s linear infinite}
@keyframes icPlIn{to{opacity:1}}@keyframes icPlSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.ic-pl span{animation:none;border-top-color:#DCE8E8}}

/* v387: شارة خدمات الطالب في رئيسية التعليم + ديما في سطر الثقة */
.ic-svpill{display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;padding:5px 14px 5px 5px;border-radius:999px;border:1px solid #CFE6E6;background:#F2FAFA;color:#0B6E73!important;font:800 13.5px Cairo,sans-serif;text-decoration:none;transition:background .15s,border-color .15s}
.ic-svpill:hover{background:#E6F5F5;border-color:#A9D6D7}
.ic-svpill span{background:#0E7C80;color:#fff;border-radius:999px;padding:2px 10px;font:900 12px Cairo,sans-serif}
.ic-svpill b{font-weight:900}
@media (max-width:480px){.ic-svpill{font-size:12px;padding:4px 10px 4px 4px}}
.ic-dmk{display:inline-flex;align-items:center;gap:4px;font-weight:inherit;color:inherit;white-space:nowrap}.ic-dmk img{width:14px;height:14px;border-radius:4px;display:inline-block}

*:has(> .ic-dmk){white-space:nowrap}

/* v392: مؤشر التحميل بشعار انفنيتي */
.icl{display:block;overflow:visible}
.icl .icl-g{fill:#EDF3F3}
.icl .icl-s{fill:none;stroke-width:9;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:100;stroke-dashoffset:100}
.icl .icl-f{opacity:0}
.icl .icl-a{animation:iclDrawA 1.8s ease-in-out infinite}.icl .icl-b{animation:iclDrawB 1.8s ease-in-out infinite}
.icl .icl-fa{animation:iclFillA 1.8s ease-in-out infinite}.icl .icl-fb{animation:iclFillB 1.8s ease-in-out infinite}
@keyframes iclDrawA{0%{stroke-dashoffset:100}35%,100%{stroke-dashoffset:0}}
@keyframes iclDrawB{0%,25%{stroke-dashoffset:100}60%,100%{stroke-dashoffset:0}}
@keyframes iclFillA{0%,35%{opacity:0}45%,85%{opacity:1}100%{opacity:0}}
@keyframes iclFillB{0%,60%{opacity:0}70%,85%{opacity:1}100%{opacity:0}}
.ic-pl .icl{width:120px;height:auto}
@media (prefers-reduced-motion:reduce){.icl .icl-s,.icl .icl-f{animation:none!important}.icl .icl-f{opacity:1}}

/* v395: تحميل أهدأ — شعار مكتمل دائمًا (لا رسم يُقطع) بنبض خفيف + شريط تقدم رفيع أعلى الصفحة.
   يظهر فقط إن تأخرت الصفحة أكثر من نصف ثانية، فالصفحات السريعة لا تُظهر شيئًا. */
.ic-pl{animation:icPlIn .25s ease-out .5s forwards!important}
.ic-pl .icl .icl-s,.ic-pl .icl .icl-g{display:none}
.ic-pl .icl .icl-f{opacity:1!important;animation:none!important}
.ic-pl .icl{animation:iclPulse 1.4s ease-in-out infinite;transform-origin:50% 50%}
@keyframes iclPulse{0%,100%{opacity:.55;transform:scale(.96)}50%{opacity:1;transform:scale(1)}}
.ic-pl::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,transparent,#F36829,#0E7C80,transparent);background-size:50% 100%;background-repeat:no-repeat;animation:icPlBar 1.1s ease-in-out infinite}
@keyframes icPlBar{0%{background-position:-50% 0}100%{background-position:150% 0}}
@media (prefers-reduced-motion:reduce){.ic-pl .icl,.ic-pl::before{animation:none!important}}

/* v396: «مساعد انفنيتي» — تصميم مركز دعم احترافي */
.as-fab{background:linear-gradient(140deg,#19B6BB,#0B6E73)!important;color:#fff!important;box-shadow:0 14px 28px -12px rgba(11,110,115,.8)!important}
.as-fab svg{display:block}
.as2{width:390px!important;max-height:min(680px,calc(100vh - 110px))!important;border-radius:22px!important;overflow:hidden;background:#F6F9F9!important;border:1px solid #DCE6E6!important;box-shadow:0 34px 70px -34px rgba(0,0,0,.55)!important;display:flex!important;flex-direction:column}
.as2[hidden]{display:none!important}
.as-root .as2-head{background:radial-gradient(240px 120px at 92% 0%,rgba(243,104,41,.32),transparent 70%),linear-gradient(150deg,#0F5E62,#0A3F42)!important;color:#fff!important;padding:14px 16px!important;border:0!important;gap:10px!important}
.as-root .as2-head .as-head__txt b{color:#fff!important;font:900 16px Cairo,sans-serif!important}
.as-root .as2-head .as-head__txt small{color:rgba(255,255,255,.85)!important;font:700 12px Cairo,sans-serif!important;display:flex;align-items:center;gap:6px}
.as-root .as2-head .as-head__x,.as-root .as2-head .as-head__back{background:rgba(255,255,255,.12)!important;color:#fff!important;border:0!important}
.as-root .as2-mk{width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.12);display:grid;place-items:center;flex:none}
.as-root .as2-dot{width:8px;height:8px;border-radius:50%;background:#4ADE80;display:inline-block;flex:none}
.as2 .as-body{padding:14px!important;display:grid;gap:10px;align-content:start;overflow:auto;flex:1}
.as-root .as2-hi b{display:block;font:900 18px Cairo,sans-serif;color:#15201F}.as-root .as2-hi span{font:700 13.5px Cairo,sans-serif;color:#5E6E70}
.as-root .as2-card{background:#fff;border:1px solid #E3ECEC;border-radius:16px;padding:12px 14px;box-shadow:0 8px 20px -18px rgba(0,0,0,.35);display:flex;gap:10px;align-items:center;text-decoration:none;color:inherit}
.as-root .as2-card b{display:block;font:900 13.5px Cairo,sans-serif;color:#15201F}.as-root .as2-card small{display:block;font:700 12px Cairo,sans-serif;color:#677779}
.as-root .as2-ic{width:38px;height:38px;border-radius:11px;background:#EEF6F6;color:#0E7C80;display:grid;place-items:center;flex:none;font-size:16px}.as-root .as2-ic--wa{background:#25D366;color:#fff;font-size:19px}
.as-root .as2-st{margin-inline-start:auto;font-style:normal;font:900 11px Cairo,sans-serif;border-radius:999px;padding:2px 10px;white-space:nowrap}.as-root .as2-st--ok{background:#E7F8EE;color:#15803D}.as-root .as2-st--wait{background:#FEF3C7;color:#92400E}.as-root .as2-st--off{background:#F1F5F5;color:#677779}
.as-root .as2-topics{display:grid!important;gap:0;padding:6px 8px!important}.as-root .as2-lbl{font:900 12px Cairo,sans-serif;color:#677779;padding:6px 8px 4px}
.as-root .as2-topics button{all:unset;cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:10px 8px;border-top:1px solid #F1F5F5;font:800 13.5px Cairo,sans-serif;color:#15201F;border-radius:8px}
.as-root .as2-topics button:hover{background:#F2F7F7}.as-root .as2-topics button i{color:#B5C2C3;font-size:12px}.as-root .as2-lbl+button{border-top:0}
.as-root .as2-team .as2-go{margin-inline-start:auto;font:900 12.5px Cairo,sans-serif;color:#0E7C80}
.as-root .as2-fb{display:flex;gap:6px;align-items:center;font:800 12px Cairo,sans-serif;color:#677779;justify-content:flex-end}.as-root .as2-fb button{all:unset;cursor:pointer;border:1px solid #DCE6E6;border-radius:999px;padding:3px 10px;background:#fff}
.as-root .as2-hum{display:inline-flex;gap:8px;align-items:center;border:1.5px solid #25D366;color:#128C4A;background:#F2FBF6;border-radius:12px;padding:8px 12px;font:900 12.5px Cairo,sans-serif;text-decoration:none}
.as2 .as-form{border-top:1px solid #E3ECEC;background:#fff;padding:10px 12px!important}
.as2 .as-input{font-size:16px!important}
@media (max-width:640px){
 .as-root.is-open .as2{position:fixed!important;inset:auto 0 0 0!important;width:auto!important;max-height:88vh!important;height:88vh;border-radius:22px 22px 0 0!important}
 .as-root.is-open .as-fab{display:none!important}
}
/* v396b: تثبيت تخطيط بطاقات ورأس المساعد (تتغلب على قواعد المساعد القديمة) */
.as-root .as2 .as2-head{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;text-align:start!important;min-height:0!important}
.as-root .as2 .as2-head .as-head__txt{flex:1;min-width:0;text-align:start!important}
.as-root .as2 .as2-head .as-head__x{margin-inline-start:auto}
.as-root .as2 .as2-card{display:flex!important;flex-direction:row!important;align-items:center!important;text-align:start!important;justify-content:flex-start!important}
.as-root .as2 .as2-card>div{flex:1;min-width:0}
.as-root .as2 .as2-topics{display:grid!important;flex-direction:column!important}
.as-root .as2 .as2-hi{text-align:start}
.as-root .as2 .as2-card{min-height:0!important;height:auto!important}
.as-root .as2 .as2-topics button{width:100%!important;box-sizing:border-box!important;display:flex!important;justify-content:space-between!important;text-align:start!important}
.as-root .as2 #asMenu,.as-root .as2 .as2-topics{max-height:none!important;overflow:visible!important;height:auto!important}
.as-root .as2 .as2-topics button i{margin-inline-start:auto}
.as-root .as2 .as-body{display:flex!important;flex-direction:column!important;gap:10px!important}
.as-root .as2 .as-body>*{flex-shrink:0!important}

/* v397: قائمة الجرس في منصة التعليم (آخر الإشعارات) — نفس أسلوب خدمات الطالب */
.ic-bell{position:relative}
.ic-bell.is-open .ic-menu{opacity:1;visibility:visible;transform:none}
.ic-bm{width:360px;padding:0!important;overflow:hidden}
.ic-bm__hd{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid #EEF3F3}.ic-bm__hd b{font:900 15px Cairo,sans-serif;color:#15201F}
.ic-bm__n{font:900 11.5px Cairo,sans-serif;color:#C2410C;background:#FFF1E8;border-radius:999px;padding:2px 9px}
.ic-menu .ic-bm__it{display:flex!important;gap:10px;align-items:flex-start;padding:11px 16px!important;border-bottom:1px solid #F3F7F7;border-radius:0!important;color:#15201F!important}
.ic-menu .ic-bm__it:hover{background:#F7FBFB!important}
.ic-bm__dt{width:8px;height:8px;border-radius:50%;margin-top:7px;flex:none;background:transparent}.ic-bm__it.is-un .ic-bm__dt{background:#F36829}
.ic-bm__tx{flex:1;min-width:0}.ic-bm__tx b{display:block;font:900 13.5px/1.5 Cairo,sans-serif}.ic-bm__tx small{display:block;font:600 12.5px/1.6 Cairo,sans-serif;color:#5E6E70}
.ic-bm__it time{font:700 11px Cairo,sans-serif;color:#8A9A9B;white-space:nowrap}
.ic-bm__empty{padding:22px 16px;text-align:center;font:700 13px Cairo,sans-serif;color:#677779}
.ic-menu .ic-bm__all{display:block!important;text-align:center;padding:12px!important;font:900 13.5px Cairo,sans-serif;color:#0E7C80!important;border-radius:0!important}
.ic-bm{max-height:min(560px,calc(100vh - 90px));overflow:auto}
@media (max-width:1023px){.ic-bell .ic-menu{position:fixed;top:64px;inset-inline:12px;width:auto}}
.ic-menu .ic-bm__all{position:sticky;bottom:0;background:#fff;border-top:1px solid #EEF3F3}

/* v398: «مساعد انفنيتي» بهوية الشعار */
.as-root .as-fab{background:#fff!important;color:inherit!important;border:1px solid #E3ECEC!important;box-shadow:0 14px 30px -14px rgba(15,46,47,.55),0 0 0 4px rgba(14,124,128,.08)!important;transition:transform .18s ease,box-shadow .18s ease}
.as-root .as-fab:hover{transform:translateY(-2px);box-shadow:0 18px 34px -14px rgba(15,46,47,.6),0 0 0 5px rgba(14,124,128,.12)!important}
.as-root .as-fab .as-fab__dot{background:#F36829!important;border:2px solid #fff}
.as-root .as2 .as2-mk{background:#fff!important;border-radius:12px}
.as-root .as2 .as2-topics button{gap:10px;justify-content:flex-start!important;padding:10px 8px!important}
.as-root .as2 .as2-topics button i.fa-chevron-left{margin-inline-start:auto;color:#B5C2C3;font-size:11px}
.as-root .as2-ti{width:30px;height:30px;border-radius:9px;background:#EEF6F6;color:#0E7C80;display:grid;place-items:center;flex:none;font-size:13px}
.as-root .as2 .as-row{display:flex;gap:8px;align-items:flex-end;margin:0}
.as-root .as2 .as-row--me{justify-content:flex-start}
.as-root .as2 .as-av--bot{width:30px;height:30px;border-radius:10px;background:#fff;border:1px solid #E3ECEC;display:grid;place-items:center;flex:none}
.as-root .as2 .as-msg--me{background:#0E7C80!important;color:#fff!important;border-radius:16px 16px 4px 16px!important;padding:9px 13px!important;font:700 13.5px/1.7 Cairo,sans-serif;max-width:82%}
.as-root .as2 .as-msg--bot{background:#fff!important;color:#15201F!important;border:1px solid #E3ECEC!important;border-radius:16px 16px 16px 4px!important;padding:9px 13px!important;font:700 13.5px/1.75 Cairo,sans-serif;max-width:82%}
.as-root .as2 .as-answer{background:#fff;border:1px solid #E3ECEC;border-radius:16px;padding:12px 14px;box-shadow:0 8px 20px -18px rgba(0,0,0,.35)}
.as-root .as2 .as-answer b{font:900 14px Cairo,sans-serif;color:#15201F;display:block;margin-bottom:4px}
.as-root .as2 .as-answer p{font:600 13px/1.85 Cairo,sans-serif;color:#3B4A4C;margin:0 0 6px}
.as-root .as2 .as-answer__link{font:900 12.5px Cairo,sans-serif;color:#0E7C80}
.as-root .as2 .as-form{gap:8px;display:flex;align-items:center}
.as-root .as2 .as-input{border:1.5px solid #DCE6E6!important;border-radius:999px!important;padding:10px 16px!important;background:#F6F9F9!important}
.as-root .as2 .as-input:focus{border-color:#0E7C80!important;background:#fff!important;outline:none}
.as-root .as2 .as-send{width:42px!important;height:42px!important;border-radius:50%!important;background:#0E7C80!important;color:#fff!important;flex:none}
.as-root .as2 .as2-card.as2-topics{justify-content:stretch!important;grid-template-columns:1fr!important;align-items:stretch!important}
.as-root .as2-ti i{font-size:13px;line-height:1}
.as-root .as2-ti{background:#E6F5F5!important;color:#0E7C80!important}.as-root .as2-ti svg{display:block}
/* v399: زر المساعد — اللون الفيروزي السابق مع شعار أبيض في المنتصف تمامًا */
.as-root .as-fab{background:linear-gradient(140deg,#19B6BB,#0B6E73)!important;border:0!important;box-shadow:0 14px 28px -12px rgba(11,110,115,.8)!important;display:grid!important;place-items:center!important;padding:0!important;position:relative}
.as-root .as-fab:hover{box-shadow:0 18px 32px -12px rgba(11,110,115,.85)!important}
.as-root .as-fab .as-fab__mk{display:block;margin:0!important;grid-area:1/1}
.as-root .as-fab .as-fab__dot{position:absolute!important;top:2px;inset-inline-end:2px;grid-area:auto}
/* v400: شعار رأس المساعد أبيض على مربع زجاجي متناسق مع الرأس الداكن */
.as-root .as2 .as2-mk{background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.22);width:42px;height:42px;border-radius:13px;display:grid;place-items:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.as-root .as2 .as2-mk svg{display:block}
.as-root .as2 .as2-head{padding:14px 16px!important;gap:12px!important}
.as-root .as2 .as2-head .as-head__txt b{letter-spacing:.1px}
.as-root .as2 .as2-head .as-head__x,.as-root .as2 .as2-head .as-head__back{width:34px;height:34px;border-radius:11px!important;display:grid!important;place-items:center!important;background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.18)!important}
.as-root .as2 .as2-head .as-head__back[hidden]{display:none!important}.as-root .as2 .as2-head .as-head__txt small{white-space:nowrap}
/* v403: مكان زر المساعد على الجوال — زاوية سفلية بهامش ثابت (كان ملتصقًا بحافة الشاشة)، ولا يغطي شريطًا غير مرئي عرض الشاشة */
@media (max-width:640px){
 .as-root{left:16px!important;right:auto!important;bottom:calc(16px + env(safe-area-inset-bottom, 0px))!important;width:auto!important;height:auto!important;pointer-events:none}
 .as-root>*{pointer-events:auto}
 .as-root .as-fab{width:52px!important;height:52px!important;position:relative!important;left:auto!important;right:auto!important;margin:0!important}
}

/* v435: زر «؟» شرح الصفحة (خدمات الطالب) */
.hv-q{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 12px 0 6px;border-radius:999px;border:1.5px solid #CFE3E3;background:#fff;color:#0B6E73;font:800 13px Cairo,sans-serif;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s}
.hv-q span{width:26px;height:26px;border-radius:50%;background:#0E7C80;color:#fff;display:grid;place-items:center;font:900 15px Cairo,sans-serif;line-height:1}
.hv-q em{font-style:normal}
.hv-q:hover{background:#F2FAFA;border-color:#0E7C80}
@media (max-width:640px){.hv-q{padding:0;width:38px;justify-content:center}.hv-q em{display:none}}

/* v438: زر الشرح في صفحات الخدمات — نفس زر منصة التعليم، تحت عنوان الصفحة */
.sv-hv{margin-top:10px;display:flex}.sv-hv .hv-watch{max-width:100%}
@media (max-width:640px){.sv-hv .hv-watch{font-size:13px}.sv-hv .hv-watch__txt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}}
