/* ==========================================================================
   أ. محمد عبد العزيز — واجهة الموقع
   مبنية على DESIGN_SYSTEM.md — العناوين Readex Pro، النصوص IBM Plex Sans Arabic
   ========================================================================== */

/* ── الأرقام العربية (٠–٩) بخط Tajawal في كل الموقع: الـ ٢ "عصاية عوجة" من غير أسنان زي كتب القدرات */
@font-face { font-family: "QDigits"; font-weight: 100 600; font-display: swap; src: url("../fonts/tajawal/tajawal-arabic-500.woff2") format("woff2"); unicode-range: U+0660-066C; }
@font-face { font-family: "QDigits"; font-weight: 700; font-display: swap; src: url("../fonts/tajawal/tajawal-arabic-700.woff2") format("woff2"); unicode-range: U+0660-066C; }
@font-face { font-family: "QDigits"; font-weight: 800 900; font-display: swap; src: url("../fonts/tajawal/tajawal-arabic-800.woff2") format("woff2"); unicode-range: U+0660-066C; }
/* ── Tajawal كامل لصفحات الاختبار (خط أتقل ومريح للعين) */
@font-face { font-family: "Tajawal Exam"; font-weight: 500; font-display: swap; src: url("../fonts/tajawal/tajawal-arabic-500.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal Exam"; font-weight: 700; font-display: swap; src: url("../fonts/tajawal/tajawal-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal Exam"; font-weight: 800; font-display: swap; src: url("../fonts/tajawal/tajawal-arabic-800.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal Exam"; font-weight: 500; font-display: swap; src: url("../fonts/tajawal/tajawal-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212, U+2215; }
@font-face { font-family: "Tajawal Exam"; font-weight: 700; font-display: swap; src: url("../fonts/tajawal/tajawal-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212, U+2215; }
@font-face { font-family: "Tajawal Exam"; font-weight: 800; font-display: swap; src: url("../fonts/tajawal/tajawal-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212, U+2215; }

:root {
  /* ألوان اللوجو: أزرق ملكي (أساسي) + أخضر (ثانوي) + ذهبي (أكشن) */
  --blue-950: #071C45; --blue-900: #0A2559; --blue-800: #0B2F70; --blue-700: #0C3483;
  --blue-600: #1150B8; --blue-500: #1565D8; --blue-400: #2F86F0; --blue-300: #6FB1FF;
  --blue-100: #E6F0FD; --blue-50: #F3F8FF;
  --green-700: #13703A; --green-600: #1A8F47; --green-500: #22B356; --green-400: #4CC95E; --green-300: #8BE04A; --green-100: #E3F7E8;

  --gold-300: #FFD24D; --gold-400: #FFC233; --gold-500: #F7A928;
  --gold-600: #F29A0E; --gold-700: #E08A06; --gold-800: #B86E00; --gold-100: #FFF3D6; --gold-50: #FFFAEE;

  --text-heading: #0C3483; --text-body: #26324A; --text-secondary: #46536B;
  --text-nav: #475569; --text-muted: #6B7790;

  --bg-page: #FAFBFE; --bg-warm: #FFFAEE; --bg-mint: #EEF8F1; --bg-footer: #F5F8FE;
  --surface: #FFFFFF; --border: #E3E9F3;

  --success: #1A8F47; --success-bg: #E3F7E8; --danger: #C2410C; --danger-bg: #FDECEC;

  --grad-hero: linear-gradient(135deg, #1565D8 0%, #0C3483 55%, #0A2559 100%);
  --grad-gold: linear-gradient(90deg, #FFC233 0%, #F29A0E 55%, #D27A00 100%);
  --grad-blue-bar: linear-gradient(90deg, #1565D8 0%, #0B2F70 100%);
  --grad-blue-card: linear-gradient(135deg, #1565D8 0%, #0B2F70 100%);
  --grad-brand: linear-gradient(90deg, #1565D8 0%, #22B356 100%);
  --grad-green: linear-gradient(135deg, #22B356 0%, #13703A 100%);

  --font-sans: "QDigits", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "QDigits", "Readex Pro", "IBM Plex Sans Arabic", sans-serif;
  --font-exam: "Tajawal Exam", "QDigits", "IBM Plex Sans Arabic", sans-serif;

  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 20px; --radius-xl: 28px; --radius-2xl: 32px; --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(12, 52, 131, .06);
  --shadow-md: 0 10px 30px rgba(12, 52, 131, .08);
  --shadow-lg: 0 24px 60px rgba(12, 52, 131, .12);
  --shadow-gold: 0 10px 24px rgba(242, 154, 14, .32);
  --shadow-teal: 0 10px 24px rgba(21, 101, 216, .28);

  --container: 1240px; --header-h: 80px; --ease: .25s ease;

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1.2'%3E%3Ccircle cx='0' cy='0' r='40'/%3E%3Ccircle cx='80' cy='0' r='40'/%3E%3Ccircle cx='0' cy='80' r='40'/%3E%3Ccircle cx='80' cy='80' r='40'/%3E%3Ccircle cx='40' cy='40' r='40'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 1rem; color: var(--text-body); background: var(--bg-page); line-height: 1.85; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--text-heading); font-weight: 700; line-height: 1.4; margin: 0 0 .5em; letter-spacing: -.2px; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
[data-lucide], .lucide { width: 20px; height: 20px; stroke-width: 1.9; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 104px; }
.section-sm { padding-block: 56px; }
.text-gold { color: var(--gold-600); }
.text-muted { color: var(--text-muted); }

/* ── Buttons ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: var(--radius-md); font-weight: 600; font-size: .97rem; border: none; cursor: pointer; transition: var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--grad-gold); color: #fff; box-shadow: var(--shadow-gold); }
.btn-gold:hover { box-shadow: 0 14px 30px rgba(242, 154, 14, .45); }
.btn-teal { background: var(--blue-500); color: #fff; box-shadow: var(--shadow-teal); }
.btn-outline { color: var(--blue-700); background: transparent; }
.btn-outline:hover { background: var(--blue-100); }
.btn-outline-light { color: #fff; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); }
.btn-soft { background: var(--blue-100); color: var(--blue-700); }
.btn-soft:hover { background: #d5e5fb; }
.btn-ghost { color: var(--blue-700); background: transparent; }
.btn-ghost:hover { background: var(--blue-50); }
.btn-sm { height: 42px; padding: 0 18px; font-size: .9rem; border-radius: 12px; }
.btn-lg { height: 58px; padding: 0 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-pill { border-radius: var(--radius-full); }
.link { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ── Pills ───────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-full); font-size: .8rem; font-weight: 600; background: var(--blue-100); color: var(--blue-700); line-height: 1.6; }
.pill-gold { background: var(--gold-100); color: #9A5E00; }
.pill-success { background: var(--success-bg); color: #156A37; }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-glass { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(6px); }
.pill [data-lucide], .pill .lucide { width: 14px; height: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--gold-600); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

/* ── Brand ───────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 50px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); color: var(--blue-700); font-size: 1.22rem; font-weight: 700; }
.brand-text small { font-family: var(--font-display); color: var(--gold-600); font-size: .72rem; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; direction: ltr; text-align: right; margin-top: 3px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: var(--gold-300); }

/* ── Header ──────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(229,236,238,.8); transition: box-shadow var(--ease); }
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.main-nav { display: flex; gap: 2px; margin-inline-start: auto; }
.main-nav a { position: relative; padding: 8px 14px; color: var(--text-nav); font-weight: 500; font-size: .95rem; transition: color var(--ease); }
.main-nav a::after { content: ""; position: absolute; bottom: 0; right: 50%; width: 0; height: 2px; border-radius: 2px; background: var(--gold-600); transition: var(--ease); transform: translateX(50%); }
.main-nav a:hover { color: var(--blue-700); }
.main-nav a.active { color: var(--blue-700); font-weight: 700; }
.main-nav a.active::after, .main-nav a:hover::after { width: 20px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-100); color: var(--blue-700); border: 0; cursor: pointer; align-items: center; justify-content: center; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: var(--radius-full); border: 1px solid var(--border); background: #fff; color: var(--blue-700); font-weight: 600; font-size: .9rem; transition: var(--ease); }
.user-chip:hover { border-color: var(--blue-300); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.avatar-teal { background: var(--grad-blue-card); }
.avatar-lg { width: 64px; height: 64px; font-size: 1.25rem; }

/* ── Hero + background carousel ─────────────────────── */
.hero { position: relative; color: #fff; min-height: min(86vh, 760px); display: flex; align-items: center; padding: 64px 0 150px; overflow: hidden; isolation: isolate; background: var(--blue-900); }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7s linear; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
/* طبقة لونية: غامقة جهة النص (يمين) وأخف جهة الصورة (يسار) */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(270deg, rgba(7,28,69,.96) 0%, rgba(11,47,112,.88) 38%, rgba(17,80,184,.55) 68%, rgba(21,101,216,.35) 100%),
    var(--pattern); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; z-index: -1; background: linear-gradient(0deg, rgba(7,28,69,.55), transparent); }
.hero-inner { position: relative; width: 100%; }
.hero-content { max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.3; margin-bottom: 18px; }
.hero h1 .hl { color: var(--gold-300); }
.hero-lead { font-size: 1.12rem; color: rgba(255,255,255,.86); max-width: 560px; margin-bottom: 26px; }
.hero-lead b { color: #fff; font-weight: 600; }
.hero-checks { list-style: none; padding: 0; margin: 0 0 34px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-checks li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .95rem; color: rgba(255,255,255,.92); }
.hero-checks .check { width: 24px; height: 24px; border-radius: 50%; background: var(--grad-gold); display: grid; place-items: center; flex-shrink: 0; }
.hero-checks .check svg { width: 13px; height: 13px; color: #fff; stroke-width: 3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card { position: absolute; inset-inline-end: max(24px, calc((100vw - var(--container)) / 2 + 24px)); bottom: 150px; width: 300px; padding: 18px 20px; border-radius: 20px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(14px); color: #fff; display: flex; gap: 14px; align-items: center; animation: floaty 5s ease-in-out infinite; }
.hero-card .ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold-300) 0 96%, rgba(255,255,255,.2) 0); flex-shrink: 0; }
.hero-card .ring span { width: 52px; height: 52px; border-radius: 50%; background: var(--blue-800); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.hero-card strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.hero-card small { color: rgba(255,255,255,.75); font-size: .82rem; }
.hero-dots { position: absolute; bottom: 118px; inset-inline-start: 24px; display: flex; gap: 8px; z-index: 2; }
.hero-dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: var(--ease); }
.hero-dots button.is-active { width: 34px; background: var(--gold-300); }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* Inner page hero */
.page-hero { position: relative; color: #fff; padding: 56px 0 64px; overflow: hidden; isolation: isolate; background: var(--pattern), var(--grad-hero); }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(7,28,69,.95), rgba(11,47,112,.82) 55%, rgba(11,47,112,.6)), var(--bg) center/cover; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 720px; font-size: 1.05rem; margin: 0; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: rgba(255,255,255,.75); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 14px; height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* ── Feature strip ───────────────────────────────────── */
.feature-strip { position: relative; z-index: 3; margin-top: -84px; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 10px; }
.feature-strip .item { display: flex; align-items: center; gap: 14px; padding: 6px 22px; border-inline-start: 1px solid var(--border); }
.feature-strip .item:first-child { border-inline-start: 0; }
.icon-circle { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; background: var(--grad-blue-card); box-shadow: 0 0 0 7px var(--blue-100); }
.icon-circle.gold { background: var(--grad-gold); box-shadow: 0 0 0 7px var(--gold-100); }
.icon-circle svg { width: 24px; height: 24px; }
.feature-strip strong { display: block; font-family: var(--font-display); color: var(--blue-700); font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.feature-strip span { color: #ffffff; font-size: .86rem; }

/* ── Section title ───────────────────────────────────── */
.section-title { text-align: center; max-width: 700px; margin: 0 auto 52px; }
.section-title .ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold-600); margin-bottom: 10px; }
.section-title .ornament::before, .section-title .ornament::after { content: ""; width: 56px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-600)); }
.section-title .ornament::after { transform: scaleX(-1); }
.section-title .ornament svg { width: 16px; height: 16px; fill: currentColor; }
.section-title h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 10px; }
.section-title p { color: var(--text-secondary); font-size: 1.05rem; margin: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 0; }
.section-head p { color: var(--text-secondary); margin: 6px 0 0; }

/* ── Cards ───────────────────────────────────────────── */
.card { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); border: 1px solid rgba(229,236,238,.7); }
.card-pad { padding: 32px; }
.card-title { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin-bottom: 20px; }
.card-title::before { content: ""; width: 4px; height: 22px; border-radius: var(--radius-full); background: var(--gold-600); }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Course card */
.course-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); overflow: hidden; transition: var(--ease); border: 1px solid rgba(229,236,238,.7); }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grad-blue-card); }
.course-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.course-card:hover .course-cover img { transform: scale(1.06); }
.course-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,28,69,.75) 0%, rgba(7,28,69,.1) 55%, transparent); }
.course-cover .cover-chips { position: absolute; z-index: 1; bottom: 14px; inset-inline-start: 16px; display: flex; gap: 6px; }
.course-cover .cover-icon { position: absolute; z-index: 1; top: 14px; inset-inline-start: 16px; width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--blue-700); display: grid; place-items: center; box-shadow: var(--shadow-md); }
.course-cover .cover-icon svg { width: 22px; height: 22px; }
.badge-hot { position: absolute; z-index: 1; top: 16px; inset-inline-end: 16px; transform: rotate(-6deg); background: linear-gradient(90deg, #F59E0B, #EF4444); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 14px; border-radius: var(--radius-full); box-shadow: 0 6px 14px rgba(239,68,68,.35); }
.course-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.course-body h3 a:hover { color: var(--blue-500); }
.course-body p { color: var(--text-secondary); font-size: .92rem; line-height: 1.8; flex: 1; }
.course-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-muted); font-size: .84rem; margin-bottom: 18px; }
.course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-meta svg { width: 16px; height: 16px; color: var(--gold-600); }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--border); }
.price { font-family: var(--font-display); color: var(--gold-800); font-weight: 700; font-size: 1.45rem; line-height: 1; }
.price small { font-size: .8rem; font-weight: 600; }
.price del { color: var(--text-muted); font-size: .85rem; font-weight: 500; margin-inline-start: 6px; }
.price-free { color: var(--success); }

/* Progress */
.progress { height: 10px; background: var(--blue-100); border-radius: var(--radius-full); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad-gold); border-radius: inherit; transition: width .6s ease; }
.progress-row { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }

/* ── Split (image + text) ───────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.collage { position: relative; padding: 0 0 56px 56px; }
.collage .main { border-radius: var(--radius-2xl); overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-lg); }
.collage .main img, .collage .sub img { width: 100%; height: 100%; object-fit: cover; }
.collage .sub { position: absolute; left: 0; bottom: 0; width: 48%; aspect-ratio: 1; border-radius: var(--radius-xl); overflow: hidden; border: 8px solid var(--bg-page); box-shadow: var(--shadow-lg); }
.collage::before { content: ""; position: absolute; top: -22px; right: -22px; width: 140px; height: 140px; border-radius: 28px; background-image: radial-gradient(var(--gold-600) 2px, transparent 2px); background-size: 14px 14px; opacity: .45; z-index: -1; }
.collage .stat-badge { position: absolute; top: 28px; left: 20px; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; animation: floaty 5s ease-in-out infinite; }
.collage .stat-badge strong { display: block; font-family: var(--font-display); color: var(--blue-700); font-size: 1.4rem; line-height: 1.1; }
.collage .stat-badge small { color: var(--text-muted); font-size: .8rem; }
.features-list { display: grid; gap: 22px; margin: 28px 0 32px; }
.feature { display: flex; gap: 16px; }
.feature .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; flex-shrink: 0; }
.feature:nth-child(even) .ic { background: var(--gold-100); color: var(--gold-800); }
.feature h4 { font-size: 1.05rem; margin: 0 0 4px; }
.feature p { margin: 0; color: var(--text-secondary); font-size: .93rem; }

/* ── Teacher block ──────────────────────────────────── */
.teacher-block { position: relative; border-radius: var(--radius-2xl); overflow: hidden; color: #fff; display: grid; grid-template-columns: 1.1fr .9fr; isolation: isolate; background: var(--blue-900); box-shadow: var(--shadow-lg); }
.teacher-block .content { padding: 56px; background: var(--pattern), linear-gradient(135deg, #0C3483 0%, #071C45 100%); }
.teacher-block .media { position: relative; min-height: 420px; }
.teacher-block .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.teacher-block .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(8,32,80,.85), transparent 40%); }
.teacher-block .name-card { position: absolute; z-index: 1; bottom: 24px; left: 24px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(255,255,255,.95); color: var(--blue-700); box-shadow: var(--shadow-lg); }
.teacher-block .name-card strong { display: block; font-family: var(--font-display); line-height: 1.3; }
.teacher-block .name-card small { color: var(--text-muted); font-size: .8rem; }
.teacher-block h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.teacher-block h2 span { color: var(--gold-300); }
.teacher-block p { color: rgba(255,255,255,.84); }
.ticks { list-style: none; padding: 0; margin: 20px 0 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.ticks li svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; border: 1.5px solid var(--gold-300); color: var(--gold-300); stroke-width: 3; }
.teacher-stats { display: flex; gap: 36px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.teacher-stats strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-300); font-weight: 700; line-height: 1.2; }
.teacher-stats span { color: rgba(255,255,255,.72); font-size: .85rem; }

/* ── Steps ───────────────────────────────────────────── */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 48px 36px; }
.steps::before { content: ""; position: absolute; top: 80px; inset-inline: 14%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold-700) 0 10px, transparent 10px 18px); }
.step { text-align: center; position: relative; }
.step-num { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--blue-950); background: radial-gradient(circle at 30% 30%, var(--gold-300), var(--gold-600)); box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--gold-100), var(--shadow-gold); position: relative; }
.step h4 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--text-secondary); font-size: .9rem; margin: 0; }

/* ── Free lessons ────────────────────────────────────── */
.lesson-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); transition: var(--ease); }
.lesson-row:hover { border-color: var(--gold-400); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.lesson-row .play { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-blue-card); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 0 0 6px var(--blue-100); }
.lesson-row .play svg { width: 18px; height: 18px; fill: currentColor; }
.lesson-row h5 { margin: 0; font-size: 1rem; }
.lesson-row small { color: var(--text-muted); font-size: .82rem; }
.lesson-row .grow { flex: 1; min-width: 0; }

/* ── Testimonials ────────────────────────────────────── */
.testimonial { padding: 30px; position: relative; display: flex; flex-direction: column; }
.testimonial .stars { display: flex; gap: 2px; color: var(--gold-500); margin-bottom: 12px; }
.testimonial .stars svg { width: 18px; height: 18px; fill: currentColor; }
.testimonial p { color: var(--text-secondary); font-size: .97rem; flex: 1; }
.testimonial .who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.testimonial .who strong { color: var(--blue-700); display: block; line-height: 1.4; font-family: var(--font-display); font-size: .97rem; }
.testimonial .who small { color: var(--text-muted); }
.testimonial .quote-mark { position: absolute; top: 18px; left: 22px; color: var(--blue-100); width: 46px; height: 46px; }
.score-tag { margin-inline-start: auto; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); transition: var(--ease); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 22px; font-family: var(--font-display); font-weight: 600; color: var(--blue-700); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .num { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-100); display: grid; place-items: center; font-size: .85rem; flex-shrink: 0; }
.faq summary .chev { margin-inline-start: auto; transition: var(--ease); }
.faq details[open] summary { background: var(--grad-blue-bar); color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-teal); }
.faq details[open] summary .num { background: var(--grad-gold); color: #fff; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details > div { padding: 18px 24px 22px 74px; color: var(--text-secondary); }

/* ── CTA ─────────────────────────────────────────────── */
.cta { position: relative; color: #fff; text-align: center; padding: 100px 0; isolation: isolate; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(11,47,112,.94), rgba(8,32,80,.82)), var(--pattern), var(--bg, none) center/cover; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta h2 span { color: var(--gold-300); }
.cta p { color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto 30px; font-size: 1.05rem; }
.cta .hero-actions { justify-content: center; }

/* ── Footer (فاتح ومتمركز) ───────────────────────────── */
.site-footer { background: linear-gradient(180deg, var(--bg-footer), #fff); padding: 64px 0 28px; text-align: center; border-top: 1px solid var(--border); }
.footer-logo { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 16px; }
.footer-logo img { width: 120px; height: auto; }
.footer-logo .wordmark { text-align: center; font-size: 1.35rem; }
.site-footer .about { color: var(--blue-700); font-weight: 600; max-width: 560px; margin: 0 auto 24px; }
.socials { display: flex; gap: 12px; justify-content: center; margin-bottom: 28px; }
.socials a { width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--blue-700); display: grid; place-items: center; box-shadow: var(--shadow-md); transition: var(--ease); }
.socials a:hover { transform: translateY(-3px); color: var(--gold-600); }
.socials svg { width: 20px; height: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; margin-bottom: 28px; }
.footer-links a { color: var(--blue-600); font-weight: 600; font-size: .93rem; }
.footer-links a:hover { color: var(--gold-600); }
.copyright { border-top: 1px solid var(--border); padding-top: 22px; color: var(--text-muted); font-size: .86rem; }
.fab { position: fixed; bottom: 22px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: var(--ease); }
.fab:hover { transform: scale(1.06); }
.fab-wa { inset-inline-end: 22px; background: #25D366; color: #fff; box-shadow: 0 0 0 8px rgba(37,211,102,.18), var(--shadow-lg); }
.fab-wa svg { width: 28px; height: 28px; }

/* ── Alerts ──────────────────────────────────────────── */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius-md); font-weight: 500; margin-bottom: 20px; border: 1px solid; }
.alert svg { margin-top: 4px; }
.alert-success { background: var(--success-bg); border-color: #A5DDB8; color: #156A37; }
.alert-warning { background: var(--gold-100); border-color: #F8DCA0; color: #8A5200; }
.alert-info { background: var(--blue-100); border-color: #C7DBF8; color: var(--blue-700); }
.alert-danger { background: var(--danger-bg); border-color: #F5C2C2; color: #9A2B12; }
.flash-wrap { position: fixed; top: 96px; inset-inline: 0; z-index: 60; pointer-events: none; }
.flash-wrap .alert { pointer-events: auto; max-width: 640px; margin: 0 auto 10px; box-shadow: var(--shadow-lg); animation: slidein .4s ease; }
@keyframes slidein { from { opacity: 0; transform: translateY(-10px); } }

/* ── Forms ───────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--blue-700); font-size: .92rem; margin-bottom: 8px; }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.input, select.input, textarea.input { width: 100%; height: 54px; padding: 0 18px; border: 1.5px solid var(--border); border-radius: var(--radius-md); background: #fff; color: var(--text-body); transition: var(--ease); outline: 0; }
.input-wrap > svg + .input { padding-inline-start: 48px; }
textarea.input { height: auto; min-height: 100px; padding: 14px 18px; resize: vertical; }
.input:focus { border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(21,101,216,.12); }
.input.is-invalid { border-color: #E57373; }
.error { color: #B42318; font-size: .82rem; margin-top: 6px; display: block; }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; font-size: .9rem; }
.check-row label { display: flex; gap: 8px; align-items: center; color: var(--text-secondary); cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--blue-500); width: 18px; height: 18px; }

/* ── Auth ────────────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--bg-page); }
.auth-form .box { width: 100%; max-width: 440px; }
.auth-form h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-form .sub { color: var(--text-secondary); margin-bottom: 28px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--blue-100); border-radius: 16px; padding: 6px; margin-bottom: 28px; }
.seg a { text-align: center; padding: 10px; border-radius: 12px; font-weight: 600; color: var(--blue-700); transition: var(--ease); }
.seg a.active { background: var(--blue-500); color: #fff; box-shadow: var(--shadow-teal); }
.auth-side { position: relative; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; }
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(10,37,89,.94), rgba(7,28,69,.97)), url("../images/site/study-desk.jpg") center/cover; }
.auth-side .brand-mark { width: 96px; margin-bottom: 22px; }
.auth-side h2 { color: #fff; font-size: 2rem; margin-bottom: 8px; }
.auth-side h2 span { color: var(--gold-300); }
.auth-side p { color: rgba(255,255,255,.8); }
.glass { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); margin-bottom: 12px; max-width: 460px; }
.glass .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-gold); display: grid; place-items: center; flex-shrink: 0; }
.glass strong { display: block; font-family: var(--font-display); font-weight: 600; }
.glass small { color: rgba(255,255,255,.7); }
.back-link { color: #fff; text-decoration: underline; text-underline-offset: 4px; margin-top: 20px; display: inline-flex; gap: 6px; align-items: center; opacity: .85; }

/* ── Course details ─────────────────────────────────── */
.details-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.prose { color: var(--text-body); line-height: 2; }
.prose h3 { font-size: 1.12rem; margin-top: 1.2em; }
.prose ul { padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--blue-700); }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); font-weight: 600; color: var(--blue-700); font-size: .93rem; }
.list-check li svg { color: var(--gold-600); margin-top: 3px; }
.cover-banner { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 21 / 8; box-shadow: var(--shadow-md); }
.cover-banner img { width: 100%; height: 100%; object-fit: cover; }

.curriculum { position: relative; display: grid; gap: 10px; }
.cur-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; transition: var(--ease); }
a.cur-item:hover { border-color: var(--gold-400); background: var(--gold-50); }
.cur-item.is-current { border-color: var(--gold-400); background: var(--gold-50); box-shadow: inset -4px 0 0 var(--gold-600); }
.cur-item .n { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; font-family: var(--font-display); font-size: .82rem; font-weight: 700; flex-shrink: 0; }
.cur-item .n.done { background: var(--success); color: #fff; }
.cur-item .n.exam { background: var(--gold-100); color: var(--gold-800); }
.cur-item .t { flex: 1; min-width: 0; font-weight: 600; color: var(--blue-700); font-size: .95rem; }
.cur-item .t small { display: block; color: var(--text-muted); font-weight: 400; font-size: .8rem; }
.cur-item .lock { color: var(--text-muted); }
.cur-item .lock svg { width: 18px; height: 18px; }

.price-box { background: var(--gold-50); border: 1px solid #F8DCA0; border-radius: var(--radius-lg); padding: 22px; text-align: center; margin-bottom: 22px; }
.price-box .price { font-size: 2.5rem; }
.price-box .save { display: inline-block; margin-top: 10px; }
.detail-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; }
.detail-list li { display: flex; align-items: center; gap: 12px; }
.detail-list .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; }
.detail-list small { display: block; color: var(--text-muted); font-size: .78rem; line-height: 1.4; }
.detail-list b { color: var(--blue-700); font-weight: 600; }
.status-box { border-radius: var(--radius-lg); padding: 18px; text-align: center; margin-bottom: 14px; }
.status-box h4 { margin: 8px 0 4px; font-size: 1.05rem; }
.status-box p { font-size: .88rem; margin: 0; color: var(--text-secondary); }
.status-box.pending { background: var(--gold-100); border: 1px solid #F8DCA0; }
.status-box.approved { background: var(--success-bg); border: 1px solid #A5DDB8; }
.status-box.rejected { background: var(--danger-bg); border: 1px solid #F5C2C2; }
.pay-info { background: var(--blue-50); border: 1px dashed #C2D6F5; border-radius: var(--radius-md); padding: 14px 16px; font-size: .86rem; margin-bottom: 16px; }
.pay-info div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.pay-info b { color: var(--blue-700); direction: ltr; }

/* ── Lesson player (protected) ──────────────────────── */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-xl); overflow: hidden; background: var(--pattern), var(--grad-blue-card); box-shadow: var(--shadow-lg); margin-bottom: 24px; }
.player.protected { aspect-ratio: auto; background: #000; direction: ltr; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.player .plyr { border-radius: var(--radius-xl); --plyr-color-main: #D89018; --plyr-font-family: var(--font-sans); }
.player .plyr--youtube iframe { pointer-events: none; }               /* يمنع الضغط على لوجو/عنوان يوتيوب */
.player .plyr--youtube .plyr__video-embed { overflow: hidden; }
.player .plyr--youtube .plyr__video-embed iframe { top: -60px; height: calc(100% + 120px); } /* يقص شريط عنوان يوتيوب */
.video-watermark { position: absolute; z-index: 5; pointer-events: none; padding: 4px 10px; border-radius: 6px; font: 600 13px var(--font-sans); color: rgba(255,255,255,.55); background: rgba(0,0,0,.18); text-shadow: 0 1px 2px rgba(0,0,0,.5); white-space: nowrap; direction: rtl; transition: top 1.2s ease, left 1.2s ease; }
.plyr:fullscreen .video-watermark { font-size: 18px; }
.player .placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: 24px; }
.player .placeholder .big { width: 88px; height: 88px; border-radius: 50%; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; margin: 0 auto 14px; }
.player .placeholder .big svg { width: 38px; height: 38px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ── Student area ────────────────────────────────────── */
.dash { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; padding-block: 36px 72px; align-items: start; }
.dash-side { padding: 24px 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.dash-user { text-align: center; padding-bottom: 20px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.dash-user .avatar { margin: 0 auto 10px; }
.dash-user strong { display: block; color: var(--blue-700); font-family: var(--font-display); }
.dash-user small { color: var(--text-muted); font-size: .8rem; }
.dash-nav { display: grid; gap: 4px; }
.dash-nav a, .dash-nav button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--text-nav); font-weight: 500; font-size: .94rem; background: none; border: 0; cursor: pointer; width: 100%; text-align: start; transition: var(--ease); }
.dash-nav a:hover, .dash-nav button:hover { background: var(--blue-50); color: var(--blue-700); }
.dash-nav a.active { background: var(--grad-blue-bar); color: #fff; box-shadow: var(--shadow-teal); font-weight: 600; }
.dash-nav .count { margin-inline-start: auto; background: var(--gold-600); color: #fff; font-size: .72rem; border-radius: var(--radius-full); padding: 0 8px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-head h1 { font-size: 1.65rem; margin: 0; }
.dash-head p { margin: 0; color: var(--text-secondary); }
.welcome { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: var(--radius-xl); padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.welcome::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(7,28,69,.95), rgba(11,47,112,.8) 60%, rgba(11,47,112,.55)), url("../images/site/math-pencil.jpg") center/cover; }
.welcome h1 { color: #fff; font-size: 1.55rem; margin-bottom: 4px; }
.welcome h1 span { color: var(--gold-300); }
.welcome p { color: rgba(255,255,255,.85); margin: 0; }
.stat { display: flex; align-items: center; gap: 14px; padding: 20px; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.55rem; color: var(--blue-700); font-weight: 700; line-height: 1.2; }
.stat span { color: #ffffff; font-size: .84rem; }
.stat .icon-circle { width: 48px; height: 48px; box-shadow: 0 0 0 6px var(--blue-100); }
.stat .icon-circle.gold { box-shadow: 0 0 0 6px var(--gold-100); }
.mini-course { display: flex; gap: 16px; align-items: center; padding: 14px; transition: var(--ease); }
.mini-course:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.mini-course .thumb { width: 84px; height: 72px; border-radius: 16px; overflow: hidden; flex-shrink: 0; background: var(--grad-blue-card); }
.mini-course .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-course h4 { font-size: 1rem; margin: 0 0 8px; }
.mini-course .grow { flex: 1; min-width: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: start; color: var(--text-muted); font-weight: 600; font-size: .8rem; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.table td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.empty { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty .icon-circle { margin: 0 auto 18px; }
.empty h3 { font-size: 1.15rem; }

/* Exam */
.exam-bar { position: sticky; top: calc(var(--header-h) + 12px); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; margin-bottom: 24px; }
.timer { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--blue-700); font-variant-numeric: tabular-nums; direction: ltr; }
.timer.warn { color: #C2410C; }
.question { padding: 28px; margin-bottom: 18px; }
.q-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.q-num { width: 38px; height: 38px; border-radius: 12px; background: var(--grad-blue-card); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.q-body { font-family: var(--font-exam); font-size: 1.3rem; font-weight: 700; line-height: 2.1; color: var(--blue-800); margin-bottom: 20px; }
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.option { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: var(--ease); font-family: var(--font-exam); font-size: 1.15rem; font-weight: 700; color: var(--blue-900); line-height: 1.9; }
.option:hover { border-color: var(--blue-300); background: var(--blue-50); }
.option input { position: absolute; opacity: 0; }
.option .letter { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }

/* ── كتابة رياضية: كسر (بسط فوق مقام)، أُس، جذر */
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; margin: 0 .18em; line-height: 1.15; font-size: .9em; }
.frac > .num { padding: 0 .2em .06em; }
.frac > .den { padding: .1em .2em 0; border-top: .09em solid currentColor; min-width: 100%; text-align: center; }
.math sup, .q-body sup, .opt-body sup { font-size: .62em; line-height: 0; vertical-align: .9em; margin: 0 .04em; }
.math sub, .q-body sub, .opt-body sub, .option sub { font-size: .62em; line-height: 0; vertical-align: -.35em; margin: 0 .03em; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sqrt { display: inline-flex; align-items: flex-start; vertical-align: middle; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.sqrt > .rad-sign { font-size: 1.15em; line-height: 1; margin-left: .04em; }
.sqrt > .rad { border-top: .09em solid currentColor; padding: .08em .15em 0; line-height: 1.2; }
.option:has(input:checked) { border-color: var(--blue-500); background: var(--blue-100); box-shadow: 0 0 0 3px rgba(21,101,216,.12); }
.option:has(input:checked) .letter { background: var(--blue-500); color: #fff; }
.option.correct { border-color: var(--success); background: var(--success-bg); }
.option.correct .letter { background: var(--success); color: #fff; }
.option.wrong { border-color: #E57373; background: var(--danger-bg); }
.option.wrong .letter { background: #D9534F; color: #fff; }
.explain { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--gold-50); border: 1px solid #F8DCA0; font-size: .93rem; }
.score-ring { --p: 0; width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold-600) calc(var(--p) * 1%), var(--blue-100) 0); margin: 0 auto 16px; }
.score-ring > div { width: 128px; height: 128px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.score-ring strong { font-family: var(--font-display); font-size: 2.2rem; color: var(--blue-700); font-weight: 700; line-height: 1; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--border); font-weight: 600; color: var(--blue-700); }
.pagination .active span { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }

.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; background: var(--blue-100); padding: 6px; border-radius: 16px; margin-bottom: 36px; }
.tabs a { padding: 9px 20px; border-radius: 12px; font-weight: 600; color: var(--blue-700); font-size: .93rem; }
.tabs a.active { background: var(--blue-500); color: #fff; box-shadow: var(--shadow-teal); }

/* ── Reveal on scroll ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .details-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .feature-strip .item:nth-child(3) { border-inline-start: 0; }
  .split { gap: 48px; }
}
@media (max-width: 960px) {
  .main-nav { position: absolute; top: 100%; inset-inline: 0; flex-direction: column; background: #fff; padding: 12px 24px 20px; box-shadow: var(--shadow-lg); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
  .header-actions .hide-sm { display: none; }
  .hero-card { display: none; }
  .split, .teacher-block { grid-template-columns: 1fr; }
  .teacher-block .media { min-height: 300px; order: -1; }
  .teacher-block .content { padding: 36px 24px; }
  .collage { max-width: 520px; margin: 0 auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; }
}
@media (max-width: 640px) {
  .section { padding-block: 72px; }
  .container { padding-inline: 16px; }
  .grid-2, .grid-3, .grid-4, .list-check, .options, .ticks { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: 1fr; }
  .feature-strip .item { border-inline-start: 0; }
  .steps { grid-template-columns: 1fr; padding: 32px 20px; }
  .brand-mark { width: 42px; }
  .brand-text strong { font-size: 1.05rem; }
  .card-pad { padding: 22px; }
  .faq details > div { padding: 16px 20px; }
  .hero { min-height: auto; padding: 56px 0 130px; }
  .hero-dots { bottom: 104px; }
  .user-chip .name { display: none; }
  .user-chip { padding: 3px; }
  .collage { padding: 0 0 40px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity .6s ease; transform: none !important; }
  .hero-card, .collage .stat-badge { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
