/* ══════════════════════════════════════════════════
   🛢️ طبقة تدفق النفط — v4.7.7
   ══════════════════════════════════════════════════ */

/* خطوط المسار */
.wm-oil-line {
    stroke-linecap: round;
    transition: opacity .3s;
}
.wm-oil-line:hover { opacity: 1 !important; }

/* جسيمات النفط المتحركة */
.wm-oil-particle {
    transition: none !important;
    pointer-events: none;
}

/* لافتة السعر على الخريطة */
.wm-oil-price-tag {
    background: rgba(5,10,20,0.92);
    border: 1px solid;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    font-family: var(--wm-font-ar);
    pointer-events: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* زر النفط في الـ dock */
#wm-oilflow-toggle.active {
    color: #f59e0b;
    background: rgba(245,158,11,0.15);
    border-color: rgba(245,158,11,0.4);
}

/* ══════════════════════════════════════════════════
   🎯 رادار الكوارث — v4.8.0
   ══════════════════════════════════════════════════ */

#wm-radar-overlay {
    position: absolute;
    inset: 0;
    z-index: 810;
    background: rgba(5,10,20,0.97);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px);
}

/* شريط الملخص */
.wm-radar-summary {
    display: flex;
    gap: 0;
    padding: 8px 12px;
    background: rgba(10,18,32,0.9);
    border-bottom: 1px solid #1e3a5a;
    flex-shrink: 0;
}
.wm-radar-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 0;
    border-left: 1px solid #1e3a5a;
}
.wm-radar-stat:last-child { border-left: none; }
.wm-radar-stat span { font-size: 20px; font-weight: 700; color: #e2e8f0; font-family: var(--wm-font-mono); }
.wm-radar-stat small { font-size: 10px; color: #475569; }

/* قائمة التنبيهات */
.wm-radar-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: #1e3a5a transparent;
}
.wm-radar-empty {
    text-align: center;
    color: var(--wm-green);
    padding: 40px 20px;
    font-size: 14px;
}

/* بطاقة تنبيه */
.wm-radar-card {
    background: rgba(15,23,42,0.8);
    border: 1px solid #1e3a5a;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative;
    overflow: hidden;
}
.wm-radar-card:hover { background: rgba(20,30,50,0.95); }
.wm-radar-sev-critical { border-color: #ef444440; }
.wm-radar-sev-critical::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--wm-red), transparent);
    animation: wm-radar-scanline 2s linear infinite;
}
@keyframes wm-radar-scanline {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%);  }
}
.wm-radar-sev-high     { border-color: #f9731640; }
.wm-radar-sev-med      { border-color: #eab30840; }

.wm-radar-card-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.wm-radar-card-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.wm-radar-card-main { flex: 1; min-width: 0; }
.wm-radar-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 3px;
}
.wm-radar-card-detail { font-size: 11px; color: #64748b; margin-bottom: 3px; }
.wm-radar-card-assets { font-size: 11px; color: #94a3b8; }

/* chips المنشآت في بطاقات الرادار */
.wm-radar-assets-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.wm-asset-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid;
    background: rgba(255,255,255,0.03);
    cursor: default;
    white-space: nowrap;
}
.wm-radar-card-time {
    font-size: 10px;
    color: #334155;
    text-align: left;
    margin-top: 4px;
}
.wm-radar-sev-badge {
    font-size: 16px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    font-family: var(--wm-font-mono);
    flex-shrink: 0;
}
.wm-radar-sev-badge small { font-size: 9px; }

/* تحليل AI */
.wm-radar-ai {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    padding: 7px 10px;
    background: rgba(99,102,241,0.08);
    border-right: 3px solid #6366f1;
    border-radius: 0 6px 6px 0;
    font-size: 11.5px;
    color: #cbd5e1;
    line-height: 1.5;
}
.wm-radar-ai > span { flex: 1; }

/* Toast التنبيه */
.wm-radar-toast {
    position: absolute;
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    background: rgba(5,10,20,0.97);
    border: 1px solid;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    cursor: pointer;
    animation: wm-toast-in 0.3s ease;
    direction: rtl;
}
@keyframes wm-toast-in {
    from { opacity:0; transform: translateX(-50%) translateY(20px); }
    to   { opacity:1; transform: translateX(-50%) translateY(0); }
}
.wm-radar-toast-icon { font-size: 28px; flex-shrink: 0; }
.wm-radar-toast-body { flex: 1; min-width: 0; }
.wm-radar-toast-title { font-size: 11px; font-weight: 700; margin-bottom: 3px; }
.wm-radar-toast-msg   { font-size: 12px; color: #e2e8f0; }

/* HUD — عداد الرادار ينبض عند وجود حرج */
.wm-threat.radarcount span { color: var(--wm-red); }
.wm-threat.radarcount.wm-hud-critical {
    animation: wm-hud-blink 1s ease-in-out infinite alternate;
}
@keyframes wm-hud-blink {
    from { background: rgba(239,68,68,0.05); }
    to   { background: rgba(239,68,68,0.2);  border-color: rgba(239,68,68,0.5); }
}

/* زر الرادار في الـ dock */
#wm-radar-toggle.active {
    color: var(--wm-red);
    background: rgba(239,68,68,0.15);
    border-color: rgba(239,68,68,0.4);
}

/* ══════════════════════════════════════════════════
   ⚛️ المنشآت الاستراتيجية — Strategic Assets
   ══════════════════════════════════════════════════ */

/* زر التفعيل */
#wm-assets-toggle-btn.active {
    color: #a855f7;
    background: rgba(168,85,247,0.15);
    border-color: rgba(168,85,247,0.4);
}

/* لوحة المنشآت الاستراتيجية — يمين مثل المؤشرات الاقتصادية */
#wm-assets-panel {
    position: absolute;
    top: 48px;
    right: 52px;
    bottom: 80px;
    z-index: 820;
    background: rgba(6, 11, 22, 0.97);
    border-left: 1px solid #1e3a5a;
    border-bottom: 1px solid #1e3a5a;
    width: 300px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: -6px 0 24px rgba(0,0,0,0.5);
    backdrop-filter: blur(14px);
    direction: rtl;
}
#wm-assets-panel.visible {
    display: flex;
    animation: wm-assets-slide-in 0.22s ease;
}
@keyframes wm-assets-slide-in {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.wm-ap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #1e3a5a;
    background: rgba(6,12,20,0.95);
    flex-shrink: 0;
}
.wm-ap-header-title {
    font-size: 14px;
    font-weight: 700;
    color: #a855f7;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.wm-ap-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.wm-ap-close-btn {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.4);
    color: var(--wm-red);
    width: 26px;
    height: 26px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background 0.15s;
}
.wm-ap-close-btn:hover { background: rgba(239,68,68,0.35); }
.wm-ap-stats-bar {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #1e3a5a;
    flex-shrink: 0;
    background: rgba(8,15,28,0.9);
}
.wm-ap-stat {
    flex: 1;
    padding: 7px 4px;
    text-align: center;
    border-left: 1px solid #1e3a5a;
    cursor: default;
}
.wm-ap-stat:last-child { border-left: none; }
.wm-ap-stat span {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.2;
}
.wm-ap-stat small {
    font-size: 9px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.wm-ap-filter-bar {
    display: flex;
    gap: 4px;
    padding: 7px 8px;
    border-bottom: 1px solid #1e3a5a;
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.wm-ap-filter-bar::-webkit-scrollbar { display: none; }
.wm-ap-filter {
    padding: 3px 9px;
    border-radius: 4px;
    border: 1px solid #1e3a5a;
    background: transparent;
    color: #64748b;
    font-size: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.wm-ap-filter:hover { color: #e2e8f0; border-color: #334155; }
.wm-ap-filter.active { background: rgba(168,85,247,0.15); color: #a855f7; border-color: rgba(168,85,247,0.4); }

.wm-ap-list {
    overflow-y: auto;
    flex: 1;
    padding: 6px;
}
.wm-ap-list::-webkit-scrollbar { width: 4px; }
.wm-ap-list::-webkit-scrollbar-thumb { background: #1e3a5a; border-radius: 2px; }

.wm-ap-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s;
    border: 1px solid transparent;
    margin-bottom: 3px;
}
.wm-ap-item:hover { background: rgba(30,58,90,0.5); }
.wm-ap-item.alert    { border-color: rgba(249,115,22,0.25); background: rgba(249,115,22,0.05); }
.wm-ap-item.critical { border-color: rgba(239,68,68,0.3);   background: rgba(239,68,68,0.07);  }

.wm-ap-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.wm-ap-name { font-size: 12px; color: #e2e8f0; font-weight: 600; line-height: 1.3; }
.wm-ap-sub  { font-size: 10px; color: #475569; margin-top: 1px; }

.wm-ap-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

/* أنيميشن نبض المنشآت المهددة */
@keyframes wm-asset-pulse {
    0%,100% { box-shadow: 0 0 0 2px currentColor, 0 0 8px currentColor; }
    50%      { box-shadow: 0 0 0 6px transparent, 0 0 20px currentColor; }
}
@keyframes wm-ring-expand {
    0%   { transform: scale(1);   opacity: 0.6; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* موبايل */
@media (max-width: 768px) {
    #wm-assets-panel {
        top: 44px;
        right: 0;
        left: 0;
        bottom: 60px;
        width: 100%;
        border-left: none;
        border-top: 1px solid #1e3a5a;
    }
}

/* ══════════════════════════════════════════════════
   🔍 بحث المدن — City Search
   ══════════════════════════════════════════════════ */

.wm-city-search {
    position: relative;
    display: flex;
    align-items: center;
}

/* مطويّ افتراضياً خلف زر 🔍 — يتمدّد فقط عند .wm-city-search-open (توضيح 2026-10-02:
   كان حقلاً ظاهراً دائماً بجانب حقل بحث الأخبار في اللوحة الجانبية فيبدو تكراراً بصرياً) */
#wm-city-input {
    background: rgba(15,23,42,0.9);
    border: 1px solid #1e3a5a;
    color: #e2e8f0;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    width: 0;
    opacity: 0;
    pointer-events: none;
    font-family: var(--wm-font-ar);
    direction: rtl;
    transition: border-color .2s, width .3s, opacity .2s, padding .3s;
    outline: none;
}
.wm-city-search-open #wm-city-input {
    width: 180px;
    opacity: 1;
    pointer-events: auto;
    margin-left: 6px; /* RTL: فاصل عن زر 🔍 */
}
#wm-city-input:focus {
    border-color: #38bdf8;
    width: 220px;
    background: rgba(10,18,32,0.98);
}
#wm-city-input::placeholder { color: #334155; }
#wm-city-search-btn.active,
.wm-city-search-open #wm-city-search-btn { color: var(--wm-accent); }

/* قائمة النتائج */
.wm-city-results {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 280px;
    background: rgba(8,14,26,0.98);
    border: 1px solid #1e3a5a;
    border-radius: 10px;
    overflow: hidden;
    z-index: 2000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    display: none;
    direction: rtl;
    backdrop-filter: blur(12px);
}

.wm-city-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px solid #0f1e30;
    transition: background .15s;
}
.wm-city-item:last-child { border-bottom: none; }
.wm-city-item:hover { background: rgba(56,189,248,0.08); }

.wm-city-icon { font-size: 16px; flex-shrink: 0; }
.wm-city-info { flex: 1; min-width: 0; }
.wm-city-name { font-size: 12px; font-weight: 600; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-city-type { font-size: 10px; color: #475569; margin-top: 1px; }
.wm-city-coords { font-size: 10px; color: #334155; font-family: var(--wm-font-mono); white-space: nowrap; flex-shrink: 0; }

.wm-city-empty { padding: 12px; text-align: center; color: #475569; font-size: 12px; }

/* Pin الموقع على الخريطة */
.wm-city-pin {
    position: relative;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════════════
   🟢 مؤشر الاتصال + ⏱️ منذ متى
   ══════════════════════════════════════════════════ */

.wm-conn-label {
    font-size: 10px;
    color: var(--wm-green);
    font-family: var(--wm-font-ar);
    transition: color .3s;
}

/* النقطة — حالات مختلفة */
.wm-live-dot.wm-conn-ok {
    background: var(--wm-green);
    box-shadow: 0 0 0 0 rgba(34,197,94,0.4);
    animation: wm-conn-pulse-ok 2s ease-in-out infinite;
}
.wm-live-dot.wm-conn-err {
    background: var(--wm-red);
    box-shadow: 0 0 6px var(--wm-red);
    animation: wm-conn-blink 0.8s steps(1) infinite;
}
@keyframes wm-conn-pulse-ok {
    0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}
@keyframes wm-conn-blink {
    0%,49% { opacity: 1; }
    50%,100%{ opacity: 0.3; }
}

/* وقت "منذ متى" في الـ Sidebar */
.wm-item-time {
    color: #475569;
    font-size: 11px;
    transition: color .3s;
}
.wm-item-time[data-timestamp] { cursor: default; }

/* ══════════════════════════════════════════════════
   👁️ Watchlist — قائمة الرصد
   ══════════════════════════════════════════════════ */

#wm-panel-watchlist {
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.wm-watch-header {
    padding: 10px 12px 6px;
    border-bottom: 1px solid #1e3a5a;
    flex-shrink: 0;
}
.wm-watch-title   { font-size: 13px; font-weight: 700; color: #e2e8f0; margin-bottom: 3px; }
.wm-watch-subtitle{ font-size: 11px; color: #475569; }

/* حقل الإضافة */
.wm-watch-add {
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid #0f1e30;
    flex-shrink: 0;
}
.wm-watch-add input {
    flex: 1;
    background: rgba(15,23,42,0.9);
    border: 1px solid #1e3a5a;
    color: #e2e8f0;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 12px;
    font-family: var(--wm-font-ar);
    direction: rtl;
    outline: none;
    transition: border-color .2s;
}
.wm-watch-add input:focus { border-color: #f59e0b; }
.wm-watch-add-btn {
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.4);
    color: #f59e0b;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 12px;
    cursor: pointer;
    font-family: var(--wm-font-ar);
    transition: all .2s;
    white-space: nowrap;
}
.wm-watch-add-btn:hover { background: #f59e0b; color: #0f172a; }

/* الكلمات المرصودة */
.wm-watch-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid #0f1e30;
    flex-shrink: 0;
    min-height: 42px;
}
.wm-watch-empty {
    font-size: 11px;
    color: #334155;
    padding: 6px 0;
    width: 100%;
    text-align: center;
}
.wm-watch-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 20px;
    padding: 3px 8px 3px 6px;
    font-size: 11.5px;
    color: #fbbf24;
    transition: all .2s;
}
.wm-watch-tag:hover { background: rgba(245,158,11,0.2); }
.wm-watch-term { font-weight: 600; }
.wm-watch-tag-count {
    background: #f59e0b;
    color: #0f172a;
    border-radius: 10px;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: 700;
}
.wm-watch-remove {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 11px;
    padding: 0 2px;
    line-height: 1;
    transition: color .15s;
}
.wm-watch-remove:hover { color: var(--wm-red); }

/* رأس نتائج الرصد */
.wm-watch-results-header {
    padding: 6px 12px;
    font-size: 11px;
    color: #64748b;
    border-bottom: 1px solid #0f1e30;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
}
.wm-watch-hits-badge {
    background: #f59e0b;
    color: #0f172a;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
}

/* قائمة النتائج */
.wm-watch-results {
    flex: 1;
    overflow-y: auto;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: thin;
    scrollbar-color: #1e3a5a transparent;
}
.wm-watch-no-hits {
    text-align: center;
    color: #475569;
    font-size: 12px;
    padding: 20px;
}

/* بطاقة خبر مرصود */
.wm-watch-hit {
    background: rgba(15,23,42,0.8);
    border: 1px solid #1e3a5a;
    border-right: 3px solid #f59e0b;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background .15s;
}
.wm-watch-hit:hover { background: rgba(245,158,11,0.05); }
.wm-watch-hit-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}
.wm-watch-hit-terms { display: flex; flex-wrap: wrap; gap: 4px; }
.wm-watch-hit-tag {
    font-size: 10px;
    background: rgba(245,158,11,0.1);
    color: #fbbf24;
    border-radius: 4px;
    padding: 1px 5px;
}
.wm-watch-hit-score {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
    flex-shrink: 0;
}
.wm-watch-hit-title {
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.4;
    margin-bottom: 4px;
}
.wm-watch-hit-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #475569;
}
.wm-watch-hit-loc { font-size: 10px; color: #334155; margin-top: 3px; }

/* إبراز الكلمة المطابقة */
mark.wm-watch-highlight {
    background: rgba(245,158,11,0.25);
    color: #fbbf24;
    border-radius: 3px;
    padding: 0 2px;
}

/* إبراز الخبر في الـ Sidebar الرئيسي */
.wm-news-item.wm-watch-match {
    border-right: 3px solid #f59e0b !important;
    background: rgba(245,158,11,0.04) !important;
}
.wm-news-item.wm-watch-match::after {
    content: '👁️';
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: 10px;
    opacity: 0.7;
}

/* ══ بث الأحداث بجانب التوترات ══ */
#wm-block-live {
  transition: opacity .3s;
}
/* ارتفاع متساوٍ مع التوترات */
#wm-block-tensions,
#wm-block-live {
  min-height: 200px;
}
/* المحتوى الداخلي للبث يملأ المساحة */
#wm-live-block-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* على الشاشات الصغيرة يعودان لعرض كامل */
@media (max-width: 1100px) {
  .wm-block-live,
  #wm-block-tensions { grid-column: span 2; }
}
@media (max-width: 600px) {
  .wm-block-live,
  #wm-block-tensions { grid-column: 1; }
}

/* ══════════════════════════════════════════════════════════
   Brief Panel — التقرير الاستخباراتي (panel عائم)
══════════════════════════════════════════════════════════ */
#wm-brief-panel {
  position: absolute;
  bottom: 177px; /* + 32px فوق breaking bar */
  right: 510px;   /* يسار wm-live-stream (260px + 240px + 10px gap) */
  width: 240px;
  max-height: 280px;
  background: rgba(6,12,20,0.95);
  border: 1px solid rgba(99,102,241,0.4);
  border-radius: 10px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(99,102,241,0.1);
  animation: wm-slide-up 0.25s ease;
}

.wm-bp-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(99,102,241,0.2);
  flex-shrink: 0;
}
.wm-bp-icon { font-size: 13px; }
.wm-bp-title {
  font-size: 11px;
  font-weight: 700;
  color: #a5b4fc;
  flex: 1;
}
.wm-bp-date {
  font-size: 10px;
  color: #475569;
  direction: ltr;
}
.wm-bp-close {
  background: none;
  border: none;
  color: #475569;
  cursor: pointer;
  font-size: 13px;
  padding: 0 2px;
  line-height: 1;
  transition: color .2s;
}
.wm-bp-close:hover { color: #fff; }

.wm-bp-preview {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}
.wm-bp-preview::-webkit-scrollbar { width: 3px; }
.wm-bp-preview::-webkit-scrollbar-thumb { background: #334155; }

.wm-bp-loading, .wm-bp-empty {
  font-size: 11px;
  color: #475569;
  text-align: center;
  padding: 12px 0;
}

.wm-bp-summary {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 8px;
}

.wm-bp-events { display: flex; flex-direction: column; gap: 5px; }
.wm-bp-event {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 10px;
  color: #94a3b8;
}
.wm-bp-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}
.wm-bp-ev-text { line-height: 1.4; }

.wm-bp-coverage {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 9.5px;
  color: #64748b;
  border-top: 1px solid rgba(99,102,241,0.1);
  flex-shrink: 0;
  white-space: nowrap;
  overflow-x: auto;
}
.wm-bp-cov-sep { opacity: 0.5; }

.wm-bp-footer {
  padding: 7px 10px;
  border-top: 1px solid rgba(99,102,241,0.15);
  flex-shrink: 0;
  display: flex;
  gap: 6px;
}
a.wm-bp-read-btn { display: block; box-sizing: border-box; }
.wm-bp-read-btn {
  width: 100%;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  color: #a5b4fc;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  font-family: inherit;
}
.wm-bp-read-btn:hover {
  background: rgba(99,102,241,0.3);
  border-color: rgba(99,102,241,0.6);
}

/* ══════════════════════════════════════════════════════════
   Brief Modal — التقرير كاملاً
══════════════════════════════════════════════════════════ */
#wm-brief-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wm-bm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}

.wm-bm-container {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  background: rgba(6,12,24,0.98);
  border: 1px solid rgba(99,102,241,0.4);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(99,102,241,0.15);
  animation: wm-slide-up .3s ease;
}

.wm-bm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(99,102,241,0.2);
  flex-shrink: 0;
  background: rgba(99,102,241,0.06);
}
.wm-bm-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wm-bm-icon { font-size: 22px; }
.wm-bm-title {
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
}
.wm-bm-subtitle {
  font-size: 11px;
  color: #6366f1;
  margin-top: 2px;
  direction: ltr;
}
.wm-bm-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.wm-bm-close:hover { background: rgba(239,68,68,0.2); color: #fff; }

.wm-bm-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}
.wm-bm-body::-webkit-scrollbar { width: 5px; }
.wm-bm-body::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

.wm-bm-section {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.wm-bm-section:last-child { border-bottom: none; margin-bottom: 0; }

.wm-bm-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 10px;
}
.wm-bm-section-text {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.8;
}

.wm-bm-event {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.wm-bm-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 8px currentColor;
}
.wm-bm-ev-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 4px;
}
.wm-bm-ev-analysis {
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}
.wm-bm-ev-why {
  margin-top: 5px; font-size: 11px; color: #94a3b8;
  padding: 4px 8px; border-radius: 4px;
  background: rgba(59,130,246,0.07); border-right: 2px solid #3b82f6;
}
.wm-bm-ev-why-lbl { color: #60a5fa; font-weight: 700; }

/* Responsive */
/* ══════════════════════════════════════════════════════════
   AIS Layer — الملاحة البحرية
══════════════════════════════════════════════════════════ */
#wm-ais-legend {
  position: absolute;
  bottom: 177px; /* + 32px فوق breaking bar */
  left: 62px;
  background: rgba(6,12,24,0.95);
  border: 1px solid rgba(56,189,248,0.35);
  border-radius: 10px;
  padding: 10px 13px 10px;
  z-index: 999;
  min-width: 175px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  animation: wm-slide-up 0.25s ease;
}

.wm-ais-leg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.wm-ais-leg-close {
  cursor: pointer;
  color: #475569;
  font-size: 12px;
  background: none;
  border: none;
  padding: 0;
  transition: color .2s;
}
.wm-ais-leg-close:hover { color: #fff; }

.wm-ais-leg-total {
  font-size: 12px;
  color: #e2e8f0;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wm-ais-leg-zones { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.wm-ais-leg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.wm-ais-leg-zone { color: #94a3b8; }
.wm-ais-leg-count {
  color: #38bdf8;
  font-weight: 700;
  background: rgba(56,189,248,0.1);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
}

.wm-ais-leg-updated {
  font-size: 9px;
  color: #334155;
  direction: ltr;
  text-align: center;
  margin-top: 4px;
}

/* Popup السفينة */
.wm-ais-popup {
  direction: rtl;
  min-width: 180px;
}
.wm-ais-popup-name {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  direction: ltr;
  text-align: center;
}
.wm-ais-popup-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 4px;
  color: #94a3b8;
}
.wm-ais-popup-row span:last-child { color: #e2e8f0; font-weight: 500; }
.wm-ais-popup-time {
  font-size: 10px;
  color: #475569;
  text-align: center;
  margin-top: 7px;
  padding-top: 5px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive */
/* ══ AIS Legend — فلتر المضايق + أنواع ══ */
.wm-ais-leg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wm-ais-leg-filter {
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.2);
  color: #64748b;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  white-space: nowrap;
}
.wm-ais-leg-filter:hover { background: rgba(56,189,248,0.15); color: #94a3b8; }
.wm-ais-leg-filter.active {
  background: rgba(56,189,248,0.25);
  border-color: rgba(56,189,248,0.6);
  color: #38bdf8;
  font-weight: 700;
}
.wm-ais-flt-cnt {
  background: rgba(56,189,248,0.2);
  padding: 0 4px;
  border-radius: 6px;
  font-size: 8px;
}

.wm-ais-leg-types {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.wm-ais-leg-type-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}
.wm-ais-type-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 4px currentColor;
}
.wm-ais-type-name { color: #94a3b8; flex: 1; }
.wm-ais-type-cnt  { color: #cbd5e1; font-weight: 600; font-size: 10px; }

/* ══ TradingView Widgets ══════════════════════════════════════════ */
#wm-ticker-tape {
    width: 100%;
    height: 46px;
    overflow: hidden;
    flex-shrink: 0;
}

.wm-tv-panel {
    width: 100%;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}
.wm-tv-panel[style*="display: none"],
.wm-tv-panel[style*="display:none"] {
    flex: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}
.wm-tv-panel iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block;
}
.wm-tv-panel .tradingview-widget-container,
.wm-tv-panel .tradingview-widget-container__widget {
    width: 100% !important;
    height: 100% !important;
}

#wm-economy-overlay .wm-eco-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
#wm-economy-overlay .wm-eco-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
    padding: 0 8px !important;
}
#wm-economy-overlay .wm-eco-tabs::-webkit-scrollbar { display: none; }
#wm-economy-overlay .wm-etab {
    padding: 8px 12px;
    font-size: 12px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-family: inherit;
    transition: all .15s;
}
#wm-economy-overlay .wm-etab:hover  { color: #e2e8f0; }
#wm-economy-overlay .wm-etab.active { color: #38bdf8; border-bottom-color: #38bdf8; background: rgba(56,189,248,.06); }

/* Economy overlay sizing */
#wm-economy-overlay {
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 520px;
    z-index: 1100;
    background: #0f172a;
    border-top: 1px solid #1e293b;
}
@media (min-width: 768px) {
    #wm-economy-overlay {
        left: auto;
        width: 680px;
        height: 540px;
        border-radius: 8px 8px 0 0;
        border: 1px solid #1e293b;
        border-bottom: none;
    }
}

/* =============================================
   Location Intelligence Popup
   ============================================= */

/* السايد بانل الاستخباراتي — يمين كامل الارتفاع */
#wm-loc-popup {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    right: 0;
    width: 370px;
    height: 100vh;
    background: #060c16;
    border-left: 2px solid #1e3a5a;
    border-radius: 0;
    box-shadow: -6px 0 30px rgba(0,0,0,0.7);
    overflow: hidden;
    font-family: var(--wm-font-ar);
    direction: rtl;
    pointer-events: all;
    animation: wm-panel-in 0.3s ease;
}
#wm-loc-popup.active {
    display: flex;
    flex-direction: column;
}
@keyframes wm-panel-in {
    from { opacity: 0; transform: translateX(100%); }
    to   { opacity: 1; transform: translateX(0); }
}

#wm-loc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0,0,0,0.35);
    pointer-events: all;
}
#wm-loc-overlay.active {
    display: block;
}

/* رأس السايد بانل */
#wm-loc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    background: linear-gradient(135deg,#0c1a2e,#060c16);
    border-bottom: 2px solid #1e3a5a;
    flex-shrink: 0;
    direction: rtl;
    position: relative;
}
#wm-loc-title {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
#wm-loc-title::before {
    content: none;
}
/* علم وأيقونة الدولة */
.wm-loc-flag {
    font-size: 22px;
    flex-shrink: 0;
}
.wm-loc-country-label {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.wm-loc-country-name {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wm-loc-country-sub {
    font-size: 10px;
    color: #5a7a96;
    font-weight: 400;
}
#wm-loc-close {
    background: transparent;
    border: none;
    color: #5a7a96;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 2px;
    transition: color 0.15s;
    flex-shrink: 0;
}
#wm-loc-close:hover { color: #c8dff0; }

/* جسم الـ Popup — قابل للتمرير */
#wm-loc-body {
    overflow-y: auto;
    flex: 1;
    padding: 0;
    direction: rtl;
    scrollbar-width: thin;
    scrollbar-color: #1e3a5a transparent;
}
#wm-loc-body::-webkit-scrollbar { width: 4px; }
#wm-loc-body::-webkit-scrollbar-track { background: transparent; }
#wm-loc-body::-webkit-scrollbar-thumb { background: #1e3a5a; border-radius: 2px; }

/* حالة التحميل */
#wm-loc-loading {
    padding: 24px;
    text-align: center;
    color: #5a7a96;
    font-size: 12px;
}
.wm-loc-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid #1e3a5a;
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: wm-spin 0.7s linear infinite;
    margin: 0 auto 8px;
}
@keyframes wm-spin { to { transform: rotate(360deg); } }

/* رسالة "لا توجد معلومات" */
#wm-loc-empty {
    padding: 20px;
    text-align: center;
    color: #5a7a96;
    font-size: 12px;
}
#wm-loc-empty .wm-loc-empty-icon {
    font-size: 24px;
    margin-bottom: 6px;
    opacity: 0.5;
}

/* معرض الصور */
#wm-loc-gallery {
    position: relative;
    background: #060c14;
    height: 140px;
    overflow: hidden;
    flex-shrink: 0;
}
#wm-loc-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s;
}
#wm-loc-gallery .wm-loc-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #1e3a5a;
    font-size: 36px;
}
/* أسهم التنقل في الصور */
.wm-loc-gal-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    border: none;
    color: #c8dff0;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    z-index: 2;
    border-radius: 3px;
    transition: background 0.15s;
    line-height: 1;
}
.wm-loc-gal-btn:hover { background: rgba(0,212,255,0.25); }
.wm-loc-gal-btn.prev { right: 6px; }
.wm-loc-gal-btn.next { left: 6px; }
.wm-loc-gal-counter {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: #c8dff0;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    pointer-events: none;
}

/* أقسام المحتوى */
.wm-loc-section {
    padding: 12px 16px;
    border-bottom: 1px solid #111e2e;
}
.wm-loc-section:last-child { border-bottom: none; }
.wm-loc-section-label {
    font-size: 10px;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    direction: rtl;
}

/* ─── مؤشر عدم الاستقرار الكبير ─── */
.wm-loc-instability {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(30,58,90,0.15), rgba(6,12,22,0.9));
    border-bottom: 1px solid #1e3a5a;
}
.wm-loc-instability-score {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    min-width: 70px;
    text-align: center;
}
.wm-loc-instability-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wm-loc-instability-label {
    font-size: 10px;
    color: #5a7a96;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.wm-loc-instability-trend {
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}
.wm-loc-instability-bar {
    height: 5px;
    background: rgba(30,58,90,0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 2px;
}
.wm-loc-instability-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ─── أقسام البيانات الفرعية ─── */
.wm-loc-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 6px;
}
.wm-loc-data-card {
    background: rgba(15,30,48,0.6);
    border: 1px solid rgba(30,58,90,0.3);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wm-loc-data-card-icon {
    font-size: 14px;
}
.wm-loc-data-card-label {
    font-size: 9px;
    color: #5a7a96;
}
.wm-loc-data-card-val {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
}

/* ── مؤشر التوتر الحي — بطاقة موسّعة ── */
.wm-tension-card-wide {
    grid-column: span 2;
}
.wm-tension-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}
.wm-loc-tension-track {
    background: rgba(15,23,36,0.8);
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 5px;
    border: 1px solid rgba(30,58,90,0.4);
}
.wm-loc-tension-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 0 6px currentColor;
}
.wm-tension-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wm-tension-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-left: 7px;
    flex-shrink: 0;
    animation: wm-pulse 1.5s ease infinite;
}

/* ─── الجدول الزمني ─── */
.wm-loc-timeline {
    padding: 0;
}
.wm-loc-timeline-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(30,58,90,0.15);
    direction: rtl;
}
.wm-loc-timeline-row:last-child { border-bottom: none; }
.wm-loc-timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
}
.wm-loc-timeline-content {
    flex: 1;
    min-width: 0;
}
.wm-loc-timeline-title {
    font-size: 11px;
    color: #c8dff0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wm-loc-timeline-time {
    font-size: 9px;
    color: #475569;
    margin-top: 2px;
}

/* ─── قسم الإشارات النشطة ─── */
.wm-loc-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.wm-loc-signal-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid;
}
.wm-loc-signal-badge.green  { color: var(--wm-green); border-color: #166534; background: rgba(34,197,94,0.08); }
.wm-loc-signal-badge.yellow { color: var(--wm-yellow); border-color: #854d0e; background: rgba(234,179,8,0.08); }
.wm-loc-signal-badge.red    { color: var(--wm-red); border-color: #991b1b; background: rgba(239,68,68,0.08); }
.wm-loc-signal-badge.blue   { color: #3b82f6; border-color: #1e40af; background: rgba(59,130,246,0.08); }

/* ─── ملخص AI النصي ─── */
.wm-loc-ai-brief {
    background: rgba(15,30,48,0.5);
    border: 1px solid rgba(30,58,90,0.3);
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 6px;
}
.wm-loc-summary-text {
    font-size: 11.5px;
    line-height: 1.6;
    color: #a0b8cc;
}

/* أخبار مرتبطة */
.wm-loc-news-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 5px 0;
    border-bottom: 1px solid #0d1a2a;
    cursor: pointer;
    transition: background 0.12s;
    border-radius: 3px;
}
.wm-loc-news-item:last-child { border-bottom: none; }
.wm-loc-news-item:hover { background: rgba(0,212,255,0.04); }
.wm-loc-news-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}
.wm-loc-news-info { flex: 1; min-width: 0; }
.wm-loc-news-title {
    font-size: 11px;
    color: #c8dff0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wm-loc-news-meta {
    font-size: 10px;
    color: #5a7a96;
    margin-top: 2px;
}

/* رابط Wikipedia */
.wm-loc-wiki-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #5a7a96;
    text-decoration: none;
    padding: 8px 12px;
    border-top: 1px solid #111e2e;
    transition: color 0.15s;
    flex-shrink: 0;
}
.wm-loc-wiki-link:hover { color: #00d4ff; }
.wm-loc-wiki-link svg { opacity: 0.5; flex-shrink: 0; }

/* مؤشر الكاش */
.wm-loc-cache-badge {
    font-size: 9px;
    color: #2a5a3a;
    background: #0a1f14;
    border: 1px solid #1a4a2a;
    border-radius: 3px;
    padding: 1px 4px;
    margin-right: auto;
}

/* ── Power Profile Donut Chart ────────────────────────── */
.wm-loc-power-profile {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 4px 0 6px;
}
.wm-loc-donut-wrap {
    width: 82px;
    height: 82px;
    flex-shrink: 0;
}
.wm-loc-donut {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.wm-loc-power-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wm-loc-power-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
}
.wm-loc-power-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.wm-loc-power-name {
    width: 46px;
    color: #8faabb;
    font-size: 10px;
    flex-shrink: 0;
}
.wm-loc-power-bar-wrap {
    flex: 1;
    height: 4px;
    background: #1e3a5a;
    border-radius: 2px;
    overflow: hidden;
}
.wm-loc-power-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}
.wm-loc-power-pct {
    font-size: 10px;
    font-weight: 700;
    width: 30px;
    text-align: left;
    flex-shrink: 0;
}

/* ── Strategic Assets ─────────────────────────────────── */
.wm-loc-assets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 2px 0;
}
.wm-loc-asset-card {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #0a1827;
    border: 1px solid #1e3a5a;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: default;
    transition: border-color 0.15s;
}
.wm-loc-asset-card:hover { border-color: #2a5a7a; }
.wm-loc-asset-icon { font-size: 11px; }
.wm-loc-asset-label {
    font-size: 10px;
    color: #c8dff0;
    line-height: 1.2;
}
.wm-loc-asset-count {
    background: #1e3a5a;
    color: #00d4ff;
    border-radius: 8px;
    padding: 0 5px;
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Weekly Movement ──────────────────────────────────── */
.wm-loc-weekly {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.wm-loc-weekly-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    padding: 6px 0;
    border-bottom: 1px solid #0d1f33;
}
.wm-loc-weekly-row:last-child { border-bottom: none; }
.wm-loc-weekly-label {
    flex: 1;
    color: #8faabb;
}
.wm-loc-weekly-val {
    font-weight: 700;
    color: #e2e8f0;
    min-width: 22px;
    text-align: center;
    font-size: 12px;
}
.wm-loc-weekly-change {
    font-size: 11px;
    font-weight: 700;
    min-width: 48px;
    text-align: left;
}
.wm-loc-weekly-change .up   { color: var(--wm-red); }
.wm-loc-weekly-change .down { color: var(--wm-green); }
.wm-loc-weekly-change .flat { color: var(--wm-yellow); }

/* تكيف للشاشات الصغيرة */
@media (max-width: 600px) {
    #wm-loc-popup {
        width: 100%;
        max-width: 100%;
    }
}
@media (min-width: 601px) and (max-width: 900px) {
    #wm-loc-popup {
        width: 320px;
    }
}

