/* ==========================================================
   أنا قريب — خدمة التوظيف
   نفس هوية التطبيق الأساسي (public/css/app.css + auth.css): نفس المتغيرات والألوان والخط
   وشكل الشريط والبطاقات والأزرار والحقول. خصائص منطقية لتعمل RTL (عربي) و LTR (إنجليزي/هندي).
   ========================================================== */
:root {
  --lp-primary: #ec6100; --lp-primary-dark: #c95300; --lp-primary-foreground: #fffaf6;
  --lp-secondary: #0c2140; --lp-secondary-foreground: #f7fbfd;
  --lp-bg: #fefdfa; --lp-card: #ffffff; --lp-muted: #eaf1f8; --lp-muted-foreground: #5a6a80;
  --lp-border: #dfe6ee; --lp-peach: #ffdbbf; --lp-cream: #fcf4e6;
  --lp-shadow-card: 0 12px 32px -14px rgba(12, 33, 64, 0.16);
  --lp-shadow-soft: 0 20px 50px -20px rgba(12, 33, 64, 0.22);
  --lp-shadow-orange: 0 14px 34px -12px rgba(236, 97, 0, 0.45);
  --good: #155724; --good-bg: #d4edda; --warn: #856404; --warn-bg: #fff3cd; --bad: #d64545; --bad-bg: #f8d7da;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  font-family: 'Cairo', 'Noto Sans Devanagari', 'Segoe UI', 'Tahoma', sans-serif;
  background: var(--lp-bg); color: var(--lp-secondary); line-height: 1.6; font-size: 14px;
  min-height: 100vh; display: flex; flex-direction: column;
}
:lang(hi) body { line-height: 1.75; }
a { color: var(--lp-primary); text-decoration: none; font-weight: 700; }
a:hover { color: var(--lp-primary-dark); }
h1, h2, h3, h4 { font-weight: 800; color: var(--lp-secondary); line-height: 1.4; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.muted { color: var(--lp-muted-foreground); } .sm { font-size: 12px; } .center { text-align: center; } .grow { flex: 1; min-width: 0; }
.pre { white-space: pre-line; overflow-wrap: anywhere; }
.warn-text { color: var(--warn); font-weight: 700; }

/* ---------- Navbar (كما في التطبيق) ---------- */
.navbar {
  background: linear-gradient(135deg, var(--lp-secondary) 0%, #16345c 100%); color: white;
  padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); position: sticky; top: 0; z-index: 1100;
}
.navbar-brand { display: flex; align-items: center; gap: 10px; color: white; }
.navbar-brand:hover { color: white; }
.navbar-logo { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.navbar h1 { font-size: 20px; color: white; font-weight: 700; }
.navbar-right { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.navbar-spacer { flex: 1; }
.navbar-mobile-actions { display: none; align-items: center; gap: 8px; }
.navbar-toggle { display: none; background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.4); width: 40px; height: 40px; border-radius: 8px; font-size: 20px; cursor: pointer; }
.user-info { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px; overflow: hidden; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-name { font-size: 14px; }
.btn-link {
  background: rgba(255, 255, 255, 0.1); color: white; border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; text-decoration: none; transition: all 0.2s;
  font-size: 13px; font-weight: 600; white-space: nowrap; font-family: inherit; display: inline-flex; align-items: center; gap: 6px;
}
.btn-link:hover { background: rgba(255, 255, 255, 0.2); color: white; }
.btn-logout { background: var(--lp-primary); border-color: var(--lp-primary); }
.btn-logout:hover { background: var(--lp-primary-dark); }
.navbar-right a.nav-link { background: none; border: none; border-radius: 0; padding: 6px 2px; color: rgba(255, 255, 255, 0.75); font-weight: 700; font-size: 14px; border-bottom: 2px solid transparent; }
.navbar-right a.nav-link:hover { background: none; color: white; }
.navbar-right a.nav-link.active { color: white; border-bottom-color: var(--lp-primary); }

/* ---------- مبدّل اللغة (منقول من التطبيق) ---------- */
.lang-switch { position: relative; display: inline-block; }
.lang-switch-btn { display: flex; align-items: center; gap: 5px; padding: 6px 9px; font-size: 15px; line-height: 1; background: #fff; color: #ec6100; border: 1px solid #ffd9b3; border-radius: 20px; cursor: pointer; box-shadow: 0 2px 6px rgba(236, 97, 0, 0.15); transition: background 0.15s, box-shadow 0.15s, transform 0.15s; font-family: inherit; }
.lang-switch-btn:hover { box-shadow: 0 4px 12px rgba(236, 97, 0, 0.22); transform: translateY(-1px); }
.lang-switch.is-open .lang-switch-btn { background: #fff3ea; box-shadow: 0 4px 12px rgba(236, 97, 0, 0.25); }
.lang-switch-code { font-size: 13px; font-weight: 700; letter-spacing: 0.2px; }
.lang-switch-caret { width: 7px; height: 7px; margin-top: -3px; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.15s; }
.lang-switch.is-open .lang-switch-caret { transform: rotate(-135deg); margin-top: 2px; }
.lang-switch-dark .lang-switch-btn { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.3); box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.lang-switch-dark .lang-switch-btn:hover, .lang-switch-dark.is-open .lang-switch-btn { background: rgba(255,255,255,0.24); }
.lang-switch-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 50; display: flex; flex-direction: column; gap: 2px; background: #fff; padding: 6px; border-radius: 14px; min-width: 150px; border: 1px solid #f3e6d8; box-shadow: 0 12px 32px rgba(20, 20, 20, 0.16); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px) scale(0.96); transition: opacity 0.15s, transform 0.15s; }
.lang-switch.is-open .lang-switch-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.lang-switch-option { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; color: #333; background: transparent; text-decoration: none; direction: ltr; text-align: start; transition: background 0.15s; }
.lang-switch-option:hover { background: #fbf3ea; color: #333; }
.lang-switch-option.is-active { background: #fff3ea; color: #ec6100; }
.lang-switch-option-code { display: flex; align-items: center; justify-content: center; min-width: 26px; padding: 3px 5px; border-radius: 6px; background: #fbf3ea; color: #ec6100; font-size: 11px; font-weight: 700; }
.lang-switch-option.is-active .lang-switch-option-code { background: #ec6100; color: #fff; }
.lang-switch-option-label { flex: 1; }
.lang-switch-check { color: #2fa84f; font-size: 14px; font-weight: 700; }

/* ---------- الحاوية والعناوين ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 25px 20px; }
main.container { flex: 1; }
main.narrow { max-width: 820px; }
.page-title, .form-head h1 { font-size: 26px; color: var(--lp-secondary); margin-bottom: 6px; }
.page-title { margin-bottom: 20px; }
.page-title small { background: var(--lp-muted); border-radius: 99px; padding: 2px 12px; font-size: 13px; color: var(--lp-muted-foreground); font-weight: 700; vertical-align: middle; }
.form-head { margin-bottom: 22px; } .form-head p { color: #777; font-size: 14px; }

/* ---------- البطاقات ---------- */
.card { background: var(--lp-card); border-radius: 12px; padding: 20px; margin-bottom: 18px; box-shadow: 0 2px 12px rgba(12, 33, 64, 0.06); border: 1px solid var(--lp-border); }
.card > h2 { font-size: 18px; color: var(--lp-secondary); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 3px solid var(--lp-primary); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.card > h2 > i { color: var(--lp-primary); }
.card > h2 small { font-weight: 600; color: var(--lp-muted-foreground); font-size: 12px; }

/* ---------- الأزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--lp-primary); color: var(--lp-primary-foreground); border: none; padding: 10px 20px; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 700; transition: all 0.2s; text-decoration: none; font-family: inherit; box-shadow: var(--lp-shadow-orange); white-space: nowrap; }
.btn:hover { transform: translateY(-2px); background: var(--lp-primary-dark); color: var(--lp-primary-foreground); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn.ghost { background: var(--lp-cream); color: var(--lp-primary); border: 1px solid var(--lp-primary); box-shadow: none; }
.btn.ghost:hover { background: var(--lp-peach); color: var(--lp-primary-dark); border-color: var(--lp-primary-dark); }
.btn.danger { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); color: #fff; box-shadow: none; }
.btn.danger:hover { background: linear-gradient(135deg, #c0392b 0%, #a93226 100%); }
.btn-navy { background: var(--lp-secondary); color: #fff; box-shadow: var(--lp-shadow-soft); } .btn-navy:hover { background: #16345c; color: #fff; }
.btn.sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; } .btn.xs { padding: 4px 10px; font-size: 11px; border-radius: 6px; }
.btn.lg { padding: 13px 28px; font-size: 15px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; padding: 14px; font-size: 15px; border-radius: 12px; }
.btn:disabled, .btn.busy { opacity: .6; cursor: progress; transform: none; }
.icon-btn { border: 1px solid var(--lp-primary); background: var(--lp-cream); border-radius: 8px; width: 36px; height: 32px; cursor: pointer; color: var(--lp-primary); font-size: 15px; }
.icon-btn.on { background: var(--lp-primary); color: #fff; } .icon-btn:hover { background: var(--lp-peach); color: var(--lp-primary-dark); }

/* ---------- التنبيهات والشارات ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 15px; border-radius: 8px; margin-bottom: 15px; font-size: 14px; overflow-wrap: anywhere; }
.alert i { font-size: 16px; margin-top: 2px; }
.alert-success, .alert.ok { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error, .alert.err { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info, .alert.info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert a { color: inherit; text-decoration: underline; margin-inline-start: 6px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.status.ok { background: #d4edda; color: #155724; } .status.warn { background: #fff3cd; color: #856404; } .status.off { background: #e9ecef; color: #555; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: rgba(236, 97, 0, 0.08); color: var(--lp-primary); border-radius: 20px; padding: 3px 11px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.chip.soft { background: var(--lp-muted); color: var(--lp-muted-foreground); } .chip.good { background: #d4edda; color: #155724; } .chip.warn { background: #fff3cd; color: #856404; }
.locked { background: var(--lp-cream); border: 2px dashed rgba(236, 97, 0, 0.4); border-radius: 12px; padding: 12px 14px; color: var(--lp-muted-foreground); font-size: 13px; font-weight: 600; }
.empty { text-align: center; padding: 40px 20px; color: #888; } .empty > i { font-size: 48px; color: var(--lp-peach); } .empty h3 { margin: 10px 0 4px; font-size: 17px; } .empty .btn { margin-top: 16px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none; background: var(--lp-peach); border: 3px solid var(--lp-card); box-shadow: var(--lp-shadow-card); }
.avatar.ph { display: inline-flex; align-items: center; justify-content: center; color: var(--lp-primary); font-weight: 800; font-size: 22px; }
.avatar.lg { width: 96px; height: 96px; font-size: 34px; } .avatar.xl { width: 130px; height: 130px; font-size: 46px; } .avatar.sq { border-radius: 16px; }

/* ---------- الصفحة الرئيسية ---------- */
.hero { text-align: center; padding: 26px 0 28px; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(24px, 4.2vw, 36px); margin: 16px 0 12px; line-height: 1.35; }
.hero p { color: var(--lp-muted-foreground); font-size: 15px; line-height: 1.8; }
.pill { display: inline-flex; gap: 7px; align-items: center; background: var(--lp-card); color: var(--lp-secondary); border-radius: 999px; padding: 9px 18px; font-weight: 800; font-size: 13px; box-shadow: var(--lp-shadow-card); }
.pill i { color: var(--lp-primary); }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-bottom: 26px; }
.door { background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: 24px; padding: 30px; box-shadow: var(--lp-shadow-soft); display: flex; flex-direction: column; }
.door h2 { font-size: 21px; margin: 14px 0 6px; } .door p { color: var(--lp-muted-foreground); line-height: 1.8; }
.door-ic { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; border: 2px solid var(--lp-primary); color: var(--lp-primary); background: rgba(236, 97, 0, 0.06); }
.door-ic.c { border-color: var(--lp-secondary); color: var(--lp-secondary); background: var(--lp-muted); }
.ticks { list-style: none; margin: 16px 0 22px; flex: 1; }
.ticks li { padding-inline-start: 26px; position: relative; margin-bottom: 8px; color: var(--lp-muted-foreground); font-size: 13px; font-weight: 600; }
.ticks li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; inset-inline-start: 0; color: #2fa84f; }
.door-alt { text-align: center; margin-top: 14px; font-size: 13px; }

/* ---------- الحقول ---------- */
.f { display: block; margin-bottom: 18px; min-width: 0; }
.f > span { display: block; margin-bottom: 6px; color: #333; font-weight: 600; font-size: 14px; }
.f.narrow { max-width: 440px; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; padding: 11px 12px; border: 2px solid var(--lp-border); border-radius: 10px; font-size: 14px; font-family: inherit; transition: border-color 0.2s; background: var(--lp-card); color: var(--lp-secondary); min-height: 46px; }
textarea { resize: vertical; min-height: 90px; line-height: 1.7; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lp-primary); box-shadow: 0 0 0 3px rgba(236, 97, 0, 0.15); }
input[type=file] { padding: 8px; font-size: 13px; border-style: dashed; border-color: rgba(236, 97, 0, 0.4); background: var(--lp-cream); }
input[type="file"]::file-selector-button { background: #fff3ea; color: var(--lp-primary); border: 1px solid #ffd9b3; border-radius: 6px; padding: 6px 14px; margin-inline-end: 10px; font-family: inherit; font-size: 13px; cursor: pointer; }
.req { color: #e74c3c; font-style: normal; font-weight: 800; }
.f.bad > span, .check.bad span { color: #e74c3c; }
.f.bad input, .f.bad select { border-color: #e74c3c; }
.f.bad .pick, .f.bad .seg { border: 2px solid #e74c3c; border-radius: 12px; padding: 8px; }
.ferr { display: block; color: #e74c3c; font-size: 12px; margin-top: 4px; font-weight: 600; }
.grid { display: grid; gap: 0 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.tight { gap: 0 8px; } .grid.end { align-items: end; } .grid.end .btn { margin-bottom: 18px; min-height: 46px; }
.check { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; font-size: 13px; cursor: pointer; font-weight: 600; color: #333; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--lp-primary); flex: none; }
.check.big { background: var(--lp-cream); border-radius: 12px; padding: 13px 15px; line-height: 1.8; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label, .seg label { cursor: pointer; }
.pick input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.pick span, .seg span { display: inline-block; border: 2px solid var(--lp-border); background: var(--lp-card); border-radius: 12px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--lp-muted-foreground); transition: all 0.2s; }
.pick span:hover, .seg span:hover { border-color: rgba(236, 97, 0, 0.4); }
.pick input:checked + span, .seg input:checked + span { border-color: var(--lp-primary); background: rgba(236, 97, 0, 0.06); color: var(--lp-primary); font-weight: 800; }
.pick input:disabled + span { opacity: .4; cursor: not-allowed; }
.pick input:focus-visible + span, .seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(236, 97, 0, 0.2); }
.seg { display: flex; gap: 8px; } .seg span { padding: 9px 34px; }

/* ---------- صفحات الدخول (كما في auth.css) ---------- */
body.auth-page { position: relative; display: block; }
body.auth-page::before { content: ''; position: fixed; top: -100px; left: -100px; width: 420px; height: 420px; background: var(--lp-peach); opacity: 0.5; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.auth-shell { max-width: 620px; width: 100%; margin: 0 auto; padding: 26px 20px; position: relative; z-index: 1; }
.auth-shell.wide { max-width: 860px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.auth-back { color: var(--lp-muted-foreground); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.auth-back:hover { color: var(--lp-primary); }
.auth-card { background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: 24px; padding: 44px 48px; box-shadow: var(--lp-shadow-soft); }
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand img { height: 56px; width: auto; max-width: 200px; object-fit: contain; margin: 0 auto 14px; display: block; }
.auth-brand h1 { font-size: 21px; } .auth-brand p { color: var(--lp-muted-foreground); font-size: 13px; margin-top: 4px; }
.auth-title { font-size: 21px; margin-bottom: 4px; text-align: center; }
.auth-subtitle { text-align: center; color: var(--lp-muted-foreground); font-size: 13px; margin-bottom: 22px; }
.auth-card input:not([type=checkbox]):not([type=radio]), .auth-card select, .auth-card textarea { background: var(--lp-bg); border-radius: 14px; min-height: 50px; }
.auth-card .f > span { color: var(--lp-secondary); font-weight: 800; font-size: 13px; }
.auth-row { display: flex; justify-content: flex-end; margin: -6px 0 16px; font-size: 13px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; } .auth-note { text-align: center; color: var(--lp-muted-foreground); font-size: 12px; margin-top: 6px; }
.auth-divider { height: 1px; background: var(--lp-border); margin: 20px 0; }
.auth-alt-card { display: flex; align-items: center; gap: 14px; background: var(--lp-secondary); color: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: var(--lp-shadow-soft); transition: transform 0.2s; }
.auth-alt-card:hover { transform: translateY(-2px); color: #fff; }
.auth-alt-card > span:nth-child(2) { flex: 1; } .auth-alt-card b { display: block; font-size: 16px; font-weight: 800; } .auth-alt-card small { color: rgba(255,255,255,0.75); font-size: 12px; font-weight: 600; }
.auth-alt-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--lp-primary); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.form-section { margin: 22px 0 16px; padding-bottom: 8px; border-bottom: 3px solid var(--lp-primary); font-size: 16px; }
.auth-grid { position: relative; z-index: 1; min-height: 100vh; }
.auth-brand-side { display: none; position: relative; overflow: hidden; background: linear-gradient(175deg, var(--lp-cream) 0%, var(--lp-peach) 100%); padding: 44px 48px; flex-direction: column; justify-content: center; }
.auth-hello-pill { position: absolute; top: 28px; inset-inline-start: 32px; background: var(--lp-card); color: var(--lp-secondary); font-size: 13px; font-weight: 800; padding: 9px 18px; border-radius: 999px; box-shadow: var(--lp-shadow-card); }
.auth-brand-side h2 { font-size: 30px; line-height: 1.35; margin-top: 30px; } .auth-brand-side h2 span { color: var(--lp-primary); }
.auth-brand-side > p { margin-top: 14px; max-width: 420px; color: var(--lp-muted-foreground); font-size: 14px; line-height: 1.8; }
.auth-visual-row { margin-top: 30px; display: flex; align-items: center; gap: 24px; }
.auth-visual-photo { position: relative; flex-shrink: 0; width: 38%; max-width: 230px; }
.auth-visual-blob { position: absolute; inset: 8% 6% 4% 6%; border-radius: 45% 45% 50% 50% / 55% 55% 45% 45%; background: radial-gradient(circle at 50% 30%, var(--lp-peach) 0%, rgba(236, 97, 0, 0.15) 100%); z-index: 0; }
.auth-visual-photo img { position: relative; z-index: 1; width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 30px rgba(12, 33, 64, 0.2)); }
.auth-features { flex: 1; display: flex; flex-direction: column; gap: 18px; }
.auth-feature { display: flex; align-items: flex-start; gap: 12px; }
.auth-feature-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--lp-card); color: var(--lp-secondary); box-shadow: var(--lp-shadow-card); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.auth-feature h4 { font-size: 14px; } .auth-feature p { font-size: 12px; color: var(--lp-muted-foreground); margin-top: 2px; line-height: 1.6; }
@media (min-width: 1024px) {
  .auth-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .auth-grid .auth-shell { max-width: 520px; padding: 30px 40px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .auth-brand-side { display: flex; }
}

/* ---------- نموذج السيرة ---------- */
.sec > h2 > b { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--lp-primary); color: var(--lp-primary); background: rgba(236, 97, 0, 0.06); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.photo-row { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; border: 2px dashed rgba(236, 97, 0, 0.4); border-radius: 16px; background: var(--lp-cream); padding: 20px; flex-wrap: wrap; }
.photo-row .f { margin-bottom: 8px; } .photo-row input[type=file] { background: var(--lp-card); }
.rep-row { position: relative; border: 1px solid var(--lp-border); border-inline-start: 4px solid var(--lp-primary); background: var(--lp-card); border-radius: 10px; padding: 15px 15px 0; margin-bottom: 12px; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05); }
.rep-row.inline { display: flex; gap: 8px; padding: 10px; align-items: center; max-width: 540px; }
.rep-del { position: absolute; top: 8px; inset-inline-end: 8px; border: 0; background: #fdeceb; color: #d64545; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; z-index: 1; }
.rep-row.inline .rep-del { position: static; flex: none; }
.rep-row > .grid:first-of-type { padding-inline-end: 30px; }
.publish { border: 2px solid rgba(236, 97, 0, 0.35); background: #fffaf5; } .publish.bad { border-color: #e74c3c; }
.save-bar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: rgba(254, 253, 250, 0.94); backdrop-filter: blur(6px); padding: 12px 0; border-top: 1px solid var(--lp-border); z-index: 20; }
.docs { display: grid; gap: 10px; margin-bottom: 14px; }
.doc { display: flex; align-items: center; gap: 12px; border: 1px solid var(--lp-border); border-radius: 10px; padding: 11px 15px; background: var(--lp-card); color: var(--lp-secondary); font-weight: 400; }
a.doc:hover { border-color: var(--lp-primary); color: var(--lp-secondary); }
.doc > i:first-child { font-size: 22px; color: var(--lp-primary); } .doc.cv > i:first-child { color: var(--lp-secondary); }
.doc > span, .doc > a { flex: 1; min-width: 0; color: var(--lp-secondary); } .doc b { display: block; overflow-wrap: anywhere; line-height: 1.4; font-weight: 700; } .doc small { color: #999; font-size: 12px; font-weight: 400; }
.doc .del { margin: 0; color: #d64545; }

/* ---------- لوحة العامل ---------- */
.dash-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dash-head h1 { font-size: 24px; margin-bottom: 6px; } .dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--lp-card); border-radius: 12px; padding: 20px; box-shadow: 0 2px 12px rgba(12, 33, 64, 0.06); border: 1px solid var(--lp-border); }
.kpi-top { display: flex; flex-direction: column; gap: 8px; } .kpi-top span { font-size: 13px; color: #666; font-weight: 600; }
.kpi-top b { font-size: 30px; font-weight: bold; color: var(--lp-primary); line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 12px; }
.bar { height: 8px; background: var(--lp-muted); border-radius: 99px; overflow: hidden; margin-top: 10px; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lp-primary), #ff9a45); border-radius: 99px; }
.warn-card { background: #fff3cd; border-color: #ffc107; } .warn-card > h2 { border-bottom-color: #ffc107; color: #856404; } .warn-card > h2 > i { color: #856404; } .warn-card .chips { margin-bottom: 16px; }
.warn-card .chip.warn { background: #fff; }
.offer { background: var(--lp-card); border-radius: 10px; padding: 15px; margin-bottom: 12px; border: 1px solid var(--lp-border); border-inline-start: 4px solid var(--lp-primary); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05); }
.offer.new { background: #fffaf5; } .offer.declined { opacity: .7; border-inline-start-color: #95a5a6; } .offer.accepted { border-inline-start-color: #27ae60; }
.offer.mini { padding: 8px 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.offer-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; } .offer-top b { font-size: 16px; }
.offer-side { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .who { display: flex; gap: 12px; align-items: center; }
.offer-contact { display: flex; gap: 6px 18px; flex-wrap: wrap; background: var(--lp-cream); border-radius: 10px; padding: 10px 13px; margin: 8px 0 12px; font-size: 13px; font-weight: 600; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.danger-zone summary { cursor: pointer; color: #d64545; font-size: 12px; font-weight: 700; padding: 6px 0; } .danger-zone form { margin-top: 6px; }

/* ---------- الملف المهني ---------- */
.p-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.p-head-main { flex: 1; min-width: 220px; } .p-head h1 { font-size: 24px; } .p-title { color: var(--lp-primary); font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.p-meta { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 12px; color: #666; font-size: 13px; font-weight: 600; } .p-meta i { color: var(--lp-primary); }
.p-grid, .p-actions { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.tl { border-inline-start: 4px solid var(--lp-primary); padding-inline-start: 14px; margin-bottom: 16px; } .tl b { font-size: 15px; }
.tl-sub { color: #666; font-size: 13px; } .tl-date { color: #999; font-size: 12px; font-weight: 600; }
.facts { display: grid; gap: 14px; } .fact { display: flex; gap: 11px; align-items: flex-start; }
.fact > i { color: var(--lp-primary); font-size: 17px; margin-top: 3px; } .fact small { display: block; color: #999; font-size: 12px; line-height: 1.3; } .fact b { font-size: 14px; font-weight: 700; }
.contact { display: flex; align-items: center; gap: 10px; border: 2px solid var(--lp-border); border-radius: 10px; padding: 10px 13px; margin-bottom: 8px; font-weight: 700; color: var(--lp-secondary); overflow-wrap: anywhere; }
.contact:hover { border-color: var(--lp-primary); color: var(--lp-secondary); } .contact.wa { background: #e9f9ef; border-color: #bfe8cf; color: #0a7a3c; }
.lang-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eee; font-size: 14px; } .lang-row:last-child { border: 0; } .lang-row span { color: #666; }
.crumbs { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 14px; }

/* ---------- بحث المنشآت ---------- */
.filters-main { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.filters-main .f { flex: 1 1 160px; margin-bottom: 0; } .filters-main .grow2 { flex: 2 1 240px; } .filters-main .btn { min-height: 46px; }
.filters-more { margin-top: 14px; } .filters-more summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--lp-primary); margin-bottom: 14px; }
.filters-more summary b { background: var(--lp-primary); color: #fff; border-radius: 99px; padding: 0 8px; font-size: 11px; }
.range { display: flex; gap: 6px; } .checks { grid-column: span 3; display: flex; gap: 4px 20px; flex-wrap: wrap; align-items: center; }
.results-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; font-size: 14px; }
.results-head b { color: var(--lp-primary); font-size: 18px; }
.sorts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: #777; }
.sorts a { padding: 4px 12px; border-radius: 999px; color: var(--lp-muted-foreground); border: 1px solid var(--lp-border); background: var(--lp-card); font-size: 12px; } .sorts a.on { background: var(--lp-primary); border-color: var(--lp-primary); color: #fff; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.wcard { background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: all 0.2s; box-shadow: 0 2px 12px rgba(12, 33, 64, 0.06); }
.wcard:hover { transform: translateY(-2px); box-shadow: var(--lp-shadow-card); border-color: rgba(236, 97, 0, 0.4); }
.wcard-main { display: flex; gap: 13px; color: var(--lp-secondary); font-weight: 400; } .wcard-main:hover { color: var(--lp-secondary); }
.wcard h3 { font-size: 16px; } .wcard-title { color: var(--lp-primary); font-weight: 700; font-size: 14px; }
.wcard-meta { display: flex; flex-wrap: wrap; gap: 2px 13px; color: #666; font-size: 12px; margin-top: 5px; }
.wcard-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #eee; } .wcard-foot .muted { flex: 1; color: #999; }
.note { background: #fff3cd; border-radius: 8px; padding: 8px 12px; font-size: 12px; color: #856404; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 22px; font-weight: 700; }
.pager a { border: 1px solid var(--lp-primary); background: var(--lp-cream); border-radius: 10px; padding: 7px 16px; }
.acc-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; } .acc-head h1 { font-size: 22px; margin-bottom: 4px; }

/* ---------- الإدارة ---------- */
.tabs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.tabs > a { padding: 8px 18px; border-radius: 999px; background: var(--lp-card); border: 1px solid var(--lp-border); color: var(--lp-muted-foreground); }
.tabs > a.on { background: var(--lp-primary); color: #fff; border-color: var(--lp-primary); box-shadow: var(--lp-shadow-orange); } .tabs > a b { background: #fff; color: var(--lp-primary); border-radius: 99px; padding: 0 8px; font-size: 11px; }
.tab-search { display: flex; gap: 6px; margin-inline-start: auto; } .tab-search input { min-height: 38px !important; padding: 6px 12px !important; width: 230px !important; }
.table-card { padding: 0; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; min-width: 780px; }
.tbl th { background: #f5f6fa; padding: 10px 12px; text-align: start; font-weight: 600; color: #333; border-bottom: 1px solid #e0e0e0; font-size: 13px; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid #eee; color: #555; font-size: 13px; vertical-align: top; }
.tbl tr:hover td { background: #f9f9f9; } .tbl td b { color: var(--lp-secondary); }
.tbl small { display: block; color: #999; font-size: 12px; } .tbl .clip { max-width: 260px; }
.acts { display: flex; gap: 5px; flex-wrap: wrap; max-width: 240px; }

.foot { border-top: 1px solid var(--lp-border); background: var(--lp-card); font-size: 12px; color: #999; }
.foot .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-block: 16px; }
.desktop-only { display: inline-flex; }

@media (max-width: 900px) {
  .p-grid, .p-actions { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr; } .checks { grid-column: span 2; }
  .navbar { padding: 10px 15px; } .navbar h1 { font-size: 17px; } .navbar-logo { width: 32px; height: 32px; }
  .navbar-mobile-actions { display: flex; } .navbar-toggle { display: flex; align-items: center; justify-content: center; }
  .desktop-only { display: none; }
  .navbar-right { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 6px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
  .navbar.open .navbar-right, .navbar-right:not(:has(.nav-link)) { display: flex; }
  .navbar-right:not(:has(.nav-link)) { flex-direction: row; justify-content: stretch; } .navbar-right:not(:has(.nav-link)) .btn-link { flex: 1; justify-content: center; }
  .navbar-right a.nav-link { padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .navbar-right a.nav-link.active { border-bottom-color: var(--lp-primary); }
  .navbar-spacer { display: none; } .navbar-right .btn-link { justify-content: center; } .navbar-right form { display: flex; } .navbar-right form .btn-link { flex: 1; }
}
@media (max-width: 600px) {
  .container { padding: 18px 14px; }
  .g2:not(.tight), .g4 { grid-template-columns: 1fr; } .checks { grid-column: auto; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; }
  .card { padding: 16px; } .auth-card { padding: 28px 20px; border-radius: 20px; } .door { padding: 22px; }
  .page-title, .form-head h1 { font-size: 21px; }
  .wgrid { grid-template-columns: 1fr; } .p-head { flex-direction: column; text-align: center; } .p-head .chips, .p-meta { justify-content: center; }
  .dash-actions { width: 100%; } .dash-actions .btn { flex: 1; }
  .tab-search { width: 100%; margin: 0; } .tab-search input { width: 100% !important; }
  .seg span { padding: 9px 22px; }
}
