:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #5b6675;
  --accent: #0f6b4f;
  --border: #e3e6ea;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151a;
    --surface: #1a2027;
    --text: #e8ecf1;
    --muted: #a3adb9;
    --accent: #3fbf8f;
    --border: #2a323b;
  }
}
* { box-sizing: border-box; }
html { direction: rtl; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.9;
}
header, main, footer { max-width: 760px; margin: 0 auto; padding: 16px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
header a.brand { font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
nav a { color: var(--muted); margin-inline-start: 12px; text-decoration: none; font-size: .95rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
h1 { font-size: 1.6rem; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin-top: 28px; }
p, li { color: var(--text); }
.muted { color: var(--muted); font-size: .9rem; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.button {
  display: inline-block; padding: 10px 18px; border-radius: 10px; text-decoration: none;
  background: var(--accent); color: #fff; font-weight: 600;
}
.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
footer { color: var(--muted); font-size: .85rem; text-align: center; }
ol, ul { padding-inline-start: 22px; }
