/* وَزن · المركز القانوني — نفس ألوان التطبيق */
:root {
  --pri: #00A8FF; --sky: #38BDF8; --deep: #0077E6; --navy: #0A4FB8;
  --bg: #F3F8FE; --card: #FFFFFF; --ink: #0F1E33; --text: #334155; --muted: #64748B;
  --line: #E2E8F0; --soft: #E0F2FE; --chip: #F1F7FF; --shadow: 0 10px 30px rgba(0, 119, 230, .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070F1F; --card: #0F1B30; --ink: #F1F5F9; --text: #CBD5E1; --muted: #94A3B8;
    --line: #1E2D47; --soft: #0B2A4A; --chip: #11223C; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #070F1F; --card: #0F1B30; --ink: #F1F5F9; --text: #CBD5E1; --muted: #94A3B8;
  --line: #1E2D47; --soft: #0B2A4A; --chip: #11223C; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16.5px; line-height: 1.95; overflow-x: hidden;
}
a { color: var(--pri); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }

/* الواجهة العلوية: تدرّج وزن المتوهج */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: 44px 16px 92px;
  background: linear-gradient(170deg, #031638 0%, #06307A 45%, #0A5BC4 100%);
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none;
}
.hero::before { width: 340px; height: 340px; background: #00A8FF; top: -120px; right: -90px; animation: float 9s ease-in-out infinite; }
.hero::after { width: 280px; height: 280px; background: #38BDF8; bottom: -150px; left: -70px; opacity: .4; animation: float 11s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(20px, 18px) scale(1.08); } }
.hero > * { position: relative; z-index: 1; }
.logo {
  width: 92px; height: 92px; border-radius: 24px; display: block; margin: 0 auto 14px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 14px 40px rgba(0, 168, 255, .55);
}
.hero h1 { margin: 0; font-size: 30px; font-weight: 900; line-height: 1.4; letter-spacing: -.2px; }
.hero p { margin: 6px auto 0; max-width: 520px; color: rgba(255,255,255,.78); font-size: 15.5px; line-height: 1.8; }
.date {
  display: inline-block; margin-top: 14px; padding: 5px 14px; border-radius: 99px; font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.9);
}
.tabs { display: flex; justify-content: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.tabs a {
  color: #fff; padding: 9px 18px; border-radius: 99px; font-size: 14.5px; font-weight: 800;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); transition: .25s;
}
.tabs a:hover { text-decoration: none; background: rgba(255,255,255,.2); }
.tabs a.on { background: #fff; color: var(--deep); box-shadow: 0 8px 22px rgba(0, 168, 255, .45); }

main { max-width: 760px; margin: -58px auto 0; padding: 0 16px 40px; position: relative; z-index: 2; }

/* باختصار */
.summary {
  background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 22px 20px 12px;
  box-shadow: 0 18px 50px rgba(0, 119, 230, .16);
}
.summary h2 { margin: 0 0 12px; font-size: 19px; color: var(--ink); font-weight: 900; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.point { background: var(--chip); border-radius: 18px; padding: 13px 14px; line-height: 1.7; }
.point b { display: block; color: var(--ink); font-size: 15px; font-weight: 900; }
.point span { font-size: 13.5px; color: var(--muted); }
.point i { font-style: normal; font-size: 22px; display: block; margin-bottom: 2px; }
@media (max-width: 520px) { .points { grid-template-columns: 1fr; } }

/* الفهرس */
.toc { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 6px; }
.toc a {
  font-size: 13px; font-weight: 700; color: var(--text); background: var(--card);
  border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px;
}
.toc a:hover { border-color: var(--pri); color: var(--pri); text-decoration: none; }

/* الأقسام */
section {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 20px 20px 12px; margin-top: 14px; box-shadow: var(--shadow); scroll-margin-top: 16px;
}
section h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 18.5px; color: var(--ink); font-weight: 900; line-height: 1.5; }
.n {
  flex: none; width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; font-size: 15px; font-weight: 900; background: linear-gradient(135deg, var(--sky), var(--deep));
  box-shadow: 0 6px 14px rgba(0, 168, 255, .35);
}
section p { margin: 8px 0; }
section ul { margin: 6px 0 10px; padding-inline-start: 20px; }
section li { margin: 5px 0; }
section li::marker { color: var(--pri); }
strong { color: var(--ink); }
h3 { margin: 14px 0 2px; font-size: 15.5px; color: var(--ink); font-weight: 900; }

/* جدول وين تروح البيانات (يتحول بطاقات بالجوال) */
.flow { display: grid; gap: 9px; margin: 10px 0 12px; }
.row { background: var(--chip); border-radius: 16px; padding: 12px 14px; line-height: 1.75; }
.row b { color: var(--ink); font-weight: 900; }
.row .to { display: inline-block; font-size: 12px; font-weight: 800; color: var(--deep); background: var(--soft); padding: 1px 10px; border-radius: 99px; margin-inline-start: 4px; }
:root[data-theme="dark"] .row .to { color: var(--sky); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .row .to { color: var(--sky); } }
.row span { display: block; font-size: 14px; color: var(--muted); }

.note {
  border-radius: 18px; padding: 13px 16px; margin: 10px 0; font-size: 15px; line-height: 1.85;
  background: linear-gradient(135deg, rgba(56,189,248,.14), rgba(0,119,230,.1)); border: 1px solid rgba(0,168,255,.28);
}
.warn { background: linear-gradient(135deg, rgba(251,191,36,.16), rgba(245,158,11,.08)); border-color: rgba(245,158,11,.35); }

.contact {
  text-align: center; margin-top: 18px; padding: 24px 18px; border-radius: 26px; color: #fff;
  background: linear-gradient(135deg, #0A4FB8, #0090F0 55%, #5CCBFF);
  box-shadow: 0 16px 40px rgba(0, 144, 240, .35);
}
.contact h2 { margin: 0; font-size: 19px; font-weight: 900; }
.contact p { margin: 4px 0 14px; color: rgba(255,255,255,.85); font-size: 14.5px; }
.contact a { display: inline-block; background: #fff; color: var(--deep); padding: 10px 22px; border-radius: 99px; font-weight: 900; direction: ltr; }
.contact a:hover { text-decoration: none; }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 16px 36px; }
footer a { color: var(--muted); }

/* البوابة (الصفحة الرئيسية) */
.cards { display: grid; gap: 14px; }
.big {
  display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 26px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 119, 230, .14); transition: .25s;
}
.big:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--pri); }
.big .ic { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: linear-gradient(135deg, var(--sky), var(--deep)); box-shadow: 0 10px 22px rgba(0, 168, 255, .4); }
.big b { display: block; font-size: 18px; font-weight: 900; }
.big span { display: block; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.7; }
.big .go { margin-inline-start: auto; color: var(--pri); font-size: 22px; font-weight: 900; }

@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { animation: none; } html { scroll-behavior: auto; } }
