:root {
  --bg: #0a1630;
  --bg2: #0f1f42;
  --card: #13264d;
  --card2: #1a3160;
  --border: #2b4a86;
  --text: #f4f6ff;
  --muted: #aab6d6;
  --primary: #7b2ff7;
  --primary2: #0066ff;
  --accent: #ff4757;
  --gold: #f5b944;
  --green: #2ed573;
  --radius: 14px;
  --font: 'Tajawal', 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 480px at 80% -8%, rgba(123,47,247,.12), transparent 60%),
    radial-gradient(900px 420px at 5% 0%, rgba(0,102,255,.12), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.hidden { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,22,48,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 20px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }

.brand-mark {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: transparent;
  border: none;
}

.brand-mark svg { display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 1.05rem; font-weight: 900; }
.brand-text small { font-size: .66rem; color: var(--muted); letter-spacing: 1px; }

.main-nav { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  transition: .16s;
}

.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }

.main-nav a.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary2)); }

.topbar-actions { margin-inline-start: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  transition: .16s;
}
.nav-toggle:hover { border-color: var(--primary); }
.nav-toggle-bar { width: 20px; height: 2.5px; border-radius: 3px; background: var(--text); transition: .2s; }
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.lang-wrap { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.lang-globe { font-size: 1rem; }

.lang-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  max-width: 170px;
}

.lang-btn:hover { border-color: var(--primary); }
.lang-btn option { background: #0f1f42; color: #fff; }

/* ---------- الشريط الإخباري العاجل ---------- */
.ticker-bar {
  display: flex;
  align-items: stretch;
  background: linear-gradient(90deg, #0056e0, #1f6dff);
  border-bottom: 1px solid rgba(255,255,255,.25);
  overflow: hidden;
  overflow-x: clip;
  max-width: 100vw;
}
.ticker-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #0043b8, #0b5ce8);
  color: #fff;
  font-weight: 900;
  font-size: .82rem;
  padding: 8px 18px;
  white-space: nowrap;
  letter-spacing: .5px;
}
.ticker-viewport { flex: 1; overflow: hidden; position: relative; min-width: 0; }
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-ltr 40s linear infinite;
  will-change: transform;
}
[dir="rtl"] .ticker-track { animation-name: ticker-rtl; }
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
  padding: 8px 26px;
  transition: .15s;
}
.ticker-item:hover { color: #fff; background: rgba(255,255,255,.14); }
.ticker-item::before {
  content: "◈";
  color: #cfe3ff;
  margin-inline-end: 12px;
  font-size: .6rem;
}
@keyframes ticker-ltr {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes ticker-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
@media (max-width: 640px) {
  .ticker-label { padding: 7px 12px; font-size: .74rem; }
  .ticker-item { padding: 7px 16px; font-size: .78rem; }
  .ticker-track { animation-duration: 30s; }
}

/* ---------- Hero ---------- */
.hero { padding: 78px 0 56px; text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(46,213,115,.1);
  border: 1px solid rgba(46,213,115,.35);
  color: var(--green);
  font-size: .85rem; font-weight: 700;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }

@keyframes pulse { 50% { opacity: .3; } }

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit;
  font-size: .95rem; font-weight: 800;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: .18s;
}

.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; box-shadow: 0 6px 24px rgba(123,47,247,.35); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); }

.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: #cbb9ff; }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: .95rem;
  cursor: pointer;
}

.icon-btn:hover { border-color: var(--primary); }

/* ---------- Sections ---------- */
.page { padding-bottom: 60px; }

.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900; margin-bottom: 8px; }
.page-head p { color: var(--muted); }

h1, h2, h3, h4 { color: #ffffff; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 44px 0 20px; flex-wrap: wrap;
}

.section-head h2 { font-size: 1.5rem; font-weight: 800; }

.eyebrow {
  display: block;
  color: var(--primary);
  font-size: .8rem; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-sub { color: var(--muted); font-size: .95rem; }

.link-more { color: var(--primary); text-decoration: none; font-weight: 700; font-size: .9rem; }
.link-more:hover { color: var(--accent); }

/* ---------- News grid / cards ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.card {
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: var(--text);
  transition: .2s; position: relative; overflow: hidden;
  cursor: pointer;
}

.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: .2s;
}

.card:hover { transform: translateY(-4px); border-color: rgba(123,47,247,.55); box-shadow: 0 16px 36px rgba(0,0,0,.45); }
.card:hover::before { opacity: 1; }

.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.tag { font-size: .7rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.tag-featured { background: rgba(245,185,68,.12); color: var(--gold); border: 1px solid rgba(245,185,68,.35); }
.tag-urgent { background: rgba(255,71,87,.12); color: var(--accent); border: 1px solid rgba(255,71,87,.35); }
.tag-verified { background: rgba(46,213,115,.12); color: var(--green); border: 1px solid rgba(46,213,115,.35); }
.tag-cat { background: rgba(123,47,247,.12); color: #b7a4ff; border: 1px solid rgba(123,47,247,.35); }

.card h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover h3 { color: #d5c7ff; }

.card-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .78rem; border-top: 1px solid var(--border); padding-top: 10px; }
.card-source { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }

.card-actions { display: flex; gap: 8px; margin-top: 4px; align-items: center; }
.card-actions .icon-btn { width: 32px; height: 32px; font-size: .8rem; }
.card-share {
  margin-inline-start: auto;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: .8rem;
  cursor: pointer;
  transition: .16s;
}
.card-share:hover { border-color: var(--primary); }
.article-share-btn { margin-inline-start: auto; }
.article-actions-row { display: flex; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-direction: column; gap: 14px; margin: 26px 0 22px; }

.search-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 18px;
  border-radius: 12px;
  outline: none;
}

.search-input:focus { border-color: var(--primary); }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip-sep { width: 1px; background: var(--border); margin: 0 4px; }

.chip {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: .85rem; font-weight: 700;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: .16s;
}

.chip:hover { border-color: var(--primary); color: var(--text); }
.chip.active { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; border-color: transparent; }

/* ---------- ترقيم الصفحات ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 26px 0 6px; }
.pager-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: .9rem; font-weight: 700;
  min-width: 38px; height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: .16s;
}
.pager-btn:hover { border-color: var(--primary); color: var(--text); }
.pager-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; border-color: transparent; }
.pager-dots { color: var(--muted); padding: 0 2px; }

/* ---------- CTA strip ---------- */
.cta-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 50px 0 10px; }

.cta-card {
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none; color: var(--text);
  transition: .2s;
}

.cta-card:hover { transform: translateY(-4px); border-color: rgba(123,47,247,.5); }
.cta-card.c2:hover { border-color: rgba(245,185,68,.5); }
.cta-card.c3:hover { border-color: rgba(255,71,87,.5); }

.cta-ic { font-size: 1.8rem; }
.cta-card h3 { margin: 8px 0 4px; font-size: 1.1rem; }
.cta-card p { color: var(--muted); font-size: .87rem; }

/* ---------- Courses ---------- */
.course-card {
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 16px;
}

.course-card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.course-card-link:hover { opacity: .92; }
.course-card-link:hover .course-title { color: var(--primary); }

.course-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.course-title { font-size: 1.15rem; font-weight: 800; }
.course-provider { color: var(--muted); font-size: .85rem; }

.course-meta { display: flex; gap: 18px; color: var(--muted); font-size: .87rem; flex-wrap: wrap; }
.course-meta b { color: var(--text); }

.course-actions { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }

.course-price { font-weight: 900; color: var(--gold); font-size: 1.05rem; }

/* ---------- Lessons ---------- */
.lesson-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: .16s;
}

.lesson-row:hover { border-color: var(--primary); }
.lesson-num {
  width: 38px; height: 38px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border-radius: 10px; font-weight: 900;
}
.lesson-info { flex: 1; }
.lesson-info h3 { font-size: 1rem; }
.lesson-info p { color: var(--muted); font-size: .85rem; }
.lesson-tag { font-size: .75rem; font-weight: 800; color: var(--green); background: rgba(46,213,115,.1); padding: 4px 12px; border-radius: 999px; }
.lesson-tag-lv { color: var(--primary); background: rgba(255,87,34,.1); margin-inline-start: 6px; }

.offer-row { background: linear-gradient(180deg, #1c1424, var(--card2)); border-color: rgba(245,185,68,.25); }
.offer-row.is-ours { border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(245,185,68,.12); }
.offer-row.is-ours .lesson-num { background: linear-gradient(135deg, var(--gold), #ffa800); color: #1a1a1a; }
.offer-row-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
.offer-prices { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: 10px; vertical-align: middle; }
.offer-row .deal-cta { white-space: nowrap; }
.offer-row .discount-count { margin: 0; }
.offer-row.is-ours .deal-cta { background: var(--gold); color: #1a1a1a; }

/* ---------- Offers (العروض) ---------- */
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

.deal-card {
  background: linear-gradient(180deg, #1c1424, var(--card2));
  border: 1px solid rgba(245,185,68,.25);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.deal-card:hover { transform: translateY(-4px); border-color: rgba(245,185,68,.55); }
.deal-card.is-ours { border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(245,185,68,.12); }

.deal-head { display: flex; align-items: center; gap: 12px; }
.deal-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; }
.deal-head-txt { flex: 1; min-width: 0; }
.deal-head-txt h3 { font-size: 1.05rem; font-weight: 800; margin: 0; }
.deal-provider { color: var(--muted); font-size: .78rem; margin-top: 2px; }

.deal-desc { color: var(--muted); font-size: .86rem; line-height: 1.6; margin: 0; }

.deal-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.deal-features li { font-size: .84rem; padding-inline-start: 18px; position: relative; color: var(--text); line-height: 1.5; }
.deal-features li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--gold); font-weight: 900; }

.deal-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.deal-foot .prices { justify-content: space-between; flex-wrap: wrap; }
.deal-period { font-weight: 400; color: var(--muted); font-size: .75rem; }
.deal-cta { width: 100%; text-align: center; }
.deal-card.is-ours .deal-cta { background: var(--gold); color: #1a1a1a; }

.discount-count { color: var(--muted); font-size: .85rem; margin: 0; }
.prices { display: flex; align-items: center; gap: 12px; }
.old-price { color: var(--muted); text-decoration: line-through; }
.new-price { font-size: 1.3rem; font-weight: 900; color: var(--gold); }
.discount-tag { background: rgba(255,71,87,.15); color: var(--accent); font-weight: 900; padding: 4px 12px; border-radius: 999px; font-size: .8rem; flex: none; }

.countdown { font-weight: 800; color: var(--accent); font-size: .95rem; }

.offers-window {
  margin: 44px 0 0;
  padding: 22px;
  border: 1px solid rgba(245,185,68,.3);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(ellipse at top, rgba(245,185,68,.09), transparent 60%),
    linear-gradient(180deg, #1a1426, var(--card));
  box-shadow: 0 14px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
}
.offers-window-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.offers-window-head h2 { font-size: 1.4rem; font-weight: 800; }
.offers-window .eyebrow { color: var(--gold); }

/* ---------- Membership / plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-bottom: 30px; }

.member-activate {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, rgba(139,92,246,.14), rgba(255,71,87,.1));
  border: 1px solid rgba(139,92,246,.35);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.member-activate-ic { font-size: 2rem; }
.member-activate-txt { flex: 1; min-width: 220px; }
.member-activate-txt h3 { margin: 0 0 4px; }
.member-activate-txt p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }

.plan {
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}

.plan.featured { border-color: var(--primary); box-shadow: 0 0 30px rgba(123,47,247,.2); }

.plan-badge {
  position: absolute; top: -12px; right: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #fff; font-size: .72rem; font-weight: 800;
  padding: 4px 14px; border-radius: 999px;
}

.plan-name { font-size: 1.2rem; font-weight: 900; }
.plan-price { font-size: 1.9rem; font-weight: 900; }
.plan-price small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.plan-old { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .9rem; }
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 900; }
.plan-now {
  margin-top: auto;
  text-align: center;
  background: rgba(46,213,115,.12);
  border: 1px solid rgba(46,213,115,.35);
  color: var(--green);
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .9rem;
}

/* ---------- Pay panel ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--muted); }
.field input, .field textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  padding: 11px 14px;
  border-radius: 10px;
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--primary); }
.field textarea { resize: vertical; }

/* ---------- About ---------- */
.about-body { display: flex; flex-direction: column; gap: 30px; }

.about-story { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.about-story > div { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.about-story p { color: var(--muted); font-size: .95rem; }

.team h2 { margin-bottom: 16px; }
.team-card {
  display: flex; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; max-width: 460px;
}
.team-avatar {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900;
}
.team-role { color: var(--primary); font-weight: 700; }
.team-loc { color: var(--muted); font-size: .85rem; }

.team-join { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-top: 16px; }
.team-join p { color: var(--muted); margin: 6px 0 14px; }

.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat-card b { display: block; font-size: 1.7rem; font-weight: 900; color: var(--primary); }
.stat-card span { color: var(--muted); font-size: .85rem; }

/* ---------- Privacy ---------- */
.privacy-body { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.privacy-body h3 { color: var(--primary); margin-bottom: 6px; }
.privacy-body p { color: var(--muted); font-size: .95rem; }

/* ---------- Sponsors / demo ads strip ---------- */
.ads-strip {
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: -8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.ads-strip-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ads-strip-tag {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #fff; font-size: .68rem; font-weight: 900;
  padding: 3px 12px; border-radius: 999px; letter-spacing: .5px;
}
.ads-strip-note { color: var(--muted); font-size: .8rem; flex: 1; }
.ads-strip-booking { color: var(--primary); font-size: .8rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.ads-strip-booking:hover { text-decoration: underline; }
.ads-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.demo-ad {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 14px; text-decoration: none;
  transition: .16s; position: relative;
}
.demo-ad:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(123,47,247,.15); }
.demo-ad-logo { min-width: 46px; height: 46px; max-width: 180px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; padding: 0 10px; }
.demo-ad-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.demo-ad-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.demo-ad-txt strong { color: var(--text); font-size: .95rem; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-ad-txt small { color: var(--muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-ad-go { margin-inline-start: auto; color: var(--muted); font-size: 1rem; flex-shrink: 0; }
.demo-ad:hover .demo-ad-go { color: var(--primary); }
@media (max-width: 760px) {
  .ads-strip-grid { display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .ads-strip-grid::-webkit-scrollbar { height: 4px; }
  .ads-strip-head { flex-wrap: wrap; }
  .demo-ad { flex: 0 0 auto; width: 78%; min-width: 230px; scroll-snap-align: start; gap: 10px; padding: 10px 12px; }
  .demo-ad-logo { min-width: 40px; height: 40px; max-width: 120px; }
  .demo-ad-txt strong { font-size: .88rem; }
  .demo-ad-txt small { font-size: .72rem; }
}

@media (min-width: 761px) and (max-width: 920px) {
  .ads-strip-grid { grid-template-columns: 1fr; }
}

/* ---------- Spread the link ---------- */
.share-body { max-width: 620px; display: flex; flex-direction: column; gap: 18px; }
.share-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.share-box-label { display: block; font-weight: 800; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.share-link-row { display: flex; gap: 10px; }
.share-link-row input {
  flex: 1; min-width: 0;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); padding: 12px 14px; font-family: inherit;
  direction: ltr; text-align: center; font-weight: 700;
}
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.share-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; border-radius: 12px; font-weight: 800; color: #fff;
  text-decoration: none; transition: .16s;
}
.share-btn:hover { transform: translateY(-2px); opacity: .9; color: #fff; }
.swa { background: linear-gradient(135deg, #25d366, #128c7e); }
.stg { background: linear-gradient(135deg, #2aabee, #229ed9); }
.sx { background: linear-gradient(135deg, #1d1d1f, #333); }
.sfb { background: linear-gradient(135deg, #1877f2, #145dbf); }
.share-ways { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.share-ways h4 { margin-bottom: 10px; }
.share-ways ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.share-ways li { color: var(--muted); font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; }
.share-ways li::before { content: '→'; color: var(--primary); font-weight: 900; }
.share-note { color: var(--muted); font-size: .82rem; margin-top: 10px; }

/* ---------- Advertise ---------- */
.ad-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 26px; }
.ad-opt { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.ad-opt h3 { font-size: 1.05rem; margin-bottom: 6px; }
.ad-opt p { color: var(--muted); font-size: .88rem; }
.ad-opt .ad-price { color: var(--gold); font-weight: 900; margin-top: 8px; }

.ad-form { max-width: 560px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.ad-form h3 { margin-bottom: 16px; }
.ad-form form { display: flex; flex-direction: column; gap: 14px; }

.ad-ok { text-align: center; padding: 30px 0; }
.ad-ok h3 { color: var(--green); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}

.modal.open { display: flex; }

.modal:not(.hidden) { display: flex; }

.modal-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 700px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  padding: 28px;
  position: relative;
}

.modal-close {
  position: absolute; top: 14px; left: 14px;
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg2); color: var(--text);
  font-size: .9rem; cursor: pointer;
}

.article-body h1 { font-size: 1.4rem; font-weight: 900; margin: 10px 0; line-height: 1.5; }
.article-meta { display: flex; gap: 16px; color: var(--muted); font-size: .85rem; flex-wrap: wrap; margin-bottom: 16px; }
.article-link { display: inline-block; margin-top: 18px; }

.comments { margin-top: 26px; border-top: 1px solid var(--border); padding-top: 18px; }
.comments h3 { margin-bottom: 14px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.comment-item { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.comment-item b { color: var(--primary); }
.comment-item p { color: var(--text); font-size: .92rem; margin-top: 2px; }
.comment-item small { color: var(--muted); }

/* ---------- Newsletter / footer ---------- */
.newsletter-form { display: flex; gap: 8px; margin-top: 10px; }
.newsletter-form input {
  flex: 1; background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; padding: 10px 14px;
  border-radius: 10px; outline: none; font-size: .88rem;
}
.newsletter-msg { color: var(--green); font-size: .85rem; margin-top: 8px; }

footer { border-top: 1px solid var(--border); background: var(--bg2); margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; padding: 40px 20px 30px; max-width: 1180px; margin: 0 auto; }
.footer-grid h4 { margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--primary); }
.footer-grid p { color: var(--muted); font-size: .88rem; }
.footer-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-btns a {
  display: inline-block;
  padding: 8px 14px;
  margin: 0;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  transition: .16s;
}
.footer-btns a:hover { color: #fff; border-color: var(--primary); background: linear-gradient(135deg, var(--primary), var(--primary2)); }
.footer-org { margin-top: 10px; color: var(--gold) !important; font-size: .83rem !important; }
.footer-afkar a { color: var(--gold) !important; text-decoration: underline; font-weight: 800; display: inline; }
.footer-afkar a:hover { color: var(--primary) !important; }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; text-align: center; color: var(--muted); font-size: .8rem; }

/* ---------- Misc ---------- */
.grid-empty { text-align: center; padding: 60px 0; color: var(--muted); }
.empty-ic { font-size: 3rem; margin-bottom: 10px; }

#toast {
  position: fixed; bottom: 24px; right: 50%;
  transform: translate(50%, 20px);
  background: var(--card2); border: 1px solid var(--border);
  color: var(--text); padding: 13px 24px; border-radius: 12px;
  opacity: 0; pointer-events: none; transition: .3s; z-index: 100;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
#toast.show { opacity: 1; transform: translate(50%, 0); }

.skeleton { background: linear-gradient(180deg, var(--card), var(--card2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; min-height: 180px; display: flex; flex-direction: column; gap: 10px; }
.sk-line { height: 13px; border-radius: 8px; background: linear-gradient(90deg, var(--card2), #1e1e2c, var(--card2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sk-line.w60 { width: 60%; }
.sk-line.w100 { width: 100%; }
.sk-line.h28 { height: 28px; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 760px) {
  .topbar-inner { flex-wrap: nowrap; gap: 10px; }
  .brand-text small { display: none; }
  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow-x: auto;
    flex: 1;
  }
  .main-nav a { padding: 8px 9px; font-size: .88rem; border-radius: 10px; white-space: nowrap; }
  .nav-toggle { display: none; }
  .topbar-actions { margin-inline-start: 0; }
  .hero { padding: 50px 0 36px; }
  .share-link-row { flex-direction: column; }
  .news-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card { padding: 14px; }
  .card h3 { font-size: .92rem; -webkit-line-clamp: 3; }
  .course-meta { flex-wrap: wrap; }
  .chips-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; max-width: 100%; min-width: 0; }
  .chip { flex-shrink: 0; }
  .deal-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .plans { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
  .section-head { margin: 30px 0 16px; }
  .section-head h2 { font-size: 1.25rem; }
  .page-head { padding: 26px 0 6px; }
  .page-head h1 { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; padding: 28px 20px 22px; }
  .lesson-thumb { width: 52px; height: 52px; margin-inline-end: 8px; }
  .lesson-row { gap: 8px; padding: 10px 12px; }
  .offer-row-logo { width: 40px; height: 40px; }
  .lesson-info h3 { font-size: .9rem; }
  .lesson-info p { font-size: .78rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .container { padding: 0 14px; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .share-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 12px; gap: 8px; }
  .card h3 { font-size: .85rem; -webkit-line-clamp: 3; line-height: 1.5; }
  .card-meta { font-size: .72rem; flex-direction: column; align-items: flex-start; gap: 4px; }
  .card-source { max-width: 100%; }
  .course-meta { font-size: .75rem; gap: 6px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark svg { width: 34px; height: 34px; }
  .brand-text strong { font-size: .95rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: .95rem; }
  .cta-strip { grid-template-columns: 1fr; }
  .ad-options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .ticker-label { font-size: .7rem; padding: 6px 10px; }
  .ticker-item { font-size: .74rem; padding: 6px 12px; }
  .course-cover { height: 84px; }
  .course-title { font-size: .85rem; }
  .btn { padding: 10px 16px; font-size: .88rem; }
  .about-story { grid-template-columns: 1fr; }
  .demo-ad { gap: 8px; padding: 8px 10px; }
  .demo-ad-logo { min-width: 34px; height: 34px; max-width: 80px; padding: 0 6px; }
  .demo-ad-txt strong { font-size: .82rem; }
  .demo-ad-txt small { font-size: .68rem; }
  .ads-strip { padding: 12px; }
  .share-link-row { flex-direction: column; }
  .share-link-row input { width: 100%; }
  .offers-window { padding: 14px; margin-top: 34px; }
  .offers-window-head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 14px; }
  .main-nav a { padding: 7px 7px; font-size: .8rem; }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .container { padding: 0 24px; }
  .hero { padding: 60px 0 44px; }
  .main-nav a { padding: 8px 9px; font-size: .85rem; }
}

/* ---------- Admin / Publishing panel ---------- */
.gradient-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(123,47,247,.06), rgba(0,102,255,.03)), var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.02), 0 14px 40px rgba(0,0,0,.35);
}
.admin-card { max-width: 440px; margin: 0 auto; }
.admin-card h3 { margin-bottom: 16px; }
.admin-hint { color: var(--muted); font-size: .8rem; margin-top: 10px; line-height: 1.7; }

.admin-panel { max-width: 900px; margin: 0 auto; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-tab {
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
  padding: 9px 18px; border-radius: 999px; font-family: inherit; font-size: .88rem;
  cursor: pointer; transition: .2s;
}
.admin-tab.active { background: linear-gradient(90deg, var(--primary), var(--primary2)); color: #fff; border-color: transparent; }

.admin-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.admin-info { color: var(--muted); font-size: .85rem; }
.admin-form {
  border: 1px solid var(--border); background: var(--card2); border-radius: var(--radius);
  padding: 20px; margin-bottom: 18px;
}
.admin-form h3 { margin-bottom: 14px; }
.admin-form .field { margin-bottom: 12px; }
.admin-form input, .admin-form textarea, .admin-form select {
  width: 100%; background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  padding: 10px 14px; border-radius: 10px; outline: none; font-family: inherit; font-size: .9rem;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { border-color: var(--primary); }
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px;
}
.admin-item-head { flex: 1; min-width: 0; }
.admin-item-head h4 { font-size: .95rem; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-item-head p { color: var(--muted); font-size: .8rem; }
.admin-del { background: transparent; border: 1px solid rgba(255,71,87,.4); color: var(--accent); border-radius: 10px; padding: 6px 14px; cursor: pointer; font-family: inherit; font-size: .8rem; }
.admin-del:hover { background: rgba(255,71,87,.12); }
.admin-edit { background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 6px 14px; cursor: pointer; font-family: inherit; font-size: .8rem; }
.admin-edit:hover { border-color: var(--primary); color: var(--primary); }
.admin-transfer { display: flex; flex-direction: column; gap: 16px; }
.admin-transfer .gradient-card h3 { margin-bottom: 10px; }
.admin-transfer .gradient-card p { color: var(--muted); font-size: .88rem; margin-bottom: 6px; line-height: 1.8; }
.font-mono { font-family: 'IBM Plex Mono', Consolas, monospace !important; font-size: .82rem !important; }
.check-row { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: .9rem; margin: 8px 0 14px; cursor: pointer; }
.check-row input { width: auto !important; accent-color: var(--primary); }
.footer-admin { margin-inline-start: 14px; }
.footer-admin a { color: var(--muted); text-decoration: underline; font-size: .78rem; }
.footer-admin a:hover { color: var(--primary); }


/* ---------- �������� �������� ---------- */
.src-logo { display: inline-flex; align-items: center; vertical-align: middle; margin-inline-end: 6px; }
.logo-xxs { width: 18px; height: 18px; border-radius: 5px; display: block; object-fit: cover; }
.logo-sm { width: 24px; height: 24px; border-radius: 6px; display: inline-block; object-fit: cover; vertical-align: middle; margin-inline-end: 6px; }
.logo-md { width: 34px; height: 34px; border-radius: 8px; display: inline-block; object-fit: cover; vertical-align: middle; }
.course-card { overflow: hidden; }
.course-cover { width: 100%; height: 108px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-top { padding: 12px 14px 0; }
.course-provider, .course-card p, .course-meta, .course-actions { padding-left: 14px; padding-right: 14px; }
.lesson-row { align-items: center; }
.lesson-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; margin-inline-end: 12px; }
.cat-banner { margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.cat-banner img { width: 100%; height: 150px; object-fit: cover; display: block; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }

/* ---------- ���������� (���� ����) ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { background: var(--card2); border: 1px solid var(--border); border-radius: 14px; padding: 16px; text-align: center; }
.stat-card .stat-ic { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.stat-card b { font-size: 1.5rem; display: block; }
.stat-card small { color: var(--muted); font-size: .78rem; }
.status-on { color: var(--green); }
.status-off { color: var(--accent); }
.danger-tab { border-color: rgba(255,71,87,.45) !important; color: var(--accent) !important; }
.admin-tab.danger-tab:hover { background: rgba(255,71,87,.12) !important; }

/* ---------- ������ ������ ---------- */
.nl-preview-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.nl-preview-card h3 { margin-bottom: 10px; color: var(--primary); }
.nl-preview-card small { color: var(--muted); }

/* ---------- ����� ������� ---------- */
.ad-banner { position: relative; z-index: 40; background: var(--bg2); border-bottom: 1px solid var(--border); }
.ad-banner-inner { display: flex; align-items: center; gap: 12px; padding: 10px 20px; max-width: 1180px; margin: 0 auto; }
.ad-pos-top .ad-banner-text, .ad-pos-bottom .ad-banner-text { order: 2; }
.ad-banner-img { font-size: 1.4rem; }
.ad-banner-text { display: flex; align-items: baseline; gap: 10px; flex: 1; text-decoration: none; color: var(--text); min-width: 0; }
.ad-banner-text strong { color: var(--primary); white-space: nowrap; }
.ad-banner-text span { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-banner-tag { font-size: .68rem; color: var(--muted); border: 1px solid var(--border); border-radius: 20px; padding: 2px 8px; }
.ad-banner-close { background: transparent; border: none; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 4px 8px; }
.ad-banner-close:hover { color: var(--accent); }

/* ---------- ����� ������� ---------- */
.ad-pop { text-align: center; padding: 6px 0; }
.ad-pop-img { max-width: 100%; max-height: 200px; border-radius: 12px; margin: 0 auto 12px; object-fit: cover; display: block; }
.ad-pop h3 { margin-bottom: 8px; }
.ad-pop p { color: var(--muted); margin-bottom: 14px; }
.ad-pop .btn { margin: 4px; }
.ad-pop-card { max-width: 420px !important; }

/* ---------- نافذة فيديو الدروس ---------- */
.video-modal-card { max-width: 860px !important; text-align: center; }
.video-modal-card h3 { margin: 0 40px 14px; font-weight: 900; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: #000;
  border: 1px solid var(--border);
}
.video-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-actions { margin-top: 12px; text-align: center; }
.video-hint { color: var(--muted); font-size: .8rem; margin-top: 10px; }

/* ---------- نافذة الموقع الخارجي ---------- */
.site-modal-card { max-width: 460px !important; text-align: center; }
.site-modal-card h3 { margin: 0 40px 12px; font-weight: 900; }
.site-modal-desc { color: var(--muted); font-size: .9rem; margin-bottom: 18px; line-height: 1.7; }
.site-modal-btn { display: inline-block; text-decoration: none; }

/* ---------- صفحة الدرس المفرد ---------- */
.lesson-detail { max-width: 860px; margin: 0 auto; }
.lesson-detail .page-head { padding: 0 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.lesson-detail-title { font-size: 1.6rem; font-weight: 900; line-height: 1.35; margin: 10px 0 6px; }
.lesson-detail-meta { color: var(--muted); font-size: .95rem; }
.lesson-detail .lesson-tag { margin-inline-end: 6px; }
.lesson-video {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: #000;
  border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  margin-bottom: 18px;
}
.lesson-detail-body { font-size: 1rem; line-height: 1.9; color: var(--text); }
.lesson-detail-watch { margin-top: 12px; }
.lesson-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; }
.lesson-nav-all { width: 100%; margin: 14px 0 0; }
.lesson-thumb-link { display: inline-flex; flex-shrink: 0; }
@media (max-width: 600px) {
  .lesson-detail-title { font-size: 1.3rem; }
  .lesson-nav { gap: 8px; }
}


/* ---------- ����� �������� ---------- */
.nl-pop-card { max-width: 420px !important; }
.nl-pop-body { text-align: center; }
.nl-pop-body h3 { margin-bottom: 6px; }
.nl-pop-body p { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.nl-pop-body .newsletter-form { flex-direction: column; }
.nl-pop-body .newsletter-form input { width: 100%; }
.danger-hint { color: var(--accent); }
