/* ===== منصة تشاد الوطنية — Design system ===== */
:root {
  --indigo: #0B2A6F; --indigo-2: #13388f; --indigo-3: #071d4f; --indigo-soft: #E8EDF8;
  --gold: #F2B705; --gold-2: #d9a300; --gold-soft: #FFF5D6;
  --red: #C60C30; --red-soft: #FDE8EC;
  --green: #18794E; --green-soft: #E3F4EA;
  --amber: #A15C00; --amber-soft: #FFF1DB;
  --sand: #FAF7F0; --sand-2: #F3EEE2; --white: #fff;
  --ink: #14161F; --ink-2: #333849; --muted: #5B6172; --line: #E7E1D3; --line-2: #EFEADF;
  --r: 14px; --r-sm: 10px; --r-lg: 22px;
  --sh: 0 1px 2px rgba(20,22,31,.05), 0 6px 18px -8px rgba(11,42,111,.14);
  --sh-lg: 0 18px 48px -18px rgba(11,42,111,.35);
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Noto Naskh Arabic", sans-serif;
  --font-fr: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font-family: var(--font-fr); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; padding-bottom: 0;
}
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.75; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .4em; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0 0 .8em; }
a { color: var(--indigo-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .8em; color: var(--muted); }
small { font-size: .82em; }
.no-scroll { overflow: hidden; }

/* icons */
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.ic-lg { width: 30px; height: 30px; }
.ic-xl { width: 46px; height: 46px; stroke-width: 1.5; }
.ic-ok { color: var(--green); }
[dir="rtl"] .ic:has(use[href="#i-arrow"]), [dir="rtl"] .ic:has(use[href="#i-chev"]) { transform: scaleX(-1); }
.ic.flip { transform: scaleX(-1); }
[dir="rtl"] .ic.flip:has(use[href="#i-arrow"]), [dir="rtl"] .ic.flip:has(use[href="#i-chev"]) { transform: none; }

/* top chrome */
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { top: 10px; }
.flagbar { display: flex; height: 4px; }
.flagbar i { flex: 1; } .flagbar i:nth-child(1) { background: #002664; } .flagbar i:nth-child(2) { background: var(--gold); } .flagbar i:nth-child(3) { background: var(--red); }
.offline { background: var(--amber-soft); color: var(--amber); text-align: center; padding: 6px; font-size: .85rem; }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; flex: none; }
.logo { width: 40px; height: 40px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-txt b { font-size: 1rem; color: var(--indigo); }
.brand-txt small { color: var(--muted); font-size: .74rem; }
.mainnav { display: flex; gap: 2px; margin-inline: auto; }
.nav-a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .92rem; white-space: nowrap; }
.nav-a:hover { background: var(--sand-2); text-decoration: none; }
.nav-a.active { background: var(--indigo-soft); color: var(--indigo); font-weight: 600; }
.nav-a .ic { opacity: .75; }
.tools { display: flex; align-items: center; gap: 8px; flex: none; }
.role-sw { display: flex; flex-direction: column; font-size: .68rem; color: var(--muted); line-height: 1.1; }
.role-sw select { border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 4px 8px; font-size: .85rem; font-weight: 600; color: var(--indigo); cursor: pointer; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); cursor: pointer; transition: .15s var(--ease); flex: none; text-decoration: none !important; }
.icon-btn:hover { border-color: var(--indigo); color: var(--indigo); }
.icon-btn.on, .icon-btn[aria-pressed="true"] { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.icon-btn.danger:hover { color: var(--red); border-color: var(--red); }
.save-btn.on { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.save-btn.on .ic { fill: currentColor; }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 700; }
.saved-link .count { position: absolute; top: -6px; inset-inline-end: -6px; }
.lang-btn { gap: 6px; }
.lang-btn .short { display: none; font-weight: 700; }
.page-head .avatar { box-shadow: 0 0 0 3px rgba(255,255,255,.22), inset 0 -6px 12px rgba(0,0,0,.12); }
@media (max-width: 1380px) {
  .role-lbl, .brand-txt small { display: none; }
  .lang-btn .long { display: none; }
  .lang-btn .short { display: inline; }
  .nav-a { padding: 8px 9px; }
  .nav-a .ic { display: none; }
  .role-sw select { max-width: 150px; }
  .bar { gap: 12px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 11px; border: 1.5px solid transparent; font-weight: 600; font-size: .93rem; cursor: pointer; transition: transform .12s var(--ease), background .15s, box-shadow .15s; text-decoration: none !important; white-space: nowrap; line-height: 1.3; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-2); box-shadow: 0 6px 16px -6px rgba(11,42,111,.6); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffc61a; box-shadow: 0 6px 16px -6px rgba(242,183,5,.7); }
.btn-outline { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); }
.btn-text { background: transparent; color: var(--muted); }
.btn-text:hover { color: var(--red); }
.btn-success { background: var(--green); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .84rem; border-radius: 9px; }
.btn-lg { padding: 13px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.link { background: none; border: 0; color: var(--indigo-2); cursor: pointer; font-weight: 600; font-size: .85rem; padding: 0; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }

/* hero */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, #1d4bb0 0%, transparent 60%), linear-gradient(160deg, var(--indigo) 0%, var(--indigo-3) 100%); color: #fff; padding: 56px 0 0; overflow: hidden; }
.hero-pattern { position: absolute; inset: 0; opacity: .09; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23F2B705' stroke-width='1.4'%3E%3Cpath d='M28 4 52 28 28 52 4 28z'/%3E%3Cpath d='M28 16 40 28 28 40 16 28z'/%3E%3Cpath d='M0 0 8 8M56 0 48 8M0 56 8 48M56 56 48 48'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.35fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--gold); text-transform: none; margin-bottom: 14px; }
.eyebrow.dark { color: var(--indigo-2); }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { font-size: 1.07rem; color: #d6def3; max-width: 640px; margin-bottom: 26px; }
.mega { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--sh-lg); max-width: 680px; }
.seg { display: flex; gap: 4px; padding: 2px 2px 10px; }
.seg-b { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--muted); cursor: pointer; }
.seg-b.on { background: var(--indigo-soft); color: var(--indigo); }
.mega-row { display: flex; gap: 8px; }
.mega-in { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--sand); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; color: var(--muted); }
.mega-in:focus-within { border-color: var(--indigo); background: #fff; }
.mega-in input { flex: 1; border: 0; background: transparent; padding: 13px 0; outline: none; min-width: 0; color: var(--ink); }
.mega-city select { height: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--sand); max-width: 170px; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 6px 4px; font-size: .82rem; color: var(--muted); }
.qchip { padding: 4px 11px; border-radius: 99px; background: var(--sand-2); color: var(--ink-2); font-weight: 500; }
.qchip:hover { background: var(--gold-soft); text-decoration: none; }
.hero-map { position: relative; }
.hero-map .chad-map { max-height: 430px; display: block; margin-inline: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
.hero-map-cap { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: .82rem; color: #c8d2ee; margin-top: 6px; }
.stats { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--r) var(--r) 0 0; overflow: hidden; margin-top: 40px; }
.stat { background: rgba(7,29,79,.75); padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.stat .ic { grid-row: span 2; width: 26px; height: 26px; color: var(--gold); }
.stat b { font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { font-size: .8rem; color: #b9c5e6; }

/* chad map */
.chad-map { width: 100%; height: auto; }
.map-land { fill: #2350b4; stroke: rgba(255,255,255,.7); stroke-width: 1.5; stroke-linejoin: round; }
.map-lake { fill: #6fb4ff; opacity: .55; }
.map-river { fill: none; stroke: #8cc4ff; stroke-width: 1.6; stroke-opacity: .55; stroke-dasharray: 3 3; }
.map-region { fill: rgba(255,255,255,.35); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-anchor: middle; }
.city-node { cursor: pointer; }
.city-node .dot { fill: var(--gold); stroke: #fff; stroke-width: 1.5; transition: r .2s; }
.city-node .halo { fill: var(--gold); opacity: .18; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s infinite var(--ease); }
.city-node:hover .dot, .city-node:focus .dot { fill: #fff; }
.city-node.sel .dot { fill: var(--red); }
.city-node.sel .halo { fill: var(--red); opacity: .3; }
.city-node:focus { outline: none; }
.city-node:focus-visible .dot { stroke: var(--gold); stroke-width: 4; }
.map-n { fill: var(--indigo-3); font-size: 9px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.map-lbl { fill: #fff; font-size: 11px; font-weight: 600; paint-order: stroke; stroke: rgba(7,29,79,.8); stroke-width: 3px; pointer-events: none; }
@keyframes pulse { 0%, 100% { transform: scale(.85); opacity: .25; } 50% { transform: scale(1.25); opacity: .05; } }
.map-panel { background: linear-gradient(160deg, var(--indigo), var(--indigo-3)); border: 0; }
.map-panel .muted { color: #b9c5e6; }
.mini-map { margin-top: 14px; background: linear-gradient(160deg, var(--indigo), var(--indigo-3)); border-radius: var(--r-sm); padding: 10px; }
.mini-map .chad-map { max-height: 210px; display: block; margin-inline: auto; }

/* sections */
.section { padding: 56px 0 8px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.sec-head h2 { font-size: 1.6rem; margin-bottom: 4px; }
.sec-head p { color: var(--muted); margin: 0; }
.sec-head.center { justify-content: center; text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.sector-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sector { display: flex; flex-direction: column; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; color: var(--ink); transition: .18s var(--ease); }
.sector:hover { border-color: var(--indigo); transform: translateY(-2px); box-shadow: var(--sh); text-decoration: none; }
.sector-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--indigo-soft); color: var(--indigo); margin-bottom: 6px; }
.sector:nth-child(3n+2) .sector-ic { background: var(--gold-soft); color: var(--amber); }
.sector:nth-child(3n) .sector-ic { background: var(--green-soft); color: var(--green); }
.sector b { font-size: .93rem; line-height: 1.35; }
.sector small { color: var(--muted); }

/* cards */
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--sh); transition: .18s var(--ease); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card:hover { border-color: #c9d3ea; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,22,31,.04), 0 14px 30px -14px rgba(11,42,111,.3); }
.card h3 { font-size: 1.02rem; margin: 0; }
.card h3 a { color: var(--ink); }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .icon-btn, .card .btn, .card .ring { position: relative; z-index: 2; }
.co-head { display: flex; align-items: flex-start; gap: 12px; }
.co-titles { flex: 1; min-width: 0; }
.co-titles small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--av, var(--indigo)); color: #fff; font-weight: 700; font-size: 1rem; flex: none; letter-spacing: .02em; box-shadow: inset 0 -6px 12px rgba(0,0,0,.12); }
.avatar-xs { width: 24px; height: 24px; border-radius: 7px; font-size: .62rem; }
.avatar-sm { width: 36px; height: 36px; border-radius: 10px; font-size: .8rem; }
.avatar-lg { width: 60px; height: 60px; border-radius: 16px; font-size: 1.25rem; }
.avatar-xl { width: 84px; height: 84px; border-radius: 20px; font-size: 1.7rem; border: 3px solid rgba(255,255,255,.25); }
.avatar-anon { background: #64708a; }
.co-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--ink-2); background: var(--sand); border: 1px solid var(--line-2); padding: 3px 9px; border-radius: 8px; }
.tag .ic { color: var(--muted); }
.tag-light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #e6ecfa; }
.tag-light .ic { color: var(--gold); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: .9rem; }
.co-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.badge-ok { background: var(--green-soft); color: var(--green); }
.badge-warn { background: var(--amber-soft); color: var(--amber); }
.badge-muted { background: #EEF0F4; color: #5b6172; }
.badge-gold { background: var(--gold-soft); color: #7a5600; }
.qmeter { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--muted); }
.qbar { width: 54px; height: 6px; border-radius: 99px; background: #EDEFF3; overflow: hidden; }
.qbar i { display: block; height: 100%; border-radius: inherit; }
.q-hi .qbar i { background: var(--green); } .q-mid .qbar i { background: var(--gold); } .q-lo .qbar i { background: var(--red); }
.qmeter b { color: var(--ink); font-variant-numeric: tabular-nums; }
.co-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--muted); }
.co-foot small { font-size: .76rem; text-align: end; }
.channels { display: flex; gap: 8px; color: var(--indigo-2); }
.co-row { flex-direction: row; align-items: center; padding: 12px 16px; }
.co-row-meta { display: flex; gap: 8px; align-items: center; }
.job-top { display: flex; align-items: center; gap: 8px; }
.job-top .save-btn { margin-inline-start: auto; }
.job-top .ring { margin-inline-start: auto; }
.job-top .ring + .save-btn { margin-inline-start: 0; }
.type { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 8px; }
.type-job { background: var(--indigo-soft); color: var(--indigo); }
.type-intern { background: var(--green-soft); color: var(--green); }
.type-scholarship { background: var(--gold-soft); color: #7a5600; }
.type-volunteer { background: var(--red-soft); color: var(--red); }
.type-consult { background: #EFE8F7; color: #5b2e83; }
.job-co { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); font-weight: 500; }
.job-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--muted); }
.job-meta span { display: inline-flex; align-items: center; gap: 4px; }
.job-foot { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); padding-top: 10px; border-top: 1px dashed var(--line); margin-top: auto; }
.job-foot span { display: inline-flex; align-items: center; gap: 5px; }
.urgent { color: var(--red); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; padding: 3px 10px; border-radius: 99px; background: var(--sand-2); color: var(--ink-2); border: 1px solid transparent; text-decoration: none !important; }
.chips-lg .chip { font-size: .86rem; padding: 5px 12px; }
.chip-ok { background: var(--green-soft); color: var(--green); }
.chip-gap { background: var(--red-soft); color: var(--red); }
.chip-gold { background: var(--gold-soft); color: #7a5600; }
.chip-indigo { background: var(--indigo-soft); color: var(--indigo); }
.chip-ai { cursor: pointer; background: var(--indigo-soft); color: var(--indigo); border-color: #c9d3ea; font-weight: 600; }
.chip-ai:hover { background: var(--indigo); color: #fff; }
.chip .ic { width: .95em; height: .95em; }
.langs { display: flex; gap: 4px; }
.langs abbr { text-decoration: none; font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--indigo-soft); color: var(--indigo); }
.dot-ok { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-inline-end: 5px; box-shadow: 0 0 0 3px var(--green-soft); }

/* match ring */
.ring { --c: var(--green); display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; flex: none; background: radial-gradient(closest-side, #fff 78%, transparent 80% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), #EDEFF3 0); }
.ring b { font-size: .95rem; font-variant-numeric: tabular-nums; line-height: 1; }
.ring small { font-size: .6em; }
.r-mid { --c: var(--gold-2); } .r-lo { --c: #c4c9d4; }
.ring-sm { width: 44px; height: 44px; } .ring-sm b { font-size: .8rem; }
.ring-xs { width: 34px; height: 34px; } .ring-xs b { font-size: .68rem; }
.ring-lg { width: 92px; height: 92px; } .ring-lg b { font-size: 1.5rem; }

/* home blocks */
.band { background: var(--white); border-block: 1px solid var(--line); padding-bottom: 56px; margin-top: 56px; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.how { background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; }
.how-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.how-head h3 { margin: 0; font-size: 1.2rem; }
.how-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--indigo); color: var(--gold); }
.how-ic .ic { width: 24px; height: 24px; }
.how ol { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.how li { display: flex; gap: 14px; }
.how li > span { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 700; }
.how li p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.how .btn { margin-top: auto; align-self: flex-start; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.feature h3 { font-size: 1.02rem; margin: 12px 0 6px; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }
.feature-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, var(--indigo), var(--indigo-2)); color: var(--gold); }
.feature-ic .ic { width: 22px; height: 22px; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: linear-gradient(120deg, var(--indigo-3), var(--indigo) 60%, #1d4bb0); color: #fff; border-radius: var(--r-lg); padding: 36px 40px; position: relative; overflow: hidden; margin-bottom: 56px; }
.cta::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(242,183,5,.15); }
.cta h2 { font-size: 1.5rem; } .cta p { color: #c8d2ee; margin: 0; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

/* page head */
.page-head { background: linear-gradient(160deg, var(--indigo) 0%, var(--indigo-3) 100%); color: #fff; padding: 34px 0 30px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 4 52 28 28 52 4 28z' fill='none' stroke='%23F2B705' stroke-width='1.4'/%3E%3C/svg%3E"); }
.page-head-in { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 6px; }
.page-head p { color: #c8d2ee; margin: 0; max-width: 720px; }
.page-head .eyebrow { margin-bottom: 4px; }
.ph-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs { position: relative; display: flex; align-items: center; gap: 6px; font-size: .84rem; color: #b9c5e6; margin-bottom: 16px; }
.crumbs a { color: #fff; }
.dh { position: relative; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.dh-compact { gap: 14px; }
.dh-compact h1 { margin: 0; }
.dh-compact p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dh-main { flex: 1; min-width: 240px; }
.dh-main h1 { margin: 6px 0 2px; }
.dh-sub { color: #c8d2ee; margin: 0 0 10px !important; }
.dh-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dh-actions .icon-btn { width: 44px; height: 44px; }

/* filters layout */
.layout-filters { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; padding-top: 24px; padding-bottom: 60px; align-items: start; }
.filters { position: sticky; top: 84px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; max-height: calc(100vh - 100px); overflow: auto; }
.filters form { display: flex; flex-direction: column; gap: 14px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-head h2 { font-size: 1rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field output { font-weight: 700; color: var(--indigo); }
.field input:not([type=range]):not([type=checkbox]), .field select, .field textarea, .exp-row input {
  width: 100%; border: 1.5px solid var(--line); background: var(--sand); border-radius: 10px; padding: 9px 11px; font-weight: 400; font-size: .92rem; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus, .exp-row input:focus { border-color: var(--indigo); background: #fff; outline: none; box-shadow: 0 0 0 3px var(--indigo-soft); }
.field textarea { resize: vertical; }
input[type=range] { accent-color: var(--indigo); width: 100%; }
.fset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.fset legend { font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: .88rem; cursor: pointer; }
.check input { accent-color: var(--indigo); width: 17px; height: 17px; flex: none; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.switch { display: flex; align-items: center; gap: 10px; font-size: .88rem; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #D5D9E2; transition: .2s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--indigo); }
.switch input:checked + span::after { inset-inline-start: 19px; }
.switch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.toolbar p { margin: 0; color: var(--muted); }
.toolbar p b { color: var(--ink); font-size: 1.05rem; }
.toolbar-r { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.sort { font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sort select { border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px; background: #fff; font-weight: 600; }
.vt { display: flex; gap: 4px; }
.vt .icon-btn { width: 34px; height: 34px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active-filters:empty { display: none; }
.afilter { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #c9d3ea; background: var(--indigo-soft); color: var(--indigo); padding: 4px 10px; border-radius: 99px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.afilter:hover { background: var(--indigo); color: #fff; }
.more { display: flex; justify-content: center; margin-top: 20px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: var(--r); }
.empty .ic { color: #c3c8d4; margin-bottom: 8px; }
.only-mobile { display: none; }
.type-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 0; scrollbar-width: none; }
.ttab { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 16px; font-weight: 600; font-size: .88rem; cursor: pointer; white-space: nowrap; color: var(--ink-2); }
.ttab small { color: var(--muted); font-weight: 500; }
.ttab.on { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.ttab.on small { color: #c8d2ee; }

/* detail */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; padding-top: 24px; padding-bottom: 60px; align-items: start; }
.detail-main, .detail-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.detail-side { position: sticky; top: 84px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--sh); }
.panel h2 { font-size: 1.12rem; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.panel h2 small { color: var(--muted); font-weight: 500; }
.panel h3 { font-size: 1rem; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.panel-head small { color: var(--muted); }
.panel-ai { background: linear-gradient(180deg, #F4F7FE 0%, #fff 70%); border-color: #d5def3; }
.panel-ai h2 .ic { color: var(--gold-2); }
.h-sm { font-size: .92rem; margin: 18px 0 10px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0 0; }
.facts-1 { grid-template-columns: 1fr 1fr 1fr; }
.facts div { background: var(--sand); border-radius: 10px; padding: 10px 12px; }
.facts dt { font-size: .76rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: .92rem; }
.branches { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.branches li { display: flex; align-items: center; gap: 8px; background: var(--sand); padding: 9px 12px; border-radius: 10px; font-size: .9rem; }
.branches li .ic { color: var(--indigo-2); }
.branches small { color: var(--muted); }
.note { display: flex; align-items: flex-start; gap: 12px; background: var(--sand); border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 14px; flex-wrap: wrap; }
.note > .ic { color: var(--indigo-2); margin-top: 3px; }
.note p { flex: 1; margin: 0; min-width: 200px; color: var(--ink-2); font-size: .9rem; }
.alert { display: flex; align-items: center; gap: 12px; border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 14px; flex-wrap: wrap; }
.alert p { margin: 0; flex: 1; font-size: .9rem; min-width: 200px; }
.alert > .ic { width: 22px; height: 22px; flex: none; }
.alert-warn { background: var(--amber-soft); color: #6d3f00; border: 1px solid #f3d6a4; }
.alert-info { background: var(--indigo-soft); color: var(--indigo); border: 1px solid #c9d3ea; }
.alert-ai { background: linear-gradient(90deg, var(--indigo-soft), var(--gold-soft)); color: var(--indigo); border: 1px solid #d5def3; }
.alert-ok { background: var(--green-soft); color: var(--green); }
.alert-warn div { flex: 1; } .alert-warn div p { margin: 2px 0 0; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; word-break: break-word; }
.contact-list li .ic { color: var(--indigo-2); margin-top: 3px; }
.contact-list .missing { color: var(--muted); font-style: italic; }
.contact-list .missing .ic { color: #c3c8d4; }
.prov .qmeter { font-size: .9rem; } .prov .qbar { width: 140px; height: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding-inline-start: 22px; padding-bottom: 14px; display: flex; flex-direction: column; font-size: .88rem; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li span { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 34px; padding: 28px 20px 60px; }
.h-sec { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; }
.h-sec small { color: var(--muted); font-weight: 500; }
.rows-compact { gap: 4px; }
.mini-co { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--ink); margin-bottom: 8px; }
.mini-co:hover { background: var(--sand); text-decoration: none; }
.mini-co > span:not(.avatar) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mini-co small { color: var(--muted); }
.edu { display: flex; gap: 14px; align-items: flex-start; }
.edu .ic { color: var(--indigo-2); }
.edu p { margin: 2px 0 0; color: var(--muted); }
.proj { padding: 12px 14px; background: var(--sand); border-radius: 10px; margin-bottom: 8px; }
.proj p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.progress { margin-bottom: 12px; }
.progress-top { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.progress-top b { color: var(--indigo); font-size: 1.2rem; }
.pbar { height: 10px; border-radius: 99px; background: #EDEFF3; overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--indigo), var(--gold)); transition: width .6s var(--ease); }
[dir=rtl] .pbar i { background: linear-gradient(270deg, var(--indigo), var(--gold)); }
.match-box { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.match-box .chips { margin-bottom: 8px; }
.match-box p { margin: 0 0 6px; font-weight: 600; }
.apply-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.apply-meta div { background: var(--sand); padding: 10px 12px; border-radius: 10px; }
.apply-meta small { display: block; color: var(--muted); }
.apply-meta b { font-size: .92rem; }
.apply-panel .muted { margin: 10px 0 0; }
.guard { text-align: center; padding: 80px 20px; max-width: 560px; }
.guard .ic { color: var(--indigo-2); margin-bottom: 10px; }
.guard p { color: var(--muted); margin-bottom: 22px; }
.guard-sm { padding: 10px; }

/* forms */
.form { display: flex; flex-direction: column; gap: 6px; }
.form-sec { padding-bottom: 22px; margin-bottom: 18px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 14px; }
.form-sec h2 { margin: 0; }
.form-sec h2 .ic { color: var(--indigo-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span-2 { grid-column: span 2; }
.tagbox { display: flex; flex-wrap: wrap; gap: 6px; border: 1.5px solid var(--line); background: var(--sand); border-radius: 10px; padding: 7px; font-weight: 400; }
.tagbox:focus-within { border-color: var(--indigo); background: #fff; box-shadow: 0 0 0 3px var(--indigo-soft); }
.tagbox input { flex: 1; min-width: 140px; border: 0 !important; background: transparent !important; padding: 4px !important; box-shadow: none !important; outline: none; }
.tag-x { display: inline-flex; align-items: center; gap: 4px; background: var(--indigo); color: #fff; border-radius: 8px; padding: 3px 4px 3px 10px; font-size: .84rem; }
[dir=rtl] .tag-x { padding: 3px 10px 3px 4px; }
.tag-x button { border: 0; background: rgba(255,255,255,.15); color: #fff; border-radius: 6px; width: 20px; height: 20px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.tag-x button:hover { background: var(--red); }
.exp-row { display: grid; grid-template-columns: 1.4fr 1.4fr .7fr .7fr auto; gap: 8px; margin-bottom: 8px; }
.proj-row { grid-template-columns: 1fr 2fr auto; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rcard { cursor: pointer; }
.rcard input { position: absolute; opacity: 0; }
.rcard span { display: flex; flex-direction: column; gap: 4px; height: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; transition: .15s; }
.rcard b { display: flex; align-items: center; gap: 6px; }
.rcard small { color: var(--muted); }
.rcard input:checked + span { border-color: var(--indigo); background: var(--indigo-soft); box-shadow: 0 0 0 3px rgba(11,42,111,.08); }
.rcard input:focus-visible + span { outline: 3px solid var(--gold); }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 6px; }
.ai-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .84rem; color: var(--indigo); min-height: 4px; }
.ai-suggest:empty { display: none; }
.rec-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.rec { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: var(--ink); }
.rec:hover { background: #fff; text-decoration: none; box-shadow: var(--sh); }
.rec > span:not(.ring) { display: flex; flex-direction: column; min-width: 0; }
.rec b { font-size: .9rem; } .rec small { color: var(--muted); }
.app-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.app-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--sand); border-radius: 10px; }
.app-list a { display: flex; flex-direction: column; color: var(--ink); min-width: 0; }
.app-list small { color: var(--muted); }
.pill { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pill-new { background: var(--indigo-soft); color: var(--indigo); }
.pill-shortlisted { background: var(--gold-soft); color: #7a5600; }
.pill-interview { background: #EFE8F7; color: #5b2e83; }
.pill-accepted { background: var(--green-soft); color: var(--green); }
.pill-rejected { background: var(--red-soft); color: var(--red); }

/* dashboards */
.kpis { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.kpis-6 { grid-template-columns: repeat(6, 1fr); }
.kpi { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi .ic { color: var(--gold); }
.kpi b { font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi span { color: #b9c5e6; font-size: .8rem; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-top: 22px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 12px 16px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--indigo); }
.tab.on { color: var(--indigo); border-bottom-color: var(--gold); }
.tab-panel { border-top-left-radius: 0; border-top-right-radius: 0; margin-bottom: 60px; border-top: 0; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: var(--sand); border-radius: 12px; padding: 10px; min-height: 260px; border: 2px dashed transparent; transition: .15s; }
.kcol.over { border-color: var(--indigo); background: var(--indigo-soft); }
.kcol h3 { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; margin: 2px 4px 10px; }
.kcol h3 small { color: var(--muted); }
.kcards { display: flex; flex-direction: column; gap: 8px; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: grab; box-shadow: var(--sh); }
.kcard.dragging { opacity: .5; }
.kc-top { display: flex; align-items: center; gap: 8px; }
.kc-top > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kc-top a { color: var(--ink); font-size: .88rem; }
.kc-top small { color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-note { font-size: .8rem; color: var(--ink-2); background: var(--sand); border-radius: 8px; padding: 6px 8px; margin: 8px 0 0; }
.kc-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.kc-actions small { color: var(--muted); font-size: .72rem; }
.kc-actions span { display: flex; gap: 4px; }
.kc-actions .icon-btn { width: 28px; height: 28px; border-radius: 8px; }
.kempty { text-align: center; color: #a0a6b4; font-size: .8rem; padding: 20px 0; border: 1px dashed #d8d2c3; border-radius: 10px; margin: 0; }
.ai-head { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.ai-head .field { min-width: 280px; }
.ai-head p { margin: 0; flex: 1; display: flex; gap: 6px; align-items: flex-start; }
.ai-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ai-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ai-item:hover { border-color: #c9d3ea; box-shadow: var(--sh); }
.rank { font-weight: 700; color: var(--muted); width: 22px; text-align: center; }
.ai-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ai-body a { color: var(--ink); }
.ai-body > small { color: var(--muted); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: start; font-size: .78rem; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table td small { display: block; }
.table tr:hover td { background: #FCFBF7; }
.td-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.bars li { display: grid; grid-template-columns: 130px 1fr 34px; gap: 10px; align-items: center; font-size: .86rem; }
.bars li span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btrack { height: 10px; background: #EDEFF3; border-radius: 99px; overflow: hidden; }
.btrack i { display: block; height: 100%; background: linear-gradient(90deg, var(--indigo), var(--indigo-2)); border-radius: inherit; }
.bars-q li:nth-child(1) .btrack i { background: var(--green); }
.bars-q li:nth-child(2) .btrack i { background: var(--gold-2); }
.bars-q li:nth-child(n+3) .btrack i { background: var(--red); }
.bars li b { text-align: end; font-variant-numeric: tabular-nums; }
.dup { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; }
.dup-score { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.dup-score small { color: var(--muted); }
.dup-score .chips { justify-content: center; }
.dup-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dup-side { display: flex; gap: 10px; background: var(--sand); border-radius: 10px; padding: 12px; min-width: 0; }
.dup-side > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dup-side small { color: var(--muted); }
.dup-side a { color: var(--ink); }
.dup-actions { display: flex; flex-direction: column; gap: 6px; }
.report-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.report-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.report-list li > div { flex: 1; }
.report-list li p { margin: 4px 0; font-size: .9rem; }
.report-list li.done { opacity: .6; }
.tool { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tool h3 { margin: 8px 0 0; } .tool p { color: var(--muted); font-size: .9rem; flex: 1; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; padding-top: 24px; padding-bottom: 60px; align-items: start; }
.map-layout aside { display: flex; flex-direction: column; gap: 18px; }
.map-panel .chad-map { max-height: 72vh; display: block; margin-inline: auto; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 18px; }
.mini-stats div { background: var(--sand); border-radius: 10px; padding: 10px; text-align: center; }
.mini-stats b { display: block; font-size: 1.4rem; color: var(--indigo); }
.mini-stats span { font-size: .76rem; color: var(--muted); }

/* CV */
.cv-wrap { padding: 28px 20px 60px; max-width: 900px; }
.cv-tools { display: flex; justify-content: space-between; margin-bottom: 16px; }
.cv { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 48px; box-shadow: var(--sh-lg); border-top: 6px solid var(--indigo); }
.cv-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--gold); padding-bottom: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.cv-head h1 { color: var(--indigo); margin: 0; font-size: 1.9rem; }
.cv-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.cv-contact { display: flex; flex-direction: column; font-size: .88rem; text-align: end; color: var(--ink-2); }
.cv section { margin-bottom: 16px; }
.cv h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--indigo); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
html[lang=ar] .cv h2 { letter-spacing: 0; font-size: 1rem; }
.cv-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cv-foot { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 24px; }
.cv-foot .logo { width: 24px; height: 24px; }

/* modal & toast */
.modal-root { display: none; }
.modal-root.open { display: block; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(7,15,40,.55); z-index: 80; animation: fade .2s; backdrop-filter: blur(2px); }
.modal { position: fixed; z-index: 81; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); animation: pop .25s var(--ease); }
.modal-wide { width: min(760px, calc(100vw - 24px)); }
.modal-head { position: sticky; top: 0; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); z-index: 1; }
.modal-head h2 { font-size: 1.1rem; margin: 0; }
.modal-body { padding: 20px 22px 22px; }
.modal .form { gap: 14px; }
.apply-sum { display: flex; gap: 14px; align-items: center; background: var(--sand); border-radius: 12px; padding: 12px; }
.apply-sum div { display: flex; flex-direction: column; }
.apply-sum small { color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.98); } }
.toasts { position: fixed; z-index: 90; bottom: 24px; inset-inline-start: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
[dir=rtl] .toasts { transform: translateX(50%); }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; box-shadow: var(--sh-lg); font-size: .9rem; animation: up .25s var(--ease); transition: .3s; max-width: 90vw; }
.toast .ic { color: var(--gold); }
.toast-err { background: var(--red); } .toast-err .ic { color: #fff; }
.toast.out { opacity: 0; transform: translateY(10px); }
@keyframes up { from { opacity: 0; transform: translateY(12px); } }
#app { min-height: 60vh; outline: none; }
#app.enter { animation: fade .3s var(--ease); }

/* footer */
.footer { background: var(--indigo-3); color: #c8d2ee; padding: 46px 0 0; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr; gap: 30px; }
.footer h3 { color: #fff; font-size: .95rem; }
.footer a { display: block; color: #c8d2ee; margin-bottom: 6px; font-size: .9rem; }
.footer p { font-size: .88rem; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot-brand b { color: #fff; display: block; } .foot-brand small { color: #9fb0d8; }
.foot-bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 16px; padding-bottom: 20px; font-size: .8rem; color: #8fa0c8; }
.btn-ghost-light.btn-sm { display: inline-flex; }

/* mobile tabbar */
.tabbar { display: none; }

/* ===== lite mode ===== */
body.lite *, body.lite *::before, body.lite *::after { animation: none !important; transition: none !important; }
body.lite .hero-pattern, body.lite .page-head::before { display: none; }
body.lite .card, body.lite .panel { box-shadow: none; }
body.lite .topbar { backdrop-filter: none; background: #fff; }
body.lite .hero-map .chad-map { filter: none; }
#lite-btn[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ===== responsive ===== */
@media (max-width: 1180px) {
  .nav-a span { display: none; }
  .nav-a .ic { display: inline-block; }
  .nav-a { padding: 9px 11px; }
  .sector-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-map { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid, .map-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .dup { grid-template-columns: 1fr; }
  .dup-actions { flex-direction: row; }
}
@media (max-width: 860px) {
  body { padding-bottom: 68px; }
  .mainnav { display: none; }
  .tools { margin-inline-start: auto; }
  .role-lbl { display: none; }
  .tabbar { display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px -10px rgba(0,0,0,.15); }
  .tab-a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; color: var(--muted); padding: 4px 2px; border-radius: 10px; text-decoration: none !important; text-align: center; line-height: 1.2; }
  .tab-a .ic { width: 22px; height: 22px; }
  .tab-a.active { color: var(--indigo); font-weight: 700; }
  .tab-a.active .ic { color: var(--indigo); }
  .layout-filters { grid-template-columns: 1fr; }
  .filters { display: none; position: static; max-height: none; }
  .filters.open { display: block; }
  .only-mobile { display: inline-flex; }
  .how-grid { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 28px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .toasts { bottom: 84px; }
}
@media (max-width: 640px) {
  .container { padding-inline: 14px; }
  .bar { height: 60px; gap: 10px; }
  .brand-txt small { display: none; }
  .brand-txt b { font-size: .88rem; }
  .logo { width: 34px; height: 34px; }
  .lang-btn { padding: 0; width: 38px; height: 38px; }
  .lang-btn .ic { display: none; }
  .role-sw select { max-width: 104px; font-size: .78rem; padding: 4px 4px; }
  .tools { gap: 5px; }
  .tools .icon-btn, .lang-btn { width: 34px !important; height: 34px !important; }
}
@media (max-width: 460px) {
  .brand-txt { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 34px; }
  .mega-row { flex-wrap: wrap; }
  .mega-in { flex-basis: 100%; }
  .mega-city { flex: 1; } .mega-city select { max-width: none; width: 100%; padding: 11px 10px; }
  .seg-b { padding: 7px 10px; font-size: .84rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child { grid-column: span 2; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .form-grid, .radio-cards, .dup-pair, .cv-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .exp-row { grid-template-columns: 1fr 1fr; }
  .exp-row .icon-btn { justify-self: end; }
  .facts, .facts-1 { grid-template-columns: 1fr 1fr; }
  .co-row { flex-wrap: wrap; }
  .co-row-meta { width: 100%; order: 3; }
  .ai-item { flex-wrap: wrap; }
  .ai-item .btn { width: 100%; }
  .cv { padding: 24px; }
  .bars li { grid-template-columns: 96px 1fr 28px; }
  .foot-grid { grid-template-columns: 1fr; }
  .dh-actions { width: 100%; }
  .toolbar-r { width: 100%; margin-inline-start: 0; justify-content: space-between; }
}

/* ===== print (CV) ===== */
@media print {
  .topbar, .flagbar, .footer, .tabbar, .no-print, .toasts, .offline, .skip { display: none !important; }
  body { background: #fff; padding: 0; }
  .cv-wrap { padding: 0; max-width: none; }
  .cv { box-shadow: none; border: 0; border-top: 6px solid var(--indigo); padding: 10mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
