/* أكاديمية الأزدي — الأنماط المشتركة (واجهة الطالب + لوحة الإدارة) */
:root {
  --blue-900: #0b2a5b;
  --blue-800: #12397a;
  --blue-700: #1a4b9c;
  --blue-600: #2160c4;
  --blue-100: #e3ecfa;
  --blue-50: #f1f6fd;
  --orange-600: #8a5a00;  /* أصفر داكن (ذهبي) للنصوص على الأبيض */
  --orange-500: #fcd34d;  /* لون الشعار الأصفر */
  --orange-100: #fef6d8;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #16223a;
  --muted: #5b6880;
  --border: #dde4ef;
  --success: #17803d;
  --success-bg: #e5f5ea;
  --warn: #9a5b00;
  --warn-bg: #fff4dc;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 34, 70, .06), 0 4px 16px rgba(16, 34, 70, .06);
  --font: 'Noto Naskh Arabic', 'Droid Arabic Naskh', 'Traditional Arabic', 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.75; direction: rtl;
}
a { color: var(--blue-700); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .4em; color: var(--blue-900); }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- الترويسة ---------- */
.site-header { background: var(--blue-800); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand img.custom-logo { width: auto; max-width: 180px; height: 48px; object-fit: contain; }
.brand b { font-size: 1.15rem; display: block; line-height: 1.3; }
.brand span { font-size: .8rem; opacity: .85; display: block; line-height: 1.3; }
.header-links { display: flex; gap: 6px; }
.header-links a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: .92rem; }
.header-links a:hover, .header-links a:focus-visible { background: rgba(255,255,255,.14); }

/* ---------- الأزرار والحقول ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.4;
  border: 1px solid transparent; border-radius: var(--radius-sm); padding: 10px 18px;
  cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s, transform .05s;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--orange-500); color: var(--blue-900, #0f235a); }
.btn-primary:hover:not(:disabled) { background: #fbbf24; }
.btn-blue { background: var(--blue-700); color: #fff; }
.btn-blue:hover:not(:disabled) { background: var(--blue-800); }
.btn-ghost { background: transparent; color: var(--blue-700); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--blue-50); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #f1c4bf; }
.btn-danger:hover:not(:disabled) { background: var(--danger-bg); }
.btn-sm { padding: 5px 12px; font-size: .9rem; min-height: 34px; }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid #7fb0ff; outline-offset: 2px; }

label { display: block; font-weight: 700; margin-bottom: 4px; color: var(--blue-900); }
.field { margin-bottom: 16px; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 3px; }
input[type=text], input[type=number], input[type=tel], input[type=email], input[type=password], input[type=search], input[type=date], input[type=time], input[type=url], select, textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; background: #fff;
  min-height: 44px;
}
input[type=tel], input[type=email], input[type=url] { direction: ltr; text-align: right; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-600); outline: none; box-shadow: 0 0 0 3px var(--blue-100); }
.req { color: var(--orange-600); }

/* ---------- البطاقات والعناصر العامة ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; padding: 2px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-800); border: 1px solid var(--blue-100); white-space: nowrap; }
.chip.orange { background: var(--orange-100); color: #6b4a00; border-color: #f6e19a; }
.chip.green { background: var(--success-bg); color: var(--success); border-color: #bfe4ca; }
.chip.gray { background: #f1f3f7; color: var(--muted); border-color: var(--border); }
.chip.red { background: var(--danger-bg); color: var(--danger); border-color: #f1c4bf; }
.chip.yellow { background: var(--warn-bg); color: var(--warn); border-color: #f3dca6; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-badge { background: #fff2cc; color: #7a5500; border: 1px dashed #d9a400; }

.alert { border-radius: var(--radius-sm); padding: 12px 14px; margin: 12px 0; border: 1px solid; }
.alert-error { background: var(--danger-bg); border-color: #f1c4bf; color: var(--danger); }
.alert-success { background: var(--success-bg); border-color: #bfe4ca; color: var(--success); }
.alert-info { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-800); }
.alert-warn { background: var(--warn-bg); border-color: #f3dca6; color: var(--warn); }

.breadcrumbs { font-size: .9rem; color: var(--muted); margin: 18px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs .sep { opacity: .5; }

.loading { text-align: center; padding: 40px; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--blue-100); border-top-color: var(--blue-600); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }

/* ---------- الصفحة الرئيسية ---------- */
.hero { background: linear-gradient(160deg, var(--blue-800), var(--blue-600)); color: #fff; padding: 44px 0 70px; }
.hero h1 { color: #fff; }
.hero p { opacity: .92; max-width: 640px; font-size: 1.08rem; }
.section-picker { margin-top: -46px; }
.section-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; border: 2px solid transparent; transition: border-color .15s, transform .15s; padding: 26px; }
.section-card:hover, .section-card:focus-visible { border-color: var(--orange-500); transform: translateY(-2px); }
.section-card .icon { width: 56px; height: 56px; border-radius: 14px; background: var(--blue-50); display: grid; place-items: center; }
.section-card .go { margin-top: auto; color: var(--orange-600); font-weight: 700; }
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: 0; list-style: none; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; position: relative; padding-top: 44px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 12px; right: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--orange-500); color: #0f235a; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.price-box { display: flex; gap: 14px; flex-wrap: wrap; }
.price-box .card { flex: 1 1 240px; }
.price { font-size: 1.9rem; font-weight: 700; color: var(--orange-600); }

/* ---------- المواد ---------- */
.subject-tile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; text-decoration: none; color: inherit; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; min-height: 64px; }
.subject-tile:hover, .subject-tile:focus-visible { border-color: var(--blue-600); box-shadow: var(--shadow); }
.subject-tile b { color: var(--blue-900); }

/* ---------- الفلاتر ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 12px 0 18px; }
.filters .field { margin: 0; min-width: 160px; flex: 1 1 160px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { font-family: inherit; font-size: .92rem; border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; cursor: pointer; color: var(--muted); min-height: 36px; }
.seg button[aria-pressed=true] { background: var(--blue-700); color: #fff; }

/* ---------- بطاقة المعلم ---------- */
.teacher-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.teacher-card:hover, .teacher-card:focus-visible { border-color: var(--blue-600); transform: translateY(-2px); }
.teacher-head { display: flex; gap: 12px; align-items: center; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--blue-100); color: var(--blue-800); display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.avatar.lg { width: 96px; height: 96px; font-size: 2rem; }
.bio { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.next-slot { background: var(--blue-50); border-radius: var(--radius-sm); padding: 8px 12px; font-size: .9rem; }
.next-slot b { color: var(--blue-800); }
.card-cta { margin-top: auto; color: var(--orange-600); font-weight: 700; }

/* ---------- جدول المواعيد ---------- */
.days-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); align-items: start; }
.day-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.day-title { font-size: 1rem; font-weight: 700; color: var(--blue-800); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.slot-list { display: grid; gap: 8px; }
main:focus { outline: none; }
.slot-btn { text-align: right; font-family: inherit; font-size: .95rem; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.slot-btn:hover:not(:disabled) { border-color: var(--orange-500); background: #fffaf5; }
.slot-btn:disabled { cursor: not-allowed; opacity: .6; background: #f7f8fa; }
.slot-time { font-size: 1.1rem; font-weight: 700; color: var(--blue-900); }
.slot-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.seats { font-size: .85rem; color: var(--success); font-weight: 700; }
.seats.full { color: var(--danger); }

/* ---------- الحجز ---------- */
.booking-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 820px) { .booking-layout { grid-template-columns: 1fr; } }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; }
.summary .total { border-top: 1px dashed var(--border); margin-top: 12px; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.stepper { display: flex; gap: 8px; margin: 8px 0 18px; flex-wrap: wrap; }
.stepper span { font-size: .85rem; padding: 4px 12px; border-radius: 999px; background: #eef1f6; color: var(--muted); }
.stepper span.on { background: var(--blue-700); color: #fff; }
.ref-box { font-size: 1.6rem; font-weight: 700; letter-spacing: 2px; direction: ltr; color: var(--blue-900); background: var(--blue-50); border: 2px dashed var(--blue-600); border-radius: var(--radius-sm); padding: 10px 16px; display: inline-block; }
.status-big { display: inline-flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 700; padding: 8px 16px; border-radius: 999px; }
.status-received { background: var(--warn-bg); color: var(--warn); }
.status-confirmed { background: var(--success-bg); color: var(--success); }
.status-cancelled { background: var(--danger-bg); color: var(--danger); }

.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 20px 0; flex-wrap: wrap; }

.site-footer { margin-top: 48px; background: var(--blue-900); color: #cfdaf0; padding: 24px 0; font-size: .9rem; }
.site-footer a { color: #fff; }

main { min-height: 60vh; padding-bottom: 20px; }
.section-gap { margin-top: 36px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .card { padding: 16px; }
  .brand span { display: none; }
  .header-links a { padding: 6px 8px; font-size: .85rem; }
  .hero { padding: 30px 0 64px; }
}

/* أشرطة التصفية على الشاشات الصغيرة */
.filters .seg { display: flex; width: 100%; }
.filters .seg button { flex: 1 1 auto; white-space: nowrap; }
@media (max-width: 600px) {
  .filters .field { flex-basis: 100%; }
}

/* التواصل */
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.footer-contact .footer-link { color: #fff; text-decoration: none; font-size: .9rem; }
.footer-contact .footer-link:hover { text-decoration: underline; }
.wa-float { position: fixed; bottom: 18px; left: 18px; z-index: 30; background: #1f9d55; color: #fff; text-decoration: none; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.2); font-size: .95rem; }
.wa-float:hover { background: #17834a; }

/* ===== الإصدار 2 ===== */
.announce { background: var(--orange-500); color: #0f235a; font-weight: 700; text-align: center; padding: 8px 0; font-size: .95rem; }
.search-box { display: flex; gap: 8px; max-width: 560px; margin: 16px 0 6px; }
.search-box input { flex: 1; }
.hero .search-box input { border: 0; }
.hero-contact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; font-size: .92rem; }
.hero-contact .hero-link { color: #fff; text-decoration: none; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 4px 12px; border-radius: 999px; }
.hero-contact .hero-link:hover { background: rgba(255,255,255,.24); }
.stars { color: #d6dbe4; letter-spacing: 1px; font-size: 1rem; }
.stars .on { color: #f5a623; }
.stars .half { background: linear-gradient(to left, #d6dbe4 50%, #f5a623 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating-line { display: inline-flex; align-items: center; gap: 2px; font-size: .9rem; }
.elite .elite-card { position: relative; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--orange-500); }
.elite .rank { position: absolute; top: 10px; left: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--blue-100); color: var(--blue-800); }
.elite .rank.r1 { background: #f5c542; color: #5a4200; } .elite .rank.r2 { background: #cfd6e0; } .elite .rank.r3 { background: #e7b088; color: #5a2c00; }
.cta-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--orange-100); border-color: #f6e19a; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; margin-top: 10px; font-size: .95rem; }
.consent { font-weight: 400; display: flex; gap: 6px; align-items: flex-start; color: var(--text); font-size: .92rem; }
.consent input { margin-top: 6px; }
.kid-input { display: flex; gap: 8px; }
.kid-input input { flex: 1; }
.form-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
details.faq { margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--blue-900); }
.prose p { margin-bottom: 1em; }
.rate-card textarea { margin-top: 10px; }
.star-row { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-btn { font-size: 2rem; background: none; border: 0; color: #d6dbe4; cursor: pointer; line-height: 1; padding: 2px; }
.star-btn.on { color: #f5a623; }
.slot-btn.is-full { opacity: .85; background: #fbfbfc; }
.slot-btn.is-full:hover { border-color: var(--blue-600); }
.footer-pages { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .9rem; }
.footer-pages a { color: #cfdaf0; }
.site-link { background: var(--orange-500); }
.review p { white-space: pre-wrap; }

/* الإصدار 3: الفيديو ورابط Meet والمرفقات */
.video-card-pub video { width: 100%; aspect-ratio: 16 / 9; background: #0b1f44; border-radius: 10px; display: block; margin-bottom: 10px; }
.video-card-pub h3 { margin: 0 0 4px; font-size: 1.05rem; }
.meet-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #eaf7ee; border: 1px solid #bfe3c9; border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.note-box { background: #fafbfd; border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
.file-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }

/* الإصدار 4: بطاقة المعلم بصورة مستطيلة كبيرة، والسعر بخط كبير ملون */
.chip.blue { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.big-price { display: inline-flex; align-items: baseline; gap: 2px; color: var(--orange-600); line-height: 1.1; }
.big-price b { font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.big-price span { font-size: .95rem; font-weight: 600; }
.t-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.t-media { position: relative; }
.t-photo { display: block; width: 100%; aspect-ratio: 4 / 3; max-width: 100%; object-fit: cover; background: var(--blue-50); }
.t-photo.empty { display: grid; place-items: center; color: var(--blue-800); font-size: 3.2rem; font-weight: 700; background: linear-gradient(135deg, var(--blue-50), var(--blue-100)); }
.t-rating { position: absolute; bottom: 10px; inset-inline-start: 10px; background: rgba(10, 25, 50, .78); color: #ffd36b; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.t-rating small { color: #fff; font-weight: 400; }
.t-demo { position: absolute; top: 10px; inset-inline-end: 10px; }
.t-media .rank { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 1; }
.t-body { padding: 14px 16px 16px; display: grid; gap: 6px; text-align: center; flex: 1; align-content: start; }
.t-name { margin: 0; font-size: 1.2rem; }
.t-sub { color: var(--muted); font-size: .9rem; }
.t-price { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 4px 0; }
.t-price > span { font-size: .8rem; color: var(--muted); }
.t-body .next-slot { font-size: .86rem; }
.t-cta { margin-top: 6px; }
.t-profile { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 22px; align-items: start; }
.t-profile-media .t-photo { border-radius: 14px; }
.t-profile .t-name { margin: 0 0 4px; font-size: 1.7rem; }
.t-profile .t-price { align-items: flex-start; }
@media (max-width: 760px) { .t-profile { grid-template-columns: 1fr; } .t-profile-body { text-align: center; } .t-profile .t-price, .t-profile .chips { align-items: center; justify-content: center; } }
.table-scroll { overflow-x: auto; }
.price-table { width: 100%; max-width: 640px; border-collapse: collapse; background: var(--surface, #fff); border-radius: 12px; overflow: hidden; }
.price-table th, .price-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: center; }
.price-table thead th { background: var(--blue-50); color: var(--blue-900, #0d2148); font-size: .9rem; }
.price-table tbody th { text-align: right; font-weight: 600; }
.price-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.price-grid .pg-head { flex-basis: 100%; color: var(--muted); }
.price-grid .pg-cell { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 18px; display: grid; justify-items: center; }
.slot-price { color: var(--orange-600); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.slot-price small { font-size: .75rem; font-weight: 400; color: var(--muted); }
.section-picker.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* الهاتف: الشعار في سطر والروابط في سطر قابل للتمرير أفقيًا بدل أن يتسع الموقع */
@media (max-width: 600px) {
  .site-header .container { flex-wrap: wrap; row-gap: 4px; padding-top: 6px; padding-bottom: 6px; }
  .header-links { width: 100%; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .header-links::-webkit-scrollbar { display: none; }
  .header-links a { flex: 0 0 auto; }
  .brand img.custom-logo { max-width: 140px; height: 40px; }
}
html, body { overflow-x: clip; }

/* ===== الإصدار 5: الأقسام الأربعة، التدرب الذاتي، دخول المتدربين ===== */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1050px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.platform-card .icon { background: var(--orange-100); }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.mode-tabs a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: inherit; }
.mode-tabs a b { font-size: 1.1rem; color: var(--blue-800); }
.mode-tabs a span { font-size: .85rem; color: var(--muted, #667085); }
.mode-tabs a[aria-selected="true"] { border-color: var(--orange-500); background: var(--orange-100); }
.platform-course { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.platform-course:hover { border-color: var(--orange-500); transform: translateY(-2px); }
.platform-course h3 { margin: 4px 0 0; }
.platform-course .btn { margin-top: auto; }
.sp-badge { background: var(--orange-500) !important; color: #0f235a !important; }
.sp-card .t-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; justify-content: center; }
.social-row { margin-top: 10px; }
.outline { margin: 0; padding-inline-start: 22px; line-height: 2; }
.lesson-video { width: 100%; max-height: 70vh; background: #000; border-radius: var(--radius-sm); display: block; }
.video-wrap { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: #000; }
.video-wrap:fullscreen { display: grid; place-items: center; }
.video-wrap:fullscreen .lesson-video { max-height: 100vh; height: 100%; }
.watermark { position: absolute; pointer-events: none; user-select: none; color: rgba(255,255,255,.55); text-shadow: 0 0 3px rgba(0,0,0,.6); font-size: .9rem; font-weight: 700; transition: top 1.5s, inset-inline-start 1.5s; white-space: nowrap; z-index: 2; }
.learn-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
@media (max-width: 820px) { .learn-layout { grid-template-columns: 1fr; } }
.lesson-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lesson-list button { width: 100%; text-align: start; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-sm); padding: 9px 12px; cursor: pointer; font: inherit; color: inherit; }
.lesson-list button.on { background: var(--orange-100); border-color: var(--orange-500); font-weight: 700; }
.lesson-list button:disabled { opacity: .55; cursor: default; }
.card.dim { opacity: .7; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.login-wrap { max-width: 460px; margin: 24px auto; }
a.sp-card, a.sp-card:hover { text-decoration: none; color: inherit; }

/* ألوان بطاقات الأقسام (تختارها الإدارة) */
.section-card.card-blue { --cbg: #1a4b9c; --cfg: #fff; --csub: rgba(255,255,255,.85); }
.section-card.card-orange { --cbg: #f5821f; --cfg: #fff; --csub: rgba(255,255,255,.9); }
.section-card.card-yellow { --cbg: #fcd34d; --cfg: #3d2e00; --csub: #5c4500; }
.section-card.card-green { --cbg: #1f9254; --cfg: #fff; --csub: rgba(255,255,255,.88); }
.section-card.card-red { --cbg: #c8372d; --cfg: #fff; --csub: rgba(255,255,255,.88); }
.section-card:not(.card-white) { background: var(--cbg); color: var(--cfg); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.section-card:not(.card-white) h2, .section-card:not(.card-white) .go { color: var(--cfg); }
.section-card:not(.card-white) .muted { color: var(--csub); }
.section-card:not(.card-white) .icon { background: rgba(255,255,255,.92); }
.section-card:not(.card-white):hover { border-color: var(--cfg); }

/* ===== الإصدار 6 ===== */
.seats.late { color: #8a5a00; font-weight: 700; }
.policy-box { background: var(--blue-50); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; margin: 8px 0; }
.policy-box summary { cursor: pointer; font-weight: 700; color: var(--blue-800); }
.loyalty-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 4px solid var(--orange-500); }
.honor-card { text-align: center; border-top: 4px solid var(--orange-500); }
.honor-medal { font-size: 2rem; }
a.revision-cta { text-decoration: none; color: inherit; }
.star-row { display: flex; gap: 6px; margin: 8px 0; }
.lang-toggle { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: .85rem; cursor: pointer; }
html[dir="ltr"] .breadcrumbs .sep { transform: scaleX(-1); display: inline-block; }
/* الواجهة الإنجليزية */
html[dir="ltr"] body { direction: ltr; }
html[dir="ltr"] input[type=tel], html[dir="ltr"] input[type=email], html[dir="ltr"] input[type=url] { text-align: left; }
html[dir="ltr"] .slot-btn, html[dir="ltr"] .price-table tbody th { text-align: left; }
html[dir="ltr"] .steps li::before { right: auto; left: 16px; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; background: #fff; }
.checklist label { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: .92rem; }
input:not([type]) { font: inherit; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; background: #fff; width: 100%; }
