/* لوحة العميل — الإطار والشاشات. المكوّنات العامة (kpi · pill · seg · tbl · drawer · toast) في admin.css، والمتغيرات في app.css.
   ألوان الرسوم اتفحصت بسكريبت مهارة الرسوم (11 نوفمبر): حقيقي/مشبوه/محظور بتعدّي فحص عمى الألوان والتباين في الفاتح والداكن. */
:root { --c-real: #1a6fe8; --c-sus: #d07400; --c-blk: #d6336c; --c-mute: #b7c2d4; --side-w: 236px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c-real: #4a90ff; --c-sus: #cc7a00; --c-blk: #ea5a8a; --c-mute: #3a4b6d; } }

body.dash { background: var(--bg); }
/* «تخطَّ إلى المحتوى» مخفي من غير ما يتزق برّه الصفحة: inset-inline-start: -999px في العربي (RTL) كان بيوسّع الصفحة يمين، والطباعة/PDF كانت بتقص نصها (25 نوفمبر) */
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; top: 8px; z-index: 99; background: var(--card); border-radius: 8px; }
.skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; padding: 8px 12px; inset-inline-start: 8px; }

/* ── الشريط الجانبي (لابتوب) ── */
.side { position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--side-w); background: var(--card); border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; z-index: 30; }
/* الشاشات القصيرة: القائمة بتتمرر لوحدها علشان «إدارة المنصة» و«تسجيل الخروج» يفضلوا متاحين (15 نوفمبر) */
.side { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
@media (max-height: 820px) { .side { padding-block: 12px; } .side-logo { padding-bottom: 10px; } .side-logo img { width: 112px; } .side-nav a { padding-block: 7px; } }
.side-logo { display: block; padding: 4px 8px 18px; }
.side-logo img { width: 132px; height: auto; display: block; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.side-nav a:hover { background: var(--bg); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--info-bg); color: var(--accent); }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding: 8px; font-size: 14px; }
.side-foot .pill { justify-self: start; }
.ic { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.dmain { margin-inline-start: var(--side-w); min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tb-title { display: flex; align-items: center; gap: 10px; }
.tb-title h1 { font-size: 24px; margin: 0; }
.tb-logo { display: none; }
.tb-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.site-pick select { min-width: 220px; padding: 8px 12px; font-weight: 700; }
.view { padding: 22px 28px 64px; max-width: 1320px; outline: none; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

/* ── الشاشات ── */
.status-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.st { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; }
.st.ok .dot { background: var(--growth); } .st.warn .dot { background: var(--warn); }
.st.live-now { color: var(--accent); }
.st.live-now .dot { background: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.live { box-shadow: 0 0 0 0 currentColor; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 158, 42, .5); } 70% { box-shadow: 0 0 0 7px rgba(46, 158, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 158, 42, 0); } }
@media (prefers-reduced-motion: reduce) { .dot.live { animation: none; } }
.kpi.bad { --k: var(--bad); }
.kpis.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dl { display: block; font-size: 12.5px; margin-top: 4px; color: var(--muted); font-weight: 700; }
.dl.up { color: var(--ok); } .dl.down { color: var(--bad); }
.dl small { font-weight: 400; color: var(--muted); font-size: 12px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.more-rows { display: block; margin: 14px auto 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-2 > .panel-card { margin-bottom: 0; }
.grid-2 + .grid-2, .grid-2 + .panel-card, .panel-card + .grid-2 { margin-top: 16px; }
.span-2 { grid-column: 1 / -1; }
.panel-card .sec-head h2 { font-size: 17px; }
.hint { margin: 0 0 10px; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 14px; }
.callout { display: grid; gap: 2px; padding: 16px 18px; border-radius: 14px; background: var(--info-bg); color: var(--ink); margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.callout b { font-family: var(--font-head); font-size: 18px; }
.callout span { color: var(--muted); }

/* كروت «تعمل إيه دلوقتي» */
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.act { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--card); border-inline-start: 4px solid var(--k, var(--accent)); transition: transform .12s, box-shadow .12s; }
.act:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.act.warn { --k: var(--warn); } .act.ok { --k: var(--growth); } .act.info { --k: var(--accent); }
.act b { font-family: var(--font-head); font-size: 16px; }
.act span { color: var(--muted); font-size: 14px; }
.act em { font-style: normal; color: var(--accent); font-weight: 700; font-size: 14px; }

/* قايمة الأحداث */
.feed { list-style: none; margin: 0 0 10px; padding: 0; }
.feed li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); cursor: pointer; }
.feed li:first-child { border-top: 0; }
.feed li:hover { background: var(--row-hover); }
.feed li b { display: block; font-size: 15px; }
.feed li span { color: var(--muted); font-size: 13.5px; }
.feed time { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

/* درجة الخطر */
.score { display: inline-grid; place-items: center; min-width: 38px; height: 28px; padding: 0 8px; border-radius: 8px; font-family: var(--font-head); font-variant-numeric: tabular-nums; }
.score b { font-size: 14px; }
.s-real { background: var(--info-bg); color: var(--info); }
.s-suspicious { background: var(--warn-bg); color: var(--warn); }
.s-blocked { background: var(--bad-bg); color: var(--bad); }
.s-high { background: var(--bad-bg); color: var(--bad); }

/* الرسوم */
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.chart-legend, .geo-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); font-weight: 700; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.plot { position: relative; }
.svg { width: 100%; height: auto; display: block; overflow: visible; }
.svg .grid { stroke: var(--line); stroke-width: 1; }
.svg .axis { stroke: var(--line); stroke-width: 1.5; }
.svg .tick { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.svg .hit { fill: transparent; cursor: crosshair; outline: none; }
.svg .hit.on, .svg .hit:focus { fill: color-mix(in srgb, var(--accent) 8%, transparent); }
.c-real, .sw.c-real { fill: var(--c-real); background: var(--c-real); }
.c-sus, .sw.c-sus { fill: var(--c-sus); background: var(--c-sus); }
.c-blk, .sw.c-blk { fill: var(--c-blk); background: var(--c-blk); }
.tip { position: absolute; top: 0; width: 170px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; box-shadow: 0 10px 30px rgba(11, 31, 77, .18); font-size: 13px; pointer-events: none; z-index: 5; }
.tip .tr { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: center; }
.tip b { font-variant-numeric: tabular-nums; }
.tview { overflow-x: auto; max-height: 280px; }
table.mini { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.mini th, table.mini td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: start; }
.hbars { display: grid; gap: 10px; }
.hbars.compact { gap: 7px; }
.hb { display: grid; grid-template-columns: minmax(120px, 42%) 1fr auto; gap: 10px; align-items: center; }
.hb-l span { display: block; font-weight: 700; font-size: 14px; }
.hb-l small { display: block; color: var(--muted); font-size: 12.5px; }
.hb-t { height: 12px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.hb-t .f { display: block; height: 100%; border-radius: 6px; }
.f.c-data { background: var(--data); } .f.c-real { background: var(--c-real); } .f.c-sus { background: var(--c-sus); } .f.c-blk { background: var(--c-blk); } .f.c-ok { background: var(--growth); } .f.c-mute { background: var(--c-mute); }
.hb-v { font-variant-numeric: tabular-nums; min-width: 48px; text-align: end; }

/* الجداول الثابتة (من غير ضغط على الصف) */
.tbl.static tbody tr { cursor: default; }
.tbl td.num { font-weight: 800; font-variant-numeric: tabular-nums; }
.tbl select { min-width: 140px; padding: 6px 10px; }
.empty { text-align: center; color: var(--muted); padding: 24px; }

/* درج الزيارة */
.verdict { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; margin-top: 14px; }
.verdict b { font-family: var(--font-head); font-size: 18px; display: block; }
.verdict span { font-size: 14px; }
.vd-score { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--card); flex: none; }
.vd-score b { font-size: 24px; line-height: 1; }
.vd-score small { font-size: 11px; color: var(--muted); }
.why { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.why li::marker { color: var(--warn); }
.why.sm { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: 62px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 54px 1fr; gap: 22px; padding: 6px 0; position: relative; font-size: 14.5px; }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 57px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--muted); }
.timeline time { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; direction: ltr; text-align: end; }
.timeline .k-ad::after { border-color: var(--accent); } .timeline .k-contact::after { border-color: var(--growth); background: var(--growth); } .timeline .k-exit::after { border-color: var(--muted); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.more-link { display: flex; align-items: center; gap: 12px; padding: 14px 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; }
button.more-link { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; font-weight: 700; font-size: 16px; text-align: start; cursor: pointer; }

/* الحماية */
.seg.wide3 { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-bottom: 8px; }
.seg.wide3 button { white-space: nowrap; }
.row-l { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 8px; }
.row-l .legend { margin: 0; }
.queue { display: grid; gap: 10px; }
.q-item { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.q-main { flex: 1 1 320px; }
.q-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* التنبيهات */
.rules { display: grid; gap: 10px; }
.rule { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.r-main { display: grid; gap: 4px; }
.r-main .chips { margin-top: 4px; }
button.switch { flex: none; width: 46px; height: 28px; border-radius: 999px; border: 0; background: var(--c-mute); position: relative; cursor: pointer; transition: background .15s; }
button.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
button.switch[aria-checked="true"] { background: var(--accent); }
button.switch[aria-checked="true"]::after { inset-inline-start: 21px; }

/* المواقع */
.checks { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 26px minmax(130px, 200px) 1fr; gap: 10px; align-items: center; }
.ck { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-weight: 800; font-size: 13px; }
.checks .ok .ck { background: var(--ok-bg); color: var(--ok); } .checks .warn .ck { background: var(--warn-bg); color: var(--warn); }
.checks span { color: var(--muted); }
.checks li > button { grid-column: 3; justify-self: start; }
.more-d summary { cursor: pointer; color: var(--accent); font-weight: 700; margin-bottom: 8px; }

/* ── شريط الموبايل ── */
.bottom-nav { display: none; }
@media (max-width: 1080px) {
  .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .side { display: none; }
  .dmain { margin-inline-start: 0; padding-bottom: 76px; }
  .tb-logo { display: block; line-height: 0; }
  .tb-logo img { width: 34px; height: 34px; }
  .topbar { padding: 10px 16px; }
  .tb-title h1 { font-size: 20px; }
  .tb-tools { width: 100%; }
  .site-pick { flex: 1; } .site-pick select { min-width: 0; width: 100%; }
  .view { padding: 16px 16px 40px; }
  .grid-2 { grid-template-columns: 1fr; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a, .bottom-nav button { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; color: var(--muted); text-decoration: none; font: inherit; font-size: 11.5px; font-weight: 700; background: none; border: 0; cursor: pointer; border-radius: 10px; }
  .bottom-nav [aria-current="page"] { color: var(--accent); background: var(--info-bg); }
  .hb { grid-template-columns: minmax(96px, 40%) 1fr auto; }
  .checks li { grid-template-columns: 26px 1fr; }
  .checks li span { grid-column: 2; }
  .checks li > button { grid-column: 2; }
  .seg.wide3 { grid-template-columns: 1fr; }
  .timeline::before { inset-inline-start: 56px; } .timeline li::after { inset-inline-start: 51px; } .timeline li { grid-template-columns: 48px 1fr; }
}
/* الطباعة وPDF (25 نوفمبر): A4 · خلفية بيضا · الألوان زي الشاشة · من غير القايمة والأزرار والمساعد · الكروت ماتتقسمش على صفحتين */
@page { size: A4; margin: 12mm; }
@media print {
  .side, .topbar, .bottom-nav, .sub-bar-slot, .btn, .seg, .linkish, .skip, .toast, .ai-fab, .drawer, .scrim { display: none !important; }
  html, body { background: #fff !important; width: auto !important; overflow: visible !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dmain { margin: 0 !important; padding: 0 !important; } .view { padding: 0 !important; max-width: none !important; }
  .panel-card { break-inside: avoid; box-shadow: none; }
  h1, h2, h3 { break-after: avoid; } tr, li { break-inside: avoid; }
}

/* ── المستوى البسيط ── */
.answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.ans { display: grid; gap: 6px; align-content: start; padding: 20px 20px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-top: 5px solid var(--k, var(--accent)); }
.ans.ok { --k: var(--growth); } .ans.warn { --k: var(--warn); } .ans.bad { --k: var(--bad); } .ans.info { --k: var(--accent); }
.ans .q { color: var(--muted); font-weight: 700; font-size: 15px; }
.ans .a { font-family: var(--font-head); font-size: 28px; line-height: 1.3; font-weight: 800; }
.ans.warn .a { color: var(--warn); } .ans.bad .a { color: var(--bad); }
.ans .s { color: var(--muted); font-size: 15px; }
.progress { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.p-bar { flex: 1; height: 10px; border-radius: 6px; background: var(--bg); overflow: hidden; border: 1px solid var(--line); }
.p-bar i { display: block; height: 100%; background: var(--growth); border-radius: 6px; }
.steps-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps-check li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.steps-check li.todo { background: var(--warn-bg); }
.steps-check .ok .ck { background: var(--ok-bg); color: var(--ok); }
.steps-check .todo .ck { border: 2px dashed var(--warn); }
.story { font-size: 17px; line-height: 2; margin: 0 0 12px; }
.how { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.seg.level button[aria-pressed="true"] { color: var(--accent); }
@media (max-width: 900px) {
  .answers { grid-template-columns: 1fr; }
  .ans .a { font-size: 24px; }
  .seg.level { order: -1; }
  /* الموبايل: سطرين · طريقة العرض والفترة فوق، والموقع تحتهم بعرض كامل علشان الاسم يبان (15 نوفمبر) */
  .tb-tools { flex-wrap: wrap; row-gap: 8px; }
  .tb-tools .seg.level { flex: 1 1 auto; }
  .tb-tools #range { flex: 0 0 auto; }
  .tb-tools .site-pick { order: 2; flex: 1 0 100%; }
}

/* ── كل العملاء ── */
.th-sort { font: inherit; font-size: 12.5px; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }
.th-sort.on { color: var(--accent); }
.th-sort.on::after { content: " ▼"; }
.issues { display: flex; gap: 4px; flex-wrap: wrap; }
.tbl td.num, .tbl td .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── التقارير ── */
.rep-grid { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 16px; align-items: start; }
.rep-form .panel-card { margin-bottom: 16px; }
.fld { display: grid; gap: 6px; margin: 0 0 14px; font-weight: 400; }
.fld > span { font-weight: 700; font-size: 14px; color: var(--muted); }
.fld input[type="text"], .fld input[type="email"], .fld select { width: 100%; }
.fld input[type="color"] { width: 56px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.checks-in { display: grid; gap: 6px; }
.ck-in { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0 0 8px; }
.ck-in input { accent-color: var(--accent); width: 17px; height: 17px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.rep-prev { position: sticky; top: 90px; }
.report-doc { --rc: #1a6fe8; background: #fff; color: #14213a; border: 1px solid var(--line); border-radius: 14px; padding: 28px 30px; box-shadow: var(--shadow); max-width: 820px; }
.report-doc .chart-head .linkish { display: none; }
.rd-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 3px solid var(--rc); margin-bottom: 18px; flex-wrap: wrap; }
.rd-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 18px; }
.rd-logo { max-height: 48px; max-width: 160px; object-fit: contain; }
.rd-meta { display: grid; text-align: end; }
.rd-meta b { font-family: var(--font-head); font-size: 20px; }
.rd-meta span { color: #52617f; font-size: 13.5px; }
.rd-answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.rd-answers > div { background: color-mix(in srgb, var(--rc) 8%, #fff); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.rd-answers span { color: #52617f; font-size: 13px; font-weight: 700; }
.rd-answers b { font-family: var(--font-head); font-size: 20px; color: #0b1f4d; }
.rd-sec { margin-top: 18px; }
.rd-sec h3 { font-size: 16px; margin: 0 0 10px; color: var(--rc); }
.rd-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rd-kpis > div { border: 1px solid #dbe3ef; border-radius: 10px; padding: 8px 12px; display: grid; }
.rd-kpis span { color: #52617f; font-size: 12.5px; }
.rd-kpis b { font-family: var(--font-head); font-size: 18px; font-variant-numeric: tabular-nums; }
.rd-foot { margin-top: 24px; padding-top: 10px; border-top: 1px solid #dbe3ef; color: #52617f; font-size: 12.5px; text-align: center; }
.report-doc .hb-t { background: #f3f6fb; }
@media (max-width: 1100px) { .rep-grid { grid-template-columns: 1fr; } .rep-prev { position: static; } }
@media (max-width: 600px) { .rd-answers, .rd-kpis { grid-template-columns: 1fr 1fr; } .report-doc { padding: 18px; } }
@media print {
  body.print-report .side, body.print-report .topbar, body.print-report .bottom-nav, body.print-report .rep-form, body.print-report .toast { display: none !important; }
  body.print-report .view { padding: 0; max-width: none; }
  body.print-report .rep-grid { display: block; }
  body.print-report .report-doc { border: 0; box-shadow: none; max-width: none; padding: 0; }
}

/* ── البيانات الحقيقية: «قريباً» ── */
.panel-card.soon { border-style: dashed; }
.soon-list { margin: 0 0 8px; padding-inline-start: 20px; display: grid; gap: 4px; color: var(--muted); }
.steps-check li.soon { background: var(--bg); color: var(--muted); }
.steps-check .soon .ck { border: 2px dotted var(--muted); color: var(--muted); }
.checks .soon .ck { background: var(--bg); color: var(--muted); border: 1px dashed var(--line); }
.verdict.s-none { background: var(--info-bg); }
.side-user { display: grid; gap: 6px; font-size: 14px; }
.side-user .who { color: var(--muted); }
.side-user .side-support { justify-content: center; text-align: center; text-decoration: none; }
.side-user .side-tour { justify-content: center; font-weight: 800; color: var(--accent); border-color: var(--accent); }   /* جولة الشرح: زرار واضح فوق «تسجيل الخروج» */
/* «▶ شوف الزيارة» (تسجيل rrweb) */
.rp-link { display: inline-block; margin-inline-start: 8px; font-size: 12.5px; font-weight: 700; color: var(--accent); text-decoration: none; padding: 1px 8px; border-radius: 999px; background: var(--info-bg); }
.rp-link:hover, .rp-link:focus-visible { text-decoration: underline; }
.rp-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.rp-open { text-decoration: none; }
/* العرض المبسّط / الاحترافي (محمود 12 نوفمبر): نفس الشاشة، والتفاصيل بتستخبى في المبسّط */
body.level-simple .pro-only, body.level-detailed .simple-only { display: none !important; }
.simple-line { font-size: 17px; line-height: 1.8; margin: 0 0 14px; }
.simple-line b { font-family: var(--font-head); }
/* كارت «الزيارة دي عدّت على إيه» */
.checks .bad .ck { background: var(--bad-bg); color: var(--bad); }
.vchecks li { grid-template-columns: 26px minmax(150px, 230px) 1fr; }
.rp-side .vchecks, .d-sec .vchecks { margin-top: 4px; }
.rp-side .vchecks li { grid-template-columns: 26px 1fr; }
.rp-side .vchecks li span { grid-column: 2; font-size: 13px; }
.strength { margin-top: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.strength small { font-size: 12px; }

/* ═══ نظام الرسوم الاحترافي (12 نوفمبر) ═══ */
.c-real { --cc: var(--c-real); } .c-sus { --cc: var(--c-sus); } .c-blk { --cc: var(--c-blk); } .c-data { --cc: var(--data); } .c-ok { --cc: var(--growth); } .c-mute { --cc: var(--c-mute); } .c-acc { --cc: var(--accent); }
.svg .a-line, .spark .a-line { fill: none; stroke: var(--cc); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.spark .a-line { stroke-width: 2; }
.spark g { fill: none; }
.grad .g0 { stop-color: var(--cc); stop-opacity: .34; } .grad .g1 { stop-color: var(--cc); stop-opacity: 0; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lt-draw 1.3s cubic-bezier(.3,.7,.2,1) forwards; }
.a-in { opacity: 0; animation: lt-fade .9s .35s ease-out forwards; }
.guide { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; }
.a-dot { fill: var(--card); stroke: var(--cc); stroke-width: 2.6; }
@keyframes lt-draw { to { stroke-dashoffset: 0; } }
@keyframes lt-fade { to { opacity: 1; } }
@keyframes lt-seg { from { stroke-dasharray: 0 400; } }
@keyframes lt-ring { from { stroke-dasharray: 0 100; } }
@keyframes lt-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes lt-up { from { opacity: 0; transform: translateY(8px); } }

.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; flex: none; }
.d-track { fill: none; stroke: var(--line); stroke-width: 14; opacity: .6; }
.d-seg { fill: none; stroke: var(--cc); stroke-width: 14; animation: lt-seg 1s cubic-bezier(.3,.7,.2,1) both; }
.d-val { font: 800 26px var(--font-head); fill: var(--ink); }
.d-cap { font: 500 11px var(--font-body); fill: var(--muted); }
.d-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; min-width: 150px; }
.d-legend li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; font-size: 14px; }
.d-legend .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--cc); }
.d-legend b { font-variant-numeric: tabular-nums; }
/* مصادر بالتفصيل: المجموعة زرار بيفتح اللي تحتها (15 نوفمبر) */
.d-legend li.has-m { display: block; }
.d-legend .src-g { display: grid; grid-template-columns: 10px 1fr auto 14px; gap: 8px; align-items: center; width: 100%; padding: 4px 6px; margin: -4px -6px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.d-legend .src-g:hover, .d-legend .src-g[aria-expanded="true"] { background: var(--bg); }
.d-legend .chev { width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; justify-self: center; }
.d-legend .src-g[aria-expanded="true"] .chev { transform: rotate(-135deg); }
.d-legend .src-m { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 6px; border-inline-start: 2px solid var(--line); padding-inline-start: 12px; }
.d-legend .src-m li { grid-template-columns: minmax(70px, 1fr) minmax(50px, 1.2fr) auto; font-size: 13px; color: var(--muted); }
.d-legend .src-m span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.donut-wrap:has(.src-g) .d-legend { min-width: 230px; }
.d-legend .src-m .bar { display: block; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.d-legend .src-m .bar i { display: block; height: 100%; border-radius: 4px; background: var(--cc); }

.ring { width: 116px; height: 116px; flex: none; }
.r-track { fill: none; stroke: var(--line); stroke-width: 10; opacity: .7; }
.r-bar { fill: none; stroke: var(--ring, var(--growth)); stroke-width: 10; stroke-linecap: round; animation: lt-ring 1.4s cubic-bezier(.3,.7,.2,1) both; }
.ring.warn { --ring: var(--c-sus); } .ring.bad { --ring: var(--c-blk); }
.r-val { font: 800 24px var(--font-head); fill: var(--ink); }

.spark { display: block; width: 100%; height: 34px; margin-top: 8px; }

.heat { display: grid; grid-template-columns: 48px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.h-hour, .h-day { font-size: 11px; color: var(--muted); text-align: center; }
.h-day { text-align: start; font-weight: 700; }
.h-cell { aspect-ratio: 1; border-radius: 4px; background: var(--line); opacity: .55; animation: lt-pop .35s ease-out both; }
.h-cell.l1 { background: color-mix(in srgb, var(--c-real) 22%, var(--card)); opacity: 1; }
.h-cell.l2 { background: color-mix(in srgb, var(--c-real) 40%, var(--card)); opacity: 1; }
.h-cell.l3 { background: color-mix(in srgb, var(--c-real) 58%, var(--card)); opacity: 1; }
.h-cell.l4 { background: color-mix(in srgb, var(--c-real) 78%, var(--card)); opacity: 1; }
.h-cell.l5 { background: var(--c-real); opacity: 1; }
.h-cell.risky { background: var(--c-sus); opacity: 1; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-sus) 35%, transparent); }
.heat-legend { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.heat-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin-inline-end: 6px; }
.heat-legend .lo { background: color-mix(in srgb, var(--c-real) 25%, var(--card)); } .heat-legend .hi { background: var(--c-real); } .heat-legend .rk { background: var(--c-sus); }

/* الرئيسية الاحترافية */
.ov-hero { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 20px; margin-bottom: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--card)), var(--card) 60%); border: 1px solid var(--line); box-shadow: var(--shadow); animation: lt-up .5s ease-out both; }
.ov-hero h2 { margin: 0 0 4px; font: 800 22px var(--font-head); }
.ov-hero .sub { color: var(--muted); margin: 0 0 14px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.hero-chip b { font: 800 18px var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-chip.warn b { color: var(--warn); } .hero-chip.ok b { color: var(--ok); }
.hero-ring { display: grid; justify-items: center; gap: 4px; text-align: center; }
.hero-ring b, .hero-ring small { display: block; }
.hero-ring small { color: var(--muted); font-size: 12px; max-width: 150px; }
.kpis.pro .kpi { animation: lt-up .45s ease-out both; }
.kpis.pro.eight { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .kpis.pro.eight { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpis.pro .kpi:nth-child(2) { animation-delay: .05s; } .kpis.pro .kpi:nth-child(3) { animation-delay: .1s; } .kpis.pro .kpi:nth-child(4) { animation-delay: .15s; } .kpis.pro .kpi:nth-child(5) { animation-delay: .2s; } .kpis.pro .kpi:nth-child(6) { animation-delay: .25s; }
.grid-ov { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-bottom: 18px; }
.grid-ov > .card { margin-bottom: 0; animation: lt-up .5s ease-out both; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-h h2 { margin: 0; font: 800 17px var(--font-head); }
.card-h .info { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); font: 700 12px var(--font-body); cursor: help; }
.vcards { display: grid; gap: 10px; }
.vcard { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: transform .15s, box-shadow .15s; cursor: pointer; }
.vcard:hover, .vcard:focus-visible { transform: translateY(-1px); box-shadow: var(--shadow); }
.vcard .vc-main b { display: block; }
.vcard .vc-meta { color: var(--muted); font-size: 12px; }
.vchips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.vchip { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); white-space: nowrap; }
.vchip.bad { background: var(--bad-bg); color: var(--bad); } .vchip.na { background: var(--bg); color: var(--muted); }
.vcard .vc-act { display: grid; gap: 6px; justify-items: end; }
@media (max-width: 1080px) { .grid-ov { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ov-hero { grid-template-columns: 1fr; } .hero-ring { justify-self: start; grid-auto-flow: column; align-items: center; gap: 12px; text-align: start; } .heat { grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 2px; } .h-hour { font-size: 9px; } .vcard { grid-template-columns: auto 1fr; } .vcard .vc-act { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: start; } }

/* اختيار الفترة */
.range-pick { position: relative; }
.range-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 700 14px var(--font-body); cursor: pointer; }
.range-btn::after { content: ''; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.range-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 30; width: 260px; padding: 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(11, 31, 77, .18); animation: lt-up .18s ease-out both; }
.range-pop button.opt-r { display: block; width: 100%; text-align: start; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 600 14px var(--font-body); cursor: pointer; }
.range-pop button.opt-r:hover { background: var(--bg); }
.range-pop button.opt-r[aria-checked="true"] { background: var(--info-bg); color: var(--info); font-weight: 800; }
.range-pop .custom { border-top: 1px solid var(--line); margin-top: 6px; padding: 10px 6px 4px; display: grid; gap: 8px; }
.range-pop .custom b { font-size: 13px; }
.range-pop .custom label { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.range-pop .custom input { padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 14px var(--font-body); }
@media (prefers-reduced-motion: reduce) { .draw, .a-in, .d-seg, .r-bar, .h-cell, .ov-hero, .kpis.pro .kpi, .grid-ov > .card, .range-pop { animation: none !important; opacity: 1; stroke-dashoffset: 0; } }
/* خريطة الزيارات: أخضر جوه النطاق المستهدف · أحمر برّه · أزرق لو مفيش نطاق محدد */
:root { --g-in: #1f9d55; --g-out: #d92d20; --g-vis: var(--c-real); --g-land: #dfe6f1; --g-edge: #ffffff; --g-sea: #f3f7fd; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --g-in: #3fcf7f; --g-out: #ff6b5e; --g-land: #22304d; --g-edge: #101a2e; --g-sea: #0d1527; } }
:root[data-theme="dark"] { --g-in: #3fcf7f; --g-out: #ff6b5e; --g-land: #22304d; --g-edge: #101a2e; --g-sea: #0d1527; }
.map-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .map-grid { grid-template-columns: 1fr; } }
.geo-wrap { display: grid; gap: 10px; }
svg.geo { width: 100%; height: auto; aspect-ratio: 1.7; display: block; background: var(--g-sea); border-radius: 12px; }
.geo .g-c { fill: var(--g-land); stroke: var(--g-edge); stroke-width: .5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.geo .g-c.g-in { fill: color-mix(in srgb, var(--g-in) 62%, var(--g-land)); }
.geo .g-c.g-out { fill: color-mix(in srgb, var(--g-out) 62%, var(--g-land)); }
.geo .g-c.g-vis { fill: color-mix(in srgb, var(--g-vis) 55%, var(--g-land)); }
.geo .g-c.g-in:hover, .geo .g-c.g-out:hover, .geo .g-c.g-vis:hover { filter: brightness(1.08); }
.geo .g-dot { stroke: var(--card); vector-effect: non-scaling-stroke; stroke-width: 1.5; fill-opacity: .9; animation: g-pop .5s ease-out both; transform-box: fill-box; transform-origin: center; }
.geo .g-dot.g-in { fill: var(--g-in); } .geo .g-dot.g-out { fill: var(--g-out); } .geo .g-dot.g-vis { fill: var(--g-vis); }
@keyframes g-pop { from { transform: scale(0); } to { transform: scale(1); } }
.sw.g-in, .f.g-in { background: var(--g-in); } .sw.g-out, .f.g-out { background: var(--g-out); } .sw.g-vis, .f.g-vis { background: var(--g-vis); }
.geo-nums h3 { margin: 0 0 8px; }
.geo-nums h3 + .hbars { margin-bottom: 16px; }
/* جدول المصادر والتحويل */
.conv { overflow-x: auto; }
.conv table.mini td.n, .conv table.mini th.n { text-align: end; }
.conv .rate { display: inline-flex; align-items: center; gap: 8px; min-width: 110px; justify-content: flex-end; }
.conv .rate i { display: inline-block; height: 6px; border-radius: 4px; background: var(--growth); min-width: 2px; }
.conv tr.conv-best td:first-child b::after { content: " ★"; color: var(--growth); }
@media (prefers-reduced-motion: reduce) { .geo .g-dot { animation: none; } }
/* اختيار حساب الإعلانات: بحث + الحسابات الموقوفة باهتة */
.opt[hidden] { display: none; }
.pick-q { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--card); color: inherit; }
.opt.off { opacity: .62; }
/* جوجل أدز في الرئيسية */
.ads-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 6px 0 18px; }
.ads-strip > div { background: var(--bg-soft, color-mix(in srgb, var(--accent) 5%, var(--card))); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.ads-strip span { font-size: 12px; color: var(--muted); }
.ads-strip b { font-size: 18px; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .ads-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ads-sub { margin-top: 14px; }
.ads-two { margin-bottom: 0; }
.ads-two > .ads-sub { margin-top: 14px; }
/* تنبيهات تليجرام في كارت الموقع */
.oc-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 12px 0; }
.oc-box h3 { margin: 0 0 4px; font-size: 1rem; }
.oc-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.oc-opt { display: flex; gap: 10px; align-items: flex-start; text-align: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.oc-opt:hover, .oc-opt:focus-visible { border-color: var(--accent, #2f6fed); }
.oc-opt:disabled { opacity: .6; cursor: progress; }
.oc-opt b { display: block; }
.oc-opt small { display: block; opacity: .75; margin-top: 2px; }
.oc-ic { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: #e8f0fe; color: #1a73e8; }
.oc-ic.cf { background: #fff1e6; color: #f38020; }
.oc-cf .bl-in { width: 100%; margin-top: 6px; }
.oc-cf small.hint { display: block; margin-top: 4px; }
.oc-list { display: grid; gap: 8px; margin: 8px 0 12px; }
.oc-ct { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; text-align: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.oc-ct[aria-checked="true"] { border-color: var(--accent, #2f6fed); outline: 2px solid var(--accent, #2f6fed); outline-offset: -1px; }
.oc-ct small { opacity: .75; }
.as-or { margin: 14px 0 6px; font-weight: 600; }
.sm-block { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
.sm-block .dx-acts { flex-wrap: wrap; }
.sm-msg:not(:empty) { margin-top: 10px; }
.btn.danger { color: var(--bad, #c0392b); border-color: currentColor; }
.btn.sm.danger:not(.ghost) { background: var(--bad, #c0392b); color: #fff; }
.sm-pause { margin: 6px 0 10px; }
.tg-block { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
.tg-chats { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.tg-row { display: flex; gap: 8px; align-items: center; }
.tg-link { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 13px; background: var(--card); color: inherit; }
.tg-aud { margin: 12px 0 4px; display: grid; gap: 6px; }
.chip.soon, .chip:disabled { opacity: .55; cursor: not-allowed; border-style: dashed; }
/* الكلمات السلبية */
.neg-list { display: grid; gap: 12px; }
.neg-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.neg-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.neg-h b { font-size: 16px; }
.neg-acts { display: flex; gap: 8px; margin-top: 4px; }
.warn-text { color: var(--warn); }

/* الجداول الصغيرة على الموبايل = كروت: الاسم سطر لوحده، والأرقام تحته كل رقم باسمه (15 نوفمبر) */
@media (max-width: 640px) {
  .conv { overflow: visible; }
  table.cards-m thead { display: none; }
  table.cards-m, table.cards-m tbody { display: block; width: 100%; }
  table.cards-m tbody tr { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.cards-m td { border: 0; padding: 0; }
  table.cards-m td:first-child { flex: 1 0 100%; font-size: 14.5px; }
  table.cards-m td.n { display: inline-flex; align-items: baseline; gap: 5px; text-align: start; font-weight: 700; }
  table.cards-m td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: 12px; font-weight: 600; }
  .conv table.cards-m td.n { text-align: start; }
  .conv table.cards-m .rate { min-width: 0; justify-content: flex-start; }
}
/* صفحة الكلمات: تبويبين سلبية/إيجابية (15 نوفمبر) */
.seg.kw-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 560px; margin-bottom: 16px; }
.seg.kw-tabs button { white-space: normal; line-height: 1.4; }
.checks li .sfx { grid-column: 2 / -1; }

/* ── الاشتراك (15 نوفمبر) ── */
.bl-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: 20px; margin-bottom: 14px; background: linear-gradient(135deg, var(--info-bg), var(--card)); border: 1px solid var(--line); }
.bl-hero.ok { background: linear-gradient(135deg, var(--ok-bg), var(--card)); }
.bl-hero.warn { background: linear-gradient(135deg, var(--warn-bg), var(--card)); }
.bl-hero.bad { background: linear-gradient(135deg, var(--bad-bg), var(--card)); }
.bl-hero > div { display: grid; gap: 6px; min-width: 0; flex: 1; }
.bl-k { font-size: 13px; font-weight: 700; color: var(--muted); }
.bl-v { font: 800 26px/1.3 var(--font-head); color: var(--ink); }
.bl-badge { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 800; font-size: 13px; }
.bl-bar { display: block; height: 8px; border-radius: 6px; background: color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; max-width: 420px; }
.bl-bar > i { display: block; height: 100%; border-radius: 6px; background: var(--accent); transition: width .6s ease; }
.bl-hero.warn .bl-bar > i { background: var(--warn); } .bl-hero.bad .bl-bar > i { background: var(--bad); }
.bl-offer { display: grid; gap: 6px; padding: 16px 20px; margin-bottom: 14px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, var(--brand), var(--accent)); box-shadow: var(--shadow); }
.bl-offer b { font: 800 20px/1.3 var(--font-head); }
.bl-offer span, .bl-offer small { opacity: .92; }
.bl-offer .bl-bar { background: rgba(255, 255, 255, .25); }
.bl-offer .bl-bar > i { background: #fff; }
.bl-pend { font-weight: 700; margin: 0 0 6px; }
.seg.bl-period { margin: 4px 0 16px; }
.bl-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.bl-plan { position: relative; display: grid; align-content: start; gap: 10px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); transition: border-color .15s, box-shadow .15s, transform .15s; }
.bl-plan:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.bl-plan.best { border: 2px solid var(--accent); }
.bl-plan.on { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.bl-plan h3 { margin: 0; font: 800 19px var(--font-head); }
.bl-tag { position: absolute; top: -11px; inset-inline-start: 16px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
.bl-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.bl-price s { color: var(--muted); font-size: 15px; }
.bl-price b { font: 800 28px/1.1 var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.bl-price span { color: var(--muted); font-size: 13px; }
.bl-feat { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.bl-feat li { padding-inline-start: 22px; position: relative; }
.bl-feat li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--growth); font-weight: 900; }
.bl-plan .btn { width: 100%; justify-content: center; margin-top: auto; }
.bl-pay { scroll-margin-top: 140px; }
.bl-step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bl-step > div { display: grid; gap: 8px; min-width: 0; }
.bl-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--info-bg); color: var(--info); font: 800 14px var(--font-head); font-style: normal; }
.bl-amount { display: flex; align-items: center; gap: 12px; }
.bl-amount span { font: 800 26px var(--font-head); font-variant-numeric: tabular-nums; }
.bl-methods { display: grid; gap: 8px; }
.bl-m { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; }
.bl-m.on { border-color: var(--accent); background: color-mix(in srgb, var(--info-bg) 60%, var(--card)); }
.bl-m > div { display: grid; gap: 6px; min-width: 0; }
.bl-acc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bl-acc code { font-size: 16px; font-weight: 700; direction: ltr; unicode-bidi: isolate; padding: 4px 10px; border-radius: 8px; background: var(--bg); }
.bl-ref { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 16px var(--font-body); direction: ltr; max-width: 320px; }
.bl-drop { display: grid; gap: 4px; justify-items: center; padding: 18px; border: 2px dashed var(--line); border-radius: 14px; cursor: pointer; text-align: center; font-weight: 700; color: var(--accent); }
.bl-drop:hover, #bl-file:focus-visible + .bl-drop { border-color: var(--accent); background: var(--info-bg); }
.bl-prev { max-width: 220px; max-height: 300px; border-radius: 12px; border: 1px solid var(--line); object-fit: contain; }
.bl-go { display: grid; gap: 6px; justify-items: start; padding-top: 16px; }
.bad-text { color: var(--bad); }
@media (max-width: 640px) { .bl-hero { flex-direction: column; align-items: flex-start; } .bl-v { font-size: 22px; } .bl-go .btn { width: 100%; justify-content: center; } }
.bl-units { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.bl-units > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.st { display: flex; align-items: center; gap: 12px; }
.st b { min-width: 2ch; text-align: center; font: 800 20px var(--font-head); font-variant-numeric: tabular-nums; }
.st-b { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 800 18px var(--font-body); cursor: pointer; }
.st-b:disabled { opacity: .4; cursor: default; }
/* شريط الاشتراك (15 نوفمبر) */
.trial-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 28px 0; padding: 12px 16px; border-radius: 14px; font-weight: 700; max-width: 1264px; }
.trial-bar.warn { background: var(--warn-bg); color: var(--warn); }
.trial-bar.bad { background: var(--bad-bg); color: var(--bad); }
@media (max-width: 900px) { .trial-bar { margin: 12px 16px 0; } }
/* نشاطك كما نفهمه (15 نوفمبر) */
.bf-card { margin-bottom: 16px; }
.bf-card > summary { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; cursor: pointer; font-size: 17px; list-style: none; }
.bf-card > summary::-webkit-details-marker { display: none; }
.bf-card > summary::after { content: ''; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); margin-inline-start: auto; }
.bf-card[open] > summary::after { transform: rotate(-135deg); }
.bf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.bf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.bf-chip.ok { background: var(--ok-bg); color: var(--ok); }
.bf-chip.no { background: var(--bad-bg); color: var(--bad); }
.bf-chip small { font-weight: 500; opacity: .85; }
.bf-x { width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .08); color: inherit; font: 800 14px/1 var(--font-body); cursor: pointer; }
.bf-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.bf-word { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 2px 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.bf-word small { grid-column: 1; }
.bf-act { grid-column: 2; grid-row: 1 / 3; display: flex; gap: 6px; }
.bf-yes, .bf-no { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font: 800 16px var(--font-body); cursor: pointer; }
.bf-yes { color: var(--ok); } .bf-yes:hover { background: var(--ok-bg); }
.bf-no { color: var(--bad); } .bf-no:hover { background: var(--bad-bg); }
.kw-note { direction: rtl; unicode-bidi: plaintext; font-size: 16px; }
.ok-text { color: var(--ok); }
.au-card { margin-bottom: 16px; }
.au-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.au-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; background: var(--bg); line-height: 1.7; }
.au-list li i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 800 13px var(--font-body); font-style: normal; margin-top: 3px; }
.au-list li.bad i { background: var(--bad-bg); color: var(--bad); } .au-list li.warn i { background: var(--warn-bg); color: var(--warn); } .au-list li.info i { background: var(--info-bg); color: var(--info); }
.bf-about { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 500 15px/1.7 var(--font-body); resize: vertical; }
.bf-chip.fear { background: var(--info-bg); color: var(--info); }
/* إجراءات الزيارة والممنوعون (15 نوفمبر) */
.v-acts-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bk-list li { grid-template-columns: auto 1fr auto; align-items: center; }
.ltr { direction: ltr; unicode-bidi: isolate; }
/* ثبّت التطبيق (15 نوفمبر) */
.side-install { padding: 4px 12px 0; }
.side-install-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--info-bg) 60%, transparent); color: var(--accent); font: 700 15px var(--font-body); cursor: pointer; text-align: start; }
.side-install-btn:hover { background: var(--info-bg); }
/* تحليل الحملة (15 نوفمبر) */
.an-hero { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; margin-bottom: 16px; }
.an-ring .ring { width: 140px; height: 140px; }
.an-hero-t h2 { margin: 0 0 4px; }
.an-weak { margin: 10px 0 6px; padding: 10px 14px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-weight: 700; }
.an-weak.ok { background: var(--ok-bg); color: var(--ok); }
.an-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.an-sec { margin-bottom: 12px; border-inline-start: 4px solid var(--ok); }
.an-sec.warn { border-inline-start-color: var(--warn); } .an-sec.bad { border-inline-start-color: var(--bad); }
.an-sec.weakest { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 25%, transparent); }
.an-sec-h { display: flex; align-items: center; gap: 10px; }
.an-sec-h h3 { margin: 0; font: 800 17px var(--font-head); flex: 1; }
.an-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); font: 800 13px var(--font-head); }
.an-pts { font-size: 13px; color: var(--muted); font-weight: 700; }
.an-items { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.an-it { display: grid; grid-template-columns: 24px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg); line-height: 1.7; }
.an-it .an-txt { display: grid; gap: 2px; min-width: 0; }
.an-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 800 13px var(--font-body); font-style: normal; }
.an-it.ok .an-ic { background: var(--ok-bg); color: var(--ok); } .an-it.warn .an-ic { background: var(--warn-bg); color: var(--warn); } .an-it.bad .an-ic { background: var(--bad-bg); color: var(--bad); } .an-it.info .an-ic { background: var(--info-bg); color: var(--info); }
@media (max-width: 640px) { .an-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .an-it { grid-template-columns: 24px 1fr; } .an-it > .btn { grid-column: 2; justify-self: start; } }
/* مزايا الباقة من الـ checklist · الخصم · الكوبون (15 نوفمبر) */
.bl-feat.bl-ck li.no { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.bl-feat.bl-ck li.no::before { content: '✕'; color: var(--muted); font-weight: 700; }
.bl-disc { color: var(--growth); font-weight: 700; }
.bl-cp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.bl-cp .bl-ref { max-width: 220px; text-transform: uppercase; }
.bl-cp.ok, .bl-cp.warn { padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.bl-cp.ok { background: color-mix(in srgb, var(--growth) 12%, transparent); color: var(--growth); font-weight: 700; }
.bl-cp.warn { background: var(--warn-bg, #fff6e0); color: var(--warn, #9a6700); }
/* تحليل الحملة: القمع والتشخيص ومتابعة الإصلاح (15 نوفمبر) */
.an-funnel .fn { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.fn-step { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.fn-step.leak { background: var(--bad-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 40%, transparent); }
.fn-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fn-h > span:first-child { font-weight: 700; }
.fn-h b { font: 800 20px var(--font-head); font-variant-numeric: tabular-nums; }
.fn-bar { display: block; height: 12px; border-radius: 8px; background: color-mix(in srgb, var(--line) 60%, transparent); overflow: hidden; }
.fn-bar > i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--accent), #2bb3e6); transition: width .5s ease; }
.fn-step:last-child .fn-bar > i { background: linear-gradient(90deg, var(--growth), #7ed957); }
.fn-step.leak .fn-bar > i { background: var(--bad); }
.fn-money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.fn-money > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.fn-money span { font-size: 13px; color: var(--muted); } .fn-money b { font: 800 18px var(--font-head); }
.fn-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; line-height: 1.8; }
.fn-note.bad { background: var(--bad-bg); color: var(--bad); } .fn-note.ok { background: var(--ok-bg); color: var(--ok); }
.an-dx-list { display: grid; gap: 12px; margin-top: 12px; }
.dx { display: grid; gap: 8px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); border-inline-start: 5px solid var(--warn); background: var(--card); }
.dx.bad { border-inline-start-color: var(--bad); } .dx.info { border-inline-start-color: var(--info); } .dx.fixed { border-inline-start-color: var(--ok); opacity: .85; }
.dx-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dx-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--card); font-weight: 800; font-size: 13px; }
.dx-what { margin: 0; font-weight: 800; font-size: 16px; line-height: 1.7; }
.dx-why { margin: 0; color: var(--muted); line-height: 1.8; }
.dx-how { padding: 10px 14px; border-radius: 12px; background: var(--bg); }
.dx-how ol { margin: 6px 0 0; padding-inline-start: 20px; display: grid; gap: 4px; line-height: 1.8; }
.dx-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dx-note { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--card); color: inherit; resize: vertical; }
.dx-done { margin: 0; color: var(--ok); }
.an-fixes .fx-list { display: grid; gap: 12px; margin-top: 10px; }
.fx { display: grid; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); }
.fx.better { border-color: var(--ok); } .fx.worse { border-color: var(--bad); }
.fx-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fx-note { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--bg); }
.fx-tbl th, .fx-tbl td { text-align: start; font-variant-numeric: tabular-nums; }
.fx-tbl tr.main th, .fx-tbl tr.main td { font-weight: 800; }
.fx-tbl td.up { color: var(--ok); font-weight: 800; } .fx-tbl td.down { color: var(--bad); font-weight: 800; }
.an-bars { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; }
.an-bars li { display: grid; grid-template-columns: 170px 1fr 64px; gap: 10px; align-items: center; font-size: 14px; }
.an-bars li.weakest span { font-weight: 800; color: var(--bad); }
.an-bar { display: block; height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.an-bar > i { display: block; height: 100%; background: var(--ok); } .an-bar.warn > i { background: var(--warn); } .an-bar.bad > i { background: var(--bad); }
.an-ok summary { cursor: pointer; font-weight: 700; color: var(--ok); }
.an-ok ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; color: var(--muted); }
@media (max-width: 640px) { .fn-money { grid-template-columns: 1fr; } .an-bars li { grid-template-columns: 1fr 56px; } .an-bars li .an-bar { grid-column: 1 / -1; grid-row: 2; } .dx-acts .btn { flex: 1 1 100%; justify-content: center; } }
/* الكلمات بالنتيجة (15 نوفمبر) */
.oc-level { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--info-bg); color: var(--ink); line-height: 1.8; }
.oc-level.won { background: var(--ok-bg); } .oc-level.conv, .oc-level.none { background: var(--warn-bg); }
.oc-say { margin: 0; font-weight: 700; line-height: 1.8; }
.oc-watch { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.oc-watch li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--bg); }
.oc-kw td, .oc-kw th { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bf-sample { display: block; color: var(--muted); font-size: 12px; }
.conv-real { margin: 10px 0; padding: 12px; border-radius: 12px; border: 1px dashed var(--line); display: grid; gap: 6px; justify-items: start; }

/* صفحة الاشتراك (تصميم 15 نوفمبر): السعر والزرار فوق · الحدود أرقام كبيرة · المزايا ✓ ثم ✗ */
.bl-plans { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
.bl-plan { padding: 24px 22px; gap: 12px; }
.bl-plan > .btn { order: 4; margin-top: 4px; }
.bl-plan > .bl-units { order: 3; }
.bl-plan > .bl-lims { order: 5; } .bl-plan > .bl-feat { order: 6; }
.bl-plan.best { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, var(--card)), var(--card) 40%); }
.bl-lims { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bl-lim { display: grid; gap: 2px; text-align: center; }
.bl-lim b { font: 800 22px/1.1 var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.bl-lim small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.bl-feat.bl-ck { gap: 9px; }
.bl-feat.bl-ck li { line-height: 1.5; }
.bl-feat.bl-ck li.no { opacity: .6; }
.st-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
/* الاشتراك: الاستهلاك · المقارنة · الملخص · الأمان (16 نوفمبر) */
.bl-usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 14px; }
.bl-use { display: grid; gap: 8px; }
.bl-use-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.bl-use-h b { font-variant-numeric: tabular-nums; }
.bl-bar.warn > i { background: var(--warn); } .bl-bar.bad > i { background: var(--bad); }
.bl-cmp { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; }
.bl-cmp > summary { cursor: pointer; padding: 14px 0; font-weight: 800; }
.bl-cmp-t th small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.bl-cmp-t td { text-align: center; font-weight: 800; } .bl-cmp-t td.yes { color: var(--growth); } .bl-cmp-t td.no { color: var(--muted); font-weight: 400; }
.bl-cmp-t tbody th { text-align: start; font-weight: 400; }
.bl-paynow { margin-top: 6px; justify-content: center; }
.bl-sum { margin: 14px 0 6px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.bl-sum dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 10px 0 0; }
.bl-sum dt { color: var(--muted); } .bl-sum dd { margin: 0; font-weight: 700; text-align: end; }
.bl-sum dd:last-of-type { font: 800 20px var(--font-head); color: var(--ink); }
.bl-safe { margin: 8px 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--ink); line-height: 1.8; font-size: 14px; }
/* حسابي والإعدادات */
.set-grid { margin-bottom: 14px; align-items: start; }
.set-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.set-f { display: grid; gap: 4px; margin: 0 0 12px; } .set-f span { font-size: 14px; color: var(--muted); } .set-f .bl-in { width: 100%; }
.set-phone { display: flex; gap: 8px; direction: ltr; } .set-phone .bl-in { flex: 1; min-width: 0; }
.set-msg { margin: -6px 0 12px; } .set-msg.bad { color: var(--bad); }
.bl-country { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .bl-country .bl-in { flex: 1; min-width: 200px; } .bl-country.line { margin: 0 0 12px; }
.set-sites { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.set-sites li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.set-sites li > div { display: grid; gap: 2px; }
.set-acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.ss-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ss-ads { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bl-qr { display: grid; justify-items: center; gap: 6px; margin-top: 8px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); max-width: 220px; }
.bl-qr-img { width: 160px; height: 160px; image-rendering: pixelated; }
@media (max-width: 640px) { .bl-qr { display: none; } }
/* المساعد الذكي (16 نوفمبر) */
.ai-fab { position: fixed; inset-inline-end: 18px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: linear-gradient(120deg, #1a6fe8, #22b14c); color: #fff; font: 800 15px var(--font-head, inherit); box-shadow: 0 10px 30px rgba(26, 111, 232, .35); cursor: pointer; }
.ai-fab .ic { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.ai-btn { display: inline-flex; align-items: center; gap: 6px; } .ai-btn .ic { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
@media (max-width: 760px) { .ai-fab { bottom: 84px; width: 54px; height: 54px; padding: 0; justify-content: center; } .ai-fab b { display: none; } .ai-fab .ic { width: 26px; height: 26px; } }
.ai-tasks { margin-bottom: 10px; }
.ai-log { display: grid; gap: 10px; max-height: 58vh; overflow-y: auto; padding: 4px 2px 10px; }
.ai-msg { max-width: 92%; padding: 10px 14px; border-radius: 16px; line-height: 1.8; }
.ai-msg p { margin: 0; white-space: pre-wrap; }
.ai-msg.bot { background: var(--bg); border: 1px solid var(--line); justify-self: start; border-end-start-radius: 4px; }
.ai-msg.me { background: var(--accent, #1a6fe8); color: #fff; justify-self: end; border-end-end-radius: 4px; }
.ai-fb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.ai-prop { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px dashed var(--accent, #1a6fe8); display: grid; gap: 6px; }
.ai-prop ul { margin: 2px 0 0; padding-inline-start: 18px; }
.ai-bar { display: grid; gap: 8px; width: 100%; }
.ai-in { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--card); color: inherit; resize: none; }
.ai-btns { display: flex; gap: 8px; justify-content: flex-end; }
.ai-mic.on { color: var(--bad); border-color: var(--bad); animation: ai-pulse 1s ease-in-out infinite; }
@keyframes ai-pulse { 50% { opacity: .5; } }
.drawer:not([hidden]) ~ .ai-fab { display: none; }
/* صفحة الاشتراك: تصميم أغنى (16 نوفمبر) */
.bl-plans { gap: 20px; }
.bl-plan { padding: 26px 22px 22px; border-radius: 22px; box-shadow: 0 8px 28px rgba(11, 31, 77, .07); overflow: visible; }
.bl-plan::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: 22px 22px 0 0; background: linear-gradient(90deg, var(--line), var(--line)); }
.bl-plan.best::before { background: linear-gradient(90deg, #1a6fe8, #00a8f0, #22b14c); }
.bl-plan.best { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, #1a6fe8, #22b14c) border-box; box-shadow: 0 16px 40px rgba(26, 111, 232, .18); }
.bl-plan.mine { box-shadow: 0 0 0 3px color-mix(in srgb, var(--growth) 35%, transparent), 0 8px 28px rgba(11, 31, 77, .07); }
.bl-plan-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bl-plan-h h3 { flex: 1; font-size: 21px; }
.bl-plan-h .bl-tag { position: static; }
.bl-mine { padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--growth); font-size: 12px; font-weight: 800; }
.bl-price b { font-size: 36px; letter-spacing: -.5px; }
.bl-feat.bl-ck li { padding-inline-start: 30px; }
.bl-feat.bl-ck li::before { width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--ok-bg); font-size: 12px; top: 2px; }
.bl-feat.bl-ck li.no::before { background: var(--bg); }
.bl-plan > .btn { padding: 13px; font-size: 16px; border-radius: 14px; }
.bl-plan.best > .btn:not(.ghost), .bl-plan.best > .btn.ghost { background: linear-gradient(120deg, #1a6fe8, #22b14c); color: #fff; border: 0; }
.bl-cmp { margin-top: 22px; border-radius: 18px; padding: 0; overflow: hidden; background: var(--card); box-shadow: 0 8px 28px rgba(11, 31, 77, .06); }
.bl-cmp > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; font-size: 16px; }
.bl-cmp > summary::-webkit-details-marker { display: none; }
.bl-cmp[open] > summary i { transform: rotate(180deg); }
.bl-cmp > summary i { font-style: normal; transition: transform .2s; color: var(--muted); }
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--line); }
.cmp-t { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 520px; font-size: 14px; }
.cmp-t th, .cmp-t td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp-t .cmp-f { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--card); text-align: start; font-weight: 500; min-width: 170px; box-shadow: -1px 0 0 var(--line) inset; }
.cmp-t thead th { background: var(--bg); vertical-align: top; }
.cmp-t thead th b { display: block; font: 800 15px var(--font-head); }
.cmp-t thead th small { color: var(--muted); font-size: 12px; }
.cmp-t thead th.best { background: color-mix(in srgb, #1a6fe8 10%, var(--card)); }
.cmp-t thead .cmp-f { background: var(--bg); font-weight: 800; }
.cmp-t tr.lim td { font: 800 16px var(--font-head); color: var(--ink); }
.cmp-t td.yes span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ok-bg); color: var(--growth); font-weight: 900; }
.cmp-t td.no span { color: var(--muted); opacity: .6; }
.cmp-t tbody tr:last-child th, .cmp-t tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) { .bl-price b { font-size: 32px; } .cmp-t .cmp-f { min-width: 140px; } }
@media (max-width: 640px) {
  .cmp-t { min-width: 0; font-size: 13px; table-layout: fixed; }
  .cmp-t th, .cmp-t td { padding: 10px 6px; }
  .cmp-t .cmp-f { min-width: 0; width: 38%; }
  .cmp-t thead th b { font-size: 13px; } .cmp-t thead th small { font-size: 11px; }
  .cmp-t tr.lim td { font-size: 14px; }
}

/* ── قواعد الحماية (16 نوفمبر) ── */
.ru-note { background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; }
.ru-mode-d { margin: 6px 0 10px; }
.ru-mode-d p { margin: 0 0 6px; }
.ru-list { margin: 4px 0 0; padding-inline-start: 22px; }
.ru-list li { margin: 3px 0; }
.ru-list.ok li::marker { color: var(--growth); }
.ru-never { background: var(--bg); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.ru-rules { display: grid; gap: 8px; margin: 10px 0 16px; }
.ru-rule { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.ru-rule.off { opacity: .55; }
.ru-t { display: grid; gap: 2px; min-width: 0; }
.ru-x { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 4px; }
.ru-pts { display: inline-flex; align-items: center; gap: 6px; }
.ru-num { width: 72px; font: inherit; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: center; }
.ru-sw { position: relative; display: inline-block; width: 42px; height: 24px; cursor: pointer; }
.ru-sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ru-swt { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .15s; pointer-events: none; }
.ru-swt::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.ru-sw input:checked + .ru-swt { background: var(--accent); }
.ru-sw input:checked + .ru-swt::after { inset-inline-start: 21px; }
.ru-sw input:focus-visible + .ru-swt { outline: 2px solid var(--accent); outline-offset: 2px; }
.ru-th { display: flex; flex-wrap: wrap; gap: 16px; margin: 6px 0 10px; }
.ru-th label { display: inline-flex; align-items: center; gap: 8px; }
.ru-meter { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin: 6px 0 4px; }
.ru-meter .m-real { background: var(--c-real); } .ru-meter .m-sus { background: var(--c-sus); } .ru-meter .m-high { background: var(--c-blk); }
.ru-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ru-day { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.ru-dv { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.ru-steps { margin: 0; padding-inline-start: 22px; } .ru-steps li { margin: 6px 0; }
.ru-soon { margin: 12px 0 0; }
.ru-bar { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; padding-inline-end: 200px; background: var(--bg); z-index: 2; }
.bk-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 720px) {
  .ru-days { grid-template-columns: 1fr; }
  .ru-rule { grid-template-columns: auto 1fr; }
  .ru-pts { grid-column: 2; }
}
@media (max-width: 900px) {
  .ru-bar { flex-wrap: nowrap; padding-inline-end: 64px; padding-block: 8px; bottom: calc(64px + env(safe-area-inset-bottom)); }
  .ru-bar .btn { flex: 1; min-width: 0; padding-inline: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ru-bar small { display: none; }
}

/* ── تقرير الخبير لتحليل الحملة (16 نوفمبر) ── */
.ex-hero h2 { margin: 0 0 8px; }
.ex-lead { font-size: 17px; line-height: 1.8; margin: 0 0 14px; }
.ex-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.ex-kpis > div { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.ex-kpis span { font-size: 13px; color: var(--muted); }
.ex-kpis b { font-size: 20px; font-family: var(--font-head, inherit); }
.ex-kpis .save { border-color: color-mix(in srgb, var(--growth) 50%, var(--line)); }
.ex-kpis .save b { color: var(--growth); }
.ex-top { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--c-blk) 10%, var(--card)); border-inline-start: 4px solid var(--c-blk); margin: 0 0 10px; line-height: 1.7; }
.ex-top.ok { background: color-mix(in srgb, var(--growth) 10%, var(--card)); border-color: var(--growth); }
.ex-impact { margin-inline-start: auto; }
.fn-bar.bad > i { background: var(--c-blk); } .fn-bar.warn > i { background: var(--c-sus); } .fn-bar.ok > i { background: linear-gradient(90deg, var(--growth), #7ed957); } .fn-bar.info > i { background: var(--c-mute); }
.ex-t td .ex-exp { display: block; margin-top: 2px; }
.an-check > summary { cursor: pointer; padding: 4px 0; list-style-position: inside; }
.an-check[open] > summary { margin-bottom: 8px; }
@media (max-width: 720px) { .ex-kpis { grid-template-columns: repeat(2, 1fr); } .ex-kpis b { font-size: 17px; } }

/* ── حسّن حملتك بضغطة (16 نوفمبر) ── */
.cf { border: 2px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.cf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cf-head h2 { margin: 0 0 4px; }
.cf-list { display: grid; gap: 10px; margin-top: 14px; }
.cf-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.cf-cb input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }
.cf-main { display: grid; gap: 6px; min-width: 0; }
.cf-t { font-size: 16px; }
.cf-diff { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.cf-now { padding: 4px 10px; border-radius: 8px; background: color-mix(in srgb, var(--c-blk) 10%, var(--card)); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--c-blk) 60%, transparent); }
.cf-next { padding: 4px 10px; border-radius: 8px; background: color-mix(in srgb, var(--growth) 14%, var(--card)); font-weight: 700; }
.cf-arrow { color: var(--muted); }
.cf-ev { margin: 0; } .cf-why { margin: 0; font-size: 13.5px; }
.cf-side { display: grid; gap: 8px; justify-items: end; }
.cf-done { margin-top: 16px; } .cf-done ul { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.cf-done li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .cf-done li.undone { opacity: .6; }
@media (max-width: 720px) {
  .cf-item { grid-template-columns: auto 1fr; }
  .cf-side { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; }
  .cf-head .btn { width: 100%; }
}

/* ── تحسين الحملة (16 نوفمبر) ── */
.op-hero-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.op-hero-h h2 { margin: 0; }
.op-plan-h { margin: 18px 0 2px; font-size: 18px; }
.ex-kpis .bad { border-color: color-mix(in srgb, var(--c-blk) 50%, var(--line)); } .ex-kpis .bad b { color: var(--c-blk); }
.op-list { display: grid; gap: 10px; margin-top: 10px; }
.dx.op .cf-t { display: block; margin: 6px 0 4px; }
.dx.op.compact { padding-block: 12px; }
.op-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; margin: 8px 0 6px; scrollbar-width: thin; }
.op-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; font-size: 14px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; white-space: nowrap; }
.op-tabs button[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.op-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 12px; background: var(--c-sus); color: #fff; }
.op-n.bad { background: var(--c-blk); }
.op-tabs button[aria-selected="true"] .op-n { background: #fff; color: var(--accent); }
.op-lwhy { margin: 6px 0 10px; padding: 10px 14px; border-radius: 12px; background: var(--bg); line-height: 1.75; }
.op-kwlist { margin: 4px 0; padding-inline-start: 20px; display: grid; gap: 2px; font-size: 14px; }
.op-wait { margin: 0; font-size: 13.5px; color: var(--muted); }
.op-editor { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 12px; background: var(--bg); }
.op-f { display: grid; gap: 4px; position: relative; min-width: 0; }
.op-f input, .op-f textarea { width: 100%; font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.op-cnt { justify-self: end; font-size: 12px; color: var(--muted); } .op-cnt.over { color: var(--c-blk); font-weight: 800; }
.op-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.op-row:has(> .op-f + .op-f) { grid-template-columns: 1fr 1fr; }
.op-row select { width: auto; min-width: 120px; }
.op-fs { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 8px; margin: 0; }
.op-valbox { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.op-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 720px) {
  .op-values { grid-template-columns: 1fr; }
  .op-row, .op-row:has(> .op-f + .op-f) { grid-template-columns: 1fr; }
  .op-row select { width: 100%; }
}
.op-measure { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
/* الحزمة ١: سلّم الإشارة */
.sig-kpis > div { gap: 2px; } .sig-kpis small { font-size: 11.5px; }
.lad-steps { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lad-step { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.lad-step.ok { border-color: color-mix(in srgb, var(--growth) 45%, var(--line)); }
.lad-step.on { box-shadow: 0 0 0 2px var(--accent) inset; }
.lad-auto { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.lad-auto p { margin: 0; }
@media (max-width: 720px) { .lad-steps { grid-template-columns: 1fr; } }

/* كشف الحساب (18 نوفمبر): الباقة والدفعة القادمة وجدول المدفوعات */
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; margin-bottom: 14px; }
.st-kv { display: grid; gap: 2px; } .st-kv b { font-size: 16px; }
.st-next { display: grid; gap: 6px; justify-items: start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); border-inline-start: 5px solid var(--growth); background: var(--bg); margin-bottom: 14px; }
.st-next.warn { border-inline-start-color: var(--warn); } .st-next.bad { border-inline-start-color: var(--bad); }
.st-tbl td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-why { display: block; max-width: 220px; }
@media (max-width: 720px) {
  .st-tbl thead { display: none; } .st-tbl, .st-tbl tbody, .st-tbl tr, .st-tbl td { display: block; }
  .st-tbl tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; }
  .st-tbl td { border: 0; padding: 5px 0; display: flex; justify-content: space-between; gap: 12px; }
  .st-tbl td::before { content: attr(data-l); color: var(--muted); font-size: 13px; }
}
@media print { .bl-plans { display: none !important; } .st-tbl thead { display: table-header-group; } }

/* روابط الصفحات العامة تحت «تسجيل الخروج» */
.side-legal { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.side-legal a { color: var(--muted); text-decoration: none; padding: 3px 4px; border-radius: 6px; }
.side-legal a:hover { color: var(--ink); text-decoration: underline; }

/* القايمة: خمس مجموعات (الخطة ٤.١) */
.nav-group { display: grid; gap: 1px; margin-bottom: 6px; }
.side-nav a.nav-g { font-weight: 800; }
.side-nav a.nav-sub { padding-inline-start: 44px; font-size: 14px; min-height: 34px; color: var(--muted); }
.side-nav a.nav-sub[aria-current="page"] { color: var(--accent); background: var(--info-bg, var(--bg)); }
.sub-bar-slot:empty { display: none; }
.sub-bar { display: flex; gap: 6px; overflow-x: auto; padding: 10px 28px 0; scrollbar-width: none; }
.sub-bar::-webkit-scrollbar { display: none; }
.sub-bar a, .sub-bar .sub-more { flex: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.sub-bar a[aria-current="page"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.bottom-nav a.home { color: var(--accent); }
@media (max-width: 900px) { .sub-bar { padding: 10px 16px 0; } }

/* متابعة الإصلاحات: قبل/بعد برسم (22 نوفمبر) */
.fx-viz { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.fx-m { border: 1px solid var(--line, #e5e7eb); border-radius: 10px; padding: 10px 12px; }
.fx-m.main { border-color: var(--brand, #1a73e8); }
.fx-mh { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.fx-tbl-d { margin-top: 8px; }
.fx-tbl-d summary { cursor: pointer; color: var(--muted, #6b7280); font-size: .9em; }

/* القايمة (22 نوفمبر · محمود: «شكل وترتيب وتدرج لوني، والتفرعات أوضح وخصوصًا على الموبايل») */
:root { --nav-grad: linear-gradient(135deg, var(--accent) 0%, #5b4bdb 100%); }
.nav-group { border-radius: 14px; padding: 2px; transition: background .2s; }
.nav-group.open { background: var(--info-bg, var(--bg)); padding-bottom: 6px; }
.side-nav .nav-group.open > a.nav-g { background: var(--nav-grad); color: #fff; box-shadow: 0 4px 14px rgba(26, 115, 232, .25); }
.side-nav .nav-group.open > a.nav-g svg { color: #fff; stroke: #fff; }
.side-nav .nav-group:not(.open) > a.nav-sub { display: none; }
.side-nav a.nav-sub { position: relative; margin-inline-start: 22px; padding-inline-start: 22px; border-inline-start: 2px solid var(--line); border-radius: 0 10px 10px 0; }
[dir="rtl"] .side-nav a.nav-sub { border-radius: 10px 0 0 10px; }
.side-nav a.nav-sub::before { content: ""; position: absolute; inset-inline-start: -5px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--line); }
.side-nav a.nav-sub[aria-current="page"] { color: var(--accent); font-weight: 800; background: var(--card); border-inline-start-color: var(--accent); }
.side-nav a.nav-sub[aria-current="page"]::before { background: var(--accent); }
.sub-bar a[aria-current="page"] { background: var(--nav-grad); border-color: transparent; box-shadow: 0 3px 10px rgba(26, 115, 232, .25); }
@media (max-width: 900px) {
  .sub-bar-slot { position: sticky; top: 0; z-index: 20; background: var(--bg); padding-bottom: 8px; }
  .bottom-nav a[aria-current] { color: #fff; background: var(--nav-grad); }
  .bottom-nav a[aria-current] svg { stroke: #fff; color: #fff; }
  .bottom-nav a.home:not([aria-current]) { color: var(--accent); }
}

/* أضف موقعك (22 نوفمبر) */
.as-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; padding: 0; margin: 14px 0 22px; }
.as-steps li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bg); color: var(--muted); font-weight: 700; font-size: 14px; }
.as-steps li .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink); font-size: 13px; flex: none; }
.as-steps li.on { background: var(--info-bg); color: var(--accent); } .as-steps li.on .n { background: var(--accent); color: #fff; }
.as-steps li.done { color: var(--ok); } .as-steps li.done .n { background: var(--ok); color: #fff; }
.as-q { font-weight: 800; font-size: 18px; margin: 0 0 12px; }
.as-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.as-type { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: start; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font: inherit; }
.as-type:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--info-bg); }
.as-type .as-ic { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--info-bg); color: var(--accent); font-weight: 900; }
.as-type b { font-size: 16px; } .as-type small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.as-chosen { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.as-url { max-width: 420px; }
.as-howto { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; }
.as-howto li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.as-howto li .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; }
.as-howto li > pre, .as-howto li > .dx-acts { grid-column: 2; }
.as-code { margin: 4px 0 0; padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); overflow-x: auto; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; }
.as-wait { display: flex; align-items: center; gap: 10px; color: var(--muted); }
@media (max-width: 900px) { .as-types { grid-template-columns: 1fr 1fr; } .as-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .as-types { grid-template-columns: 1fr; } }
/* صفحة «أضف موقعك» (23 نوفمبر): الطريقة الأنسب أولًا والباقي مطوي */
.sa-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 10px 0; }
.sa-card.best { border-color: var(--accent); border-width: 2px; }
.sa-card h3 { margin: 0 0 4px; font-size: 1rem; }
.sa-card .dx-acts { flex-wrap: wrap; }
.sa-more { margin: 12px 0; }
.sa-more > summary, .sa-steps > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
/* الاستهداف في «إعدادات الموقع» */
.tg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.tg-chips .chip { display: inline-flex; align-items: center; gap: 2px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.tg-chips .chip:disabled { cursor: default; }
/* التتبع والأزرار في «إعدادات الموقع» */
.ss-tog { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.ss-tog input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.ss-tog b { display: block; }
.ss-adv { margin: 12px 0; }
.ss-adv > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.ss-rule { display: grid; grid-template-columns: 1fr 140px auto; gap: 6px; margin: 6px 0; }
@media (max-width: 520px) { .ss-rule { grid-template-columns: 1fr auto; } .ss-rule select { grid-column: 1 / -1; grid-row: 2; } }
/* الاشتراك: بطاقة بنكية (Paymob) · تحويل بنكي · Binance */
.bl-brands { display: flex; gap: 4px; flex-wrap: wrap; }
.bl-brands i { font-style: normal; font-weight: 800; font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); color: #1a1f71; background: #fff; }
.bl-kv { font-size: 14px; }
/* قياس التحسين: 30 يوم قبل ↔ 30 يوم بعد (24 نوفمبر) */
.ms-card h2 { margin: 0 0 6px; }
.ms-acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.ms-bar { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; margin: 6px 0 14px; }
.ms-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--nav-grad, linear-gradient(90deg, var(--accent), #5b4bdb)); transition: width .5s ease; }
.ms-tbl th[scope="row"] { font-weight: 700; text-align: start; }
.ms-tbl td { white-space: nowrap; }
.ms-tbl tr.up .ms-d { color: var(--ok); font-weight: 800; }
.ms-tbl tr.down .ms-d { color: var(--bad); font-weight: 800; }
/* الخطة ٤.٢: جاهزية الحملة */
.rd-card { padding: 0; overflow: hidden; }
.rd-sum { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 16px 20px; cursor: pointer; list-style: none; }
.rd-sum::-webkit-details-marker { display: none; }
.rd-ring { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 800 15px var(--font-head, inherit); color: #fff; background: var(--nav-grad, linear-gradient(135deg, var(--accent), #5b4bdb)); }
.rd-ring.ok { background: linear-gradient(135deg, #1d7a1a, #2e9e2a); }
.rd-t { display: grid; gap: 2px; } .rd-t b { font-size: 16.5px; }
.rd-bar { grid-column: 2; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.rd-bar i { display: block; height: 100%; border-radius: 6px; background: var(--nav-grad, linear-gradient(90deg, var(--accent), #5b4bdb)); transition: width .5s ease; }
.rd-list { list-style: none; margin: 0; padding: 0 20px 16px; display: grid; gap: 8px; }
.rd-list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.rd-list li.ok { background: var(--ok-bg); border-color: transparent; }
/* ب٢: القسم التاني في نفس البطاقة: ملف النشاط */
.rd-brief { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; margin: 0 20px 16px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.rd-brief .rd-ring { grid-row: auto; width: 44px; height: 44px; font-size: 13px; }
.rd-brief.ok { background: var(--ok-bg); border-style: solid; border-color: transparent; }
.rd-brief .rd-txt { display: grid; gap: 2px; min-width: 0; }
@media (max-width: 480px) { .rd-brief { grid-template-columns: 44px 1fr; } .rd-brief .btn { grid-column: 1 / -1; justify-self: start; } }
.rd-mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); font-weight: 900; font-size: 13px; }
.rd-list li.ok .rd-mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.rd-txt { display: grid; gap: 1px; }
@media (max-width: 640px) { .rd-list li { grid-template-columns: 26px 1fr; } .rd-list li .btn { grid-column: 2; justify-self: start; } }
/* الخطة ٤.٤: انتهاء التجربة بعدّادات فعلية */
.ex2-card { border: 2px solid color-mix(in srgb, var(--bad) 45%, var(--line)); }
.ex2-card h2 { margin: 0 0 4px; }
.ex2-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 14px 0; }
.ex2-stat { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--bad-bg); }
.ex2-stat b { font: 800 28px var(--font-head, inherit); color: var(--bad); }
.ex2-stat span { font-weight: 700; }

/* ── صفحة الهبوط (الحزمة ٦) ── */
.lp-intro { margin: 0 0 14px; font-size: 14px; }
.lp-card { border-inline-start: 4px solid var(--line); }
.lp-card.lp-priority { border-inline-start-color: var(--bad); }
.lp-card.lp-ok { border-inline-start-color: var(--growth); }
.lp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lp-head h2 { margin: 0 0 2px; font-size: 18px; }
.lp-path { font-size: 12.5px; unicode-bidi: plaintext; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.lp-stat { background: var(--bg); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lp-l { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.lp-stat b { font-size: 20px; line-height: 1.3; }
.lp-stat small { font-size: 12px; }
.lp-sub { margin: 18px 0 8px; font-size: 15px; }
.lp-probs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-probs li { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--bad-bg); }
.lp-probs li b { color: var(--bad); }
.lp-probs li span { font-size: 14px; }
.lp-fix { color: var(--ink); font-weight: 700; font-size: 13px; }
.lp-none { margin: 14px 0 0; }
.lp-kws { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lp-kws li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; font-size: 14px; }
.lp-kws li i { font-style: normal; font-weight: 800; width: 1.2em; text-align: center; color: var(--muted); }
.lp-kws li.ok i { color: var(--growth); }
.lp-kws li.bad i { color: var(--bad); }
.lp-rp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; }
.lp-rp .rp-link { margin-inline-start: 0; }
@media (max-width: 560px) {
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-head { flex-direction: column; gap: 6px; }
}
.lp-stat b.lp-wait { font-size: 14px; color: var(--muted); font-weight: 700; }

/* ── الخريطة الحرارية لصفحة الهبوط (بلجن 2.16.0) ── */
.lp-heat-seg { margin-bottom: 8px; }
.lp-heat-n, .lp-heat-key { font-size: 12.5px; margin: 0 0 8px; }
.lp-heat-key { margin-top: 8px; }
.lp-bands { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lp-bands li { display: grid; grid-template-columns: 92px minmax(0, 1fr) 86px minmax(0, 170px); align-items: center; gap: 10px; font-size: 13px; }
.lp-bl { color: var(--muted); font-weight: 700; font-size: 12px; }
.lp-track { height: 14px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.lp-bar { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--warn), var(--bad)); }
.lp-bv { display: flex; flex-direction: column; line-height: 1.25; }
.lp-bv small { font-size: 11.5px; }
.lp-bt { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.lp-tag { font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.lp-tag.cta { background: var(--info-bg); color: var(--accent); }
.lp-tag.price { background: var(--warn-bg, var(--bg)); color: var(--warn); }
.lp-dead { color: var(--bad); font-size: 12px; font-weight: 700; }
@media (max-width: 560px) {
  .lp-bands li { grid-template-columns: 70px minmax(0, 1fr) 64px; }
  .lp-bt { grid-column: 2 / -1; }
}

/* ── دفتر القرارات (٥.١ + ٨.١) ── */
.led-card h2 { margin: 0 0 4px; }
.led-sum { margin: 0 0 10px; font-size: 14px; }
.led-score { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.led-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.led-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.led-row.better { border-inline-start: 4px solid var(--growth); }
.led-row.worse { border-inline-start: 4px solid var(--bad); }
.led-row.mixed { border-inline-start: 4px solid var(--warn); }
.led-row.rejected, .led-row.undone { opacity: .85; }
.led-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.led-f, .led-why, .led-wait, .led-notes { margin: 0; font-size: 13.5px; }
.led-wait { color: var(--accent); font-weight: 700; }
.led-v { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.led-nums { font-weight: 800; font-size: 14px; }
.led-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.led-sugg { color: var(--bad); font-weight: 700; font-size: 13.5px; }
.led-rules { margin-top: 14px; font-size: 13.5px; }
.led-rules summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.led-rules ul { margin: 8px 0 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.led-rej { display: inline-flex; }
.led-reasons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.led-other { display: flex; gap: 6px; flex-basis: 100%; }
.led-other input { flex: 1; min-width: 0; }
.led-pct { font-weight: 800; }

/* ── روابط التواصل (٦.٦ ج) ── */
.lk-card h2 { margin: 0 0 10px; }
.lk-card.bad { border-inline-start: 4px solid var(--bad); }
.lk-row { border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; }
.lk-row.bad { background: var(--bad-bg); }
.lk-row.bad .lk-t { color: var(--bad); font-size: 15.5px; }
.lk-row p { margin: 0; font-size: 14px; }
.lk-row.warn { background: var(--bg); flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 13.5px; }
.lk-num { font-weight: 800; unicode-bidi: isolate; }
.lk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lk-perm { font-weight: 700; font-size: 13px !important; }
.lk-ok, .lk-note { margin: 4px 0 0; font-size: 13.5px; }
.lk-row.bad.fixed { background: var(--bg); } .lk-row.bad.fixed .lk-t { color: var(--ink); }

/* ── إصلاحات بضغطة (٦.٦ أ وب) ── */
.fx-card h2 { margin: 0 0 10px; }
.fx-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.fx-row p { margin: 0; font-size: 14px; }
.fx-why { color: var(--bad); font-weight: 700; }
.fx-ex { font-size: 13px !important; background: var(--bg); border-radius: 8px; padding: 6px 10px; }
.fx-acts, .fx-st { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fx-row .btn, .fx-row .linkish { align-self: flex-start; }
.fx-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .fx-st b { font-size: 13.5px; }

/* ── تجربة نسختين (٦.٧) ── */
.ab-card h2 { margin: 0 0 4px; }
.ab-intro { margin: 0 0 12px; font-size: 14px; }
.ab-warn { background: var(--warn-bg, var(--bg)); color: var(--warn); font-weight: 700; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.ab-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.ab-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ab-top b { unicode-bidi: plaintext; }
.ab-v { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.ab-row p { margin: 0; font-size: 14px; }
.ab-note { color: var(--warn); font-weight: 700; }
.ab-pv { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ab-seen { color: var(--growth); font-weight: 700; }
.ab-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.ab-req { display: flex; flex-direction: column; gap: 6px; }
.ab-stats { background: var(--bg); border-radius: 10px; padding: 8px 12px; display: grid; gap: 4px; }
.ab-res { font-weight: 700; }
.ab-res.adopt { color: var(--growth); } .ab-res.revert { color: var(--bad); }
.ab-form { display: grid; gap: 10px; border: 1px dashed var(--line); border-radius: 12px; padding: 12px; margin-top: 8px; }
.ab-l { display: grid; gap: 4px; font-size: 13.5px; }
.ab-l input, .ab-l textarea, .ab-l select { width: 100%; box-sizing: border-box; }
.ab-hint { margin: 0; font-size: 13px; }

/* مراجعة العبارات (24 نوفمبر) */
.tr-item .neg-h { flex-wrap: wrap; }
.tr-acts { display: grid; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.tr-acts .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-acts .chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.tr-acts .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg, #fff); border-color: var(--ink); }
.tr-acts .inp.sm { max-width: 260px; padding: 6px 10px; font-size: 13px; }
.tr-imp-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 6px; background: var(--soft, transparent); }
@media (max-width: 640px) { .tr-acts .inp.sm { max-width: 100%; } }
/* ب٣ + ب٧: شاشة الأسئلة (ملف نشاطي) · سؤال واحد في المرة */
.iv-head { display: grid; gap: 8px; margin-bottom: 14px; }
.iv-step { font-weight: 700; color: var(--muted, inherit); font-size: 14px; }
.iv-bar { grid-column: auto; height: 6px; }
.iv-card h2 { font-size: 19px; line-height: 1.5; }
.iv-body { display: grid; gap: 12px; }
.iv-sub { font-size: 15px; margin: 6px 0 0; }
.iv-rows { display: grid; gap: 8px; }
.iv-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.iv-row .bl-in { flex: 1 1 160px; min-width: 0; }
.iv-rank { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--accent); flex: none; }
.iv-opts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.iv-opt { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; min-height: 44px; }
.iv-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.iv-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.iv-modes { display: grid; gap: 8px; }
.iv-modes .btn { justify-content: flex-start; text-align: start; min-height: 48px; }
.iv-hint p { margin: 0 0 8px; }
.iv-sum { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 16px; margin: 0; }
.iv-sum dt { font-weight: 700; } .iv-sum dd { margin: 0; }
.iv-free summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 4px 0; }
.iv-free .iv-text { width: 100%; margin: 8px 0; resize: vertical; }
.btn.on { border-color: var(--accent); color: var(--accent); }
@media (max-width: 480px) { .iv-sum { grid-template-columns: 1fr; } .iv-sum dd { margin-bottom: 6px; } .iv-acts .btn { flex: 1 1 auto; } }
/* ب٧: المقابلة جوه المساعد · اختصارات الرد تحت السؤال (والكتابة متاحة دايمًا) */
.iv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.iv-chips .chip { font: inherit; font-size: 14px; font-weight: 700; border: 1px solid var(--accent); background: transparent; color: var(--accent); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px; text-align: start; }
.iv-chips .chip:hover, .iv-chips .chip.on { background: var(--accent); color: #fff; }
.iv-chips .chip.ghost { border-color: var(--line); color: inherit; }
.iv-chips .chip.ghost:hover { background: var(--line); color: inherit; }
.iv-chat .ai-msg .iv-step { display: block; font-weight: 700; opacity: .7; margin-bottom: 4px; }
.iv-chat .ai-msg .iv-sum { margin-top: 8px; font-size: 14px; }
.iv-chat .ai-msg .hint { margin: 6px 0 0; }
.iv-note { text-align: center; font-size: 12.5px; opacity: .65; margin: 2px 0; }
/* الإعدادات §٢-ح: «من يدير الإعلانات؟» */
.set-mode { margin-top: 8px; }
.set-mode .iv-opt span { display: flex; flex-direction: column; gap: 2px; }
/* ب٥ خطة المنصة */
.pp-start { font-weight: 600; }
.pp-list { margin: 6px 0 10px; padding-inline-start: 18px; display: grid; gap: 6px; }
.pp-list.bad li { color: var(--bad, #c0392b); }
/* ف١ صفحة «فحص الحساب» */
.aud-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.aud-score { width: 108px; height: 108px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 8px solid var(--line); background: var(--card); }
.aud-score b { font: 800 34px/1 var(--font-head, inherit); } .aud-score small { color: var(--muted); }
.aud-score.good { border-color: var(--growth, #1e9e5a); } .aud-score.work { border-color: var(--warn, #c77700); } .aud-score.priority { border-color: var(--bad, #c0392b); }
.aud-sum h2 { margin: 0 0 4px; } .aud-cmp { font-weight: 600; margin: 6px 0 0; }
.aud-top3 { margin: 0 0 8px; padding-inline-start: 20px; display: grid; gap: 10px; }
.aud-top3 li { display: grid; gap: 2px; }
.aud-axes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.aud-ax { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--bg); border-top: 4px solid var(--line); }
.aud-ax b { font: 800 24px var(--font-head, inherit); }
.aud-ax.good { border-top-color: var(--growth, #1e9e5a); } .aud-ax.work { border-top-color: var(--warn, #c77700); } .aud-ax.priority { border-top-color: var(--bad, #c0392b); }
.aud-tbl td.dim { font-size: 12.5px; word-break: break-word; }
/* ف٢ صفحة «النمو» · ألوان «قبل»/«الآن» متأكدة بمدقق الألوان (فاتح وغامق: فرق واضح حتى لعمى الألوان) */
:root { --gr-before: #c2508f; --gr-now: #1a6fe8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --gr-before: #d96aa6; --gr-now: #5b9dff; } }
:root[data-theme="dark"] { --gr-before: #d96aa6; --gr-now: #5b9dff; }
.gr-head h2 { margin: 0 0 6px; } .gr-head.good { border-inline-start: 5px solid var(--growth); } .gr-head.bad { border-inline-start: 5px solid var(--bad); }
.gr-div { display: grid; gap: 12px; margin-top: 8px; }
.gr-drow { display: grid; grid-template-columns: minmax(120px, 1.1fr) 2fr minmax(120px, 1fr); align-items: center; gap: 10px; }
.gr-dtrack { position: relative; height: 18px; background: var(--bg); border-radius: 6px; }
.gr-mid { position: absolute; inset-block: -3px; inset-inline-start: 50%; width: 2px; background: var(--muted); opacity: .5; }
.gr-dbar { position: absolute; inset-block: 2px; border-radius: 4px; }
.gr-dbar.pos { inset-inline-start: 50%; } .gr-dbar.neg { inset-inline-end: 50%; }
.gr-dbar.v-better { background: var(--growth); } .gr-dbar.v-worse { background: var(--bad); } .gr-dbar.v-unchanged, .gr-dbar.v-no_data { background: var(--muted); opacity: .55; }
.gr-dval { font-weight: 700; font-size: 14px; } .gr-dval.v-better { color: var(--growth); } .gr-dval.v-worse { color: var(--bad); } .gr-dval.v-unchanged, .gr-dval.v-no_data { color: var(--muted); }
.gr-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 10px; color: var(--muted); font-size: 14px; }
.gr-sw { width: 14px; height: 10px; border-radius: 3px; display: inline-block; } .gr-sw.before { background: var(--gr-before); } .gr-sw.now { background: var(--gr-now); }
.gr-sw.goal { width: 2px; height: 14px; background: var(--ink); border-radius: 0; }
.gr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.gr-k { display: grid; gap: 8px; align-content: start; }
.gr-kh { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .gr-kh h3 { margin: 0; font-size: 17px; }
.gr-ki { margin: 0; font-size: 13.5px; }
.gr-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 8px; }
.gr-rl { color: var(--muted); font-size: 13.5px; } .gr-rv { font-size: 15px; min-width: 64px; text-align: end; }
.gr-track { position: relative; height: 16px; background: var(--bg); border-radius: 5px; }
.gr-bar { position: absolute; inset-block: 2px; inset-inline-start: 0; border-radius: 0 4px 4px 0; }
[dir="rtl"] .gr-bar { border-radius: 4px 0 0 4px; }
.gr-bar.before { background: var(--gr-before); } .gr-bar.now { background: var(--gr-now); }
.gr-goal { position: absolute; inset-block: -4px; width: 2px; background: var(--ink); border-radius: 1px; }
.gr-goal-l { margin: 0; font-weight: 600; font-size: 14px; }
.pill.v-better { background: color-mix(in srgb, var(--growth) 16%, transparent); color: var(--growth); } .pill.v-worse { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.gr-linked { margin: 6px 0 10px; padding-inline-start: 18px; display: grid; gap: 4px; }
@media (max-width: 600px) { .gr-drow { grid-template-columns: 1fr; gap: 4px; } }
@media print { .gr-grid { grid-template-columns: 1fr 1fr; } .gr-goal-in { display: none; } }
.pill.v-better::before, .pill.v-worse::before, .pill.v-unchanged::before, .pill.v-no_data::before { display: none; }   /* الأيقونة (▲ ▼ ● …) جوه الكلمة بدل النقطة */
/* ب٦ الملف الحي */
.gap-card { border-inline-start: 5px solid var(--accent); } .gap-card h2 { margin: 0 0 6px; font-size: 18px; }
.gap-list { margin: 6px 0 10px; padding-inline-start: 18px; display: grid; gap: 6px; }
.aud-scope { margin-bottom: 12px; } .aud-scope select { min-width: 220px; max-width: 100%; }
/* نبض الحملة */
.pulse-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pulse-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.pulse-list li.warn { border-inline-start: 4px solid var(--warn); } .pulse-list li.ok { border-inline-start: 4px solid var(--growth); }
.pulse-list p { margin: 2px 0 0; } .pulse-ic { font-size: 20px; line-height: 1.4; }

/* ٥.٤ اختبار الإعلانات */
.at-row { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.at-row:first-of-type { border-top: 0; }
.at-h { grid-column: 1; min-width: 0; overflow-wrap: anywhere; }
.at-n { grid-column: 2; text-align: center; } .at-n b { display: block; font-size: 20px; } .at-n small { color: var(--muted); font-size: 12px; }
.at-row .pill { grid-column: 3; }
.at-sub { grid-column: 1; color: var(--muted); font-size: 13px; }
.at-row .hint { grid-column: 1 / -1; margin: 0; }
.at-row.weak .at-n b { color: var(--bad); }
@media (max-width: 600px) { .at-row { grid-template-columns: 1fr auto; } .at-row .pill { grid-column: 2; } .at-n { grid-column: 2; grid-row: 1; } }

/* حملات هذا الموقع */
.sc-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.sc-list label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.sc-list label span { min-width: 0; overflow-wrap: anywhere; }

/* إصلاحات 28 نوفمبر: شريط الصحة بيتقفل · خطوة الجاهزية «بانتظار» و«مربوط لكن…» */
.trial-bar .bar-x { background: none; border: 0; color: inherit; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.rd-list li.wait .rd-mark { color: var(--muted); }
.rd-list li.ok.warn .rd-mark { color: var(--warn); }
.vbox { display: contents; }
/* إصلاحات 28 نوفمبر (١٨): زرار المساعد العائم كان بيغطي حافة آخر كارت على الموبايل ← مساحة تحت المحتوى قد الزرار */
@media (max-width: 760px) { #view { padding-bottom: 150px; } }
@media (min-width: 761px) { #view { padding-bottom: 84px; } }

/* هيكل الصفحة وهي بتحمّل (٢٠) */
.skel-card { display: grid; gap: 10px; }
.skel { height: 14px; border-radius: 6px; background: linear-gradient(90deg, rgba(127,127,127,.12), rgba(127,127,127,.22), rgba(127,127,127,.12)); background-size: 200% 100%; animation: skel 1.4s ease-in-out infinite; }
.skel-h { height: 20px; width: 40%; }
.skel-s { width: 60%; }
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
/* الفحص السريع: النصيحة سطر كامل تحت البند */
.qc-list li .qc-tip { grid-column: 2 / -1; line-height: 1.6; }
.qc-wrap { margin: 8px 0; }

/* جولة الشرح (2 ديسمبر): نافذة مايسترو + تنوير العنصر. الألوان من متغيرات اللوحة (تشتغل في الداكن) */
.tour { position: fixed; inset: 0; z-index: 90; }
.tour-scrim { position: absolute; inset: 0; }
.tour-scrim.dim { background: rgba(8, 16, 40, .58); }
.tour-ring { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(8, 16, 40, .58); outline: 3px solid var(--accent); outline-offset: 0; pointer-events: none; transition: left .28s ease, top .28s ease, width .28s ease, height .28s ease; }
.tour-ring[hidden] { display: none; }
.tour-card { position: fixed; z-index: 92; max-height: calc(100vh - 20px); overflow-y: auto; width: min(400px, calc(100vw - 20px)); box-sizing: border-box; padding: 14px 20px 16px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 70px rgba(8, 16, 40, .35); }
.tour-card.swap { animation: tour-in .22s ease-out both; }
@keyframes tour-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tour-fig { display: flex; justify-content: center; align-items: flex-end; height: 132px; margin: 0 -8px 6px; border-radius: 16px; background: radial-gradient(ellipse at 50% 90%, var(--info-bg), transparent 72%); }
.tour-bot { height: 130px; width: auto; max-width: 100%; object-fit: contain; }
.tour-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.tour-bar { flex: 1; max-width: 150px; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.tour-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); transition: width .3s ease; }
.tour-title { margin: 8px 0 4px; font-size: 20px; line-height: 1.4; }
.tour-text { margin: 0 0 14px; font-size: 15px; line-height: 1.85; color: var(--ink); }
.tour-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.tour-list[hidden] { display: none; }
.tour-list li { display: grid; gap: 1px; padding: 9px 12px; border-radius: 12px; background: var(--info-bg); font-size: 14px; line-height: 1.7; }
.tour-list b { color: var(--accent); font-size: 14px; }
.tour-list span { color: var(--ink); }
.tour-card.has-list .tour-text { margin-bottom: 10px; }
.tour-note { margin: 0 0 12px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.tour-note[hidden] { display: none; }
.tour-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; bottom: -16px; margin: 0 0 -16px; padding: 10px 0 16px; background: var(--card); }   /* الأزرار تفضل ظاهرة لو الشرح أطول من النافذة */
.tour-card.pg .tour-fig { height: 86px; margin-bottom: 2px; }
.tour-card.pg .tour-bot { height: 84px; }
.tour-card.pg .tour-title { margin-top: 4px; font-size: 19px; }
.tour-card.pg .tour-text { font-size: 14.5px; line-height: 1.75; margin-bottom: 10px; }
.tour-card.pg .tour-list { gap: 6px; margin-bottom: 8px; }
.tour-card.pg .tour-list li { padding: 6px 11px; line-height: 1.6; }
.tour-nav { display: inline-flex; gap: 8px; }
.tour-nav .btn { min-height: 42px; padding: 9px 20px; }
.tour-card .linkish { color: var(--muted); font-weight: 600; }
@media (max-width: 699px) {
  .tour-card.sheet { inset-inline: 10px; width: auto; bottom: calc(10px + env(safe-area-inset-bottom)); top: auto; max-height: calc(100vh - 20px); overflow-y: auto; }
  .tour-card.sheet.top { top: 10px; bottom: auto; }
  .tour-fig { height: 104px; } .tour-bot { height: 102px; }
  .tour-title { font-size: 18px; } .tour-text { font-size: 14.5px; line-height: 1.75; }
}
@media (prefers-reduced-motion: reduce) { .tour-ring, .tour-card.swap { transition: none; animation: none; } }
@media print { .tour { display: none !important; } }

/* دليل الربط بالصور (2 ديسمبر) */
.gd-link { display: inline-block; margin: 6px 0; font-weight: 700; }
.gd-tabs, .gd-methods { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.gd-q { margin: 16px 0 6px; font-size: 15px; }
.gd-steps { list-style: none; counter-reset: gd; padding: 0; margin: 16px 0; display: grid; gap: 14px; }
.gd-step { counter-increment: gd; position: relative; padding: 14px; padding-inline-end: 56px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.gd-step::before { content: counter(gd); position: absolute; top: 14px; inset-inline-end: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; }
.gd-tx b { font-size: 16px; }
.gd-tx p { margin: 6px 0 0; line-height: 1.8; }
.gd-ext { margin-inline-start: 8px; font-size: 12px; }
.gd-fig { margin: 12px 0 0; }
.gd-fig img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.gd-fig figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
.gd-plats { display: grid; gap: 8px; margin-top: 12px; }
.gd-plat { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.gd-plat summary { cursor: pointer; font-weight: 700; }
.gd-plat ol { margin: 8px 0 0; padding-inline-start: 22px; line-height: 1.9; }
.gd-plat p { margin: 8px 0 0; line-height: 1.8; }
.gd-help { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 700px) { .gd-step { padding: 12px; padding-inline-end: 48px; } .gd-step::before { top: 12px; inset-inline-end: 12px; } }

.rd-guide{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:10px 0}
.rd-guide span{font-weight:700}
