/* بوابة فاحص الارتكاز — نفس ألوان التطبيق (SPEC البند 14) */
:root {
  --page:#EDF1EF; --card:#FFFFFF; --ink:#0F2830; --inkLine:#2B4750; --onInk:#F1F6F4; --onInkMuted:#C9D8DA; --onInkFaint:#A9BDBF; --inkChip:#22414A;
  --text:#132A30; --secondary:#3F5358; --muted:#5B6E72; --border:#D3DDD9; --divider:#E4EAE7; --track:#E1E8E5;
  --primary:#0F2830; --onPrimary:#F1F6F4;
  --goSoft:#E2F1EB; --goText:#145F47; --goSolid:#17795A;
  --waitSoft:#FBF0DD; --waitText:#8F5408; --waitRing:#C98A2E;
  --stopSoft:#F8E4E0; --stopText:#A33A28;
  --editSoft:#E7EEF5; --editBorder:#C5D4E3; --editText:#2A5580; --editHeading:#1D3F63; --editSub:#3F5A75;
  --up:#17795A; --down:#B23E2C; --ma20:#C28A2C; --ma50:#6F8FA0; --dot:#3DB38A; --dotText:#062019;
  /* design/v3 */
  --accent:#0B7A6F; --onAccent:#FFFFFF; --hdr:#F7FAF9; --tile:#F7FAF9; --tileBorder:#E1E9E6; --tileText:#24393E; --chipN:#E6EDEA; --chipNText:#33484C;
  --hero:#0B2A30; --heroDot:#1C4A52; --heroBox:#12363D; --heroLine:#1E4950; --heroRing:#1A4F54; --heroText:#EAF4F2; --heroMuted:#B8CFCC; --heroAccent:#5FD3C0;
  --heroBtn:#13A08D; --heroBtnText:#04211D; --heroGhost:#2C5A61; --heroGhostText:#CFE3E0; --heroDone:#2BB59E;
  --rsi:#7B4FB2; --hotSoft:#FDE6D8; --hotText:#A3360A; --blueSoft:#E3ECF8; --blueText:#234E78; --purpleSoft:#EDE6F7; --purpleText:#5B3C8C;
  --hlSoft:#FCEFAE; --hlText:#5E4700;
  /* الفحص المخصص: الزر المحدد في المفاتيح المقسمة، ولون القيمة المفعّلة، ومقبض المفتاح (من الألوان أعلاه) */
  --segOn: var(--card); --accentText: var(--accent); --knob: var(--onAccent);
  color-scheme: light;
}
[data-theme="black"] {
  --page:#000000; --card:#111315; --ink:#15191C; --inkLine:#262C30; --onInk:#F2F4F5; --onInkMuted:#A3ACB1; --onInkFaint:#8E989D; --inkChip:#262C30;
  --text:#ECEFF0; --secondary:#B7C0C3; --muted:#9AA4A8; --border:#2A2F33; --divider:#1F2326; --track:#1C1F22;
  --primary:#ECEFF0; --onPrimary:#0B0C0D;
  --goSoft:#0F2E23; --goText:#4CC79A; --goSolid:#2FA877;
  --waitSoft:#33260E; --waitText:#F0B45A; --waitRing:#F0B45A;
  --stopSoft:#3A1612; --stopText:#F07A66;
  --editSoft:#0F1E2E; --editBorder:#22384F; --editText:#7FB2E5; --editHeading:#A9CBEF; --editSub:#8FAAC4;
  --up:#2FA877; --down:#E0735F; --ma20:#E0A44A; --ma50:#8FB0C2; --dot:#3DB38A; --dotText:#04150F;
  --accent:#1E9C88; --onAccent:#FFFFFF; --hdr:#0B0C0D; --tile:#16191B; --tileBorder:#262B2E; --tileText:#DCE3E5; --chipN:#22272A; --chipNText:#C3CCCF;
  --hero:#0C1C1F; --heroDot:#173539; --heroBox:#112B30; --heroLine:#1E4247; --heroRing:#173F43; --heroText:#EAF4F2; --heroMuted:#9FB7B4; --heroAccent:#5FD3C0;
  --heroBtn:#13A08D; --heroBtnText:#04211D; --heroGhost:#2C5A61; --heroGhostText:#CFE3E0; --heroDone:#2BB59E;
  --rsi:#B08BE0; --hotSoft:#3A1E10; --hotText:#F59A6B; --blueSoft:#0F1E2E; --blueText:#8CC0F2; --purpleSoft:#251A36; --purpleText:#C3A6EE;
  --hlSoft:#3D3410; --hlText:#F4D76A;
  --segOn: var(--inkLine); --accentText: var(--goText); --knob: var(--onAccent);
  color-scheme: dark;
}
[data-theme="blue"] {
  --page:#0A1628; --card:#102038; --ink:#13305A; --inkLine:#24457A; --onInk:#EEF3FA; --onInkMuted:#A9BCD6; --onInkFaint:#8FA6C4; --inkChip:#1E3D6B;
  --text:#E8EEF6; --secondary:#B4C3D6; --muted:#93A6BF; --border:#243B5E; --divider:#1A2E4D; --track:#16294A;
  --primary:#E6EEF8; --onPrimary:#0B1426;
  --goSoft:#0E3130; --goText:#45C79A; --goSolid:#2DA878;
  --waitSoft:#362A14; --waitText:#F2B55C; --waitRing:#F2B55C;
  --stopSoft:#3B1B20; --stopText:#F2806C;
  --editSoft:#12294A; --editBorder:#2A4C7A; --editText:#8CC0F2; --editHeading:#B5D5F6; --editSub:#93AFCF;
  --up:#2DA878; --down:#E8735F; --ma20:#E6A94E; --ma50:#9FBBD6; --dot:#45C79A; --dotText:#04150F;
  --accent:#1E9C88; --onAccent:#FFFFFF; --hdr:#0A1628; --tile:#132745; --tileBorder:#22406A; --tileText:#DCE6F2; --chipN:#1B355C; --chipNText:#C1D0E3;
  --hero:#0B2240; --heroDot:#173A63; --heroBox:#112E52; --heroLine:#24457A; --heroRing:#1D3F6B; --heroText:#EEF3FA; --heroMuted:#A9BCD6; --heroAccent:#6FD8C6;
  --heroBtn:#13A08D; --heroBtnText:#04211D; --heroGhost:#2A4C7A; --heroGhostText:#CFDDF0; --heroDone:#2BB59E;
  --rsi:#B79AF0; --hotSoft:#3A1E10; --hotText:#F59A6B; --blueSoft:#12294A; --blueText:#8CC0F2; --purpleSoft:#24204A; --purpleText:#C7B2F5;
  --hlSoft:#3B3514; --hlText:#F2D575;
  --segOn: var(--inkLine); --accentText: var(--goText); --knob: var(--onAccent);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--text); }
body { font-family: 'Readex Pro', 'SF Arabic', 'Geeza Pro', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; }
/* Alexandria للعناوين والأرقام الكبيرة، وReadex Pro للنصوص */
.fd { font-family: 'Alexandria', 'Readex Pro', 'SF Arabic', sans-serif; }
#app { max-width: 560px; margin: 0 auto; padding: 14px 14px 28px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
a { color: var(--editText); }
button { font-family: inherit; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
input, textarea, select { font-family: inherit; color: var(--text); }
.n { direction: ltr; unicode-bidi: isolate; }
.ltr { direction: ltr; text-align: right; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--editText); outline-offset: 2px; }

/* عام */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card h2 { margin: 0; font-size: 15.5px; }
.card .sub { font-size: 12px; color: var(--muted); margin-top: -8px; }
.row { display: flex; align-items: center; gap: 8px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.tag { display: inline-block; font-size: 11px; font-weight: 500; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.t-green { background: var(--goSoft); color: var(--goText); }
.t-amber { background: var(--waitSoft); color: var(--waitText); }
.t-red { background: var(--stopSoft); color: var(--stopText); }
.t-edit { background: var(--editSoft); color: var(--editText); }
.c-green { color: var(--goText); } .c-amber { color: var(--waitText); } .c-red { color: var(--stopText); }
.box { border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.6; }
.btn { height: 44px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--primary); color: var(--onPrimary); font-size: 15px; font-weight: 700; }
.btn-outline { height: 44px; padding: 0 16px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--card); color: var(--text); font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; text-decoration: none; }
.btn-link { border: 0; background: none; padding: 0; color: var(--editText); font-size: 13.5px; font-weight: 700; text-decoration: underline; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--secondary); }
.input { height: 46px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--page); padding: 0 12px; font-size: 16px; width: 100%; }
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; line-height: 1.6; }
.disclaimer { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.7; }
.err { background: var(--stopSoft); color: var(--stopText); }
.box.wait { background: var(--waitSoft); color: var(--waitText); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--track); border-top-color: var(--muted); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* الدخول */
.login-title { font-size: 30px; font-weight: 700; margin: 60px 0 0; }

/* الرأس */
.top h1 { font-size: 21px; margin: 0; line-height: 1.2; }
.top .sub { font-size: 13px; color: var(--muted); }
.chip-user { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 12px; border: 1px solid var(--border); background: var(--card); border-radius: 22px; color: var(--text); }
.avatar { width: 32px; height: 32px; border-radius: 16px; background: var(--primary); color: var(--onPrimary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.chip-user .nm { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.chip-user .nm b { font-size: 13px; } .chip-user .nm small { font-size: 11px; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--border); background: var(--card); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.scanbar { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: var(--onInk); border-radius: 16px; padding: 12px 16px; }
.scanbar .l { font-size: 13px; color: var(--onInkMuted); } .scanbar b { font-size: 14px; }
.scanbar .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--dot); display: inline-block; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--track); border-radius: 14px; padding: 4px; }
.seg button { height: 40px; border: 0; border-radius: 11px; background: transparent; font-size: 15px; font-weight: 500; color: var(--secondary); display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button[aria-pressed="true"] { background: var(--card); font-weight: 700; color: var(--text); }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.counts div { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.counts b { font-size: 22px; line-height: 1.1; } .counts span { font-size: 13px; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { display: flex; gap: 8px; }
.search label { flex: 1; display: flex; align-items: center; gap: 8px; height: 44px; background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 0 14px; }
.search input { flex: 1; border: 0; outline: none; background: transparent; font-size: 15px; min-width: 0; }
.search .btn { display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.badge { min-width: 20px; height: 20px; border-radius: 10px; background: var(--dot); color: var(--dotText); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { height: 34px; padding: 0 12px; border: 1px solid var(--border); background: var(--card); border-radius: 17px; font-size: 13px; color: var(--text); }
.chips button span { color: var(--muted); margin-inline-start: 4px; }
.listhead { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.listhead b { font-size: 15px; }
.listhead select { border: 0; background: transparent; color: var(--secondary); font-size: 13px; }
.list { background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.item { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; color: var(--text); text-decoration: none; cursor: pointer; }
.item .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.item + .item { border-top: 1px solid var(--divider); }
.item:hover { background: color-mix(in srgb, var(--track) 40%, transparent); }
.item .l { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.item .tick { font-size: 16px; font-weight: 700; direction: ltr; unicode-bidi: isolate; color: var(--text); text-decoration: none; }
.item .name { font-size: 12px; color: var(--muted); direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .dist { font-size: 12.5px; color: var(--secondary); } .item .dist b { color: var(--text); }
.item .r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.score-sm { display: inline-flex; align-items: baseline; gap: 1px; direction: ltr; }
.score-sm b { font-size: 13px; } .score-sm small { font-size: 10.5px; color: var(--muted); }
.item .price { font-size: 19px; font-weight: 700; direction: ltr; line-height: 1.2; }
.item .chg { font-size: 13px; font-weight: 600; }
.flag { width: 22px; height: 15px; border-radius: 2px; flex-shrink: 0; display: block; }

/* صفحة السهم */
.back { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 4px; font-size: 16px; font-weight: 500; color: var(--text); text-decoration: none; border: 0; background: none; }
.edit-btn { height: 40px; padding: 0 14px; border: 1.5px solid var(--editText); background: var(--card); color: var(--editText); border-radius: 12px; font-size: 14px; font-weight: 700; }
.hero { background: var(--ink); color: var(--onInk); border-radius: 20px; padding: 20px 20px 0; display: flex; flex-direction: column; }
.hero .sym { font-size: 36px; font-weight: 700; line-height: 1; direction: ltr; text-align: right; }
.hero .country { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.hero .cname { font-size: 14px; color: var(--onInkMuted); direction: ltr; text-align: right; }
.hero .ex { font-size: 12.5px; color: var(--onInkFaint); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; border-top: 1px solid var(--inkLine); }
.metrics > div { padding: 14px 0 16px; display: flex; flex-direction: column; gap: 2px; }
.metrics > div + div { padding-inline-start: 14px; border-inline-start: 1px solid var(--inkLine); }
.metrics > div > span { font-size: 12px; color: var(--onInkMuted); }
.metrics b { font-size: 17px; direction: ltr; text-align: right; }
.metrics .mini { display: flex; gap: 8px; align-items: center; }
.metrics .mini i { font-style: normal; font-size: 11px; background: var(--inkChip); border-radius: 6px; padding: 0 6px; }
.metrics .mini button { border: 0; background: none; color: var(--onInk); text-decoration: underline; font-size: 12.5px; padding: 0; }
.hero .asof { font-size: 12px; color: var(--onInkFaint); padding-bottom: 14px; line-height: 1.6; }
.ovr { background: var(--editSoft); border: 1px solid var(--editBorder); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ovr .who { display: flex; align-items: center; gap: 10px; }
.ovr .av { width: 36px; height: 36px; border-radius: 18px; background: var(--editText); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.ovr .who b { font-size: 15px; color: var(--editHeading); display: block; } .ovr .who small { font-size: 12.5px; color: var(--editSub); }
.ovr .chg { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--editHeading); }
.ovr .note { background: var(--card); border-radius: 12px; padding: 10px 12px; font-size: 14px; color: var(--text); line-height: 1.6; white-space: pre-wrap; }
.outside { background: var(--editSoft); border: 1px solid var(--editBorder); border-radius: 14px; padding: 14px; color: var(--editSub); font-size: 13.5px; }
.outside b { color: var(--editHeading); font-size: 15px; display: block; margin-bottom: 4px; }
.frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.frames button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 10px 12px; color: var(--text); text-align: right; }
.frames button[aria-pressed="true"] { border: 2px solid var(--text); }
.frames b { font-size: 15px; } .frames .st { font-size: 12.5px; font-weight: 500; } .frames .sc { font-size: 12px; color: var(--muted); direction: ltr; }
.frames .foot { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.hd { display: flex; flex-direction: column; gap: 6px; }
.hd .big { font-size: 15px; font-weight: 700; line-height: 1.3; }
.card h2.ht { font-size: 17px; }
.sum .scorebox { display: flex; flex-direction: column; align-items: flex-end; }
.sum .scorebox .sc { display: inline-flex; align-items: baseline; gap: 1px; direction: ltr; }
.sum .scorebox b { font-size: 20px; line-height: 1.1; } .sum .scorebox small { font-size: 12px; color: var(--muted); }
.sum .scorebox s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.sum p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { background: var(--waitSoft); color: var(--waitText); border-radius: 9px; padding: 4px 10px; font-size: 12.5px; font-weight: 500; }
.sum .foot { display: flex; flex-wrap: wrap; gap: 6px 20px; border-top: 1px solid var(--divider); padding-top: 12px; font-size: 13px; color: var(--muted); }
.sum .foot b { color: var(--text); }
.cycle .stations { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); margin-top: 14px; }
.cycle .trackbar { position: absolute; top: 15.5px; right: calc(50% / var(--n, 5)); left: calc(50% / var(--n, 5)); height: 5px; border-radius: 3px; background: var(--track); }
.cycle .trackbar i { position: absolute; top: 0; right: 0; height: 5px; border-radius: 3px; background: var(--goSolid); }
.cycle .st { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cycle .st > span { width: 36px; height: 36px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: var(--card); color: var(--muted); border: 2.5px solid var(--track); }
.cycle .st.done > span { background: var(--goSolid); color: #fff; border-color: var(--goSolid); }
.cycle .st.now > span { color: var(--waitText); border-color: var(--waitRing); box-shadow: 0 0 0 4px var(--waitSoft); }
.cycle .st small { font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.cycle .st.done small, .cycle .st.now small { color: var(--text); }
.bar { height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 10px; border-radius: 5px; background: var(--goSolid); }
.chart svg { display: block; width: 100%; height: auto; direction: ltr; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-inline-end: 6px; vertical-align: middle; }
.cond { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 0; }
.cond + .cond { border-top: 1px solid var(--divider); }
.cond .mk { width: 26px; height: 26px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.cond .tt { font-size: 14px; font-weight: 500; } .cond .dd { font-size: 12px; color: var(--muted); line-height: 1.5; }
.cond .w { font-size: 12px; color: var(--muted); padding-top: 3px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.facts div { display: flex; flex-direction: column; padding: 10px 0; }
.facts div:nth-child(n+3) { border-top: 1px solid var(--divider); }
.facts > div > span { font-size: 13.5px; font-weight: 500; color: var(--secondary); display: flex; align-items: center; gap: 5px; }
.facts > div > span .ic { width: 14px; height: 14px; color: var(--muted); }
.facts b { font-size: 13px; } .facts small { font-size: 11.5px; color: var(--muted); min-height: 1em; }
.facts small.c-amber { color: var(--waitText); font-weight: 600; }
i.doubt { font-style: normal; font-size: 11.5px; color: var(--waitText); white-space: nowrap; }
.borrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--editText); align-self: flex-start; }
.borrow .ic { width: 16px; height: 16px; }
.news a { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; text-decoration: none; color: var(--text); }
.news a + a { border-top: 1px solid var(--divider); }
.news .h { font-size: 13px; font-weight: 500; } .news .h.en { direction: ltr; text-align: right; font-size: 13.5px; }
.news .s { font-size: 12px; color: var(--secondary); line-height: 1.6; } .news .m { font-size: 11.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.news a.pos, .news a.neg { padding: 10px 12px; margin: 6px 0; border-radius: 10px; border-top: 0; }
.news a.pos { background: var(--goSoft); box-shadow: inset -3px 0 0 var(--goSolid); }
.news a.neg { background: var(--stopSoft); box-shadow: inset -3px 0 0 var(--stopText); }
.news a.pos + a, .news a.neg + a { border-top: 0; }
.news .imp { font-weight: 700; } .news a.pos .imp { color: var(--goText); } .news a.neg .imp { color: var(--stopText); }
.news .kind { font-weight: 600; color: var(--secondary); }
details.card summary { font-size: 17px; font-weight: 700; cursor: pointer; }
details.card ul { margin: 0; padding-inline-start: 18px; color: var(--secondary); font-size: 13.5px; line-height: 1.8; }
.audit .e { padding: 10px 0; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.audit .e + .e { border-top: 1px solid var(--divider); }

/* النوافذ */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.modal { background: var(--page); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 16px 16px 28px; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 640px) { .modal-bg { align-items: center; } .modal { border-radius: 20px; } }
.modal .mh { display: flex; justify-content: space-between; align-items: center; position: sticky; top: -16px; background: var(--page); padding: 6px 0; z-index: 1; }
.modal .mh b { font-size: 17px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button { height: 38px; padding: 0 12px; border-radius: 19px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 13.5px; }
.opts button[aria-pressed="true"] { font-weight: 700; border-width: 2px; }
.tri { display: inline-flex; background: var(--track); border-radius: 9px; padding: 2px; }
.tri button { width: 42px; height: 32px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font-size: 15px; }
.tri button[aria-pressed="true"] { background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.15); font-weight: 700; }
.switch { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
input[type="range"] { width: 100%; direction: ltr; accent-color: var(--editText); }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--goSolid); }
table.users { width: 100%; border-collapse: collapse; font-size: 14px; }
table.users td { padding: 10px 4px; border-top: 1px solid var(--divider); vertical-align: middle; }

/* بيانات السهم في القائمة: عمودان مرتبان تحت بعض */
.facts-grid { display: grid; grid-template-columns: repeat(2, max-content); gap: 4px 28px; font-size: 12px; padding-top: 8px; border-top: 1px solid var(--divider); }
.facts-grid span { display: flex; gap: 5px; align-items: baseline; white-space: nowrap; }
.facts-grid em { font-style: normal; color: var(--muted); }
.facts-grid b { font-weight: 600; color: var(--text); white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: baseline; gap: 4px; }
.facts-grid i { font-style: normal; font-weight: 400; font-size: 10.5px; color: var(--muted); background: var(--track); border-radius: 5px; padding: 0 5px; }
.item .sess { font-size: 10.5px; color: var(--editText); }
.metrics small.up { color: #7FD8B0; } .metrics small.down { color: #F2A396; }
.metrics small { font-size: 12px; }

/* رسومات العناوين */
.ic { width: 18px; height: 18px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.ht { display: flex; align-items: center; gap: 7px; }
.ht .ic { color: var(--editText); width: 17px; height: 17px; }
details.card summary.ht { list-style: none; } details.card summary.ht::-webkit-details-marker { display: none; }
.icon-btn .avatar { width: 32px; height: 32px; }
.icon-btn .ic { width: 20px; height: 20px; }
.ic.gold { color: var(--waitRing); } .ic.fill { fill: currentColor; }
.top h1 .ic { width: 17px; height: 17px; }
.top h1 span, .top h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* النجمة */
.star { border: 0; background: none; padding: 2px; margin: -2px -2px; color: var(--muted); display: inline-flex; border-radius: 8px; }
.star .ic { width: 17px; height: 17px; }
.star.on { color: var(--waitRing); } .star.on .ic { fill: currentColor; }
.star:hover { background: var(--track); }
.star.big { width: 44px; height: 40px; margin: 0; align-items: center; justify-content: center; border: 1.5px solid var(--border); background: var(--card); border-radius: 12px; }
.star.big .ic { width: 21px; height: 21px; }

/* نافذة اختيار القوائم */
.picker button { display: flex; align-items: center; gap: 12px; width: 100%; height: 52px; padding: 0 16px; border: 0; background: var(--card); color: var(--text); font-size: 15px; text-align: right; }
.picker button + button { border-top: 1px solid var(--divider); }
.picker .ck { width: 22px; height: 22px; border-radius: 11px; border: 2px solid var(--muted); display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; flex-shrink: 0; }
.picker button[aria-pressed="true"] .ck { background: var(--goSolid); border-color: var(--goSolid); }
.picker .nm { flex: 1; font-weight: 500; }
.empty { align-items: center; text-align: center; padding: 30px 16px; }
.empty .ic { width: 28px; height: 28px; }

/* الشريط الجانبي */
.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 10; display: flex; justify-content: flex-start; }
.drawer { width: min(320px, 82vw); height: 100%; background: var(--page); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; overflow: auto; animation: slidein .2s ease-out; box-shadow: 0 0 24px rgba(0,0,0,.2); }
@keyframes slidein { from { transform: translateX(100%); } to { transform: none; } }
.drawer .between { margin-bottom: 12px; }
.drawer .dh { font-size: 12px; font-weight: 700; color: var(--muted); padding: 16px 12px 4px; }
.dl { display: flex; align-items: center; border-radius: 12px; border: 1px solid transparent; }
.dl.on { background: var(--card); border-color: var(--border); }
.dl .go { flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; border: 0; background: none; color: var(--text); font-size: 15px; text-align: right; min-width: 0; }
.dl.on .go { font-weight: 700; }
.dl .go .ic { color: var(--editText); } .dl .go .ic.gold { color: var(--waitRing); }
.dl .nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl .mini { border: 0; background: none; color: var(--muted); width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.dl .mini .ic { width: 16px; height: 16px; } .dl .mini:hover { background: var(--track); } .dl .mini.del:hover { color: var(--stopText); }
.dnew { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; border: 0; background: none; color: var(--editText); font-size: 15px; font-weight: 500; }
.metrics small.n { text-align: right; }

/* ═══ design/v3 ═══ */
.row.wrap { flex-wrap: wrap; row-gap: 4px; }
.login-head { display: flex; align-items: center; gap: 12px; margin-top: 50px; }
.login-head small { color: var(--accent); font-size: 13px; font-weight: 500; }
.login-title { font-size: 26px; margin: 0; }
.appic { width: 46px; height: 46px; border-radius: 14px; display: block; flex-shrink: 0; }

/* الرأس */
.apphdr { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--hdr); border: 1px solid var(--tileBorder); border-radius: 18px; padding: 10px 12px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand > div { line-height: 1.25; display: flex; flex-direction: column; }
.brand small { font-size: 12px; font-weight: 500; color: var(--accent); }
.brand b { font-size: 19px; font-weight: 700; white-space: nowrap; }
.sess { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; font-size: 11px; font-weight: 600; }
.sess i { width: 7px; height: 7px; border-radius: 4px; }
.sess.s-open { background: var(--goSoft); color: var(--goText); } .sess.s-open i { background: var(--dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 30%, transparent); }
.sess.s-pre, .sess.s-post { background: var(--blueSoft); color: var(--blueText); } .sess.s-pre i, .sess.s-post i { background: var(--blueText); }
.sess.s-closed { background: var(--chipN); color: var(--chipNText); } .sess.s-closed i { background: var(--muted); }
.ib { width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--tileBorder); background: var(--card); color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.ib .ic { width: 21px; height: 21px; }

/* بطاقة الرادار */
.radar { position: relative; overflow: hidden; border-radius: 24px; background-color: var(--hero); background-image: radial-gradient(var(--heroDot) 1.2px, transparent 1.3px); background-size: 18px 18px; padding: 20px 18px 16px; color: var(--heroText); display: flex; flex-direction: column; gap: 12px; }
.radar > * { position: relative; }
.radar .rings { position: absolute; width: 300px; height: 300px; left: -120px; bottom: -150px; stroke: var(--heroRing); pointer-events: none; }
.radar .rings .sweep { stroke: var(--heroDone); stroke-width: 1.5; stroke-linecap: round; transform-origin: 150px 150px; animation: sweep 6s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .radar .rings .sweep { animation: none; } }
.radar .eb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--heroAccent); }
.radar h2 { margin: 0; font-size: 25px; font-weight: 800; line-height: 1.35; }
.sbox { display: flex; flex-direction: column; gap: 9px; padding: 9px; border-radius: 18px; background: var(--heroBox); border: 1px solid var(--heroLine); }
.sbox .inp { display: flex; align-items: center; gap: 10px; height: 48px; border-radius: 14px; background: #fff; padding: 0 14px; color: #5B6E72; }
.sbox .inp input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; color: #10272C; min-width: 0; }
.sbox .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.sbox .btns.one { grid-template-columns: 1fr; }
.sbox .bp { height: 44px; border-radius: 14px; border: 0; background: var(--heroBtn); color: var(--heroBtnText); font-weight: 700; font-size: 14.5px; }
.sbox .bs { height: 44px; border-radius: 14px; border: 1px solid var(--heroGhost); background: transparent; color: var(--heroGhostText); font-size: 14px; }
/* «فحص مخصص» (طلب المستخدم 2026-10-15): مربع مثل «بحث» و«فحص السوق» بتنسيق مختلف قليلاً، بإطار ونص بلون التمييز وعلامة الفلاتر */
.sbox .sx { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--heroAccent) 55%, transparent);
  background: color-mix(in srgb, var(--heroAccent) 12%, transparent); color: var(--heroAccent); font-size: 14px; font-weight: 600; text-decoration: none; }
.sbox .sx .ic { width: 18px; height: 18px; }
.sbox .sx:hover { background: color-mix(in srgb, var(--heroAccent) 20%, transparent); }
.tlh { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--heroMuted); }
.tlh b { color: var(--heroText); }
.tl { position: relative; height: 36px; }
.tl .tr { position: absolute; top: 6px; right: 6px; left: 6px; height: 4px; border-radius: 2px; background: var(--heroLine); }
.tl .fl { position: absolute; top: 6px; right: 6px; height: 4px; border-radius: 2px; background: var(--heroDone); }
.tl .g { position: absolute; inset: 0; display: grid; }
.tl .g > div { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; font-size: 10.5px; color: var(--heroGhostText); }
.tl .g span { width: 16px; height: 16px; border-radius: 8px; border: 3px solid var(--hero); background: var(--heroLine); }
.tl .g .done span { background: var(--heroDone); }
.tl .g .failed span, .tl .g .missed span { background: #C4513E; }
.tl .g .next span { background: var(--hero); border: 2px solid var(--heroAccent); }
.tl .g .running span { background: var(--heroAccent); }
.tl .g b { font-weight: 400; } .tl .g .next b { color: #fff; font-weight: 700; }
.tl .g .upcoming:not(.next) b { color: var(--heroMuted); opacity: .8; }

/* شبكة الأقسام */
.secs { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 12px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 54px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--tileBorder); background: var(--tile); color: var(--tileText); font-size: 13.5px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.tile:hover { border-color: var(--accent); }
.tile.off { opacity: .6; cursor: default; } .tile.off:hover { border-color: var(--tileBorder); }
.tile .t { display: flex; align-items: center; gap: 8px; }
.tile .t .ic { color: var(--accent); width: 20px; height: 20px; }
.tile .n { min-width: 28px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--chipN); color: var(--chipNText); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tile .n.soon { font-size: 10.5px; font-weight: 600; background: var(--hotSoft); color: var(--hotText); }
.tile.full { grid-column: 1 / -1; justify-content: center; gap: 14px; }

/* تنبيه الطرح */
.alert-card { border-color: var(--stopText); }
.alert-card .ht .ic, .offer .ht .ic { color: var(--stopText); }
.alert-card h2, .offer h2 { color: var(--stopText); }
.al { display: flex; gap: 10px; align-items: baseline; text-decoration: none; color: var(--text); font-size: 13px; line-height: 1.6; padding: 6px 0; border-top: 1px solid var(--divider); }
.al > b { color: var(--stopText); font-size: 14px; flex-shrink: 0; }
.offer { border: 2px solid var(--stopText); }
.warn { background: var(--stopSoft); color: var(--stopText); border-radius: 12px; padding: 9px 11px; font-size: 13px; line-height: 1.7; }
.offer a { font-size: 13px; font-weight: 600; }

/* التنقل وعنوان القسم */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.nav .back { padding: 0; }
.nav .back .ic { width: 18px; height: 18px; }
.edit-btn { display: inline-flex; align-items: center; gap: 6px; }
.edit-btn .ic { width: 15px; height: 15px; }
.sec-title { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.sec-title > .ic { width: 24px; height: 24px; color: var(--accent); }
.sec-title > .ic.gold { color: var(--waitRing); fill: currentColor; }
.sec-title b { font-size: 21px; display: block; line-height: 1.3; }
.sec-title small { font-size: 12px; color: var(--muted); }
.search .btn .ic { width: 17px; height: 17px; }
.chips button.on { border: 2px solid var(--accent); font-weight: 700; }
.tgl { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--secondary); }
.tgl input { width: 17px; height: 17px; }
.seg.mini { grid-template-columns: repeat(3, auto); padding: 3px; border-radius: 11px; }
.seg.mini button { height: 30px; font-size: 12.5px; padding: 0 10px; border-radius: 8px; }
.tag.t-purple, .t-purple { background: var(--purpleSoft); color: var(--purpleText); }
.big-ic { width: 34px !important; height: 34px !important; color: var(--accent); }

/* بطاقات أفضل الفرص */
.bcs { display: flex; flex-direction: column; gap: 9px; }
.bc { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; cursor: pointer; }
.bc:hover { border-color: var(--accent); }
.bc-top { display: flex; gap: 12px; }
.bc .sq { width: 52px; height: 52px; border-radius: 15px; background: var(--hero); color: #7FE3D1; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0; }
.bc .sq b { font-size: 19px; font-weight: 800; } .bc .sq small { font-size: 9px; color: #9FC7C1; margin-top: 3px; }
.bc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bc .tick { font-size: 17px; font-weight: 700; direction: ltr; color: var(--text); text-decoration: none; }
.bc .price { font-size: 15px; font-weight: 600; direction: ltr; }
.tags2 { display: flex; flex-wrap: wrap; gap: 5px; }
.tags2 > span { font-size: 11px; font-weight: 600; border-radius: 7px; padding: 2px 7px; }
.pcs { display: flex; gap: 5px; flex-wrap: wrap; }
.pc { font-size: 11.5px; font-weight: 600; border-radius: 7px; padding: 2px 8px; white-space: nowrap; }
.pc.g { background: var(--goSoft); color: var(--goText); } .pc.r { background: var(--stopSoft); color: var(--stopText); } .pc.b { background: var(--blueSoft); color: var(--blueText); } .pc.a { background: var(--waitSoft); color: var(--waitText); }

/* صفوف المقسمة */
.srow { flex-direction: row; align-items: center; gap: 12px; }
.sbx { width: 54px; height: 48px; border-radius: 14px; background: var(--blueSoft); color: var(--blueText); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; flex-shrink: 0; }
.sbx span { font-size: 9.5px; } .sbx b { font-size: 14px; }
.srow .l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.srow .ago { font-size: 11.5px; white-space: nowrap; }
.srow .row { flex-wrap: wrap; row-gap: 3px; }
.srow .sst { font-size: 12.5px; font-weight: 500; }
.srow .price { font-size: 15px; font-weight: 600; direction: ltr; }

/* صفحة السهم */
.hero .sym { font-size: 38px; font-weight: 800; }
.metrics b { font-size: 20px; font-weight: 700; }
.sum .sub0 { font-size: 11.5px; color: var(--muted); }
.sum .hd .big { font-size: 15px; font-weight: 700; line-height: 1.35; }
.sum .scorebox { align-items: center; gap: 2px; }
.sum .scorebox b { font-size: 16px; line-height: 1; }
.cycle .hd .big { font-size: 15px; }
.fchips { display: flex; gap: 4px; flex-wrap: nowrap; align-items: center; overflow-x: auto; scrollbar-width: none; }
.fchips::-webkit-scrollbar { display: none; }
.fchips button { flex-shrink: 0; white-space: nowrap; font-size: 11px; border: 1px solid var(--border); border-radius: 8px; padding: 4px 7px; color: var(--secondary); background: var(--card); display: inline-flex; align-items: center; gap: 3px; }
.fchips button[aria-pressed="true"] { background: var(--ink); color: var(--onInk); border-color: var(--ink); font-weight: 700; }
.fchips button.lock { color: var(--muted); border-style: dashed; cursor: not-allowed; opacity: .75; }
.fchips .ic { width: 10px; height: 10px; }
.fchips .sep { width: 1px; height: 20px; background: var(--border); margin: 0 3px; }
.locknote { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; transition: color .3s; }
.locknote .ic { width: 11px; height: 11px; }
.locknote.flash { color: var(--waitText); }
.webull { font-size: 12px; color: var(--editText); display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; text-decoration: none; font-weight: 500; }
.webull .ic { width: 12px; height: 12px; }
.rsi svg, .plan svg { display: block; width: 100%; height: auto; direction: ltr; }
.rsi-cur { font-size: 18px; color: var(--rsi); }
.plan.in { border: 2px solid var(--goSolid); box-shadow: 0 0 0 4px color-mix(in srgb, var(--goSolid) 18%, transparent); }
.plan .now { font-size: 11px; color: var(--muted); text-align: center; margin-top: -6px; }
.pg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.pg > div { border-radius: 12px; padding: 7px 9px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pg .g { background: var(--goSoft); color: var(--goText); } .pg .r { background: var(--stopSoft); color: var(--stopText); } .pg .b { background: var(--blueSoft); color: var(--blueText); }
.pg small { font-size: 10.5px; } .pg b { font-size: 14px; direction: ltr; text-align: right; } .pg em { font-style: normal; font-size: 10px; }
.tg { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--divider); font-size: 12.5px; }
.tg:first-child { border-top: 0; }
.tg .k { font-size: 11px; font-weight: 700; color: var(--blueText); background: var(--blueSoft); border-radius: 6px; padding: 1px 6px; }
.tg .v { display: flex; gap: 6px; align-items: baseline; } .tg .v b { font-size: 13.5px; } .tg .v i { font-style: normal; font-size: 11px; color: var(--goText); }
.rule { font-size: 12.5px; color: var(--secondary); background: var(--page); border-radius: 10px; padding: 9px 11px; line-height: 1.7; }
.fld { border: 1.5px solid var(--border); border-radius: 12px; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 12px; background: var(--page); }
.fld span { font-size: 11px; color: var(--muted); white-space: nowrap; } .fld b { font-size: 15px; white-space: nowrap; }
.fld input { border: 0; background: transparent; outline: 0; font-size: 16px; font-weight: 700; width: 100%; min-width: 0; text-align: left; }
.rk { display: flex; gap: 6px; }
.rk button { flex: 1; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--secondary); font-size: 13px; font-weight: 600; }
.rk button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--onAccent); }
.res { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.res > div { border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; background: var(--page); }
.res small { font-size: 10.5px; color: var(--muted); } .res b { font-size: 17px; direction: ltr; text-align: right; font-family: 'Alexandria', 'Readex Pro', sans-serif; }
.res .dk { background: var(--hero); color: var(--heroText); } .res .dk small { color: var(--heroMuted); }
.res .r { background: var(--stopSoft); color: var(--stopText); } .res .r small { color: inherit; }
.res .g { background: var(--goSoft); color: var(--goText); } .res .g small { color: inherit; }

/* الشريط الجانبي */
.drawer { gap: 2px; }
.drawer .who { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.drawer .who > div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.drawer .who b { font-size: 15px; } .drawer .who small { font-size: 11.5px; color: var(--muted); }
.drawer .who .avatar { width: 40px; height: 40px; border-radius: 20px; font-size: 16px; }
.dr-h { font-size: 11.5px; color: var(--muted); margin: 12px 6px 2px; font-weight: 600; }
.dr-i { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 12px; border-radius: 13px; font-size: 14.5px; font-weight: 600; color: var(--tileText); text-decoration: none; }
a.dr-i:hover { background: var(--tile); }
.dr-i .t { display: flex; align-items: center; gap: 10px; } .dr-i .t .ic { color: var(--accent); }
.dr-i.off { opacity: .6; }
.cnt { font-size: 12px; font-weight: 700; background: var(--chipN); color: var(--chipNText); border-radius: 10px; padding: 1px 8px; }
.soon { font-size: 10px; font-weight: 700; background: var(--hotSoft); color: var(--hotText); border-radius: 6px; padding: 1px 6px; }
.dl .go { text-decoration: none; }
.dr-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--divider); }
.scanrow { gap: 5px; }

/* أفضل الفرص: «قريبة من الشروط» */
.sec-sub { padding: 8px 4px 0; display: flex; flex-direction: column; }
.sec-sub b { font-size: 17px; } .sec-sub small { font-size: 12px; color: var(--muted); }
.bc.near { border-style: dashed; }
.bc .miss { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--waitText); }
.bc .miss .ic { width: 14px; height: 14px; }
/* مقاومات في الطريق */
.inway { display: flex; flex-direction: column; gap: 2px; }
.tg.w { color: var(--muted); } .tg.w .v i { color: var(--muted); }
/* العنوان أكبر من البيانات والنتائج في «خلاصة الجاهزية» و«دورة الدعم» (طلب المستخدم 2026-10-04) */
.sum .hd .ht, .cycle .hd .ht { font-size: 17px; }

/* ── بداية الانفجار (UPDATE-v3 البند 6) ── */
.t-hot { background: var(--hotSoft); color: var(--hotText); }
.t-mute { background: var(--chipN); color: var(--muted); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 4px; background: #E2541B; margin-inline-end: 4px; animation: livepulse 1.4s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.radar-state { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 0 4px; }
.radar-state .ic { width: 16px; height: 16px; }
.radar-state.on { color: var(--hotText); font-weight: 600; }
/* ═══ أسهم الزخم: الفرص والتقرير والمحفظة التجريبية (2026-10-12) ═══ */
.t-blue { background: var(--blueSoft); color: var(--blueText); }
.c-blue { color: var(--blueText); }
.mo-top { flex-wrap: wrap; row-gap: 6px; }
.mo-week { height: 32px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: 12.5px; padding: 0 8px; }
.mo-seg button { height: 38px; font-size: 14px; gap: 5px; }
.mo-seg button .n { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.mo-body { display: flex; flex-direction: column; gap: 10px; }
.olist { display: flex; flex-direction: column; gap: 9px; }
.oc { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 11px 13px; display: flex; flex-direction: column; gap: 7px; }
.oc.pending { border-color: var(--waitRing); }
.oc.active { border-color: var(--blueText); }
.oc.expired { opacity: .72; }
.oc .tick, .led .tick { font-size: 16px; font-weight: 700; direction: ltr; color: var(--text); text-decoration: none; }
.oc .tick:hover, .led .tick:hover { color: var(--accent); }
.oc .tm { font-size: 12px; white-space: nowrap; }
.oc .pill { white-space: nowrap; }
.oc .lv, .led .lv { font-size: 12.5px; color: var(--secondary); }
.oc .lv b, .led .lv b { color: var(--text); }
.oc .res { font-size: 14px; font-weight: 800; }
.oc .tgs { display: flex; flex-wrap: wrap; gap: 6px; }
.oc .tgs span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: var(--chipN); color: var(--chipNText); border-radius: 9px; padding: 3px 9px; }
.oc .tgs span.hit { background: var(--goSoft); color: var(--goText); font-weight: 600; }
.oc .tgs .ic { width: 13px; height: 13px; }
.oc .ft { font-size: 12px; color: var(--muted); align-items: baseline; }
.oc .ft b { font-size: 13px; }
.kp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.kp.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kp > div { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 9px 6px; text-align: center; display: flex; flex-direction: column; gap: 1px; }
/* اسم الرقم أكبر من الرقم (قاعدة المستخدم: العنوان 17 ثم الاسم 14 ثم القيمة 13) */
.kp small { font-size: 14px; font-weight: 600; }
.kp b, .kp b.fd { font-size: 13px; font-weight: 700; }
.rt { width: 100%; border-collapse: collapse; font-size: 13px; }
.rt th { font-weight: 600; color: var(--muted); font-size: 12px; text-align: right; padding: 4px; }
.rt td { padding: 7px 4px; border-top: 1px solid var(--divider); }
.rt td.n, .rt th.n { text-align: left; }
.rt tr.sum td { font-weight: 700; }
.tbar { display: flex; flex-direction: column; gap: 9px; }
.tbar > div { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; align-items: baseline; }
.tbar small { font-size: 12.5px; color: var(--secondary); }
.tbar b { font-size: 13px; } .tbar b i { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12px; }
.tbar .bar { grid-column: 1 / -1; height: 7px; border-radius: 4px; background: var(--track); overflow: hidden; direction: ltr; }
.tbar .bar i { display: block; height: 100%; background: var(--goSolid); border-radius: 4px; }
.pf-hero { background: var(--hero); color: var(--heroText); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.pf-hero small { color: var(--heroMuted); font-size: 12.5px; }
.pf-hero .big { font-size: 32px; font-weight: 800; line-height: 1.2; text-align: right; }
.pf-hero .acc { color: var(--heroAccent); font-size: 14px; }
.pf-hero .spark { width: 100%; height: 78px; display: block; }
.pf-hero .spark-empty { font-size: 12px; color: var(--heroMuted); padding: 14px 0; text-align: center; border: 1px dashed var(--heroLine); border-radius: 12px; }
.pf-hero .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-hero .chips span { background: var(--heroBox); border: 1px solid var(--heroLine); border-radius: 10px; padding: 4px 10px; font-size: 12px; color: var(--heroMuted); }
.pf-hero .chips b { color: var(--heroText); }
.ledger { display: flex; flex-direction: column; }
.led { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--divider); }
.led:first-child { border-top: 0; padding-top: 2px; }
.led .lv small, .led .amt small { display: block; font-size: 11.5px; }
.led .amt { text-align: left; }
.led .amt b { font-size: 13.5px; }
/* ═══ الشهر التجريبي (UPDATE-v4 البند 1، 2026-10-13): شريط التجربة، وشارة التصنيف، وسطر التجريبية، ومعايير الحكم ═══ */
.card.trial { gap: 7px; padding: 11px 13px; border-color: var(--waitRing); }
.card.trial small { font-size: 12.5px; }
.card.trial .bar { display: block; height: 6px; border-radius: 4px; background: var(--track); overflow: hidden; direction: ltr; }
.card.trial .bar i { display: block; height: 100%; min-width: 4px; border-radius: 4px; background: var(--waitRing); }
.tier { display: inline-block; font-family: 'Alexandria', 'Readex Pro', 'SF Arabic', sans-serif; font-weight: 800; font-size: 12px; line-height: 1.5; border-radius: 7px; padding: 0 8px; background: var(--chipN); color: var(--muted); }
.tier.a { background: var(--goSoft); color: var(--goText); }
.tier.b { background: var(--blueSoft); color: var(--blueText); }
.oc.out { opacity: .82; }
.oc > .between:first-child { flex-wrap: wrap; row-gap: 6px; }
.oc > .between:first-child > .pill { margin-inline-start: auto; }
.oc .lv .tm { color: var(--muted); font-size: 12px; }
.oc .ft .net { font-size: 12px; color: var(--muted); white-space: nowrap; }
.oc .ins-row { border-top: 1px solid var(--divider); padding-top: 7px; align-items: flex-start; }
.oc .ins-row > b { font-size: 13px; white-space: nowrap; }
.ins { font-size: 12px; font-weight: 500; display: flex; align-items: flex-start; gap: 6px; line-height: 1.6; }
.ins .ic { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; }
.crl { display: flex; flex-direction: column; }
.crl > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--divider); }
.crl > div:first-child { border-top: 0; padding-top: 2px; }
.crl .t { font-size: 14px; font-weight: 600; }
.crl .v { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.box.verdict { font-size: 14px; }
.rep-tabs { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rep-tabs .seg button { height: 36px; font-size: 14px; }
.rt.lines { font-size: 12.5px; }
.rt.lines th { font-size: 11.5px; line-height: 1.35; vertical-align: bottom; }
.rt.lines td, .rt.lines th { padding-inline: 3px; }
.rt td.two, .rt td.sf { text-align: left; }
.rt.lines td:first-child { white-space: nowrap; }
.rt.lines td:first-child small { font-size: 11px; }
.rt td.two b, .rt td.two small { display: block; white-space: nowrap; }
.rt td.two small { font-size: 11px; font-weight: 400; }
.rt tr.grp td { font-size: 14px; font-weight: 600; padding-top: 12px; border-top: 0; }
.rt tr.grp + tr td { border-top: 0; }
.fn { font-size: 12px; line-height: 1.7; }
.led .lv small .tier { font-size: 10.5px; padding: 0 6px; }
.pf-hero .chips .stopd { background: var(--waitSoft); border-color: var(--waitRing); color: var(--waitText); font-weight: 600; }
/* ═══ محفظتي (UPDATE-v4 البند 2، 2026-10-13): الرصيد والقسمان وحدود الحماية، وصفحة الصفقة، وورقة الإضافة ═══ */
.badge-new { font-size: 10px; font-weight: 700; background: var(--accent); color: var(--onAccent); border-radius: 6px; padding: 1px 6px; }
.cnt.hot { background: var(--stopSoft); color: var(--stopText); }
.pf-title { justify-content: flex-start; }
.pf-title > div { flex: 1; min-width: 0; }
.pf-title .edit-btn { text-decoration: none; flex-shrink: 0; height: 36px; font-size: 13px; padding: 0 11px; }
.pf-title .tick { color: var(--text); text-decoration: none; direction: ltr; unicode-bidi: isolate; }
.pf-grid, .pf-col, .pf-side, .pf-body, .pf-set, #pfa { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bk > div { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bk > div.paused { border-color: var(--stopText); }
.bk .t { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; }
.bk .t .ic { color: var(--accent); width: 17px; height: 17px; }
.bk .t .pc { margin-inline-start: auto; font-size: 11.5px; font-weight: 700; background: var(--chipN); color: var(--chipNText); border-radius: 8px; padding: 0 7px; }
.bk .bal { font-size: 20px; font-weight: 700; text-align: right; }
.bk .kv { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; color: var(--secondary); }
.bk .kv b { color: var(--text); font-size: 13px; white-space: nowrap; }
.bk .note { font-size: 12px; line-height: 1.6; }
.slots { display: flex; gap: 4px; direction: ltr; justify-content: flex-end; }
.slots i { width: 18px; height: 7px; border-radius: 4px; background: var(--track); }
.slots i.on { background: var(--accent); }
.plim { display: flex; flex-direction: column; gap: 9px; }
.plim > div { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; align-items: baseline; }
.plim small { font-size: 14px; color: var(--secondary); font-weight: 500; }
.plim b { font-size: 13px; }
.plim .bar { grid-column: 1 / -1; height: 7px; border-radius: 4px; background: var(--track); overflow: hidden; direction: ltr; }
.plim .bar i { display: block; height: 100%; border-radius: 4px; background: var(--goSolid); }
.plim .bar i.w { background: var(--waitRing); } .plim .bar i.r { background: var(--stopText); }
.pf-seg button { height: 38px; font-size: 14px; gap: 5px; }
.pf-seg button .n { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.pt { display: flex; flex-direction: column; }
.ptr { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 11px 0; border-top: 1px solid var(--divider); color: inherit; text-decoration: none; }
.ptr:first-child { border-top: 0; padding-top: 2px; }
.ptr .tick { font-size: 16px; font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.ptr .amt { text-align: left; }
.ptr .amt b { font-size: 14px; display: block; }
.ptr .amt small { display: block; font-size: 11.5px; color: var(--muted); }
.ptr .nx { grid-column: 1 / -1; font-size: 12.5px; color: var(--secondary); display: flex; align-items: flex-start; gap: 6px; line-height: 1.6; }
.ptr .nx.muted { color: var(--muted); }
.ptr .nx .ic { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.ptr.fl b { font-size: 13.5px; font-weight: 600; }
.psr { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--divider); font-size: 14px; }
.card > .psr:first-of-type { border-top: 0; }
.psr b { font-size: 13px; text-align: left; }
.psplit { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.pf-set input[type=range] { width: 100%; accent-color: var(--accent); direction: rtl; }
.pres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.pres > div { border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; background: var(--page); min-width: 0; }
.pres small { font-size: 12px; color: var(--muted); }
.pres b { font-family: 'Alexandria', 'Readex Pro', 'SF Arabic', sans-serif; font-size: 17px; direction: ltr; text-align: right; }
.pres .dk { background: var(--hero); color: var(--heroText); } .pres .dk small { color: var(--heroMuted); }
.pres .r { background: var(--stopSoft); color: var(--stopText); } .pres .r small { color: inherit; }
.pres .g { background: var(--goSoft); color: var(--goText); } .pres .g small { color: inherit; }
.psteps { display: flex; flex-direction: column; }
.ps { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--divider); }
.ps:first-child { border-top: 0; }
.ps .p { font-family: 'Alexandria', 'Readex Pro', 'SF Arabic', sans-serif; font-weight: 700; font-size: 14px; text-align: center; border-radius: 8px; padding: 3px 0; background: var(--chipN); color: var(--chipNText); }
.ps.g .p { background: var(--goSoft); color: var(--goText); }
.ps.r .p { background: var(--stopSoft); color: var(--stopText); }
.ps.e .p { background: var(--blueSoft); color: var(--blueText); }
.ps b { display: block; font-size: 14px; }
.ps > div > span { font-size: 12.5px; color: var(--secondary); line-height: 1.6; }
.ps .v { font-family: 'Alexandria', 'Readex Pro', 'SF Arabic', sans-serif; font-weight: 700; font-size: 13px; white-space: nowrap; }
.ps.done { opacity: .62; }
.ps.next { background: color-mix(in srgb, var(--accent) 9%, transparent); border-radius: 12px; padding-inline: 8px; margin-inline: -8px; border-top-color: transparent; }
.ps.next + .ps, .ps.next + .nowline + .ps { border-top-color: transparent; }
.nextchip, .donechip { font-size: 10.5px; font-weight: 700; border-radius: 6px; padding: 0 6px; margin-inline-start: 6px; white-space: nowrap; }
.nextchip { background: var(--accent); color: var(--onAccent); }
.donechip { background: var(--chipN); color: var(--chipNText); }
.nowline { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--blueText); font-weight: 600; padding: 4px 0; }
.nowline::before, .nowline::after { content: ""; flex: 1; border-top: 1.5px dashed var(--blueText); opacity: .6; }
.pchk { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.pchk div { display: flex; align-items: flex-start; gap: 7px; line-height: 1.6; }
.pchk .ic { width: 16px; height: 16px; color: var(--goText); flex-shrink: 0; margin-top: 2px; }
.pchk .w .ic { color: var(--waitText); }
.box.info { background: var(--blueSoft); color: var(--blueText); }
.pbtns { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.pbtns .btn, .pbtns .btn-outline { width: 100%; padding: 0 8px; justify-content: center; }
.btn:disabled { opacity: .45; }
.pfrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hc.add { background: var(--accent); color: var(--onAccent); cursor: pointer; }
.oc-act { display: flex; justify-content: flex-end; }
.pf-mini { height: 32px; border-radius: 10px; border: 1px solid var(--border); background: var(--page); color: var(--text); font-size: 12.5px; font-weight: 600; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px; }
.pf-mini .ic { width: 14px; height: 14px; color: var(--accent); }
/* المرحلة C: مفاتيح ورقة الإضافة، وزر «صفقة يدوية»، ووسوم المصدر والطريقة، وملخص الكشف */
.pf-seg2 button { height: 36px; font-size: 14px; }
.field small:empty { display: none; }
.field small { font-size: 11.5px; color: var(--muted); }
.pf-manual { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pf-manual .ic { width: 16px; height: 16px; }
.pf-tags { gap: 5px; margin-top: 4px; }
.pf-stats { display: grid; gap: 14px; }
.pf-stat { display: flex; flex-direction: column; gap: 4px; }
.pf-stat > b { font-size: 14px; }
@media (min-width: 900px) { .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sec-sub { font-weight: 700; font-size: 15px; padding: 6px 4px 0; display: flex; gap: 8px; align-items: baseline; }
.sec-sub small { font-weight: 400; font-size: 12px; }
.item .miss { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--waitText); margin-top: 4px; }
.item .miss .ic { width: 14px; height: 14px; }
.metrics b.up { color: #7FD8B0; } .metrics b.down { color: #F2A396; }


/* ═══ صفحة السهم بخمس صفحات (2026-10-07) ═══ */
/* العنوان دائماً أكبر من بيانات بطاقته (طلب المستخدم): العناوين 17، والبيانات أصغر منها */
.card h2, .card h2.ht, details.card summary, .sum .hd .ht, .cycle .hd .ht { font-size: 17px; }
.ht .ic { width: 17px; height: 17px; }
.facts b { font-size: 15px; font-weight: 600; }
.facts > div > span { font-size: 13px; }
.rsi-cur { font-size: 14px; }
/* الرأس المختصر */
.shero { padding: 16px 16px 0; border-radius: 18px; }
.shero .idn { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shero .sym { font-size: 28px; }
.shero .cty { font-size: 13px; color: var(--onInkMuted); }
.shero .cname { font-size: 13px; }
.shero .metrics { margin-top: 14px; }
.shero .metrics > div { padding: 11px 0 13px; }
.shero .metrics b { font-size: 17px; }
.hchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.hc { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px; border-radius: 9px; border: 0; background: var(--chipN); color: var(--chipNText); font-size: 12px; font-weight: 600; font-family: inherit; }
.hc .ic { width: 14px; height: 14px; }
.hc.red { background: var(--stopSoft); color: var(--stopText); cursor: pointer; }
.hc.edit { background: var(--editSoft); color: var(--editText); cursor: pointer; }
/* شريط الصفحات الثابت */
.stabs { position: sticky; top: 0; z-index: 6; background: var(--page); margin: 0 -14px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.smini { display: none; align-items: center; gap: 8px; padding: 8px 2px 2px; font-size: 13px; }
.smini b { font-size: 16px; direction: ltr; }
.smini .pill { margin-inline-start: auto; min-width: 0; max-width: 48%; overflow: hidden; text-overflow: ellipsis; }
.stabs.mini .smini { display: flex; }
/* سهم الرجوع في زاوية الشريط الثابت عند النزول في الصفحة */
.smini .sinfo { display: contents; }
.sback { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: -4px; margin-inline-end: 0; border-radius: 10px; color: var(--text); flex-shrink: 0; }
.sback .ic { width: 20px; height: 20px; }
.sback:active { background: var(--track); }

/* صفحة التحليل: البيانات أصغر برقم من الأصل (طلب المستخدم 2026-10-07)، ومسافة سطر بين عنوان الدورة ونتيجتها */
.atab { display: contents; }
.atab .box { font-size: 12.5px; }
.atab .pill { font-size: 10.5px; }
.atab .tag { font-size: 10px; }
.atab .card .sub { font-size: 11px; }
.atab .ovr .who b { font-size: 13px; } .atab .ovr .who small { font-size: 11px; }
.atab .ovr .chg { font-size: 12px; } .atab .ovr .note { font-size: 12.5px; }
.atab .sum .sub0 { font-size: 10.5px; }
.atab .sum .ring b { font-size: 13px; }
.atab .sum .stt { font-size: 13px; }
.atab .mlab { font-size: 11px; } .atab .mchips > span { font-size: 11px; }
.atab .sum .foot { font-size: 11.5px; }
.atab .hd .big { font-size: 13px; margin-top: 14px; }
.atab .cycle .st > span { font-size: 12.5px; } .atab .cycle .st small { font-size: 11px; }
.atab .cond .mk { font-size: 12.5px; } .atab .cond .tt { font-size: 12.5px; } .atab .cond .dd { font-size: 11px; } .atab .cond .w { font-size: 11px; }
.atab .pg small { font-size: 9.5px; } .atab .pg b { font-size: 12.5px; } .atab .pg em { font-size: 9px; }
.atab .tg { font-size: 11.5px; } .atab .tg .k { font-size: 10px; } .atab .tg .v b { font-size: 12px; } .atab .tg .v i { font-size: 10px; }
.atab .rule { font-size: 11.5px; } .atab .pc { font-size: 10.5px; } .atab .plan .now { font-size: 10px; }
.atab .asof2 { font-size: 11px; }
.atab details.card ul { font-size: 12px; }
.stl { display: flex; }
.stl button { position: relative; flex: 1 1 0; min-width: 0; height: 46px; border: 0; background: none; padding: 0 2px; font-size: 14px; font-weight: 500; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.stl button[aria-selected="true"] { color: var(--accent); font-weight: 700; }
.stl button[aria-selected="true"]::after { content: ''; position: absolute; bottom: -1px; right: 12%; left: 12%; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.tdot { width: 7px; height: 7px; border-radius: 4px; background: var(--down); flex-shrink: 0; }
.tcnt { min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; background: var(--accent); color: var(--onAccent); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.stab { display: flex; flex-direction: column; gap: 12px; min-height: 40vh; }
/* البيانات */
.offer-s { display: flex; align-items: center; gap: 10px; background: var(--stopSoft); color: var(--stopText); border: 1px solid color-mix(in srgb, var(--stopText) 35%, transparent); border-radius: 12px; padding: 9px 12px; }
.offer-s > .ic { width: 20px; height: 20px; flex-shrink: 0; }
.offer-s .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.offer-s .t b { font-size: 13.5px; } .offer-s .t span { font-size: 12px; }
.offer-s .lk { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.offer-s .lk a { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 9px; border-radius: 8px; background: var(--card); color: var(--stopText); font-size: 12px; font-weight: 700; text-decoration: none; }
.offer-s .lk .ic { width: 12px; height: 12px; }
.note-s { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.borrow2 { justify-content: center; gap: 6px; font-size: 13px; height: 42px; }
.borrow2 .ic { width: 15px; height: 15px; }
.hrows > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; }
.hrows > div + div { border-top: 1px solid var(--divider); }
.hrows > div > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hrows span { font-size: 13.5px; font-weight: 500; } .hrows small { font-size: 11.5px; color: var(--muted); }
.hrows b { font-size: 15px; }
/* بطاقات صفحة السهم: اسم البيان (الفلووت، الأسهم القائمة…) أكبر قليلاً من رقمه (طلب المستخدم 2026-10-08) */
/* 2026-10-10: خط البيانات أصغر بدرجة في كل صفحات السهم (الاسم 14 والرقم 13، والعنوان 17) */
#stab .facts > div > span, #stab .hrows > div > div > span { font-size: 14px; }
#stab .facts b, #stab .hrows b { font-size: 13px; }
#stab .facts small, #stab .hrows small { font-size: 11px; }
/* التحليل */
.sum .ring { flex-shrink: 0; width: 56px; height: 56px; border-radius: 28px; border: 4px solid var(--track); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.sum .ring b { font-size: 15px; } .sum .ring small { font-size: 10px; color: var(--muted); margin-top: 2px; }
.sum .ring.r-green { border-color: var(--goSolid); } .sum .ring.r-amber { border-color: var(--waitRing); } .sum .ring.r-red { border-color: var(--stopText); }
.sum .stt { font-size: 15px; font-weight: 700; line-height: 1.35; margin-top: -2px; }
.mlab { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: -4px; }
.mchips { display: flex; flex-wrap: wrap; gap: 6px; }
.mchips > span { background: var(--hlSoft); color: var(--hlText); border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 500; line-height: 1.5; }
.sum .foot { font-size: 12.5px; }
.asof2 { font-size: 12px; color: var(--muted); line-height: 1.7; padding: 0 4px; }
/* بطاقة «نموذج التقسيم» الموحّدة (2026-10-10): خمس محطات، ومسار السعر من القاع (يمين) إلى منطقة الهدف (يسار)، وبيانات التقسيم */
.hc .ic.flip { transform: scaleX(-1); width: 12px; height: 12px; margin-inline-start: -2px; }
.cycle.split .hd > .between { margin-top: 14px; align-items: flex-start; }
.cycle.split .hd .big { margin-top: 0; }
.cycle.split .hd .pill { flex-shrink: 0; }
.cycle.split .st small { white-space: normal; text-align: center; line-height: 1.35; }
.cycle.split .st small span { display: block; }
.sres { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.sres b { color: var(--text); font-weight: 600; }
.spath { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--divider); padding-top: 12px; margin-top: 4px; }
.sp-h { font-size: 13px; font-weight: 600; color: var(--text); }
.sp-top { position: relative; height: 18px; font-size: 11px; color: var(--muted); }
.sp-now { position: absolute; top: 0; white-space: nowrap; font-weight: 600; color: var(--accent); transform: translateX(50%); }
.sp-now.a-s { inset-inline-start: 0 !important; transform: none; }
.sp-now.a-e { inset-inline-start: auto !important; inset-inline-end: 0; transform: none; }
.sp-zl { position: absolute; top: 0; inset-inline-end: 0; white-space: nowrap; color: var(--goText); }
.sp-bar { position: relative; height: 22px; }
.sp-bar i { position: absolute; display: block; }
.sp-bar .trk { top: 7px; inset-inline: 0; height: 8px; border-radius: 4px; background: var(--track); }
.sp-bar .zone { top: 2px; inset-inline-end: 0; height: 18px; border-radius: 5px; background: var(--goSoft); border: 1px dashed var(--goSolid); box-sizing: border-box; }
.sp-bar .fill { top: 7px; inset-inline-start: 0; height: 8px; border-radius: 4px; background: var(--accent); }
.sp-bar .tk { top: 2px; width: 2px; height: 18px; margin-inline-start: -1px; border-radius: 1px; background: var(--goSolid); }
.sp-bar .bn { top: 3px; width: 3px; height: 16px; margin-inline-start: -1.5px; border-radius: 1.5px; background: var(--waitRing); }
.sp-bar .dot { top: 3px; width: 16px; height: 16px; margin-inline-start: -8px; border-radius: 8px; background: var(--accent); border: 3px solid var(--card); box-sizing: border-box; box-shadow: 0 0 0 1px var(--accent); }
.sp-leg { position: relative; height: 31px; }
.sp-leg > div { position: absolute; top: 0; display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }
.sp-leg > .a-s { inset-inline-start: 0; align-items: flex-start; }
.sp-leg > .mid { align-items: center; transform: translateX(50%); }
.sp-leg > .a-e { inset-inline-end: 0; align-items: flex-end; }
/* اسم البيان أكبر قليلاً من رقمه كبقية بطاقات السهم */
.sp-leg span { font-size: 11.5px; color: var(--muted); }
.sp-leg b { font-size: 11px; font-weight: 700; }
.sp-key { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.sp-key i { width: 3px; height: 12px; border-radius: 1.5px; background: var(--waitRing); }
.sp-key .n { color: var(--text); font-weight: 600; }
.sp-sum { background: var(--editSoft); color: var(--editText); border-radius: 10px; padding: 7px 10px; font-size: 12px; font-weight: 500; line-height: 1.6; }
.sfacts { border-top: 1px solid var(--divider); margin-top: 4px; }
/* الشارت */
.fsbtn { width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; background: var(--tile); color: var(--text); }
.fsbtn .ic { width: 19px; height: 19px; }
.legend { flex-wrap: wrap; row-gap: 4px; }
.mk { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 8px; color: #fff; font-size: 9px; font-weight: 700; margin-inline-end: 4px; vertical-align: middle; }
.mk.e { background: #3B78C2; } .mk.s { background: #C27A1E; }
.lv .lr { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 64px; align-items: center; gap: 10px; padding: 8px 0; }
.lv .lr + .lr { border-top: 1px solid var(--divider); }
.lv .lr > i { width: 10px; height: 10px; border-radius: 5px; background: var(--track); }
.lv .lr span { font-size: 13px; } .lv .lr b { font-size: 13px; direction: ltr; } .lv .lr small { font-size: 11.5px; color: var(--muted); text-align: left; }
.lv .lr.r1 > i { background: var(--down); } .lv .lr.r > i { background: color-mix(in srgb, var(--down) 45%, transparent); }
.lv .lr.gap > i { background: var(--editBorder); border-radius: 2px; }
.lv .lr.sup > i { background: var(--goSolid); } .lv .lr.sw > i { background: color-mix(in srgb, var(--goSolid) 45%, transparent); }
.lv .lr.r1 span, .lv .lr.sup span { font-weight: 600; }
.lv .lr.now { background: var(--ink); color: var(--onInk); border-radius: 10px; padding: 8px 10px; margin: 2px -10px; border-top: 0; }
.lv .lr.now + .lr { border-top: 0; }
.lv .lr.now > i { background: var(--heroAccent); } .lv .lr.now small { color: var(--heroAccent); } .lv .lr.now span { font-weight: 600; }
/* الأخبار */
.seg.nf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg.nf button { height: 38px; font-size: 13px; }
.seg.nf button .n { color: var(--muted); font-size: 11.5px; }
/* الشركة */
.about { margin: 0; font-size: 13.5px; line-height: 1.85; }
.about.en { direction: ltr; text-align: left; font-size: 13px; color: var(--secondary); line-height: 1.7; }
.ctags { display: flex; flex-wrap: wrap; gap: 6px; }
.ctags span { background: var(--chipN); color: var(--chipNText); border-radius: 8px; padding: 3px 10px; font-size: 12px; font-weight: 500; }
.cfacts b { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.cfacts b.ltr { direction: ltr; text-align: right; justify-content: flex-end; }
.links2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.links2 a { justify-content: center; gap: 6px; font-size: 13px; height: 42px; }
.links2 .ic { width: 14px; height: 14px; }

/* ═══ الشارت الكامل (ملء الشاشة) ═══ */
body.fc-open { overflow: hidden; }
.fc-root { position: fixed; inset: 0; z-index: 30; background: var(--card); }
.fc-root > .spinner { margin-top: 40vh; }
.fc { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--card); color: var(--text);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.fc-top { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--divider); flex-wrap: wrap; }
.fc-ib { width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; background: var(--tile); color: var(--text); }
.fc-ib svg { width: 20px; height: 20px; }
.fc-id { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; flex: 1; }
.fc-id b { font-size: 18px; direction: ltr; }
.fc-px { font-size: 15px; font-weight: 600; }
.fc-ch { font-size: 13px; font-weight: 600; } .fc-ch.up { color: var(--up); } .fc-ch.down { color: var(--down); }
.fc-id .pill { align-self: center; }
.fc-fr { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: var(--track); }
.fc-fr button { height: 32px; min-width: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--secondary); font-size: 12.5px; font-weight: 500; }
.fc-fr button[aria-checked="true"] { background: var(--card); color: var(--text); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.fc-tools { display: flex; align-items: center; gap: 4px; padding: 5px 8px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--divider); }
.fc-tools::-webkit-scrollbar { display: none; }
.fc-tools button { flex-shrink: 0; height: 38px; min-width: 40px; padding: 0 9px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--secondary); font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.fc-tools button svg { width: 18px; height: 18px; }
.fc-tools button[aria-pressed="true"] { background: var(--editSoft); color: var(--editText); border-color: var(--editBorder); font-weight: 700; }
.fc-tools button:disabled { opacity: .4; }
.fc-tools [data-show] { font-size: 12px; min-width: 44px; justify-content: center; border-color: var(--border); }
.fc-sep { width: 1px; height: 22px; background: var(--border); flex-shrink: 0; margin: 0 2px; }
@media (max-width: 560px) { .fc-tools [data-tool] span, .fc-tools [data-act] span { display: none; } }
.fc-info { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: nowrap; padding: 0 10px; font-size: 11.5px; color: var(--muted); height: 26px; flex-shrink: 0; overflow: hidden; }
/* ارتفاع ثابت: نص الشمعة يتغير مع حركة المؤشر، ولو التفّ السطر لتغيّر ارتفاع الشارت وأُعيد رسمه كاملاً (قفز وبطء) */
.fc-info #fc-ohlc { direction: ltr; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
.fc-info .fc-leg { flex-shrink: 0; white-space: nowrap; }
.fc-leg { display: inline-flex; align-items: center; gap: 4px; }
.fc-leg .mk { margin-inline-start: 6px; }
.fc-hint { position: absolute; top: 132px; right: 50%; transform: translateX(50%); z-index: 3; background: var(--ink); color: var(--onInk); font-size: 12.5px; border-radius: 10px; padding: 6px 12px; pointer-events: none; max-width: 90%; text-align: center; }
.fc-hint.err { background: var(--stopSoft); color: var(--stopText); }
/* لون الرسم المحدد: يظهر في أعلى الشارت عند تحديد خط أو رسم (موضعه من chart.js) */
.fc-colors { position: absolute; top: 132px; right: 50%; transform: translateX(50%); z-index: 3; display: flex; gap: 6px; padding: 5px 8px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.16); }
.fc-colors button { width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); cursor: pointer; }
.fc-colors button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--text); }
.fc-chart { flex: 1 1 auto; min-height: 0; position: relative; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
/* المؤشر فوق الرسومات القابلة للسحب (المكتبة تضع مؤشرها على عناصرها) */
.fc-chart[data-cur="ns"] * { cursor: ns-resize !important; }
.fc-chart[data-cur="move"] * { cursor: move !important; }
.fc-chart[data-cur="grab"] * { cursor: grab !important; }
.fc-pop { position: absolute; z-index: 4; width: 184px; display: flex; flex-direction: column; gap: 2px; background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.fc-pop b { font-size: 13px; }
/* الصفة hidden تغلب display في عناصر الشارت (النافذة المنبثقة وشارة الحالة) */
.fc [hidden] { display: none !important; }
@media (max-width: 560px) {
  .fc-top { row-gap: 6px; }
  .fc-id { flex-wrap: nowrap; overflow: hidden; }
  .fc-id .pill { overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
  .fc-fr { order: 3; width: 100%; }
  .fc-fr button { flex: 1 1 0; }
  /* سطران ثابتان: بيانات الشمعة ثم المفتاح، فلا يتغير ارتفاع الشارت مع حركة المؤشر */
  .fc-info { flex-direction: column; align-items: stretch; justify-content: center; gap: 2px; height: 42px; }
}

/* ═══ الشاشات العريضة: اللابتوب والمكتبي (التصميم المعتمد 2026-10-09) ═══ */
/* في الجوال يبقى كل شيء كما هو: الشريط الجانبي والعلوي مخفيان، والأغلفة الجديدة لا تغيّر الترتيب */
.side, .topbar { display: none; }
.desk-only { display: none !important; }
.homegrid { display: flex; flex-direction: column; gap: 12px; }
.atab .acol, .ctab, .ccol, .cols2, .cols2 > .col, .pgrid, .news .ngrid, .tile .tic { display: contents; }
.tsub { display: none; }

@media (min-width: 1100px) {
  /* الإطار: شريط جانبي ثابت يميناً، وشريط علوي ثابت، والمحتوى بعرض أقصى */
  body.signed .shell { display: flex; align-items: flex-start; min-height: 100vh; }
  body.signed .mainw { flex: 1; min-width: 0; }
  body.signed #app { max-width: 1240px; padding: 22px 24px 40px; gap: 14px; }
  body.signed span.desk-only { display: inline !important; }
  body.signed .sec-title.desk-only { display: flex !important; }
  body.signed .apphdr, body.signed .nav.to-home { display: none; }

  body.signed .side { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; width: 248px; flex-shrink: 0; background: var(--card); border-inline-end: 1px solid var(--border); padding: 16px 12px; }
  .side .brand { padding: 2px 8px 12px; text-decoration: none; color: var(--text); }
  .side .appic { width: 40px; height: 40px; border-radius: 12px; }
  .side .dr-i { min-height: 42px; }
  .side .dr-i.on, .side a.dr-i.on:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
  .side .dr-i.on .cnt { background: var(--accent); color: var(--onAccent); }
  .side .dl .go { height: 40px; font-size: 14.5px; border-radius: 12px; }
  .side .dl .go:hover { background: var(--tile); }
  .side .dl.on { background: var(--tile); border-color: var(--tileBorder); }
  .side .dl .mini { opacity: 0; }
  .side .dl:hover .mini, .side .dl:focus-within .mini { opacity: 1; }
  .side .dnew { height: 40px; }
  .side .who { display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px; }
  .side .who > div { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
  .side .who b { font-size: 14.5px; } .side .who small { font-size: 11.5px; color: var(--muted); }
  .side .avatar { width: 36px; height: 36px; font-size: 15px; }

  body.signed .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 8; height: 66px; padding: 0 24px; background: var(--hdr); border-bottom: 1px solid var(--border); }
  .tb-title b { font-size: 21px; font-weight: 700; }
  .tb-end { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
  .nextscan { font-size: 12.5px; color: var(--muted); white-space: nowrap; } .nextscan b { color: var(--text); }
  .topbar .sess { height: 30px; padding: 0 12px; font-size: 12px; }
  .gsearch { position: relative; flex: 1 1 280px; max-width: 460px; }
  .gsearch label { display: flex; align-items: center; gap: 10px; height: 42px; background: var(--card); border: 1.5px solid var(--border); border-radius: 13px; padding: 0 14px; color: var(--muted); }
  .gsearch label:focus-within { border-color: var(--accent); }
  .gsearch input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 14.5px; min-width: 0; }
  .kbd { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 0 7px; line-height: 20px; background: var(--tile); }
  .gres { position: absolute; top: 48px; right: 0; left: 0; z-index: 9; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.16); padding: 6px; max-height: 440px; overflow: auto; }
  .gr { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 13px; }
  .gr b { font-size: 15px; direction: ltr; }
  .gr .nm { flex: 1; min-width: 0; color: var(--muted); font-size: 12px; direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gr:hover, .gr.sel { background: var(--tile); color: var(--text); }
  .gnone { padding: 10px; font-size: 13px; }

  /* الرئيسية: الرادار بعرض الشاشة، والبحث والأزرار في سطر، والأقسام بطاقات وبجانبها تنبيه الطرح */
  .radar { padding: 28px 32px 22px; gap: 18px; }
  .radar .rings { width: 560px; height: 560px; left: -170px; bottom: -290px; }
  .radar .eb { font-size: 13px; }
  .radar h2 { font-size: 30px; } .radar h2 br { display: none; }
  .sbox { flex-direction: row; align-items: center; gap: 10px; padding: 10px; max-width: 900px; }
  .sbox .sx { height: 50px; min-width: 150px; padding: 0 18px; flex-shrink: 0; }
  .sbox .inp { flex: 1; height: 50px; }
  .sbox .btns, .sbox .btns.one { display: flex; gap: 10px; }
  .sbox .bp, .sbox .bs { height: 50px; min-width: 124px; padding: 0 20px; }
  .radar .tlh { border-top: 1px solid var(--heroLine); padding-top: 16px; font-size: 12.5px; }
  .tl .g > div { font-size: 12px; }
  .homegrid.has-al { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: 16px; }
  .homegrid .secs { order: 1; } .homegrid .alert-card { order: 2; }
  .secs { background: none; border: 0; padding: 0; border-radius: 0; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .tile, .tile.full { grid-column: auto; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ic n" "tt tt" "sub sub"; align-items: center; align-content: start; gap: 4px 8px; padding: 16px; min-height: 132px; border-radius: 18px; background: var(--card); white-space: normal; }
  .tile .t { display: contents; }
  .tile .tic { grid-area: ic; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 13px; background: var(--tile); border: 1px solid var(--tileBorder); color: var(--accent); }
  .tile .tic .ic { width: 22px; height: 22px; }
  .tile > .n { grid-area: n; justify-self: end; min-width: 32px; height: 26px; font-size: 13px; border-radius: 13px; }
  .tile .tn { grid-area: tt; font-size: 17px; font-weight: 700; color: var(--text); margin-top: 8px; }
  .tsub { grid-area: sub; display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); line-height: 1.5; }

  /* الأقسام */
  .sec-title { gap: 12px; } .sec-title > .ic { width: 28px; height: 28px; } .sec-title b { font-size: 23px; } .sec-title small { font-size: 12.5px; }
  .toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .ssearch { flex: 1 1 260px; max-width: 420px; display: flex; align-items: center; gap: 8px; height: 44px; background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 0 14px; color: var(--muted); }
  .ssearch:focus-within { border-color: var(--accent); }
  .ssearch input { flex: 1; border: 0; outline: none; background: transparent; font-size: 15px; min-width: 0; }
  .fbtn { height: 44px; padding: 0 16px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--card); color: var(--text); font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
  .fbtn .ic { width: 17px; height: 17px; }
  .fbtn:hover { border-color: var(--accent); }
  .fbtn[aria-expanded="true"] { background: var(--primary); color: var(--onPrimary); border-color: var(--primary); }
  .lcount { font-size: 15px; }
  .sortsel { height: 40px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--secondary); font-size: 13.5px; padding: 0 10px; }
  /* لوحة الفلاتر: مخفية حتى يُضغط زر «الفلاتر»، وتُطبَّق فوراً */
  .fpanel { gap: 16px; padding: 18px 20px; }
  .fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 24px; }
  .fg { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
  .fg > b { font-size: 15px; }
  .fg.s2 { grid-column: span 2; } .fg.s4 { grid-column: 1 / -1; }
  .fpanel .opts button { height: 36px; font-size: 13px; }
  .fpanel .input { height: 40px; font-size: 14px; border-radius: 11px; }
  .fsw { flex-direction: row; flex-wrap: wrap; gap: 10px 28px; border-top: 1px solid var(--divider); padding-top: 14px; }
  .fsw .switch { justify-content: flex-start; gap: 8px; font-size: 14px; }
  .fsw input[type="checkbox"] { width: 18px; height: 18px; }
  .fclose { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 10px; background: var(--tile); color: var(--secondary); font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
  .fclose:hover { color: var(--text); border-color: var(--accent); }
  /* جدول الأسهم (الارتكاز والسنتات والمفضلة) */
  .tblw { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: 18px; }
  /* يتسع لعرض لابتوب 1280 بلا تمرير أفقي، وأضيق منه يمرَّر الجدول وحده أفقياً */
  .tbl { min-width: 966px; }
  .tr { display: grid; grid-template-columns: minmax(160px, 2.3fr) minmax(118px, 1.5fr) 56px minmax(96px, 1.3fr) 70px 62px 62px 62px minmax(88px, 1.1fr) 96px; align-items: center; column-gap: 8px; padding: 11px 12px; cursor: pointer; }
  .tr + .tr { border-top: 1px solid var(--divider); }
  .tr:hover { background: color-mix(in srgb, var(--track) 40%, transparent); }
  .tr.th { cursor: default; background: var(--tile); padding-top: 10px; padding-bottom: 10px; }
  .tr.th:hover { background: var(--tile); }
  .tr.th > span { font-size: 13.5px; font-weight: 600; color: var(--secondary); white-space: nowrap; }
  .tr.th > span:last-child { text-align: left; }
  .c-sym { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .c-sym .row { gap: 7px; flex-wrap: wrap; row-gap: 3px; }
  .c-sym .tick { font-size: 16px; font-weight: 700; direction: ltr; unicode-bidi: isolate; color: var(--text); text-decoration: none; }
  .c-sym .tick:hover { color: var(--accent); }
  .c-sym .name { font-size: 12px; color: var(--muted); direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tr .pill { white-space: normal; line-height: 1.4; border-radius: 10px; padding: 2px 9px; }
  .tr .score-sm b { font-size: 14px; }
  .tr .cell { font-size: 13px; min-width: 0; }
  .tr .cell i { font-style: normal; font-size: 10.5px; color: var(--muted); background: var(--track); border-radius: 5px; padding: 0 5px; margin-inline-start: 4px; }
  .tr .cell small { display: block; font-size: 11px; color: var(--muted); }
  .c-px { display: flex; flex-direction: column; align-items: flex-end; }
  .c-px .price { font-size: 15.5px; font-weight: 700; direction: ltr; line-height: 1.25; }
  .c-px .chg { font-size: 12.5px; font-weight: 600; }
  .c-px .sess { height: auto; padding: 0; font-size: 10.5px; font-weight: 500; color: var(--editText); }
  .bcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
  .bc { padding: 14px 16px; gap: 10px; }
  .bc .pcs { padding-top: 10px; border-top: 1px solid var(--divider); }
  .olist { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
  .mo-seg { max-width: 520px; }
  .mo-body.t-rep, .mo-body.t-pf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .mo-body.t-rep > .kp, .mo-body.t-pf > .pf-hero { grid-column: 1 / -1; }
  .mo-body.t-rep.trialv > .x-extra { grid-column: 1 / -1; max-width: 640px; }
  /* محفظتي: الرصيد بجانب القسمين وحدود الحماية، وصفحة الصفقة بعمودين */
  .pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .pf-seg { max-width: 520px; }
  .pf-body, .pf-set { max-width: 760px; }
  .card.trial { max-width: 520px; }
  .mo-body.t-pf > .pf-hero { max-width: 560px; }
  .kp { grid-template-columns: repeat(6, minmax(0, 1fr)); } .kp.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .slist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slist .item + .item { border-top: 0; }
  .slist .item:nth-child(n+3) { border-top: 1px solid var(--divider); }
  .slist .item:nth-child(odd) { border-inline-end: 1px solid var(--divider); }
  .cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .cols2 > .col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
  .pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  #app[data-page="settings"], #app[data-page="users"] { max-width: 1040px; }
  #app[data-page="scans"] { max-width: 900px; }

  /* صفحة السهم: الرأس في سطر، وشريط الصفحات تحت الشريط العلوي، وكل صفحة بأعمدة */
  .shero { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px 28px; padding: 20px 24px; }
  .shero > .between { flex: 1 1 320px; justify-content: flex-start; gap: 14px; }
  .shero .sym { font-size: 34px; }
  .shero .metrics { margin-top: 0; border-top: 0; display: flex; flex-wrap: wrap; }
  .shero .metrics > div, .shero .metrics > div + div { padding: 4px 24px; border-inline-start: 1px solid var(--inkLine); min-width: 150px; }
  .shero .metrics > div > span { font-size: 12.5px; }
  .shero .metrics b { font-size: 21px; }
  .stabs { top: 66px; margin: 0 -24px; padding: 0 24px; }
  .stl { gap: 4px; }
  .stl button { flex: 0 0 auto; height: 48px; padding: 0 22px; font-size: 15px; }
  .stl button[aria-selected="true"]::after { right: 14px; left: 14px; }
  .stab.t-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .stab.t-data > :not(.card) { grid-column: 1 / -1; }
  .atab { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .atab .acol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .atab > :not(.acol) { grid-column: 1 / -1; }
  .cycle.split .st small span { display: inline; }
  .ctab { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
  .ctab.one { grid-template-columns: minmax(0, 1fr); }
  .ccol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .fsbtn { width: auto; padding: 0 12px; gap: 6px; font-size: 13px; font-weight: 600; text-decoration: none; }
  .fchips button { font-size: 12.5px; padding: 5px 10px; }
  .legend { font-size: 12.5px; gap: 18px; }
  .lv .lr span, .lv .lr b { font-size: 13px; }
  .stab.t-news .seg.nf { max-width: 520px; }
  .news .ngrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; align-items: start; }
  .news .ngrid > a:not(.pos):not(.neg) { border-top: 1px solid var(--divider); }
  .stab.t-company { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
  .stab.t-company > :not(.card), .stab.t-company > .fin { grid-column: 1 / -1; }
  .fin .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fin .facts > div:nth-child(n+3) { border-top: 0; }
  .fin .facts > div + div { border-inline-start: 1px solid var(--divider); padding-inline-start: 16px; }
}
@media (min-width: 1400px) {
  body.signed .side { width: 264px; padding: 18px 14px; }
  body.signed #app { padding: 24px 28px 40px; }
  body.signed .topbar { padding: 0 28px; }
  .stabs { margin: 0 -28px; padding: 0 28px; }
}

/* ═══ الفحص المخصص (UPDATE-v5، 2026-10-14): الفلاتر واختيار الدولة والنتائج — design/v6/market-scanner-demo.html ═══ */
/* استثناء في الأحجام لهذه الشاشات فقط (طلب المستخدم لكثرة الفلاتر): العنوان 22، والقسم 15، واسم الفلتر 13.5، والقيمة 12.5، والشرح 11.5،
   وأزرار الاختيار 12.5 بارتفاع 34، والأزرار السريعة 12 بارتفاع 32، والمفتاح 40×24 */
.cs { display: flex; flex-direction: column; gap: 10px; }
.cs .ic { width: 18px; height: 18px; }
.cs-top { display: flex; flex-direction: column; gap: 4px; }
.cs-title { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.3; }
.cs-lead { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--secondary); }
.cs-note { font-size: 11.5px; color: var(--muted); }
.cs-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.cs-lists { padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.cs-lt { font-size: 13.5px; font-weight: 700; }
.cs-groups { display: flex; flex-direction: column; gap: 10px; }
.cs-gh { width: 100%; min-height: 54px; border: 0; background: transparent; display: flex; align-items: center; gap: 10px; padding: 9px 14px; text-align: right; color: var(--text); }
.cs-num { width: 24px; height: 24px; border-radius: 12px; background: var(--primary); color: var(--onPrimary); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.cs-gt { font-size: 15px; font-weight: 700; }
.cs-gs { font-size: 11.5px; color: var(--muted); }
.cs .chev { color: var(--muted); transition: transform .2s; }
.cs .chev.open { transform: rotate(180deg); }
.cs-gbody { padding: 0 14px; }
.cs-blk { padding: 12px 0; border-top: 1px solid var(--divider); display: flex; flex-direction: column; gap: 10px; }
.cs-hrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cs-hcol { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-lbl { font-size: 13.5px; font-weight: 700; }
.cs-val { font-family: 'Alexandria', 'Readex Pro', sans-serif; font-size: 12.5px; font-weight: 700; }
.cs .on-c { color: var(--accentText); } .cs .off-c { color: var(--muted); }
.cs-hint { font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.cs-sub { font-size: 12px; font-weight: 600; color: var(--secondary); }
.cs-stack { display: flex; flex-direction: column; gap: 10px; }
.cs-stack6 { display: flex; flex-direction: column; gap: 6px; }
.cs-subblk { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--divider); }
.cs-seg { display: flex; gap: 2px; padding: 2px; border-radius: 11px; background: var(--track); }
.cs-seg button { flex: 1; min-height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--secondary); font-size: 12.5px; font-weight: 600; padding: 0 6px; }
.cs-seg button.is-on { background: var(--segOn); color: var(--text); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.16); }
.cs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-chip { min-height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--secondary); font-size: 12px; font-weight: 600; }
.cs-chip.is-on { background: var(--primary); border-color: var(--primary); color: var(--onPrimary); }
.cs-sw { width: 48px; height: 36px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cs-sw .trk { position: relative; display: block; width: 40px; height: 24px; border-radius: 12px; background: var(--track); border: 1px solid var(--border); transition: background .15s; }
.cs-sw .knob { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 9px; background: var(--knob); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: right .15s; }
.cs-sw.is-on .trk { background: var(--accent); border-color: var(--accent); }
.cs-sw.is-on .knob { right: 18px; }
.cs-srow { display: flex; align-items: flex-start; gap: 8px; }
.cs-slab { width: 24px; line-height: 24px; font-size: 12px; color: var(--muted); flex-shrink: 0; }
.cs-scol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cs-rng { width: 100%; height: 24px; margin: 0; accent-color: var(--accent); }
.cs-scale { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 500; color: var(--muted); }
.cs-sval { line-height: 24px; font-size: 12.5px; font-weight: 700; text-align: left; flex-shrink: 0; }
.cs-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cs-fl { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.cs-inp { height: 40px; width: 100%; border-radius: 10px; border: 1.5px solid var(--border); background: var(--page); color: var(--text); padding: 0 10px; font: 600 14px 'Alexandria', 'Readex Pro', sans-serif; text-align: left; }
.cs-inp-t { height: 42px; width: 100%; border-radius: 10px; border: 1.5px solid var(--border); background: var(--page); color: var(--text); padding: 0 12px; font-size: 14px; }
.cs-stepper { display: flex; align-items: center; justify-content: center; gap: 14px; }
.cs-stepper .n { min-width: 48px; text-align: center; font-size: 22px; font-weight: 800; }
.cs-stp { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); display: flex; align-items: center; justify-content: center; }
.cs-link { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; border: 0; background: transparent; padding: 0; font-size: 13.5px; font-weight: 600; color: var(--accentText); text-decoration: none; }
.cs-lists .cs-link { min-height: 32px; font-size: 12.5px; }
.cs-link.del { color: var(--stopText); }
.cs-pick { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 11px; border: 1px solid var(--border); background: var(--page); color: var(--text); width: 100%; text-align: right; }
.cs-picked { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.cs-pc { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.cs-actions { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.cs-btn-p { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 0; border-radius: 13px; background: var(--primary); color: var(--onPrimary); font-size: 14.5px; font-weight: 700; width: 100%; }
.cs-btn-s { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 13px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 13.5px; font-weight: 700; text-decoration: none; padding: 0 14px; }
.cs-save { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.cs-prog { display: flex; flex-direction: column; gap: 4px; }
.cs-bar { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.cs-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .4s; }
.cs-prog .cs-note { font-size: 12.5px; color: var(--secondary); }
.cs-manage .cs-mrow { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; }
.cs-manage .cs-mrow + .cs-mrow { border-top: 1px solid var(--divider); }
.cs-manage .cs-mrow b { font-size: 14px; }
.cs-manage .row { gap: 14px; flex-wrap: wrap; } .cs-manage .cs-link { min-height: 32px; font-size: 12.5px; }
/* اختيار الدولة */
.cs-chead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 44px; }
.cs-chead h1 { margin: 0; font-size: 16px; font-weight: 700; }
.cs-cbody, .cs-cmodal { display: flex; flex-direction: column; gap: 10px; }
.cs-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 11px; border: 1.5px solid var(--border); background: var(--card); color: var(--muted); }
.cs-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font-size: 14px; outline: none; }
.cs-selwrap { display: flex; flex-direction: column; gap: 6px; }
.cs-selh { font-size: 12.5px; font-weight: 700; color: var(--secondary); }
.cs-selwrap .cs-link { min-height: 32px; font-size: 12.5px; }
.cs-chipsel { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-schip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 8px 0 10px; border-radius: 999px; border: 0; background: var(--chipN); color: var(--chipNText); font-size: 12px; font-weight: 600; }
.cs-schip .flag { width: 18px; height: 12px; }
.cs-clists { display: flex; flex-direction: column; }
.cs-sec { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 12px 2px 4px; }
.cs-clist { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 0 12px; }
.cs-crow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--divider); background: transparent; color: var(--text); text-align: right; }
.cs-crow:last-child { border-bottom: 0; }
.cs-crow .flag { width: 24px; height: 16px; }
.cs-crow .cn { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cs-crow .ar { font-size: 13.5px; font-weight: 600; }
.cs-crow .en { font-size: 11px; color: var(--muted); direction: ltr; text-align: right; }
.cs-crow .ck { width: 22px; height: 22px; border-radius: 11px; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; color: transparent; flex-shrink: 0; }
.cs-crow .ck .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.cs-crow.is-on .ck { background: var(--accent); border-color: var(--accent); color: var(--onAccent); }
.cs-none { margin: 0; padding: 24px 0; text-align: center; font-size: 13px; color: var(--muted); }
.cs-cmodal { max-height: 62vh; overflow-y: auto; }
/* النتائج */
.cs-sortw { display: flex; flex-direction: column; gap: 6px; }
.cs-sortw > .cs-hrow { min-height: 40px; }
.cs-sorth { font-size: 13px; font-weight: 600; color: var(--secondary); }
.cs-sortb { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 12.5px; font-weight: 600; }
.cs-menu { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cs-menu button { min-height: 40px; border: 0; border-bottom: 1px solid var(--divider); background: transparent; color: var(--text); text-align: right; padding: 0 12px; font-size: 13px; font-weight: 600; }
.cs-menu button:last-child { border-bottom: 0; }
.cs-menu button.is-on { color: var(--accentText); }
.cs-rlist { display: flex; flex-direction: column; gap: 10px; }
.cs-rcard { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.cs-rtop { align-items: flex-start; }
.cs-rtop .cs-hcol { gap: 3px; }
.cs-sym { font-size: 17px; font-weight: 800; letter-spacing: .5px; color: var(--text); text-decoration: none; direction: ltr; }
.cs-name { font-size: 12px; color: var(--muted); direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-rpx { align-items: flex-start; gap: 6px; flex-shrink: 0; }
.cs-px { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cs-px .fd { font-size: 17px; font-weight: 700; direction: ltr; }
.cs-px > .n { font-size: 12px; font-weight: 700; }
.cs-flat { color: var(--muted); }
.cs-rcard .star { width: 36px; height: 36px; margin: -4px -4px 0 0; align-items: center; justify-content: center; }
.cs-rcard .star .ic { width: 22px; height: 22px; }
.cs-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cs-tile { background: var(--tile); border: 1px solid var(--tileBorder); border-radius: 9px; padding: 6px 8px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cs-tile span { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-tile b { font-size: 13.5px; font-weight: 700; text-align: right; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cs .pill { white-space: normal; line-height: 1.5; padding: 2px 10px; }
.cs-empty { padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: 13.5px; }
/* الشريط العلوي الثابت عند النزول (الجوال): رجوع وعنوان وشارة. في الشاشات العريضة يغني عنه الشريط الجانبي والعلوي */
.cs-bar0 { position: fixed; top: 0; left: 0; right: 0; z-index: 7; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 14px; padding-top: env(safe-area-inset-top); background: var(--hdr); border-bottom: 1px solid var(--border);
  transform: translateY(-110%); transition: transform .18s ease-out; }
.cs-bar0.on { transform: none; }
.cs-bar0 .cs-link { justify-self: start; min-height: 44px; }
.cs-bar0 b { font-size: 15px; font-weight: 700; }
.cs-bar0e { justify-self: end; }
.cs-bar0 .pill { font-size: 11px; padding: 2px 9px; }
@media (min-width: 1100px) {
  body.signed .cs-bar0 { display: none; }
  /* الأقسام في عمودين، و«قوائمي المحفوظة» والأزرار على عرض الصفحة */
  .cs-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  .cs-top > .cs-hrow { justify-content: flex-start; gap: 14px; }
  .cs-actions { max-width: 640px; width: 100%; margin: 0 auto; }
  /* يتسع لعرض لابتوب 1280 مع الشريط الجانبي بلا تمرير أفقي، وعناوين الأعمدة الطويلة في سطرين */
  .cs-tbl { min-width: 976px; }
  .cs-tbl .tr { grid-template-columns: 28px minmax(130px, 1.4fr) 66px 58px 62px 56px 62px 44px 54px 60px 84px minmax(160px, 2fr); }
  .cs-tbl .tr.th > span { white-space: normal; line-height: 1.3; font-size: 12.5px; }
  .cs-tbl .tr.th > span:last-child { text-align: right; }
  .cs-tbl .tr .star { margin: 0; }
  .cs-ttags { display: flex; flex-wrap: wrap; gap: 4px; }
  .cs-ttags .pill { font-size: 11px; min-height: 22px; padding: 0 8px; }
  .cs-cmodal { max-height: 60vh; }
}

/* ═══ أداء التحليل (الاقتراح 1، 2026-10-16): الاختبار التاريخي والسجل الحي ═══ */
.seg.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.perf-seg button, .perf-kind button { height: 38px; font-size: 14px; }
.perf-kind button .n { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.perf-info { align-items: center; gap: 8px; flex-wrap: wrap; min-height: 36px; }
.perf-info small { font-size: 12.5px; }
.perf-info .edit-btn { height: 36px; font-size: 13px; padding: 0 11px; }
.perf-grid, .perf-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.perf-main .kp > div { background: var(--tile); }
.perf-combo { background: var(--goSoft); color: var(--goText); font-size: 13.5px; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rt tr.best td { background: color-mix(in srgb, var(--goSoft) 70%, transparent); }
.rt .vnote { display: block; font-size: 11px; font-weight: 400; line-height: 1.5; white-space: normal; max-width: 220px; }
.rt.feat td:first-child { white-space: normal; font-size: 12.5px; }
.rt td.win b { color: var(--goText); }
.rt td.win { background: color-mix(in srgb, var(--goSoft) 60%, transparent); }
.mvb { display: flex; flex-direction: column; gap: 9px; }
.mvb > div { display: grid; grid-template-columns: minmax(88px, 1.1fr) 2fr auto; grid-template-areas: "t bar v" "t bar u"; gap: 0 10px; align-items: center; }
.mvb .t { grid-area: t; font-size: 13.5px; font-weight: 600; display: flex; flex-direction: column; line-height: 1.35; }
.mvb .t small { font-size: 11px; font-weight: 400; align-self: flex-start; }
.mvb .bar { grid-area: bar; position: relative; height: 12px; border-radius: 6px; background: var(--track); direction: ltr; }
.mvb .bar::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; background: var(--muted); opacity: .55; }
.mvb .bar i { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.mvb .bar i.up { left: 50%; background: var(--goSolid); }
.mvb .bar i.dn { right: 50%; background: var(--stopText); }
.mvb > div > b { grid-area: v; font-size: 13px; text-align: left; }
.mvb > div > small.up { grid-area: u; font-size: 11px; text-align: left; white-space: nowrap; }
.mvb > div.base { border-top: 1px dashed var(--divider); padding-top: 8px; }
.mvb > div.base .t { color: var(--muted); }
.sgl { display: flex; flex-direction: column; }
.sg { display: flex; flex-direction: column; gap: 4px; padding: 10px 2px; border-top: 1px solid var(--divider); text-decoration: none; color: var(--text); }
.sg:first-child { border-top: 0; padding-top: 2px; }
.sg:hover .tick { color: var(--accent); }
.sg .between { flex-wrap: wrap; row-gap: 5px; }
.sg .row { gap: 7px; flex-wrap: wrap; }
.sg .tick { font-size: 15.5px; font-weight: 700; direction: ltr; }
.sg .row > b { font-size: 13px; }
.sg small { font-size: 12px; }
.sg .lv { line-height: 1.6; }
.perf-sig .btn-link { align-self: center; }
.perf-method > b { font-size: 14px; margin-top: 4px; }
@media (min-width: 1100px) {
  .perf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .perf-seg, .perf-kind { max-width: 520px; }
}
.sg .lv .n { white-space: nowrap; }
.staging-bar { position: sticky; top: 0; z-index: 900; background: #B5651D; color: #fff; text-align: center; font-size: 12.5px; font-weight: 700; padding: 5px 10px; }

/* ═══ علامات الخطر (الاقتراح 2، 2026-10-16) ═══ */
.rkl { display: flex; flex-direction: column; }
.rkl > div { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--divider); }
.rkl > div:first-child { border-top: 0; padding-top: 2px; }
.rkl .lv { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; flex-shrink: 0; }
.rkl .high .lv { background: var(--stopSoft); color: var(--stopText); }
.rkl .mid .lv { background: var(--waitSoft); color: var(--waitText); }
.rkl .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rkl .t b { font-size: 14px; } .rkl .t small { font-size: 12px; }
.rkl a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 9px; border-radius: 8px; background: var(--tile); color: var(--text); font-size: 12px; font-weight: 700; text-decoration: none; flex-shrink: 0; }
.rkl a .ic { width: 12px; height: 12px; }
.risk-none { display: flex; align-items: center; gap: 6px; }
.risk-none .ic { width: 15px; height: 15px; color: var(--goText); }

/* ═══ حالة السوق (الاقتراح 3، 2026-10-16) ═══ */
.mkt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: right; border-radius: 16px; padding: 10px 14px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.mkt .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.mkt.t-green .dot { background: var(--goSolid); } .mkt.t-amber .dot { background: var(--waitRing); } .mkt.t-red .dot { background: var(--stopText); }
.mkt .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mkt .t b { font-size: 14.5px; } .mkt .t small { font-size: 12px; color: var(--muted); }
.mkt > .ic { width: 16px; height: 16px; color: var(--muted); }
.mkt.t-green, .mkt.t-amber, .mkt.t-red { background: var(--card); color: var(--text); }
.mkt.t-green { border-color: color-mix(in srgb, var(--goSolid) 45%, var(--border)); }
.mkt.t-amber { border-color: color-mix(in srgb, var(--waitRing) 55%, var(--border)); }
.mkt.t-red { border-color: color-mix(in srgb, var(--stopText) 45%, var(--border)); }
.mkt-d { display: flex; flex-direction: column; gap: 12px; }
.mkt-big { border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.mkt-big b { font-size: 22px; } .mkt-big span { font-size: 12.5px; }
.mkl { display: flex; flex-direction: column; gap: 8px; }
.mkl > div { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.mkl .ic { width: 16px; height: 16px; flex-shrink: 0; }
.mkl .ok .ic { color: var(--goText); } .mkl .no .ic { color: var(--stopText); } .mkl .na { color: var(--muted); }

/* ═══ شراء المطلعين (الاقتراح 4، 2026-10-16) ═══ */
.insl { display: flex; flex-direction: column; }
.insl > div { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--divider); }
.insl > div:first-child { border-top: 0; padding-top: 2px; }
.insl .sd { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; flex-shrink: 0; }
.insl .buy .sd { background: var(--goSoft); color: var(--goText); } .insl .sell .sd { background: var(--chipN); color: var(--chipNText); }
.insl .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.insl .t b { font-size: 13.5px; direction: ltr; text-align: right; } .insl .t small { font-size: 12px; }
.insl .v { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex-shrink: 0; }
.insl .v b { font-size: 13px; } .insl .v small { font-size: 11.5px; }

/* ═══ لوحة الأداء في «محفظتي» (الاقتراح 5، 2026-10-16) ═══ */
.pf-seg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pfa-notes { gap: 8px; }
.pfa-notes .box { font-size: 13.5px; }
.pfa-g { background: var(--goSoft); color: var(--goText); }
.pfa-m { background: var(--tile); color: var(--secondary); }
a.psr { text-decoration: none; color: inherit; }
.insl .t small .n { white-space: nowrap; }
