/* ═══════════════════════════════════════════════════════════
   اقتصاد العراق — نظام التصميم
   الألوان: كحلي المنظمة #13213F · ذهبي #D99A2B
   --brand = لون الخلفيات (الهيدر، الأزرار) · --green = لون النصوص والروابط (يفتح بالوضع الليلي)
   الخطوط: IBM Plex Sans Arabic (النص) · Readex Pro (العناوين)
   ═══════════════════════════════════════════════════════════ */

:root {
  --brand: #13213F;
  --brand-700: #0b1428;
  --brand-500: #2a4170;
  --green: #13213F;
  --green-700: #0b1428;
  --green-600: #1a2c52;
  --green-100: #dbe2ef;
  --green-50: #eef2f8;
  --gold: #D99A2B;
  --gold-700: #a8741a;
  --gold-50: #fbf3e3;
  --red: #b42318;
  --red-50: #fdecea;
  --ink: #121a2b;
  --ink-2: #333d52;
  --muted: #646d80;
  --line: #e1e5ee;
  --bg: #f4f6fa;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(19, 33, 63, .06), 0 4px 16px rgba(19, 33, 63, .05);
  --radius: 14px;
  --radius-sm: 9px;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-head: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --header-h: 60px;
  --tabbar-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #1d2f58; --brand-700: #13213F; --brand-500: #2f4a80;
    --green: #a9bde6; --green-50: #16213a; --green-100: #22314f; --gold-50: #2a2112; --red-50: #2c1513;
    --ink: #e8ecf4; --ink-2: #c3cad8; --muted: #8e98ad; --line: #243049;
    --bg: #0a0f1c; --card: #111a2c; --shadow: 0 1px 2px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #1d2f58; --brand-700: #13213F; --brand-500: #2f4a80;
  --green: #a9bde6; --green-50: #16213a; --green-100: #22314f; --gold-50: #2a2112; --red-50: #2c1513;
  --ink: #e8ecf4; --ink-2: #c3cad8; --muted: #8e98ad; --line: #243049;
  --bg: #0a0f1c; --card: #111a2c; --shadow: 0 1px 2px rgba(0,0,0,.3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--ink);
  background: var(--bg); padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.35; margin: 0 0 .5em; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
[dir="ltr"], .ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
main.container { padding-block: 20px 32px; }

/* ── الترويسة ── */
.site-header {
  position: sticky; top: 0; z-index: 40; background: var(--brand); color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.site-header .container { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: 0 0 34px; }
.brand-logo { width: 42px; height: 42px; flex: 0 0 42px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text small { font-family: var(--font-body); font-weight: 400; font-size: .62rem; opacity: .8; display: none; }
@media (min-width: 1100px) { .brand-text small { display: block; } }
.main-nav { display: none; gap: 4px; margin-inline-start: 12px; }
.main-nav a { color: rgba(255,255,255,.85); padding: 6px 12px; border-radius: 8px; font-size: .95rem; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0;
  background: rgba(255,255,255,.1); color: #fff; cursor: pointer; position: relative;
}
.icon-btn:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.icon-btn svg { width: 20px; height: 20px; }
.dot { position: absolute; top: 6px; inset-inline-end: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--gold); color: #1d1405; font-size: .65rem; font-weight: 700; display: grid; place-items: center; }
.header-search { display: none; flex: 1; max-width: 360px; }
.site-header .header-search input { width: 100%; border: 0; border-radius: 10px; padding: 9px 14px; background: rgba(255,255,255,.14); color: #fff; font: inherit; }
.site-header .header-search input::placeholder { color: rgba(255,255,255,.7); }
.site-header .header-search input:focus { outline: 2px solid var(--gold); background: rgba(255,255,255,.2); }
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-search { display: block; }
  .mobile-only { display: none !important; }
}

/* ── شريط التبويب السفلي (موبايل) ── */
.tabbar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 40; background: var(--card); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a, .tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit;
  font-size: .72rem; color: var(--muted); background: none; border: 0; cursor: pointer;
}
.tabbar a.active { color: var(--green); font-weight: 600; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar a:hover { text-decoration: none; }
@media (min-width: 900px) { .tabbar { display: none; } }

.sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.sheet.open { display: block; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.sheet-panel {
  position: absolute; bottom: 0; inset-inline: 0; background: var(--card); border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.sheet-panel a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 12px; background: var(--green-50); color: var(--ink); font-size: .85rem; text-align: center; }
.sheet-panel a svg { width: 24px; height: 24px; color: var(--green); }

/* ── شريط الأسعار ── */
.ticker { background: var(--brand-700); color: #fff; font-size: .85rem; overflow: hidden; }
.ticker .track { display: flex; gap: 28px; padding: 7px 16px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.ticker .track::-webkit-scrollbar { display: none; }
.ticker .item a { color: #fff; }
.ticker .item b { font-weight: 600; margin-inline: 6px; }
.up { color: #2f9e6e; } .down { color: #e5534b; }
.ticker .up { color: #7ee2b3; } .ticker .down { color: #ffb3ad; }

/* ── البطاقات والشبكات ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 12px; }
.card-link { display: block; color: inherit; transition: transform .12s ease, box-shadow .12s ease; }
.card-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(10,40,32,.1); }
.grid { display: grid; gap: 14px; }
.grid > .card + .card { margin-top: 0; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.layout { display: grid; gap: 20px; }
@media (min-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .layout aside { position: sticky; top: calc(var(--header-h) + 16px); } }

.section { margin-block: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.section-head h2::before { content: ""; width: 4px; height: 1.1em; border-radius: 4px; background: var(--gold); }

/* ── الأخبار ── */
.news-item { display: flex; gap: 14px; }
.news-item .thumb { flex: 0 0 96px; height: 76px; border-radius: 10px; background: var(--green-50) center/cover; }
.news-item h3 { font-size: 1rem; margin-bottom: 4px; }
.news-item p { color: var(--ink-2); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--muted); font-size: .8rem; margin-top: 6px; }
.importance { display: inline-flex; gap: 2px; }
.importance i { width: 6px; height: 6px; border-radius: 2px; background: var(--line); }
.importance i.on { background: var(--gold); }
.article-body { font-size: 1.05rem; }
.article-body .lead { font-weight: 600; }
.article-body .body-title { font-size: 1.15rem; margin-top: 18px; }
.article-body p { line-height: 1.9; }
.key-points { list-style: none; padding: 0; margin: 0 0 1em; }
.key-points li { position: relative; padding-inline-start: 22px; margin-bottom: 8px; }
.key-points li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.idea { border-inline-start: 4px solid var(--gold); }
.idea h3 { margin-bottom: 6px; }
.idea p { color: var(--ink-2); font-size: .93rem; }
.analysis { margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.analysis h2 { font-size: 1.15rem; }
.analysis-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .analysis-grid { grid-template-columns: 1fr 1fr; } }
.analysis-col { border-radius: 12px; padding: 14px; border: 1px solid var(--line); }
.analysis-col h3 { display: flex; align-items: center; gap: 6px; font-size: 1rem; margin-bottom: 10px; }
.analysis-opps { background: var(--green-50); border-color: var(--green-100); }
.analysis-opps h3 { color: var(--green); }
.analysis-risks { background: var(--red-50); border-color: transparent; }
.analysis-risks h3 { color: var(--red); }
.analysis-item + .analysis-item { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.analysis-item b { display: block; font-size: .95rem; }
.analysis-item p { margin: 2px 0 6px; font-size: .9rem; color: var(--ink-2); }
.ai-note { display: flex; gap: 8px; align-items: center; background: var(--green-50); color: var(--green); border-radius: 10px; padding: 8px 12px; font-size: .85rem; }

/* ── الشارات والرقائق ── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: var(--green-50); color: var(--green); font-size: .8rem; border: 1px solid transparent; white-space: nowrap; }
a.chip:hover { border-color: var(--green-100); text-decoration: none; }
.chip.gold { background: var(--gold-50); color: var(--gold-700); }
.chip.red { background: var(--red-50); color: var(--red); }
.chip.outline { background: transparent; border-color: var(--line); color: var(--ink-2); }
.chip.active { background: var(--brand); color: #fff; }
.badge-verified { display: inline-flex; align-items: center; gap: 3px; color: var(--gold-700); font-size: .8rem; font-weight: 600; }
.badge-verified svg { width: 16px; height: 16px; color: var(--gold); }

/* ── الإنجاز ── */
.progress { height: 8px; border-radius: 99px; background: var(--green-50); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-500), var(--gold)); }
.progress.lg { height: 14px; }
.progress-row { display: flex; align-items: center; gap: 10px; }
.progress-row .progress { flex: 1; }
.progress-row .num { font-weight: 600; color: var(--green); min-width: 42px; text-align: end; }
.status { font-size: .78rem; padding: 2px 9px; border-radius: 6px; background: var(--green-50); color: var(--green); }
.status-stalled, .status-cancelled { background: var(--red-50); color: var(--red); }
.status-completed { background: var(--gold-50); color: var(--gold-700); }
.status-planned, .status-tendering { background: var(--bg); color: var(--ink-2); }

/* ── التطابق ── */
.score { --p: 0; width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--green-50) 0); position: relative; }
.score::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--card); }
.score b { position: relative; font-family: var(--font-head); font-size: .95rem; color: var(--green); }
.reasons { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.reasons li { display: flex; gap: 6px; font-size: .88rem; color: var(--ink-2); }
.reasons li::before { content: "✓"; color: var(--green); font-weight: 700; }
.reasons.gaps li::before { content: "!"; color: var(--gold-700); }
.opp-head { display: flex; gap: 14px; align-items: flex-start; }
.opp-kind { font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.kind-investment { color: var(--green); } .kind-partnership { color: #2563a8; } .kind-supply { color: #7a4fb5; }
.kind-tender { color: var(--gold-700); } .kind-job { color: #0e7490; }

/* ── الخط الزمني ── */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-inline-start: 28px; padding-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 1px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3px solid var(--green); }
.timeline li.k-progress::before { border-color: var(--gold); }
.timeline li.k-contract::before { background: var(--brand); }
.timeline time { font-size: .78rem; color: var(--muted); }
.timeline h4 { font-size: .95rem; margin: 2px 0; font-family: var(--font-body); font-weight: 600; }

/* ── الأزرار والنماذج ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; background: var(--brand); color: #fff; line-height: 1.3; }
.btn:hover { background: var(--brand-700); text-decoration: none; }
.btn-gold { background: var(--gold); color: #1d1405; } .btn-gold:hover { background: var(--gold-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green-100); } .btn-ghost:hover { background: var(--green-50); }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red-50); } .btn-danger:hover { background: var(--red-50); }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

.form { display: grid; gap: 16px; }
.field label, .field > legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field .help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.field .errorlist { list-style: none; padding: 0; margin: 4px 0 0; color: var(--red); font-size: .85rem; }
fieldset.field { border: 0; padding: 0; margin: 0; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-100); }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-grid > div { display: contents; }
.choice-grid label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; font-weight: 400; font-size: .9rem; cursor: pointer; margin: 0; background: var(--card); }
.choice-grid input { accent-color: var(--green); margin: 0; }
.choice-grid.stacked { flex-direction: column; align-items: stretch; }
.choice-grid.stacked label { border-radius: 12px; padding: 10px 14px; }
.choice-grid label:has(input:checked) { border-color: var(--green); background: var(--green-50); color: var(--green); }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #1d1405; font-size: .9rem; margin-inline-end: 6px; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; line-height: 1.6; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green); flex: 0 0 20px; }
.has-error input, .has-error select { border-color: var(--red); }
.otp-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }

.filter-toggle { margin-bottom: 14px; }
.filter-toggle > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; position: relative; }
.filter-toggle > summary::-webkit-details-marker { display: none; }
.filter-toggle > summary svg { width: 18px; height: 18px; }
.filter-toggle[open] > summary { background: var(--green-50); color: var(--green); border-color: var(--green-100); }
.filter-toggle .dot-active { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; }
.filter-panel { display: grid; gap: 10px; margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
@media (min-width: 640px) { .filter-panel { grid-template-columns: repeat(2, 1fr); } .filter-panel input[type=search], .filter-actions { grid-column: 1 / -1; } }
.filter-panel .check-inline { display: flex; align-items: center; gap: 8px; }
.filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--green); border-color: var(--gold); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--green); }

.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; background: var(--green-50); color: var(--green); border: 1px solid var(--green-100); }
.alert-warning { background: var(--gold-50); color: var(--gold-700); border-color: transparent; }
.alert-error { background: var(--red-50); color: var(--red); border-color: transparent; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty svg { width: 48px; height: 48px; color: var(--green-100); margin: 0 auto 10px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 20px; align-items: center; }

.hero { background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand) 55%, var(--brand-700) 100%); color: #fff; border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(217,154,43,.18); }
.hero h1, .hero h2 { color: #fff; }
.hero p { color: rgba(255,255,255,.88); }
.hero .btn-gold { position: relative; z-index: 1; }
.hero > * { position: relative; z-index: 1; }
.hero svg, .ai-note svg, .row > svg { width: 18px; height: 18px; flex: 0 0 18px; }
.card-link.row > svg { width: 28px; height: 28px; flex-basis: 28px; color: var(--green); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--green); }
.stat span { font-size: .8rem; color: var(--muted); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; }

table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: start; }
.table th { color: var(--muted); font-weight: 500; font-size: .8rem; }
.table-wrap { overflow-x: auto; }

.spark { width: 100%; height: 60px; color: var(--green); }
.chart-lg { width: 100%; height: 180px; color: var(--green); }

.company-logo { width: 56px; height: 56px; border-radius: 12px; background: var(--green-50); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: var(--green); font-size: 1.3rem; flex: 0 0 56px; overflow: hidden; }
.company-logo img { width: 100%; height: 100%; object-fit: cover; }
.row { display: flex; gap: 12px; align-items: center; }
.row.top { align-items: flex-start; }
.spacer { flex: 1; }

#map { height: 62vh; min-height: 380px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 1; }
.map-legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.leaflet-popup-content { font-family: var(--font-body); direction: rtl; text-align: right; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .85rem; margin-top: 30px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

.install-banner { position: fixed; bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); inset-inline: 12px; z-index: 45; display: none; }
.install-banner.show { display: flex; }
@media (min-width: 900px) { .install-banner { bottom: 16px; inset-inline: auto 16px; max-width: 380px; } }

@media print { .site-header, .tabbar, .ticker, .site-footer { display: none; } body { padding: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ───── كتابة الخبر اليدوي + النص المنسّق ───── */
.write-form .card { margin-bottom: 14px; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--green-50); }
.editor-toolbar button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: .88rem; cursor: pointer; }
.editor-toolbar button:hover { border-color: var(--green); color: var(--green); }
.editor-toolbar + textarea { border-radius: 0 0 10px 10px; min-height: 320px; line-height: 1.9; }
.preview-box { margin-top: 12px; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; }
.preview-box summary { cursor: pointer; font-weight: 600; color: var(--green); }
.cover-thumb { max-height: 160px; border-radius: 10px; margin-bottom: 10px; }
.article-body h3 { margin: 18px 0 6px; font-size: 1.1rem; color: var(--green); }
.article-body ul, .article-body ol { padding-inline-start: 1.4em; margin: 8px 0 12px; line-height: 1.9; }
.article-body ol { list-style: arabic-indic; }
.article-body li + li { margin-top: 4px; }
.article-body blockquote { margin: 12px 0; padding: 8px 14px; border-inline-start: 4px solid var(--gold); background: var(--green-50); border-radius: 8px; }
.article-body figure { margin: 16px 0; }
.article-body figure img { width: 100%; border-radius: 12px; }
.article-body figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 6px; }
.visibility-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; background: var(--green-50); border: 1px solid var(--green-100); }
.visibility-bar.is-hidden { background: var(--red-50); border-color: transparent; }
.visibility-bar > span { flex: 1 1 240px; }
.visibility-bar input[type=text] { max-width: 260px; padding: 6px 10px; }
.row-hidden td { background: var(--red-50); }

.hero-org { margin: 14px 0 0; opacity: .85; position: relative; z-index: 1; }
.hero-org a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ───── شنو ديصير هسه / ترند العراق / لو كنت شركة / مطلوب ومتوفر ───── */
.pulse-btn { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); }
.pulse-btn:hover { text-decoration: none; border-color: var(--gold); }
.pulse-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pulse-text b { color: var(--gold-700); font-family: var(--font-head); font-size: .95rem; }
.pulse-text span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-go { font-size: 1.6rem; color: var(--muted); line-height: 1; }
.pulse-live { width: 12px; height: 12px; border-radius: 50%; background: #e5484d; flex: 0 0 12px; box-shadow: 0 0 0 0 rgba(229,72,77,.6); animation: live 1.6s infinite; display: inline-block; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.55); } 70% { box-shadow: 0 0 0 10px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }
@media (prefers-reduced-motion: reduce) { .pulse-live { animation: none; } }
.now-hero { background: linear-gradient(135deg, var(--brand-500), var(--brand) 60%, var(--brand-700)); color: #fff; border-radius: var(--radius); padding: 22px; }
.now-hero h1 { color: #fff; margin-top: 8px; }
.now-lead { font-size: 1.1rem; opacity: .95; margin: 0; }
.trend-row { display: grid; gap: 10px; }
@media (min-width: 760px) { .trend-row { grid-template-columns: repeat(3, 1fr); } }
.trend-card { display: flex; flex-direction: column; gap: 4px; position: relative; padding-inline-start: 52px; }
.trend-rank { position: absolute; inset-inline-start: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #1d1405; display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); }
.trend-rank.lg { position: static; width: 38px; height: 38px; flex: 0 0 38px; font-size: 1.1rem; }
.trend-item { margin-bottom: 12px; }
.trend-meter { height: 6px; background: var(--green-50); border-radius: 99px; overflow: hidden; max-width: 260px; }
.trend-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #e5484d); border-radius: inherit; }
.trend-meaning { background: var(--gold-50); border-radius: 10px; padding: 8px 12px; }
.feature-card { display: flex; gap: 12px; align-items: center; }
.feature-ic { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; background: var(--gold-50); color: var(--gold-700); display: grid; place-items: center; }
.feature-ic svg { width: 24px; height: 24px; }
.listing-card { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.contact-box { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--green-50); border: 1px solid var(--green-100); }
.loading-dots { display: flex; gap: 6px; margin-top: 10px; }
.loading-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: dots 1.2s infinite ease-in-out; }
.loading-dots span:nth-child(2) { animation-delay: .2s; } .loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dots { 0%, 80%, 100% { opacity: .3; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
.section-head h2 svg { width: 22px; height: 22px; vertical-align: -4px; margin-inline-end: 4px; color: var(--gold); }
.brand-text > span { white-space: nowrap; }
@media (max-width: 380px) { .brand { font-size: 1.1rem; } }

/* ───── صفحات قانونية ───── */
.legal h2 { margin-top: 22px; font-size: 1.15rem; color: var(--green); }
.legal h3 { margin-top: 12px; font-size: 1rem; }
.legal ul { padding-inline-start: 1.3em; line-height: 1.9; }
.legal .lead { font-size: 1.05rem; }
.legal-summary { background: var(--gold-50); border-radius: 12px; padding: 12px 16px; margin: 14px 0; }
.legal-summary h2 { margin-top: 0; color: var(--gold-700); }
.danger-zone { border: 1px solid var(--red); border-radius: var(--radius); }
.danger-zone h2 { color: var(--red); }
.launch-row { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.launch-row:last-child { border-bottom: 0; }
.launch-ic { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; }
.launch-ic.ok { background: #2e9e6a; } .launch-ic.warn { background: var(--gold); color: #1d1405; }

/* ───── مسارك ───── */
.path-hero { background: linear-gradient(135deg, var(--brand-500), var(--brand) 60%, var(--brand-700)); color: #fff; border-radius: var(--radius); padding: 20px; }
.path-hero h1 { color: #fff; }
.streak { background: rgba(255,255,255,.12); border-radius: 12px; padding: 8px 14px; text-align: center; }
.streak b { display: block; font-size: 1.5rem; font-family: var(--font-head); color: var(--gold); }
.streak span { font-size: .75rem; opacity: .85; }
.stage-track { display: flex; gap: 6px; margin-top: 14px; }
.stage-dot { flex: 1; height: 6px; border-radius: 99px; background: rgba(255,255,255,.2); }
.stage-dot.now { background: var(--gold); }
.stage-dot.now ~ .stage-dot { background: rgba(255,255,255,.12); }
.stage-track .stage-dot:not(.now) { background: rgba(217,154,43,.55); }
.stage-track .stage-dot.now ~ .stage-dot { background: rgba(255,255,255,.15); }
.checkin-due { display: flex; align-items: center; gap: 12px; margin-top: 12px; border-color: var(--gold); }
.goal-card { margin-bottom: 10px; }
.goal-card.focus { border: 2px solid var(--gold); }
.goal-steps { padding-inline-start: 1.3em; margin: 0 0 8px; font-size: .92rem; line-height: 1.8; }
.score-bar { height: 6px; background: var(--green-50); border-radius: 99px; overflow: hidden; min-width: 60px; }
.score-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #2e9e6a); border-radius: inherit; }
.score-bar.lg { height: 10px; background: rgba(255,255,255,.15); max-width: 320px; margin: 8px auto 0; }
.big-score { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1.1; }
.focus-box { background: var(--gold-50); border-radius: 10px; padding: 10px 12px; }
.caution-box { background: var(--red-50); border-radius: 10px; padding: 10px 12px; }
.invite { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.invite:last-child { border-bottom: 0; }
.invite:hover { text-decoration: none; } .invite:hover b { color: var(--green); }
.invite .chip { align-self: flex-start; }
.event-card { display: flex; gap: 12px; align-items: flex-start; }
.event-date { flex: 0 0 56px; text-align: center; background: var(--gold-50); border-radius: 12px; padding: 6px 4px; }
.event-date b { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--gold-700); line-height: 1.2; }
.event-date span { font-size: .75rem; color: var(--muted); }
.path-cta { border: 1px solid var(--gold); }

/* ── استكشف (بدل «ماكو فرص») ── */
.opp-note { margin: 6px 0 0; font-size: .85rem; color: var(--gold-700); line-height: 1.6; }
.explore { display: grid; gap: 12px; }
.explore-intro { margin: 0; }
.explore-box b { display: block; margin-bottom: 8px; }
.explore-related { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.explore-related li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.explore-doors { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.quick-chips::-webkit-scrollbar { display: none; }

/* ── الجمعية ── */
.circle-hero { background: linear-gradient(135deg, var(--brand-700, #13213F), var(--brand-500, #22355f)); color: #fff; border: 0; }
.circle-hero .muted, .circle-hero .lead { color: rgba(255,255,255,.85); }
.circle-hero .chip.outline { color: #fff; border-color: rgba(255,255,255,.35); }
.circle-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.circle-stats div { background: rgba(255,255,255,.08); border-radius: 12px; padding: 10px; display: grid; gap: 2px; }
.circle-stats b { font-size: 1rem; }
.circle-stats span { font-size: .75rem; color: rgba(255,255,255,.75); }
.circle-round { border: 1.5px solid var(--gold); }
.circle-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.circle-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.circle-list li:last-child { border-bottom: 0; }
.circle-steps { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; }
.table tr.current td { background: var(--gold-50); font-weight: 600; }
@media (max-width: 420px) { .circle-stats b { font-size: .88rem; } }
