/* ==========================================================================
   Al-Darani — corporate design layer
   Loaded after app.css (precompiled Tailwind). Hand-written, so it never
   depends on a Tailwind class that may be missing from the compiled build.
   Palette is taken from the logo: red, black, steel silver, blue.
   ========================================================================== */

:root {
  --sec: 6.5rem;           /* one vertical rhythm for every section */
  --c-ink: #0a1322;        /* midnight — hero, dark bands */
  --c-ink-2: #0f1b2f;
  --c-ink-3: #16253d;
  --c-navy: #012152;       /* existing brand navy (headings) */
  --c-red: #d9101f;        /* logo red */
  --c-red-d: #b00d19;
  --c-blue: #1459b8;       /* logo blue */
  --c-silver: #aab2bf;     /* logo globe silver */
  --c-silver-l: #dfe3ea;
  --c-text: #1d2738;
  --c-muted: #5f6b7d;
  --c-line: #e3e7ee;
  --c-bg: #f4f6f9;
  --c-wa: #128c4a;
  --r: 10px;
  --r-lg: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(10, 19, 34, .04), 0 8px 24px -12px rgba(10, 19, 34, .18);
  --shadow-h: 0 2px 4px rgba(10, 19, 34, .05), 0 22px 44px -18px rgba(10, 19, 34, .32);

  /* Formal typography, site-wide: app.css reads these variables. */
  --font-cairo: "IBM Plex Sans Arabic", "Cairo", system-ui, sans-serif;
  --font-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", sans-serif;
}

html, body { font-family: var(--font-cairo); }
h1, h2, h3, .f-display { font-family: var(--font-display); letter-spacing: 0; }
html { scroll-behavior: smooth; }
::selection { background: var(--c-red); color: #fff; }

/* Tone down the old rounded/playful Tailwind look everywhere (consistency). */
.rounded-card { border-radius: var(--r-lg) !important; }
.rounded-card-lg { border-radius: 18px !important; }
.btn-red { border-radius: 8px !important; background-color: var(--c-red) !important; }
.btn-red:hover { background-color: var(--c-red-d) !important; }
.btn-outline, .btn-blue { border-radius: 8px !important; }

.ic { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.container-w { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container-w { padding-inline: 2rem; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 8px; border: 1px solid transparent;
  font-weight: 700; font-size: .93rem; line-height: 1.1; white-space: nowrap; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--c-red); color: #fff; box-shadow: 0 12px 26px -12px rgba(217, 16, 31, .7); }
.btn--red:hover { background: var(--c-red-d); }
.btn--dark { background: var(--c-ink); color: #fff; }
.btn--dark:hover { background: var(--c-ink-3); }
.btn--line-light { color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn--line-light:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn--line { color: var(--c-ink); border-color: #c9d0db; background: #fff; }
.btn--line:hover { border-color: var(--c-ink); }
.btn--wa { background: var(--c-wa); color: #fff; box-shadow: 0 12px 26px -14px rgba(18, 140, 74, .8); }
.btn--wa:hover { background: #0e7a3f; }
.btn--block { width: 100%; }
.btn--sm { padding: .7rem 1rem; font-size: .82rem; }

/* ---------- section heading ---------- */
.s-head { text-align: center; max-width: 820px; margin: 0 auto 2.5rem; }
.s-kicker { display: inline-flex; align-items: center; gap: .65rem; font-size: .82rem; font-weight: 700; color: var(--c-red); letter-spacing: .02em; }
.s-kicker::before, .s-kicker::after { content: ""; width: 26px; height: 2px; background: var(--c-red); }
.s-head h2 { margin-top: 1rem; font-size: clamp(1.6rem, 3.2vw, 2.35rem); font-weight: 800; color: var(--c-ink); line-height: 1.5; }
.s-head p { margin-top: 1rem; color: var(--c-muted); line-height: 2; font-size: 1rem; }
.s-head--light h2 { color: #fff; }
.s-head--light p { color: rgba(255, 255, 255, .7); }

/* ==========================================================================
   HEADER brand lockup
   ========================================================================== */
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 46px; width: auto; transition: transform .5s var(--ease); }
.brand:hover img { transform: scale(1.04); }
.brand__txt { display: none; line-height: 1.25; border-inline-start: 1px solid var(--c-line); padding-inline-start: .7rem; }
@media (min-width: 640px) { .brand__txt { display: block; } }
.brand__ar { display: block; font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: var(--c-ink); }
.brand__en { display: block; font-family: "Inter", sans-serif; font-weight: 600; font-size: .58rem; letter-spacing: .2em; color: var(--c-silver); text-transform: uppercase; margin-top: .15rem; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--c-ink);
  /* fills the first screen: viewport - header (top strip 44px + nav 80px) - the half of the features bar that hangs below */
  min-height: calc(100svh - 124px - 3.4rem);
  display: flex; flex-direction: column; justify-content: center;
  padding: 3.5rem 0 calc(3.1rem + 3.5rem); border-bottom: 1px solid var(--c-line);
  background:
    radial-gradient(ellipse 65% 85% at 100% 0%, rgba(217, 16, 31, .075), transparent 70%),
    linear-gradient(180deg, #fbfbfc 0%, #ffffff 100%);
}
@media (max-width: 1023px) { .hero { min-height: calc(100svh - 80px - 3.4rem); } }
/* the logo as a quiet watermark behind the wordmark */
.emblem { position: absolute; z-index: -1; left: 50%; top: 45%; width: min(600px, 110vw); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.emblem__mark {
  position: absolute; inset: 10%; background: var(--c-ink); opacity: .055;
  -webkit-mask: url("/assets/img/logo-clear.webp") center / contain no-repeat;
  mask: url("/assets/img/logo-clear.webp") center / contain no-repeat;
  animation: emblem-in 1.6s var(--ease) both;
}
@keyframes emblem-in { from { opacity: 0; } to { opacity: .055; } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__content { position: relative; text-align: center; max-width: 1000px; margin-inline: auto; padding-inline: 1.25rem; }
.hero__kicker { display: inline-flex; align-items: center; gap: .75rem; font-size: .85rem; font-weight: 600; color: var(--c-muted); }
.hero__kicker::before, .hero__kicker::after { content: ""; width: 30px; height: 1px; background: var(--c-red); }
.hero__kicker svg { color: var(--c-red); }

/* wordmark: "شركة الدرعاني" on one line, "للاستقدام" centred under it between two rules */
.wordmark { margin: 1.8rem 0 0; color: var(--c-ink); line-height: 1.3; font-size: clamp(2.3rem, 5vw, 4.7rem); }
.wordmark__l1 { display: block; font-weight: 900; }
.wordmark__soft { font-weight: 700; color: #34405a; margin-inline-end: .12em; }
.wordmark__name { font-weight: 900; color: var(--c-ink); }
.wordmark__l2 {
  display: flex; align-items: center; justify-content: center; gap: .55em;
  margin-top: .3em; font-size: .52em; font-weight: 800; color: var(--c-red); letter-spacing: .01em;
}
.wordmark__l2::before, .wordmark__l2::after { content: ""; width: 2.6em; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #c9d0db); }
.wordmark__l2::after { transform: scaleX(-1); }
.wordmark__en {
  display: block; margin-top: 1.3rem; font-family: "Inter", sans-serif; font-weight: 600; font-size: clamp(.62rem, 1vw, .78rem);
  letter-spacing: .42em; color: #8a94a3; text-transform: uppercase;
}

.hero__tagline { margin: 1.6rem auto 0; max-width: 660px; color: var(--c-muted); font-size: clamp(.95rem, 1.3vw, 1.1rem); line-height: 2; }
.hero__tagline b { color: var(--c-ink); font-family: "Inter", sans-serif; }
.hero__ctas { margin-top: 3.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .85rem; }

/* load-in choreography */
.in { opacity: 0; transform: translateY(22px); animation: in 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes in { to { opacity: 1; transform: none; } }

/* ==========================================================================
   STATS band
   ========================================================================== */
.stats { background: var(--c-ink); border-top: 1px solid rgba(255, 255, 255, .06); }
.stats__inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 0; padding: 2.6rem 0; }
@media (min-width: 1024px) { .stats__inner { grid-template-columns: repeat(5, 1fr); } }
.stat { text-align: center; padding: 0 1rem; position: relative; }
@media (min-width: 1024px) { .stat + .stat::before { content: ""; position: absolute; inset-inline-start: 0; top: 12%; bottom: 12%; width: 1px; background: rgba(255, 255, 255, .09); } }
.stat__num { display: block; font-family: "Inter", sans-serif; font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff; font-variant-numeric: tabular-nums; }
.stat__num::after { content: ""; display: block; width: 22px; height: 2px; margin: .55rem auto 0; background: var(--c-red); }
.stat__label { display: block; margin-top: .55rem; font-size: .84rem; color: var(--c-silver); }

/* ==========================================================================
   WORKER CARD (shared: homepage + /workers.php)
   ========================================================================== */
.wk-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
/* Worker grids: whole rows only — 4 per row on desktop, 2 per row below that, so 4/8 cards never leave a lone card. */
@media (min-width: 961px) {
  .wk-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
  /* fewer than 4 cards (e.g. a small listing): keep them centred at a normal card width */
  .wk-grid--4:not(:has(> :nth-child(4))) { grid-template-columns: repeat(auto-fit, minmax(240px, 278px)); justify-content: center; }
}
@media (min-width: 561px) and (max-width: 960px) {
  .wk-grid--4 { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; }
}
@media (max-width: 560px) { .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; } }

.wk-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.wk-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c-red); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); z-index: 2; }
.wk-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); border-color: #cfd6e0; }
.wk-card:hover::before { transform: scaleX(1); }
.wk-card[hidden] { display: none; }

.wk-card__photo { position: relative; display: block; aspect-ratio: 4 / 4.3; background: linear-gradient(180deg, #eef1f5, #dfe4eb); overflow: hidden; }
.wk-card__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 1s var(--ease); }
.wk-card:hover .wk-card__photo > img { transform: scale(1.04); }
.wk-card__ph { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa5b5; }
.wk-card__ph svg { width: 38%; height: 38%; }
.wk-card__status {
  position: absolute; top: 10px; inset-inline-end: 10px; display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .65rem; border-radius: 6px; background: rgba(255, 255, 255, .94); color: #0d7a3e;
  font-size: .7rem; font-weight: 700; box-shadow: 0 2px 8px rgba(10, 19, 34, .12);
}
.wk-card__status i { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.wk-card__feat { position: absolute; top: 10px; inset-inline-start: 10px; padding: .3rem .6rem; border-radius: 6px; background: var(--c-red); color: #fff; font-size: .68rem; font-weight: 700; }

.wk-card__body { display: flex; flex: 1; flex-direction: column; padding: 1rem 1.05rem 1.1rem; }
.wk-card__meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .72rem; color: var(--c-muted); }
.wk-card__code { font-family: "Inter", sans-serif; font-weight: 700; color: var(--c-ink); letter-spacing: .02em; }
.wk-card__nat { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.wk-card__nat img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.wk-card__name {
  margin-top: .6rem; font-family: "Inter", var(--font-cairo); font-size: 1rem; font-weight: 700; color: var(--c-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
[dir="rtl"] .wk-card__name { text-align: right; }
.wk-card__role { margin-top: .15rem; font-size: .8rem; font-weight: 600; color: var(--c-red); }

.wk-card__facts { margin: .85rem 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--c-line); }
.wk-card__facts div { padding: .55rem 0; border-bottom: 1px solid var(--c-line); display: flex; justify-content: space-between; gap: .4rem; font-size: .78rem; }
.wk-card__facts div:nth-child(odd) { padding-inline-end: .7rem; border-inline-end: 1px solid var(--c-line); }
.wk-card__facts div:nth-child(even) { padding-inline-start: .7rem; }
.wk-card__facts dt { color: var(--c-muted); }
.wk-card__facts dd { margin: 0; font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.wk-card__facts dd.num { font-family: "Inter", sans-serif; }

.wk-card__actions { margin-top: auto; padding-top: 1rem; display: grid; gap: .5rem; }
.wk-card__actions .btn { padding: .78rem .8rem; font-size: .84rem; }
.wk-card__actions .btn:hover { transform: none; }

@media (max-width: 560px) {
  .wk-card__body { padding: .75rem .7rem .8rem; }
  .wk-card__meta { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .wk-card__facts { grid-template-columns: 1fr; }
  .wk-card__facts div:nth-child(odd) { padding-inline-end: 0; border-inline-end: 0; }
  .wk-card__facts div:nth-child(even) { padding-inline-start: 0; }
  .wk-card__facts div { font-size: .72rem; padding: .4rem 0; }
  .wk-card__actions .btn { font-size: .74rem; padding: .7rem .4rem; gap: .35rem; }
  .wk-card__status { font-size: .62rem; padding: .25rem .45rem; }
}

/* ==========================================================================
   HOMEPAGE workers section (4 visible + 4 under a fade with a button)
   ========================================================================== */
.wk-section { position: relative; padding: var(--sec) 0; background: var(--c-bg); }
.wk-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0 auto 3rem; }
.wk-tab {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 8px;
  background: #fff; border: 1px solid var(--c-line); color: var(--c-ink); font-size: .84rem; font-weight: 700;
  transition: all .25s;
}
.wk-tab svg { width: 16px; height: 16px; color: var(--c-muted); }
.wk-tab small { font-family: "Inter", sans-serif; font-size: .7rem; color: var(--c-muted); }
.wk-tab:hover { border-color: var(--c-ink); }
.wk-tab.is-active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.wk-tab.is-active svg, .wk-tab.is-active small { color: var(--c-silver-l); }

.wk-more { position: relative; margin-top: 1.4rem; max-height: 300px; overflow: hidden; }
.wk-more .wk-grid { pointer-events: none; user-select: none; }
.wk-more::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(244, 246, 249, 0) 0%, rgba(244, 246, 249, .55) 30%, rgba(244, 246, 249, .94) 62%, var(--c-bg) 85%);
}
.wk-more__cta { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.wk-more__cta p { font-size: .88rem; color: var(--c-muted); }
.wk-more__cta p b { font-family: "Inter", sans-serif; color: var(--c-red); }
.wk-foot { margin-top: 2.2rem; display: flex; justify-content: center; }
.wk-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1.5rem; border-radius: var(--r-lg); background: #fff; border: 1px dashed #c9d0db; color: var(--c-muted); line-height: 2; }

/* ==========================================================================
   ACCREDITATION section (Musaned + Ministry of Commerce)
   ========================================================================== */
.accr { padding: var(--sec) 0; background: #fff; }
.accr__grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .accr__grid { grid-template-columns: 1fr 1fr; } }
.accr__card { position: relative; display: flex; gap: 1.5rem; align-items: center; padding: 2rem; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: linear-gradient(180deg, #fff, #fafbfc); }
.accr__card::before { content: ""; position: absolute; inset-inline-start: 0; top: 2rem; bottom: 2rem; width: 3px; background: var(--c-red); border-radius: 2px; }
.accr__logo { flex-shrink: 0; width: 150px; height: 120px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1px solid var(--c-line); padding: 12px; }
.accr__logo img { display: block; max-width: 124px; max-height: 94px; width: auto; height: auto; }
.accr__logo img[src$=".svg"] { width: 124px; }
.accr__card h3 { font-size: 1.12rem; font-weight: 800; color: var(--c-ink); }
.accr__card p { margin-top: .5rem; font-size: .9rem; line-height: 1.95; color: var(--c-muted); }
.accr__num { display: inline-flex; gap: .4rem; margin-top: .7rem; font-size: .8rem; color: var(--c-ink); font-weight: 700; padding: .35rem .7rem; border-radius: 6px; background: var(--c-bg); }
.accr__num bdi { font-family: "Inter", sans-serif; }
@media (max-width: 560px) { .accr__card { flex-direction: column; text-align: center; padding: 1.6rem 1.2rem; } .accr__card::before { display: none; } }

/* ==========================================================================
   INNER PAGE HEADER
   ========================================================================== */
.ph {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 3.6rem 0 3.4rem;
  background: radial-gradient(ellipse 60% 90% at 85% 0%, rgba(20, 89, 184, .22), transparent 70%), linear-gradient(180deg, #0b1526, var(--c-ink));
}
.ph::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%, transparent); mask-image: linear-gradient(90deg, transparent, #000 50%, transparent); }
.ph::after { content: ""; position: absolute; z-index: -1; width: 420px; aspect-ratio: 1; inset-inline-end: -90px; top: 50%; transform: translateY(-50%); background: linear-gradient(160deg, #e9edf3, #8f99a8); opacity: .07; -webkit-mask: url("/assets/img/logo-clear.webp") center / contain no-repeat; mask: url("/assets/img/logo-clear.webp") center / contain no-repeat; }
.ph__crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .8rem; color: var(--c-silver); }
.ph__crumb a:hover { color: #fff; }
.ph__crumb span[aria-current] { color: #fff; }
.ph h1 { margin-top: .9rem; font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; line-height: 1.4; }
.ph h1::after { content: ""; display: block; width: 46px; height: 3px; margin-top: .9rem; background: var(--c-red); border-radius: 2px; }
.ph p { margin-top: 1rem; max-width: 680px; color: rgba(255, 255, 255, .72); line-height: 2; }
.ph--tall { padding-bottom: 6.5rem; }

/* ==========================================================================
   /workers.php
   ========================================================================== */
.wkp { padding: 0 0 5rem; background: var(--c-bg); }
.filters {
  display: grid; gap: .7rem; grid-template-columns: 1fr; padding: 1rem; margin-top: -4.2rem; position: relative; z-index: 2;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-h);
}
@media (min-width: 640px) { .filters { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .filters { grid-template-columns: 1.3fr repeat(5, minmax(0, 1fr)) auto; align-items: end; } }
.filters label { display: block; }
.filters label > span { display: block; margin-bottom: .35rem; font-size: .74rem; font-weight: 700; color: var(--c-muted); }
.filters input, .filters select {
  width: 100%; height: 46px; padding: 0 .9rem; border-radius: 8px; border: 1px solid #d6dce5; background: #fff;
  font: inherit; font-size: .88rem; color: var(--c-ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
.filters input:focus, .filters select:focus { border-color: var(--c-ink); box-shadow: 0 0 0 3px rgba(10, 19, 34, .08); }
.filters .btn { height: 46px; }
.wkp__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin: 2rem 0 1.4rem; }
.wkp__count { font-size: .92rem; color: var(--c-muted); }
.wkp__count b { color: var(--c-ink); font-family: "Inter", sans-serif; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-x { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: 6px; background: #fff; border: 1px solid var(--c-line); font-size: .76rem; font-weight: 700; color: var(--c-ink); }
.chip-x:hover { border-color: var(--c-red); color: var(--c-red); }
.pager { margin-top: 2.6rem; display: flex; align-items: center; justify-content: center; gap: .5rem; }
.pager a, .pager span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 .9rem; border-radius: 8px; border: 1px solid var(--c-line); background: #fff; font-weight: 700; font-size: .85rem; color: var(--c-ink); }
.pager a:hover { border-color: var(--c-ink); }
.pager span.is-cur { background: var(--c-ink); border-color: var(--c-ink); color: #fff; font-family: "Inter", sans-serif; }

/* ==========================================================================
   /worker-detail.php
   ========================================================================== */
.wd { padding: 2.5rem 0 5rem; background: var(--c-bg); }
.wd__grid { display: grid; gap: 1.6rem; }
@media (min-width: 960px) { .wd__grid { grid-template-columns: 400px 1fr; align-items: start; } }
.wd__photo { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--c-line); background: #e6eaf0; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow); }
.wd__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.wd__gallery { margin-top: .7rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.wd__gallery img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--c-line); }
.wd__panel { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 1.8rem; }
.wd__tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .7rem; border-radius: 6px; font-size: .74rem; font-weight: 700; background: var(--c-bg); color: var(--c-ink); }
.tag--ok { background: #e8f6ee; color: #0d7a3e; }
.tag--ok i { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.tag--red { background: #fdecee; color: var(--c-red); }
.wd__name { margin-top: 1rem; display: flex; align-items: center; gap: .7rem; font-family: "Inter", var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: var(--c-ink); }
.wd__name img { width: 32px; height: 22px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.wd__bio { margin-top: .9rem; color: var(--c-muted); line-height: 2; }
.wd__table { margin-top: 1.4rem; width: 100%; border-collapse: collapse; font-size: .9rem; }
.wd__table th, .wd__table td { padding: .8rem .2rem; border-bottom: 1px solid var(--c-line); text-align: start; }
.wd__table th { width: 38%; color: var(--c-muted); font-weight: 600; }
.wd__table td { color: var(--c-ink); font-weight: 700; }
.wd__salary { margin-top: 1.4rem; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-radius: 10px; background: var(--c-ink); color: #fff; }
.wd__salary span { color: var(--c-silver); font-size: .85rem; }
.wd__salary b { font-family: "Inter", sans-serif; font-size: 1.35rem; }
.wd__salary b small { font-family: var(--font-cairo); font-size: .8rem; color: var(--c-silver); margin-inline-start: .3rem; }
.wd__list { margin-top: 1.3rem; }
.wd__list h4 { font-size: .85rem; font-weight: 800; color: var(--c-ink); margin-bottom: .55rem; }
.wd__actions { margin-top: 1.6rem; display: grid; gap: .6rem; }
@media (min-width: 640px) { .wd__actions { grid-template-columns: 1.4fr 1fr 1fr; } }
.wd__actions form { display: contents; }
.wd__note { margin-top: .9rem; display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--c-muted); }
.wd__note svg { color: #0d7a3e; }
.wd__back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.2rem; font-size: .85rem; font-weight: 700; color: var(--c-muted); }
.wd__back:hover { color: var(--c-ink); }
[dir="rtl"] .wd__back svg { transform: scaleX(-1); }

/* ==========================================================================
   ABOUT page
   ========================================================================== */
.ab { padding: var(--sec) 0; }
.ab--alt { background: var(--c-bg); }
.ab__intro { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .ab__intro { grid-template-columns: 1.1fr .9fr; } }
.ab__intro h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--c-ink); line-height: 1.5; }
.ab__intro p { margin-top: 1rem; color: var(--c-muted); line-height: 2.1; }
.ab__lead { margin-top: 1.3rem !important; padding-inline-start: 1rem; border-inline-start: 3px solid var(--c-red); color: var(--c-ink) !important; font-weight: 600; font-size: 1.05rem; }
.ab__seal { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 420px; margin-inline: auto; width: 100%; border-radius: 50%; background: radial-gradient(circle, #fff 55%, var(--c-bg) 56%); border: 1px solid var(--c-line); }
.ab__seal::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 1px dashed #c9d0db; animation: spin 120s linear infinite; }
.ab__seal img { width: 55%; height: auto; }
.ab__seal span { position: absolute; bottom: 9%; padding: .45rem 1rem; border-radius: 6px; background: var(--c-ink); color: #fff; font-size: .8rem; font-weight: 700; }
.ab__mv { display: grid; gap: 1.2rem; margin-top: 3.5rem; }
@media (min-width: 768px) { .ab__mv { grid-template-columns: 1fr 1fr; } }
.ab__box { padding: 2rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow); }
.ab__box .ab__ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; background: var(--c-ink); color: #fff; }
.ab__box .ab__ic svg { width: 24px; height: 24px; }
.ab__box h3 { margin-top: 1.1rem; font-size: 1.15rem; font-weight: 800; color: var(--c-ink); }
.ab__box p { margin-top: .5rem; color: var(--c-muted); line-height: 2; }
.ab__values { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ab__values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ab__values { grid-template-columns: repeat(4, 1fr); } }
.ab__value { padding: 2rem 1.6rem; background: #fff; transition: background .3s; }
.ab__value:hover { background: #fbfcfd; }
.ab__value b { font-family: "Inter", sans-serif; font-size: .8rem; color: var(--c-red); }
.ab__value h3 { margin-top: .6rem; font-size: 1.05rem; font-weight: 800; color: var(--c-ink); }
.ab__value p { margin-top: .5rem; font-size: .88rem; color: var(--c-muted); line-height: 1.95; }
.ab__value svg { width: 28px; height: 28px; color: var(--c-ink); margin-top: 1rem; }
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 2.6rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; background: linear-gradient(110deg, var(--c-ink), #13243f); color: #fff; }
.cta-band::after { content: ""; position: absolute; width: 300px; aspect-ratio: 1; inset-inline-end: -70px; top: -80px; background: #fff; opacity: .05; -webkit-mask: url("/assets/img/logo-clear.webp") center / contain no-repeat; mask: url("/assets/img/logo-clear.webp") center / contain no-repeat; }
.cta-band h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 800; }
.cta-band p { margin-top: .4rem; color: var(--c-silver); }
.cta-band > div:last-child { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .7rem; }

/* footer accreditation row */
.foot-trust { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.2rem; }
.foot-trust span { display: inline-grid; place-items: center; height: 46px; padding: 6px 10px; border-radius: 8px; background: #fff; }
.foot-trust img { height: 32px; width: auto; }

/* ==========================================================================
   Scroll reveal (only when JS runs — content stays visible without it)
   ========================================================================== */
.lx-js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.lx-js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .hero { min-height: 0; padding: 3.5rem 0 8.5rem; }
  .btn { padding: .85rem 1.25rem; font-size: .88rem; }
  .cta-band { padding: 1.8rem; }
  .wd__panel { padding: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .in { opacity: 1; transform: none; }
  .lx-js [data-reveal] { opacity: 1; transform: none; }
}

/* "How recruitment works" (homepage) — align the old Tailwind section with the corporate palette */
.process-ic { background: #fff !important; color: var(--c-ink) !important; border: 1px solid var(--c-line); box-shadow: var(--shadow); }
.process-num { background: var(--c-red) !important; box-shadow: none !important; }

/* ==========================================================================
   Worker media: card badges, detail viewer, lightbox
   ========================================================================== */
.wk-card__media { position: absolute; bottom: 10px; inset-inline-start: 10px; display: flex; gap: .35rem; }
.wk-card__media span { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .5rem; border-radius: 6px; background: rgba(10, 19, 34, .78); color: #fff; font-size: .66rem; font-weight: 700; }
.wk-card__media span.is-cv { background: #fff; color: var(--c-ink); }
.wk-card__media svg { width: 12px; height: 12px; }

.mv__stage a { position: absolute; inset: 0; cursor: zoom-in; }
.mv__zoom, .mv__count { position: absolute; bottom: 10px; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 6px; background: rgba(10, 19, 34, .75); color: #fff; font-size: .72rem; font-weight: 700; pointer-events: none; }
.mv__zoom { inset-inline-start: 10px; }
.mv__count { inset-inline-end: 10px; font-family: "Inter", sans-serif; }
.mv__thumbs { margin-top: .7rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.mv__thumb { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #e6eaf0; box-shadow: 0 0 0 1px var(--c-line); transition: border-color .2s, opacity .2s; opacity: .8; }
.mv__thumb:hover { opacity: 1; }
.mv__thumb.is-on { border-color: var(--c-red); opacity: 1; }
.mv__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mv__thumb em { position: absolute; bottom: 4px; inset-inline-start: 4px; padding: .1rem .35rem; border-radius: 4px; background: var(--c-ink); color: #fff; font-style: normal; font-size: .6rem; font-weight: 800; font-family: "Inter", sans-serif; }
.mv__vid { position: absolute; inset: 0; display: grid; place-items: center; background: var(--c-ink); color: #fff; font-size: 1.1rem; }
.mv__cvbtn { margin-top: .7rem; }

.lb { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: rgba(6, 11, 20, .96); color: #fff; animation: lb-in .25s ease; }
.lb[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb__top { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lb__cap { flex: 1; font-weight: 700; font-size: .9rem; }
.lb__n { font-family: "Inter", sans-serif; font-size: .8rem; color: var(--c-silver); }
.lb__btn { width: 40px; height: 40px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.4rem; line-height: 1; display: grid; place-items: center; }
.lb__btn:hover { background: rgba(255, 255, 255, .16); }
.lb__body { position: relative; flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 1rem 4.5rem; overscroll-behavior: contain; }
.lb__body img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 6px; background: #fff; cursor: zoom-in; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb__body video { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 6px; }
.lb__body.is-cv { align-items: flex-start; }
.lb__body.is-cv img { max-height: none; height: auto; width: min(100%, 900px); }
.lb__body.is-zoom { align-items: flex-start; justify-content: flex-start; }
.lb__body.is-zoom img { max-width: none; max-height: none; width: auto; cursor: zoom-out; }
.lb__body.is-cv.is-zoom img { width: 1600px; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 2.2rem; line-height: 1; display: grid; place-items: center; z-index: 2; }
.lb__nav:hover { background: rgba(255, 255, 255, .2); }
.lb__nav--prev { inset-inline-start: 12px; }
.lb__nav--next { inset-inline-end: 12px; }
[dir="ltr"] .lb__nav { transform: translateY(-50%) scaleX(-1); }
@media (max-width: 640px) {
  .lb__body { padding: .6rem; }
  .lb__nav { top: auto; bottom: 14px; transform: none; width: 52px; height: 46px; background: rgba(255, 255, 255, .16); }
  [dir="ltr"] .lb__nav { transform: scaleX(-1); }
  .mv__thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Features bar under the hero (replaces the stats band on the homepage)
   ========================================================================== */
.feats { position: relative; z-index: 3; margin-top: -3.1rem; background: linear-gradient(180deg, transparent 50%, var(--c-bg) 50%); }
.feats__bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .97); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  box-shadow: 0 2px 4px rgba(10, 19, 34, .04), 0 18px 40px -22px rgba(10, 19, 34, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.feats__item { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 1.75rem; }
.feats__item + .feats__item { border-inline-start: 1px solid var(--c-line); }
.feats__ic { flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; color: var(--c-ink); background: var(--c-bg); border: 1px solid var(--c-line); transition: background .3s, color .3s; }
.feats__ic svg { width: 22px; height: 22px; }
.feats__item:hover .feats__ic { background: var(--c-ink); color: #fff; }
.feats__item b { display: block; font-family: var(--font-display); font-size: .93rem; font-weight: 800; color: var(--c-ink); }
.feats__item small { display: block; margin-top: .3rem; font-size: .78rem; color: var(--c-muted); }
.feats + .wk-section { padding-top: 5.5rem; }
@media (max-width: 900px) {
  .feats__bar { grid-template-columns: 1fr 1fr; }
  .feats__item:nth-child(3) { border-inline-start: 0; }
  .feats__item:nth-child(n+3) { border-top: 1px solid var(--c-line); }
}
@media (max-width: 480px) {
  .feats__item { flex-direction: column; text-align: center; gap: .55rem; padding: 1rem .6rem; }
  .feats__item small { font-size: .72rem; }
}

/* header: WhatsApp contact button (replaces EN + login) */
.nav-wa { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .95rem .5rem .6rem; border-radius: 8px; background: var(--c-wa); color: #fff; transition: background .2s; }
.nav-wa:hover { background: #0e7a3f; }
.nav-wa > svg { width: 26px; height: 26px; padding: 4px; border-radius: 6px; background: rgba(255, 255, 255, .16); }
.nav-wa__txt { display: none; line-height: 1.2; }
.nav-wa__txt small { display: block; font-size: .66rem; opacity: .85; }
.nav-wa__txt b { display: block; font-family: "Inter", sans-serif; font-size: .86rem; letter-spacing: .02em; }
@media (min-width: 640px) { .nav-wa__txt { display: block; } }
.nav-dash { align-items: center; gap: .4rem; padding: .55rem .85rem; border-radius: 8px; border: 1px solid var(--c-line); font-size: .8rem; font-weight: 700; color: var(--c-ink); }
.nav-dash:hover { border-color: var(--c-ink); }

/* one content width for the top strip, header and page sections */
.container-x { max-width: 1240px !important; }
.hdr-inner { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .hdr-inner { padding-inline: 2rem; } }
@media (min-width: 1280px) { header nav a { padding-inline: .85rem !important; } }

/* ==========================================================================
   Unified sections (homepage tail)
   ========================================================================== */
@media (max-width: 640px) { :root { --sec: 4.25rem; } }
.sec { position: relative; padding: var(--sec) 0; background: #fff; }
.sec--alt { background: var(--c-bg); }
.sec .ab__intro h2 { margin-top: 1rem; }

/* nationalities */
.nat-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.nat-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.6rem 1rem 1.4rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.nat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); border-color: #cfd6e0; }
.nat-card__flag { width: 86px; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 6px 14px -8px rgba(0, 0, 0, .35); }
.nat-card__flag img { width: 100%; height: 100%; object-fit: cover; }
.nat-card b { margin-top: 1rem; font-family: var(--font-display); font-size: 1rem; color: var(--c-ink); }
.nat-card small { margin-top: .35rem; font-size: .76rem; color: var(--c-muted); }

/* process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(5, 1fr); counter-reset: s; }
.step { position: relative; padding: 1.75rem 1.4rem 1.6rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow); }
.step::after { content: ""; position: absolute; top: 3.05rem; inset-inline-end: -1.25rem; width: 1.25rem; height: 1px; background: #c9d0db; }
.step:last-child::after { display: none; }
.step__n { position: absolute; top: 1.3rem; inset-inline-end: 1.3rem; font-family: "Inter", sans-serif; font-weight: 800; font-size: .85rem; color: var(--c-red); }
.step__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--c-ink); color: #fff; }
.step__ic svg { width: 24px; height: 24px; }
.step h3 { margin-top: 1.2rem; font-size: 1rem; font-weight: 800; color: var(--c-ink); }
.step p { margin-top: .5rem; font-size: .84rem; line-height: 1.9; color: var(--c-muted); }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, 1fr); } .step::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 960px) { .faq { grid-template-columns: .85fr 1.15fr; gap: 4rem; } }
.faq__intro h2 { margin-top: 1rem; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--c-ink); line-height: 1.5; }
.faq__intro p { margin: 1rem 0 1.8rem; color: var(--c-muted); line-height: 2; }
.faq__list { display: grid; gap: .85rem; }
.faq__item { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-line); transition: border-color .3s, box-shadow .3s; }
.faq__item[open] { border-color: #cfd6e0; box-shadow: var(--shadow); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; font-weight: 700; color: var(--c-ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--c-bg); }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--c-ink); border-radius: 2px; transition: transform .3s; }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i { background: var(--c-red); }
.faq__item[open] summary i::before, .faq__item[open] summary i::after { background: #fff; }
.faq__item[open] summary i::after { transform: rotate(0); }
.faq__item p { padding: 0 1.5rem 1.4rem; color: var(--c-muted); line-height: 2; font-size: .93rem; }

/* contact */
.contact { display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact__info { display: grid; gap: 1.5rem; }
.contact__rows { list-style: none; margin: 0; padding: .5rem 1.6rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow); }
.contact__rows li { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; }
.contact__rows li + li { border-top: 1px solid var(--c-line); }
.contact__ic { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--c-bg); color: var(--c-ink); }
.contact__ic svg { width: 20px; height: 20px; }
.contact__rows small { display: block; font-size: .74rem; color: var(--c-muted); }
.contact__rows a, .contact__rows b { display: block; margin-top: .15rem; font-weight: 700; color: var(--c-ink); font-size: .95rem; }
.contact__rows a[dir="ltr"] { font-family: "Inter", sans-serif; text-align: right; }
.contact__rows a:hover { color: var(--c-red); }
.contact__hr { font-size: .88rem !important; }
.contact__hr em { font-style: normal; font-weight: 500; color: var(--c-muted); margin-inline-start: .35rem; }
.contact__form { padding: 1.6rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow); display: grid; gap: .8rem; }
.contact__form h3 { font-size: 1.05rem; font-weight: 800; color: var(--c-ink); margin-bottom: .2rem; }
.contact__2 { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }
.contact__form input, .contact__form textarea { width: 100%; padding: .85rem 1rem; border-radius: 8px; border: 1px solid #d6dce5; background: #fff; font: inherit; font-size: .9rem; color: var(--c-ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.contact__form input:focus, .contact__form textarea:focus { border-color: var(--c-ink); box-shadow: 0 0 0 3px rgba(10, 19, 34, .08); }
.contact__map { min-height: 420px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-line); box-shadow: var(--shadow); background: #e6eaf0; }
.contact__map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
@media (max-width: 480px) { .contact__2 { grid-template-columns: 1fr; } .contact__rows { padding: .25rem 1.1rem; } }

/* footer */
.ft { background: var(--c-ink); color: rgba(255, 255, 255, .7); border-top: 3px solid var(--c-red); }
.ft__grid { display: grid; gap: 2.5rem; padding-top: 4.5rem; padding-bottom: 3.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ft__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ft__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 3rem; } }
.ft h3 { margin-bottom: 1.3rem; font-size: 1rem; font-weight: 800; color: #fff; }
.ft h3::after { content: ""; display: block; width: 26px; height: 2px; margin-top: .7rem; background: var(--c-red); }
.ft__logo { display: flex; align-items: center; gap: .85rem; }
.ft__logo > span:first-child { display: grid; place-items: center; width: 66px; height: 62px; flex-shrink: 0; }
.ft__logo img { width: 100%; height: 100%; object-fit: contain; }
.ft__logo b { display: block; font-family: var(--font-display); font-size: 1rem; color: #fff; }
.ft__logo small { display: block; margin-top: .25rem; font-family: "Inter", sans-serif; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .45); text-align: right; }
.ft__brand > p { margin-top: 1.2rem; max-width: 330px; font-size: .88rem; line-height: 2; }
.ft__cr { margin-top: .8rem !important; font-size: .78rem !important; color: rgba(255, 255, 255, .5); }
.ft__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ft__links a { font-size: .9rem; transition: color .2s; }
.ft__links a:hover { color: #fff; }
.ft__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.ft__contact li { display: flex; align-items: center; gap: .7rem; font-size: .9rem; }
.ft__contact svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--c-silver); }
.ft__contact a { font-family: "Inter", sans-serif; }
.ft__contact a:hover { color: #fff; }
.ft__social { display: flex; gap: .5rem; margin-top: 1.4rem; }
.ft__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: rgba(255, 255, 255, .07); color: #fff; transition: background .2s; }
.ft__social a:hover { background: var(--c-red); }
.ft__social svg { width: 16px; height: 16px; }
.ft .foot-trust { margin-top: 1.4rem; }
.ft__bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.ft__bottom .container-w { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding-top: 1.3rem; padding-bottom: 1.3rem; font-size: .78rem; color: rgba(255, 255, 255, .5); }
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 26px -8px rgba(18, 140, 74, .7); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

@media (max-width: 560px) {
  .nat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .nat-card { padding: 1.2rem .6rem 1rem; }
  .nat-card__flag { width: 70px; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; padding: 1.2rem 1.1rem; }
  .step__ic { grid-row: span 2; width: 46px; height: 46px; }
  .step h3 { margin-top: .1rem; }
  .step p { margin-top: .3rem; }
  .step__n { top: 1rem; inset-inline-end: 1rem; }
}
/* ===== STAFF PORTAL ===== */
/* ---------- staff login ---------- */
.lg-body { min-height: 100vh; background: var(--c-ink); color: var(--c-text); overflow-x: hidden; }
.lg-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 100% 0%, rgba(217, 16, 31, .22), transparent 65%),
    radial-gradient(ellipse 50% 55% at 0% 100%, rgba(20, 89, 184, .18), transparent 65%),
    linear-gradient(160deg, #0f1b2f 0%, var(--c-ink) 60%); }
.lg-bg::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 80%); }
.lg-bg__wm { position: absolute; width: min(760px, 120vw); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .045; background: #fff;
  -webkit-mask: url("/assets/img/logo-clear.webp") center / contain no-repeat; mask: url("/assets/img/logo-clear.webp") center / contain no-repeat; }

.lg { position: relative; z-index: 1; width: min(1040px, calc(100% - 2rem)); min-height: 620px; margin: max(2rem, calc((100vh - 620px) / 2)) auto 2rem;
  display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 24px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 90px -30px rgba(0, 0, 0, .75);
  animation: lg-in .8s var(--ease) both; }
@keyframes lg-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) { .lg { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.lg > * { min-width: 0; }
.lg-field input { width: 100%; }

/* brand side */
.lg-brand { position: relative; isolation: isolate; display: none; flex-direction: column; justify-content: space-between; padding: 2.6rem 2.6rem 2.2rem; color: #fff;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(217, 16, 31, .28), transparent 60%), linear-gradient(165deg, #142440 0%, #0c1628 100%);
  border-inline-end: 1px solid rgba(255, 255, 255, .06); }
@media (min-width: 900px) { .lg-brand { display: flex; } }
.lg-brand::after { content: ""; position: absolute; z-index: -1; width: 420px; aspect-ratio: 1; inset-inline-start: -130px; bottom: -150px; opacity: .06; background: #fff;
  -webkit-mask: url("/assets/img/logo-clear.webp") center / contain no-repeat; mask: url("/assets/img/logo-clear.webp") center / contain no-repeat; }
.lg-brand__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lg-brand__logo { width: 74px; height: auto; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .45)); }
.lg-brand__pill { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-size: .74rem; font-weight: 600; color: rgba(255, 255, 255, .8); }
.lg-brand__pill svg { width: 14px; height: 14px; color: #5bd18b; }
.lg-brand__mid { margin-block: 2.5rem; }
.lg-brand__name { font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 900; line-height: 1.3; }
.lg-brand__name span { display: flex; align-items: center; gap: .6rem; margin-top: .25rem; font-size: .55em; font-weight: 800; color: #ff4d57; }
.lg-brand__name span::after { content: ""; flex: 0 0 48px; height: 2px; border-radius: 2px; background: linear-gradient(270deg, rgba(255, 77, 87, .9), transparent); }
.lg-brand__en { margin-top: .9rem; font-family: "Inter", sans-serif; font-size: .66rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: rgba(255, 255, 255, .45); text-align: right; }
.lg-brand__list { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: .7rem; }
.lg-brand__list li { display: flex; align-items: center; gap: .9rem; padding: .8rem .9rem; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.lg-brand__list i { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; font-style: normal; }
.lg-brand__list i.is-wa { color: #25d366; }
.lg-brand__list svg { width: 19px; height: 19px; }
.lg-brand__list span { font-size: .8rem; color: rgba(255, 255, 255, .6); line-height: 1.6; }
.lg-brand__list b { display: block; font-size: .9rem; color: #fff; }
.lg-brand__foot { display: flex; align-items: center; gap: .55rem; }
.lg-brand__foot span { display: grid; place-items: center; height: 46px; padding: 6px 11px; border-radius: 9px; background: #fff; }
.lg-brand__foot img { height: 32px; width: auto; }

/* form side */
.lg-form { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 2.4rem 1.6rem 1.6rem; background: #fff; }
@media (min-width: 600px) { .lg-form { padding: 3rem 3.4rem 2rem; } }
.lg-mhead { display: flex; align-items: center; gap: .7rem; margin: -2.4rem -1.6rem 2rem; padding: 1.1rem 1.6rem; background: linear-gradient(120deg, #142440, #0a1322); color: #fff; font-family: var(--font-display); font-weight: 800; }
.lg-mhead img { width: 46px; height: auto; }
.lg-mhead em { font-style: normal; color: #ff4d57; }
@media (min-width: 900px) { .lg-mhead { display: none; } }
@media (min-width: 600px) and (max-width: 899px) { .lg-mhead { margin: -3rem -3.4rem 2.2rem; padding: 1.2rem 3.4rem; } }
.lg-form__in { width: 100%; max-width: 380px; margin-inline: auto; }
.lg-form__badge { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .75rem; border-radius: 999px; background: #fdecee; color: var(--c-red); font-size: .74rem; font-weight: 700; }
.lg-form__badge svg { width: 14px; height: 14px; }
.lg-form h1 { margin-top: 1.1rem; font-size: 2rem; font-weight: 900; color: var(--c-ink); line-height: 1.35; }
.lg-form__sub { margin-top: .45rem; font-size: .9rem; color: var(--c-muted); line-height: 1.9; }
.lg-err { display: flex; align-items: center; gap: .55rem; margin-top: 1.3rem; padding: .8rem 1rem; border-radius: 11px; background: #fdecee; border: 1px solid #f6c5ca; color: #a30c18; font-size: .84rem; font-weight: 700; }
.lg-err svg { width: 17px; height: 17px; flex-shrink: 0; }
.lg-fields { margin-top: 1.8rem; display: grid; gap: 1.15rem; }
.lg-field > span { display: block; margin-bottom: .5rem; font-size: .82rem; font-weight: 700; color: var(--c-ink); }
.lg-field > div { position: relative; display: flex; align-items: center; height: 54px; border-radius: 12px; border: 1.5px solid #dfe4ec; background: #f8f9fb; transition: border-color .2s, box-shadow .2s, background .2s; }
.lg-field > div:hover { border-color: #c9d0db; }
.lg-field > div:focus-within { border-color: var(--c-ink); background: #fff; box-shadow: 0 0 0 4px rgba(10, 19, 34, .07); }
.lg-field i { display: grid; place-items: center; width: 48px; flex-shrink: 0; color: #8a94a3; font-style: normal; transition: color .2s; }
.lg-field > div:focus-within i { color: var(--c-ink); }
.lg-field i svg { width: 19px; height: 19px; }
.lg-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: .98rem; color: var(--c-ink); padding-inline-end: .9rem; }
.lg-field input[dir="ltr"] { text-align: right; font-family: "Inter", sans-serif; letter-spacing: .06em; }
.lg-field input::placeholder { color: #b3bbc7; letter-spacing: .06em; }
.lg-eye { display: grid; place-items: center; width: 40px; height: 40px; margin-inline-end: .4rem; border-radius: 9px; color: #8a94a3; }
.lg-eye:hover { background: #eef1f5; color: var(--c-ink); }
.lg-eye.is-on { color: var(--c-red); }
.lg-eye svg { width: 19px; height: 19px; }
.lg-submit { position: relative; overflow: hidden; margin-top: .5rem; display: flex; align-items: center; justify-content: center; gap: .7rem; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, #e01625, #b00d19); color: #fff; font-size: 1rem; font-weight: 800;
  box-shadow: 0 16px 30px -14px rgba(217, 16, 31, .85), inset 0 1px 0 rgba(255, 255, 255, .2); transition: transform .3s var(--ease), box-shadow .3s; }
.lg-submit:hover { transform: translateY(-2px); box-shadow: 0 22px 36px -14px rgba(217, 16, 31, .9), inset 0 1px 0 rgba(255, 255, 255, .2); }
.lg-submit i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .16); font-style: normal; transition: transform .3s var(--ease); }
.lg-submit:hover i { transform: translateX(-4px); }
.lg-submit i svg { width: 16px; height: 16px; }
.lg-submit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .25) 50%, transparent 65%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.lg-submit:hover::after { transform: translateX(120%); }
.lg-note { display: flex; align-items: center; gap: .5rem; margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid #eef1f5; font-size: .76rem; color: var(--c-muted); }
.lg-note svg { width: 15px; height: 15px; color: #0d7a3e; flex-shrink: 0; }
.lg-back { display: inline-flex; align-items: center; gap: .35rem; align-self: center; margin-top: 2rem; padding: .45rem .8rem; border-radius: 8px; font-size: .8rem; font-weight: 700; color: var(--c-muted); }
.lg-back:hover { background: var(--c-bg); color: var(--c-ink); }
.lg-back svg { width: 15px; height: 15px; }
@media (max-width: 599px) { .lg { margin-top: 1rem; min-height: 0; border-radius: 20px; } .lg-form h1 { font-size: 1.7rem; } }

/* ---------- dashboard shell ---------- */
body.dash { background: var(--c-bg); color: var(--c-text); }
.dash__shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 1024px) { .dash__shell { grid-template-columns: 270px minmax(0, 1fr); } }
.dash__side {
  position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 60; width: 270px; display: flex; flex-direction: column;
  background: var(--c-ink); color: rgba(255, 255, 255, .72); transform: translateX(100%); transition: transform .35s var(--ease);
}
[dir="ltr"] .dash__side { transform: translateX(-100%); }
.dash__toggle:checked ~ .dash__shell .dash__side { transform: none; }
.dash__scrim { position: fixed; inset: 0; z-index: 55; background: rgba(10, 19, 34, .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
.dash__toggle:checked ~ .dash__shell .dash__scrim { opacity: 1; pointer-events: auto; }
@media (min-width: 1024px) {
  .dash__side { position: sticky; top: 0; height: 100vh; transform: none !important; }
  .dash__scrim, .dash__burger { display: none !important; }
}
.dash__brand { display: flex; align-items: center; gap: .75rem; padding: 1.4rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.dash__logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #fff; padding: 6px; flex-shrink: 0; }
.dash__logo img { width: 100%; height: 100%; object-fit: contain; }
.dash__brand b { display: block; font-family: var(--font-display); font-size: .86rem; color: #fff; }
.dash__brand small { display: block; margin-top: .15rem; font-size: .72rem; color: var(--c-silver); }
.dash__nav { flex: 1; overflow-y: auto; padding: 1rem .85rem; }
.dash__group { margin: 1.3rem .6rem .5rem; font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: rgba(255, 255, 255, .38); }
.dash__link { position: relative; display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border-radius: 9px; font-size: .9rem; font-weight: 600; transition: background .2s, color .2s; }
.dash__link svg { width: 19px; height: 19px; flex-shrink: 0; opacity: .85; }
.dash__link:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.dash__link.is-active { background: rgba(255, 255, 255, .09); color: #fff; }
.dash__link.is-active::before { content: ""; position: absolute; inset-inline-start: -.85rem; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0; background: var(--c-red); }
.dash__link em { margin-inline-start: auto; min-width: 22px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--c-red); color: #fff; font-style: normal; font-size: .68rem; font-weight: 800; font-family: "Inter", sans-serif; }
.dash__me { display: flex; align-items: center; gap: .7rem; margin: .75rem; padding: .75rem; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.dash__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--c-red); color: #fff; font-weight: 800; flex-shrink: 0; }
.dash__who { flex: 1; min-width: 0; line-height: 1.3; }
.dash__who b { display: block; font-size: .84rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash__who small { font-size: .72rem; color: var(--c-silver); }
.dash__out { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--c-silver); }
.dash__out:hover { background: rgba(217, 16, 31, .2); color: #fff; }
.dash__out svg { width: 18px; height: 18px; }
[dir="rtl"] .dash__out svg { transform: scaleX(-1); }

.dash__body { min-width: 0; display: flex; flex-direction: column; }
.dash__top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 1rem; height: 64px; padding: 0 1.5rem; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-line); }
.dash__burger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--c-line); cursor: pointer; color: var(--c-ink); }
.dash__crumb { display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--c-muted); min-width: 0; }
.dash__crumb b { color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash__crumb a:hover { color: var(--c-ink); }
.dash__actions { margin-inline-start: auto; display: flex; align-items: center; gap: .8rem; }
.dash__date { font-family: "Inter", sans-serif; font-size: .78rem; color: var(--c-muted); }
.dash__site { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 8px; border: 1px solid var(--c-line); font-size: .8rem; font-weight: 700; color: var(--c-ink); }
.dash__site:hover { border-color: var(--c-ink); }
.dash__site svg { width: 15px; height: 15px; }
@media (max-width: 640px) { .dash__date { display: none; } .dash__top { padding: 0 1rem; } }
.dash__main { width: 100%; max-width: 1560px; margin-inline: auto; padding: 1.75rem 1.5rem 3rem; }
@media (min-width: 1024px) { .dash__main { padding: 2rem 2.25rem 3.5rem; } }

/* ---------- skin for the existing Tailwind-built dashboard pages ---------- */
.dash__main h1.text-xl { font-family: var(--font-display); font-size: 1.45rem !important; font-weight: 800; color: var(--c-ink) !important; }
.dash__main h2.font-bold { font-family: var(--font-display); font-weight: 800; color: var(--c-ink) !important; }
.dash__main .rounded-card { border: 1px solid var(--c-line); box-shadow: var(--shadow) !important; }
.dash__main .shadow-card-hover:hover, .dash__main .hover\:shadow-card-hover:hover { box-shadow: var(--shadow-h) !important; }
.dash__main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.dash__main select, .dash__main textarea {
  border-radius: 8px !important; border: 1px solid #d6dce5 !important; background-color: #fff; font-family: inherit; color: var(--c-ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.dash__main input:not([type="checkbox"]):not([type="radio"]):focus, .dash__main select:focus, .dash__main textarea:focus {
  border-color: var(--c-ink) !important; box-shadow: 0 0 0 3px rgba(10, 19, 34, .08) !important;
}
.dash__main input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--c-ink); }
.dash__main label > span.font-bold { color: var(--c-ink) !important; }
.dash__main table { border-collapse: separate; border-spacing: 0; }
.dash__main thead tr { background: #f7f8fa; }
.dash__main thead th { padding: .8rem 1rem !important; font-size: .74rem; font-weight: 700; color: var(--c-muted); text-align: start; white-space: nowrap; border-bottom: 1px solid var(--c-line); }
.dash__main thead th:first-child { border-start-start-radius: 10px; }
.dash__main thead th:last-child { border-start-end-radius: 10px; }
.dash__main tbody td { padding: .85rem 1rem !important; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.dash__main tbody tr:last-child td { border-bottom: 0; }
.dash__main tbody tr:hover td { background: #fafbfc; }
.dash__main .btn-blue { background: var(--c-ink) !important; box-shadow: none !important; border-radius: 8px !important; }
.dash__main .btn-blue:hover { background: var(--c-ink-3) !important; }
.dash__main .btn-outline { border: 1px solid #c9d0db !important; color: var(--c-ink) !important; border-radius: 8px !important; }
.dash__main .btn-outline:hover { border-color: var(--c-ink) !important; }
.dash__main .btn-red { box-shadow: 0 10px 22px -12px rgba(217, 16, 31, .7) !important; }
.dash__main .text-brand-navy { color: var(--c-ink) !important; }
.flash-success, .flash-error { border-radius: 10px !important; padding: .9rem 1.1rem !important; font-weight: 700; }

/* KPI cards */
.kpis { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 1.25rem; }
.kpi { position: relative; padding: .95rem 1.1rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow); overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--k, var(--c-ink)); }
.kpi__top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.kpi__label { font-size: .84rem; font-weight: 700; color: var(--c-muted); }
.kpi__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--k, var(--c-ink)); background: var(--kb, var(--c-bg)); }
.kpi__ic svg { width: 17px; height: 17px; }
.kpi__num { margin-top: .55rem; font-family: "Inter", sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--c-ink); line-height: 1; }
.kpi__hint { margin-top: .35rem; font-size: .72rem; color: var(--c-muted); }
.kpi--red { --k: #d9101f; --kb: #fdecee; }
.kpi--emerald, .kpi--green { --k: #0d7a3e; --kb: #e8f6ee; }
.kpi--blue { --k: #1459b8; --kb: #e9f1fc; }
.kpi--amber { --k: #b26a00; --kb: #fdf3e2; }

/* welcome banner */
.dash-hello { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; padding: 1.25rem 1.6rem; border-radius: var(--r-lg); color: #fff;
  background: radial-gradient(ellipse 60% 90% at 100% 0%, rgba(217, 16, 31, .25), transparent 65%), linear-gradient(120deg, #0f1b2f, var(--c-ink)); }
.dash-hello::after { content: ""; position: absolute; z-index: -1; width: 260px; aspect-ratio: 1; inset-inline-end: -40px; top: -50px; opacity: .07; background: #fff;
  -webkit-mask: url("/assets/img/logo-clear.webp") center / contain no-repeat; mask: url("/assets/img/logo-clear.webp") center / contain no-repeat; }
.dash-hello__k { font-size: .8rem; color: var(--c-silver); }
.dash-hello h1 { margin-top: .1rem; font-size: 1.3rem; font-weight: 800; }
.dash-hello__s { margin-top: .3rem; font-size: .86rem; color: rgba(255, 255, 255, .65); }
.dash-hello__acts { display: flex; flex-wrap: wrap; gap: .5rem; }
body.dash { overflow-x: hidden; }
.dash__shell { overflow-x: clip; }
@media (max-width: 1023px) {
  .dash__side { visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
  .dash__toggle:checked ~ .dash__shell .dash__side { visibility: visible; transition: transform .35s var(--ease); }
}
.dash__main td.font-num, .dash__main td[dir="ltr"] { white-space: nowrap; }
/* ===== STAFF PORTAL v2 ===== */
/* page header used by the rebuilt pages */
.dh { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.dh h1 { font-size: 1.45rem; font-weight: 800; color: var(--c-ink); }
.dh p { margin-top: .3rem; font-size: .88rem; color: var(--c-muted); }
.dh p b { font-family: "Inter", sans-serif; color: var(--c-ink); }
.dh__acts { display: flex; flex-wrap: wrap; gap: .5rem; }

/* status tabs */
.dtabs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; padding: .3rem; border-radius: 11px; background: #fff; border: 1px solid var(--c-line); width: fit-content; max-width: 100%; }
.dtab { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 8px; font-size: .84rem; font-weight: 700; color: var(--c-muted); }
.dtab em { font-style: normal; font-family: "Inter", sans-serif; font-size: .72rem; padding: .05rem .45rem; border-radius: 6px; background: var(--c-bg); color: var(--c-ink); }
.dtab:hover { color: var(--c-ink); }
.dtab.is-on { background: var(--c-ink); color: #fff; }
.dtab.is-on em { background: rgba(255, 255, 255, .15); color: #fff; }

/* filters */
.dfilter { display: grid; gap: .6rem; grid-template-columns: 1fr; padding: .8rem; border-radius: 12px; background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow); }
@media (min-width: 768px) { .dfilter { grid-template-columns: 2fr repeat(4, 1fr); } }
.dfilter select, .dfilter input { height: 42px; padding: 0 .8rem; font-size: .86rem !important; width: 100%; }
.dfilter__q { position: relative; display: block; }
.dfilter__q .ic { position: absolute; top: 50%; inset-inline-start: .75rem; transform: translateY(-50%); color: var(--c-muted); pointer-events: none; }
.dfilter__q input { padding-inline-start: 2.3rem; }
.dbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin: 1.1rem 0 .9rem; }
.dbar p { font-size: .88rem; color: var(--c-muted); }
.dbar p b { font-family: "Inter", sans-serif; color: var(--c-ink); }
.dbar p a { color: var(--c-red); font-weight: 700; }
.dview { display: flex; align-items: center; gap: .3rem; }
.dview a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--c-line); background: #fff; color: var(--c-muted); }
.dview a svg { width: 17px; height: 17px; }
.dview a.is-on { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.dview select { height: 36px !important; padding: 0 .6rem; font-size: .8rem; margin-inline-start: .3rem; }
.dempty { padding: 3.5rem 1rem; text-align: center; border-radius: 14px; background: #fff; border: 1px dashed #c9d0db; }
.dempty b { display: block; color: var(--c-ink); font-size: 1.05rem; }
.dempty p { margin: .4rem 0 1rem; font-size: .88rem; color: var(--c-muted); }

/* table view */
.dtable { overflow-x: auto; border-radius: 14px; background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow); }
.dtable table { width: 100%; min-width: 1000px; font-size: .86rem; }
.dtable thead th { padding: .75rem .85rem !important; }
.dtable tbody td { padding: .6rem .85rem !important; }
.dthumb { display: grid; place-items: center; width: 42px; height: 50px; border-radius: 8px; overflow: hidden; background: var(--c-bg); color: #9aa5b5; box-shadow: 0 0 0 1px var(--c-line); }
.dthumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dcode { font-family: "Inter", sans-serif; font-size: .82rem; color: var(--c-ink); white-space: nowrap; }
.dname { font-weight: 700; color: var(--c-ink); text-transform: capitalize; }
.dname:hover { color: var(--c-red); }
.dnat { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.dnat img, .dcard__top img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.dnum { font-family: "Inter", sans-serif; color: var(--c-muted); white-space: nowrap; }
.datt { display: inline-flex; gap: .3rem; white-space: nowrap; }
.datt span { padding: .15rem .45rem; border-radius: 5px; background: var(--c-bg); font-size: .72rem; font-weight: 700; color: var(--c-muted); }
.datt span.is-cv { background: var(--c-ink); color: #fff; font-family: "Inter", sans-serif; }
select.dst { height: 32px !important; padding: 0 .55rem !important; font-size: .76rem !important; font-weight: 700; border-radius: 7px !important; cursor: pointer; }
.dst--available { background: #e8f6ee !important; color: #0d7a3e !important; border-color: #bfe5cf !important; }
.dst--reserved { background: #fdf3e2 !important; color: #925600 !important; border-color: #f1d9a8 !important; }
.dst--booked { background: #e9f1fc !important; color: #1459b8 !important; border-color: #c6d9f4 !important; }
.dst--archived { background: #eef1f5 !important; color: var(--c-muted) !important; }
.dstar { font-size: 1.15rem; line-height: 1; color: #c9d0db; padding: .2rem .35rem; border-radius: 6px; }
.dstar:hover { background: var(--c-bg); }
.dstar.is-on { color: #e6a700; }
.dacts { display: flex; align-items: center; justify-content: flex-end; gap: .15rem; }
.dacts a, .dacts button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--c-muted); }
.dacts a:hover, .dacts button:hover { background: var(--c-bg); color: var(--c-ink); }
.dacts .is-danger:hover { background: #fdecee; color: var(--c-red); }
.dacts svg { width: 16px; height: 16px; }

/* card views (large / compact) */
.dcards { display: grid; gap: 1rem; }
.dcards--cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.dcards--compact { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .75rem; }
.dcard { display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow); transition: box-shadow .3s, transform .3s; }
.dcard:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }
.dcard__img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3.4; background: var(--c-bg); color: #9aa5b5; overflow: hidden; }
.dcards--compact .dcard__img { aspect-ratio: 1; }
.dcard__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dcard__img span svg { width: 40px; height: 40px; }
.dcard__star { position: absolute; top: 8px; inset-inline-start: 8px; padding: .1rem .4rem; border-radius: 5px; background: #fff; color: #e6a700; font-style: normal; font-size: .85rem; }
.dcard__cv { position: absolute; bottom: 8px; inset-inline-start: 8px; padding: .12rem .4rem; border-radius: 5px; background: var(--c-ink); color: #fff; font-style: normal; font-size: .64rem; font-weight: 800; font-family: "Inter", sans-serif; }
.dcard__body { display: flex; flex-direction: column; gap: .45rem; padding: .8rem .85rem .85rem; }
.dcards--compact .dcard__body { padding: .6rem .65rem .7rem; gap: .35rem; }
.dcard__top { display: flex; align-items: center; justify-content: space-between; gap: .4rem; font-size: .72rem; color: var(--c-muted); }
.dcard__top b { font-family: "Inter", sans-serif; color: var(--c-ink); }
.dcard__top span { display: inline-flex; align-items: center; gap: .3rem; }
.dcard__name { font-weight: 800; color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.dcards--compact .dcard__name { font-size: .84rem; }
.dcard__sub { font-size: .76rem; color: var(--c-muted); }
.dcard select.dst { width: 100%; }
.dcard__foot { display: flex; align-items: center; justify-content: space-between; gap: .3rem; padding-top: .5rem; border-top: 1px solid var(--c-line); font-size: .76rem; font-weight: 700; }
.dcard__foot a, .dcard__foot button { color: var(--c-blue); }
.dcard__foot .is-danger { color: var(--c-red); }
.dcards--compact .dcard__foot { font-size: .7rem; }

/* worker form */
.wf { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1200px) { .wf { grid-template-columns: minmax(0, 1fr) 320px; } }
.wf__main { display: grid; gap: 1.25rem; min-width: 0; }
.wf__side { display: grid; gap: 1rem; }
@media (min-width: 1200px) { .wf__side { position: sticky; top: 84px; } }
.wf-card { padding: 1.3rem 1.4rem 1.4rem; border-radius: 14px; background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow); }
.wf-card > header { margin-bottom: 1.1rem; padding-bottom: .85rem; border-bottom: 1px solid #eef1f5; }
.wf-card h2 { font-size: 1.02rem; font-weight: 800; color: var(--c-ink); }
.wf-card h2 small { font-size: .78rem; font-weight: 600; color: var(--c-muted); }
.wf-card header p { margin-top: .3rem; font-size: .8rem; line-height: 1.8; color: var(--c-muted); }
.req { color: var(--c-red); }
.wf-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .wf-grid { grid-template-columns: 1fr 1fr; } .wf-span2 { grid-column: span 2; } }
.wf-field { display: block; border: 0; margin: 0; padding: 0; min-width: 0; }
.wf-field > span { display: block; margin-bottom: .4rem; font-size: .82rem; font-weight: 700; color: var(--c-ink); }
.wf-field > small { display: block; margin-top: .3rem; font-size: .72rem; color: var(--c-muted); }
.wf-input { width: 100%; min-height: 44px; padding: .6rem .85rem; font-size: .9rem; }
textarea.wf-input { min-height: 90px; line-height: 1.9; }
.wf-seg { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.wf-seg label { cursor: pointer; }
.wf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.wf-seg span { display: flex; align-items: center; justify-content: center; gap: .5rem; height: 46px; border-radius: 9px; border: 1.5px solid var(--c-line); font-weight: 700; color: var(--c-muted); transition: all .2s; }
.wf-seg input:checked + span { border-color: var(--c-ink); background: var(--c-ink); color: #fff; }
.wf-seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(10, 19, 34, .15); }
.wf-extra { display: grid; gap: .55rem; }
.wf-extra__row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) 40px; gap: .5rem; }
.wf-x { display: grid; place-items: center; height: 44px; border-radius: 8px; border: 1px solid var(--c-line); color: var(--c-muted); font-size: 1.2rem; }
.wf-x:hover { border-color: #f3c2c6; background: #fdecee; color: var(--c-red); }
.wf-extra__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .9rem; }
.wf-extra__hint { margin-inline-start: .4rem; font-size: .76rem; color: var(--c-muted); }
.wf-chip { padding: .3rem .6rem; border-radius: 6px; background: var(--c-bg); border: 1px solid var(--c-line); font-size: .74rem; font-weight: 700; color: var(--c-ink); }
.wf-chip:hover { border-color: var(--c-ink); }
.wf-media { display: grid; gap: 1.4rem; }
@media (min-width: 768px) { .wf-media { grid-template-columns: auto 1fr; } }
.wf-sub { margin-bottom: .55rem; font-size: .8rem; font-weight: 700; color: var(--c-ink); }
.wf-gallery { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .7rem; }
.wf-gallery:empty { margin-bottom: 0; }
[data-gallery-list] > div { width: 88px !important; height: 88px !important; border-radius: 9px !important; overflow: hidden; position: relative; }
[data-gallery-list] > div img { width: 100%; height: 100%; object-fit: cover; }
.wf-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.wf-status { font-size: .78rem; font-weight: 700; color: var(--c-blue); }
.wf-meta { display: grid; grid-template-columns: auto 1fr; gap: .45rem .8rem; margin-bottom: 1rem; padding: .8rem .9rem; border-radius: 9px; background: var(--c-bg); font-size: .8rem; }
.wf-meta span { color: var(--c-muted); }
.wf-meta b { color: var(--c-ink); font-family: "Inter", var(--font-cairo); text-align: end; }
.wf__side .wf-field { margin-bottom: .9rem; }
.wf-toggle { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1.1rem; padding: .8rem .9rem; border-radius: 9px; border: 1px solid var(--c-line); cursor: pointer; }
.wf-toggle b { display: block; font-size: .86rem; color: var(--c-ink); }
.wf-toggle small { display: block; margin-top: .15rem; font-size: .74rem; color: var(--c-muted); }
.wf__side .btn { margin-top: .5rem; }
.wf-link { display: block; margin-top: .9rem; text-align: center; font-size: .8rem; font-weight: 700; color: var(--c-blue); }

/* WhatsApp template editor + live preview */
.wa-edit { display: grid; gap: 1.4rem; }
@media (min-width: 1100px) { .wa-edit { grid-template-columns: minmax(0, 1fr) 340px; } }
.wa-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.wa-chips button { padding: .3rem .55rem; border-radius: 6px; background: #e9f1fc; border: 1px solid #c6d9f4; font-size: .74rem; font-weight: 700; color: var(--c-blue); }
.wa-chips button span { font-weight: 500; color: var(--c-muted); }
.wa-chips button:hover { background: #dbe8fa; }
.wa-reset { margin-top: .6rem; font-size: .76rem; font-weight: 700; color: var(--c-muted); text-decoration: underline; }
.wa-prev__t { margin-bottom: .55rem; font-size: .82rem; font-weight: 700; color: var(--c-ink); }
.wa-prev__t small { font-weight: 500; color: var(--c-muted); }
.wa-phone { overflow: hidden; border-radius: 16px; border: 1px solid var(--c-line); box-shadow: var(--shadow); }
.wa-phone__bar { display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; background: #075e54; color: #fff; }
.wa-phone__av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; padding: 4px; }
.wa-phone__av img { width: 100%; height: 100%; object-fit: contain; }
.wa-phone__bar b { display: block; font-size: .82rem; }
.wa-phone__bar small { display: block; font-size: .68rem; opacity: .8; font-family: "Inter", sans-serif; }
.wa-phone__chat { min-height: 260px; padding: 1rem .8rem; background-color: #efe7de; background-image: radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px); background-size: 14px 14px; }
.wa-bubble { position: relative; margin-inline-start: auto; max-width: 92%; padding: .55rem .7rem 1.2rem; border-radius: 10px; border-start-end-radius: 2px; background: #d9fdd3; color: #111b21; font-size: .84rem; line-height: 1.75; white-space: pre-wrap; word-break: break-word; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); }
.wa-bubble a { color: #027eb5; text-decoration: underline; direction: ltr; unicode-bidi: embed; }
.wa-bubble__time { position: absolute; bottom: .25rem; inset-inline-end: .55rem; font-size: .64rem; color: #667781; font-family: "Inter", sans-serif; }
.dsave { position: sticky; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding: .85rem 1.1rem; border-radius: 12px; background: rgba(255, 255, 255, .95); border: 1px solid var(--c-line); box-shadow: 0 -8px 24px -16px rgba(10, 19, 34, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dsave span { font-size: .82rem; color: var(--c-muted); }

/* sidebar icon tiles */
.dash__link { gap: .7rem; padding: .5rem .6rem; }
.dash__ic { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .78); font-style: normal; transition: background .2s, color .2s; }
.dash__ic svg { width: 18px !important; height: 18px !important; opacity: 1 !important; }
.dash__ic.is-wa svg { color: #25d366; }
.dash__link:hover .dash__ic { background: rgba(255, 255, 255, .1); color: #fff; }
.dash__link.is-active .dash__ic { background: var(--c-red); color: #fff; box-shadow: 0 6px 14px -6px rgba(217, 16, 31, .8); }
.dash__link.is-active .dash__ic.is-wa svg { color: #fff; }
.dash__link.is-active::before { display: none; }
.dash__link.is-active { background: rgba(255, 255, 255, .07); }

/* click-to-load map placeholder */
.map-facade { position: relative; width: 100%; height: 100%; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; cursor: pointer; text-align: center; color: var(--c-ink);
  background-color: #e9edf2;
  background-image: linear-gradient(rgba(10, 19, 34, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 19, 34, .05) 1px, transparent 1px), radial-gradient(circle at 50% 45%, #fff 0, transparent 60%);
  background-size: 34px 34px, 34px 34px, 100% 100%; }
.map-facade__pin { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c-red); color: #fff; box-shadow: 0 0 0 10px rgba(217, 16, 31, .12), 0 14px 30px -10px rgba(217, 16, 31, .7); }
.map-facade__pin svg { width: 28px; height: 28px; }
.map-facade b { font-family: var(--font-display); font-size: 1rem; }
.map-facade:hover .btn { background: var(--c-ink-3); }

/* workers: delete button, bulk selection, confirm dialog */
.ddel { display: inline-flex !important; align-items: center; gap: .3rem; width: auto !important; height: 30px !important; padding: 0 .6rem; border-radius: 7px; border: 1px solid #f3c2c6; background: #fff5f6; color: var(--c-red) !important; font-size: .74rem; font-weight: 700; }
.ddel:hover { background: var(--c-red) !important; border-color: var(--c-red); color: #fff !important; }
.ddel svg { width: 14px !important; height: 14px !important; }
.dcard__foot .is-danger { display: inline-flex; align-items: center; gap: .25rem; }
.dcard__foot .is-danger svg { width: 13px; height: 13px; }
.dchk { width: 38px; text-align: center !important; }
.dchk input { width: 17px; height: 17px; accent-color: var(--c-red); cursor: pointer; vertical-align: middle; }
.dtable tbody tr.is-sel td { background: #fff7f7 !important; }
.dbulk { position: sticky; top: 72px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: .8rem; padding: .7rem .9rem; border-radius: 12px; background: var(--c-ink); color: #fff; box-shadow: 0 14px 30px -16px rgba(10, 19, 34, .7); }
.dbulk[hidden] { display: none; }
.dbulk b { font-size: .86rem; }
.dbulk b span { font-family: "Inter", sans-serif; color: #ff6b73; }
.dbulk select { height: 38px !important; min-width: 190px; padding: 0 .7rem; border-radius: 8px !important; border: 0 !important; font-size: .84rem; color: var(--c-ink); }
.dbulk .btn--dark { background: var(--c-red); }
.dbulk__x { margin-inline-start: auto; font-size: .78rem; color: rgba(255, 255, 255, .7); text-decoration: underline; }
.wf-danger { border-color: #f6d0d4; background: linear-gradient(180deg, #fff, #fffafa); }
.wf-danger h2 { color: var(--c-red) !important; }
.wf-danger__btn { background: #fff; border: 1.5px solid #f3c2c6; color: var(--c-red); }
.wf-danger__btn:hover { background: var(--c-red); border-color: var(--c-red); color: #fff; transform: none; }
.wf-danger__btn svg { width: 17px; height: 17px; }
.dconfirm { width: min(420px, calc(100% - 2rem)); padding: 1.8rem 1.6rem 1.4rem; border: 0; border-radius: 18px; text-align: center; box-shadow: 0 40px 80px -24px rgba(10, 19, 34, .55); }
.dconfirm::backdrop { background: rgba(10, 19, 34, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dconfirm[open] { animation: lg-in .3s var(--ease); }
.dconfirm__ic { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto; border-radius: 50%; background: #fdecee; color: var(--c-red); box-shadow: 0 0 0 8px #fff5f6; }
.dconfirm__ic svg { width: 26px; height: 26px; }
.dconfirm h3 { margin-top: 1.1rem; font-size: 1.15rem; font-weight: 800; color: var(--c-ink); }
.dconfirm p { margin-top: .5rem; font-size: .9rem; line-height: 1.9; color: var(--c-muted); }
.dconfirm__acts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.4rem; }
.dconfirm__acts .btn { padding: .8rem; }

/* services list */
.svc-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.svc-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.svc-card__img { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(180deg, #eef1f5, #dfe4eb); color: #9aa5b5; overflow: hidden; }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; }
.svc-card__img span svg { width: 56px; height: 56px; }
.svc-card__body { position: relative; display: flex; flex: 1; flex-direction: column; padding: 1.6rem 1.4rem 1.3rem; }
.svc-card__ic { position: absolute; top: -24px; inset-inline-start: 1.4rem; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--c-ink); color: #fff; box-shadow: 0 0 0 4px #fff; }
.svc-card__ic svg { width: 22px; height: 22px; }
.svc-card h2 { margin-top: .8rem; font-size: 1.15rem; font-weight: 800; color: var(--c-ink); }
.svc-card h2 a:hover { color: var(--c-red); }
.svc-card p { margin-top: .45rem; font-size: .88rem; line-height: 1.95; color: var(--c-muted); flex: 1; }
.svc-card small { margin-top: .8rem; font-size: .8rem; color: var(--c-muted); }
.svc-card small b { font-family: "Inter", sans-serif; color: #0d7a3e; }
.svc-card__acts { display: flex; gap: .5rem; margin-top: 1rem; }
.svc-card__acts .btn { flex: 1; }
/* service detail */
.svc-intro { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .svc-intro { grid-template-columns: .9fr 1.1fr; } }
.svc-intro__img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, #eef1f5, #dfe4eb); color: #9aa5b5; border: 1px solid var(--c-line); box-shadow: var(--shadow); }
.svc-intro__img img { width: 100%; height: 100%; object-fit: cover; }
.svc-intro__img span svg { width: 90px; height: 90px; }
.svc-intro__h { margin-top: .8rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; color: var(--c-ink); line-height: 1.5; }
.svc-intro__p { margin-top: .9rem; color: var(--c-muted); line-height: 2.05; }
.svc-intro__list { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: .65rem; }
.svc-intro__list li { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--c-ink); font-size: .93rem; }
.svc-intro__list .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #e8f6ee; color: #0d7a3e; }
/* nationalities info + listing link + 404 */
.nat-card__info { margin-top: .6rem; font-size: .8rem; line-height: 1.85; color: var(--c-muted); }
.wkp__svc { font-weight: 700; color: var(--c-red); }
.wkp__svc:hover { text-decoration: underline; }
.nf { display: flex; flex-direction: column; align-items: center; text-align: center; }
.nf__code { font-family: "Inter", sans-serif; font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; line-height: 1; margin-bottom: 1.6rem; background: linear-gradient(180deg, var(--c-ink), #8a94a3); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* public worker statuses: available / reserved / contracted */
.wk-card__status--reserved { color: #925600; }
.wk-card__status--reserved i { background: #e69a00; box-shadow: 0 0 0 3px rgba(230, 154, 0, .2); }
.wk-card__status--booked { background: rgba(10, 19, 34, .86); color: #fff; }
.wk-card__status--booked i { background: #fff; box-shadow: none; }
.wk-card--booked .wk-card__photo > img { filter: grayscale(.45); }
.wk-card--booked .wk-card__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 19, 34, .25)); }
.wk-card__closed { cursor: default; background: var(--c-bg); color: var(--c-muted); border-color: var(--c-line); font-size: .8rem !important; }
.wk-card--reserved .wk-card__closed { background: #fdf3e2; color: #925600; border-color: #f1d9a8; }
.wk-card:not(.wk-card--available) .wk-card__actions .btn--line { color: #0d7a3e; border-color: #bfe5cf; }
.wk-card:not(.wk-card--available) .wk-card__actions .btn--line:hover { background: #e8f6ee; }
.tag--st-available { background: #e8f6ee; color: #0d7a3e; }
.tag--st-available i { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.tag--st-reserved { background: #fdf3e2; color: #925600; }
.tag--st-reserved i { width: 6px; height: 6px; border-radius: 50%; background: #e69a00; }
.tag--st-booked { background: var(--c-ink); color: #fff; }
.tag--st-booked i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.wd__closed { margin-top: 1.6rem; padding: 1.2rem 1.3rem; border-radius: 12px; background: var(--c-bg); border: 1px solid var(--c-line); }
.wd__closed b { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--c-ink); }
.wd__closed p { margin-top: .4rem; font-size: .88rem; line-height: 1.9; color: var(--c-muted); }

/* "مكتملة" (deal finished, hidden from the public site) */
.bg-violet-50 { background-color: #f3effd; }
.text-violet-700 { color: #6d3fc8; }
.dst--completed { background: #f3effd !important; color: #6d3fc8 !important; border-color: #ddd0f7 !important; }

/* "تم الاستقدام" (COMPLETED) on the public site */
.wk-card__status--completed { background: #6d3fc8; color: #fff; }
.wk-card__status--completed i { background: #fff; box-shadow: none; }
.wk-card--completed .wk-card__photo > img { filter: grayscale(.55); }
.tag--st-completed { background: #f3effd; color: #6d3fc8; }
.tag--st-completed i { width: 6px; height: 6px; border-radius: 50%; background: #6d3fc8; }

/* dashboard: nationalities */
.nat-add summary { cursor: pointer; list-style: none; color: var(--c-ink); }
.nat-add summary::-webkit-details-marker { display: none; }
.nat-add[open] summary { margin-bottom: 1rem; }
.nat-form { display: grid; gap: .9rem; align-items: end; grid-template-columns: 1fr; }
@media (min-width: 900px) { .nat-add .nat-form { grid-template-columns: 64px 1fr 1fr 1.2fr auto; } }
.nat-form__flag { display: grid; place-items: center; width: 64px; height: 44px; border-radius: 7px; overflow: hidden; box-shadow: 0 0 0 1px var(--c-line), 0 6px 14px -8px rgba(0, 0, 0, .35); background: #fff; }
.nat-form__flag img { width: 100%; height: 100%; object-fit: cover; }
.nat-list { display: grid; gap: 1rem; margin-top: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.nat-item { position: relative; }
.nat-item.is-off { opacity: .65; }
.nat-item__acts { display: flex; align-items: center; gap: .7rem; }
.nat-item__off { font-size: .74rem; font-weight: 700; color: var(--c-muted); }
.nat-item__toggle { position: absolute; top: 1.3rem; inset-inline-end: 1.3rem; }
.nat-item__toggle button { font-size: .76rem; font-weight: 700; }
.nat-item__toggle .is-hide { color: var(--c-red); }
.nat-item__toggle .is-show { color: #0d7a3e; }
