/* =====================================================================
   Ad Library Filter — تصميم الموقع
   الألوان مأخوذة من الإضافة نفسها (أيقونتها ولوحتها):
     أخضر مزرق #0f766e (الأيقونة والأزرار) · داكن #0b5a52 · فاتح #e3f1ee
     نص #1c2430 / #3b4656 / #6b7686 · حدود #e3e8ee / #cfd6df · سطح #f3f6f9
     كهرماني #fff3dd / #7a4a00 (شارة «قريبًا» في اللوحة) · نفس الخط ونفس الاستدارات
   ===================================================================== */
:root {
  --teal: #0f766e;
  --teal-dark: #0b5a52;
  --teal-tint: #e3f1ee;
  --ink: #1c2430;
  --ink-2: #3b4656;
  --muted: #6b7686;
  --line: #e3e8ee;
  --line-2: #cfd6df;
  --surface: #f3f6f9;
  --amber-bg: #fff3dd;
  --amber-ink: #7a4a00;
  --r: 10px;
  --r-sm: 6px;
  --shadow: 0 6px 24px rgba(20, 30, 45, .18);
  --shadow-sm: 0 1px 3px rgba(20, 30, 45, .08);
  --font: "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, -apple-system, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.7 var(--font); color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--teal); }
svg { display: block; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--teal); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 10px; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
.fallback { padding: 48px 0; text-align: center; }

/* ---------- الأزرار (نفس أسلوب أزرار لوحة الإضافة) ---------- */
.btn {
  font: inherit; font-weight: 600; line-height: 1.3; padding: 12px 22px; border-radius: var(--r-sm);
  border: 1px solid var(--teal); background: #fff; color: var(--teal); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, color .15s, box-shadow .15s;
}
.btn:hover { background: var(--teal-tint); }
.btn.primary { background: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn.light { background: #fff; color: var(--teal-dark); border-color: #fff; }
.btn.light:hover { background: var(--teal-tint); }
.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn.block { width: 100%; }

/* ---------- الترويسة ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav-links { display: flex; gap: 2px; margin-inline-start: 12px; }
.nav-links a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { background: var(--teal-tint); color: var(--teal-dark); }
.spacer { flex: 1; }
.menu-btn { display: none; width: 40px; height: 40px; padding: 0; align-items: center; justify-content: center; }

/* ---------- الواجهة الرئيسية (Hero) ---------- */
.hero { padding: 56px 0 8px; background: linear-gradient(180deg, var(--teal-tint) 0, #fff 560px); text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--teal-dark); font-weight: 600; font-size: 14px; }
.eyebrow .dots { display: flex; gap: 3px; }
.eyebrow .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.hero h1 { font-size: clamp(30px, 5.2vw, 54px); line-height: 1.25; letter-spacing: -.01em; margin: 18px auto 16px; max-width: 860px; }
.lead { font-size: clamp(16px, 2.1vw, 20px); color: var(--ink-2); max-width: 720px; margin-inline: auto; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.frame { margin: 44px auto 0; max-width: 1000px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; box-shadow: var(--shadow); overflow: hidden; text-align: start; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.frame-bar .d { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.frame-bar .d:nth-child(2) { opacity: .6; }
.frame-bar .d:nth-child(3) { opacity: .3; }
.addr { flex: 1; margin-inline-start: 10px; direction: ltr; text-align: start; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 14px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame img { width: 100%; }
.caption { margin: 12px auto 0; max-width: 700px; font-size: 13px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 36px 0 56px; text-align: start; }
.fact { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.fact b { display: block; line-height: 1.35; }
.fact span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.ico { flex: none; width: 44px; height: 44px; border-radius: var(--r); background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; }

/* ---------- الأقسام ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--surface); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.3; margin-bottom: 10px; }
.sec-head p { color: var(--ink-2); font-size: 17px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm); }
.num { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 15px; }

.panel-wrap { display: grid; grid-template-columns: minmax(0, 310px) minmax(0, 1fr); gap: 56px; align-items: center; }
.panel-shot { border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line-2); background: #fff; max-width: 310px; margin-inline: auto; width: 100%; }
.callouts { display: grid; gap: 14px; counter-reset: c; }
.callouts li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.callouts .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-dark); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.callouts b { display: block; line-height: 1.4; margin-bottom: 2px; }
.callouts span { color: var(--ink-2); font-size: 15px; }
.foot-note { margin-top: 16px; font-size: 14px; color: var(--ink-2); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--teal); box-shadow: 0 6px 18px rgba(15, 118, 110, .12); }
.card h3 { font-size: 19px; margin: 14px 0 6px; }
.card p { color: var(--ink-2); font-size: 15px; }

/* ---------- الفيديوهات ---------- */
.video { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--teal-dark); overflow: hidden; cursor: pointer; }
.thumb.off { cursor: default; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .p0 { object-position: 100% 0; }
.thumb .p1 { object-position: 50% 40%; }
.thumb .p2 { object-position: 0 100%; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 90, 82, .35), rgba(11, 90, 82, .7)); }
.play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.play i { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--teal); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.play svg { width: 26px; height: 26px; }
.thumb:not(.off):hover .play i { transform: scale(1.06); }
.soon { position: absolute; z-index: 2; top: 10px; inset-inline-start: 10px; background: var(--amber-bg); color: var(--amber-ink); font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.video iframe, .video video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.video .txt { padding: 16px 18px 18px; }
.video h3 { font-size: 17px; margin-bottom: 4px; }
.video p { color: var(--ink-2); font-size: 14px; }

/* ---------- أمثلة ---------- */
.scen { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.scen h3 { font-size: 18px; margin-bottom: 12px; }
.scen ol { display: grid; gap: 8px; margin-bottom: 16px; counter-reset: x; }
.scen li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.scen li::before { counter-increment: x; content: counter(x); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.res { margin-top: auto; background: var(--teal-tint); color: var(--teal-dark); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; font-weight: 600; }
.res small { display: block; font-weight: 700; opacity: .8; font-size: 12px; margin-bottom: 2px; }
.benefit-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 48px; align-items: center; margin-top: 56px; }
.benefit-wrap h3 { font-size: 24px; margin-bottom: 16px; }
.benefits { display: grid; gap: 12px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; }
.benefits .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; margin-top: 1px; }
.benefits .tick svg { width: 16px; height: 16px; }
.badge-shot { text-align: center; }
.badge-shot img { border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line-2); margin-inline: auto; width: 100%; max-width: 300px; }
.badge-shot p { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.sheet { margin-top: 56px; }
.sheet h3 { font-size: 22px; text-align: center; margin-bottom: 4px; }
.sheet > p { text-align: center; color: var(--ink-2); font-size: 15px; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 10px 11px; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: start; }
th { background: var(--teal-tint); color: var(--teal-dark); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.u { direction: ltr; unicode-bidi: plaintext; color: var(--ink-2); }
html[dir="rtl"] td.u { text-align: right; }

/* ---------- الأسعار ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; padding-top: 14px; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 26px 22px 22px; box-shadow: var(--shadow-sm); }
.plan h3 { font-size: 19px; }
.plan .dur { color: var(--ink-2); font-size: 15px; margin-bottom: 14px; }
.plan .price { font-size: 38px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.plan .price small { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.plan .sub { min-height: 46px; margin: 6px 0 14px; font-size: 14px; color: var(--ink-2); }
.plan .sub b { display: block; color: var(--teal-dark); }
.plan ul { display: grid; gap: 8px; margin-bottom: 20px; font-size: 14.5px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { flex: none; width: 18px; height: 18px; color: var(--teal); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.plan.best { background: var(--teal); color: #fff; border-color: var(--teal); box-shadow: 0 14px 34px rgba(15, 118, 110, .35); }
.plan.best .dur, .plan.best .sub { color: #e3f1ee; }
.plan.best .sub b { color: #fff; }
.plan.best li svg { color: #fff; }
.ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--amber-bg); color: var(--amber-ink); font-weight: 700; font-size: 13px; padding: 4px 14px; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow-sm); }
.pricing-note { text-align: center; margin-top: 28px; color: var(--ink-2); font-size: 15px; }

/* ---------- الأسئلة ---------- */
.faq { max-width: 800px; margin-inline: auto; }
details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
details[open] { border-color: var(--teal); }
summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary svg { flex: none; width: 20px; height: 20px; color: var(--teal); transition: transform .2s; }
details[open] summary svg { transform: rotate(180deg); }
details .ans { padding: 0 18px 18px; color: var(--ink-2); }

/* ---------- دعوة أخيرة + تذييل ---------- */
.cta-band { background: var(--teal); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.3; margin-bottom: 10px; }
.cta-band p { color: #e3f1ee; max-width: 600px; margin: 0 auto 24px; font-size: 17px; }
.site-footer { background: var(--ink); color: #cfd6df; padding: 48px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer h4 { margin: 0 0 12px; color: #fff; font-size: 15px; }
.site-footer a { color: #cfd6df; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li { margin-bottom: 8px; }
.site-footer .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.legal { border-top: 1px solid #3b4656; margin-top: 32px; padding-top: 20px; font-size: 13px; color: #aab4c0; }
.legal p + p { margin-top: 6px; }

.fab { position: fixed; inset-block-end: 18px; inset-inline-end: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow); }
.fab:hover { background: var(--teal-dark); }
.fab svg { width: 22px; height: 22px; }

/* ---------- الشاشات المتوسطة والصغيرة ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header.open .nav-links { display: flex; flex-direction: column; position: absolute; top: var(--header-h); inset-inline: 0; background: #fff; padding: 10px 20px 16px; border-bottom: 1px solid var(--line); margin: 0; box-shadow: 0 12px 24px rgba(20, 30, 45, .08); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .panel-wrap { grid-template-columns: 1fr; gap: 32px; }
  .benefit-wrap { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero { padding-top: 36px; }
  .facts, .steps, .grid3, .plans { grid-template-columns: 1fr; }
  .plan .sub { min-height: 0; }
  .nav-cta { display: none; }
  .fab span { display: none; }
  .fab { padding: 14px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* الحروف العربية متصلة: لا نضيف تباعدًا بين الأحرف */
html[dir="rtl"] h1, html[dir="rtl"] .plan .price { letter-spacing: 0; }
