:root { --blue:#005c99; --sky:#00a1df; --ink:#1f2937; --muted:#5b6472; --line:#e3e8ef; --ok:#2e7d32; --warn:#ff9800; --red:#e53935; }
* { box-sizing: border-box; }
body { font-family: "Rubik", Arial, sans-serif; background:#f4f7fa; color:var(--ink); line-height:1.8; margin:0; padding:20px; font-size:17px; }
html[lang="ar"] body { font-family: "Cairo", "Rubik", Arial, sans-serif; }
.container { max-width:920px; margin:auto; background:#fff; border-radius:14px; box-shadow:0 10px 30px rgba(0,0,0,.08); overflow:hidden; }
.header { background:linear-gradient(135deg,var(--blue),var(--sky)); color:#fff; padding:52px 24px 40px; text-align:center; position:relative; }
.langs { position:absolute; top:14px; inset-inline-end:16px; display:flex; gap:6px; }
.langs a, .home { background:rgba(255,255,255,.18); color:#fff; text-decoration:none; padding:3px 12px; border-radius:20px; font-size:.9em; }
.langs a:hover, .home:hover { background:rgba(255,255,255,.32); }
.langs a[aria-current="page"] { background:#fff; color:var(--blue); font-weight:700; }
.home { position:absolute; top:14px; inset-inline-start:16px; }
.header h1 { margin:0 0 8px; font-size:2.05em; line-height:1.3; }
.header p { margin:0; font-size:1.1em; opacity:.95; }
.content { padding:30px 36px 40px; }
h2 { font-size:1.5em; margin:46px 0 6px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
h2 .tag { background:var(--blue); color:#fff; border-radius:10px; padding:2px 12px; font-size:.72em; }
.lead { color:var(--muted); margin:0 0 10px; }
.step { margin:28px 0; display:flex; align-items:flex-start; gap:18px; }
.num { background:var(--blue); color:#fff; width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.3em; font-weight:700; flex-shrink:0; }
.step-text { flex:1; min-width:0; }
.step-text strong.title { display:block; font-size:1.15em; margin-bottom:4px; }
.btn { display:inline-block; background:var(--blue); color:#fff; text-decoration:none; padding:10px 18px; border-radius:10px; font-weight:500; margin:6px 0; }
.btn:hover { background:#004a7c; }
figure { margin:14px 0 4px; }
figure img { width:100%; max-width:560px; height:auto; display:block; border-radius:12px; box-shadow:0 5px 20px rgba(0,0,0,.12); background:#fff; }
figcaption { font-size:.9em; color:var(--muted); margin-top:6px; }
.red { display:inline-flex; align-items:center; justify-content:center; width:1.5em; height:1.5em; border-radius:50%; background:var(--red); color:#fff; font-weight:700; font-size:.85em; vertical-align:middle; }
.box { padding:18px 20px; border-radius:12px; margin:24px 0; border-inline-start:6px solid; }
.tip { background:#e3f2fd; border-color:var(--blue); }
.important { background:#fff3e0; border-color:var(--warn); }
.stop { background:#fdecea; border-color:var(--red); }
.done { background:#e8f5e9; border-color:var(--ok); }
.box ul, .box ol, .step-text ul, .step-text ol { margin:8px 0 0; padding-inline-start:22px; }
.box li, .step-text li { margin:4px 0; }
code, .en { direction:ltr; unicode-bidi:isolate; font-family:Consolas, "Courier New", monospace; background:#f0f3f7; padding:1px 7px; border-radius:5px; font-size:.93em; white-space:nowrap; }
kbd { direction:ltr; unicode-bidi:isolate; font-family:Consolas, monospace; background:#fff; border:1px solid #c4ccd6; border-bottom-width:3px; border-radius:6px; padding:0 7px; font-size:.9em; }
.flow { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:18px 0 6px; }
.flow div { background:#f3f7fb; border:1px solid var(--line); border-radius:12px; padding:14px 10px; text-align:center; font-weight:500; }
.flow span { display:block; font-size:1.8em; }
details { border:1px solid var(--line); border-radius:12px; margin:12px 0; background:#fafcfe; }
summary { cursor:pointer; padding:14px 18px; font-weight:700; font-size:1.05em; }
details[open] summary { border-bottom:1px solid var(--line); }
details > div { padding:6px 20px 16px; }
footer { text-align:center; padding:24px; background:#f0f0f0; font-size:.95em; }
@media (max-width:640px) {
  body { padding:8px; font-size:16px; }
  .content { padding:22px 16px 30px; }
  .header { padding-top:64px; }
  .header h1 { font-size:1.55em; }
  .flow { grid-template-columns:repeat(2,1fr); }
  .step { gap:12px; }
  .num { width:36px; height:36px; font-size:1.1em; }
  code, .en { white-space:normal; overflow-wrap:anywhere; }
}
@media print { .langs, .home { display:none; } body { background:#fff; padding:0; } .container { box-shadow:none; } details { break-inside:avoid; } details > div { display:block; } }
figure a { display:block; max-width:560px; cursor:zoom-in; }
