/* ============================================================
   True HR — styles (mobile-first)
   Breakpoints: phone < 640 · tablet 640–1023 · desktop >= 1024
   ============================================================ */
:root {
  --green-900: #194670;
  --green-700: #1B6FA8;
  --green-100: #E1F1FB;
  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --surface-soft: #F8FBFE;
  --tag: #EEF3F8;
  --text: #142233;
  --text-2: #44546A;
  --muted: #56657A;
  --border: #D5DEE9;
  --border-input: #C3CFDD;
  --border-strong: #AFBCCC;
  --danger: #B3261E;
  --danger-bg: #FDECEA;
  --focus: #1B6FA8;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-input: 10px;
  --r-card: 14px;
  --r-pill: 999px;
  --gutter: 16px;
  --tap: 44px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--green-700); }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-900); color: var(--bg); }
.topbar-inner { max-width: 1280px; margin: 0 auto; height: 60px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand:hover { color: inherit; }
.logo { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--bg); color: var(--green-900); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-long, .brand-sub { display: none; }
.topnav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.topnav a { color: var(--bg); text-decoration: none; }
.topnav .nav-link { display: none; }
.pill-light { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 16px; border-radius: var(--r-pill); background: var(--bg); color: var(--green-900) !important; font-weight: 600; font-size: 14px; }

/* ---------- Layout ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Hero ---------- */
.hero { padding: 32px 0 24px; display: grid; gap: 24px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--green-700); margin: 0 0 12px; }
.hero h1 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 500; font-size: 38px; line-height: 1.08; letter-spacing: -0.5px; color: var(--green-900); }
.hero p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-2); max-width: 620px; }
.benefits { display: none; list-style: none; margin: 0; padding: 0; }
.benefits li { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); font-size: 15px; }
.benefits svg { flex: none; }

/* ---------- Roles strip ---------- */
.roles { padding-bottom: 24px; }
.section-label { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; list-style: none; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.role-chip { flex: none; padding: 10px 16px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); font-size: 14px; white-space: nowrap; }

/* ---------- Progress (phone/tablet) ---------- */
.progress { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px var(--gutter); margin: 0 calc(-1 * var(--gutter)); }
.progress-text { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.progress-text b { color: var(--green-900); font-weight: 600; }
.progress-track { height: 6px; border-radius: var(--r-pill); background: #DCE4EE; overflow: hidden; }
.progress-bar { height: 100%; width: 16.66%; background: var(--green-900); border-radius: var(--r-pill); transition: width .25s ease; }

/* ---------- Apply layout ---------- */
.apply { display: grid; gap: 24px; padding: 20px 0 32px; }
.steps { display: none; }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 32px; }
.form-section { border: 0; margin: 0; padding: 0; min-width: 0; scroll-margin-top: 80px; }
.form-section legend { padding: 0 0 16px; font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--green-900); }
.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: 14px; font-weight: 500; }
.hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.req { color: var(--danger); }

input, select, textarea { font: inherit; font-size: 16px; color: var(--text); width: 100%; border: 1px solid var(--border-input); border-radius: var(--r-input); background: var(--surface); }
input, select { height: 52px; padding: 0 14px; }
select { padding-right: 36px; }
textarea { padding: 12px 14px; resize: vertical; min-height: 96px; }
select:disabled { background: #EEF2F6; color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.is-invalid input, .is-invalid select, .is-invalid textarea, .is-invalid .dropzone { border-color: var(--danger); background: #FFF8F7; }
.field-error { display: none; font-size: 13px; color: var(--danger); }
.is-invalid .field-error { display: block; }

/* Segmented control (phone) vs select (desktop) */
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 6px; border: 1px solid var(--border-input); border-radius: var(--r-input); background: var(--surface); font-size: 14px; text-align: center; cursor: pointer; }
.seg input:checked + span { background: var(--green-900); border-color: var(--green-900); color: #fff; font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.is-invalid .seg span { border-color: var(--danger); }
.seg-select { display: none; }

/* Chips (multi-pick) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; padding-left: 14px; border-radius: var(--r-pill); background: var(--green-100); color: var(--green-900); font-size: 14px; font-weight: 500; }
.chip button { width: var(--tap); height: var(--tap); border: 0; border-radius: var(--r-pill); background: transparent; color: var(--green-900); font-size: 18px; line-height: 1; cursor: pointer; }
.chip button:hover { background: rgba(25, 70, 112, .08); }

/* CV dropzone */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 16px; border: 2px dashed var(--border-strong); border-radius: var(--r-card); background: var(--surface-soft); text-align: center; cursor: pointer; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--green-700); }
.dropzone:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dz-icon { width: 52px; height: 52px; border-radius: var(--r-card); background: var(--green-100); display: grid; place-items: center; }
.dz-title { font-size: 16px; font-weight: 600; color: var(--green-900); overflow-wrap: anywhere; }
.dz-sub { font-size: 13px; color: var(--muted); }
.dz-desktop { display: none; }

/* Submit bar */
.submit-bar { position: sticky; bottom: 0; z-index: 5; margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter) calc(16px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.privacy { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }
.upload-progress { height: 4px; border-radius: var(--r-pill); background: #DCE4EE; overflow: hidden; }
.upload-progress div { height: 100%; width: 0; background: var(--green-700); transition: width .15s; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 20px; border: 1px solid transparent; border-radius: var(--r-pill); font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--green-900); color: #fff !important; }
.btn-primary:hover { background: #123558; }
.btn-outline { background: var(--surface); border-color: var(--green-900); color: var(--green-900) !important; }
.btn-lg { min-height: 54px; font-size: 17px; padding: 0 36px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .65; cursor: progress; }

/* Alerts & states */
.alert { padding: 12px 16px; border-radius: var(--r-input); background: var(--danger-bg); color: var(--danger); font-size: 14px; }
.success-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 40px 24px; text-align: center; margin: 32px 0; }
.success-card h2 { font-family: var(--font-display); font-weight: 500; font-size: 30px; color: var(--green-900); margin: 16px 0 8px; }
.success-card p { color: var(--text-2); margin: 0 0 24px; }
.success-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: var(--r-pill); background: var(--green-100); display: grid; place-items: center; }

.footer { border-top: 1px solid var(--border); }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 20px var(--gutter) 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }

.hp { position: absolute; left: -9999px; }

/* ============ Tablet ≥ 640 ============ */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .topbar-inner { height: 68px; }
  .brand-name.brand-short { display: none; }
  .brand-long { display: block; }
  .hero h1 { font-size: 52px; }
  .fields.cols-2, .fields.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields .span-all { grid-column: 1 / -1; }
  .chip-row { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; }
  .dz-desktop { display: inline; }
  .dz-mobile { display: none; }
}

/* ============ Desktop ≥ 1024 ============ */
@media (min-width: 1024px) {
  :root { --gutter: 80px; }
  .topbar-inner { height: 76px; }
  .logo { width: 40px; height: 40px; font-size: 22px; border-radius: 10px; }
  .brand-name { font-size: 16px; }
  .brand-sub { display: block; font-size: 13px; color: #5C6F86; }
  .topnav .nav-link { display: inline; }
  .pill-light { padding: 0 20px; font-size: 15px; }

  .hero { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; padding: 72px 0 56px; }
  .hero-text { grid-column: span 7; }
  .hero h1 { font-size: 68px; letter-spacing: -1px; line-height: 1.04; margin-bottom: 20px; }
  .hero p { font-size: 19px; line-height: 1.6; }
  .eyebrow { font-size: 14px; margin-bottom: 20px; }
  .benefits { display: grid; gap: 12px; grid-column: 9 / span 4; }
  .roles { padding-bottom: 56px; }
  .role-chip { font-size: 15px; padding: 10px 18px; }

  .progress { display: none; }
  .apply { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; padding: 0 0 80px; }
  .steps { display: flex; flex-direction: column; gap: 4px; grid-column: span 3; position: sticky; top: 24px; list-style: none; margin: 0; padding: 8px 0 0; }
  .steps a { display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 8px 16px; border-radius: var(--r-input); color: var(--text-2); text-decoration: none; font-size: 15px; }
  .steps a span { flex: none; width: 26px; height: 26px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); display: grid; place-items: center; font-size: 13px; }
  .steps a[aria-current="step"] { background: var(--green-100); color: var(--green-900); font-weight: 600; }
  .steps a[aria-current="step"] span { background: var(--green-900); border-color: var(--green-900); color: #fff; }
  .form-card { grid-column: 4 / span 9; padding: 48px 56px; }
  .form { gap: 44px; }
  .form-section legend { font-size: 26px; padding-bottom: 20px; }
  .fields { gap: 20px 24px; }
  .fields.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  input, select { height: 50px; }

  .seg { display: none; }
  .seg-select { display: block; }

  .submit-bar { position: static; margin: 0; padding: 28px 0 0; background: none; border-top: 1px solid #E3E9F1; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .submit-bar .btn { width: auto; order: 2; }
  .privacy { text-align: left; font-size: 14px; max-width: 460px; }
  .upload-progress { position: absolute; }
  .submit-bar { position: relative; }
  .upload-progress { left: 0; right: 0; top: 0; }
  .success-card { padding: 64px; max-width: 720px; margin: 48px auto; }
  .footer-inner { padding: 28px var(--gutter); }
}

/* ============================================================
   Admin
   ============================================================ */
.admin-main { padding: 20px 0 32px; display: flex; flex-direction: column; gap: 16px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-head h1 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 28px; color: var(--green-900); }
.admin-head .btn { display: none; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat { padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); display: flex; flex-direction: column; }
.stat span { font-size: 13px; color: var(--muted); }
.stat b { font-family: var(--font-display); font-weight: 500; font-size: 26px; color: var(--green-900); }

.status-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
.status-chips::-webkit-scrollbar { display: none; }
.status-chips button { flex: none; min-height: var(--tap); padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.status-chips button[aria-pressed="true"] { background: var(--green-900); border-color: var(--green-900); color: #fff; }

.toolbar { display: flex; flex-direction: column; gap: 12px; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; height: 48px; }
.icon-btn { flex: none; width: 48px; height: 48px; border: 1px solid var(--border-input); border-radius: var(--r-input); background: var(--surface); color: var(--green-900); display: grid; place-items: center; cursor: pointer; position: relative; }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--green-700); }

/* Filters: bottom sheet on phone/tablet, inline row on desktop */
.filters { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 85vh; border-radius: 20px 20px 0 0; background: var(--surface); color: var(--text); }
.filters::backdrop { background: rgba(10, 20, 35, .45); }
.filters[open] { display: flex; flex-direction: column; gap: 16px; padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom)); }
.filters .status-field { display: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { margin: 0; font-size: 18px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.app-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.app-card { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); display: flex; flex-direction: column; gap: 12px; }
.app-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.app-name { font-weight: 600; font-size: 16px; margin: 0; overflow-wrap: anywhere; }
.app-role { font-size: 14px; color: var(--text-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { padding: 4px 10px; border-radius: 8px; background: var(--tag); font-size: 13px; color: var(--text-2); }
.app-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.app-actions .btn { font-size: 14px; padding: 0 8px; border-radius: var(--r-input); }
.app-actions select { height: var(--tap); font-size: 14px; padding: 0 28px 0 8px; }
.app-meta { font-size: 12px; color: var(--muted); }

.badge { flex: none; display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-New { background: #DDEBF7; color: #154A7A; }
.badge-Reviewed { background: var(--tag); color: var(--text-2); }
.badge-Shortlisted { background: var(--green-100); color: var(--green-900); }
.badge-Interview { background: #F6E7C8; color: #6B4A0C; }
.badge-Hired { background: var(--green-900); color: #fff; }
.badge-Rejected { background: #F5DEDC; color: #7A1F17; }

.table-card { display: none; }
.state { padding: 40px 16px; text-align: center; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }
.state h2 { margin: 0 0 4px; font-size: 16px; color: var(--text); }
.state p { margin: 0; font-size: 14px; }
.skeleton { height: 150px; border-radius: var(--r-card); background: linear-gradient(90deg, #E9EEF4 0%, #F4F7FB 50%, #E9EEF4 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .progress-bar { transition: none; } }
.export-mobile { margin-top: 8px; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px var(--gutter); }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.login-card h1 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 26px; color: var(--green-900); }

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .admin-main { padding: 32px 0 48px; gap: 24px; }
  .admin-head h1 { font-size: 36px; }
  .admin-head .btn { display: inline-flex; }
  .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .stat { padding: 18px 20px; }
  .stat b { font-size: 32px; }
  .status-chips { display: none; }
  .toolbar { display: grid; grid-template-columns: 2fr repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; }
  .search-row .icon-btn { display: none; }
  .search-row input, .toolbar select { height: 44px; font-size: 15px; }
  .search-field > label { display: block !important; }
  .filters, .filters:not([open]) { display: contents; }
  .filters .status-field { display: flex; }
  .sheet-head, .sheet-actions { display: none; }
  .toolbar .field > label { font-size: 13px; }
  .app-list, .export-mobile { display: none !important; }
  .table-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); overflow-x: auto; }
  table { width: 100%; border-collapse: collapse; font-size: 14px; }
  th { background: #EAF3FB; color: var(--green-900); text-align: left; font-weight: 600; padding: 14px 16px; white-space: nowrap; }
  td { padding: 14px 16px; border-top: 1px solid #E3E9F1; vertical-align: top; }
  td .sub { color: var(--muted); font-size: 13px; }
  td select { height: 40px; width: auto; font-size: 14px; padding: 0 30px 0 10px; }
}

/* Late additions */
.search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-field { position: relative; }
@media (min-width: 1024px) {
  .search-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .search-row { display: flex !important; }
  .seg-wrap { display: none; }
}
.form-section .seg-wrap legend { padding: 0 0 6px; font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text); }
.btn { white-space: nowrap; }
@media (min-width: 1024px) { .submit-bar .btn { flex: none; } }
.admin-main { padding: 20px var(--gutter) 32px; }
.filters[open] { overflow-y: auto; }
td a { white-space: nowrap; }
@media (min-width: 1024px) { .admin-main { padding: 32px var(--gutter) 48px; } }
input[type="date"] { min-width: 0; appearance: none; -webkit-appearance: none; display: block; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }

/* ---------- Bilingual titles (English + Arabic) ---------- */
:root { --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
.ar { font-family: var(--font-ar); font-weight: inherit; unicode-bidi: isolate; margin-inline-start: .35em; }
label .ar, .field-label .ar, legend .ar, th .ar, .stat .ar, .section-label .ar { color: var(--muted); font-weight: 500; }
.ar-block { display: block; margin-inline-start: 0; }
h1 .ar-block { font-family: var(--font-ar); font-size: .62em; font-weight: 500; line-height: 1.35; margin-top: 8px; letter-spacing: 0; color: var(--green-700); }
.success-card h2 .ar-block { font-size: .7em; margin-top: 4px; }
.benefits .ar-block, .dz-title .ar-block { font-size: .9em; color: var(--muted); font-weight: 400; margin-top: 2px; }
.dz-title .ar-block { color: var(--green-700); }
.seg span { flex-direction: column; line-height: 1.2; padding: 6px; }
.seg span .ar-block { font-size: 12px; margin-top: 2px; }
.seg input:checked + span .ar-block { color: #CFE3F3; }
.steps .step-text .ar-block { font-size: 13px; color: var(--muted); font-weight: 400; }
.steps a[aria-current="step"] .ar-block { color: var(--green-700); }
.btn .ar { font-weight: 500; }
.topnav .ar, .pill-light .ar { font-size: .92em; }
.eyebrow .ar { letter-spacing: 0; text-transform: none; }
.section-label .ar { letter-spacing: 0; text-transform: none; }
th .ar-block { font-size: 12px; font-weight: 500; }
.stat .ar { display: inline; font-size: 12px; }
.badge .ar { font-weight: 500; margin-inline-start: .25em; }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 6px; }
/* bilingual fixes: nested spans must not inherit button/step-circle styling */
.ar-block { text-align: left; }
.seg span .ar-block { display: block; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.steps a .step-text, .steps a .step-text span { width: auto; height: auto; border: 0; border-radius: 0; background: none; display: block; font-size: inherit; place-items: initial; }
.steps a[aria-current="step"] .step-text, .steps a[aria-current="step"] .step-text span { background: none; border: 0; color: inherit; }
.steps a .step-text .ar-block { font-size: 13px; color: var(--muted); }
.steps a[aria-current="step"] .step-text .ar-block { color: var(--green-700); }

/* Manager login button in the top bar (icon only on phones) */
.pill-login { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); min-width: var(--tap); padding: 0 12px; border: 1px solid rgba(246, 244, 238, .55); border-radius: var(--r-pill); color: var(--bg) !important; text-decoration: none; font-weight: 600; font-size: 14px; }
.pill-login:hover { background: rgba(246, 244, 238, .12); }
.pill-login .login-text { display: none; }
.topnav { gap: 8px; }
@media (min-width: 640px) { .pill-login { padding: 0 16px; } .pill-login .login-text { display: inline; } .topnav { gap: 16px; } }
@media (min-width: 1024px) { .topnav { gap: 24px; } }
.ar { margin-inline-start: 0; margin-left: .35em; }
.ar-block { margin-left: 0; }
.pill-light, .pill-login, .pill-login .login-text { white-space: nowrap; }
.brand { flex-shrink: 1; }
@media (max-width: 419px) { .brand-text { display: none; } }
/* keep the form inside narrow phones (grid items must be allowed to shrink) */
.apply { grid-template-columns: minmax(0, 1fr); }
.form-card, .form, .seg label { min-width: 0; }
.seg span { overflow-wrap: anywhere; }
@media (min-width: 1024px) { .apply { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.pill-login .login-short { white-space: nowrap; }
@media (min-width: 640px) { .pill-login .login-short { display: none; } }

/* Arabic text always bold */
.ar, .ar-block, label .ar, .field-label .ar, legend .ar, th .ar, th .ar-block, .stat .ar, .section-label .ar,
.benefits .ar-block, .dz-title .ar-block, .seg span .ar-block, .steps a .step-text .ar-block, .btn .ar, .badge .ar,
h1 .ar-block, .success-card h2 .ar-block, .topnav .ar, .pill-light .ar, .pill-login .ar, .brand-sub .ar, .footer .ar { font-weight: 700; }

/* ============ TRUE brand: blue theme + logo ============ */
:root { --sky: #27AAE2; }
.topbar { background: var(--surface); color: var(--green-900); border-bottom: 1px solid var(--border); box-shadow: inset 0 3px 0 var(--sky); }
.brand, .brand:hover { color: var(--green-900); }
.logo-img { display: block; height: 40px; width: auto; flex: none; }
.brand-name { color: var(--green-900); }
.brand-sub { color: var(--muted); }
.topnav a { color: var(--green-900); }
.topnav a:hover { color: var(--green-700); }
.pill-light { background: var(--green-900); color: #fff !important; }
.pill-light:hover { background: #123558; }
.pill-login { border-color: var(--green-900); color: var(--green-900) !important; }
.pill-login:hover { background: var(--green-100); }
.progress-bar, .upload-progress div { background: var(--sky); }
.eyebrow { color: var(--green-700); }
.badge-Shortlisted { background: #DDF3E4; color: #1E6B3A; }
.login-logo { display: block; width: 170px; height: auto; margin: 0 auto 4px; }
.login-card h1 { text-align: center; }
.login-card h1 .ar-block { text-align: center; }
@media (min-width: 1024px) { .logo-img { height: 46px; } }
