/* ===== الألوان والقياسات ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --surface: #ffffff;
  --text: #0b0d12;
  --muted: #5a6273;
  --line: #e3e8f1;
  --blue: #2f5fcf;
  --blue-soft: #b7cbec;
  --blue-mist: #dde7f7;
  --mint: #d6ece8;
  --peach: #f6e1d3;
  --dark: #0b0d12;
  --hl: #1a47c2;
  --btn-bg: #0b0d12;
  --btn-fg: #ffffff;
  --btn-hover: #1f2430;
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .88);
  --chip-bg: rgba(255, 255, 255, .75);
  --input-bg: #ffffff;
  --input-line: #d5dce8;
  --placeholder: #9aa3b2;
  --err: #c0392b;
  --urgency-bg: #fff4ec;
  --urgency-fg: #a24a12;
  --urgency-line: #f6dcc8;
  --blob-1: #a9c1e8;
  --blob-2: #c3d6f1;
  --blob-3: #c9d8f1;
  --blob-4: #b9cdec;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(47, 95, 207, .18);
  --font-head: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --gutter: 16px;
  --header-h: 64px;
}

@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 72px; } }

/* ===== الوضع الليلي ===== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0d13;
  --bg-soft: #0f131b;
  --surface: #131821;
  --text: #eef1f6;
  --muted: #9ba4b4;
  --line: #232b38;
  --blue: #7ea6ff;
  --blue-soft: #34508f;
  --blue-mist: #172340;
  --mint: #12302c;
  --peach: #3a2618;
  --hl: #8fb0ff;
  --btn-bg: #eef1f6;
  --btn-fg: #0b0d12;
  --btn-hover: #ffffff;
  --glass: rgba(10, 13, 19, .72);
  --glass-strong: rgba(19, 24, 33, .9);
  --chip-bg: rgba(19, 24, 33, .7);
  --input-bg: #0f131b;
  --input-line: #2b3443;
  --placeholder: #6b7486;
  --err: #f0857a;
  --urgency-bg: #2a1b10;
  --urgency-fg: #f3b58a;
  --urgency-line: #4a2e1a;
  --blob-1: #1d3566;
  --blob-2: #1a2b52;
  --blob-3: #172a50;
  --blob-4: #1b3060;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
}
:root[data-theme="dark"] .brand img { filter: invert(1); }

/* ===== أساسيات ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
[lang="en"] { font-family: var(--font-body); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 1600px) { .container { max-width: 1400px; } }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--dark); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ===== الخلفية: غيوم زرقا ناعمة مع حبيبات ===== */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.blob {
  position: absolute; z-index: -1; pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
}
.blob-hero {
  width: min(1100px, 130vw); aspect-ratio: 1.15;
  top: -28%; inset-inline-end: -30%;
  background:
    radial-gradient(circle at 60% 40%, var(--blob-1) 0%, transparent 55%),
    radial-gradient(circle at 35% 70%, var(--blob-2) 0%, transparent 55%),
    radial-gradient(circle at 55% 88%, var(--peach) 0%, transparent 40%),
    radial-gradient(circle at 25% 45%, var(--mint) 0%, transparent 45%);
  opacity: .9;
}
.blob-price {
  width: min(800px, 110vw); aspect-ratio: 1;
  top: 5%; inset-inline-start: -25%;
  background: radial-gradient(circle at 50% 50%, var(--blue-mist) 0%, var(--blob-3) 30%, transparent 65%);
}
.blob-form {
  width: min(900px, 120vw); aspect-ratio: 1.2;
  bottom: -20%; inset-inline-end: -30%;
  background:
    radial-gradient(circle at 50% 45%, var(--blob-4) 0%, transparent 55%),
    radial-gradient(circle at 30% 75%, var(--mint) 0%, transparent 45%);
  opacity: .75;
}

/* ===== أزرار ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.2;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 8px 24px -10px rgba(11, 13, 18, .55); }
.btn-dark:hover { background: var(--btn-hover); box-shadow: 0 12px 28px -10px rgba(47, 95, 207, .55); }
.btn-ghost { background: var(--chip-bg); border-color: var(--line); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--blue-soft); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ===== الهيدر ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
/* اللوغو بالإنجليزي: الأيقونة عاليسار وجنبها الاسم */
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; direction: ltr; }
.brand img:first-child { width: 34px; height: 34px; }
.brand-word { width: 118px; height: auto; }
.nav { display: none; gap: 28px; font-size: .95rem; color: var(--muted); }
.nav a:hover { color: var(--text); }
@media (min-width: 1024px) { .nav { display: flex; } }
@media (max-width: 380px) { .brand-word { width: 96px; } }

/* ===== عناصر مشتركة ===== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  color: var(--blue);
  margin-bottom: 12px;
}
.section { position: relative; padding-block: clamp(64px, 9vw, 120px); isolation: isolate; }
#pricing, #register { overflow: clip; }
.section-tight { padding-block: clamp(48px, 7vw, 88px); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.section-sub { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.12rem); margin-top: 12px; }

/* ===== الفيديو والصور ===== */
.video-thumb, .shot {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius);
  background: var(--blue-mist);
  box-shadow: var(--shadow);
}
.video-thumb img, .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.video-thumb::after, .shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 13, 18, .35), transparent 45%);
  pointer-events: none;
}
.play {
  position: absolute; z-index: 1; inset-inline-start: 16px; bottom: 16px;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
  transition: transform .2s ease;
}
.play::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-38%, -50%);
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--dark);
}
@media (hover: hover) {
  .video-thumb:hover img, .shot:hover img { transform: scale(1.04); }
}

/* ===== ١. الواجهة ===== */
.hero { position: relative; isolation: isolate; padding-block: clamp(36px, 6vw, 88px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5.6vw, 3.4rem); line-height: 1.3; }
.hl { color: var(--hl); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); margin-top: 18px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li {
  padding: 6px 14px; border-radius: 999px;
  background: var(--chip-bg); border: 1px solid var(--line);
  font-size: .88rem; color: var(--muted);
}
.byline { margin-top: 20px; font-size: .95rem; color: var(--muted); }
.byline strong { color: var(--text); }
.hero-video {
  aspect-ratio: 16 / 9; width: 100%; padding: 0; border: 0;
  font: inherit; color: inherit; cursor: pointer;
}
.hero-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-video::after { background: linear-gradient(to top, rgba(11, 13, 18, .45), transparent 50%); }
.hero-video.playing::after { display: none; }
.hero-tag {
  position: absolute; z-index: 1; inset-inline-start: 16px; bottom: 16px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); color: var(--dark);
  font-family: var(--font-head); font-weight: 600; font-size: .85rem;
}
.hero-video .play { width: 64px; height: 64px; inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
@media (hover: hover) { .hero-video:hover .play { transform: translate(-50%, -50%) scale(1.08); } }

@media (max-width: 479px) {
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; }
}


/* ===== ٢. الأنواع ===== */
.types { display: grid; gap: 20px; }
.type-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px); padding: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.type-card .shot { aspect-ratio: 16 / 10; border-radius: var(--radius); box-shadow: none; }
.type-body { padding: 18px 12px 12px; }
.type-num { font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--blue); }
.type-body h3 { font-size: 1.25rem; margin-top: 4px; }
.type-body h3 small { display: block; font-family: var(--font-body); font-size: .82rem; font-weight: 500; color: var(--muted); margin-top: 2px; }
.type-body p { margin-top: 10px; color: var(--muted); font-size: .97rem; }
.type-body .fits { font-size: .9rem; padding-top: 10px; border-top: 1px dashed var(--line); }
.type-body .fits strong { color: var(--text); font-weight: 600; }
.badge {
  position: absolute; top: 22px; inset-inline-end: 22px; z-index: 2;
  padding: 4px 12px; border-radius: 999px;
  background: var(--dark); color: #fff;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
}
.type-card.featured { border-color: var(--blue-soft); box-shadow: 0 0 0 4px var(--blue-mist); }

@media (min-width: 640px) { .types { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .types { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .type-card .shot { aspect-ratio: 4 / 5; }
}

/* ===== ٤. المنهج ===== */
.curriculum-grid { display: grid; gap: 8px; }
.curriculum-grid .section-head .btn { margin-top: 24px; }
.episodes { counter-reset: ep; display: grid; gap: 10px; }
.episodes li {
  counter-increment: ep;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; min-height: 64px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 500;
}
.episodes li::before {
  content: counter(ep, arabic-indic);
  display: grid; place-items: center; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--blue-mist); color: var(--blue);
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
}
@media (min-width: 768px) {
  .episodes { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(7, auto); grid-auto-flow: column; }
}
@media (min-width: 1100px) {
  .curriculum-grid { grid-template-columns: minmax(260px, .7fr) 2fr; gap: 56px; align-items: start; }
  .curriculum-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ===== مين رح يعلّمك ===== */
.instructor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.instructor-copy { min-width: 0; }
.instructor-photo {
  width: min(340px, 78vw); aspect-ratio: 3 / 4; border-radius: 28px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 70% 25%, var(--blob-1), transparent 60%),
    radial-gradient(circle at 25% 80%, var(--mint), transparent 55%),
    var(--blue-mist);
  font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: rgba(11, 13, 18, .35);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.instructor-photo img { width: 100%; height: 100%; object-fit: cover; }
.instructor-copy h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.instructor-copy .role { color: var(--blue); font-weight: 600; margin-top: 6px; }
.instructor-copy .bio { color: var(--muted); margin-top: 16px; max-width: 36em; font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 28px; max-width: 640px; }
.stats li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
}
.stats strong { font-family: var(--font-head); font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.2; color: var(--text); }
.stats span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
@media (min-width: 768px) {
  .instructor { grid-template-columns: auto minmax(0, 1fr); gap: 56px; }
}

/* ===== ٥. السعر ===== */
.price-card {
  max-width: 560px; margin-inline: auto; text-align: center;
  padding: clamp(28px, 5vw, 48px);
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 32px;
  box-shadow: var(--shadow);
}
.price-card h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.price { display: flex; align-items: baseline; justify-content: center; gap: 16px; margin-top: 18px; direction: ltr; }
.price-new { font-family: var(--font-head); font-weight: 700; font-size: clamp(3.4rem, 10vw, 4.8rem); line-height: 1; color: var(--text); }
.price-old { font-family: var(--font-head); font-size: clamp(1.4rem, 4vw, 1.8rem); color: var(--muted); text-decoration-thickness: 2px; text-decoration-color: #d0473e; }
.urgency {
  display: inline-block; margin-top: 16px;
  padding: 6px 16px; border-radius: 999px;
  background: var(--urgency-bg); color: var(--urgency-fg); border: 1px solid var(--urgency-line);
  font-weight: 600; font-size: .95rem;
}
.includes { text-align: start; margin: 28px 0; display: grid; gap: 12px; }
.includes li { position: relative; padding-inline-start: 32px; }
.includes li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .35em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232f5fcf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.note { margin-top: 14px; font-size: .9rem; color: var(--muted); }

/* ===== ٦. الدفع ===== */
.pay-groups { display: grid; gap: 16px; max-width: 880px; margin-inline: auto; }
.pay-group { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pay-group h3 { font-size: 1.05rem; margin-bottom: 14px; }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-list li {
  padding: 8px 16px; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid var(--line);
  font-weight: 600; font-size: .95rem;
}
.pay-note { max-width: 640px; margin: 24px auto 0; text-align: center; color: var(--muted); }
@media (min-width: 768px) { .pay-groups { grid-template-columns: 1fr 1fr; } }

/* ===== ٧. الأسئلة ===== */
.faq-wrap { display: grid; gap: 8px; }
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--blue-soft); box-shadow: 0 0 0 3px var(--blue-mist); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%230b0d12' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
:root[data-theme="dark"] .faq summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%23eef1f6' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.faq details p { padding: 0 20px 20px; color: var(--muted); }
@media (min-width: 1100px) {
  .faq-wrap { grid-template-columns: minmax(260px, .7fr) 2fr; gap: 56px; align-items: start; }
  .faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ===== ٨. الفورم ===== */
.register-grid { display: grid; gap: 8px; }
.steps { counter-reset: st; display: grid; gap: 10px; margin-top: 24px; }
.steps li { counter-increment: st; display: flex; align-items: center; gap: 12px; font-weight: 500; }
.steps li::before {
  content: counter(st, arabic-indic);
  display: grid; place-items: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--btn-bg); color: var(--btn-fg); font-size: .85rem; font-family: var(--font-head);
}
.form-card {
  padding: clamp(22px, 4vw, 40px);
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .95rem; }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; font-size: 16px; color: var(--text);
  background-color: var(--input-bg); border: 1px solid var(--input-line); border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field input[dir="ltr"] { text-align: left; }
.field input::placeholder { color: var(--placeholder); }
.field select {
  padding-inline-end: 44px;
  background: var(--input-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%238a93a4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left 16px center / 18px no-repeat;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-mist); }
.err { display: none; color: var(--err); font-size: .85rem; margin-top: 6px; }
.field.invalid input, .field.invalid select { border-color: #e0786d; }
.field.invalid .err { display: block; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-error { margin-top: 12px; color: var(--err); font-size: .92rem; text-align: center; }
button[disabled] { opacity: .65; cursor: progress; }
.success { text-align: center; padding: 32px 8px; }
.success:focus { outline: none; }
.success-title { font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; }
.success p:last-child { color: var(--muted); margin-top: 8px; font-size: 1.1rem; }
@media (min-width: 1024px) {
  .register-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
}

/* ===== الفوتر ===== */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line);
  background: var(--chip-bg); color: var(--text);
  cursor: pointer; transition: border-color .2s ease;
}
.theme-toggle:hover { border-color: var(--blue-soft); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.social { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); }
.social a:hover { color: var(--text); }
.text-link { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.copy { color: var(--muted); font-size: .9rem; }

/* ===== زر التسجيل الثابت (موبايل) ===== */
.sticky-cta {
  position: fixed; z-index: 55; inset-inline: 12px; bottom: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 8px; padding-inline-start: 18px;
  background: var(--glass-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(16, 24, 40, .25);
  transform: translateY(150%); transition: transform .3s ease;
}
.sticky-cta.show { transform: none; }
.sticky-price { font-family: var(--font-head); direction: ltr; }
.sticky-price strong { font-size: 1.25rem; }
.sticky-price del { color: var(--muted); font-size: .9rem; margin-inline-start: 4px; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }
@media (max-width: 1023px) { .site-footer { padding-bottom: 104px; } }

/* ===== أنيميشن خفيف ===== */
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4%, 3%) scale(1.06); }
}
.blob-hero { animation: blob-float 16s ease-in-out infinite; }
.blob-form, .blob-price { animation: blob-float 20s ease-in-out infinite reverse; }
@keyframes play-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6), 0 6px 20px rgba(0, 0, 0, .18); }
  100% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0), 0 6px 20px rgba(0, 0, 0, .18); }
}
.hero-video .play { animation: play-pulse 2.2s ease-out infinite; }
@media (hover: hover) {
  .btn-dark:hover { transform: translateY(-2px); }
  .type-card { transition: transform .3s ease, box-shadow .3s ease; }
  .type-card:hover, .js .type-card.reveal.in:hover { transform: translateY(-4px); box-shadow: var(--shadow); transition-delay: 0s; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .hero-video .play { animation: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
