/* 7Click — أنماط صفحات المحتوى الثابتة القابلة للزحف.
   مشتركة بين كل الصفحات تحت public/، وبهوية التطبيق نفسها:
   الأرضية #0A1224 وتدرّج أزرق→سماوي→زمردي وخط IBM Plex Sans Arabic. */

:root {
  --ground: #0A1224;
  --ground-2: #0E1A30;
  --surface: #121F38;
  --rule: #23324E;
  --ink: #E8F0FB;
  --ink-2: #B9C9E0;
  --muted: #8598B5;
  --blue: #60A5FA;
  --cyan: #22D3EE;
  --emerald: #34D399;
  --grad: linear-gradient(90deg, #60A5FA, #22D3EE 50%, #34D399);
  --sans: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.95;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 820px; margin: 0 auto; padding: 0 22px; }

/* ── الترويسة ─────────────────────────────────── */
.site-head {
  border-bottom: 1px solid var(--rule);
  background: rgba(10, 18, 36, .9);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; display: block; }
.brand b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.brand span { font-size: 12.5px; color: var(--muted); display: block; line-height: 1.4; }
.cta-top {
  font-size: 14px; font-weight: 600; text-decoration: none; color: #061018;
  background: var(--grad); border-radius: 7px; padding: 9px 18px; white-space: nowrap;
}

/* ── المقال ───────────────────────────────────── */
article { padding: 44px 0 20px; }

.crumb { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.crumb a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); }
.crumb a:hover { color: var(--cyan); }

h1 {
  font-size: clamp(27px, 4.6vw, 40px); line-height: 1.4; font-weight: 700;
  margin: 0 0 18px; letter-spacing: -.02em; text-wrap: balance;
}
.lede { font-size: 19px; line-height: 1.9; color: var(--ink-2); margin: 0 0 38px; }

h2 {
  font-size: clamp(21px, 3vw, 26px); font-weight: 700; line-height: 1.5;
  margin: 52px 0 16px; letter-spacing: -.01em; padding-top: 14px;
  border-top: 1px solid var(--rule); text-wrap: balance;
}
h3 { font-size: 18.5px; font-weight: 600; margin: 32px 0 10px; color: var(--ink); }

p { margin: 0 0 20px; }
strong { color: #FFF; font-weight: 600; }

a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(34, 211, 238, .38); }
a:hover { border-bottom-color: var(--cyan); }
a:focus-visible, .cta-top:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

ul, ol { margin: 0 0 22px; padding-inline-start: 24px; }
li { margin-bottom: 11px; }
li::marker { color: var(--cyan); }

/* ── عناصر مميّزة ──────────────────────────────── */
.note {
  background: var(--surface); border: 1px solid var(--rule);
  border-inline-start: 3px solid var(--cyan);
  border-radius: 0 9px 9px 0; padding: 18px 22px; margin: 0 0 26px;
}
.note :last-child { margin-bottom: 0; }
.note strong { color: var(--cyan); }

.tbl-wrap { overflow-x: auto; margin: 0 0 28px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 15.5px; }
th, td { text-align: start; padding: 12px 15px; border-bottom: 1px solid var(--rule); line-height: 1.7; }
th { color: var(--ink); font-weight: 600; background: var(--ground-2); white-space: nowrap; }
td { color: var(--ink-2); }
tr:last-child td { border-bottom: none; }

/* ── الأسئلة الشائعة ──────────────────────────── */
.faq { margin: 0 0 30px; }
.faq details {
  border: 1px solid var(--rule); border-radius: 9px;
  padding: 0 20px; margin-bottom: 11px; background: var(--surface);
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16.5px; padding: 16px 0;
  list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 21px; font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--rule); }
.faq details > p { margin: 16px 0; color: var(--ink-2); font-size: 16px; }

/* ── دعوة الإجراء ─────────────────────────────── */
.cta {
  margin: 56px 0 0; padding: 32px; border-radius: 13px;
  background: linear-gradient(160deg, var(--surface), var(--ground-2));
  border: 1px solid var(--rule); text-align: center;
}
.cta h2 { border: none; margin: 0 0 12px; padding: 0; font-size: 23px; }
.cta p { color: var(--ink-2); margin: 0 0 24px; }
.cta a.btn {
  display: inline-block; background: var(--grad); color: #061018;
  font-weight: 700; font-size: 16px; padding: 13px 34px;
  border-radius: 9px; border: none; text-decoration: none;
}

/* ── التذييل ──────────────────────────────────── */
.site-foot {
  margin-top: 64px; border-top: 1px solid var(--rule);
  padding: 34px 0 52px; font-size: 14.5px; color: var(--muted);
}
.site-foot h3 { font-size: 14px; color: var(--ink); margin: 0 0 12px; font-weight: 600; }
.foot-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a { color: var(--ink-2); border-bottom: none; }
.foot-grid a:hover { color: var(--cyan); }
.foot-legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13px; }

@media (max-width: 600px) {
  body { font-size: 16.5px; line-height: 1.9; }
  article { padding-top: 30px; }
  .cta { padding: 26px 20px; }
}
