/* ═══════ منصة م/ محمد مظهر — الأنماط المخصصة ═══════ */

html { scroll-behavior: smooth; }
::selection { background: rgba(34,211,238,.35); }

/* شريط التمرير */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #050d1a; }
::-webkit-scrollbar-thumb { background: linear-gradient(#0891b2, #22d3ee); border-radius: 9px; }

/* ═══ ظهور عند التمرير ═══ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--d, 0s), transform .7s ease var(--d, 0s); }
.reveal.shown { opacity: 1; transform: none; }

/* ═══ فيديو الخلفية ═══ */
.bg-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .35; filter: saturate(1.1) hue-rotate(-10deg);
  pointer-events: none;
}

/* ═══ الفقاعات ═══ */
.bubble {
  position: absolute; bottom: -40px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(103,232,249,.5), rgba(34,211,238,.08));
  border: 1px solid rgba(34,211,238,.25);
  animation: bubble 8s linear infinite;
}

/* ═══ النافبار ═══ */
#navbar .nav-inner { border-bottom: 1px solid transparent; }
#navbar.scrolled { background: rgba(5,13,26,.85); backdrop-filter: blur(14px); box-shadow: 0 8px 30px rgba(0,0,0,.35); }
#navbar.scrolled .nav-inner { border-bottom-color: rgba(34,211,238,.12); }
.logo-chip {
  background: linear-gradient(145deg, rgba(34,211,238,.16), rgba(8,145,178,.08));
  border: 1px solid rgba(34,211,238,.3);
  box-shadow: 0 0 18px rgba(34,211,238,.15), inset 0 0 12px rgba(34,211,238,.08);
}
.nav-link { padding: .5rem .9rem; border-radius: 9999px; color: #cbd5e1; transition: all .25s; }
.nav-link:hover, .nav-link.active { color: #22d3ee; background: rgba(34,211,238,.1); }

/* ═══ همبرجر متحرك (3 خطوط) ═══ */
.ham-lines { display: flex; flex-direction: column; gap: 5px; width: 20px; }
.ham-line {
  height: 2.5px; border-radius: 3px; background: #22d3ee;
  transition: transform .35s cubic-bezier(.68,-0.55,.27,1.55), opacity .25s, width .35s;
  transform-origin: center;
}
.ham-1 { width: 20px; } .ham-2 { width: 14px; margin-right: auto; } .ham-3 { width: 20px; }
.hamburger.open .ham-1 { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open .ham-2 { opacity: 0; width: 0; }
.hamburger.open .ham-3 { transform: translateY(-7.5px) rotate(-45deg); }
.hamburger:hover .ham-2 { width: 20px; }

/* قائمة الموبايل */
.mobile-menu {
  max-height: 0; overflow: hidden; opacity: 0;
  background: rgba(5,13,26,.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(34,211,238,.15);
  transition: max-height .45s ease, opacity .35s ease;
}
.mobile-menu.open { max-height: 480px; opacity: 1; }
.m-link { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; border-radius: .75rem; transition: background .25s; }
.m-link:hover { background: rgba(34,211,238,.08); }

/* ═══ أزرار عامة ═══ */
.btn-primary {
  display: inline-flex; align-items: center; gap: .55rem;
  background: linear-gradient(120deg, #22d3ee, #0891b2);
  color: #050d1a; font-weight: 900; font-size: .95rem;
  padding: .8rem 1.7rem; border-radius: 9999px;
  box-shadow: 0 8px 26px rgba(34,211,238,.3);
  transition: transform .25s, box-shadow .25s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(34,211,238,.45); }
.btn-ghost, .btn-ghost-dark {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1.5px solid rgba(34,211,238,.45); color: #67e8f9;
  font-weight: 800; font-size: .95rem; padding: .8rem 1.7rem; border-radius: 9999px;
  transition: all .25s;
}
.btn-ghost:hover, .btn-ghost-dark:hover { background: rgba(34,211,238,.1); transform: translateY(-3px); }

/* لوحة CTA الهيرو */
.hero-cta-panel {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem;
  justify-content: center;
}
@media (min-width: 1024px) { .hero-cta-panel { justify-content: flex-start; } }
.hero-trust {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 800; color: #86efac;
  background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.25);
  padding: .5rem .9rem; border-radius: 9999px;
}

/* ═══ عناوين الأقسام ═══ */
.section-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; color: #fff; position: relative; display: inline-block; }
.section-title::after {
  content: ''; position: absolute; bottom: -8px; right: 0;
  width: 55%; height: 4px; border-radius: 4px;
  background: linear-gradient(to left, #22d3ee, transparent);
}

/* ═══ الهيرو: الاسم خلف الصورة + لوحة الاسم المستطيلة أسفلها ═══ */
.hero-figure-wrap { padding-bottom: 64px; }

/* الاسم الإنجليزي المتوهج خلف الصورة */
.hero-name-back {
  position: absolute; inset: -8% 0 auto 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: .1em; user-select: none; pointer-events: none;
  font-family: 'Cairo', sans-serif; direction: ltr;
}
.hero-name-back span {
  font-size: clamp(2.6rem, 8.5vw, 5.2rem); font-weight: 900; line-height: .95;
  letter-spacing: .06em;
  background: linear-gradient(180deg, #7dd3fc 0%, #22d3ee 45%, #0369a1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(34,211,238,.55)) drop-shadow(0 0 42px rgba(34,211,238,.3));
  animation: nameGlow 3.2s ease-in-out infinite alternate;
  opacity: .85;
}
.hero-name-back span:nth-child(2) { animation-delay: .6s; opacity: .65; }
@keyframes nameGlow {
  from { filter: drop-shadow(0 0 10px rgba(34,211,238,.4)) drop-shadow(0 0 30px rgba(34,211,238,.2)); }
  to   { filter: drop-shadow(0 0 20px rgba(34,211,238,.75)) drop-shadow(0 0 60px rgba(34,211,238,.4)); }
}

/* لوحة الاسم المستطيلة الأنيقة أسفل الصورة */
.hero-name-plate {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%) skewX(-4deg);
  z-index: 12;
  display: flex; flex-direction: column; align-items: center; gap: .12em;
  background: linear-gradient(100deg, rgba(6,24,42,.96) 0%, rgba(10,38,64,.94) 50%, rgba(6,24,42,.96) 100%);
  border: 1px solid rgba(34,211,238,.55);
  border-radius: .65rem;
  padding: .5rem 2.1rem .55rem;
  box-shadow:
    0 0 0 3px rgba(34,211,238,.08),
    0 0 26px rgba(34,211,238,.4),
    0 14px 34px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(165,243,252,.25);
  animation: plateGlow 3.2s ease-in-out infinite alternate;
  user-select: none; pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}
/* لمعة بتعدي على اللوحة */
.hero-name-plate::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(165,243,252,.16), transparent);
  animation: plateShine 3.6s ease-in-out infinite;
}
@keyframes plateShine { 0% { left: -55%; } 55%, 100% { left: 115%; } }
.hero-name-plate .plate-ar {
  font-size: clamp(1.05rem, 3.6vw, 1.5rem); font-weight: 900; line-height: 1.2;
  color: #fff;
  text-shadow: 0 0 14px rgba(34,211,238,.65), 0 2px 6px rgba(0,0,0,.5);
}
.hero-name-plate .plate-en {
  direction: ltr;
  font-size: clamp(.58rem, 1.8vw, .74rem); font-weight: 800; line-height: 1;
  letter-spacing: .38em; text-indent: .38em;
  background: linear-gradient(180deg, #a5f3fc, #22d3ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 8px rgba(34,211,238,.5));
}
@keyframes plateGlow {
  from { box-shadow: 0 0 0 3px rgba(34,211,238,.06), 0 0 18px rgba(34,211,238,.28), 0 14px 34px rgba(0,0,0,.55), inset 0 1px 0 rgba(165,243,252,.18); border-color: rgba(34,211,238,.4); }
  to   { box-shadow: 0 0 0 3px rgba(34,211,238,.12), 0 0 36px rgba(34,211,238,.55), 0 14px 34px rgba(0,0,0,.55), inset 0 1px 0 rgba(165,243,252,.35); border-color: rgba(103,232,249,.85); }
}
.teacher-cutout {
  filter: drop-shadow(0 0 24px rgba(34,211,238,.28)) drop-shadow(0 22px 34px rgba(0,0,0,.5));
  animation: teacherRise 1.5s cubic-bezier(.2,.8,.25,1) both;
}
/* هبوط + رجّة في النهاية (لمسة الارتطام بالمنصة) */
@keyframes teacherRise {
  0%   { opacity: 0; transform: translateY(48px) scale(.96); }
  62%  { opacity: 1; transform: translateY(-4px) scale(1.005); }
  76%  { transform: translateY(2.5px) scale(.998); }
  86%  { transform: translateY(-1.5px); }
  93%  { transform: translateY(1px); }
  100% { opacity: 1; transform: none; }
}

/* منصة الإضاءة اللي واقف عليها المدرس (مش طاير في الهوا) */
.hero-stage {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  width: 92%; height: 34px; border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(34,211,238,.55), rgba(34,211,238,.14) 55%, transparent 75%);
  filter: blur(2px); z-index: 5;
}
.hero-stage::after {
  content: ''; position: absolute; inset: 28% 6% 32% 6%; border-radius: 50%;
  background: rgba(5,13,26,.85);
  box-shadow: 0 4px 22px rgba(34,211,238,.35), inset 0 2px 10px rgba(34,211,238,.25);
}
.hero-stage-ring {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 110%; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(34,211,238,.35);
  border-top-color: transparent;
  z-index: 4;
  animation: stageRing 3s ease-in-out infinite alternate;
}
@keyframes stageRing { from { box-shadow: 0 8px 30px rgba(34,211,238,.15); opacity: .6; } to { box-shadow: 0 10px 44px rgba(34,211,238,.4); opacity: 1; } }
.float-chip {
  position: absolute; z-index: 20;
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(8,21,39,.88); border: 1px solid rgba(34,211,238,.3);
  backdrop-filter: blur(8px);
  padding: .45rem .85rem; border-radius: 9999px;
  font-size: .78rem; font-weight: 800; color: #e2e8f0;
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
  white-space: nowrap;
}

/* بطاقات المميزات المصغّرة في الهيرو */
.mini-card {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  background: rgba(12,31,56,.6); border: 1px solid rgba(34,211,238,.14);
  border-radius: 1.1rem; padding: .9rem .5rem; text-align: center;
  backdrop-filter: blur(8px); transition: transform .3s, border-color .3s;
}
.mini-card:hover { transform: translateY(-5px); border-color: rgba(34,211,238,.4); }
.mini-card strong { font-size: .92rem; color: #fff; }
.mini-card small { font-size: .68rem; color: #94a3b8; line-height: 1.4; }
.mini-ico { width: 42px; height: 42px; border-radius: .9rem; display: grid; place-items: center; font-size: 1.1rem; }

/* ═══ بطاقات الصفوف ═══ */
.grade-card {
  background: linear-gradient(160deg, rgba(12,31,56,.85), rgba(8,21,39,.9));
  border: 1px solid rgba(34,211,238,.14); border-radius: 1.4rem;
  overflow: hidden; transition: transform .35s, border-color .35s, box-shadow .35s;
}
.grade-card:hover { transform: translateY(-8px); border-color: rgba(34,211,238,.45); box-shadow: 0 18px 44px rgba(34,211,238,.14); }
.grade-figure { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.grade-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.grade-card:hover .grade-figure img { transform: scale(1.07); }
.grade-tag {
  position: absolute; bottom: .8rem; right: .8rem;
  background: rgba(5,13,26,.85); border: 1px solid rgba(34,211,238,.4);
  color: #67e8f9; font-size: .72rem; font-weight: 800;
  padding: .3rem .8rem; border-radius: 9999px; backdrop-filter: blur(6px);
}
.grade-tag-gold { border-color: rgba(251,191,36,.5); color: #fcd34d; }
.grade-body { padding: 1.2rem 1.3rem 1.4rem; }
.grade-body h3 { font-size: 1.15rem; font-weight: 900; color: #fff; margin-bottom: .4rem; }
.grade-body p { font-size: .82rem; color: #94a3b8; line-height: 1.7; margin-bottom: .9rem; }
.grade-link { display: inline-flex; align-items: center; gap: .45rem; color: #22d3ee; font-size: .85rem; font-weight: 800; transition: gap .25s; }
.grade-link:hover { gap: .8rem; }

/* بديل رقم ثلاثي الأبعاد (CSS) للصفوف بدون صورة */
.grade-num-fallback {
  width: 100%; height: 100%; position: relative;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 20%, #12294a, #081527 75%);
}
.grade-num-fallback span {
  font-size: 6.5rem; font-weight: 900; line-height: 1;
  background: linear-gradient(180deg, #67e8f9, #0891b2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 22px rgba(34,211,238,.35));
  animation: numFloat 5s ease-in-out infinite;
}
@keyframes numFloat { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.grade-num-fallback i { position: absolute; color: rgba(34,211,238,.35); font-size: 1.5rem; }
.grade-num-fallback i:nth-of-type(1) { top: 18%; right: 16%; animation: float 6s ease-in-out infinite; }
.grade-num-fallback i:nth-of-type(2) { bottom: 20%; left: 14%; font-size: 2rem; animation: spin 12s linear infinite; }
.grade-num-fallback i:nth-of-type(3) { top: 55%; right: 12%; animation: float 8s ease-in-out infinite reverse; }
.grade-num-gold span { background: linear-gradient(180deg, #fcd34d, #d97706); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 10px 22px rgba(251,191,36,.3)); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ سلايدر الكورسات الأفقي (لمس + تلاشي ضبابي على الجوانب) ═══ */
.courses-count {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: .8rem; font-weight: 800; color: #67e8f9; margin-bottom: 2rem;
}
.courses-slider {
  display: flex; gap: 1.25rem; align-items: stretch;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: .6rem .35rem 1.3rem;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(to left, transparent 0, #000 7%, #000 93%, transparent 100%);
  cursor: grab;
}
.courses-slider:active { cursor: grabbing; }
.courses-slider.dragging, .social-slider.dragging { scroll-snap-type: none; scroll-behavior: auto; }
.courses-slider::-webkit-scrollbar { display: none; }
.courses-hint { margin-top: .2rem; }

.course-featured {
  position: relative;
  border-color: rgba(244,63,94,.4) !important;
}

.course-card {
  flex: 0 0 min(340px, 86vw); scroll-snap-align: center;
  background: linear-gradient(165deg, rgba(12,31,56,.9), rgba(5,13,26,.95));
  border: 1px solid rgba(34,211,238,.15); border-radius: 1.5rem;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
@media (min-width: 768px) { .course-card { flex-basis: 380px; } }
.course-card:hover { transform: translateY(-7px); border-color: rgba(34,211,238,.45); box-shadow: 0 20px 48px rgba(34,211,238,.15); }
.course-figure {
  position: relative; height: 175px; overflow: hidden;
  background: radial-gradient(circle at 50% 110%, #12294a, #081527 70%);
  display: flex; align-items: flex-end; justify-content: center;
}
.course-blob {
  position: absolute; inset: auto -20% -55% -20%; height: 130%;
  border-radius: 50%; background: radial-gradient(circle at 50% 30%, rgba(34,211,238,.3), transparent 65%);
}
.course-blob-blue { background: radial-gradient(circle at 50% 30%, rgba(59,130,246,.3), transparent 65%); }
.course-blob-gold { background: radial-gradient(circle at 50% 30%, rgba(251,191,36,.25), transparent 65%); }
.course-blob-violet { background: radial-gradient(circle at 50% 30%, rgba(167,139,250,.28), transparent 65%); }
.course-blob-green { background: radial-gradient(circle at 50% 30%, rgba(52,211,153,.3), transparent 65%); }
.course-teacher { position: relative; z-index: 2; height: 105%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 8px 18px rgba(0,0,0,.5)); transition: transform .5s; }
.course-card:hover .course-teacher { transform: scale(1.05) translateY(-3px); }
.course-photo { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.course-card:hover .course-photo { transform: scale(1.06); }
.discount-badge {
  position: absolute; top: .9rem; right: .9rem; z-index: 5;
  display: inline-flex; align-items: center; gap: .35rem;
  background: linear-gradient(120deg, #f43f5e, #e11d48); color: #fff;
  font-size: .75rem; font-weight: 900; padding: .35rem .85rem; border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(244,63,94,.45);
  animation: pulseBadge 2s ease-in-out infinite;
}
@keyframes pulseBadge { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.course-grade-chip {
  position: absolute; bottom: .8rem; left: .8rem; z-index: 5;
  background: rgba(5,13,26,.85); border: 1px solid rgba(34,211,238,.35);
  color: #67e8f9; font-size: .68rem; font-weight: 800;
  padding: .28rem .7rem; border-radius: 9999px; backdrop-filter: blur(6px);
}
.course-body { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 1.08rem; font-weight: 900; color: #fff; margin-bottom: .35rem; }
.course-desc { font-size: .78rem; color: #94a3b8; line-height: 1.7; margin-bottom: .8rem; }
.price-row { display: flex; align-items: baseline; gap: .7rem; margin-bottom: .8rem; }
.price-new { font-size: 1.5rem; font-weight: 900; color: #22d3ee; }
.price-new small { font-size: .8rem; color: #67e8f9; font-weight: 700; }
.price-old { font-size: .95rem; color: #64748b; text-decoration-color: #f43f5e; text-decoration-thickness: 2px; }

/* ═══ العداد التنازلي المبهر ═══ */
.countdown {
  position: relative; border-radius: 1.1rem; padding: .8rem .8rem .9rem; margin-bottom: .9rem;
  background: linear-gradient(160deg, rgba(244,63,94,.14), rgba(190,18,60,.06) 60%, rgba(5,13,26,.4));
  overflow: hidden;
}
/* إطار متوهج دائر حول العداد */
.countdown::before {
  content: ''; position: absolute; inset: -60%;
  background: conic-gradient(transparent 0deg, transparent 260deg, #fb7185 310deg, #fda4af 330deg, transparent 360deg);
  animation: cdSpin 3.2s linear infinite;
}
.countdown::after {
  content: ''; position: absolute; inset: 1.5px; border-radius: 1rem;
  background: linear-gradient(160deg, #1a0b14, #0c0a16 55%, #081527);
}
@keyframes cdSpin { to { transform: rotate(360deg); } }
.countdown > * { position: relative; z-index: 2; }
.countdown-label {
  font-size: .74rem; font-weight: 900; color: #fda4af; margin-bottom: .55rem;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  text-shadow: 0 0 12px rgba(244,63,94,.5);
}
.countdown-grid { display: flex; align-items: stretch; justify-content: center; gap: .3rem; }
.cd-sep { align-self: center; color: #fb7185; font-weight: 900; font-size: 1.1rem; animation: sepBlink 1s steps(2) infinite; }
@keyframes sepBlink { 50% { opacity: .25; } }
.cd-box {
  flex: 1; max-width: 64px;
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.015) 50%, rgba(0,0,0,.25));
  border: 1px solid rgba(244,63,94,.3);
  border-radius: .75rem; padding: .45rem .2rem .4rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08);
}
.cd-box b {
  font-size: 1.35rem; font-weight: 900; color: #fff; line-height: 1.1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(251,113,133,.6);
}
.cd-box-secs b { color: #fda4af; animation: secPulse 1s ease-in-out infinite; }
@keyframes secPulse { 50% { transform: scale(1.12); } }
.cd-box small { font-size: .58rem; color: #cbd5e1; font-weight: 800; margin-top: .1rem; }

.save-chip {
  font-size: .62rem; font-weight: 900; color: #86efac;
  background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3);
  padding: .2rem .55rem; border-radius: 9999px;
}

.course-cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(120deg, #22d3ee, #0891b2); color: #050d1a;
  font-weight: 900; font-size: .9rem; padding: .75rem 1rem; border-radius: 1rem;
  transition: transform .25s, box-shadow .25s;
}
.course-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(34,211,238,.35); }
.course-cta-alt { background: rgba(34,211,238,.12); color: #67e8f9; border: 1.5px solid rgba(34,211,238,.35); }
.course-cta-alt:hover { background: rgba(34,211,238,.2); }
.course-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.course-actions .course-cta { margin-top: 0; padding: .7rem .5rem; font-size: .8rem; }
.course-enter {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  background: rgba(255,255,255,.05); color: #cbd5e1;
  border: 1.5px solid rgba(148,163,184,.3);
  font-weight: 800; font-size: .8rem; padding: .7rem .5rem; border-radius: 1rem;
  transition: all .25s; cursor: pointer;
}
.course-enter:hover { border-color: rgba(34,211,238,.5); color: #67e8f9; background: rgba(34,211,238,.08); }
.course-actions .course-cta-free { grid-column: 1 / -1; background: linear-gradient(120deg, #34d399, #059669); color: #052e1b; }
.course-actions .course-cta-free:hover { box-shadow: 0 10px 26px rgba(52,211,153,.35); }

/* بطاقة الكورس المجاني */
.course-free { border-color: rgba(52,211,153,.35); }
.course-free:hover { border-color: rgba(52,211,153,.6); box-shadow: 0 20px 48px rgba(52,211,153,.14); }
.free-badge {
  position: absolute; top: .9rem; right: .9rem; z-index: 5;
  display: inline-flex; align-items: center; gap: .35rem;
  background: linear-gradient(120deg, #34d399, #059669); color: #052e1b;
  font-size: .75rem; font-weight: 900; padding: .35rem .85rem; border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(52,211,153,.45);
  animation: pulseBadge 2s ease-in-out infinite;
}

/* ═══ شريط فيديو "جو المعمل" ═══ */
.vibes-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .vibes-grid { grid-template-columns: 1.1fr 1fr 1fr; } }
.vibe-card {
  position: relative; border-radius: 1.3rem; overflow: hidden;
  border: 1px solid rgba(34,211,238,.2);
  aspect-ratio: 4/5;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.vibe-card:hover { transform: translateY(-6px) scale(1.015); border-color: rgba(34,211,238,.5); box-shadow: 0 22px 55px rgba(34,211,238,.15); }
.vibe-tall { grid-row: span 1; }
@media (min-width: 768px) { .vibe-card { aspect-ratio: 3/4; } .vibe-tall { aspect-ratio: 3/4; } }
.vibe-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vibe-card figcaption {
  position: absolute; bottom: .8rem; right: .8rem; left: .8rem; z-index: 2;
  display: flex; align-items: center; gap: .5rem;
  background: rgba(5,13,26,.75); backdrop-filter: blur(8px);
  border: 1px solid rgba(34,211,238,.25);
  color: #e0f2fe; font-size: .78rem; font-weight: 800;
  padding: .5rem .8rem; border-radius: .8rem;
}
.vibe-card figcaption i { color: #22d3ee; }

/* ═══ بطاقات الخطوات ═══ */
.step-card {
  position: relative; border-radius: 1.4rem; padding: 1.6rem 1.4rem 1.5rem;
  background: rgba(12,31,56,.72); border: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(8px); overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}
.step-card:hover { transform: translateY(-7px); }
.step-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--step-c, #22d3ee); border-radius: 4px 4px 0 0;
}
.step-c1 { --step-c: #22d3ee; } .step-c2 { --step-c: #a78bfa; } .step-c3 { --step-c: #34d399; }
.step-c4 { --step-c: #fbbf24; } .step-c5 { --step-c: #fb7185; } .step-c6 { --step-c: #38bdf8; }
.step-card:hover { box-shadow: 0 18px 40px color-mix(in srgb, var(--step-c) 18%, transparent); }
.step-num {
  position: absolute; top: .8rem; left: 1rem;
  font-size: 3.2rem; font-weight: 900; line-height: 1;
  color: color-mix(in srgb, var(--step-c) 22%, transparent);
  user-select: none;
}
.step-ico {
  width: 52px; height: 52px; border-radius: 1rem; display: grid; place-items: center;
  font-size: 1.35rem; color: var(--step-c);
  background: color-mix(in srgb, var(--step-c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--step-c) 30%, transparent);
  margin-bottom: .9rem;
}
.step-ico-lg { width: 64px; height: 64px; font-size: 1.8rem; margin-inline: auto; }
.step-card h3 { font-size: 1.05rem; font-weight: 900; color: #fff; margin-bottom: .45rem; }
.step-card p { font-size: .8rem; color: #94a3b8; line-height: 1.8; }
.step-c6 { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6rem; }
.step-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(120deg, #22d3ee, #0891b2); color: #050d1a;
  font-weight: 900; font-size: .88rem; padding: .65rem 1.4rem; border-radius: 9999px;
  transition: transform .25s;
}
.step-cta:hover { transform: scale(1.06); }

/* ═══ بانر CTA ═══ */
.cta-wrap {
  display: grid; grid-template-columns: 1fr; gap: 0; overflow: hidden;
  border-radius: 1.8rem; border: 1px solid rgba(34,211,238,.22);
  background:
    radial-gradient(circle at 85% 20%, rgba(34,211,238,.12), transparent 45%),
    linear-gradient(150deg, #0c1f38, #081527 70%);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
@media (min-width: 640px) { .cta-wrap { grid-template-columns: 280px 1fr; } }
.cta-figure { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 230px; }
.cta-blob { position: absolute; inset: auto -30% -60% -30%; height: 140%; border-radius: 50%; background: radial-gradient(circle at 50% 30%, rgba(34,211,238,.3), transparent 60%); }
.cta-teacher { position: relative; z-index: 2; height: 245px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 10px 22px rgba(0,0,0,.5)); }
.cta-content { padding: 2rem 1.8rem 2.2rem; text-align: center; }
@media (min-width: 640px) { .cta-content { text-align: right; padding: 2.4rem 2.2rem; } }
.cta-content h2 { font-size: clamp(1.4rem, 3.4vw, 2.1rem); font-weight: 900; color: #fff; margin-bottom: .7rem; }
.cta-content p { font-size: .92rem; color: #94a3b8; line-height: 1.9; margin-bottom: 1.4rem; }

/* ═══ بانر بوابة الانضمام (بالصورة المولّدة) ═══ */
.cta-portal {
  position: relative; overflow: hidden;
  border-radius: 1.8rem; border: 1px solid rgba(34,211,238,.28);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 40px rgba(34,211,238,.08);
  min-height: 340px; display: flex; align-items: flex-end;
}
.cta-portal-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.cta-portal-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,13,26,.92) 8%, rgba(5,13,26,.55) 38%, rgba(5,13,26,.08) 70%);
}
.cta-portal-content {
  position: relative; z-index: 2; width: 100%;
  text-align: center; padding: 7rem 1.5rem 2.2rem;
}
@media (min-width: 640px) { .cta-portal { min-height: 420px; } .cta-portal-content { padding: 9rem 2rem 2.6rem; } }
.cta-portal-content h2 { font-size: clamp(1.5rem, 3.6vw, 2.3rem); font-weight: 900; color: #fff; margin-bottom: .6rem; text-shadow: 0 4px 18px rgba(0,0,0,.6); }
.cta-portal-content p { font-size: .95rem; color: #cbd5e1; line-height: 1.9; margin-bottom: 1.3rem; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.cta-portal-btn { box-shadow: 0 0 26px rgba(34,211,238,.45); }

/* ═══ العداد المصغّر في شريط الإعلان (أرقام بيضا واضحة على شرائح غامقة) ═══ */
.announce-cd {
  display: inline-flex; align-items: center; gap: .28rem;
  background: rgba(5,13,26,.9); border: 1px solid rgba(255,255,255,.15);
  border-radius: .7rem; padding: .22rem .6rem;
  box-shadow: inset 0 1px 4px rgba(0,0,0,.4);
}
.acd-box { display: inline-flex; align-items: baseline; gap: .2rem; }
.acd-box b { font-size: 1rem; font-weight: 900; color: #ffffff; min-width: 1.35em; text-align: center; font-variant-numeric: tabular-nums; }
.acd-box small { font-size: .58rem; font-weight: 800; color: #67e8f9; }
.acd-sep { font-weight: 900; color: rgba(255,255,255,.45); font-size: .85rem; }
.acd-secs b { color: #fda4af; }
@media (max-width: 380px) { .acd-box small { display: none; } }

/* ═══ سلايدر السوشيال الأفقي (لمس + تلاشي ضبابي على الجوانب) ═══ */
.social-slider {
  display: flex; gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: .5rem .25rem 1.1rem;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(to left, transparent 0, #000 9%, #000 91%, transparent 100%);
  cursor: grab;
}
.social-slider:active { cursor: grabbing; }
.social-slider::-webkit-scrollbar { display: none; }
.social-hint {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: .75rem; font-weight: 800; color: #64748b; margin-top: .4rem;
}
.social-hint i { color: #22d3ee; }

/* ═══ بطاقات السوشيال ═══ */
.social-card {
  flex: 0 0 min(340px, 78vw); scroll-snap-align: center;
  display: flex; align-items: center; gap: 1rem;
  background: rgba(12,31,56,.75); border: 1px solid rgba(255,255,255,.07);
  border-radius: 1.2rem; padding: 1rem 1.2rem;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.social-card:hover { transform: translateY(-4px) scale(1.01); border-color: rgba(34,211,238,.35); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.social-ico { width: 52px; height: 52px; border-radius: 1rem; display: grid; place-items: center; font-size: 1.5rem; color: #fff; flex-shrink: 0; transition: transform .3s; }
.social-card:hover .social-ico { transform: rotate(-8deg) scale(1.08); }
.social-txt { flex: 1; }
.social-txt strong { display: block; font-size: 1rem; font-weight: 900; color: #fff; }
.social-txt small { font-size: .75rem; color: #94a3b8; }
.social-arrow { color: #22d3ee; transition: transform .3s; }
.social-card:hover .social-arrow { transform: translateX(-6px); }

/* ═══ قسم التسجيل ═══ */
.register-video-card {
  position: relative; border-radius: 1.6rem; overflow: hidden;
  border: 1px solid rgba(34,211,238,.25); min-height: 380px;
  box-shadow: 0 22px 55px rgba(0,0,0,.45);
}
.register-video-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.register-video-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
  background: linear-gradient(180deg, rgba(5,13,26,.55), rgba(5,13,26,.82));
  padding: 2rem; text-align: center;
}
.register-logo { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 0 22px rgba(34,211,238,.5)); }
.register-video-overlay h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 900; color: #fff; }
.register-video-overlay p { font-size: .88rem; color: #a5f3fc; font-weight: 700; }
.register-video-wide { min-height: 420px; }
.reg-video-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: .5rem; }

.register-form-card {
  background: rgba(8,21,39,.92); border: 1px solid rgba(34,211,238,.2);
  border-radius: 1.6rem; padding: 1.6rem 1.5rem 1.8rem;
  backdrop-filter: blur(14px); box-shadow: 0 22px 55px rgba(0,0,0,.4);
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; background: rgba(5,13,26,.7); padding: .4rem; border-radius: 1rem; margin-bottom: 1.3rem; }
.auth-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem .5rem; border-radius: .75rem; font-weight: 800; font-size: .88rem;
  color: #94a3b8; transition: all .3s;
}
.auth-tab.active { background: linear-gradient(120deg, #22d3ee, #0891b2); color: #050d1a; box-shadow: 0 6px 18px rgba(34,211,238,.3); }
.auth-form { display: flex; flex-direction: column; gap: .85rem; }
.auth-form.hidden { display: none; }
.field {
  display: flex; align-items: center; gap: .7rem;
  background: rgba(12,31,56,.7); border: 1px solid rgba(255,255,255,.08);
  border-radius: .9rem; padding: .35rem 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.field:focus-within { border-color: rgba(34,211,238,.5); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.field i { color: #22d3ee; font-size: .95rem; width: 18px; text-align: center; }
.field input, .field select {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: #e2e8f0; font-family: inherit; font-size: .9rem; font-weight: 600;
  padding: .55rem 0;
}
.field select option { background: #0c1f38; }
.field input::placeholder { color: #64748b; }
.auth-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: linear-gradient(120deg, #22d3ee, #0891b2); color: #050d1a;
  font-weight: 900; font-size: .95rem; padding: .85rem; border-radius: 1rem;
  transition: transform .25s, box-shadow .25s; margin-top: .3rem;
}
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(34,211,238,.35); }

.reg-closed {
  display: flex; align-items: flex-start; gap: .8rem;
  background: rgba(251,191,36,.09); border: 1px solid rgba(251,191,36,.35);
  border-radius: 1rem; padding: 1rem 1.1rem; margin-top: 1rem;
  animation: regPop .45s cubic-bezier(.2,.9,.3,1.3) both;
}
.reg-closed[hidden] { display: none; }
.reg-closed i { color: #fbbf24; font-size: 1.3rem; margin-top: .15rem; }
.reg-closed p { font-size: .92rem; font-weight: 800; color: #fde68a; line-height: 1.8; }
.reg-closed small { font-weight: 600; color: #d6bc82; }
@keyframes regPop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* ═══ الفوتر ═══ */
.footer-title { font-size: 1.05rem; font-weight: 900; color: #fff; margin-bottom: 1rem; position: relative; padding-bottom: .5rem; }
.footer-title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 42px; height: 3px; border-radius: 3px; background: #22d3ee; }
.foot-social {
  width: 40px; height: 40px; border-radius: .8rem; display: grid; place-items: center;
  background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25);
  color: #67e8f9; transition: all .3s;
}
.foot-social:hover { background: #22d3ee; color: #050d1a; transform: translateY(-4px) rotate(6deg); }

/* ═══ توست: المنصة لم تُبنَ بعد ═══ */
.pending-toast {
  position: fixed; bottom: 1.4rem; left: 50%; z-index: 90;
  transform: translateX(-50%) translateY(140%);
  display: flex; align-items: center; gap: .8rem;
  max-width: min(430px, calc(100vw - 2rem));
  background: rgba(8,21,39,.96); border: 1px solid rgba(251,191,36,.45);
  border-radius: 1.1rem; padding: .9rem 1.2rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 28px rgba(251,191,36,.12);
  backdrop-filter: blur(12px);
  transition: transform .5s cubic-bezier(.2,.9,.3,1.2);
  pointer-events: none;
}
.pending-toast.show { transform: translateX(-50%) translateY(0); }
.pending-toast > i { color: #fbbf24; font-size: 1.4rem; flex-shrink: 0; }
.pending-toast strong { display: block; font-size: .9rem; font-weight: 900; color: #fde68a; }
.pending-toast small { display: block; font-size: .72rem; color: #cbd5e1; margin-top: .15rem; line-height: 1.6; }

/* ═══ موبايل ═══ */
@media (max-width: 640px) {
  .float-chip { font-size: .68rem; padding: .35rem .65rem; }
  .cta-teacher { height: 200px; }
  .section-title::after { right: 50%; transform: translateX(50%); }
  .hero-figure-wrap { padding-bottom: 54px; }
  .hero-name-plate { padding: .42rem 1.4rem .48rem; bottom: 8px; }
  .hero-stage { bottom: 32px; }
  .hero-stage-ring { bottom: 26px; }
}

/* تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bg-video { display: none; }
}
