:root {
  --brand: #b3122e;
  --brand-2: #d11a42;
  --brand-dark: #6d0a1c;
  --brand-soft: #fdecef;
  --gold: #c9a25a;
  --ink: #141a26;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e7e9ef;
  --bg: #f7f7fa;
  --card: #ffffff;
  --ok: #0f7a57;
  --ok-soft: #e1f5ec;
  --warn: #a8560a;
  --warn-soft: #fff0da;
  --info: #1d5fd1;
  --info-soft: #e6eeff;
  --gray: #4b5565;
  --gray-soft: #eef0f4;
  --wa: #1fa855;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .07);
  --shadow-lg: 0 24px 60px rgba(60, 10, 25, .16);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body, [dir="rtl"], .ar { font-family: var(--font-ar); }
html[lang="ar"] body { font-size: 15.5px; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { letter-spacing: -.015em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; }
/* Full-width layout: fills the screen with a comfortable side gutter (capped only on very large monitors) */
.container { width: 100%; max-width: 1840px; margin: 0 auto; padding-inline: clamp(16px, 3.5vw, 64px); }
.muted { color: var(--muted); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
[hidden] { display: none !important; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.ic { display: inline-flex; }
.ic svg { width: 18px; height: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .08s, filter .15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 6px 16px rgba(179,18,46,.25); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 8px 22px rgba(179,18,46,.32); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--gray-soft); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 16px rgba(31,168,85,.25); }
.btn-wa:hover { filter: brightness(.95); }
.btn-danger { background: #fff; color: #c0262d; border-color: #f3c3c6; }
.btn-danger:hover { background: #fdecec; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 14px; }
.btn-light { background: #fff; color: var(--brand-dark); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.btn-light:hover { background: #fff6f7; }
.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.16); }
.btn-icon { width: 38px; height: 38px; border-radius: 11px; display: inline-grid; place-items: center; flex: none; }
.btn-icon svg { width: 19px; height: 19px; }
.btn-icon-wa { background: #e6f7ed; color: var(--wa); }
.btn-icon-wa:hover { background: var(--wa); color: #fff; }
.link-btn { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

/* Language toggle */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer;
  font-family: var(--font-ar);
}
html[lang="ar"] .lang-toggle { font-family: var(--font); }
.lang-toggle svg { width: 17px; height: 17px; color: var(--brand); }
.lang-toggle:hover { border-color: var(--brand); color: var(--brand); }
.lang-toggle-dark { background: transparent; color: #e6e8ee; border-color: #343c50; height: 36px; }
.lang-toggle-dark svg { color: #ff8fa3; }

/* Header */
.site-header { background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(16,24,40,.04); }
.topstrip { background: #170a10; color: #e9d7dc; font-size: 12.5px; }
.topstrip-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.topstrip-tag { opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topstrip-contact { display: flex; gap: 18px; flex: none; }
.topstrip-contact a, .topstrip-contact span { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topstrip-contact svg { width: 13px; height: 13px; color: #ff8fa3; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; margin-inline-end: auto; }
.brand-logo { width: 50px; height: 50px; flex: none; }
.brand-logo img, .brand-logo svg { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.brand-main { font-weight: 800; font-size: 15px; color: var(--brand); line-height: 1.3; }
.brand-sub { font-weight: 700; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; text-align: match-parent; }
.brand-sub[dir="rtl"] { font-family: var(--font-ar); }
.brand-sub[dir="ltr"] { font-family: var(--font); font-size: 12px; letter-spacing: .02em; }
.brand-main, .brand-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[lang="ar"] .brand-main { font-size: 17px; }
.main-nav { display: flex; gap: 2px; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 10px; }
.main-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.header-actions { display: flex; gap: 8px; flex: none; align-items: center; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 64px 0 150px;
  background: linear-gradient(125deg, #c8163d 0%, #9b0f2c 45%, #4e0614 100%);
}
[dir="rtl"] .hero { background: linear-gradient(235deg, #c8163d 0%, #9b0f2c 45%, #4e0614 100%); }
.hero-pattern {
  position: absolute; inset: 0; opacity: .14;
  background-image: radial-gradient(rgba(255,255,255,.9) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
}
[dir="rtl"] .hero-pattern { mask-image: linear-gradient(260deg, transparent 30%, #000 75%); -webkit-mask-image: linear-gradient(260deg, transparent 30%, #000 75%); }
.hero-glow { position: absolute; width: 620px; height: 620px; inset-inline-end: -120px; top: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,170,190,.35), transparent); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 12px; border-radius: 99px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); font-size: 13px; margin-bottom: 18px;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 0 rgba(62,224,143,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(62,224,143,0); } 100% { box-shadow: 0 0 0 0 rgba(62,224,143,0); } }
.hero h1 { margin: 0 0 12px; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
html[lang="ar"] .hero h1 { line-height: 1.35; font-size: clamp(30px, 4.4vw, 50px); }
.hero .accent { background: linear-gradient(90deg, #ffe4ea, #ffb0c0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-second { font-size: 20px; font-weight: 700; margin: 0 0 14px; opacity: .9; text-align: match-parent; }
.hero-second[dir="ltr"] { font-family: var(--font); font-size: 17px; }
.hero-second:empty { display: none; }
.hero-sub { max-width: 560px; opacity: .88; margin: 0 0 28px; font-size: 15.5px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; font-weight: 500; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; }
.hero-wave { position: absolute; inset-inline-start: 0; bottom: -1px; width: 100%; height: 90px; color: var(--bg); }

/* Hero visual: spotlight card stack */
.hero-visual { display: flex; justify-content: center; }
.hv { position: relative; width: 300px; max-width: 100%; padding: 18px 0; }
.hv-card { border-radius: 24px; }
.hv-back1, .hv-back2 { position: absolute; inset: 18px 0; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); }
.hv-back1 { transform: rotate(-6deg) translateX(-14px); }
.hv-back2 { transform: rotate(7deg) translateX(18px); background: rgba(255,255,255,.08); }
.hv-main { position: relative; display: block; background: #fff; color: var(--ink); text-decoration: none; overflow: hidden; box-shadow: 0 30px 60px rgba(40,0,10,.35); transition: transform .25s; }
.hv-main:hover { transform: translateY(-4px); }
.hv-photo { position: relative; height: 260px; background: linear-gradient(#f4f5f8, #e6e9ef); }
.hv-photo img, .hv-photo .avatar-svg { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.hv-info { padding: 14px 18px 18px; }
.hv-ref { font-size: 12px; color: var(--muted); }
.hv-name { font-weight: 800; font-size: 15.5px; line-height: 1.3; text-transform: uppercase; margin: 2px 0; }
.hv-meta { font-size: 13px; color: var(--muted); }
.hv-salary { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.hv-salary b { color: var(--brand); font-size: 18px; }
.hv-float {
  position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: 10px 16px;
  box-shadow: 0 14px 30px rgba(40,0,10,.25); display: flex; flex-direction: column; line-height: 1.2; animation: bob 4s ease-in-out infinite;
}
.hv-float b { font-size: 24px; color: var(--brand); }
.hv-float span { font-size: 12px; color: var(--muted); }
.hv-f1 { inset-inline-start: -62px; top: 70px; }
.hv-f2 { inset-inline-end: -58px; bottom: 90px; animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Search panel */
.search-panel {
  position: relative; z-index: 2; margin-top: -100px; background: #fff; border-radius: 22px; padding: 24px 24px 26px;
  box-shadow: var(--shadow-lg); border: 1px solid #f1e4e7;
}
.search-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.search-head h2 { margin: 0; font-size: 21px; font-weight: 800; }
.search-sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.search-meta { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.result-count { background: var(--brand-soft); color: var(--brand-dark); padding: 5px 13px; border-radius: 99px; font-weight: 700; font-size: 13px; }
.filters { display: grid; grid-template-columns: 2.2fr repeat(6, 1fr); gap: 12px; }
.f { display: grid; gap: 6px; min-width: 0; }
.f > span:first-child { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
html[lang="ar"] .f > span:first-child { font-size: 13px; letter-spacing: 0; }
.input-ic { position: relative; display: block; }
.input-ic .ic { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: #98a2b3; pointer-events: none; }
.input-ic input { padding-inline-start: 40px !important; }
.filters input, .filters select, .form input, .form select, .form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px;
  font: inherit; font-size: 14px; background: #fff; color: var(--ink); min-width: 0;
}
.filters input, .filters select { height: 46px; background-color: #f9fafb; border-color: #e7e9ee; transition: border-color .15s, background .15s; }
.filters input:hover, .filters select:hover { border-color: #d0d5dd; }
.filters input:focus, .filters select:focus, .form input:focus, .form select:focus, .form textarea:focus {
  outline: 3px solid rgba(179, 18, 46, .14); border-color: var(--brand); background: #fff;
}

/* Grid of workers */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; margin: 30px 0 56px; }
.w-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; border: 1px solid #eef0f4; }
.w-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(16,24,40,.13); }
.w-photo { position: relative; aspect-ratio: 4 / 4.3; background: linear-gradient(#f2f4f7, #e9ecf1); display: block; overflow: hidden; }
.w-photo img, .w-photo .avatar-svg { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.w-card:hover .w-photo img { transform: scale(1.04); }
.w-photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(10,10,20,.45)); pointer-events: none; }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px; box-shadow: var(--shadow-sm); }
.badge i, .badge-inline i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-star { inset-inline-start: auto; inset-inline-end: 12px; background: #fff7d6; color: #8a6100; }
.badge-star svg { width: 13px; height: 13px; }
.w-ref { position: absolute; bottom: 10px; inset-inline-start: 14px; z-index: 1; color: #fff; font-size: 12px; font-weight: 600; direction: ltr; opacity: .95; }
.st-available { background: var(--ok-soft); color: var(--ok); }
.st-coming { background: var(--info-soft); color: var(--info); }
.st-reserved { background: var(--warn-soft); color: var(--warn); }
.st-hired { background: var(--gray-soft); color: var(--gray); }
.w-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.w-name { margin: 0; font-size: 15.5px; line-height: 1.35; text-transform: uppercase; font-weight: 800; }
.w-name a { color: var(--ink); text-decoration: none; }
.w-name a:hover { color: var(--brand); }
.w-nat { font-size: 13px; color: var(--muted); margin: 3px 0 14px; }
.w-facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); background: #f8f9fb; border-radius: 12px; }
.w-facts li { padding: 9px 10px; font-size: 13px; font-weight: 700; min-width: 0; line-height: 1.35; }
.w-facts li + li { border-inline-start: 1px solid #eceef2; }
.w-facts span { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.w-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.w-salary span { display: block; font-size: 11px; color: var(--muted); }
.w-salary b { color: var(--brand); font-size: 17px; font-weight: 800; }
.w-actions { display: flex; gap: 8px; align-items: center; }
.empty, .empty-state { text-align: center; color: var(--muted); padding: 40px 16px; }
.empty-state h3 { color: var(--ink); margin: 10px 0 4px; }
.empty-ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.empty-ic svg { width: 28px; height: 28px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { margin: 6px 0 8px; font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; }
.section-head p { margin: 0; color: var(--muted); }
.eyebrow { display: inline-block; color: var(--brand); background: var(--brand-soft); font-weight: 700; font-size: 12.5px; padding: 4px 12px; border-radius: 99px; letter-spacing: .03em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px 24px; }
.step-no { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand-dark)); box-shadow: 0 8px 18px rgba(179,18,46,.3); margin-bottom: 16px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border-radius: 20px; padding: 26px 22px; box-shadow: var(--shadow); border: 1px solid #eef0f4; transition: transform .2s; }
.feature:hover { transform: translateY(-4px); }
.feature-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.feature-ic svg { width: 25px; height: 25px; }
.feature h3 { margin: 0 0 6px; font-size: 16.5px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.cta-band {
  margin: 8px 0 72px; border-radius: 26px; padding: 40px 44px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: radial-gradient(500px 200px at 90% 0%, rgba(255,255,255,.18), transparent), linear-gradient(125deg, #c8163d, #5e0819);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; }
.cta-band p { margin: 0; opacity: .88; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #11151f; color: #b9c0cf; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 36px; }
.brand-light { margin: 0 0 14px; }
.brand-light .brand-main { color: #fff; }
.brand-light .brand-sub { color: #b9c0cf; }
.footer-brand p { margin: 0; font-size: 14px; max-width: 380px; }
.site-footer h4 { color: #fff; margin: 4px 0 14px; font-size: 15px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.footer-links a { color: #b9c0cf; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; color: #ff8fa3; flex: none; }
.footer-bottom { border-top: 1px solid #232a3a; margin-top: 40px; padding-block: 18px; font-size: 13px; color: #7d869a; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wa-float {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(31,168,85,.45); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* Worker profile page */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin: 22px 0 16px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.crumbs a:hover { color: var(--brand); }
.crumbs svg { width: 15px; height: 15px; }
.profile { display: grid; grid-template-columns: 380px 1fr; gap: 28px; background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--shadow); border: 1px solid #eef0f4; }
.profile-media { position: relative; }
.profile-photo { border-radius: 18px; overflow: hidden; background: linear-gradient(#f2f4f7, #e6e9ef); aspect-ratio: 4 / 5; }
.profile-photo img, .profile-photo .avatar-svg { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile-thumb { position: absolute; bottom: 14px; inset-inline-start: 14px; width: 86px; height: 86px; border-radius: 16px; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow); background: #fff; }
.profile-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile-info { min-width: 0; padding: 6px 4px; }
.profile-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.badge-inline { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 99px; }
.ref-chip { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--gray-soft); padding: 5px 12px; border-radius: 99px; }
.profile h1 { margin: 12px 0 4px; font-size: clamp(22px, 3vw, 30px); line-height: 1.25; text-transform: uppercase; font-weight: 800; }
.profile-sub { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.fact { background: #f8f9fb; border: 1px solid #eef0f4; border-radius: 14px; padding: 11px 14px; min-width: 0; }
.fact span { display: block; font-size: 12px; color: var(--muted); }
.fact b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-h { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.profile-remarks { display: flex; gap: 10px; align-items: flex-start; margin: -6px 0 20px; padding: 12px 14px; border-radius: 14px; background: #fff8f9; border: 1px solid #f6dde2; color: var(--ink-2); font-size: 14.5px; }
.profile-remarks svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--brand-soft); color: var(--brand-dark); border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.chip svg { width: 14px; height: 14px; }
.profile-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.salary-box span { display: block; font-size: 12.5px; color: var(--muted); }
.salary-box b { font-size: 26px; color: var(--brand); font-weight: 800; }
.profile-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cv-heading { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 40px 0 16px; }
.cv-heading h2 { margin: 0; font-size: 22px; font-weight: 800; }
.cv-heading span { color: var(--muted); font-size: 14px; }

/* Official CV sheet (always LTR, bilingual like the paper form) */
.cv-sheet { background: #fff; max-width: 860px; margin: 0 auto 56px; padding: 22px; border: 3px double #222; box-shadow: var(--shadow); font-family: var(--font); }
.cv-sheet [dir="rtl"], .cv-sheet .ar { font-family: var(--font-ar); }
.cv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: center; }
.cv-logo { width: 72px; height: 72px; flex: none; }
.cv-logo img, .cv-logo svg { width: 100%; height: 100%; object-fit: contain; }
.cv-title { flex: 1; min-width: 0; }
.cv-ar { color: var(--brand); font-size: 22px; font-weight: 700; }
.cv-en { color: var(--brand); font-size: clamp(16px, 3vw, 24px); font-weight: 800; letter-spacing: .02em; }
.cv-status { display: inline-block; margin-top: 6px; padding: 3px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.cv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cv-table th, .cv-table td { border: 1px solid #333; padding: 5px 8px; vertical-align: middle; }
.cv-table th { color: var(--brand); font-weight: 700; text-align: left; white-space: nowrap; }
.cv-table th.ar { text-align: right; }
.cv-table td { text-align: center; font-weight: 600; text-transform: uppercase; }
.cv-table th span[dir="rtl"] { margin-left: 4px; }
.cv-sub { text-align: center !important; }
.cv-name { font-weight: 800 !important; font-size: 15px; }
.cv-skills { text-transform: none !important; font-size: 12.5px; }
.cv-top { display: grid; grid-template-columns: 80px 150px 1fr; gap: 14px; align-items: end; margin: 14px 0; }
.cv-branch { font-size: 11px; font-weight: 700; background: #ddd; padding: 6px 4px; text-align: center; align-self: end; }
.cv-face { height: 170px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.cv-face img { max-height: 100%; object-fit: contain; }
.cv-meta th { width: 1%; }
.cv-main { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; }
.cv-right { display: flex; flex-direction: column; border: 1px solid #333; border-left: 0; }
.cv-right .cv-table { border: 0; }
.cv-full { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px; min-height: 280px; }
.cv-full img { max-height: 520px; object-fit: contain; }
.cv-bottom { margin-top: -1px; }
.cv-bottom th { width: 1%; }
.cv-contact { color: var(--brand); font-weight: 700 !important; }
.cv-sign { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 34px; font-size: 14px; }
.avatar-svg { width: 100%; height: 100%; display: block; }
.cv-face .avatar-svg { width: 140px; height: 160px; }
.cv-full .avatar-svg { width: 240px; height: 280px; }

/* Toasts */
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: #1d2433; color: #fff; padding: 11px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); transition: opacity .3s; font-size: 14px; font-weight: 600; }
.toast-ok { background: #0f7a57; }
.toast-err { background: #b42318; }
.toast.out { opacity: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .filters { grid-template-columns: repeat(3, 1fr); }
  .filters .f-q { grid-column: 1 / -1; }
  .main-nav { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 44px 0 136px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { display: none; }
  .topstrip-tag { display: none; }
  .topstrip-inner { justify-content: center; }
  .profile { grid-template-columns: 1fr; }
  .profile-photo { aspect-ratio: 1 / 1; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .header-actions .btn span { display: none; }
  .header-actions .btn-wa { width: 40px; height: 40px; padding: 0; }
  .header-inner { min-height: 66px; gap: 10px; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-main { font-size: 13px; }
  html[lang="ar"] .brand-main { font-size: 15px; }
  .brand-sub { font-size: 12px; }
  .lang-toggle { padding: 0 10px; }
  .topstrip-contact span { display: none; }
  .search-panel { padding: 18px 16px; margin-top: -96px; }
  .filters { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-cta .btn { flex: 1; }
  .section { padding: 52px 0; }
  .features { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 22px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; }
  .profile { padding: 14px; border-radius: 20px; }
  .profile-btns, .profile-btns .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .cv-sheet { padding: 12px; }
  .cv-top { grid-template-columns: 1fr 1fr; }
  .cv-top .cv-meta { grid-column: 1 / -1; }
  .cv-main { grid-template-columns: 1fr; }
  .cv-right { border-left: 1px solid #333; border-top: 0; }
  .cv-table th { white-space: normal; }
  .cv-sign { grid-template-columns: 1fr; }
  .cv-logo { width: 48px; height: 48px; }
  .cv-ar { font-size: 17px; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
  .lang-toggle span { display: none; }
}

/* Print: only the CV sheet, on one A4 page */
@media print {
  @page { size: A4; margin: 8mm; }
  body { background: #fff; }
  .no-print, #toasts, .wa-float { display: none !important; }
  .container { max-width: none; padding: 0; }
  .cv-sheet { box-shadow: none; margin: 0; max-width: none; padding: 12px; }
  .cv-full img { max-height: 430px; }
  .cv-table th, .cv-table td { padding: 3px 6px; font-size: 12px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
