/* =============================================================
   ذات | Thaat — Auth pages (login / register) + Admin dashboard
   Built on the brand tokens from style.css
   ============================================================= */

/* Form controls don't inherit the page font by default (and Tailwind's
   preflight, which normally fixes this, is disabled) — so buttons/inputs
   like the auth tabs rendered in a different system font. Force inherit. */
button, input, select, textarea, optgroup { font-family: inherit; }

/* ---------- solid header for non-hero pages ---------- */
.site-header--solid { position: sticky; }

/* ============================ AUTH ============================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(80, 144, 199, .28), transparent 60%),
    radial-gradient(900px 600px at -5% 110%, rgba(63, 69, 149, .35), transparent 55%),
    linear-gradient(160deg, #22246d 0%, #1b1d2f 60%, #2c2d81 130%);
}
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 20px 72px;
}
.auth-wrap { width: 100%; max-width: 460px; }

/* account-type tabs */
.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.auth-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 0;
  color: #d7ddf2;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
}
.auth-tab svg { width: 20px; height: 20px; }
.auth-tab:hover { background: rgba(255, 255, 255, .14); }
.auth-tab.is-active {
  background: #ffffff;
  color: var(--indigo);
  border-color: #ffffff;
  box-shadow: 0 10px 26px rgba(27, 29, 47, .28);
}

/* card */
.auth-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 38px 34px 34px;
  box-shadow: var(--shadow-lg);
}
.auth-card__head { text-align: center; margin-bottom: 26px; }
.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}
.auth-sub { color: var(--muted); font-size: .92rem; }

/* fields */
.auth-field { margin-bottom: 16px; }
.auth-field > label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 7px;
}
.auth-input {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--heading);
  background: var(--bg-soft);
  border: 0;
  border-radius: 8px;
  outline: none;
  transition: var(--ease);
}
.auth-input::placeholder { color: #9aa2b4; }
.auth-input:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(80, 144, 199, .22);
}

.auth-row { display: flex; justify-content: flex-end; margin: -4px 0 18px; }
.auth-link {
  color: var(--blue-dark);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

.auth-error {
  background: #fef2f2;
  color: #b42318;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .88rem;
  margin-bottom: 16px;
  text-align: center;
}

.auth-actions { display: grid; gap: 12px; margin-top: 6px; }
.auth-actions .btn { border-radius: 11px; padding: 14px; font-size: 1.02rem; }
.btn--outline {
  background: var(--bg-soft);
  color: var(--indigo);
  border: 0;
}
.btn--outline:hover { background: var(--bg-muted); }

.auth-foot {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
.auth-foot a { color: var(--blue-dark); font-weight: 700; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* ========================= DASHBOARD ========================= */
.dash {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--bg-soft);
}
.dash__side {
  background: linear-gradient(180deg, #22246d 0%, #1b1d2f 100%);
  color: #cdd4ec;
  padding: 26px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dash__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 22px;
}
.dash__brand img { height: 34px; }
.dash__navlabel {
  font-size: .72rem;
  letter-spacing: 1px;
  color: #7f88b5;
  padding: 14px 12px 6px;
  text-transform: uppercase;
}
.dash__link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 10px;
  color: #cdd4ec;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  transition: var(--ease);
}
.dash__link svg { width: 19px; height: 19px; opacity: .85; }
.dash__link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.dash__link.is-active { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(80, 144, 199, .35); }
.dash__side-foot { margin-top: auto; padding-top: 16px; }
.dash__logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: #efd6d6;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
}
.dash__logout:hover { background: rgba(220, 80, 80, .22); color: #fff; }

.dash__main { display: flex; flex-direction: column; min-width: 0; }
.dash__top {
  background: #fff;
  border-bottom: 1px solid var(--bg-muted);
  padding: 18px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash__title { font-size: 1.3rem; font-weight: 800; color: var(--heading); }
.dash__user { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.dash__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--indigo); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.dash__body { padding: 28px 30px; }

.dash__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.dash-card {
  background: #fff;
  border: 0;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.dash-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.dash-card__icon svg { width: 22px; height: 22px; }
.dash-card__num { font-size: 2rem; font-weight: 800; color: var(--heading); line-height: 1; }
.dash-card__label { color: var(--muted); font-size: .9rem; margin-top: 6px; }

.dash-panel {
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dash-panel__head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--bg-muted);
  font-weight: 800;
  color: var(--heading);
}
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th, .dash-table td {
  text-align: start;
  padding: 13px 22px;
  font-size: .92rem;
}
.dash-table th {
  color: var(--muted);
  font-weight: 700;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--bg-muted);
}
.dash-table td { color: var(--text); border-bottom: 1px solid #f0f1f6; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table tr:hover td { background: #fafbfe; }
.pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}
.pill--green { background: #e6f6ee; color: #0a7a4a; }
.pill--amber { background: #fdf2e0; color: #a5620a; }
.pill--blue  { background: var(--tint-blue); color: var(--blue-dark); }

/* ------- responsive ------- */
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash__side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .dash__cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .dash__cards { grid-template-columns: 1fr; }
  .auth-tab { font-size: .85rem; padding: 11px 8px; }
}

/* ========================= CONTENT PAGES ========================= */
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-soft); }
.page-hero {
  padding: calc(var(--header-h) + 56px) 20px 56px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% -20%, rgba(80,144,199,.30), transparent 60%),
    linear-gradient(160deg, #22246d 0%, #1b1d2f 70%, #2c2d81 130%);
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 10px; color: #fff; }
.page-hero p { color: #b9c2e6; font-size: 1.05rem; }
.page-body { flex: 1; }
.page-inner { max-width: 860px; margin: 0 auto; padding: 48px 20px 72px; }
.page-card {
  background: #fff; border: 0; border-radius: 18px;
  box-shadow: var(--shadow); padding: 40px 42px;
}

/* prose for legacy HTML content */
.prose { color: var(--text); line-height: 2; font-size: 1.02rem; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--heading); font-weight: 800; margin: 26px 0 12px; line-height: 1.5; }
.prose h3 { color: var(--indigo); font-size: 1.3rem; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { padding-inline-start: 24px; margin-bottom: 14px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--blue-dark); }
.prose strong { color: var(--heading); }
.prose img { max-width: 100%; border-radius: 12px; }

/* FAQ accordion */
.faq-group { margin-bottom: 34px; }
.faq-group__title { font-size: 1.25rem; font-weight: 800; color: var(--indigo); margin-bottom: 16px; }
.faq-item {
  background: #fff; border: 0; border-radius: 12px;
  margin-bottom: 12px; overflow: hidden; transition: var(--ease);
}
.faq-item.is-open { border-color: var(--blue); box-shadow: 0 8px 24px rgba(80,144,199,.12); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--heading); text-align: start;
}
.faq-q__icon { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--tint-blue); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: var(--ease); }
.faq-item.is-open .faq-q__icon { background: var(--blue); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a__inner { padding: 0 22px 20px; color: var(--muted); line-height: 2; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.contact-info__item {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 0; border-radius: 14px; padding: 18px 20px;
}
.contact-info__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--tint-indigo); color: var(--indigo);
  display: flex; align-items: center; justify-content: center; flex: none; }
.contact-info__icon svg { width: 22px; height: 22px; }
.contact-info__label { font-size: .82rem; color: var(--muted); }
.contact-info__value { font-weight: 700; color: var(--heading); }
.contact-form { background: #fff; border: 0; border-radius: 18px; box-shadow: var(--shadow); padding: 30px 30px; }
.contact-form textarea.auth-input { min-height: 130px; resize: vertical; }
.contact-ok { background: #e6f6ee; color: #0a7a4a; border: 0; border-radius: 10px; padding: 12px 16px; text-align: center; margin-bottom: 14px; }

@media (max-width: 760px) {
  .page-card { padding: 28px 22px; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ========================= JOBS (public) ========================= */
.jobs-toolbar { display: grid; grid-template-columns: 1fr 240px auto; gap: 12px; margin-bottom: 26px; }
.jobs-toolbar .auth-input { margin: 0; }
.jobs-count { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.job-card {
  display: block; background: #fff; border: 0; border-radius: 16px;
  padding: 22px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: var(--ease);
}
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.job-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.job-card__logo {
  width: 46px; height: 46px; border-radius: 12px; background: var(--tint-indigo); color: var(--indigo);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; flex: none;
}
.job-card__title { font-size: 1.08rem; font-weight: 800; color: var(--heading); line-height: 1.4; }
.job-card__company { color: var(--muted); font-size: .88rem; }
.job-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.job-tag { background: var(--bg-soft); color: var(--text); font-size: .78rem; font-weight: 600; padding: 4px 11px; border-radius: 7px; }
.job-tag--salary { background: #e6f6ee; color: #0a7a4a; }

.jobs-empty { text-align: center; color: var(--muted); padding: 60px 20px; }

/* job detail */
.job-detail { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.job-detail__main { background: #fff; border: 0; border-radius: 18px; box-shadow: var(--shadow); padding: 34px; }
.job-detail__title { font-size: 1.7rem; font-weight: 800; color: var(--heading); margin-bottom: 8px; }
.job-detail__company { color: var(--blue-dark); font-weight: 700; margin-bottom: 18px; }
.job-detail__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.job-detail__section h3 { font-size: 1.05rem; font-weight: 800; color: var(--heading); margin: 20px 0 8px; }
.job-detail__desc { color: var(--text); line-height: 2; white-space: pre-line; }
.job-detail__side { background: #fff; border: 0; border-radius: 18px; box-shadow: var(--shadow); padding: 26px; position: sticky; top: 100px; }
.job-detail__side .btn { width: 100%; margin-bottom: 10px; }
.apply-msg { border-radius: 10px; padding: 12px 14px; font-size: .9rem; text-align: center; margin-bottom: 12px; }
.apply-msg--ok { background: #e6f6ee; color: #0a7a4a; border: 0; }
.apply-msg--err { background: #fef2f2; color: #b42318; border: 1px solid #fbd5d0; }
.job-side__row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #f0f1f6; font-size: .9rem; }
.job-side__row:last-child { border: 0; }
.job-side__row span:first-child { color: var(--muted); }
.job-side__row span:last-child { color: var(--heading); font-weight: 700; }

@media (max-width: 780px) {
  .jobs-toolbar { grid-template-columns: 1fr; }
  .job-detail { grid-template-columns: 1fr; }
  .job-detail__side { position: static; }
}

/* ===================== JOBS PAGE — professional redesign ===================== */
.jobsx { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-soft); }
.jobsx-hero {
  padding: calc(var(--header-h) + 54px) 20px 90px; text-align: center; color: #fff;
  background:
    radial-gradient(900px 480px at 82% -20%, rgba(80,144,199,.32), transparent 60%),
    linear-gradient(160deg, #22246d 0%, #1b1d2f 72%, #2c2d81 130%);
}
.jobsx-hero h1 { font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 8px; color: #fff; }
.jobsx-hero p { color: #b9c2e6; font-size: .95rem; max-width: 520px; margin: 0 auto; }

.jobsx-search {
  width: 100%; max-width: 820px; margin: -50px auto 0; position: relative; z-index: 2;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 12px; display: grid; grid-template-columns: 1fr 200px 180px auto; gap: 12px;
}
.jobsx-search__field { position: relative; }
.jobsx-search__field svg { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #9aa2b4; }
.jobsx-search input, .jobsx-search select {
  width: 100%; height: 46px; padding: 0 15px; font: inherit; font-size: .9rem; color: var(--heading);
  background: var(--bg-soft); border: 1.5px solid transparent; border-radius: 10px; outline: none; transition: var(--ease);
}
.jobsx-search__field input { padding-inline-start: 40px; }
.jobsx-search input:focus, .jobsx-search select:focus { border-color: var(--blue); background: #fff; }
.jobsx-search button { height: 46px; padding: 0 28px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; transition: var(--ease); }
.jobsx-search button:hover { background: var(--blue-dark); }

.jobsx-body { flex: 1; max-width: 1320px; width: 80%; margin: 0 auto; padding: 36px 20px 72px; }
.jobsx-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.jobsx-count { color: var(--heading); font-weight: 700; font-size: .9rem; }
.jobsx-count b { color: var(--blue-dark); }

/* category chips */
.jobsx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.jobsx-chip { padding: 7px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--bg-muted); color: var(--muted); font-size: .86rem; font-weight: 600; cursor: pointer; transition: var(--ease); }
.jobsx-chip:hover { border-color: var(--blue); color: var(--blue-dark); }
.jobsx-chip.is-active { background: var(--indigo); border-color: var(--indigo); color: #fff; }

.jobsx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.jobsx-card {
  display: flex; flex-direction: column; background: #fff; border: 0; border-radius: 16px;
  padding: 20px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: var(--ease); position: relative; overflow: hidden;
}
.jobsx-card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--indigo)); opacity: 0; transition: var(--ease); }
.jobsx-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.jobsx-card:hover::before { opacity: 1; }
.jobsx-card__top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.jobsx-card__title { font-size: 1rem; font-weight: 800; color: var(--heading); line-height: 1.45; margin-bottom: 2px; }
.jobsx-card__company { color: var(--muted); font-size: .82rem; }
.jobsx-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.jobsx-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-soft); color: var(--text); font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 7px; }
.jobsx-tag svg { width: 12px; height: 12px; opacity: .7; }
.jobsx-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid #f0f1f6; }
.jobsx-salary { color: #0a7a4a; font-weight: 800; font-size: .86rem; }
.jobsx-salary span { color: var(--muted); font-weight: 500; font-size: .72rem; }
.jobsx-card__cta { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-dark); font-weight: 700; font-size: .8rem; }
.jobsx-card__cta svg { width: 16px; height: 16px; transform: scaleX(-1); transition: var(--ease); }
.jobsx-card:hover .jobsx-card__cta svg { transform: scaleX(-1) translateX(4px); }
.jobsx-fresh { color: var(--muted); font-size: .78rem; }

.jobsx-empty { text-align: center; color: var(--muted); padding: 70px 20px; background: #fff; border-radius: 18px; border: 0; }
.jobsx-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 36px; }
.jobsx-pager button { padding: 10px 22px; border-radius: 10px; border: 1.5px solid var(--bg-muted); background: #fff; color: var(--indigo); font: inherit; font-weight: 700; cursor: pointer; transition: var(--ease); }
.jobsx-pager button:hover:not(:disabled) { border-color: var(--indigo); background: var(--bg-soft); }
.jobsx-pager button:disabled { opacity: .45; cursor: default; }

@media (max-width: 720px) {
  .jobsx-search { grid-template-columns: 1fr; }
  .jobsx-grid { grid-template-columns: 1fr; }
}

/* ===== HOME stats bar: straddle hero / next section (50/50), narrower, no solid band ===== */
.stats { background: transparent; padding: 0; height: 0; margin: 0; position: relative; z-index: 6; }
.stats .container { position: relative; }
.stats__card { max-width: 840px; transform: translateY(-50%); }
.audiences { padding-block-start: 120px; }
@media (max-width: 640px) {
  .stats { height: auto; padding-block: 30px 0; }
  .stats__card { transform: none; max-width: 100%; }
  .audiences { padding-block-start: 44px; }
}

/* ===================== USER DASHBOARD (site theme, top tabs) ===================== */
.udash { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-soft); }
.udash-hero {
  padding: calc(var(--header-h) + 40px) 20px 78px; color: #fff;
  background:
    radial-gradient(900px 460px at 85% -20%, rgba(80,144,199,.30), transparent 60%),
    linear-gradient(160deg, #22246d 0%, #1b1d2f 72%, #2c2d81 130%);
}
.udash-hero__inner { width: 80%; max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 18px; }
.udash-hero__avatar { width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; font-weight: 800; color: #fff; flex: none; }
.udash-hero__hi { color: #b9c2e6; font-size: .95rem; }
.udash-hero__name { font-size: 1.6rem; font-weight: 800; margin-top: 2px; }
.udash-hero__sub { color: #aeb8e0; font-size: .85rem; margin-top: 4px; letter-spacing: .3px; }
.udash-hero__extra { margin-inline-start: auto; }

/* Company switcher — glassy select in the hero */
.udash-switch {
  appearance: none;
  background: rgba(255, 255, 255, .14);
  border: 0;
  color: #fff;
  border-radius: 6px;
  padding: 9px 36px 9px 14px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 200px;
}
[dir='rtl'] .udash-switch { padding: 9px 14px 9px 36px; background-position: left 12px center; }
.udash-switch:hover { background-color: rgba(255, 255, 255, .2); }
.udash-switch option { color: #1f2433; background: #fff; }

/* Applicant-count chip (opens the job drill-down) */
.udash-applicants-btn {
  min-width: 40px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: #e5ecf2;
  color: #35689b;
  font-weight: 800;
  font-size: .85rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.udash-applicants-btn:hover { background: #5090c7; color: #fff; }

/* Small inline text-buttons in tables */
.udash-link-btn {
  background: none;
  border: 0;
  padding: 2px 4px;
  color: #3f6fb5;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
}
.udash-link-btn:hover { text-decoration: underline; }
.udash-link-btn--danger { color: #c2452d; }

/* Back link above the drill-down view */
.udash-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #4b5563;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.udash-back:hover { border-color: #5090c7; color: #35689b; }
[dir='ltr'] .udash-back svg { transform: none; }
[dir='rtl'] .udash-back svg { transform: scaleX(-1); }

/* Status select inside applicant rows */
.udash-status {
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #1f2433;
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
}

/* Company profile — view-first detail grid */
.udash-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}
.udash-detail { padding: 13px 0; border-bottom: 1px solid #f0f1f6; }
.udash-detail__label { color: #8b93a7; font-size: .78rem; font-weight: 700; margin-bottom: 4px; }
.udash-detail__hint { color: #b3bac9; font-weight: 400; margin-inline-start: 6px; font-size: .72rem; }
.udash-detail__value { color: #1f2433; font-weight: 700; font-size: .95rem; overflow-wrap: anywhere; }
@media (max-width: 640px) { .udash-profile-grid { grid-template-columns: 1fr; } }

/* Modal (invite admin, etc.) */
.udash-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(15, 18, 44, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.udash-modal {
  width: min(480px, 94vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(10, 12, 35, .35);
  overflow: hidden;
  animation: modal-in .22s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.udash-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid #eef0f5;
  font-weight: 800;
  color: #1f2433;
}
.udash-modal__close {
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: #9aa2b4;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 8px;
}
.udash-modal__close:hover { color: #1f2433; background: #f2f4f8; }

/* Role picker cards inside the modal */
.udash-roles { display: grid; gap: 8px; }
.udash-role {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 4px 10px;
  padding: 11px 14px;
  border: 0;
  border-radius: 8px;
  background: #f7f9fc;
  cursor: pointer;
  transition: background .15s ease;
}
.udash-role:hover { background: #eef3f9; }
.udash-role.is-selected { background: #e4eefa; }
.udash-role input { accent-color: #35689b; }
.udash-role__name { font-weight: 800; color: #1f2433; font-size: .92rem; }
.udash-role__desc { grid-column: 2 / -1; color: #6b7280; font-size: .8rem; line-height: 1.55; }

/* Neutral role pill (viewer) */
.pill--gray { background: #eef0f4; color: #5b6472; }

/* CV tab — uploaded-file chip + section list items */
.udash-cv-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 0;
  border-radius: 10px;
  background: #f8f9fc;
  color: #35689b;
  font-weight: 700;
  font-size: .87rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.udash-cv-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 15px 22px;
  border-bottom: 1px solid #f0f1f6;
}
.udash-cv-item:last-child { border-bottom: 0; }

/* Profile-completeness progress bar */
.udash-progress {
  height: 10px;
  border-radius: 999px;
  background: #eef0f5;
  overflow: hidden;
}
.udash-progress__bar {
  height: 100%;
  border-radius: 999px;
  transition: width .5s ease;
}

/* Notification rows */
.udash-notif {
  display: flex;
  gap: 12px;
  padding: 13px 22px;
  border-bottom: 1px solid #f0f1f6;
  color: #9aa2b4;
}
.udash-notif:last-child { border-bottom: 0; }
.udash-notif.is-unread { background: #f4f8fd; color: #5090c7; }

/* Save-job (bookmark) button */
.udash-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.udash-save-btn:hover { border-color: #c2452d; color: #c2452d; }

/* Inline error note (mirrors .contact-ok) */
.contact-err {
  background: #fdecea;
  color: #b3362a;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .88rem;
  font-weight: 600;
}

.udash-nav {
  width: 80%; max-width: 1100px; margin: -30px auto 0; position: relative; z-index: 3;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 7px; display: flex; gap: 6px; flex-wrap: wrap;
}
.udash-tab {
  flex: 1; min-width: 130px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: 10px; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .92rem; color: var(--muted); text-decoration: none; transition: var(--ease);
}
.udash-tab svg { width: 18px; height: 18px; }
.udash-tab:hover { background: var(--bg-soft); color: var(--indigo); }
.udash-tab.is-active { background: linear-gradient(135deg, var(--blue), var(--indigo)); color: #fff; box-shadow: 0 8px 20px rgba(63,69,149,.3); }

.udash-body { width: 80%; max-width: 1100px; margin: 0 auto; padding: 34px 0 72px; }
.udash-section { scroll-margin-top: 90px; margin-bottom: 26px; }
.udash-section__title { font-size: 1.15rem; font-weight: 800; color: var(--heading); margin: 0 4px 14px; }

@media (max-width: 760px) {
  .udash-hero__inner, .udash-nav, .udash-body { width: 92%; }
  .udash-tab { min-width: 0; padding: 10px 10px; font-size: .82rem; }
}

/* =============================================================
   Job detail — wide layout aligned to the site header container
   ============================================================= */
.jobd { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-soft); }
.jobd > .site-footer { margin-top: auto; }

/* same inner width as the header's .container */
.jobd-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

.jobd-head {
  color: #fff;
  padding: calc(var(--header-h) + 26px) 0 40px;
  background:
    radial-gradient(900px 500px at 85% -30%, rgba(80, 144, 199, .30), transparent 60%),
    linear-gradient(160deg, #22246d 0%, #1b1d2f 70%, #2c2d81 130%);
}

/* icon-only back chevron, inline with the breadcrumb */
.jobd-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.jobd-back {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background var(--ease);
}
.jobd-back:hover { background: rgba(255, 255, 255, .22); }
.jobd-back svg { width: 16px; height: 16px; }
[dir='rtl'] .jobd-back svg { transform: scaleX(-1); }

.jobd-crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  min-width: 0;
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
}
.jobd-crumb a { color: rgba(255, 255, 255, .8); transition: color var(--ease); }
.jobd-crumb a:hover { color: #fff; text-decoration: underline; }
.jobd-crumb__current { color: #fff; font-weight: 700; }

.jobd-masthead { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.jobd-masthead__text { min-width: 0; }
.jobd-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; color: #fff; line-height: 1.35; }
.jobd-company { color: #b9c9e6; font-weight: 700; margin-top: 4px; }

/* body grid */
.jobd-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
  padding-block: 34px 72px;
}
.jobd-main { display: grid; gap: 20px; min-width: 0; }
.jobd-card {
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(20, 22, 50, .06);
  padding: 28px 30px;
}
.jobd-card__head {
  font-size: 1.08rem; font-weight: 800; color: var(--heading);
  margin-bottom: 18px;
}
.jobd-desc { color: var(--text); line-height: 2.05; white-space: pre-line; font-size: .97rem; }

/* facts */
.jobd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.jobd-fact {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 0;
  border-radius: 6px;
  background: #f7f9fc;
}
.jobd-fact__icon {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: #e7eff8; color: #4a7fb5;
}
.jobd-fact__icon svg { width: 15px; height: 15px; }
.jobd-fact__label { color: var(--muted); font-size: .87rem; }
.jobd-fact__value { color: var(--heading); font-weight: 700; font-size: .9rem; text-align: end; }

/* sticky apply panel */
.jobd-side { position: sticky; top: 96px; }
.jobd-apply { padding: 24px; }
.jobd-apply__salary {
  text-align: center;
  padding: 14px 12px;
  margin-bottom: 18px;
  border: 0;
  border-radius: 6px;
  background: #f2faf6;
}
.jobd-apply__salary span { display: block; font-size: 1.25rem; font-weight: 800; color: #0a7a4a; }
.jobd-apply__salary small { color: var(--muted); font-size: .8rem; }
.jobd-apply .btn { width: 100%; }
.jobd-apply__meta {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 4px; border: 0;
  color: var(--muted); font-size: .82rem;
}
.jobd-apply__meta span { display: inline-flex; align-items: center; gap: 6px; }
.jobd-apply__meta svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .jobd-grid { grid-template-columns: 1fr; }
  .jobd-side { position: static; }
  .jobd-facts { grid-template-columns: 1fr; }
  .jobd-logo { width: 58px; height: 58px; font-size: 1.5rem; border-radius: 14px; }
}

/* activation / expiry dates under the apply button */
.jobd-dates { display: grid; gap: 4px; margin-top: 18px; }
.jobd-date {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 6px; background: #f7f9fc;
}
.jobd-date__label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .82rem; }
.jobd-date__label svg { width: 14px; height: 14px; }
.jobd-date__value { color: var(--heading); font-weight: 700; font-size: .84rem; }

/* skills / benefits / similar jobs / actions */
.jobd-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.jobd-skill {
  background: #eef4fa; color: #35689b;
  font-size: .84rem; font-weight: 600;
  padding: 7px 14px; border-radius: 6px;
}
.jobd-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; padding: 0; }
.jobd-benefits li {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px; border-radius: 6px; background: #f2faf6;
  color: var(--text); font-size: .89rem; font-weight: 600;
}
.jobd-benefits svg { width: 16px; height: 16px; color: #0ca678; flex: none; }

.jobd-similar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jobd-similar__item {
  display: grid; gap: 4px;
  padding: 14px 16px; border-radius: 6px; background: #f7f9fc;
  transition: background var(--ease), transform var(--ease);
}
.jobd-similar__item:hover { background: #eef4fa; transform: translateY(-2px); }
.jobd-similar__title { color: var(--heading); font-weight: 700; font-size: .92rem; }
.jobd-similar__meta { color: var(--muted); font-size: .8rem; }

.jobd-actions { display: flex; gap: 8px; margin-top: 10px; }
.jobd-action {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 12px; border: 0; border-radius: 6px;
  background: #f2f4f8; color: #4b5563;
  font-family: inherit; font-size: .84rem; font-weight: 700; cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.jobd-action:hover { background: #e6ebf3; color: var(--heading); }
.jobd-action.is-on { background: #fdecea; color: #c2452d; }
.jobd-action svg { width: 15px; height: 15px; }

.jobd-deadline {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 12px; padding: 9px 12px; border-radius: 6px;
  background: #f2faf6; color: #0a7a4a; font-size: .84rem; font-weight: 700;
}
.jobd-deadline.is-urgent { background: #fdf3e6; color: #a5620a; }
.jobd-deadline svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .jobd-benefits, .jobd-similar { grid-template-columns: 1fr; }
}

/* ---- simplified detail layout ---- */
/* the four decision facts, straddling the header seam */
.jobd-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #e9edf4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(20, 22, 50, .07);
  margin-top: -32px;
  position: relative;
  z-index: 2;
}
.jobd-quick__item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 10px;
  background: #fff;
  padding: 16px 20px;
}
.jobd-quick__icon {
  grid-row: 1 / 3;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: #eef4fa; color: #4a7fb5;
}
.jobd-quick__icon svg { width: 18px; height: 18px; }
.jobd-quick__label { color: var(--muted); font-size: .78rem; align-self: end; }
.jobd-quick__value { color: var(--heading); font-weight: 800; font-size: .98rem; align-self: start; }

/* sub-section inside a card (skills under requirements) */
.jobd-sub { margin-top: 22px; padding-top: 18px; }
.jobd-sub__head { font-size: .92rem; font-weight: 800; color: var(--heading); margin-bottom: 12px; }

.jobd-facts--tight { margin-top: 14px; }
.jobd-until { margin-top: 10px; text-align: center; color: var(--muted); font-size: .78rem; }

/* actions sit beside the title in the masthead */
.jobd-masthead .jobd-actions { margin-inline-start: auto; margin-top: 0; }
.jobd-masthead .jobd-action {
  background: rgba(255, 255, 255, .12);
  color: #e8eefb;
}
.jobd-masthead .jobd-action:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.jobd-masthead .jobd-action.is-on { background: rgba(255, 255, 255, .92); color: #c2452d; }

@media (max-width: 900px) {
  .jobd-quick { grid-template-columns: 1fr 1fr; margin-top: -20px; }
  .jobd-masthead .jobd-actions { margin-inline-start: 0; width: 100%; }
}

/* similar jobs live in the sidebar — single column, scrolls with the page */
.jobd-side { display: grid; gap: 20px; align-content: start; }
.jobd-similar-card .jobd-similar { grid-template-columns: 1fr; }

/* similar jobs: no card behind them, each row ends with a chevron */
.jobd-similar-card { padding: 0; background: none; box-shadow: none; }
.jobd-similar-card .jobd-card__head { padding: 0 4px; margin-bottom: 12px; }
.jobd-similar-card .jobd-similar__item {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  /* translucent at rest, solid white on hover */
  background: rgba(255, 255, 255, .55);
  box-shadow: none;
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
}
.jobd-similar-card .jobd-similar__item:hover {
  background: #fff;
  box-shadow: 0 6px 18px rgba(20, 22, 50, .09);
}
.jobd-similar__text { display: grid; gap: 3px; min-width: 0; }
.jobd-similar__go {
  display: grid; place-items: center;
  width: 24px; height: 24px; flex: none;
  color: #9aa6bb;
  transition: color var(--ease), transform var(--ease);
}
.jobd-similar__go svg { width: 15px; height: 15px; }
/* the chevron points the way the reader travels */
[dir='rtl'] .jobd-similar__go svg { transform: none; }
[dir='ltr'] .jobd-similar__go svg { transform: scaleX(-1); }
.jobd-similar__item:hover .jobd-similar__go { color: var(--blue-dark); }
[dir='rtl'] .jobd-similar__item:hover .jobd-similar__go { transform: translateX(-3px); }
[dir='ltr'] .jobd-similar__item:hover .jobd-similar__go { transform: translateX(3px); }
