/* ركّز v98 — لوحة التحليل الذكي ونصيحة الرئيسية. تعتمد على متغيرات upgrade-v97.css */
.insights98{ max-width:1000px; margin:0 auto var(--r97-s6,1.5rem); display:grid; gap:var(--r97-gap,1rem); text-align:start; }
.i98-grid{ display:grid; gap:var(--r97-gap,1rem); grid-template-columns:1fr; }
@media (min-width:820px){ .i98-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.i98-card{ background:var(--glass); -webkit-backdrop-filter:var(--blur); backdrop-filter:var(--blur); border:1px solid var(--edge); box-shadow:var(--shadow); border-radius:var(--r97-r-lg,22px); padding:var(--r97-s5,1.25rem); min-width:0; }
.i98-card,.i98-card p,.i98-card li{ text-align:start; }
.i98-card h3{ font-size:1.05rem; font-weight:800; margin:0 0 var(--r97-s3,.75rem); color:var(--text-main); }
.i98-note{ margin-top:var(--r97-s3,.75rem); color:var(--text-muted); font-size:.88rem; }
.i98-note b{ color:var(--text-main); }

/* مؤشر ركّز */
.i98-score{ display:flex; gap:var(--r97-s5,1.25rem); align-items:center; }
.ring98-wrap{ position:relative; width:118px; height:118px; flex:0 0 118px; }
.ring98{ width:100%; height:100%; transform:rotate(-90deg); }
.ring98 circle{ fill:none; stroke-width:9; }
.ring98-bg{ stroke:var(--fill); }
.ring98-fg{ stroke:var(--accent,#111); stroke-linecap:round; transition:stroke-dashoffset .9s var(--r97-ease,ease); }
.ring98-val{ position:absolute; inset:0; display:grid; place-content:center; text-align:center; line-height:1; }
.ring98-val b{ font-size:2rem; font-weight:800; font-variant-numeric:tabular-nums; }
.ring98-val small{ color:var(--text-muted); font-size:.75rem; margin-top:.2rem; }
.i98-score-copy{ flex:1; min-width:0; }
.i98-score-copy h3{ margin-bottom:.25rem; }
.i98-score-copy > p{ color:var(--text-muted); font-size:.85rem; margin-bottom:.6rem; }
.parts98{ list-style:none; display:grid; gap:.35rem; margin:0; padding:0; }
.parts98 li{ display:grid; grid-template-columns:minmax(0,8.5rem) 1fr 2.6rem; align-items:center; gap:.5rem; font-size:.82rem; }
.parts98 b{ text-align:end; font-variant-numeric:tabular-nums; }
@media (max-width:480px){ .i98-score{ flex-direction:column; text-align:center; } .parts98 li{ grid-template-columns:minmax(0,7rem) 1fr 2.4rem; text-align:start; } }

/* الأشرطة */
.bar98{ position:relative; height:10px; border-radius:99px; background:var(--fill); overflow:hidden; }
.bar98.thin{ height:7px; }
.bar98 > i{ position:absolute; inset-block:0; inset-inline-start:0; border-radius:inherit; background:var(--accent,#111); transition:width .7s var(--r97-ease,ease); }
.bars98{ list-style:none; margin:0; padding:0; display:grid; gap:.55rem; }
.bars98 li{ display:grid; grid-template-columns:minmax(0,8rem) 1fr 3.6rem; gap:.6rem; align-items:center; font-size:.88rem; }
.bars98 li b{ text-align:end; font-variant-numeric:tabular-nums; }
.bars98 li.best span{ font-weight:800; }
.bars98 li.best .bar98 > i{ background:var(--r97-success,#15803d); }
.bars98 li.idle span{ color:var(--r97-warning,#b45309); font-weight:700; }

/* مؤشرات الأداء */
.kpi98{ display:grid; gap:var(--r97-gap,1rem); grid-template-columns:repeat(2,minmax(0,1fr)); }
@media (min-width:820px){ .kpi98{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
.kpi98 article{ background:var(--glass); border:1px solid var(--edge); box-shadow:var(--shadow); border-radius:var(--r97-r-lg,22px); padding:var(--r97-s4,1rem); display:flex; flex-direction:column; gap:.2rem; min-width:0; text-align:center; align-items:center; }
.kpi98 small{ color:var(--text-muted); font-size:.8rem; font-weight:700; }
.kpi98 b{ font-size:1.3rem; font-weight:800; font-variant-numeric:tabular-nums; }
.kpi98 span{ font-size:.78rem; color:var(--text-muted); }
.trend98{ display:inline-block; padding:.1rem .55rem; border-radius:99px; font-weight:800; font-size:.78rem!important; }
.trend98.up{ color:var(--r97-success,#15803d)!important; background:var(--r97-success-soft,rgba(21,128,61,.12)); }
.trend98.down{ color:var(--r97-danger,#b91c1c)!important; background:var(--r97-danger-soft,rgba(185,28,28,.12)); }
.trend98.flat{ background:var(--fill); }

/* خريطة الاستمرارية */
.hm98-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; max-width:360px; margin-inline:auto; }
.hm98{ display:block; aspect-ratio:1; border-radius:6px; background:var(--fill); border:1px solid var(--line); }
.hm98.l1{ background:color-mix(in srgb,var(--accent,#111) 25%,transparent); }
.hm98.l2{ background:color-mix(in srgb,var(--accent,#111) 50%,transparent); }
.hm98.l3{ background:color-mix(in srgb,var(--accent,#111) 75%,transparent); }
.hm98.l4{ background:var(--accent,#111); }
.hm98.now{ outline:2px solid var(--r97-warning,#b45309); outline-offset:1px; }
.hm98-legend{ display:flex; align-items:center; gap:5px; justify-content:center; margin-top:.6rem; font-size:.75rem; color:var(--text-muted); }
.hm98-legend .hm98{ width:14px; height:14px; aspect-ratio:auto; }

/* جاهزية الاختبارات */
.ex98-list{ list-style:none; margin:0; padding:0; display:grid; gap:.8rem; }
.ex98-top{ display:flex; justify-content:space-between; gap:.5rem; font-size:.9rem; margin-bottom:.3rem; flex-wrap:wrap; }
.ex98-top span{ color:var(--text-muted); font-size:.8rem; }
.ex98 small{ display:block; color:var(--text-muted); font-size:.78rem; margin-top:.25rem; }
.ex98.high .bar98 > i{ background:var(--r97-danger,#b91c1c); }
.ex98.medium .bar98 > i{ background:var(--r97-warning,#b45309); }
.ex98.ready .bar98 > i,.ex98.low .bar98 > i{ background:var(--r97-success,#15803d); }

/* النصائح */
.tip98-list{ list-style:none; margin:0; padding:0; display:grid; gap:.7rem; }
.tip98{ display:flex; gap:.75rem; align-items:center; justify-content:space-between; padding:.75rem .9rem; border-radius:var(--r97-r-md,16px); background:var(--fill); border-inline-start:4px solid var(--accent,#111); }
.tip98-exam,.tip98-tasks,.tip98-load{ border-inline-start-color:var(--r97-danger,#b91c1c); }
.tip98-habit,.tip98-session,.tip98-goal{ border-inline-start-color:var(--r97-warning,#b45309); }
.tip98-trend,.tip98-time{ border-inline-start-color:var(--r97-success,#15803d); }
.tip98-copy{ min-width:0; flex:1; }
.tip98-copy b{ display:block; font-size:.95rem; margin-bottom:.15rem; }
.tip98-copy p{ margin:0; color:var(--text-muted); font-size:.85rem; line-height:1.65; }
.tip98-btn{ flex:0 0 auto; min-height:40px!important; padding:.45rem 1rem!important; font-size:.88rem!important; white-space:nowrap; }
@media (max-width:560px){ .tip98{ flex-direction:column; align-items:stretch; } .tip98-btn{ width:100%; } }

/* نصيحة الرئيسية */
.smart-tip98{ max-width:860px; margin:0 auto var(--r97-s4,1rem); padding:var(--r97-s4,1rem); border-radius:var(--r97-r-lg,22px); background:var(--glass); border:1px solid var(--edge); box-shadow:var(--shadow); text-align:start; }
.smart-tip98[hidden]{ display:none!important; }
.tip98-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:.55rem; gap:.5rem; }
.tip98-kicker{ font-size:.78rem; font-weight:800; color:var(--text-muted); }
.tip98-more{ border:0; background:none; color:var(--text-main); font:inherit; font-size:.82rem; font-weight:700; cursor:pointer; min-height:40px; padding:0 .4rem; text-decoration:underline; text-underline-offset:3px; }
.smart-tip98 .tip98{ background:transparent; padding:.2rem .6rem; }

/* المنهجية */
.i98-method{ border:1px solid var(--line); border-radius:var(--r97-r-lg,22px); padding:.2rem 1rem; background:var(--glass); }
.i98-method summary{ cursor:pointer; min-height:44px; display:flex; align-items:center; font-weight:800; }
.i98-method ul{ margin:0 0 .8rem; padding-inline-start:1.2rem; display:grid; gap:.35rem; font-size:.85rem; color:var(--text-muted); }
.i98-method b{ color:var(--text-main); }
.i98-ask{ width:100%; margin-top:.85rem; }

/* v99: مسافة واضحة بين لوحة التحليل وبطاقة السلسلة/النقاط وبقية بطاقات قسم التقدم */
#progress56 > #insights98{ margin-block:var(--r97-s6,1.5rem)!important; }
#progress56 > *{ margin-block-end:var(--r97-s5,1.25rem); }
.insights98{ gap:var(--r97-s5,1.25rem); }
.i98-grid,.kpi98{ gap:var(--r97-s5,1.25rem); }
