/* ===== DentX public front (owner 2026-11-02 «فاتحة كأنها السيستم» → a community: Facebook / LinkedIn feel) =====
   views/layouts/front.ejs + partials/front_* + views/feed/* + views/social/*. Logical properties only (LTR + RTL). */
body.dx-front { background: #f1f4f9; color: var(--dx-text-2); min-height: 100vh; }
.dx-front a { text-decoration: none; }
.dx-front .min-w-0 { min-width: 0; }

/* ---------- top bar ---------- */
.fx-top { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid #e3e9f2; padding-top: var(--dx-sat, env(safe-area-inset-top, 0px)); }
.fx-top-in { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: .9rem; height: 62px; padding: 0 1rem; }
.fx-logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.fx-logo img { height: 34px; width: auto; }
.fx-search { flex: 1 1 auto; max-width: 560px; position: relative; margin-inline: auto; }
.fx-search i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: #7b879b; pointer-events: none; }
.fx-search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid transparent; background: #eef2f8; padding-inline: 40px 16px; font-size: .95rem; color: var(--dx-text); outline: none; transition: background .15s, border-color .15s, box-shadow .15s; }
.fx-search input:focus { background: #fff; border-color: var(--dx-accent); box-shadow: 0 0 0 4px var(--dx-accent-ring); }
.fx-icons { flex: 0 0 auto; display: flex; align-items: center; gap: .35rem; }
.fx-ic { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #eef2f8; color: var(--dx-navy); font-size: 1.15rem; }
.fx-ic:hover { background: #e2e9f4; color: var(--dx-accent); }
.fx-badge { position: absolute; top: -2px; inset-inline-end: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #e0263b; color: #fff; font-size: .68rem; font-weight: 800; line-height: 19px; text-align: center; border: 2px solid #fff; }
.fx-badge.is-blue { background: var(--dx-accent); }
.fx-me-btn { display: inline-flex; align-items: center; gap: .25rem; border: 0; background: none; padding: 0; color: var(--dx-text-3); }
.fx-me-btn .avatar-circle { width: 40px; height: 40px; border: 2px solid #fff; box-shadow: 0 0 0 1px #d9e1ec; }
.fx-in { border-radius: 999px; font-weight: 700; padding-inline: .95rem; }
.fx-menu { min-width: 250px; border-radius: 14px; border: 1px solid #e3e9f2; box-shadow: var(--dx-sh-3); padding: .4rem; }
.fx-menu .dropdown-item { border-radius: 10px; padding: .5rem .7rem; display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--dx-text); }
.fx-menu .dropdown-item i { color: var(--dx-text-3); width: 1.1rem; text-align: center; }
.fx-menu-head { padding: .5rem .7rem .6rem; display: flex; flex-direction: column; border-bottom: 1px solid #edf1f6; margin-bottom: .3rem; }
.fx-menu-head b { color: var(--dx-text); } .fx-menu-head small { color: var(--dx-text-3); }

/* ---------- section strip (phones / app) ---------- */
.fx-strip { position: sticky; top: calc(62px + var(--dx-sat, env(safe-area-inset-top, 0px))); z-index: 1020; background: #fff; border-bottom: 1px solid #e3e9f2; }
.fx-strip-in { display: flex; gap: .45rem; overflow-x: auto; padding: .55rem 1rem; scrollbar-width: none; }
.fx-strip-in::-webkit-scrollbar { display: none; }
.fx-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .85rem; border-radius: 999px; background: #eef2f8; color: var(--dx-text-2); font-weight: 700; font-size: .86rem; white-space: nowrap; }
.fx-chip.is-on { background: var(--dx-navy); color: #fff; }

/* ---------- 3-column shell ---------- */
.fx-shell { max-width: 1320px; margin: 0 auto; padding: 1.1rem 1rem 2rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 992px) { .fx-shell { grid-template-columns: 250px minmax(0, 1fr); } }
@media (min-width: 1200px) { .dx-front.has-rail .fx-shell { grid-template-columns: 250px minmax(0, 1fr) 300px; } }
.dx-front.has-rail .fx-main { max-width: 680px; width: 100%; margin-inline: auto; }
.fx-sticky { position: sticky; top: calc(62px + 1.1rem); }
.fx-left .fx-sticky { max-height: calc(100vh - 62px - 2rem); overflow-y: auto; scrollbar-width: thin; padding-bottom: 1rem; }
.fx-main { min-width: 0; }

/* me card */
.fx-me { background: #fff; border-radius: 16px; border: 1px solid #e3e9f2; overflow: hidden; margin-bottom: 1rem; text-align: center; padding-bottom: .9rem; }
.fx-me-cover { height: 58px; background: linear-gradient(120deg, #0a1a3a 0%, #0b4fb3 55%, #19c3ff 120%); }
.fx-me-av { display: inline-block; margin-top: -32px; }
.fx-me-av .avatar-circle { width: 64px; height: 64px; font-size: 1.6rem; border: 3px solid #fff; box-shadow: var(--dx-sh-2); }
.fx-me-nm { display: block; font-weight: 800; color: var(--dx-text); margin-top: .3rem; padding: 0 .8rem; }
.fx-me-sub { font-size: .8rem; color: var(--dx-text-3); padding: 0 .8rem; }
.fx-me-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: .7rem; border-top: 1px solid #eef2f7; padding-top: .6rem; }
.fx-me-stats a { display: flex; flex-direction: column; color: var(--dx-text-3); font-size: .72rem; }
.fx-me-stats b { color: var(--dx-text); font-size: 1rem; }
.fx-join { padding: .4rem 1rem 0; }
.fx-join img { margin-top: -18px; background: #fff; border-radius: 12px; padding: 6px 10px; box-shadow: var(--dx-sh-2); height: auto; }
.fx-join p { font-size: .85rem; margin: .7rem 0; }

/* left nav */
.fx-nav { background: #fff; border-radius: 16px; border: 1px solid #e3e9f2; padding: .45rem; }
.fx-nav-i { display: flex; align-items: center; gap: .7rem; padding: .38rem .55rem; border-radius: 12px; color: var(--dx-text); font-weight: 650; font-size: .93rem; }
.fx-nav-i:hover { background: #f2f6fc; color: var(--dx-text); }
.fx-nav-i.is-on { background: var(--dx-accent-soft); color: var(--dx-accent-ink); }
.fx-nav-ic { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; flex: 0 0 34px; }
.fx-nav-h { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--dx-text-3); padding: .8rem .6rem .3rem; border-top: 1px solid #eef2f7; margin-top: .4rem; }
html[lang=ar] .fx-nav-h { letter-spacing: 0; text-transform: none; }
.fx-cnt { margin-inline-start: auto; background: #e0263b; color: #fff; border-radius: 999px; font-size: .7rem; padding: 0 .45rem; }
/* section tints — only for the left-nav icons and the page hero (a bare .t-* would also paint the map pins / legend / chips) */
.fx-nav-ic.t-feed, .fx-hero.t-feed { background: #e8f1ff; color: #0b63d6; } .fx-nav-ic.t-cases, .fx-hero.t-cases { background: #ffe9ee; color: #c8243f; } .fx-nav-ic.t-jobs, .fx-hero.t-jobs { background: #ebeaff; color: #4b46c9; }
.fx-nav-ic.t-courses, .fx-hero.t-courses { background: #f2e9ff; color: #7a3fd0; } .fx-nav-ic.t-listings, .fx-hero.t-listings { background: #fff1de; color: #b76a00; } .fx-nav-ic.t-market, .fx-hero.t-market { background: #e3f6fd; color: #077aa8; }
.fx-nav-ic.t-store, .fx-hero.t-store { background: #e2f7f1; color: #0b8a6a; } .fx-nav-ic.t-directory, .fx-hero.t-directory { background: #eef1f6; color: #3e4a60; } .fx-nav-ic.t-saved, .fx-hero.t-saved { background: #fdeaf5; color: #b0307c; }
.fx-nav-ic.t-dash, .fx-hero.t-dash { background: #eef1f6; color: #3e4a60; } .fx-nav-ic.t-msg, .fx-hero.t-msg { background: #e8f1ff; color: #0b63d6; } .fx-nav-ic.t-map, .fx-hero.t-map { background: #e2f7f1; color: #0b8a6a; }
.fx-left-foot { color: var(--dx-text-3); padding: .9rem .4rem 0; line-height: 1.7; }
.fx-left-foot a { color: var(--dx-text-3); }

/* page head */
.fx-hero { background: #fff; border-radius: 18px; border: 1px solid #e3e9f2; padding: 1rem 1.15rem; margin-bottom: 1rem; position: relative; overflow: hidden; }
.fx-hero::after { content: ""; position: absolute; inset-inline-end: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(25,195,255,.14), transparent 70%); pointer-events: none; }
.fx-hero-row { display: flex; align-items: center; gap: .85rem; }
.fx-hero-ic { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; background: var(--dx-accent-soft); color: var(--dx-accent); }
.fx-hero.t-cases .fx-hero-ic { background: #ffe9ee; color: #c8243f; } .fx-hero.t-jobs .fx-hero-ic { background: #ebeaff; color: #4b46c9; }
.fx-hero.t-courses .fx-hero-ic { background: #f2e9ff; color: #7a3fd0; } .fx-hero.t-listings .fx-hero-ic { background: #fff1de; color: #b76a00; }
.fx-hero.t-market .fx-hero-ic { background: #e3f6fd; color: #077aa8; } .fx-hero.t-directory .fx-hero-ic { background: #eef1f6; color: #3e4a60; }
.fx-hero-t { font-size: 1.35rem; font-weight: 800; color: var(--dx-text); margin: 0; line-height: 1.3; overflow-wrap: anywhere; }
.fx-hero-d { margin: .15rem 0 0; color: var(--dx-text-3); font-size: .9rem; }
.fx-hero.is-detail .fx-hero-t { font-size: 1.25rem; }
.fx-back { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 700; color: var(--dx-text-3); margin-bottom: .55rem; }
.fx-back:hover { color: var(--dx-accent); }

/* ---------- composer / welcome ---------- */
.fx-compose { background: #fff; border-radius: 18px; border: 1px solid #e3e9f2; padding: .9rem 1rem .6rem; margin-bottom: 1rem; box-shadow: var(--dx-sh-1); }
.fx-compose-top { display: flex; align-items: center; gap: .7rem; }
.fx-compose-top .avatar-circle { width: 44px; height: 44px; flex: 0 0 44px; }
.fx-compose-in { flex: 1; text-align: start; border: 0; background: #eef2f8; border-radius: 999px; height: 44px; padding: 0 1.1rem; color: var(--dx-text-3); font-weight: 600; font-family: inherit; }
.fx-compose-in:hover { background: #e4eaf4; }
.fx-compose-acts { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .6rem; border-top: 1px solid #eef2f7; padding-top: .45rem; }
.fx-compose-acts a { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .45rem .6rem; border-radius: 10px; font-weight: 700; font-size: .86rem; color: var(--dx-text-2); }
.fx-compose-acts a:hover { background: #f2f6fc; }
.fx-compose-acts .t-case i { color: #e0335a; } .fx-compose-acts .t-job i { color: #4b46c9; } .fx-compose-acts .t-course i { color: #7a3fd0; } .fx-compose-acts .t-listing i { color: #d98300; }
.fx-welcome { border-radius: 20px; padding: 1.4rem 1.3rem; margin-bottom: 1rem; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, rgba(25,195,255,.55) 0%, transparent 55%), linear-gradient(135deg, #071430 0%, #0a1a3a 45%, #0b4fb3 100%); }
.fx-welcome-t { font-size: 1.45rem; font-weight: 800; line-height: 1.3; }
.fx-welcome p { color: #d4e2f6; margin: .4rem 0 1rem; max-width: 34rem; }

/* ---------- feed head + filters ---------- */
.fx-feed-head { margin: .2rem 0 .7rem; }
.fx-feed-head .dx-sec-t { font-size: 1.2rem; }
.fx-filters { margin: 0 0 1rem; }
.fx-filters-in { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.fx-filters-in::-webkit-scrollbar { display: none; }
.fx-fchip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .9rem; border-radius: 999px; border: 1px solid #d9e1ec; background: #fff; color: var(--dx-text-2); font-weight: 700; font-size: .86rem; white-space: nowrap; }
.fx-fchip:hover { border-color: var(--dx-accent); color: var(--dx-accent); }
.fx-fchip.is-on { background: var(--dx-accent); border-color: var(--dx-accent); color: #fff; }
.fx-fchip.is-near { margin-inline-start: auto; }

/* ---------- post card ---------- */
.fx-feed { display: flex; flex-direction: column; gap: 1rem; }
.fx-post { background: #fff; border-radius: 18px; border: 1px solid #e3e9f2; box-shadow: var(--dx-sh-1); overflow: hidden; position: relative; }
.fx-post.is-emg { border-color: #f3b6c1; box-shadow: 0 0 0 3px rgba(224,51,90,.08); }
.fx-post-h { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem .4rem; }
.fx-av { position: relative; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #dbe8fb, #eaf3ff); color: var(--dx-accent-ink); font-weight: 800; font-size: 1.1rem; }
.fx-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.fx-av.sm { flex-basis: 36px; width: 36px; height: 36px; font-size: .95rem; }
.fx-post-who { min-width: 0; flex: 1; }
.fx-post-nm { display: flex; align-items: center; gap: .3rem; font-weight: 800; color: var(--dx-text); font-size: .96rem; min-width: 0; }
.fx-post-nm a, .fx-post-nm span:first-child { color: var(--dx-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-post-nm a:hover { color: var(--dx-accent); }
.fx-vf { color: #1e88ff; font-size: .9rem; flex: 0 0 auto; }
.fx-post-sub { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .55rem; font-size: .78rem; color: var(--dx-text-3); min-width: 0; }
.fx-post-sub > span + span::before { content: "·"; margin-inline-end: .55rem; color: #b5bfcd; }
.fx-kind { font-weight: 800; }
.dx-hue-rose .fx-kind { color: #c8243f; } .dx-hue-indigo .fx-kind { color: #4b46c9; } .dx-hue-violet .fx-kind { color: #7a3fd0; }
.dx-hue-amber .fx-kind { color: #b76a00; } .dx-hue-sky .fx-kind { color: #077aa8; } .dx-hue-teal .fx-kind { color: #0b8a6a; } .dx-hue-blue .fx-kind { color: #0b63d6; }
.fx-km { color: var(--dx-accent-ink); font-weight: 700; }
.fx-more { border: 0; background: none; width: 36px; height: 36px; border-radius: 50%; color: var(--dx-text-3); }
.fx-more:hover { background: #eef2f8; }
.fx-post-b { display: block; padding: .2rem 1rem .75rem; color: inherit; }
.fx-post-t { font-size: 1.08rem; font-weight: 800; color: var(--dx-text); margin: 0 0 .25rem; line-height: 1.4; overflow-wrap: anywhere; }
.fx-post-b:hover .fx-post-t { color: var(--dx-accent-ink); }
.fx-emg { display: inline-flex; align-items: center; gap: .2rem; background: #e0335a; color: #fff; font-size: .72rem; padding: .1rem .5rem; border-radius: 999px; vertical-align: middle; }
.fx-post-x { color: var(--dx-text-2); font-size: .92rem; margin: 0 0 .5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }
.fx-facts { display: flex; flex-wrap: wrap; gap: .4rem; }
.fx-facts span { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--dx-text-2); background: #f3f6fb; border-radius: 8px; padding: .22rem .55rem; }
.fx-facts span i { color: var(--dx-text-3); }
.fx-facts span.is-strong { background: #e9f7ef; color: #0d6b3c; font-weight: 800; }
.fx-facts span.is-strong i { color: #0d6b3c; }
.fx-facts s { color: var(--dx-text-3); font-weight: 500; margin-inline-start: .2rem; }
.fx-media { display: block; position: relative; aspect-ratio: 16 / 9; background: #eef2f8; overflow: hidden; }
.fx-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
@media (hover: hover) { .fx-media:hover img { transform: scale(1.02); } }
.fx-media > i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2.4rem; color: #b8c4d6; }
.fx-media.is-blur { background: linear-gradient(135deg, #6d7f9e, #a5b6cf 45%, #d6dfeb), #c9d4e4; aspect-ratio: 16 / 7; }
.fx-media.is-blur::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.55), transparent 40%), radial-gradient(circle at 70% 60%, rgba(10,26,58,.35), transparent 45%); filter: blur(18px); }
.fx-blur-in { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .45rem; color: #fff; font-weight: 800; text-shadow: 0 1px 6px rgba(0,0,0,.35); font-size: .92rem; padding: 0 1rem; text-align: center; }
.fx-post-n { display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem 0; font-size: .8rem; color: var(--dx-text-3); min-height: 1.6rem; }
.fx-post-n i { color: #f2a10b; }
.fx-post-n a { color: var(--dx-text-3); }
.fx-post-n a:hover { color: var(--dx-accent); }
.fx-post-a { display: flex; align-items: center; gap: .25rem; padding: .4rem .55rem .55rem; border-top: 1px solid #eef2f7; margin-top: .45rem; }
.fx-act { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; background: none; color: var(--dx-text-2); font-weight: 700; font-size: .86rem; padding: .5rem .3rem; border-radius: 10px; font-family: inherit; white-space: nowrap; }
.fx-act:hover { background: #f2f6fc; color: var(--dx-text); }
.fx-act i { font-size: 1.05rem; }
.fx-act.is-on { color: #c97800; } .fx-act.is-on[data-fx="save"] { color: #b0307c; }
.fx-act[data-fx="react"].is-on i { animation: fx-pop .35s ease; }
@keyframes fx-pop { 50% { transform: scale(1.35); } }
.fx-cta { flex: 1.25 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; border-radius: 999px; background: var(--dx-accent); color: #fff !important; font-weight: 800; font-size: .86rem; padding: .5rem .8rem; white-space: nowrap; font-family: inherit; }
.fx-cta span { overflow: hidden; text-overflow: ellipsis; }
.fx-cta:hover { background: var(--dx-accent-hover); }
.fx-cta.is-on { background: #e8eef7; color: var(--dx-text) !important; }
.is-emg .fx-cta { background: #e0335a; }
@media (max-width: 420px) { .fx-act span { display: none; } .fx-act { flex: 0 0 auto; padding: .5rem .7rem; } .fx-cta { flex: 1 1 auto; } }

/* milestone */
.fx-ms { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; margin: .2rem 1rem .6rem; padding: 1.2rem 1rem; border-radius: 14px; color: var(--dx-text);
  background: radial-gradient(90% 120% at 50% 0%, #e8f2ff 0%, #f6f9fd 70%); border: 1px dashed #cddcf2; }
.fx-ms-ic { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; background: #fff3d6; color: #c98a00; box-shadow: var(--dx-sh-2); }
.fx-ms-ic.is-vf { background: #e3f0ff; color: #1e88ff; }
.fx-ms-t { font-weight: 800; font-size: 1rem; }
.fx-ms-specs { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; }
.fx-tag { font-size: .74rem; background: #fff; border: 1px solid #dbe4f0; border-radius: 999px; padding: .1rem .55rem; color: var(--dx-text-2); }

/* skeleton / states */
.fx-skel { padding: 1rem; display: flex; flex-direction: column; gap: .55rem; }
.fx-skel .fx-post-h { padding: 0; }
.sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #eef2f8 0%, #f7f9fc 40%, #eef2f8 80%); background-size: 200% 100%; animation: fx-sk 1.2s linear infinite; margin-bottom: .45rem; }
.fx-av.sk { height: 44px; margin: 0; }
.sk.w30 { width: 30%; } .sk.w50 { width: 50%; } .sk.w60 { width: 60%; } .sk.w80 { width: 80%; }
.sk-media { height: 180px; border-radius: 12px; }
@keyframes fx-sk { to { background-position: -200% 0; } }
.fx-sentinel { height: 1px; }
.fx-end { color: var(--dx-text-3); padding: 1.2rem 0; }
.fx-empty { background: #fff; border-radius: 18px; border: 1px dashed #cfd8e5; padding: 2.2rem 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.fx-empty > span { width: 64px; height: 64px; border-radius: 50%; background: var(--dx-accent-soft); color: var(--dx-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; margin-bottom: .3rem; }
.fx-empty b { color: var(--dx-text); } .fx-empty p { color: var(--dx-text-3); margin: 0 0 .6rem; font-size: .9rem; }
.fx-state { background: #fff; border-radius: 20px; border: 1px solid #e3e9f2; padding: 2.4rem 1.3rem; text-align: center; max-width: 620px; margin: 1rem auto; }
.fx-state-ic { width: 76px; height: 76px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; background: #fff3df; color: #b76a00; margin-bottom: .8rem; }
.fx-state-t { font-size: 1.3rem; font-weight: 800; color: var(--dx-text); }
.fx-state-p { color: var(--dx-text-3); max-width: 30rem; margin: .4rem auto 1.2rem; }

/* ---------- right rail ---------- */
.fx-box { background: #fff; border-radius: 16px; border: 1px solid #e3e9f2; padding: .85rem .9rem; margin-bottom: 1rem; }
.fx-box-t { display: flex; align-items: center; gap: .45rem; font-size: .92rem; font-weight: 800; color: var(--dx-text); margin: 0 0 .6rem; }
.fx-box-t i { color: var(--dx-accent); }
.fx-box-t a { font-size: .78rem; font-weight: 700; }
.fx-box-cta { background: linear-gradient(160deg, #eaf3ff, #fff 70%); }
.fx-person { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; }
.fx-person + .fx-person { border-top: 1px solid #f0f3f8; }
.fx-person-nm { display: flex; align-items: center; gap: .25rem; font-weight: 750; font-size: .88rem; color: var(--dx-text); min-width: 0; }
.fx-person-sub { font-size: .75rem; color: var(--dx-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-follow-sm { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .25rem; border: 1px solid var(--dx-accent); color: var(--dx-accent); background: #fff; border-radius: 999px; font-size: .76rem; font-weight: 800; padding: .25rem .6rem; font-family: inherit; }
.fx-follow-sm:hover { background: var(--dx-accent-soft); }
.fx-follow-sm.is-on { border-color: #d9e1ec; color: var(--dx-text-3); }
.fx-mini { display: flex; align-items: center; gap: .65rem; padding: .45rem 0; color: var(--dx-text); }
.fx-mini + .fx-mini { border-top: 1px solid #f0f3f8; }
.fx-mini-t { display: block; font-weight: 700; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-mini-s { display: block; font-size: .75rem; color: var(--dx-text-3); }
.fx-mini:hover .fx-mini-t { color: var(--dx-accent); }
.fx-cal { flex: 0 0 42px; height: 46px; border-radius: 10px; background: #f2e9ff; color: #7a3fd0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.fx-cal b { font-size: 1.05rem; } .fx-cal small { font-size: .62rem; font-weight: 700; margin-top: 2px; }
.fx-mini-ic { flex: 0 0 42px; height: 42px; border-radius: 10px; background: #ebeaff; color: #4b46c9; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }

/* ---------- detail pages: social bar + comments ---------- */
.fx-bar { display: flex; flex-wrap: wrap; gap: .3rem; background: #fff; border: 1px solid #e3e9f2; border-radius: 14px; padding: .35rem; margin-bottom: 1rem; }
.fx-bar .fx-act { flex: 0 1 auto; padding-inline: .8rem; }
.fx-bar .fx-n { font-weight: 800; color: var(--dx-text); }
.fx-bar .fx-n:empty { display: none; }
.fx-act-follow { margin-inline-start: auto; color: var(--dx-accent) !important; }
.fx-act-follow span { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.fx-act-follow.is-on { color: var(--dx-text-3) !important; }
@media (max-width: 420px) { .fx-bar .fx-act span { display: inline; } .fx-bar .fx-act { flex: 1 1 auto; } .fx-act-follow { flex-basis: 100% !important; } }
.fx-comments { border-radius: 18px !important; border: 1px solid #e3e9f2 !important; margin-top: 1rem; }
.fx-cmt-list { display: flex; flex-direction: column; gap: .8rem; margin: .4rem 0 1rem; }
.fx-cmt { display: flex; gap: .6rem; align-items: flex-start; scroll-margin-top: 90px; }
.fx-cmt:target .fx-cmt-bubble { box-shadow: 0 0 0 2px var(--dx-accent); }
.fx-cmt-b { min-width: 0; flex: 1; }
.fx-cmt-bubble { display: inline-block; max-width: 100%; background: #f1f4f9; border-radius: 4px 16px 16px 16px; padding: .5rem .8rem; }
[dir=rtl] .fx-cmt-bubble { border-radius: 16px 4px 16px 16px; }
.fx-cmt-nm { font-weight: 800; font-size: .84rem; color: var(--dx-text); }
.fx-cmt-x { white-space: pre-line; overflow-wrap: anywhere; font-size: .92rem; color: var(--dx-text-2); }
.fx-cmt-m { display: flex; gap: .8rem; font-size: .75rem; color: var(--dx-text-3); padding: .15rem .5rem 0; }
.fx-cmt-m a { color: inherit; }
.fx-cmt-form { display: flex; gap: .55rem; align-items: flex-start; }
.fx-cmt-form .avatar-circle { width: 38px; height: 38px; flex: 0 0 38px; }
.fx-cmt-form textarea { border-radius: 20px; resize: none; min-height: 42px; padding: .55rem .95rem; background: #f6f8fc; }
.fx-cmt-form .btn { border-radius: 50%; width: 42px; height: 42px; padding: 0; flex: 0 0 42px; }

/* ---------- module pages inside the front: lighter AdminLTE cards ---------- */
.dx-front .fx-main > .card, .dx-front .fx-main .card.card-outline { border: 1px solid #e3e9f2 !important; border-radius: 18px !important; box-shadow: var(--dx-sh-1); border-top-width: 1px !important; }
.dx-front .fx-main .card-outline > .card-header { background: #fff; border-bottom: 1px solid #eef2f7; border-radius: 18px 18px 0 0; }
.dx-front .fx-main .card-footer { background: #fff; border-radius: 0 0 18px 18px; }
.dx-front .dx-mcard { border-radius: 16px; }
.dx-front .alert { border-radius: 14px; }
.dx-front .dx-guest-bar { background: #fff; border: 1px solid #dfe8f5; border-radius: 14px; padding: .55rem .8rem; }

/* ---------- profile (directory / @handle) ---------- */
.fx-prof { background: #fff; border-radius: 20px; border: 1px solid #e3e9f2; overflow: hidden; margin-bottom: 1rem; box-shadow: var(--dx-sh-1); }
.fx-prof-cover { height: 150px; position: relative; background: radial-gradient(80% 160% at 85% 0%, rgba(25,195,255,.6) 0%, transparent 60%), linear-gradient(120deg, #071430 0%, #0a1a3a 40%, #0b4fb3 100%); }
.fx-prof-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 18px 18px; }
.fx-prof-cover.k-clinic { background: radial-gradient(80% 160% at 85% 0%, rgba(25,195,255,.55) 0%, transparent 60%), linear-gradient(120deg, #052a3a 0%, #075a7a 50%, #0b8fb3 100%); }
.fx-prof-cover.k-supplier { background: radial-gradient(80% 160% at 85% 0%, rgba(80,220,170,.5) 0%, transparent 60%), linear-gradient(120deg, #06261f 0%, #0a5a48 50%, #0b8a6a 100%); }
.fx-prof-cover.k-lab, .fx-prof-cover.k-cad_designer { background: radial-gradient(80% 160% at 85% 0%, rgba(190,140,255,.5) 0%, transparent 60%), linear-gradient(120deg, #1a0b3a 0%, #3b1f7a 50%, #6b3fd0 100%); }
.fx-prof-cover.k-maint_tech, .fx-prof-cover.k-maint_engineer { background: radial-gradient(80% 160% at 85% 0%, rgba(255,170,90,.5) 0%, transparent 60%), linear-gradient(120deg, #2a1204 0%, #7c2d12 50%, #f97316 100%); }
.fx-prof-body { padding: 0 1.2rem 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: flex-end; }
.fx-prof-av { margin-top: -54px; position: relative; z-index: 1; flex: 0 0 auto; width: 116px; height: 116px; border-radius: 50%; border: 4px solid #fff; background: linear-gradient(135deg, #dbe8fb, #eaf3ff); box-shadow: var(--dx-sh-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 800; color: var(--dx-accent-ink); overflow: hidden; }
.fx-prof-av img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.fx-prof-id { flex: 1 1 260px; min-width: 0; padding-top: .6rem; }
.fx-prof-nm { font-size: 1.45rem; font-weight: 800; color: var(--dx-text); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; overflow-wrap: anywhere; }
.fx-prof-sub { color: var(--dx-text-3); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .2rem .8rem; margin-top: .15rem; }
.fx-prof-stats { display: flex; gap: 1.2rem; margin-top: .45rem; font-size: .86rem; color: var(--dx-text-3); }
.fx-prof-stats b { color: var(--dx-text); font-size: 1rem; }
.fx-prof-btns { display: flex; flex-wrap: wrap; gap: .45rem; padding-bottom: .2rem; }
.fx-prof-btns .btn { border-radius: 999px; font-weight: 700; }
.fx-tabs { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; border-top: 1px solid #eef2f7; padding: 0 .8rem; }
.fx-tabs::-webkit-scrollbar { display: none; }
.fx-tabs .nav-link { flex: 0 0 auto; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--dx-text-3); font-weight: 750; padding: .8rem .9rem; background: none; white-space: nowrap; }
.fx-tabs .nav-link.active { color: var(--dx-accent); border-bottom-color: var(--dx-accent); }
.fx-tabs .nav-link .badge { background: #eef2f8; color: var(--dx-text-2); font-weight: 700; margin-inline-start: .25rem; }

/* footer + bottom bar room */
.fx-foot { color: var(--dx-text-3); padding: 1rem 1rem 1.5rem; }
.fx-foot a { color: var(--dx-text-3); }
@media (max-width: 991.98px) {
  .fx-shell { padding-top: .8rem; gap: .9rem; }
  .fx-foot { padding-bottom: calc(var(--dx-bn-total, 64px) + 1.2rem); }
  .fx-top-in { height: 58px; gap: .55rem; padding: 0 .75rem; }
  .fx-strip { top: calc(58px + var(--dx-sat, env(safe-area-inset-top, 0px))); }
  .fx-search input { height: 40px; font-size: .9rem; }
  .fx-ic { width: 38px; height: 38px; font-size: 1.05rem; }
  .fx-me-btn .avatar-circle { width: 36px; height: 36px; }
  .fx-hero { padding: .85rem .95rem; border-radius: 16px; }
  .fx-hero-t { font-size: 1.15rem; }
}
@media (max-width: 575.98px) {
  .fx-shell { padding-inline: .6rem; }
  .fx-logo img { height: 28px; }
  .fx-post, .fx-compose, .fx-hero { border-radius: 14px; }
  .fx-prof-cover { height: 110px; }
  .fx-prof-av { width: 92px; height: 92px; margin-top: -46px; font-size: 2rem; }
  .fx-prof-nm { font-size: 1.2rem; }
  .fx-prof-btns { width: 100%; }
  .fx-prof-btns .btn { flex: 1 1 auto; }
  .fx-fchip.is-near { margin-inline-start: 0; }
}
.fx-media.is-broken { aspect-ratio: auto; height: 84px; background: linear-gradient(135deg, #f3f6fb, #e9eef6); }
.fx-media { max-height: 440px; }
/* grouped «new members» card: a horizontal strip of mini profiles */
.fx-joined .fx-ms-ic { width: 44px; height: 44px; font-size: 1.2rem; flex: 0 0 44px; }
.fx-joined-list { display: flex; gap: .7rem; overflow-x: auto; padding: .4rem 1rem 1rem; scrollbar-width: thin; }
.fx-joined-i { flex: 0 0 148px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; border: 1px solid #e3e9f2; border-radius: 14px; padding: .8rem .5rem; background: linear-gradient(180deg, #f5f9ff, #fff 60%); }
.fx-joined-i .fx-av { width: 56px; height: 56px; flex-basis: 56px; font-size: 1.3rem; }
.fx-joined-nm { display: flex; align-items: center; gap: .2rem; max-width: 100%; font-weight: 800; font-size: .86rem; color: var(--dx-text); }
.fx-joined-nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-joined-i small { color: var(--dx-text-3); font-size: .72rem; min-height: 1.1em; }

/* ===== «Opportunities map» /map in the front layout (views/map/index.ejs · public/js/network-map.js sizes .nm-root to the viewport,
   between the top bar / section strip and the bottom tab bar). Visitors: cases + jobs, approximate (~1 km). ===== */
.fx-map-page .fx-shell { max-width: none; padding: 0; gap: 0; }
.fx-map-page .fx-main > .dx-guest-bar, .fx-map-page .fx-main > .alert, .fx-map-page .fx-main > .dx-demo-banner { margin: .55rem .75rem !important; }
.fx-map-page .fx-foot { display: none; }
.fx-map-page .fx-left { padding: 1rem .75rem 0; background: #fff; border-inline-end: 1px solid #e3e9f2; }
@media (max-width: 1199.98px) { .fx-map-page .fx-left { display: none !important; } .fx-map-page .fx-shell { grid-template-columns: minmax(0, 1fr); } }
.nm-side-lead { margin: 0; padding: .55rem 1rem; font-size: .8rem; line-height: 1.55; color: #50607a; border-bottom: 1px solid #eef1f5; }
.nm-side-join { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem 1rem; border-top: 1px solid #eef1f5; font-size: .8rem; font-weight: 600; color: #0a1a3a; background: #f7faff; }
.nm-side-join .bi { color: #1e88ff; }
/* the zoom buttons sit bottom-left on both engines → in LTR the colour guide moves right of them */
@media (min-width: 992px) { [dir=ltr] .nm-legend { inset-inline-start: 62px; } }
/* phones: the visitor bar and the demo notice shrink to one compact row each so the map keeps the screen */
@media (max-width: 991.98px) {
  .fx-map-page .fx-main > .dx-guest-bar { padding: .4rem .6rem !important; margin: .4rem .5rem !important; flex-wrap: nowrap !important; }
  .fx-map-page .fx-main > .dx-guest-bar > .small { font-size: .74rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .fx-map-page .fx-main > .dx-guest-bar .btn { padding: .2rem .55rem; font-size: .76rem; white-space: nowrap; }
  .fx-map-page .fx-main > .dx-guest-bar > .btn-outline-secondary { display: none; }
  .fx-map-page .fx-main > .dx-demo-banner { padding: .35rem .6rem !important; margin: 0 .5rem .4rem !important; }
  .fx-map-page .fx-main > .dx-demo-banner > .d-flex { flex-wrap: nowrap !important; }
  .fx-map-page .fx-main > .dx-demo-banner .small { font-size: .72rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .fx-map-page .fx-main > .dx-demo-banner .btn-outline-secondary { display: none; }
  .fx-map-page .fx-main > .dx-demo-banner .btn { padding: .2rem .5rem; font-size: .72rem; white-space: nowrap; }
}

/* ===== ☰ menu (owner 2026-11-02 «القايمة الجنبية فين») — button at the start of the top bar + the one side sheet (views/partials/front_menu.ejs) ===== */
.fx-menu-btn { flex: 0 0 auto; border: 0; gap: .35rem; }
.fx-menu-btn .fx-menu-l { display: none; font-size: .9rem; font-weight: 700; }
@media (min-width: 768px) { .fx-menu-btn { width: auto; padding-inline: .8rem .95rem; border-radius: 999px; } .fx-menu-btn .fx-menu-l { display: inline; } }
@media (max-width: 380px) { .fx-menu-btn { width: 38px; height: 38px; } .fx-logo img { height: 30px; } }
.fx-mnu { --bs-offcanvas-width: min(340px, 88vw); }
.fx-mnu-head { background: var(--dx-navy, #0a1a3a); color: #fff; padding: .9rem 1rem; gap: .6rem; }
.fx-mnu-head .btn-close { filter: invert(1) grayscale(1) brightness(2); flex: 0 0 auto; }
.fx-mnu-me { display: flex; align-items: center; gap: .7rem; min-width: 0; color: #fff; text-decoration: none; flex: 1 1 auto; }
.fx-mnu-me .avatar-circle { width: 46px; height: 46px; flex: 0 0 46px; border: 2px solid rgba(255,255,255,.85); }
.fx-mnu-gi { font-size: 2.2rem; line-height: 1; flex: 0 0 auto; }
.fx-mnu-who { display: flex; flex-direction: column; min-width: 0; }
.fx-mnu-who b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-mnu-who small { opacity: .8; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-mnu-body { padding: 0 0 1rem; }
.fx-mnu-join { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .9rem 1rem .4rem; }
.fx-mnu-join .btn { border-radius: 999px; font-weight: 700; }
details.fx-mnu-g { border-bottom: 1px solid #e8edf4; }
.fx-mnu summary { list-style: none; display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: .8rem 1rem; font-weight: 800; color: var(--dx-text, #0f1b33); }
.fx-mnu summary::-webkit-details-marker { display: none; }
.fx-mnu summary > span:first-child { flex: 1 1 auto; display: inline-flex; align-items: center; gap: .55rem; }
.fx-mnu-n { font-size: .72rem; font-weight: 700; color: var(--dx-text-3, #5b6880); background: #eef2f8; border-radius: 999px; padding: .05rem .5rem; }
.fx-mnu-ch { transition: transform .15s; color: #8592a6; font-size: .85rem; }
.fx-mnu details[open] > summary > .fx-mnu-ch { transform: rotate(180deg); }
.fx-mnu-list { padding: 0 .5rem .6rem; }
.fx-mnu-list a { display: flex; align-items: center; gap: .65rem; padding: .6rem .75rem; border-radius: 10px; color: var(--dx-text-2, #2b3850); font-weight: 600; text-decoration: none; min-height: 44px; }
.fx-mnu-list a > .bi { font-size: 1.1rem; color: var(--dx-accent, #1e88ff); width: 1.3rem; text-align: center; }
.fx-mnu-list a[aria-current="page"], .fx-mnu-list a.is-on { background: var(--dx-accent-soft, #e8f2ff); color: var(--dx-accent-ink, #0b5bd3); }
.fx-mnu-list a:active { background: #eef2f8; }
@media (hover: hover) { .fx-mnu-list a:hover, .fx-mnu summary:hover { background: #f3f6fb; } }
.fx-mnu-b { margin-inline-start: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e0263b; color: #fff; font-size: .7rem; line-height: 20px; text-align: center; }
.fx-mnu-sub > summary { font-weight: 600; padding: .6rem .75rem; color: var(--dx-text-2, #2b3850); min-height: 44px; }
.fx-mnu-sub > summary .bi:not(.fx-mnu-ch) { color: var(--dx-accent, #1e88ff); }
.fx-mnu-sub > a { padding-inline-start: 2.6rem; font-weight: 500; font-size: .92rem; }
.fx-mnu-sec .fx-nav { padding: 0; }
.fx-mnu-foot { padding: .9rem 1rem 0; display: flex; flex-direction: column; gap: .35rem; }
.fx-mnu-foot > a, .fx-mnu-out { display: flex; align-items: center; gap: .6rem; padding: .55rem .25rem; color: var(--dx-text-2, #2b3850); font-weight: 600; text-decoration: none; background: none; border: 0; width: 100%; text-align: start; }
.fx-mnu-out { color: #c4222f; }
.fx-mnu-legal { font-size: .8rem; color: var(--dx-text-3, #5b6880); padding-top: .4rem; }
.fx-mnu-legal a { color: inherit; }
