/* ══════════════════════════════════════════════════════════════
   POLYMARKET — أسواق التنبؤ
   ══════════════════════════════════════════════════════════════ */
.wm-poly-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px 2px;
}
.wm-poly-title { font-size: 12px; font-weight: 700; color: #e2e8f0; }
.wm-poly-refresh {
    background: none; border: 1px solid #334155; color: #64748b;
    border-radius: 4px; padding: 2px 7px; cursor: pointer; font-size: 12px;
}
.wm-poly-refresh:hover { color: #94a3b8; border-color: #475569; }
.wm-poly-subtitle { font-size: 10px; color: #475569; padding: 0 12px 6px; }
.wm-poly-filter {
    display: flex; gap: 4px; padding: 0 10px 8px; flex-wrap: wrap;
}
.wm-pf-btn {
    background: #1e293b; border: 1px solid #334155; color: #64748b;
    padding: 2px 9px; border-radius: 4px; font-size: 10px; cursor: pointer;
    font-family: inherit;
}
.wm-pf-btn.active { background: #1d4ed8; border-color: #3b82f6; color: #fff; }

#wm-poly-list { overflow-y: auto; max-height: 340px; padding: 0 8px; }

.wm-poly-card {
    background: #1e293b; border: 1px solid #334155; border-radius: 8px;
    padding: 10px 12px; margin-bottom: 8px; cursor: default;
    transition: border-color .15s;
}
.wm-poly-card:hover { border-color: #475569; }
.wm-poly-card-title {
    font-size: 11px; color: #e2e8f0; line-height: 1.4;
    margin-bottom: 8px; direction: rtl;
}
.wm-poly-bar-wrap {
    display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.wm-poly-bar-bg {
    flex: 1; height: 8px; background: #0f172a; border-radius: 4px;
    overflow: hidden;
}
.wm-poly-bar-fill {
    height: 100%; border-radius: 4px;
    transition: width .4s ease;
}
.wm-poly-pct {
    font-size: 16px; font-weight: 800; min-width: 42px;
    text-align: left; font-family: monospace;
}
.wm-poly-meta {
    display: flex; justify-content: space-between;
    font-size: 9px; color: #475569;
}
.wm-poly-change { font-weight: 600; }
.wm-poly-change.up   { color: var(--wm-green); }
.wm-poly-change.down { color: var(--wm-red); }
.wm-poly-change.flat { color: #64748b; }
.wm-poly-vol { color: #475569; }

.wm-poly-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 12px 8px; font-size: 9px; color: #475569;
    border-top: 1px solid #1e293b; margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════
   IODA — انقطاعات الإنترنت
   ══════════════════════════════════════════════════════════════ */
.wm-ioda-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px 2px;
}
.wm-ioda-title { font-size: 12px; font-weight: 700; color: #e2e8f0; }
.wm-ioda-refresh {
    background: none; border: 1px solid #334155; color: #64748b;
    border-radius: 4px; padding: 2px 7px; cursor: pointer; font-size: 12px;
}
.wm-ioda-refresh:hover { color: #94a3b8; }
.wm-ioda-subtitle { font-size: 10px; color: #475569; padding: 0 12px 6px; }
.wm-ioda-filter {
    display: flex; gap: 4px; padding: 0 10px 8px;
}
.wm-if-btn {
    background: #1e293b; border: 1px solid #334155; color: #64748b;
    padding: 2px 9px; border-radius: 4px; font-size: 10px; cursor: pointer;
    font-family: inherit;
}
.wm-if-btn.active { background: #1d4ed8; border-color: #3b82f6; color: #fff; }

#wm-ioda-list { overflow-y: auto; max-height: 340px; padding: 0 8px; }

.wm-ioda-card {
    background: #1e293b; border-radius: 8px; padding: 9px 12px;
    margin-bottom: 7px; border-right: 3px solid transparent;
    transition: border-color .15s;
}
.wm-ioda-card.critical { border-right-color: var(--wm-red); }
.wm-ioda-card.warning  { border-right-color: var(--wm-yellow); }
.wm-ioda-card.normal   { border-right-color: var(--wm-green); }

.wm-ioda-card-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 5px;
}
.wm-ioda-country { font-size: 12px; font-weight: 700; color: #e2e8f0; }
.wm-ioda-badge {
    font-size: 9px; padding: 2px 6px; border-radius: 3px; font-weight: 600;
}
.wm-ioda-badge.critical { background: rgba(239,68,68,.2);  color: var(--wm-red); }
.wm-ioda-badge.warning  { background: rgba(234,179,8,.2);  color: var(--wm-yellow); }
.wm-ioda-badge.normal   { background: rgba(34,197,94,.2);  color: var(--wm-green); }

.wm-ioda-bar-row { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.wm-ioda-bar-label { font-size: 9px; color: #64748b; min-width: 28px; text-align: right; }
.wm-ioda-bar-bg {
    flex: 1; height: 5px; background: #0f172a; border-radius: 3px; overflow: hidden;
}
.wm-ioda-bar-fill { height: 100%; border-radius: 3px; transition: width .4s; }
.wm-ioda-bar-pct { font-size: 9px; color: #94a3b8; min-width: 30px; }

.wm-ioda-meta { font-size: 9px; color: #475569; margin-top: 3px; }

.wm-ioda-footer {
    display: flex; justify-content: space-between;
    padding: 6px 12px 8px; font-size: 9px; color: #475569;
    border-top: 1px solid #1e293b; margin-top: 4px;
}

.wm-poly-loading, .wm-ioda-loading {
    text-align: center; padding: 30px; color: #475569; font-size: 12px;
}
.wm-poly-empty, .wm-ioda-empty {
    text-align: center; padding: 24px; color: #475569; font-size: 11px;
}

/* ── بلوكات Polymarket و IODA ────────────────────────────────── */
.wm-block-poly,
.wm-block-ioda {
    grid-column: span 2;
}
.wm-block-footer {
    padding: 5px 12px 8px;
    border-top: 1px solid #1e293b;
}

/* Polymarket block body */
#wm-block-poly-body {
    padding: 6px 8px;
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wm-bpoly-item {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 7px 10px;
    transition: border-color .15s;
}
.wm-bpoly-item:hover { border-color: #334155; }
.wm-bpoly-q {
    font-size: 10px; color: #cbd5e1; line-height: 1.4;
    margin-bottom: 5px; direction: ltr; text-align: left;
}
.wm-bpoly-row {
    display: flex; align-items: center; gap: 8px;
}
.wm-bpoly-bar-bg {
    flex: 1; height: 6px; background: #1e293b; border-radius: 3px; overflow: hidden;
}
.wm-bpoly-bar-fill { height: 100%; border-radius: 3px; transition: width .4s; }
.wm-bpoly-pct {
    font-size: 13px; font-weight: 800; min-width: 36px;
    text-align: left; font-family: monospace;
}
.wm-bpoly-sub {
    display: flex; justify-content: space-between;
    font-size: 9px; color: #475569; margin-top: 3px;
}
.wm-bpoly-change.up   { color: var(--wm-green); }
.wm-bpoly-change.down { color: var(--wm-red); }
.wm-bpoly-change.flat { color: #64748b; }
.wm-bpoly-loading { color:#475569; font-size:11px; text-align:center; padding:20px; }

/* IODA block body */
#wm-block-ioda-body {
    padding: 6px 8px;
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.wm-bioda-row {
    display: flex; align-items: center; gap: 8px;
    background: #0f172a; border-radius: 5px; padding: 5px 8px;
    border-right: 3px solid transparent;
}
.wm-bioda-row.critical { border-right-color: var(--wm-red); }
.wm-bioda-row.warning  { border-right-color: var(--wm-yellow); }
.wm-bioda-row.normal   { border-right-color: var(--wm-green); }
.wm-bioda-flag  { font-size: 15px; min-width: 22px; }
.wm-bioda-name  { font-size: 11px; font-weight: 600; color: #e2e8f0; min-width: 55px; }
.wm-bioda-bar-bg { flex: 1; height: 5px; background: #1e293b; border-radius: 3px; overflow: hidden; }
.wm-bioda-bar-fill { height: 100%; border-radius: 3px; transition: width .4s; }
.wm-bioda-drop { font-size: 10px; font-weight: 700; min-width: 38px; text-align: left; }
.wm-bioda-badge {
    font-size: 8px; padding: 1px 5px; border-radius: 3px;
    white-space: nowrap; font-weight: 600;
}
.wm-bioda-badge.critical { background:rgba(239,68,68,.2);  color:var(--wm-red); }
.wm-bioda-badge.warning  { background:rgba(234,179,8,.2);  color:var(--wm-yellow); }
.wm-bioda-badge.normal   { background:rgba(34,197,94,.2);  color:var(--wm-green); }
.wm-bioda-loading { color:#475569; font-size:11px; text-align:center; padding:20px; }

/* ── بلوك التقرير الاستخباراتي اليومي ───────────────────────── */
.wm-block-brief {
    grid-column: span 4;
    border-color: #7c3aed !important;
}
.wm-block-brief .wm-block-header {
    background: linear-gradient(90deg, #1e1b4b, #1e293b);
    border-bottom-color: #7c3aed33;
}
.wm-block-brief .wm-block-icon { font-size: 16px; }

#wm-block-brief-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
}
@media (max-width: 700px) {
    #wm-block-brief-body { grid-template-columns: 1fr; }
    .wm-block-brief { grid-column: span 2; }
}

/* الملخص التنفيذي */
.wm-brief-summary {
    grid-column: span 2;
    background: #0f172a;
    border: 1px solid #7c3aed44;
    border-radius: 8px;
    padding: 12px 16px;
}
.wm-brief-summary-label {
    font-size: 9px; color: #7c3aed; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px;
}
.wm-brief-summary-text {
    font-size: 12px; color: #cbd5e1; line-height: 1.7; direction: rtl;
}

/* أبرز الأحداث */
.wm-brief-events { grid-column: span 1; }
.wm-brief-events-title {
    font-size: 10px; color: #94a3b8; font-weight: 700;
    margin-bottom: 8px; direction: rtl;
}
.wm-brief-event {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 7px 0; border-bottom: 1px solid #1e293b; direction: rtl;
}
.wm-brief-event:last-child { border-bottom: none; }
.wm-brief-event-dot {
    width: 8px; height: 8px; border-radius: 50%; margin-top: 4px;
    flex-shrink: 0;
}
.wm-brief-event-dot.high   { background: var(--wm-red); }
.wm-brief-event-dot.medium { background: var(--wm-orange); }
.wm-brief-event-dot.low    { background: var(--wm-green); }
.wm-brief-event-text {
    font-size: 11px; color: #e2e8f0; line-height: 1.5;
}
.wm-brief-event-analysis {
    font-size: 10px; color: #64748b; margin-top: 2px;
}
.wm-brief-ev-why {
    margin-top: 5px; font-size: 10px; color: #94a3b8;
    padding: 3px 7px; border-radius: 4px;
    background: rgba(59,130,246,0.07); border-right: 2px solid #3b82f6;
}
.wm-brief-ev-why-lbl { color: #60a5fa; font-weight: 700; }

/* شارات مراحل القصة الإخبارية */
.wm-stage-breaking   { font-size:10px; padding:1px 6px; border-radius:10px; background:rgba(239,68,68,.15);   color:var(--wm-red); font-weight:700; flex-shrink:0; }
.wm-stage-developing { font-size:10px; padding:1px 6px; border-radius:10px; background:rgba(59,130,246,.12);  color:#60a5fa; font-weight:600; flex-shrink:0; }
.wm-stage-sustained  { font-size:10px; padding:1px 6px; border-radius:10px; background:rgba(34,197,94,.12);   color:var(--wm-green); font-weight:600; flex-shrink:0; }
.wm-stage-fading     { font-size:10px; padding:1px 6px; border-radius:10px; background:rgba(100,116,139,.12); color:#64748b; font-weight:600; flex-shrink:0; }

/* شارات موثوقية المصدر — WM_CredMap */
.wm-cred-verified    { font-size:9px; padding:1px 5px; border-radius:10px; background:rgba(21,128,61,.13);   color:#15803d; flex-shrink:0; cursor:default; }
.wm-cred-active      { font-size:9px; padding:1px 5px; border-radius:10px; background:rgba(15,118,110,.12);  color:#0f766e; flex-shrink:0; cursor:default; }
.wm-cred-state       { font-size:9px; padding:1px 5px; border-radius:10px; background:rgba(29,78,216,.10);   color:#1d4ed8; flex-shrink:0; cursor:default; }
.wm-cred-unverified  { font-size:9px; padding:1px 5px; border-radius:10px; background:rgba(161,98,7,.10);    color:#a16207; flex-shrink:0; cursor:default; }
.wm-cred-sensational { font-size:9px; padding:1px 5px; border-radius:10px; background:rgba(220,38,38,.10);   color:#dc2626; flex-shrink:0; cursor:default; }
.wm-prop-high         { font-size:9px; padding:1px 5px; border-radius:10px; background:rgba(220,38,38,.13);   color:#dc2626; flex-shrink:0; cursor:default; border:1px solid rgba(220,38,38,.25); }
.wm-prop-medium       { font-size:9px; padding:1px 5px; border-radius:10px; background:rgba(249,115,22,.12);  color:var(--wm-orange); flex-shrink:0; cursor:default; }
/* شارة الموثوقية الموحّدة CRED NN — تحل محل .wm-cred-*/.wm-prop-* أعلاه (لا تزالان معرَّفتين لتفادي كسر أي استخدام قديم متبقٍّ) */
.wm-cred-unified      { font-size:9px; font-weight:700; padding:1px 6px; border-radius:10px; background:rgba(255,255,255,0.04); border:1px solid; flex-shrink:0; cursor:default; }

/* ── رموز الأقمار الصناعية (WM_SatelliteTracker) — نقطة أوضح بحلقة نابضة ── */
.wm-sat-icon { display:flex; align-items:center; justify-content:center; pointer-events:auto; }
.wm-sat-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 6px 1px currentColor;
  display: flex; align-items: center; justify-content: center;
}
.wm-sat-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0.7;
  animation: wm-sat-pulse 2.2s ease-out infinite;
}
@keyframes wm-sat-pulse {
  0%   { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* الاتجاهات والتوقعات */
.wm-brief-right { grid-column: span 1; display: flex; flex-direction: column; gap: 10px; }
.wm-brief-box {
    background: #0f172a; border-radius: 8px; padding: 10px 14px;
    flex: 1;
}
.wm-brief-box-label {
    font-size: 9px; font-weight: 700; letter-spacing: 1px;
    margin-bottom: 5px; text-transform: uppercase;
}
.wm-brief-box-label.trends  { color: #06b6d4; }
.wm-brief-box-label.forecast { color: #a78bfa; }
.wm-brief-box-text {
    font-size: 11px; color: #cbd5e1; line-height: 1.6; direction: rtl;
}

.wm-brief-loading {
    grid-column: span 2; text-align: center;
    color: #475569; font-size: 12px; padding: 20px;
}
.wm-brief-disabled {
    grid-column: span 2; text-align: center;
    color: #475569; font-size: 11px; padding: 16px;
}

/* ── طبقة النزاعات المسلحة ───────────────────────────────── */
.wm-conflict-pulse {
    animation: conflict-pulse 2s ease-in-out infinite;
}
@keyframes conflict-pulse {
    0%   { stroke-opacity: 1; stroke-width: 2px; }
    50%  { stroke-opacity: 0.3; stroke-width: 5px; }
    100% { stroke-opacity: 1; stroke-width: 2px; }
}
#wm-conflict-toggle.active {
    background: rgba(220, 38, 38, 0.25) !important;
    border-color: #dc2626 !important;
    color: #fca5a5 !important;
}

/* ── قنوات OSINT Telegram ────────────────────────────────── */
.wm-item[data-type="telegram_osint"] {
    border-right-color: #818cf8 !important;
    background: linear-gradient(to left, rgba(129,140,248,0.04), transparent 60%);
}
.wm-item[data-type="telegram_osint"] .wm-item-src {
    color: #818cf8;
}
#wm-osint-btn.active {
    border-color: #818cf8;
    color: #a5b4fc;
}
#wm-osint-btn:not(.active) {
    opacity: 0.45;
}

/* ══════════════════════════════════════════════════
   v4.0 — Mobile Responsive
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #wm-sidebar {
    width: 100%;
    top: auto;
    bottom: 0;
    height: 55vh;
    border-right: none;
    border-top: 1px solid var(--wm-border);
    transform: translateY(0);
  }
  #wm-sidebar.wm-sidebar-closed {
    transform: translateY(100%);
  }
  #wm-layer-dock {
    right: 8px;
    top: auto;
    bottom: 48px;
    transform: none;
    flex-direction: row;
    border-radius: 8px;
    padding: 5px 8px;
  }
  #wm-topbar { padding: 6px 10px; left: 0 !important; right: 0 !important; }
  .wm-topbar-logo { font-size: 14px; letter-spacing: 1px; }
  .wm-topbar-center { display: none; }
  #wm-map-hud { bottom: 60px; right: 52px; }
  /* #wm-intelqa-pill لا يحتاج override هنا — bottom:100% نسبي لصندوق HUD نفسه */
  /* إخفاء عناصر desktop غير ضرورية */
  #wm-conn-label { display: none; }
  .wm-topbar-count { display: none; }
  /* sidebar يصبح bottom sheet — المحتوى يبتعد عن bottom nav */
  #wm-sidebar .wm-sb-content { padding-bottom: 0; }
  /* layer dock يرتفع فوق الـ bottom nav */
  #wm-layer-dock { bottom: 64px; }
  /* إخفاء زر toggle القديم — bottom nav تحل محله */
  #wm-sidebar-toggle { display: none; }

  /* ── مدمج من بلوكات 768px السابقة ── */
  .wm-layout { flex-direction: column; height: auto; }
  .wm-panel { width: 100%; border-right: none; border-top: 1px solid var(--wm-border); }
  .wm-threat-counter { display: none; }
  #wm-tension-bar { padding: 4px 8px; }
  .wm-source-toggles { display: none; }
  #wm-breaking-panel { width: 100%; }
  #wm-country-bar { flex-wrap: nowrap; overflow-x: auto; }
}

/* تأكد من أن الـ wm-root يملأ الشاشة كاملة */
#wm-root {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  border: none !important;
  border-radius: 0 !important;
}

/* إخفاء عناصر WordPress عند التحميل */
body:has(#wm-root) .site-header,
body:has(#wm-root) .site-footer,
body:has(#wm-root) #masthead,
body:has(#wm-root) #colophon {
  display: none !important;
}
body:has(#wm-root) {
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── تعريف .wm-panel (متوافق مع JS القديم) ── */
.wm-panel { display: contents; }
.wm-panel-header { display: contents; }
.wm-panel-header > .wm-panel-tools {
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--wm-border);
  background: rgba(6,12,20,0.6);
  flex-shrink: 0;
}
/* عدادات التهديد القديمة — مخفية */
.wm-threat-counter { display: none !important; }

/* ══════════════════════════════════════════════════
   v4.1 — Popup Card Design
══════════════════════════════════════════════════ */

/* Leaflet popup wrapper */
.leaflet-popup-content-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.leaflet-popup-tip-container { display: none !important; }
.leaflet-popup-content {
  margin: 0 !important;
  width: auto !important;
}

/* البطاقة الرئيسية */
.wm-popup-card {
  width: 280px;
  background: rgba(7,14,24,0.97);
  border: 1px solid rgba(30,58,90,0.8);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,212,255,0.1);
  direction: rtl;
  font-family: var(--wm-font-ar);
  backdrop-filter: blur(16px);
}

/* شريط اللون العلوي */
.wm-pc-bar {
  height: 3px;
  width: 100%;
}

.wm-pc-body {
  padding: 12px 14px;
}

/* المصدر + الوقت */
.wm-pc-meta {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  direction: rtl;
}
.wm-pc-src {
  font-size: 11px;
  color: var(--wm-accent);
  font-family: 'Share Tech Mono', monospace;
  font-weight: 600;
}
.wm-pc-time {
  font-size: 10px;
  color: #475569;
  font-family: 'Share Tech Mono', monospace;
  background: rgba(30,58,90,0.4);
  padding: 1px 6px;
  border-radius: 8px;
}

/* العنوان */
.wm-pc-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 8px;
  text-align: right;
  direction: rtl;
}

/* الملخص */
.wm-pc-summary {
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 8px;
  border-right: 2px solid rgba(0,212,255,0.3);
  padding-right: 8px;
  text-align: right;
  direction: rtl;
}

/* Footer: score + trend + category */
.wm-pc-footer {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
  direction: rtl;
  justify-content: flex-start;
}
.wm-pc-score {
  font-size: 10px;
  font-family: 'Share Tech Mono', monospace;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid;
}
.wm-pc-trend {
  font-size: 10px;
  color: #64748b;
  background: rgba(30,58,90,0.5);
  padding: 2px 7px;
  border-radius: 8px;
}
.wm-pc-cat {
  font-size: 10px;
  color: #475569;
  background: rgba(30,58,90,0.3);
  padding: 2px 7px;
  border-radius: 8px;
}

/* زر القراءة */
.wm-pc-link {
  display: block;
  text-align: center;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  color: var(--wm-accent);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all .2s;
}
.wm-pc-link:hover {
  background: rgba(0,212,255,0.18);
  border-color: var(--wm-accent);
  color: #fff;
}

/* صف الإجراءات: قراءة + مشاركة */
.wm-pc-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.wm-pc-actions .wm-pc-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}
.wm-pc-share {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.3);
  color: #818cf8;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
  line-height: 1;
}
.wm-pc-share:hover    { background: rgba(99,102,241,0.22); }
.wm-pc-share:disabled { opacity: .5; cursor: default; }

/* زر «📋 كل التفاصيل» — يفتح نافذة الموقع الكاملة (openModal) من popup الخريطة،
   بنفس نمط .wm-pc-link لكن بلون مميَّز ليُفرَّق عن رابط المصدر الخارجي المجاور */
.wm-pc-full {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
}
.wm-pc-full:hover { background: rgba(34,197,94,0.22); }

/* بطاقة الزلازل */
.wm-pc-mag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -1px;
}
.wm-pc-mag-unit {
  font-size: 14px;
  font-weight: 400;
  margin-right: 4px;
  opacity: 0.7;
}

/* ══════════════════════════════════════════════════
   v4.3 — Critical Marker Pulse Animation
══════════════════════════════════════════════════ */

.wm-marker-critical {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* النقطة المركزية */
.wm-marker-dot {
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* حلقة النبض */
.wm-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid;
  opacity: 0;
  animation: wm-critical-pulse 2s ease-out infinite;
}
.wm-pulse-ring-2 {
  animation-delay: 1s;
}

@keyframes wm-critical-pulse {
  0%   { transform: scale(0.4); opacity: 0.8; }
  80%  { transform: scale(1);   opacity: 0;   }
  100% { transform: scale(1);   opacity: 0;   }
}

/* ══ نظام النبض الموسّع — v4.7.4 ══════════════════ */

/* نبض بطيء — التوترات المتوسطة */
.wm-pulse-slow .wm-pulse-ring {
  animation-duration: 3s;
}
.wm-pulse-slow .wm-pulse-ring-2 {
  animation-delay: 1.5s;
}

/* نبض سريع جداً — طوارئ */
.wm-pulse-fast .wm-pulse-ring {
  animation-duration: 1s;
}
.wm-pulse-fast .wm-pulse-ring-2 {
  animation-delay: 0.5s;
}

/* نبض ثلاثي الحلقات */
.wm-pulse-ring-3 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0;
  animation: wm-critical-pulse 2s ease-out infinite;
  animation-delay: 0.65s;
}

/* ══ النقطة المركزية المتوهجة ══ */
.wm-marker-dot-glow {
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  animation: wm-dot-glow 2s ease-in-out infinite alternate;
}
@keyframes wm-dot-glow {
  0%   { box-shadow: 0 0 4px currentColor, 0 0 8px currentColor; }
  100% { box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor44; }
}

/* ══ تأثير رادار دوّار (للزلازل القوية) ══ */
.wm-radar-sweep {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: currentColor;
  animation: wm-radar-spin 1.5s linear infinite;
  opacity: 0.6;
}
@keyframes wm-radar-spin {
  to { transform: rotate(360deg); }
}

/* ══ تأثير هالة للمناطق المنهارة اقتصادياً ══ */
.wm-halo-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  opacity: 0;
  animation: wm-halo 3s ease-out infinite;
}
@keyframes wm-halo {
  0%   { transform: scale(0.5); opacity: 0.6; }
  70%  { transform: scale(1.8); opacity: 0;   }
  100% { opacity: 0; }
}

/* ══ نبض مزدوج للتهديدات السيبرانية ══ */
.wm-cyber-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #8b5cf6;
  opacity: 0;
  animation: wm-cyber-blink 1.2s steps(1) infinite;
}
@keyframes wm-cyber-blink {
  0%, 49% { opacity: 0.8; transform: scale(1); }
  50%, 100% { opacity: 0; transform: scale(1.5); }
}

/* ══════════════════════════════════════════════════
   v4.4 — Stats Panel inside Sidebar
══════════════════════════════════════════════════ */

.wm-stats-panel {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.wm-sp-scroll {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--wm-border) transparent;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* بلوك واحد */
.wm-sp-block {
  background: rgba(13,26,42,0.6);
  border: 1px solid var(--wm-border);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.wm-sp-head {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--wm-accent);
  font-family: var(--wm-font-mono);
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(30,58,90,0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}
.wm-sp-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 8px;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.4);
  color: var(--wm-green);
  margin-right: auto;
}
.wm-sp-badge-sm {
  font-size: 10px;
  color: var(--wm-text-dim);
  font-weight: 400;
  margin-right: auto;
}
.wm-sp-body {
  padding: 8px 12px;
}
.wm-sp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 11px;
  color: var(--wm-text-dim);
  border-bottom: 1px solid rgba(30,58,90,0.2);
}
.wm-sp-row:last-child { border-bottom: none; }
.wm-sp-row strong { font-family: var(--wm-font-mono); font-size: 12px; }

/* الوضع العالمي */
.wm-sp-status { border-color: rgba(34,197,94,0.3); }
.wm-sp-score-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.wm-sp-bigscore {
  font-family: var(--wm-font-mono);
  font-size: 36px;
  font-weight: 900;
  color: var(--wm-green);
  line-height: 1;
  flex-shrink: 0;
  min-width: 48px;
}
.wm-sp-rows { flex: 1; }

/* توزيع التهديد */
.wm-sp-dist {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 6px;
  padding: 8px;
}
.wm-sp-dist-item {
  border: 1px solid;
  border-radius: 6px;
  padding: 8px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.wm-sp-dist-item span {
  font-family: var(--wm-font-mono);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}
.wm-sp-dist-item small { font-size: 9px; color: var(--wm-text-dim); }

.wm-sp-loading { font-size: 11px; color: var(--wm-text-dim); padding: 8px 12px; }

/* ══════════════════════════════════════════════════
   v4.3.3 — Stats Overlay Panel
══════════════════════════════════════════════════ */

#wm-stats-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(4,8,16,0.92);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: wm-so-in .2s ease-out;
}
@keyframes wm-so-in {
  from { opacity:0; transform: translateY(10px); }
  to   { opacity:1; transform: translateY(0); }
}

.wm-so-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--wm-border);
  background: rgba(6,12,20,0.9);
  flex-shrink: 0;
}
.wm-so-title {
  font-family: var(--wm-font-hd);
  font-size: 15px;
  font-weight: 700;
  color: var(--wm-accent);
  letter-spacing: 1px;
}
.wm-so-close {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.4);
  color: var(--wm-red);
  width: 30px; height: 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.wm-so-close:hover { background: rgba(239,68,68,0.3); }

.wm-so-grid {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: min-content;
  gap: 12px;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: var(--wm-border) transparent;
  direction: rtl;
}
@media (max-width: 1100px) { .wm-so-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .wm-so-grid { grid-template-columns: 1fr; } }

/* Stats overlay — بلوكات بحجمها الطبيعي */
.wm-so-grid .wm-block {
  height: auto !important;
  min-height: unset !important;
  overflow: visible !important;
}
.wm-so-grid .wm-block-body {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
/* البلوكات ذات المحتوى الطويل تأخذ scroll خاص */
.wm-so-grid #wm-block-sources .wm-block-body,
.wm-so-grid #wm-block-tensions .wm-block-body,
.wm-so-grid #wm-block-regions .wm-block-body {
  max-height: 220px;
  overflow-y: auto;
}
.wm-so-grid .wm-block-wide {
  grid-column: span 2;
}
.wm-so-grid .wm-block-live { display: none !important; }
.wm-so-grid .wm-block-brief { display: none !important; }


/* ── Live Overlay ── */
#wm-live-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(4,8,16,0.96);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  animation: wm-so-in .2s ease-out;
}
.wm-lo-body {
  flex: 1;
  display: flex;
  gap: 0;
  overflow: hidden;
  min-height: 0;
}

/* قائمة القنوات — عمود يمين */
.wm-lo-channels {
  width: 200px;
  flex-shrink: 0;
  background: rgba(6,12,20,0.9);
  border-left: 1px solid var(--wm-border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  gap: 2px;
  scrollbar-width: thin;
}
.wm-lo-ch {
  background: transparent;
  border: none;
  color: var(--wm-text-dim);
  padding: 10px 16px;
  text-align: right;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--wm-font-ar);
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  gap: 8px;
  border-right: 3px solid transparent;
}
.wm-lo-ch:hover {
  background: rgba(59,130,246,0.1);
  color: var(--wm-text);
}
.wm-lo-ch.active {
  background: rgba(239,68,68,0.12);
  color: #f87171;
  border-right-color: var(--wm-red);
}

/* مشغّل الفيديو */
.wm-lo-player-wrap {
  flex: 1;
  position: relative;
  background: #000;
}
.wm-lo-player-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.wm-lo-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(239,68,68,0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 1px;
  pointer-events: none;
}

/* زر البث مفعّل */
#wm-live-overlay-toggle.active {
  background: rgba(239,68,68,0.25);
  border-color: rgba(239,68,68,0.6);
  color: #f87171;
}

/* YouTube IFrame API player */
#wm-lo-player {
  width: 100%;
  height: 100%;
}
#wm-lo-player iframe {
  width: 100% !important;
  height: 100% !important;
}

#wm-lo-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%; height: 100%;
  color: #94a3b8;
  font-size: 14px;
  background: #040810;
}
#wm-lo-extlink {
  color: #60a5fa;
  font-size: 15px;
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid #3b82f6;
  border-radius: 8px;
}
#wm-lo-extlink:hover { background: rgba(59,130,246,0.15); }
#wm-lo-iframe { width:100%; height:100%; border:none; display:block; }

/* ══════════════════════════════════════════════════
   v4.6 — Cyber Threat Monitor
══════════════════════════════════════════════════ */

#wm-cyber-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(4,8,16,0.97);
  display: flex; flex-direction: column;
  direction: rtl; font-family: inherit;
}

.wm-cyber-body {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden; padding: 0;
}

/* Stats Bar */
.wm-cyber-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--wm-border);
  border-bottom: 1px solid var(--wm-border);
  flex-shrink: 0;
}
.wm-cstat {
  background: var(--wm-bg2);
  padding: 12px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.wm-cstat-val {
  font-size: 22px; font-weight: 800; color: #e2e8f0; font-variant-numeric: tabular-nums;
}
.wm-cstat-lbl { font-size: 11px; color: #475569; letter-spacing: .5px; }
.wm-cs-red    { color: var(--wm-red) !important; }
.wm-cs-orange { color: var(--wm-orange) !important; }
.wm-cs-purple { color: #a855f7 !important; }

/* Tabs */
.wm-cyber-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--wm-border);
  flex-shrink: 0; background: var(--wm-bg);
}
.wm-ctab {
  flex: 1; padding: 10px; font-size: 12px; font-weight: 600;
  background: transparent; border: none; border-bottom: 2px solid transparent;
  color: #475569; cursor: pointer; transition: all .2s;
}
.wm-ctab.active { color: #60a5fa; border-bottom-color: #3b82f6; background: rgba(59,130,246,.06); }
.wm-ctab:hover:not(.active) { color: #94a3b8; background: rgba(255,255,255,.03); }

/* Panels */
.wm-cyber-panel {
  flex: 1; overflow-y: auto; padding: 12px;
  scrollbar-width: thin; scrollbar-color: var(--wm-border) transparent;
}
.wm-cyber-loading {
  text-align: center; padding: 40px; color: #475569; font-size: 14px;
}

/* IP Row */
.wm-cyber-ip-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 6px;
  background: rgba(255,255,255,.03); border: 1px solid var(--wm-border);
  margin-bottom: 6px; transition: border-color .2s;
}
.wm-cyber-ip-row:hover { border-color: rgba(59,130,246,.3); }
.wm-cip-icon  { font-size: 18px; flex-shrink: 0; }
.wm-cip-info  { flex: 1; min-width: 0; }
.wm-cip-addr  { font-size: 12px; font-family: monospace; color: #94a3b8; }
.wm-cip-label { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.wm-cip-country { font-size: 11px; color: #64748b; }
.wm-cip-score {
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 20px; background: rgba(239,68,68,.15); color: var(--wm-red);
  flex-shrink: 0;
}
.wm-cip-bar-wrap {
  width: 60px; height: 4px; background: rgba(255,255,255,.08);
  border-radius: 2px; flex-shrink: 0; overflow: hidden;
}
.wm-cip-bar { height: 100%; border-radius: 2px; transition: width .5s; }

/* Vuln Row */
.wm-cyber-vuln-row {
  padding: 10px 14px; border-radius: 8px;
  background: rgba(255,255,255,.03); border: 1px solid var(--wm-border);
  margin-bottom: 8px;
}
.wm-cv-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wm-cv-id     { font-size: 12px; font-family: monospace; color: #60a5fa; font-weight: 700; }
.wm-cv-badge  { font-size: 10px; padding: 1px 6px; border-radius: 10px; font-weight: 700; }
.wm-cv-badge.critical { background: rgba(220,38,38,.2); color: var(--wm-red); }
.wm-cv-badge.high     { background: rgba(249,115,22,.2); color: var(--wm-orange); }
.wm-cv-badge.medium   { background: rgba(234,179,8,.2);  color: var(--wm-yellow); }
.wm-cv-name   { font-size: 13px; font-weight: 600; color: #e2e8f0; margin-bottom: 3px; }
.wm-cv-vendor { font-size: 11px; color: #64748b; }
.wm-cv-desc   { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.wm-cv-date   { font-size: 10px; color: #475569; margin-top: 4px; }

/* News Row */
.wm-cyber-news-row {
  padding: 10px 14px; border-radius: 8px;
  background: rgba(255,255,255,.03); border: 1px solid var(--wm-border);
  margin-bottom: 8px; cursor: pointer; transition: border-color .2s;
}
.wm-cyber-news-row:hover { border-color: rgba(59,130,246,.3); }
.wm-cn-title  { font-size: 13px; font-weight: 600; color: #e2e8f0; margin-bottom: 4px; line-height: 1.5; }
.wm-cn-meta   { display: flex; align-items: center; gap: 8px; }
.wm-cn-source { font-size: 11px; color: #64748b; }
.wm-cn-badge  { font-size: 10px; padding: 1px 7px; border-radius: 10px; }
.wm-cn-date   { font-size: 10px; color: #475569; margin-right: auto; }

/* Map markers */
.wm-cyber-marker { cursor: pointer; }
.wm-cyber-pulse {
  width: 10px; height: 10px; border-radius: 50%;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.wm-cyber-pulse::after {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  animation: wm-cyber-pulse-anim 2s ease-out infinite;
  opacity: .6;
}
@keyframes wm-cyber-pulse-anim {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(3);   opacity: 0;  }
}

/* HUD — Cyber Counter */
.wm-threat.cybercount span { color: #a855f7; }
.wm-threat.cybercount:hover { background: rgba(168,85,247,0.15); border-color: rgba(168,85,247,0.4); }
.wm-cyber-hud-alert span { animation: wm-cyber-hud-blink 1.5s ease-in-out infinite; }
@keyframes wm-cyber-hud-blink {
  0%,100% { color: #a855f7; }
  50%      { color: var(--wm-red); text-shadow: 0 0 8px var(--wm-red); }
}

/* HUD — Tension Counter */
.wm-threat.tensioncount span { color: var(--wm-yellow); }
.wm-threat.tensioncount:hover { background: rgba(234,179,8,0.15); border-color: rgba(234,179,8,0.4); }
.wm-tension-hud-alert span { animation: wm-tension-hud-pulse 1.8s ease-in-out infinite; }
@keyframes wm-tension-hud-pulse {
  0%,100% { color: var(--wm-orange); }
  50%      { color: var(--wm-red); text-shadow: 0 0 8px #ef4444aa; }
}
.wm-threat.tensioncount { transition: opacity .3s; }

/* ══════════════════════════════════════════════════
   💹 القسم الاقتصادي — v4.7.0
   ══════════════════════════════════════════════════ */

/* Overlay */
#wm-economy-overlay {
    position: absolute;
    inset: 0;
    z-index: 800;
    background: rgba(5,10,20,0.97);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px);
    overflow: hidden;
}

/* Ticker شريط سريع */
.wm-eco-ticker {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 7px 16px;
    background: rgba(10,18,32,0.9);
    border-bottom: 1px solid #1e3a5a;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
    flex-wrap: wrap;
    row-gap: 4px;
}
.wm-eco-ticker::-webkit-scrollbar { display: none; }
.wm-eco-tick-item {
    font-size: 12px;
    color: #cbd5e1;
    white-space: nowrap;
    padding: 0 8px;
    font-family: var(--wm-font-ar);
}
.wm-eco-tick-sep { color: #334155; }

/* Refresh button */
.wm-so-refresh {
    background: rgba(37,99,235,0.15);
    border: 1px solid rgba(37,99,235,0.3);
    color: #3b82f6;
    width: 26px; height: 26px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all .2s;
    display: flex; align-items: center; justify-content: center;
}
.wm-so-refresh:hover { background: #3b82f6; color: #fff; }

/* تبويبات */
.wm-eco-tabs {
    display: flex;
    gap: 2px;
    padding: 8px 12px 0;
    background: rgba(8,14,26,0.95);
    border-bottom: 1px solid #1e3a5a;
    flex-shrink: 0;
}
.wm-etab {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #64748b;
    padding: 8px 4px;
    font-size: 12.5px;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--wm-font-ar);
    white-space: nowrap;
    text-align: center;
}
.wm-etab:hover  { color: #e2e8f0; }
.wm-etab.active { color: var(--wm-green); border-bottom-color: var(--wm-green); }

/* Panels */
.wm-eco-panel {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    scrollbar-width: thin;
    scrollbar-color: #1e3a5a transparent;
    min-height: 0;
}
.wm-eco-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}
.wm-eco-loading {
    text-align: center;
    color: #475569;
    padding: 40px 20px;
    font-size: 13px;
}

/* Grid البطاقات (سلع + كريبتو) */
.wm-eco-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.wm-eco-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15,23,42,0.8);
    border: 1px solid #1e3a5a;
    border-radius: 10px;
    padding: 11px 12px;
    transition: border-color .2s, background .2s;
    cursor: default;
}
.wm-eco-card:hover { border-color: #334155; background: rgba(20,30,50,0.9); }
.wm-eco-card-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.wm-eco-card-info { flex: 1; min-width: 0; }
.wm-eco-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wm-eco-card-sub {
    font-size: 10px;
    color: #475569;
    margin-top: 2px;
}
.wm-eco-card-price { text-align: left; }
.wm-eco-card-val {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    font-family: var(--wm-font-mono);
    white-space: nowrap;
}
.wm-eco-card-chg {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
    font-family: var(--wm-font-mono);
}

/* قائمة العملات */
.wm-eco-fx-list { display: flex; flex-direction: column; gap: 6px; }
.wm-eco-fx-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    grid-template-rows: auto 4px;
    gap: 0 10px;
    align-items: center;
    background: rgba(15,23,42,0.7);
    border: 1px solid #1e3a5a;
    border-radius: 8px;
    padding: 9px 12px 6px;
    transition: border-color .15s;
}
.wm-eco-fx-row:hover { border-color: #334155; }
.wm-eco-fx-flag { font-size: 20px; grid-row: 1; }
.wm-eco-fx-info {
    display: flex; flex-direction: column; gap: 1px;
    grid-row: 1;
}
.wm-eco-fx-code { font-size: 13px; font-weight: 700; color: #e2e8f0; }
.wm-eco-fx-name { font-size: 10px; color: #475569; }
.wm-eco-fx-right {
    display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
    grid-row: 1;
}
.wm-eco-fx-rate  { font-size: 13px; font-weight: 700; color: #f1f5f9; font-family: monospace; }
.wm-eco-fx-status { font-size: 10px; font-weight: 600; }
.wm-eco-fx-bar {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 3px;
    background: #1e3a5a;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

/* بورصات */
.wm-eco-markets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.wm-eco-market-card {
    background: rgba(10,18,32,0.9);
    border: 1px solid #1e3a5a;
    border-radius: 10px;
    overflow: hidden;
}
.wm-eco-mkt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    font-size: 12px;
    color: #e2e8f0;
    border-bottom: 1px solid #1e293b;
}

/* رادار السوق + ETF بيتكوين — شارة الحكم */
.wm-radar-verdict {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15,23,42,0.8);
    border: 1px solid #1e3a5a;
    border-right: 4px solid; /* RTL */
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.wm-radar-verdict-icon { font-size: 26px; flex-shrink: 0; }
.wm-radar-verdict-text { flex: 1; min-width: 0; }
.wm-radar-verdict-label { font-size: 15px; font-weight: 700; }
.wm-radar-verdict-sub { font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* قائمة إشارات الرادار */
.wm-radar-signals { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.wm-radar-signal-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(15,23,42,0.7);
    border: 1px solid #1e3a5a;
    border-radius: 8px;
    padding: 9px 12px;
}
.wm-radar-signal-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.wm-radar-signal-info { flex: 1; min-width: 0; }
.wm-radar-signal-name { font-size: 12.5px; font-weight: 600; color: #e2e8f0; }
.wm-radar-signal-detail { font-size: 10.5px; color: #475569; margin-top: 2px; line-height: 1.5; }
.wm-radar-signal-value {
    font-size: 12px;
    font-weight: 700;
    color: #f1f5f9;
    font-family: var(--wm-font-mono);
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 4px; /* RTL */
}

/* تنويه إعلامي */
.wm-radar-disclaimer {
    font-size: 10.5px;
    color: #64748b;
    background: rgba(15,23,42,0.6);
    border: 1px solid #1e3a5a;
    border-radius: 8px;
    padding: 8px 12px;
    line-height: 1.6;
    text-align: right;
}

/* HUD — عداد اقتصادي */
.wm-threat.ecocount span { color: var(--wm-green); }
.wm-threat.ecocount:hover { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.4); }

/* ══════════════════════════════════════════════════
   🌬️ Windy Layer — v4.7.5
   ══════════════════════════════════════════════════ */

/* شريط التحكم العلوي */
.wm-windy-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: rgba(5,10,20,0.97);
    border-bottom: 1px solid #1e3a5a;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
    z-index: 10;
}
.wm-windy-bar-left  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wm-windy-bar-right { display: flex; align-items: center; gap: 8px; }

.wm-windy-logo {
    font-size: 14px;
    font-weight: 700;
    color: #38bdf8;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* أزرار اختيار الطبقة */
.wm-windy-layers { display: flex; gap: 4px; flex-wrap: wrap; }
.wm-wl-btn {
    background: rgba(15,23,42,0.8);
    border: 1px solid #1e3a5a;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    cursor: pointer;
    transition: all .15s;
    font-family: var(--wm-font-ar);
    white-space: nowrap;
}
.wm-wl-btn:hover  { color: #e2e8f0; border-color: #334155; background: rgba(30,58,90,0.5); }
.wm-wl-btn.active {
    color: #38bdf8;
    border-color: #38bdf8;
    background: rgba(56,189,248,0.12);
    font-weight: 600;
}

/* رابط فتح Windy */
.wm-windy-open {
    background: rgba(56,189,248,0.1);
    border: 1px solid rgba(56,189,248,0.3);
    color: #38bdf8;
    width: 26px; height: 26px;
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
}
.wm-windy-open:hover { background: #38bdf8; color: #fff; }

/* Spinner تحميل */
.wm-windy-spinner {
    width: 36px; height: 36px;
    border: 3px solid #1e3a5a;
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: wm-spin 0.8s linear infinite;
}
@keyframes wm-spin { to { transform: rotate(360deg); } }

/* زر Windy في الـ dock */
#wm-windy-toggle.active {
    color: #38bdf8;
    background: rgba(56,189,248,0.15);
    border-color: rgba(56,189,248,0.4);
}

