/* ── شريط الإصدار + الاتصال (v1.19.164): ثابت فوق كل الشاشات، حتى الترحيبية وتسجيل الدخول ── */
.net-bar{ position:fixed; top:8px; left:12px; z-index:100001; display:inline-flex; align-items:center; gap:7px; padding:4px 11px; border-radius:20px; font-size:12px; font-weight:800; direction:ltr; color:#12c887; background:rgba(10,18,14,.84); border:1px solid rgba(18,200,135,.42); box-shadow:0 2px 10px rgba(0,0,0,.35); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); user-select:none; -webkit-user-select:none; cursor:default; transition:color .25s, border-color .25s, background .25s; }
html.light .net-bar{ background:rgba(255,255,255,.92); box-shadow:0 2px 10px rgba(0,0,0,.12); }
.net-bar .net-bar-ver{ letter-spacing:.3px; }
.net-bar .net-bar-off{ display:none; }
.net-bar.is-off{ color:#f87171; border-color:rgba(248,113,113,.55); }
.net-bar.is-off .net-bar-off{ display:inline; }
/* ── إشعار الانقطاع/العودة: بالزاوية تحت الشريط ── */
.net-note{ position:fixed; top:46px; left:12px; z-index:100002; width:min(340px, calc(100vw - 24px)); box-sizing:border-box; padding:12px 14px; border-radius:12px; background:#0f1a15; color:#e9f5ef; border:1px solid rgba(248,113,113,.6); font-size:12.5px; font-weight:600; line-height:1.65; box-shadow:0 10px 30px rgba(0,0,0,.5); cursor:pointer; opacity:0; transform:translateY(-8px); pointer-events:none; transition:opacity .25s, transform .25s; }
html.light .net-note{ background:#fff; color:#1b2a23; box-shadow:0 10px 30px rgba(0,0,0,.18); }
.net-note.show{ opacity:1; transform:none; pointer-events:auto; }
.net-note.ok{ border-color:rgba(18,200,135,.6); }
.net-note .net-note-t{ display:block; font-size:13.5px; font-weight:900; color:#f87171; margin-bottom:3px; }
.net-note.ok .net-note-t{ color:#12c887; }
html[dir="ltr"] .net-bar, html[dir="ltr"] .net-note{ left:auto; right:12px; }
/* جوال: الشريط العلوي بالتطبيق (mobile-bar) فيه أزرار، فنحط الشريط والإشعار تحته */
body.net-low .net-bar{ top:64px; left:10px; }
body.net-low .net-note{ top:102px; left:10px; }
html[dir="ltr"] body.net-low .net-bar, html[dir="ltr"] body.net-low .net-note{ left:auto; right:10px; }
/* ── نافذة «شو الجديد» (v1.19.165): عنوان + رقم/تاريخ + بطاقات مزايا + أزرار ثابتة تحت (الوسط بس بيتمرّر) ── */
#ov-whatsnew{ padding:16px 0; }
.wn-modal{ display:flex; flex-direction:column; padding:0; overflow:hidden; width:92%; max-width:540px; max-height:min(88vh,760px); max-height:min(88dvh,760px); }
.wn-hero{ flex-shrink:0; text-align:center; padding:26px 22px 14px; background:linear-gradient(180deg, rgba(18,200,135,.14), transparent); }
.wn-badge{ width:58px; height:58px; margin:0 auto 12px; border-radius:18px; display:flex; align-items:center; justify-content:center; color:#080f0d; background:linear-gradient(135deg,var(--gold),var(--gold2)); box-shadow:0 6px 22px rgba(13,158,110,.38); }
.wn-badge svg{ width:30px; height:30px; }
.wn-title{ font-size:23px; font-weight:900; line-height:1.3; color:var(--cream); }
.wn-meta{ display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; margin-top:10px; min-height:26px; }
.wn-chip{ direction:ltr; unicode-bidi:isolate; font-weight:800; font-size:13px; padding:3px 12px; border-radius:20px; color:var(--gold2); background:var(--bg4); border:1px solid var(--border); }
.wn-date{ direction:ltr; unicode-bidi:isolate; font-size:12px; color:var(--muted); }
.wn-ok{ font-size:11.5px; font-weight:700; color:var(--gold2); }
.wn-body{ flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:4px 20px 10px; }
.wn-sec{ display:flex; align-items:center; gap:9px; margin:12px 0 10px; font-size:12.5px; font-weight:800; color:var(--gold2); }
.wn-sec::after{ content:''; flex:1; height:1px; background:var(--border); }
.wn-cards{ display:flex; flex-direction:column; gap:10px; margin:0; padding:0; list-style:none; }
.wn-card{ display:flex; gap:13px; align-items:flex-start; padding:13px 14px; border-radius:13px; background:var(--bg4); border:1px solid var(--border); }
.wn-ico{ width:42px; height:42px; flex-shrink:0; border-radius:12px; display:flex; align-items:center; justify-content:center; color:var(--gold2); background:rgba(18,200,135,.12); border:1px solid rgba(18,200,135,.28); }
.wn-ico svg{ width:21px; height:21px; }
.wn-card-t{ font-size:14.5px; font-weight:800; line-height:1.4; color:var(--cream); }
.wn-card-d{ font-size:12.5px; line-height:1.7; color:var(--cream2); }
.wn-card-t + .wn-card-d{ margin-top:3px; }
.wn-more{ margin-top:14px; border-top:1px solid var(--border); padding-top:2px; }
.wn-more summary{ cursor:pointer; padding:9px 0; font-size:12.5px; font-weight:800; color:var(--cream2); list-style:none; }
.wn-more summary::-webkit-details-marker{ display:none; }
.wn-more summary::before{ content:'+'; display:inline-block; width:16px; font-weight:900; color:var(--gold2); }
.wn-more[open] summary::before{ content:'−'; }
.wn-more ul{ margin:0 0 6px; padding:0; list-style:none; display:flex; flex-direction:column; gap:7px; }
.wn-more li{ position:relative; padding-inline-start:16px; font-size:12.5px; line-height:1.65; color:var(--cream2); }
.wn-more li::before{ content:''; position:absolute; inset-inline-start:2px; top:.62em; width:6px; height:6px; border-radius:50%; background:var(--gold2); }
.wn-msg{ padding:6px 4px 12px; text-align:center; font-size:13.5px; line-height:1.8; color:var(--cream2); }
.wn-actions{ flex-shrink:0; display:flex; gap:10px; flex-wrap:wrap; padding:14px 20px 18px; border-top:1px solid var(--border); }
.wn-actions .btn{ justify-content:center; padding:12px 16px; font-size:14px; }
.wn-actions .wn-main{ flex:2 1 170px; }
.wn-actions .wn-sub{ flex:1 1 130px; }
.wn-actions .btn:focus-visible{ outline:2px solid var(--gold2); outline-offset:2px; }
html.light .wn-card{ background:rgba(255,255,255,.55); }
@keyframes wnIn{ from{ opacity:0; transform:translateY(10px) scale(.98); } to{ opacity:1; transform:none; } }
.ov.on .wn-modal{ animation:wnIn .28s ease both; }
@media (prefers-reduced-motion:reduce){ .ov.on .wn-modal{ animation:none; } }
/* شاشات قصيرة (جوال صغير/أفقي): هيرو مضغوط عشان يبقى مكان للبطاقات */
@media (max-height:640px){
  .wn-badge{ display:none; }
  .wn-hero{ padding:14px 18px 6px; }
  .wn-title{ font-size:19px; }
  .wn-meta{ margin-top:6px; }
  .wn-actions{ padding:10px 16px 12px; }
}
/* جوال: نترك مكان لشريط الإصدار/النت (body.net-low) فوق النافذة عشان ما يغطّي زاويتها */
@media (max-width:900px){
  #ov-whatsnew{ padding:104px 0 14px; }
  .wn-modal{ max-height:calc(100vh - 118px); max-height:calc(100dvh - 118px); }
  .wn-hero{ padding:20px 18px 10px; }
  .wn-title{ font-size:21px; }
}
