/* ══════════════════════════════════════════════════════════════
   WIRE FEED — بث الأحداث الحي
   ══════════════════════════════════════════════════════════════ */

/* Panel wrapper */
.wm-wire-panel {
    flex-direction: column !important;
    padding: 0 !important;
    overflow: hidden;
    background: #060d18;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: auto !important;
    height: auto !important;
    z-index: 2;
}

/* ── شريط التحكم ─────────────────────────────────────────── */
.wm-wire-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #0a1628;
    border-bottom: 1px solid #0f2540;
    flex-shrink: 0;
    direction: rtl;
}

.wm-wire-status {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

/* نبضة الاتصال الحي */
.wm-wire-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wm-green);
    flex-shrink: 0;
    animation: wm-wire-blink 1.8s ease-in-out infinite;
}
.wm-wire-pulse.paused { background: #64748b; animation: none; }
.wm-wire-pulse.error  { background: var(--wm-red); animation: none; }

@keyframes wm-wire-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
    50%       { opacity: .7; box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.wm-wire-status-text {
    font-size: 10px;
    color: #64748b;
    font-family: 'Courier New', monospace;
    letter-spacing: .3px;
}

/* أزرار فلترة المستوى */
.wm-wire-filters {
    display: flex;
    gap: 3px;
}
.wm-wire-filter-btn {
    background: transparent;
    border: 1px solid #1e3a5f;
    color: #64748b;
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    white-space: nowrap;
}
.wm-wire-filter-btn:hover { border-color: #3b82f6; color: #93c5fd; }
.wm-wire-filter-btn.active {
    background: #1e3a5f;
    border-color: #3b82f6;
    color: #e2e8f0;
}

/* زر الإيقاف */
.wm-wire-pause-btn {
    background: transparent;
    border: 1px solid #1e3a5f;
    color: #64748b;
    font-size: 12px;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    flex-shrink: 0;
}
.wm-wire-pause-btn:hover { border-color: var(--wm-orange); color: #fb923c; }

/* ── شريط الملخص ─────────────────────────────────────────── */
.wm-wire-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 10px;
    background: #08111f;
    border-bottom: 1px solid #0f2540;
    flex-shrink: 0;
    direction: rtl;
    font-size: 10px;
}
.wm-ws-sep { color: #1e3a5f; }
.wm-ws-item { font-family: 'Courier New', monospace; font-weight: 700; }
.wm-ws-critical { color: var(--wm-red); }
.wm-ws-elevated { color: var(--wm-orange); }
.wm-ws-total    { color: #64748b; }

/* ── منطقة التدفق ─────────────────────────────────────────── */
.wm-wire-feed {
    flex: 1;
    overflow-y: auto;
    direction: rtl;
    scroll-behavior: smooth;
}
.wm-wire-feed::-webkit-scrollbar { width: 4px; }
.wm-wire-feed::-webkit-scrollbar-track { background: transparent; }
.wm-wire-feed::-webkit-scrollbar-thumb { background: #1e3a5f; border-radius: 2px; }

/* حالة التحميل */
.wm-wire-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: #334155;
    font-size: 12px;
}
.wm-wire-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #1e3a5f;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: wm-spin .8s linear infinite;
}
@keyframes wm-spin { to { transform: rotate(360deg); } }

/* لا يوجد أحداث */
.wm-wire-empty {
    text-align: center;
    padding: 40px 20px;
    color: #334155;
    font-size: 12px;
}

/* ── بطاقة الحدث الواحد ─────────────────────────────────── */
.wm-wire-item {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #0a1628;
    cursor: pointer;
    transition: background .12s;
    position: relative;
    animation: wm-wire-slide-in .3s ease-out;
    direction: rtl;
}
.wm-wire-item:hover { background: rgba(30,58,90,0.25); }
.wm-wire-item.wm-wire-new { animation: wm-wire-flash .8s ease-out; }

@keyframes wm-wire-slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes wm-wire-flash {
    0%   { background: rgba(59,130,246,0.18); }
    100% { background: transparent; }
}

/* الخط الجانبي الملوّن (مؤشر المستوى) */
.wm-wire-bar {
    width: 3px;
    flex-shrink: 0;
    border-radius: 0;
}

/* المحتوى */
.wm-wire-body {
    flex: 1;
    padding: 9px 10px 8px 6px;
    min-width: 0;
}

/* السطر الأول: الموقع + المستوى + الوقت */
.wm-wire-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.wm-wire-location {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-family: 'Courier New', monospace;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wm-wire-badge {
    font-size: 8px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-family: 'Courier New', monospace;
    flex-shrink: 0;
}
.wm-wire-badge.CRITICAL  { background: rgba(239,68,68,.18);  color: var(--wm-red); border: 1px solid rgba(239,68,68,.3); }
.wm-wire-badge.ELEVATED  { background: rgba(249,115,22,.15); color: var(--wm-orange); border: 1px solid rgba(249,115,22,.28); }
.wm-wire-badge.MODERATE  { background: rgba(234,179,8,.12);  color: var(--wm-yellow); border: 1px solid rgba(234,179,8,.25); }
.wm-wire-badge.LOW       { background: rgba(59,130,246,.12); color: #3b82f6; border: 1px solid rgba(59,130,246,.25); }
.wm-wire-badge.MINIMAL   { background: rgba(100,116,139,.1); color: #64748b; border: 1px solid rgba(100,116,139,.2); }

.wm-wire-time {
    font-size: 9px;
    color: #334155;
    font-family: 'Courier New', monospace;
    flex-shrink: 0;
}

/* عنوان الحدث */
.wm-wire-title {
    font-size: 11.5px;
    color: #cbd5e1;
    line-height: 1.45;
    font-weight: 500;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ملخص */
.wm-wire-summary-text {
    font-size: 10px;
    color: #475569;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 3px;
}

/* تذييل البطاقة: المصدر + التصنيف */
.wm-wire-footer {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}
.wm-wire-source {
    font-size: 9px;
    color: #334155;
    font-family: 'Courier New', monospace;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wm-wire-cat {
    font-size: 8px;
    color: #1e3a5f;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.wm-wire-geo-icon {
    font-size: 9px;
    color: var(--wm-green);
    flex-shrink: 0;
}

/* زر "تحميل المزيد" */
.wm-wire-load-more {
    text-align: center;
    padding: 12px;
    border-top: 1px solid #0a1628;
}
.wm-wire-load-more button {
    background: transparent;
    border: 1px solid #1e3a5f;
    color: #3b82f6;
    font-size: 11px;
    padding: 6px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.wm-wire-load-more button:hover { background: #1e3a5f; color: #e2e8f0; }

/* إشعار أحداث جديدة (يظهر أعلى التدفق) */
.wm-wire-new-toast {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #1e3a5f;
    color: #93c5fd;
    font-size: 11px;
    text-align: center;
    padding: 6px;
    cursor: pointer;
    transition: opacity .2s;
    border-bottom: 1px solid #3b82f6;
    display: none;
    direction: rtl;
}
.wm-wire-new-toast.visible { display: block; }

/* ══════════════════════════════════════════════════════════════
   🍕 PENTAGON PIZZA INDEX
   ══════════════════════════════════════════════════════════════ */
#wm-block-pizza {
    min-height: 180px;
}
#wm-block-pizza .wm-block-header {
    background: linear-gradient(90deg, rgba(239,68,68,0.05), transparent);
    border-bottom: 1px solid rgba(239,68,68,0.15);
}
#wm-pizza-score {
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 12px rgba(239,68,68,0.3);
}

/* ══════════════════════════════════════════════════
   🍕 Pizza Index Overlay
══════════════════════════════════════════════════ */
#wm-pizza-overlay {
  position: fixed;
  top: 0; right: 0;
  width: 360px;
  height: 100%;
  z-index: 700;
  background: rgba(4,8,16,0.97);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(239,68,68,0.2);
  animation: wm-so-in .2s ease-out;
  direction: rtl;
}
@media (max-width: 480px) {
  #wm-pizza-overlay { width: 100%; }
}

/* ══ Market Signals Overlay ════════════════════════════════════ */
#wm-mkt-overlay {
  position: fixed;
  top: 0; right: 0;
  width: 380px;
  height: 100%;
  z-index: 700;
  background: rgba(4,8,16,0.97);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(16,185,129,0.2);
  animation: wm-so-in .2s ease-out;
  direction: rtl;
  overflow: hidden;
}
@media (max-width: 480px) {
  #wm-mkt-overlay { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════
   📡 SOURCE PICKER — فلتر المصادر
══════════════════════════════════════════════════════════════ */
#wm-src-picker {
    display: none;
    flex-direction: column;
    position: absolute;
    inset: 0;
    background: rgba(4,10,20,0.98);
    z-index: 20;
    direction: rtl;
    backdrop-filter: blur(8px);
    animation: wm-src-in .18s ease-out;
}
@keyframes wm-src-in {
    from { opacity:0; transform: translateY(6px); }
    to   { opacity:1; transform: translateY(0); }
}
#wm-src-picker-list::-webkit-scrollbar { width: 4px; }
#wm-src-picker-list::-webkit-scrollbar-thumb { background: #1e3a5a; border-radius: 2px; }

#wm-src-picker-btn.active {
    background: rgba(59,130,246,0.2) !important;
    color: #3b82f6 !important;
}

/* ══ Country Filter ══ */
.wm-cf-quick {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 14px;
    border: 1px solid #1e3a5a;
    background: rgba(255,255,255,0.04);
    color: #94a3b8;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.wm-cf-quick.active,
.wm-cf-quick:hover {
    background: rgba(249,115,22,0.18);
    border-color: var(--wm-orange);
    color: #fb923c;
}
.wm-cf-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .1s;
    font-size: 11px;
    color: #94a3b8;
    border: 1px solid transparent;
}
.wm-cf-row:hover  { background: rgba(255,255,255,0.05); }
.wm-cf-row.active { background: rgba(249,115,22,0.12); border-color: rgba(249,115,22,0.3); color: #fb923c; }
.wm-cf-row-name   { display: flex; align-items: center; gap: 6px; }
.wm-cf-row-count  { font-size: 10px; color: #475569; }

/* ══ Auto Refresh Menu ══ */
.wm-ar-opt {
    display: block; width: 100%;
    background: none; border: none;
    color: #94a3b8; text-align: right;
    padding: 5px 8px; border-radius: 5px;
    cursor: pointer; font-size: 11px;
    white-space: nowrap; transition: background .15s;
}
.wm-ar-opt:hover, .wm-ar-opt.active {
    background: rgba(37,99,235,.2); color: #93c5fd;
}

/* ══════════════════════════════════════════════════
   🌾 الأمن الغذائي — Food Security Panel v1.0
   ══════════════════════════════════════════════════ */

/* تاب الأمن الغذائي — لون مميز أخضر زيتوني */
#wm-economy-overlay .wm-etab[data-etab="food"] { color: #86efac; }
#wm-economy-overlay .wm-etab[data-etab="food"]:hover { color: #bbf7d0; }
#wm-economy-overlay .wm-etab[data-etab="food"].active {
    color: #4ade80;
    border-bottom-color: #4ade80;
    background: rgba(74,222,128,.06);
}

/* شبكة السلع الغذائية */
.wm-food-commodities-grid {
    margin-bottom: 10px;
}

/* قائمة أخبار الجوع */
.wm-food-news-list {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}
.wm-food-news-list::-webkit-scrollbar { width: 4px; }
.wm-food-news-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }


/* ═══════════════════════════════════════════════════════════════
   🕵️ مختبر التحقق المرئي — Verification Lab
   ═══════════════════════════════════════════════════════════════ */

/* اللوحة الرئيسية */
#wm-verif-panel {
  display: none;
  position: fixed;
  right: 60px;
  top: 60px;
  width: 400px;
  background: rgba(6,12,22,0.98);
  border: 1px solid var(--wm-border);
  border-radius: 10px;
  z-index: 99998;
  flex-direction: column;
  max-height: calc(100vh - 80px);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.8);
  direction: rtl;
}

/* رأس اللوحة */
.wm-vl-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--wm-border);
  flex-shrink: 0;
}
.wm-vl-header-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--wm-text);
  flex: 1;
}
.wm-vl-close {
  background: none;
  border: none;
  color: var(--wm-text-dim);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .2s;
}
.wm-vl-close:hover { color: var(--wm-red); }

/* جسم اللوحة — قابل للتمرير */
.wm-vl-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--wm-border) transparent;
}
.wm-vl-body::-webkit-scrollbar { width: 4px; }
.wm-vl-body::-webkit-scrollbar-thumb { background: var(--wm-border); border-radius: 2px; }

/* منطقة السحب والإفلات */
#wm-vl-dropzone {
  border: 2px dashed var(--wm-border);
  border-radius: 8px;
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  color: var(--wm-text-dim);
  font-size: 12px;
  user-select: none;
}
#wm-vl-dropzone:hover,
#wm-vl-dropzone.wm-vl-drag-over {
  border-color: var(--wm-accent);
  background: rgba(0,212,255,0.05);
  color: var(--wm-accent);
}
.wm-vl-drop-icon { font-size: 28px; margin-bottom: 6px; display: block; }
.wm-vl-drop-hint { font-size: 10px; color: var(--wm-text-dim); margin-top: 4px; }

/* input file مخفي */
#wm-vl-file-input { display: none; }

/* فاصل "أو" */
.wm-vl-or {
  text-align: center;
  font-size: 10px;
  color: var(--wm-text-dim);
  position: relative;
}
.wm-vl-or::before,
.wm-vl-or::after {
  content: '';
  display: inline-block;
  width: 38%;
  height: 1px;
  background: var(--wm-border);
  vertical-align: middle;
  margin: 0 6px;
}

/* حقل الرابط */
.wm-vl-url-row {
  display: flex;
  gap: 6px;
}
#wm-vl-url-input {
  flex: 1;
  background: rgba(13,26,42,0.8);
  border: 1px solid var(--wm-border);
  color: var(--wm-text);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  direction: ltr;
  outline: none;
  transition: border-color .2s;
}
#wm-vl-url-input:focus { border-color: var(--wm-accent); }
#wm-vl-url-input::placeholder { color: var(--wm-text-dim); }

/* أزرار عامة */
.wm-vl-btn {
  background: rgba(0,112,180,0.2);
  border: 1px solid var(--wm-border);
  color: var(--wm-text);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  font-family: var(--wm-font-ar);
}
.wm-vl-btn:hover {
  background: rgba(0,212,255,0.15);
  border-color: var(--wm-accent);
  color: var(--wm-accent);
}
.wm-vl-btn-danger {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3);
  color: var(--wm-red);
}
.wm-vl-btn-danger:hover {
  background: rgba(239,68,68,0.2);
  border-color: var(--wm-red);
}
.wm-vl-btn-primary {
  background: rgba(0,212,255,0.15);
  border-color: var(--wm-accent);
  color: var(--wm-accent);
  font-weight: 700;
}
.wm-vl-btn-primary:hover { background: rgba(0,212,255,0.25); }

/* معاينة الصورة */
#wm-vl-preview { display: none; }
.wm-vl-img-wrap {
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--wm-border);
}
#wm-vl-img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
#wm-vl-img-name {
  font-size: 9px;
  color: var(--wm-text-dim);
  padding: 4px 8px;
  direction: ltr;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* صف الأزرار */
#wm-vl-actions {
  display: none;
  gap: 6px;
  flex-wrap: wrap;
}

/* روابط محركات البحث */
.wm-vl-engine-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.wm-vl-engine-btn {
  display: inline-block;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--wm-accent);
  border-radius: 5px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .3px;
}
.wm-vl-engine-btn:hover {
  background: rgba(0,212,255,0.2);
  border-color: var(--wm-accent);
  color: #fff;
  box-shadow: 0 0 8px rgba(0,212,255,0.25);
}

/* صندوق الإرشاد */
.wm-vl-guide-box {
  background: rgba(13,26,42,0.7);
  border: 1px solid var(--wm-border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--wm-text-dim);
  line-height: 1.8;
}
.wm-vl-guide-box a { color: var(--wm-accent); text-decoration: none; }
.wm-vl-guide-box a:hover { text-decoration: underline; }

#wm-vl-search-guide { display: none; }

/* قسم EXIF */
#wm-vl-exif-section { display: none; }
.wm-vl-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--wm-text-dim);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--wm-border);
}
#wm-vl-exif-placeholder {
  font-size: 11px;
  color: var(--wm-text-dim);
  text-align: center;
  padding: 10px;
  display: none;
}

/* تنبيه GPS */
.wm-vl-gps-alert {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.4);
  border-right: 3px solid var(--wm-red);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  color: #fca5a5;
  margin-bottom: 6px;
  line-height: 1.6;
}
.wm-vl-gps-link { color: var(--wm-accent) !important; text-decoration: none; }
.wm-vl-gps-link:hover { text-decoration: underline; }

/* تنبيه تاريخ */
.wm-vl-date-alert {
  background: rgba(234,179,8,0.08);
  border: 1px solid rgba(234,179,8,0.3);
  border-right: 3px solid var(--wm-yellow);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 11px;
  color: #fde68a;
  margin-bottom: 6px;
}

/* جدول EXIF */
.wm-vl-exif-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}
.wm-vl-exif-key {
  color: var(--wm-text-dim);
  padding: 3px 6px 3px 10px;
  white-space: nowrap;
  vertical-align: top;
  width: 40%;
  border-bottom: 1px solid rgba(30,58,90,0.4);
}
.wm-vl-exif-val {
  color: var(--wm-text);
  padding: 3px 0 3px 6px;
  direction: ltr;
  word-break: break-all;
  border-bottom: 1px solid rgba(30,58,90,0.4);
}
.wm-vl-exif-tbl tr:last-child .wm-vl-exif-key,
.wm-vl-exif-tbl tr:last-child .wm-vl-exif-val { border-bottom: none; }

/* تذييل المختبر */
.wm-vl-footer {
  padding: 6px 12px;
  border-top: 1px solid var(--wm-border);
  font-size: 9px;
  color: var(--wm-text-dim);
  text-align: center;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   ⚡ Earthquake Overlay v2 — إضافات صفحة الزلازل
   ══════════════════════════════════════════════════════════ */

/* شريط الإحصائيات السريعة */
.wm-eq-stats-strip {
  display: flex;
  gap: 1px;
  background: #0a0f1a;
  border-bottom: 1px solid #1e293b;
  flex-shrink: 0;
}
.wm-eq-sstat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  background: #0d1520;
  gap: 2px;
}
.wm-eq-sstat.wm-eq-sstat-sep {
  border-right: 1px solid #1e293b;
}
.wm-eq-sval {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--wm-font-mono, monospace);
  color: #e2e8f0;
}
.wm-eq-sstat small {
  font-size: 9px;
  color: #475569;
}
.wm-eq-c-red    { color: var(--wm-red) !important; }
.wm-eq-c-orange { color: var(--wm-orange) !important; }
.wm-eq-c-yellow { color: var(--wm-yellow) !important; }
.wm-eq-c-blue   { color: #60a5fa !important; }
.wm-eq-c-purple { color: #a78bfa !important; }

/* مفتاح الألوان على الخريطة */
.wm-eq-map-legend {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(13,17,23,.88);
  border: 1px solid #1e293b;
  border-radius: 7px;
  padding: 6px 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 1000;
  font-size: 10px;
  color: #8b949e;
  direction: rtl;
}
.wm-eq-map-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.wm-eq-ldot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* بطاقة تفاصيل الزلزال */
.wm-eq-detail-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #0d1520;
  border-top: 1px solid #1e293b;
  flex-shrink: 0;
  direction: rtl;
}
.wm-eq-detail-mag {
  font-size: 18px;
  font-weight: 700;
  background: #1f2937;
  border-radius: 7px;
  padding: 6px 10px;
  min-width: 60px;
  text-align: center;
  color: #f0f6fc;
  flex-shrink: 0;
}
.wm-eq-detail-body { flex: 1; min-width: 0; }
.wm-eq-detail-title {
  font-size: 12px;
  font-weight: 500;
  color: #c9d1d9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wm-eq-detail-meta { font-size: 10px; color: #6e7681; margin-top: 2px; }
.wm-eq-detail-close {
  background: none;
  border: none;
  color: #6e7681;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  flex-shrink: 0;
}

/* شريط تحذير التسونامي */
.wm-eq-tsunami-bar {
  background: #1a0505;
  border-top: 1px solid #7f1d1d;
  padding: 7px 14px;
  font-size: 12px;
  color: #fca5a5;
  direction: rtl;
  flex-shrink: 0;
}

/* شريط المنشآت القريبة */
.wm-eq-assets-bar {
  background: #111827;
  border-top: 1px solid #374151;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  direction: rtl;
}
.wm-eq-assets-lbl { font-size: 11px; color: #f59e0b; font-weight: 600; flex-shrink: 0; }
.wm-eq-assets-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.wm-eq-asset-chip {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #374151;
  color: #c9d1d9;
  background: #1f2937;
  white-space: nowrap;
}

/* تحسين صف الجدول — إضافة badges */
.wm-do-row-tsunami { border-right: 2px solid #0369a1; }
.wm-do-row-assets  { border-right: 2px solid #92400e; }
.wm-do-row-mena    { background: rgba(31,111,235,0.04); }
.wm-do-badge {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 3px;
}
.wm-do-badge-tsunami { background: #0c1a2e; color: #7dd3fc; border: 1px solid #0369a1; }
.wm-do-badge-asset   { background: #1c1107; color: #fcd34d; border: 1px solid #92400e; }
.wm-do-badge-mena    { background: #0f1f0f; color: #86efac; border: 1px solid #166534; }

/* ══════════════════════════════════════════════════════════
   🌪 Disaster Radar Overlay v2 — تحسينات رادار الكوارث
   ══════════════════════════════════════════════════════════ */

/* مؤشر MENA المُركّب */
.wm-radar-mena-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #060c18;
  border-bottom: 1px solid #1e293b;
  flex-shrink: 0;
  direction: rtl;
}
.wm-radar-mena-lbl { font-size: 11px; color: #6e7681; min-width: 120px; }
.wm-radar-mena-track {
  flex: 1;
  height: 6px;
  background: #1e293b;
  border-radius: 3px;
  overflow: hidden;
}
.wm-radar-mena-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease, background .5s ease;
}
.wm-radar-mena-val   { font-size: 11px; color: #6e7681; min-width: 44px; text-align: right; }
.wm-radar-mena-level { font-size: 11px; font-weight: 700; min-width: 80px; }

/* أزرار تبديل نوع الكارثة */
.wm-radar-layer-btns {
  display: flex;
  gap: 5px;
  padding: 8px 12px;
  background: #0a0f1a;
  border-bottom: 1px solid #1e293b;
  flex-wrap: wrap;
  flex-shrink: 0;
  direction: rtl;
}
.wm-radar-lbtn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  transition: all .18s;
  font-family: inherit;
}
.wm-radar-lbtn.active {
  background: #1f4080;
  border-color: #1f6feb;
  color: #fff;
}
.wm-radar-lbtn:hover:not(.active) { background: #334155; }

/* إحصائيات الرادار الموسّعة */
.wm-radar-summary {
  display: flex !important;
  flex-wrap: wrap;
}
#wm-rs-floods .wm-radar-stat-val,
#wm-rs-dust   .wm-radar-stat-val { color: #60a5fa; }

/* قسم السيول */
.wm-radar-floods-section,
.wm-radar-dust-section {
  padding: 10px 14px;
  border-top: 1px solid #1e293b;
  flex-shrink: 0;
}
.wm-radar-section-hdr {
  font-size: 11px;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 8px;
  direction: rtl;
}
.wm-radar-floods-list,
.wm-radar-dust-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.wm-radar-flood-item,
.wm-radar-dust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: #0d1520;
  border-radius: 6px;
  border: 1px solid #1e293b;
  direction: rtl;
  font-size: 11px;
}
.wm-radar-flood-icon { font-size: 16px; flex-shrink: 0; }
.wm-radar-flood-body { flex: 1; }
.wm-radar-flood-name  { font-weight: 500; color: #c9d1d9; }
.wm-radar-flood-level { font-size: 10px; font-weight: 600; }
.wm-radar-flood-bar-wrap {
  width: 60px;
  height: 4px;
  background: #1e293b;
  border-radius: 2px;
  overflow: hidden;
}
.wm-radar-flood-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease;
}
.wm-radar-flood-val { font-size: 10px; color: #6e7681; min-width: 60px; text-align: left; }

/* بطاقة الكارثة — إضافة أنواع جديدة */
.wm-radar-card.wm-rtype-flood  { border-right-color: #3b82f6 !important; }
.wm-radar-card.wm-rtype-dust   { border-right-color: #d97706 !important; }
.wm-radar-card-hidden          { display: none !important; }

/* ══════════════════════════════════════════════════════════════
   🪟 FLOATING PANELS — بانلات عائمة من الـ dock الأيمن
   نفس أسلوب بانل البيتزا: fixed، يسار الـ dock، كامل الارتفاع
   ══════════════════════════════════════════════════════════════ */

.wm-float-panel {
  position: fixed;
  top: 0;
  right: 52px;           /* يسار الـ dock مباشرة */
  width: 380px;
  height: 100%;
  z-index: 1050;
  background: rgba(4,8,16,0.97);
  backdrop-filter: blur(16px);
  border-left: 1px solid rgba(30,58,90,0.7);
  flex-direction: column;
  direction: rtl;
  animation: wm-fp-in .2s ease-out;
  overflow: hidden;
}

@keyframes wm-fp-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* رأس البانل */
.wm-fp-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(30,58,90,0.7);
  flex-shrink: 0;
  background: rgba(6,12,22,0.6);
  flex-wrap: wrap;
}

.wm-fp-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.wm-fp-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  flex: 1;
  white-space: nowrap;
}

.wm-fp-reload,
.wm-fp-close {
  background: transparent;
  border: 1px solid rgba(30,58,90,0.8);
  border-radius: 4px;
  color: #5a7a96;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  flex-shrink: 0;
  transition: all .15s;
}
.wm-fp-close { border-color: rgba(239,68,68,0.3); }
.wm-fp-reload:hover { background: rgba(37,99,235,0.2); color: #93c5fd; }
.wm-fp-close:hover  { background: rgba(239,68,68,0.25); color: #fca5a5; }

/* فلاتر داخل الرأس */
.wm-fp-filters {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 5px;
}
.wm-fp-filters button {
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid rgba(30,58,90,0.8);
  background: transparent;
  color: #64748b;
  font-size: 9px;
  cursor: pointer;
  transition: all .15s;
}
.wm-fp-filters button.active {
  background: rgba(30,58,90,0.9);
  color: #94a3b8;
}

/* جسم البانل */
.wm-fp-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(30,58,90,0.6) transparent;
}
.wm-fp-body::-webkit-scrollbar { width: 4px; }
.wm-fp-body::-webkit-scrollbar-thumb { background: rgba(30,58,90,0.6); border-radius: 2px; }

/* زر الـ dock عند التفعيل */
.wm-ld-btn.wm-float-dock-btn.active {
  color: var(--wm-accent);
  background: rgba(37,99,235,0.15);
}

/* مسرح المحاكاة — أوسع من البانلات الأخرى لاحتواء 3 أعمدة */
#wm-float-simulation {
  width: 620px;
}

/* موبايل: عرض كامل */
@media (max-width: 700px) {
  .wm-float-panel,
  #wm-float-simulation {
    width: 100%;
    right: 0;
  }
}

/* ══════════════════════════════════════════════
   WM Narrative Detector — تصميم محسّن
   ══════════════════════════════════════════════ */

/* Loading & Empty */
.wm-narr-loading {
    padding: 30px;
    text-align: center;
    color: #3a5a76;
    font-size: 12px;
}
.wm-narr-empty, .wm-narr-error {
    padding: 40px 20px;
    text-align: center;
    color: #475569;
    font-size: 13px;
}
.wm-narr-empty span { font-size: 32px; display: block; margin-bottom: 8px; }

/* ملخص سريع */
.wm-narr-summary {
    display: flex;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 8px;
}
.wm-narr-sum-item {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    border-radius: 8px;
    font-size: 11px;
}
.wm-narr-sum-item span { display: block; font-size: 18px; font-weight: 700; line-height: 1.2; }
.wm-narr-sum-item small { color: rgba(255,255,255,0.5); font-size: 10px; }
.wm-narr-sum-red    { background: rgba(239,68,68,0.12);  color: var(--wm-red); }
.wm-narr-sum-yellow { background: rgba(245,158,11,0.12); color: #f59e0b; }
.wm-narr-sum-green  { background: rgba(34,197,94,0.12);  color: var(--wm-green); }

/* Card */
.wm-narr-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    margin: 0 8px 8px;
    overflow: hidden;
    transition: border-color .2s;
}
.wm-narr-card:hover { border-color: rgba(255,255,255,0.1); }

/* Card Header */
.wm-narr-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    cursor: pointer;
    user-select: none;
}
.wm-narr-card-title {
    display: flex;
    align-items: center;
    gap: 7px;
}
.wm-narr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.wm-narr-topic {
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
}
.wm-narr-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}
.wm-narr-badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 20px;
    border: 1px solid;
    font-weight: 500;
}
.wm-narr-arrow {
    font-size: 9px;
    color: #475569;
}

/* شريط التقاطع */
.wm-narr-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 8px;
}
.wm-narr-bar-track {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}
.wm-narr-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width .4s ease;
}
.wm-narr-bar-label {
    font-size: 10px;
    color: #64748b;
    white-space: nowrap;
    min-width: 70px;
    text-align: left;
}

/* Body */
.wm-narr-body {
    padding: 0 10px 10px;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.wm-narr-sources-label {
    font-size: 10px;
    color: #475569;
    font-weight: 600;
    padding: 8px 2px 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* مصدر واحد */
.wm-narr-sources { display: flex; flex-direction: column; gap: 5px; }
.wm-narr-src {
    background: rgba(255,255,255,0.03);
    border-right: 3px solid;
    border-radius: 0 6px 6px 0;
    padding: 6px 8px;
}
.wm-narr-src-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}
.wm-narr-src-group {
    font-size: 10px;
    font-weight: 700;
}
.wm-narr-src-count {
    font-size: 10px;
    color: #475569;
}
.wm-narr-src-title {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.45;
    text-decoration: none;
    display: block;
    transition: color .15s;
}
.wm-narr-src-title:hover { color: #e2e8f0; }

/* تحليل AI */
.wm-narr-ai {
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(139,92,246,0.07);
    border: 1px solid rgba(139,92,246,0.18);
    border-radius: 7px;
}
.wm-narr-ai-label {
    font-size: 10px;
    color: #a78bfa;
    font-weight: 700;
    margin-bottom: 4px;
}
.wm-narr-ai-diff {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
}
.wm-narr-ai-missing {
    font-size: 10px;
    color: #64748b;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(139,92,246,0.1);
}

/* ══════════════════════════════════════════════
   WM Predictive Alerts — panel (الزر الآن .wm-tb-btn عادي في الشريط العلوي/قائمة «⋯»،
   لا دائرة عائمة مستقلة — توحيد أسطح التنبيه، راجع CLAUDE.md)
   ══════════════════════════════════════════════ */
#wm-pa-btn.active { color: #ef4444; }
#wm-pa-btn.wm-pa-has-alerts {
    animation: wm-pa-pulse 2.5s ease-in-out infinite;
}
@keyframes wm-pa-pulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(239,68,68,.4); }
    50%       { box-shadow: 0 0 0 8px rgba(239,68,68,.15), 0 2px 10px rgba(239,68,68,.4); }
}

/* Badge عدد التنبيهات */
#wm-pa-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--wm-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 4px;
    line-height: 18px;
    text-align: center;
    border: 2px solid #0f172a;
}

/* Panel */
#wm-pa-panel {
    position: absolute;
    top: 106px;
    right: 60px;
    z-index: 1099;
    width: 360px;
    max-height: 500px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(0,0,0,.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    direction: rtl;
    font-family: inherit;
    transition: opacity .2s, transform .2s;
}
#wm-pa-panel.hidden {
    display: none;
}

/* Header */
.wm-pa-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.wm-pa-title {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
}
.wm-pa-sub {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}
.wm-pa-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color .2s;
}
.wm-pa-close:hover { color: #f1f5f9; }

/* List */
#wm-pa-list {
    overflow-y: auto;
    flex: 1;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}

.wm-pa-loading,
.wm-pa-empty {
    text-align: center;
    color: #64748b;
    padding: 30px 16px;
    font-size: 13px;
}

/* Item */
.wm-pa-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background .15s;
}
.wm-pa-item:hover {
    background: rgba(255,255,255,0.08);
}

.wm-pa-item-top {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.wm-pa-badge-conf {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
}
.wm-pa-accel {
    font-size: 11px;
    color: #fb923c;
    font-weight: 600;
}
.wm-pa-cat {
    font-size: 11px;
    color: #94a3b8;
    margin-right: auto;
}
.wm-pa-coords {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
}

/* Reasons */
.wm-pa-reasons {
    margin: 4px 0 8px 0;
    padding-right: 16px;
    list-style: disc;
}
.wm-pa-reasons li {
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 3px;
    line-height: 1.4;
}

/* تفصيل مكوّنات «قوة الإشارة» — راجع build_prediction() في class-predictive-alerts.php */
.wm-pa-components {
    margin: 6px 0 8px 0;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}
.wm-pa-comp-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 10px;
    color: #94a3b8;
}
.wm-pa-comp-label { flex: 0 0 90px; }
.wm-pa-comp-bar {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}
.wm-pa-comp-fill {
    display: block;
    height: 100%;
    background: #22d3ee;
    border-radius: 3px;
}
.wm-pa-comp-val { flex: 0 0 38px; text-align: left; color: #64748b; }

/* Top news */
.wm-pa-news-label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 600;
}
.wm-pa-news-item {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 3px;
    line-height: 1.4;
}
.wm-pa-ns {
    color: #60a5fa;
    font-weight: 600;
}
.wm-pa-nt { color: #cbd5e1; }

/* Forecast footer */
.wm-pa-forecast {
    font-size: 10px;
    color: #475569;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Mobile */
@media (max-width: 600px) {
    #wm-pa-panel {
        width: calc(100vw - 80px);
        right: 60px;
        top: 106px;
        max-height: 60vh;
    }
}


/* ══════════════════════════════════════════════════════════════
   Silence Radar — رادار الصمت
   ══════════════════════════════════════════════════════════════ */

/* Toolbar */
.wm-sr-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #0a1520;
    border-bottom: 1px solid #1e3a5a;
    flex-shrink: 0;
    direction: rtl;
}
.wm-sr-title {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
}
.wm-sr-subtitle {
    font-size: 10px;
    color: #475569;
    flex: 1;
}
.wm-sr-refresh-btn {
    background: none;
    border: 1px solid #1e3a5a;
    color: #3a5a76;
    border-radius: 6px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.wm-sr-refresh-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* List */
.wm-sr-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    direction: rtl;
}

/* Loading & Empty */
.wm-sr-loading {
    padding: 30px;
    text-align: center;
    color: #3a5a76;
    font-size: 12px;
}
.wm-sr-empty {
    padding: 40px 16px;
    text-align: center;
    color: #3a5a76;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.wm-sr-empty span { font-size: 28px; }

/* Header row */
.wm-sr-header {
    display: flex;
    justify-content: space-between;
    padding: 4px 6px 6px;
    margin-bottom: 4px;
}
.wm-sr-hdr-label {
    font-size: 9px;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Card */
.wm-sr-card {
    background: #080f1a;
    border: 1px solid #0d1a2a;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 6px;
    transition: border-color 0.15s;
}
.wm-sr-card:hover { border-color: #1e3a5a; }

/* Card top row */
.wm-sr-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.wm-sr-topic {
    display: flex;
    align-items: center;
    gap: 6px;
}
.wm-sr-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.wm-sr-name {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
}
.wm-sr-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid;
    white-space: nowrap;
}

/* Progress bar */
.wm-sr-bar-track {
    height: 4px;
    background: #1e293b;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}
.wm-sr-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Meta row */
.wm-sr-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #475569;
}
.wm-sr-last {
    color: #334155;
    font-style: italic;
}

/* ── Silence Radar v1.1 — تحسينات ── */

/* شريط الفلتر */
.wm-sr-filters {
    display: flex;
    gap: 4px;
    padding: 6px 8px;
    background: #060c14;
    border-bottom: 1px solid #0d1a2a;
    flex-shrink: 0;
    direction: rtl;
    flex-wrap: wrap;
}
.wm-sr-fbtn {
    background: #0a1520;
    border: 1px solid #1e3a5a;
    color: #475569;
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    white-space: nowrap;
}
.wm-sr-fbtn:hover  { border-color: #3b82f6; color: #93c5fd; }
.wm-sr-fbtn.active { border-color: #3b82f6; color: #60a5fa; background: #1e3a5a44; }

/* مقارنة 3 فترات */
.wm-sr-periods {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 6px 4px 4px;
    margin-top: 4px;
    border-top: 1px solid #0d1a2a;
}
.wm-sr-period {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}
.wm-sr-period-val {
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1;
}
.wm-sr-period-lbl {
    font-size: 8px;
    color: #334155;
    white-space: nowrap;
}
.wm-sr-arrow {
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* نوع الانخفاض */
.wm-sr-trend {
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 600;
    margin-right: 4px;
}
.wm-sr-trend-sudden  { background: #7f1d1d22; color: var(--wm-red); border: 1px solid #ef444433; }
.wm-sr-trend-gradual { background: #78350f22; color: var(--wm-orange); border: 1px solid #f9731633; }

/* آخر ذكر */
.wm-sr-last {
    font-size: 9px;
    color: #334155;
    margin-top: 4px;
    padding-top: 4px;
}

