/* ═══════════════════════════════════════════════════════
 *  how-it-works.css — أُستخرِج آليًا من pages/how-it-works.php
 *  المقطع 1 من 1 · سطور 11–11 في الأصل.
 *  ⚠️ الترتيب بين المقاطع مقصود: بينها كتل <style> مشروطة
 *     باقية في الصفحة، والتتالي يعتمد على تسلسلها.
 * ═══════════════════════════════════════════════════════ */
.hwx{
  --blue:#2563EB;--blue-h:#1D4ED8;--navy:#0D1B3E;--ink:#1f2937;--mut:#6b7480;--faint:#6b7280;
  --line:#e8ebf1;--soft:#f6f8fc;--soft2:#eef4ff;--green:#10B981;--amber:#b45309;--gold:#C79A3B;
  color-scheme:light;direction:rtl;background:#fff;color:var(--ink);
  font-family:'Segoe UI','Segoe UI Arabic',Tahoma,Arial,sans-serif;line-height:1.9;overflow-x:clip
}
.hwx .wrap{max-width:1120px;margin:0 auto;padding:0 24px}
.hwx section{padding:70px 0}
.hwx h1,.hwx h2,.hwx h3,.hwx h4{color:var(--navy);letter-spacing:-.02em}
.hwx h1{font-size:clamp(1.9rem,4.2vw,2.9rem);font-weight:900;line-height:1.26;margin:0 0 18px}
.hwx h2{font-size:clamp(1.42rem,2.8vw,2.05rem);font-weight:800;line-height:1.42;margin:0 0 12px}
.hwx h3{font-size:1.06rem;font-weight:800;margin:0 0 8px;line-height:1.6}
.hwx p{margin:0 0 14px}
.hwx .g{background:linear-gradient(120deg,var(--blue),#6a72ff);-webkit-background-clip:text;background-clip:text;color:transparent}
.hwx .lead{font-size:1.04rem;color:var(--mut);line-height:2}
.hwx .eyebrow{display:inline-flex;align-items:center;gap:8px;background:var(--soft2);color:var(--blue);font-weight:800;font-size:.78rem;padding:8px 16px;border-radius:999px;border:1px solid #dbe2ff;margin-bottom:16px}
.hwx .shead{max-width:680px;margin:0 auto 40px;text-align:center}
.hwx a{color:var(--blue)}
.hwx a:focus-visible,.hwx summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:8px}
.hwx .cta{display:inline-flex;align-items:center;gap:9px;background:var(--blue);color:#fff;font-weight:800;font-size:.95rem;padding:15px 30px;border-radius:14px;text-decoration:none;box-shadow:0 10px 26px rgba(37,99,235,.26);transition:.2s}
.hwx .cta:hover{background:var(--blue-h);transform:translateY(-3px);box-shadow:0 16px 34px rgba(37,99,235,.32)}
.hwx .cta2{display:inline-flex;align-items:center;gap:8px;color:var(--navy);font-weight:800;font-size:.92rem;padding:15px 24px;text-decoration:none;border-radius:14px;border:1px solid var(--line);background:#fff;transition:.2s}
.hwx .cta2:hover{border-color:#c9d6f2;background:var(--soft);transform:translateY(-3px)}
.hwx.rvon .rv{opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.8,.2,1)}
.hwx.rvon .rv.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.hwx.rvon .rv{opacity:1;transform:none;transition:none}.hwx *{animation:none!important}}

/* breadcrumb */
.hwx .bc{padding:18px 0 0;font-size:.8rem;color:var(--faint)}
.hwx .bc ol{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0}
.hwx .bc a{color:var(--mut);text-decoration:none}
.hwx .bc a:hover{color:var(--blue);text-decoration:underline}
.hwx .bc li+li::before{content:'‹';margin-inline-end:8px;color:#c3cad8}

/* hero */
.hwx .hero{padding:34px 0 62px;background:linear-gradient(180deg,#fff,#F4F7FF 72%,#fff)}
.hwx .hero .hg{display:grid;grid-template-columns:1.15fr .85fr;gap:46px;align-items:center}
.hwx .hero .btns{display:flex;gap:12px;flex-wrap:wrap;margin:26px 0 0}
.hwx .jump{display:flex;flex-wrap:wrap;gap:8px;margin-top:26px;padding-top:22px;border-top:1px dashed var(--line)}
.hwx .jump a{font-size:.78rem;font-weight:700;color:var(--navy);background:#fff;border:1px solid var(--line);border-radius:999px;padding:7px 14px;text-decoration:none;transition:.2s}
.hwx .jump a:hover{border-color:var(--blue);color:var(--blue)}
.hwx .hcard{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 16px 38px rgba(13,27,90,.08)}
.hwx .hcard .hct{display:flex;align-items:center;gap:10px;font-size:.82rem;font-weight:800;color:var(--navy);padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:14px}
.hwx .hcard .hct i{width:28px;height:28px;border-radius:9px;background:var(--soft2);color:var(--blue);display:flex;align-items:center;justify-content:center;font-size:.75rem}
.hwx .hrow{display:flex;align-items:center;gap:11px;padding:9px 0;border-bottom:1px dashed #eef1f8;font-size:.84rem;color:var(--mut)}
.hwx .hrow:last-child{border-bottom:0}
.hwx .hrow b{color:var(--navy);font-weight:800}
.hwx .hrow .n{width:26px;height:26px;flex:0 0 auto;border-radius:8px;background:var(--soft);color:var(--blue);font-weight:900;font-size:.76rem;display:flex;align-items:center;justify-content:center}
.hwx .hash{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.66rem;color:var(--blue);background:var(--soft2);border:1px solid #dbe2ff;border-radius:9px;padding:8px 10px;margin-top:14px;direction:ltr;text-align:left;word-break:break-all}

/* stage rail */
.hwx .rail{background:var(--navy);color:#fff;border-radius:28px;margin:0 14px;position:relative;overflow:hidden}
.hwx .rail::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 50% -10%,rgba(106,114,255,.30),transparent 62%)}
.hwx .rail .wrap{position:relative}
.hwx .rail h2{color:#fff}
.hwx .rail .lead{color:#9fabc7}
.hwx .track{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;position:relative}
.hwx .track::before{content:'';position:absolute;top:26px;right:8%;left:8%;height:2px;background:rgba(255,255,255,.14)}
.hwx .tn{position:relative;text-align:center}
.hwx .tn .tc{width:54px;height:54px;margin:0 auto 12px;border-radius:16px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;color:#c3d2ef;font-size:1.05rem;position:relative;z-index:2}
.hwx .tn.on .tc{background:var(--blue);border-color:#5b81f5;color:#fff;box-shadow:0 0 0 6px rgba(37,99,235,.20)}
.hwx .tn b{display:block;font-size:.9rem;font-weight:800;color:#eaf0fb}
.hwx .tn small{display:block;font-size:.72rem;color:#8fa0c1;margin-top:3px;line-height:1.65}

/* numbered steps (creator) */
.hwx .steps{position:relative;margin-top:8px}
.hwx .steps::before{content:'';position:absolute;top:14px;bottom:14px;right:26px;width:2px;background:linear-gradient(180deg,var(--soft2),#dbe2ff,var(--soft2))}
.hwx .step{position:relative;padding:0 78px 30px 0}
.hwx .step:last-child{padding-bottom:0}
.hwx .step .num{position:absolute;top:0;right:0;width:54px;height:54px;border-radius:17px;background:#fff;border:1.5px solid #dbe2ff;color:var(--blue);font-weight:900;font-size:1.18rem;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 24px rgba(13,27,90,.07);z-index:2}
.hwx .step .sbox{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px 26px;box-shadow:0 12px 30px rgba(13,27,90,.05);transition:.25s}
.hwx .step .sbox:hover{transform:translateY(-3px);box-shadow:0 20px 44px rgba(13,27,90,.09);border-color:#d7e0f5}
.hwx .step .sk{font-size:.72rem;font-weight:800;color:var(--faint);letter-spacing:.4px;display:block;margin-bottom:5px}
.hwx .step p{font-size:.95rem;color:var(--mut);line-height:2;margin:0}
.hwx .chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.hwx .chips span{font-size:.71rem;font-weight:700;color:var(--blue);background:var(--soft2);border:1px solid #dbe2ff;border-radius:999px;padding:5px 12px}
.hwx .out{display:flex;align-items:flex-start;gap:9px;margin-top:14px;padding-top:13px;border-top:1px dashed var(--line);font-size:.82rem;color:var(--mut)}
.hwx .out i{color:var(--green);margin-top:5px}
.hwx .out b{color:var(--navy)}

/* signer path (dark) */
.hwx .signer{background:var(--navy);color:#fff}
.hwx .signer h2,.hwx .signer h3{color:#fff}
.hwx .signer .lead{color:#9fabc7}
.hwx .signer .eyebrow{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18);color:#cfd9ee}
.hwx .sgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.hwx .sg{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.13);border-radius:18px;padding:22px 18px;transition:.25s}
.hwx .sg:hover{transform:translateY(-3px);background:rgba(255,255,255,.08);border-color:rgba(106,114,255,.5)}
.hwx .sg .sn{display:inline-flex;align-items:center;gap:8px;font-size:.72rem;font-weight:800;color:#8fa0c1;margin-bottom:12px}
.hwx .sg .sn em{font-style:normal;width:26px;height:26px;border-radius:9px;background:rgba(37,99,235,.28);color:#dbe4ff;display:flex;align-items:center;justify-content:center;font-weight:900}
.hwx .sg h3{font-size:.98rem;margin-bottom:7px}
.hwx .sg p{font-size:.83rem;color:#a9b6cf;line-height:1.95;margin:0}
.hwx .note{display:flex;gap:13px;align-items:flex-start;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.13);border-radius:18px;padding:20px 22px;margin-top:22px}
.hwx .note i{color:var(--amber);font-size:1.05rem;margin-top:5px}
.hwx .note p{font-size:.87rem;color:#a9b6cf;line-height:2;margin:0}
.hwx .note a{color:#c3d2ef}

/* generic card grids */
.hwx .grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.hwx .grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.hwx .grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.hwx .card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px 22px;transition:.25s}
.hwx .card:hover{transform:translateY(-3px);box-shadow:0 16px 38px rgba(13,27,90,.08);border-color:#d7e0f5}
.hwx .card p{font-size:.87rem;color:var(--mut);line-height:1.95;margin:0 0 10px}
.hwx .ico{width:50px;height:50px;border-radius:15px;background:var(--soft2);color:var(--blue);display:flex;align-items:center;justify-content:center;font-size:1.1rem;margin-bottom:14px}
.hwx .card.vio .ico{background:#f1f0ff;color:#6a72ff}
.hwx .when{font-size:.78rem;color:var(--navy);background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:10px 13px;line-height:1.8}
.hwx .when b{color:var(--blue)}
.hwx .card .more{display:inline-flex;align-items:center;gap:6px;font-size:.79rem;font-weight:800;text-decoration:none;margin-top:12px}
.hwx .card .more:hover{text-decoration:underline}

/* strength meter cards */
.hwx .lvl{display:inline-flex;gap:4px;margin-top:4px}
.hwx .lvl i{width:9px;height:9px;border-radius:50%;background:#dbe3ef}
.hwx .l1 .lvl i:nth-child(1),.hwx .l2 .lvl i:nth-child(-n+2){background:var(--blue)}
.hwx .l3 .lvl i{background:#6a72ff}
.hwx .lvt{font-size:.72rem;font-weight:800;color:var(--faint);display:block;margin-top:8px}

/* technical table */
.hwx .tbl{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;font-size:.86rem}
.hwx .tbl caption{caption-side:bottom;text-align:right;font-size:.78rem;color:var(--faint);padding:12px 4px 0;line-height:1.9}
.hwx .tbl th,.hwx .tbl td{padding:15px 18px;text-align:right;vertical-align:top;border-bottom:1px solid var(--line)}
.hwx .tbl thead th{background:var(--soft);color:var(--navy);font-weight:800;font-size:.82rem;white-space:nowrap}
.hwx .tbl tbody th{font-weight:800;color:var(--navy);width:24%}
.hwx .tbl td{color:var(--mut);line-height:1.95}
.hwx .tbl tbody tr:last-child th,.hwx .tbl tbody tr:last-child td{border-bottom:0}
.hwx .tbl tbody tr:hover{background:#fbfcff}
.hwx code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.8rem;background:var(--soft2);color:var(--blue);border-radius:6px;padding:1px 6px;direction:ltr;display:inline-block}
.hwx .tipbox{display:flex;gap:14px;align-items:flex-start;background:var(--soft2);border:1px solid #dbe2ff;border-radius:18px;padding:22px 24px;margin-top:24px}
.hwx .tipbox i{color:var(--blue);font-size:1.1rem;margin-top:5px}
.hwx .tipbox p{font-size:.88rem;color:var(--mut);line-height:2;margin:0}
.hwx .tipbox b{color:var(--navy)}

/* timing tiles */
.hwx .tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.hwx .tile{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px 22px;text-align:center}
.hwx .tile .big{display:block;font-size:1.5rem;font-weight:900;color:var(--blue);margin-bottom:6px}
.hwx .tile h3{font-size:.95rem;margin-bottom:6px}
.hwx .tile p{font-size:.83rem;color:var(--mut);line-height:1.95;margin:0}
.hwx .cmp{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px}
.hwx .cmp>div{border-radius:18px;padding:22px 24px;border:1px solid var(--line);background:#fff}
.hwx .cmp .old{background:var(--soft)}
.hwx .cmp h3{font-size:.95rem;display:flex;align-items:center;gap:9px}
.hwx .cmp ul{margin:10px 0 0;padding-inline-start:20px}
.hwx .cmp li{font-size:.85rem;color:var(--mut);line-height:1.95}
.hwx .cmp .old h3 i{color:var(--amber)}
.hwx .cmp .new h3 i{color:var(--green)}

/* checklist */
.hwx .chk{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.hwx .ck{display:flex;gap:13px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px}
.hwx .ck i{width:30px;height:30px;flex:0 0 auto;border-radius:10px;background:#F0FDF6;color:var(--green);display:flex;align-items:center;justify-content:center;font-size:.75rem;margin-top:2px}
.hwx .ck b{display:block;font-size:.9rem;color:var(--navy);margin-bottom:3px}
.hwx .ck span{font-size:.82rem;color:var(--mut);line-height:1.9}

/* accordion */
.hwx .qa{max-width:820px;margin:0 auto}
.hwx details{background:#fff;border:1px solid var(--line);border-radius:16px;margin-bottom:12px;overflow:hidden}
.hwx details[open]{border-color:#dbe2ff;box-shadow:0 12px 30px rgba(13,27,90,.06)}
.hwx summary{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:17px 22px;cursor:pointer;font-weight:800;font-size:.94rem;color:var(--navy);list-style:none}
.hwx summary::-webkit-details-marker{display:none}
.hwx summary .x{width:27px;height:27px;flex:0 0 auto;border-radius:9px;background:var(--soft);color:var(--blue);display:flex;align-items:center;justify-content:center;font-size:.72rem;transition:.25s}
.hwx details[open] summary .x{background:var(--blue);color:#fff;transform:rotate(180deg)}
.hwx details .ab{padding:0 22px 20px}
.hwx details .ab p{font-size:.88rem;color:var(--mut);line-height:2.05;margin:0 0 10px}
.hwx details .ab p:last-child{margin:0}

/* related links */
.hwx .rel{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.hwx .rl{display:flex;gap:13px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px;text-decoration:none;transition:.25s}
.hwx .rl:hover{transform:translateY(-3px);box-shadow:0 16px 38px rgba(13,27,90,.08);border-color:#d7e0f5}
.hwx .rl i{width:32px;height:32px;flex:0 0 auto;border-radius:10px;background:var(--soft2);color:var(--blue);display:flex;align-items:center;justify-content:center;font-size:.8rem;margin-top:2px}
.hwx .rl b{display:block;font-size:.9rem;color:var(--navy)}
.hwx .rl span{font-size:.79rem;color:var(--mut);line-height:1.85}

/* final cta */
.hwx .fin{text-align:center;background:linear-gradient(180deg,#fff,#F4F7FF);padding:82px 0}
.hwx .fin .lead{max-width:560px;margin:0 auto 28px}
.hwx .fbt{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

@media(max-width:980px){
  .hwx .hero .hg{grid-template-columns:1fr;gap:30px}
  .hwx .track{grid-template-columns:repeat(3,1fr);gap:18px}
  .hwx .track::before{display:none}
  .hwx .sgrid{grid-template-columns:repeat(2,1fr)}
  .hwx .grid4,.hwx .grid3,.hwx .rel,.hwx .tiles{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
  .hwx section{padding:52px 0}
  .hwx .rail{border-radius:0;margin:0}
  .hwx .track{grid-template-columns:repeat(2,1fr)}
  .hwx .sgrid,.hwx .grid2,.hwx .grid3,.hwx .grid4,.hwx .rel,.hwx .tiles,.hwx .chk,.hwx .cmp{grid-template-columns:1fr}
  .hwx .step{padding:0 0 26px 0}
  .hwx .steps::before{display:none}
  .hwx .step .num{position:static;margin-bottom:-14px;transform:translateY(0)}
  .hwx .step .sbox{margin-top:12px}
  .hwx .tbl,.hwx .tbl thead,.hwx .tbl tbody,.hwx .tbl th,.hwx .tbl td,.hwx .tbl tr{display:block;width:auto}
  .hwx .tbl{border:0;background:transparent}
  .hwx .tbl thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .hwx .tbl tbody tr{background:#fff;border:1px solid var(--line);border-radius:16px;margin-bottom:12px;padding:6px 4px}
  .hwx .tbl tbody th{width:auto;border-bottom:1px solid var(--line)}
  .hwx .tbl td{border-bottom:1px dashed var(--line)}
  .hwx .tbl tbody tr td:last-child{border-bottom:0}
  .hwx .tbl td::before{content:attr(data-l);display:block;font-size:.72rem;font-weight:800;color:var(--faint);margin-bottom:4px}
}
