/* ===========================================================================
 *  BRC — شركة بابل للتوظيف | نظام التصميم
 *  الهوية: لازورد بابلي + ذهب + نقش بوابة عشتار + أسد بابل
 *  يشمل: الموقع العام، لوحة الموظفين، صفحة التحقق، وقالب الطباعة A4
 * =========================================================================== */

/* ============================ 1) الخطوط ============================ */
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/cairo-arabic-400-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/cairo-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/cairo-arabic-600-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/cairo-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/cairo-arabic-700-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/cairo-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('../fonts/cairo-arabic-900-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('../fonts/cairo-latin-900-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122;
}

/* ============================ 2) المتغيرات ============================ */
:root {
  --lapis: #0b1a3a;
  --lapis-2: #102a56;
  --lapis-3: #17376c;
  --night: #060d1f;
  --gold: #c8a24a;
  --gold-2: #e8d089;
  --gold-3: #8a6d2c;
  --turq: #1f8f96;
  --turq-2: #3ec1c4;
  --cream: #f9f6ef;
  --sand: #efe7d6;
  --white: #ffffff;
  --text: #14203a;
  --ink: #14203a;
  --muted: #6b7793;
  --line: rgba(200, 162, 74, .30);
  --line-soft: rgba(20, 32, 58, .10);
  --ok: #1f8f4e;
  --warn: #c8871a;
  --danger: #a8322f;
  --info: #2563a8;
  --shadow-sm: 0 4px 14px rgba(9, 17, 38, .07);
  --shadow: 0 12px 34px rgba(9, 17, 38, .12);
  --shadow-lg: 0 28px 70px rgba(6, 13, 31, .28);
  --radius: 16px;
  --radius-sm: 11px;
  --header-h: 74px;
}

/* ============================ 3) أساسيات ============================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  background: var(--cream); color: var(--text); direction: rtl; text-align: right;
  font-size: 15.5px; line-height: 1.85; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.35; font-weight: 900; letter-spacing: -.2px; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--lapis-2); text-decoration: none; }
a:hover { color: var(--gold-3); }
img { max-width: 100%; display: block; }
code, .mono { font-family: 'SFMono-Regular', Consolas, 'Courier New', monospace; letter-spacing: .3px; }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; border-radius: 6px; }
.container { width: min(1220px, 92vw); margin-inline: auto; }
.container-narrow { width: min(880px, 92vw); margin-inline: auto; }
.center { text-align: center; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.tiny { font-size: .78rem; }
.small { font-size: .87rem; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: .5rem } .mt-2 { margin-top: 1rem } .mt-3 { margin-top: 1.6rem } .mt-4 { margin-top: 2.4rem }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: .5rem } .mb-2 { margin-bottom: 1rem } .mb-3 { margin-bottom: 1.6rem }
.flex { display: flex; gap: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flex-wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ============================ 4) الترويسة ============================ */
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 14px 18px; flex-wrap: wrap; }
.header-contact { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: #dbe3f5; font-size: .82rem; }
.hc-item { display: inline-flex; align-items: center; gap: 7px; }
.hc-item .ic { color: var(--gold-2); flex: none; }
.hc-item a { color: inherit; }
.hc-item a:hover { color: var(--gold-2); }
a.hc-item { color: #dbe3f5; text-decoration: none; }
a.hc-item:hover { color: var(--gold-2); }
.hc-phones { display: inline-flex; align-items: center; gap: 8px; }
.hc-phones a { color: var(--gold-2); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(9, 18, 40, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}
.site-header .container { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand .emblem { width: 52px; height: 52px; flex: none; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .4)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 1.12rem; font-weight: 900; letter-spacing: -.3px; }
.brand-text span { font-size: .68rem; color: var(--gold-2); letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: #dbe3f3; padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: .93rem;
  transition: .18s; position: relative;
}
.main-nav a:hover { background: rgba(200, 162, 74, .14); color: #fff; }
.main-nav a.active { color: var(--gold-2); background: rgba(200, 162, 74, .16); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); color: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.site-header .main-nav { border-top: 1px solid var(--line); padding-top: 8px; justify-content: center; }

/* ===================== الأيقونات (القاعدة الأساسية) =====================
   كل أيقونة تُرسم بـ <svg class="ic"><use href="#i-…"/></svg>
   هذه القاعدة تضمن حجماً معقولاً في كل السياقات، والقواعد الأخصّ تتجاوزها. */
.ic {
  width: 18px;
  height: 18px;
  flex: none;
  color: inherit;
  vertical-align: -3px;
  pointer-events: none;
  overflow: visible;
}
.field label .ic { vertical-align: -4px; margin-inline-end: 5px; opacity: .85; }
.ic-sm { width: 15px; height: 15px; }
.ic-lg { width: 24px; height: 24px; }

/* ============================ 5) الأزرار ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: .9rem; transition: .18s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #dcbf72); color: #241a05; box-shadow: 0 6px 18px rgba(200, 162, 74, .30); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(200, 162, 74, .42); color: #241a05; }
.btn-lapis { background: linear-gradient(135deg, var(--lapis-2), var(--lapis-3)); color: #fff; box-shadow: 0 6px 18px rgba(16, 42, 86, .28); }
.btn-lapis:hover { transform: translateY(-2px); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--lapis-2); }
.btn-outline:hover { background: rgba(200, 162, 74, .10); }
.btn-ghost { background: rgba(255, 255, 255, .10); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warn { background: var(--warn); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .82rem; border-radius: 10px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg { padding: 13px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ============================ 6) الشارات والحالات ============================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; border: 1px solid transparent; white-space: nowrap;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { color: #12693a; background: #e4f5ea; border-color: #b9e2c8; }
.badge.warn { color: #8a5c05; background: #fdf1d8; border-color: #f0d9a3; }
.badge.danger { color: #8f2724; background: #fbe6e5; border-color: #f0c3c1; }
.badge.info { color: #1b4f8a; background: #e5eefb; border-color: #c2d7f2; }
.badge.muted { color: #5c6884; background: #eef1f7; border-color: #d9dfeb; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 10px;
  background: rgba(11, 26, 58, .06); border: 1px solid var(--line-soft);
  font-weight: 700; font-size: .84rem; color: var(--lapis-2);
}
.chip-code { background: linear-gradient(135deg, var(--lapis-2), var(--lapis-3)); color: #fff; border-color: transparent; letter-spacing: .6px; }
.chip-gold { background: rgba(200, 162, 74, .16); border-color: var(--line); color: var(--gold-3); }

/* ============================ 7) الأقسام والعناوين ============================ */
.section { padding: clamp(48px, 7vw, 92px) 0; }
.section-alt { background: linear-gradient(180deg, #fff, var(--cream)); }
.section-dark {
  background: linear-gradient(180deg, var(--night), var(--lapis) 55%, var(--night));
  color: #e9eefb; position: relative; overflow: hidden;
}
.section-dark::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: url('../img/brick-pattern.jpg'); background-size: 520px; mix-blend-mode: overlay;
}
.section-dark > * { position: relative; z-index: 1; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 9px; color: var(--gold-3); font-weight: 800;
  font-size: .82rem; letter-spacing: 2.6px; text-transform: uppercase; margin-bottom: 12px;
}
.section-dark .section-head .eyebrow { color: var(--gold-2); }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.section-dark .section-head p { color: #b9c6e2; }
.ornament { display: block; margin: 0 auto; width: 74px; height: 18px; opacity: .9; }

/* ============================ 8) الواجهة الرئيسية (Hero) ============================ */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url('../img/ishtar-gate.jpg');
  background-size: cover; background-position: center 32%;
  transform: scale(1.02);
}
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 13, 31, .95) 0%, rgba(6, 13, 31, .72) 42%, rgba(6, 13, 31, .42) 70%, rgba(6, 13, 31, .70) 100%),
    linear-gradient(0deg, var(--night) 2%, rgba(6, 13, 31, .10) 45%, rgba(6, 13, 31, .55) 100%);
}
.hero-inner { padding: clamp(46px, 8vw, 96px) 0 clamp(40px, 6vw, 74px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgba(200, 162, 74, .16); border: 1px solid var(--line); color: var(--gold-2);
  font-weight: 700; font-size: .84rem; margin-bottom: 20px;
}
.hero h1 { color: #fff; text-shadow: 0 4px 26px rgba(0, 0, 0, .45); }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-2), var(--gold), #b98f34);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { font-size: clamp(1rem, 1.5vw, 1.18rem); color: #d6dff2; max-width: 56ch; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hero-stat {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px; padding: 14px 16px; backdrop-filter: blur(6px);
}
.hero-stat b { display: block; font-size: 1.6rem; color: var(--gold-2); line-height: 1.2; }
.hero-stat span { font-size: .78rem; color: #c3cee5; }

/* شريط البحث السريع المضغوط */
.quick-search {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(140deg, rgba(9, 18, 40, .97), rgba(16, 42, 86, .94));
  border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.quick-search::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--turq), transparent);
}
.quick-search > * { position: relative; z-index: 1; }

.qs-label {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  color: var(--gold-2); font-weight: 800; font-size: .86rem; white-space: nowrap;
}
.qs-label .ic { width: 17px; height: 17px; }

.qs-field { position: relative; }
.qs-field.qs-main { flex: 1 1 220px; min-width: 200px; }
.qs-field.qs-region { flex: 0 1 160px; min-width: 140px; }
.qs-field > svg {
  position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--gold); opacity: .85; pointer-events: none; z-index: 1;
}
.qs-field input, .qs-field select {
  height: 42px; min-height: 42px; padding: 8px 12px; padding-inline-start: 40px;
  border-radius: 11px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06); color: #fff; font-size: .9rem; width: 100%;
}
.qs-field input::placeholder { color: #93a3c4; }
.qs-field input:focus, .qs-field select:focus {
  border-color: var(--gold); background: rgba(255, 255, 255, .10);
  box-shadow: 0 0 0 3px rgba(200, 162, 74, .20);
}
.qs-field select option { color: #12203c; background: #fff; }

.qs-scan, .qs-submit { min-height: 42px; padding: 8px 16px; border-radius: 11px; white-space: nowrap; flex: none; }
.qs-submit { box-shadow: 0 8px 22px rgba(200, 162, 74, .30); }

/* ===================== نافذة مسح الكيو آر كود ===================== */
.scan-stage {
  position: relative; border-radius: 16px; overflow: hidden; background: #05080f;
  aspect-ratio: 16 / 10; max-height: 46vh; width: 100%;
}
.scan-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at center, transparent 0 31%, rgba(6, 13, 31, .55) 70%);
}
.scan-frame::before {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(66%, 280px); aspect-ratio: 1;
  border: 2px solid var(--gold-2); border-radius: 18px;
  box-shadow: 0 0 0 4px rgba(232, 208, 137, .14), 0 0 28px rgba(232, 208, 137, .22);
}
.scan-line {
  position: absolute; left: 50%; top: 50%; width: min(66%, 280px); height: 2px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  box-shadow: 0 0 14px 2px rgba(232, 208, 137, .6);
  animation: qr-scanline 1.8s ease-in-out infinite;
}
@keyframes qr-scanline {
  0%, 100% { transform: translate(-50%, -78px); }
  50% { transform: translate(-50%, 78px); }
}
.scan-status { text-align: center; font-size: .85rem; color: var(--muted); margin: 12px 0 0; min-height: 1.4em; }
.scan-status.error { color: #d98a84; }
.scan-status.ok { color: #58d68d; }
.scan-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.hero-figure { position: relative; }
.hero-figure img {
  border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4; object-fit: cover; filter: saturate(1.05) contrast(1.05);
}
.hero-figure .figure-cap {
  position: absolute; inset-inline: 14px; bottom: 14px; background: rgba(6, 13, 31, .82);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; backdrop-filter: blur(8px);
}
.hero-figure .figure-cap b { color: var(--gold-2); display: block; font-size: .95rem; }
.hero-figure .figure-cap span { font-size: .78rem; color: #c3cee5; }

/* زخرفة الشرفات (الكرانيش) */
.crenel {
  height: 16px; width: 100%;
  background:
    repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 28px);
  mask-image: linear-gradient(180deg, #000 55%, transparent 55%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 55%);
  opacity: .8;
}
.crenel-dark { background: repeating-linear-gradient(90deg, var(--lapis-2) 0 14px, transparent 14px 28px); opacity: .9; }

/* ============================ 9) بطاقات الوظائف ============================ */
.filters {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 10px 12px; box-shadow: var(--shadow-sm); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: .78rem; font-weight: 700; color: var(--muted); }

.f-field { position: relative; }
.f-field.f-search { flex: 1 1 200px; min-width: 180px; }
.f-field select { min-width: 130px; }
.f-field > svg {
  position: absolute; inset-inline-start: 11px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none; z-index: 1;
}
.f-field input, .f-field select {
  height: 40px; min-height: 40px; padding: 7px 11px; padding-inline-start: 34px;
  border-radius: 10px; border: 1px solid #d9dfeb; background: #fff; color: var(--text);
  font-size: .88rem; width: 100%;
}
.f-field input::placeholder { color: #8a94ad; }
.f-field input:focus, .f-field select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 162, 74, .18); outline: none;
}
.f-reset { min-height: 40px; flex: none; }
input[type="text"], input[type="search"], input[type="tel"], input[type="number"], input[type="date"],
input[type="password"], input[type="email"], select, textarea {
  font-family: inherit; font-size: .9rem; color: var(--text);
  padding: 9px 12px; border-radius: 10px; border: 1px solid #d9dfeb; background: #fff; width: 100%;
  transition: .16s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 162, 74, .18); outline: none; }
textarea { min-height: 90px; resize: vertical; line-height: 1.7; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search-wrap input { padding-inline-start: 34px; }

.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(325px, 1fr)); gap: 20px; }
.job-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: .22s; position: relative;
}
.job-card::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--turq));
  z-index: 2;
}
.job-image {
  width: 100%; height: 180px; overflow: hidden; position: relative; background: linear-gradient(135deg, #f4f6fb, #e8ecf5);
}
.job-image img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;
}
.job-card:hover .job-image img { transform: scale(1.05); }
.job-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line); }
.job-card.is-reserved::before { background: linear-gradient(90deg, var(--warn), var(--gold)); }
.job-card.is-closed::before { background: linear-gradient(90deg, #9aa5bd, #c3cbd9); }
.job-card.is-closed { opacity: .78; }
.job-head { padding: 18px 18px 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.job-title { font-size: 1.08rem; font-weight: 900; margin: 0 0 6px; }
.job-code { font-size: .82rem; }
.job-body { padding: 0 18px 16px; flex: 1; }
.job-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.job-meta .mi { display: flex; align-items: center; gap: 8px; font-size: .87rem; color: #3c4a68; }
.job-meta .mi svg { width: 17px; height: 17px; color: var(--gold-3); flex: none; }
.job-foot {
  padding: 14px 18px; border-top: 1px dashed var(--line-soft); background: #fcfbf8;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.salary { font-weight: 900; color: var(--lapis-2); font-size: .95rem; }
.empty-state {
  text-align: center; padding: 56px 20px; background: #fff; border: 1px dashed var(--line);
  border-radius: var(--radius); color: var(--muted);
}
.empty-state svg { width: 46px; height: 46px; color: var(--gold); opacity: .7; margin-bottom: 12px; }

/* ============================ 10) كيف نعمل / الخدمات ============================ */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counters: step; }
.step {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px 20px;
  position: relative; box-shadow: var(--shadow-sm); overflow: hidden;
}
.step::before, .service::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #ffd66b, #49b8ff);
  transform: scaleX(0); transform-origin: center;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
  box-shadow: 0 0 10px rgba(255, 208, 96, .85), 0 0 22px rgba(73, 184, 255, .45);
}
.step:hover::before, .service:hover::before { transform: scaleX(1); }
.step .num {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lapis-2), var(--lapis-3)); color: var(--gold-2);
  font-weight: 900; font-size: 1.1rem; margin-bottom: 14px; box-shadow: 0 8px 18px rgba(16, 42, 86, .22);
  transition: transform .3s ease, box-shadow .3s ease, color .3s ease, text-shadow .3s ease;
}
.step:hover .num {
  transform: translateY(-2px) scale(1.07) rotate(-2deg);
  color: #cfeaff; text-shadow: 0 0 10px rgba(120, 205, 255, .9);
  box-shadow:
    0 0 0 2px rgba(73, 184, 255, .4),
    0 0 14px rgba(73, 184, 255, .6),
    0 0 32px rgba(73, 184, 255, .35),
    0 12px 24px rgba(16, 42, 86, .32);
}
.step h3 { font-size: 1.1rem; color: #0a0a0c; font-weight: 900; }
.step p { font-size: .93rem; color: #26282f; line-height: 1.85; margin: 0; }
.service {
  background: linear-gradient(180deg, #fff, #fdfbf6); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 24px 20px; height: 100%;
  position: relative; overflow: hidden;
}
.service svg {
  width: 34px; height: 34px; color: var(--gold-3); margin-bottom: 12px;
  transition: transform .35s ease, color .35s ease, filter .35s ease;
}
.service:hover svg {
  transform: translateY(-3px) scale(1.1); color: #ffd66b;
  filter: drop-shadow(0 0 6px rgba(255, 208, 96, .9)) drop-shadow(0 0 16px rgba(255, 208, 96, .45));
}
.service h3 { font-size: 1.1rem; color: #0a0a0c; font-weight: 900; }
.service p { font-size: .93rem; color: #26282f; line-height: 1.85; margin: 0; }

/* خط أسود فخم لعناوين قسمي آلية العمل والخدمات */
#how .section-head h2, #services .section-head h2 { color: #0a0a0c; }
#how .section-head p, #services .section-head p { color: #2a2d36; }

/* ---------------- حركات الظهور عند التمرير (Scroll Reveal) ---------------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition:
    opacity .7s cubic-bezier(.22, .61, .36, 1),
    transform .7s cubic-bezier(.22, .61, .36, 1),
    box-shadow .3s ease, border-color .3s ease, background .3s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.step:hover, .service:hover {
  border-color: rgba(255, 208, 96, .75);
  box-shadow:
    0 0 0 1px rgba(255, 208, 96, .3),
    0 0 18px rgba(255, 208, 96, .30),
    0 0 40px rgba(73, 184, 255, .18),
    0 14px 30px rgba(16, 42, 86, .18);
}

/* ============================ 11) قسم أسد بابل ============================ */
.section-about {
  background: linear-gradient(160deg, #050b1a 0%, #0a2148 45%, #0e2f63 100%);
  color: #e9eefb; position: relative; overflow: hidden;
}
.section-about::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(120, 205, 255, .16) 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 40%, #000 25%, transparent 100%);
  mask-image: radial-gradient(80% 80% at 50% 40%, #000 25%, transparent 100%);
}
.section-about::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 75% at 8% 12%, rgba(73, 184, 255, .22), transparent 62%),
    radial-gradient(50% 70% at 92% 85%, rgba(120, 205, 255, .16), transparent 60%);
}
.section-about > * { position: relative; z-index: 1; }

.section-about .eyebrow { color: var(--gold-2); }
.section-about .eyebrow-line::after { background: linear-gradient(90deg, var(--gold-2), transparent); }
.section-about h2 { color: #fff; text-shadow: 0 0 26px rgba(120, 205, 255, .35); }
.section-about .about-lede { color: #c6d6f4; font-size: 1.02rem; }

.section-about .feature-list li { color: #d6e2fb; transition: transform .3s ease; }
.section-about .feature-list li:hover { transform: translateX(-4px); }
.section-about .feature-list li b { color: #fff; }
.section-about .feature-list svg {
  color: #7fd0ff;
  filter: drop-shadow(0 0 6px rgba(120, 205, 255, .85)) drop-shadow(0 0 14px rgba(120, 205, 255, .4));
  transition: transform .3s ease;
}
.section-about .feature-list li:hover svg { transform: scale(1.2); }

.section-about .lion-frame {
  border: 1px solid rgba(120, 205, 255, .35);
  box-shadow:
    0 0 0 1px rgba(120, 205, 255, .14),
    0 0 34px rgba(73, 184, 255, .30),
    0 24px 50px rgba(0, 0, 0, .45);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.section-about .lion-frame:hover {
  border-color: rgba(120, 205, 255, .65);
  box-shadow:
    0 0 0 1px rgba(120, 205, 255, .30),
    0 0 22px rgba(120, 205, 255, .45),
    0 0 52px rgba(73, 184, 255, .30),
    0 26px 56px rgba(0, 0, 0, .5);
}
.section-about .lion-frame img { transition: transform .8s ease, filter .8s ease; }
.section-about .lion-frame:hover img { transform: scale(1.05); filter: saturate(1.08) brightness(1.05); }
.section-about .lion-frame .cap b { color: #7fd0ff; text-shadow: 0 0 12px rgba(120, 205, 255, .55); }

.section-about .btn-lapis {
  background: linear-gradient(135deg, #0e4a8f, #1b6fd0);
  box-shadow: 0 0 18px rgba(73, 184, 255, .35), 0 8px 22px rgba(16, 42, 86, .35);
}
.section-about .btn-lapis:hover { box-shadow: 0 0 30px rgba(73, 184, 255, .55), 0 12px 28px rgba(16, 42, 86, .4); }
.section-about .btn-outline { border-color: rgba(255, 255, 255, .28); color: #dce8ff; }
.section-about .btn-outline:hover { background: rgba(120, 205, 255, .12); color: #fff; }

.lion-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 54px); align-items: center; }
.about-copy { min-width: 0; }
.lion-frame {
  position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); background: #05080f;
}
.lion-frame img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.lion-frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 31, 0) 45%, rgba(6, 13, 31, .78) 100%);
}
.lion-frame .cap {
  position: absolute; inset-inline: 18px; bottom: 16px; z-index: 1; color: #fff;
}
.lion-frame .cap b { display: block; color: var(--gold-2); font-size: 1.05rem; }
.lion-frame .cap span { font-size: .82rem; color: #cfd8ea; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .93rem; }
.feature-list svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 4px; }
.section-dark .feature-list li { color: #d6dff2; }
.section-dark .feature-list svg { color: var(--gold-2); }

.quote-band {
  position: relative; padding: clamp(52px, 7vw, 88px) 0; color: #fff; text-align: center; overflow: hidden;
  background-image: url('../img/ishtar-gate.jpg'); background-size: cover; background-position: center 40%;
  background-attachment: fixed;
}
.quote-band::before { content: ''; position: absolute; inset: 0; background: rgba(6, 13, 31, .80); }
.quote-band > * { position: relative; z-index: 1; }
.quote-band blockquote { font-size: clamp(1.1rem, 2.1vw, 1.6rem); font-weight: 700; margin: 0 auto; max-width: 880px; line-height: 1.9; }
.quote-band .attribution { color: var(--gold-2); font-weight: 700; margin-top: 14px; }

/* ============================ 12) التواصل ============================ */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px 20px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.contact-card .ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(200, 162, 74, .18), rgba(31, 143, 150, .14)); color: var(--gold-3);
}
.contact-card .ic svg { width: 25px; height: 25px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-card p, .contact-card a { font-size: .93rem; color: var(--muted); margin: 0; }
.contact-card a { color: var(--lapis-2); font-weight: 700; }

/* ============================ 13) التذييل ============================ */
.site-footer { background: var(--night); color: #c9d3e8; position: relative; border-top: 1px solid var(--line); }
.site-footer .foot-main { padding: 46px 0 26px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: .98rem; margin-bottom: 14px; }
.site-footer a { color: #c9d3e8; font-size: .9rem; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer .brand-text b { color: #fff; }
.site-footer .foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09); padding: 16px 0; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: #93a1bf;
}
.footer-phones { display: grid; gap: 8px; }
.footer-phones a { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); font-weight: 700; }
.footer-phones svg { width: 17px; height: 17px; }

/* ============================ 14) النوافذ والتنبيهات ============================ */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(6, 13, 31, .62); backdrop-filter: blur(4px);
  z-index: 200; display: grid; place-items: center; padding: 20px; overflow-y: auto;
}
.modal {
  background: #fff; border-radius: 20px; width: min(760px, 96vw); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); max-height: 92vh; display: flex; flex-direction: column; animation: pop .22s ease-out;
}
.modal.modal-wide { width: min(1020px, 96vw); }
@keyframes pop { from { transform: translateY(14px) scale(.985); opacity: 0 } to { transform: none; opacity: 1 } }
.modal-head {
  padding: 20px 22px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between;
  align-items: flex-start; gap: 14px; background: linear-gradient(180deg, #fdfbf6, #fff); border-radius: 20px 20px 0 0;
}
.modal-head h3 { margin: 0; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; background: #fcfbf8; border-radius: 0 0 20px 20px; }
.icon-btn {
  background: transparent; border: 1px solid var(--line-soft); border-radius: 10px; width: 36px; height: 36px;
  display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: .16s; flex: none;
}
.icon-btn:hover { background: #f4f1e9; color: var(--danger); border-color: #e8d7d6; }
.icon-btn svg { width: 18px; height: 18px; }

.toast-wrap { position: fixed; inset-block-start: 20px; inset-inline-start: 20px; z-index: 300; display: grid; gap: 10px; }
.toast {
  background: #101b34; color: #fff; border-radius: 13px; padding: 13px 17px; min-width: 270px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: flex; gap: 11px; align-items: flex-start;
  animation: slideIn .24s ease-out;
}
@keyframes slideIn { from { transform: translateX(-16px); opacity: 0 } to { transform: none; opacity: 1 } }
.toast svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.toast.ok svg { color: #58d68d; } .toast.warn svg { color: var(--gold-2); } .toast.err svg { color: #f1948a; } .toast.info svg { color: var(--turq-2); }
.toast b { display: block; font-size: .9rem; } .toast span { font-size: .82rem; color: #c3cee5; }

/* ============================ 15) الجداول ============================ */
.table-wrap { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 700px; }
table.data thead th {
  background: linear-gradient(180deg, #fdfbf6, #f6f2e8); color: var(--lapis-2); font-weight: 800;
  text-align: right; padding: 11px 13px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: .8rem;
}
table.data tbody td { padding: 10px 13px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tbody tr:hover { background: #fcfaf4; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data .cell-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.table-empty { padding: 36px; text-align: center; color: var(--muted); }
.tfoot-note { padding: 10px 14px; background: #fcfbf8; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line-soft); }

/* ============================ 16) لوحة الموظفين - تصميم مدمج بدون فراغات ============================ */
.app-shell { 
  display: flex; 
  flex-direction: column; 
  width: 100%; 
  min-height: 100vh; 
  background: #f4f6fb; 
  margin: 0; 
  padding: 0;
}
.app-side {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, var(--night), var(--lapis) 60%, #0a1730);
  color: #cdd7ea;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
}
[dir="rtl"] .app-side { 
  right: 0; 
  left: auto;
  transform: translateX(100%);
}
[dir="rtl"] .app-side.open { transform: translateX(0); }
.side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.side-overlay.active { opacity: 1; pointer-events: auto; }

/* زر الهامبرغر */
.hamburger-btn {
  width: 40px;
  height: 40px;
  background: var(--lapis-2);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 8px;
  position: relative;
  transition: all 0.2s;
}
.hamburger-btn:hover { background: var(--lapis-3); transform: scale(1.05); }
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger-btn .notif-dot {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 10px;
  height: 10px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--lapis-2);
  display: none;
}
.hamburger-btn .notif-dot.show { display: block; animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* محتوى الشريط الجانبي */
.app-side .brand { 
  padding: 16px;
  display: flex; 
  align-items: center; 
  gap: 12px;
  border-bottom: 1px solid rgba(200, 162, 74, .2);
}
.app-side .brand .emblem { width: 40px; height: 40px; }
.brand-text b { font-size: .95rem; display: block; color: #fff; }
.brand-text span { font-size: .75rem; color: var(--gold-2); }

.side-user {
  margin: 12px 16px;
  padding: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
}
.side-user b { color: #fff; display: block; font-size: .9rem; font-weight: 700; }
.side-user span { font-size: .75rem; color: var(--gold-2); }

.side-nav { padding: 0 12px; }
.side-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: right;
  background: transparent;
  border: none;
  color: #cdd7ea;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4px;
}
.side-nav button svg { width: 18px; height: 18px; opacity: 0.9; flex-shrink: 0; }
.side-nav button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.side-nav button.active { 
  background: linear-gradient(135deg, rgba(200, 162, 74, .3), rgba(31, 143, 150, .2)); 
  color: #fff; 
  box-shadow: inset 0 0 0 1px rgba(200, 162, 74, .4);
}
.side-nav .badge-count {
  margin-inline-start: auto;
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  font-size: .7rem;
  padding: 2px 8px;
  font-weight: 800;
}

.side-foot { 
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.side-foot p { display: none; }

/* المحتوى الرئيسي */
.app-main { 
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* الشريط العلوي */
.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 2px solid var(--line-soft);
  flex-wrap: wrap;
}
.app-top h1 { 
  font-size: 1.3rem; 
  margin: 0; 
  color: var(--lapis-2);
  font-weight: 800;
}
.app-top .sub { 
  color: var(--muted); 
  font-size: .85rem; 
  margin: 2px 0 0 0;
}

/* المحتوى */
.view { display: none; flex: 1; }
.view.active { 
  display: flex;
  flex-direction: column;
  animation: fade .2s ease-out;
}
.view > * { 
  margin: 0;
  padding: 12px 16px;
}
.view > *:first-child { padding-top: 16px; }
.view > .stat-grid { padding: 16px; }
.view > .panel { margin: 0 16px 12px 16px; }
.view > .panel:last-child { margin-bottom: 16px; }

@keyframes fade { 
  from { opacity: 0; transform: translateY(6px); } 
  to { opacity: 1; transform: none; } 
}

/* شبكة الإحصائيات */
.stat-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 12px;
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat-card::after { content: ''; position: absolute; inset-inline-end: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 162, 74, .16), transparent 70%); }
.stat-card .lbl { font-size: .82rem; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 7px; }
.stat-card .lbl svg { width: 16px; height: 16px; color: var(--gold-3); }
.stat-card .val { font-size: 1.9rem; font-weight: 900; color: var(--lapis-2); line-height: 1.3; margin-top: 4px; }
.stat-card .hint { font-size: .78rem; color: var(--muted); }
.stat-card.accent { background: linear-gradient(135deg, var(--lapis-2), var(--lapis-3)); border-color: transparent; }
.stat-card.accent .lbl, .stat-card.accent .hint { color: #c6d3ec; }
.stat-card.accent .lbl svg { color: var(--gold-2); }
.stat-card.accent .val { color: #fff; }

.panel { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.panel-head {
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap; background: linear-gradient(180deg, #fdfbf6, #fff);
  border-radius: 14px 14px 0 0;
}
.panel-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.panel-head h3 svg { width: 17px; height: 17px; color: var(--gold-3); }
.panel-body { padding: 16px; }
.toolbar { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.toolbar .field { min-width: 140px; }
.toolbar .grow { flex: 1 1 200px; }
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-tabs button {
  border: 1px solid var(--line-soft); background: #fff; color: var(--muted); padding: 8px 14px;
  border-radius: 999px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .85rem; transition: .16s;
}
.pill-tabs button.active { background: var(--lapis-2); color: #fff; border-color: var(--lapis-2); }

/* مقياس الأعمدة في اللوحة المالية */
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 130px; align-items: center; gap: 12px; }
.bar-track { background: #eef1f7; border-radius: 999px; height: 12px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--turq)); }
.bar-row .val { text-align: left; font-weight: 800; font-size: .88rem; color: var(--lapis-2); }

/* سلّم المحاولات الخمس */
.attempts-stack { display: grid; gap: 10px; }
.attempt-slot {
  border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 16px; background: #fff;
  display: grid; grid-template-columns: 48px minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 12px; align-items: center;
}
.attempt-slot.filled { background: #fcfaf4; border-color: var(--line); }
.attempt-slot .no {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900;
  background: #eef1f7; color: var(--muted);
}
.attempt-slot.filled .no { background: linear-gradient(135deg, var(--lapis-2), var(--lapis-3)); color: var(--gold-2); }
.attempt-slot .job { font-weight: 800; }
.attempt-slot .job small { display: block; color: var(--muted); font-weight: 600; }
.hold-timer { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--warn); font-size: .84rem; }
.hold-timer svg { width: 16px; height: 16px; }
.hold-timer.urgent { color: var(--danger); }

/* ============================ 17) صفحة التحقق ============================ */
.verify-hero {
  background: linear-gradient(180deg, var(--night), var(--lapis) 60%, var(--night)); color: #fff;
  padding: 34px 0 30px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden;
}
.verify-hero::after {
  content: ''; position: absolute; inset: 0; opacity: .16; background: url('../img/brick-pattern.jpg'); background-size: 480px;
}
.verify-hero > * { position: relative; z-index: 1; }
.verify-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); margin-top: -34px; position: relative; overflow: hidden; }
.verify-status { padding: 22px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.verify-status .seal { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; flex: none; }
.verify-status .seal svg { width: 30px; height: 30px; }
.verify-status.ok .seal { background: #e4f5ea; color: var(--ok); }
.verify-status.danger .seal { background: #fbe6e5; color: var(--danger); }
.verify-status.warn .seal { background: #fdf1d8; color: var(--warn); }
.verify-status h1 { font-size: 1.35rem; margin: 0; }
.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.data-item { background: #fbfaf6; border: 1px solid var(--line-soft); border-radius: 13px; padding: 12px 14px; }
.data-item .k { font-size: .78rem; color: var(--muted); font-weight: 700; }
.data-item .v { font-size: .98rem; font-weight: 800; color: var(--lapis-2); word-break: break-word; }
.verify-qr { display: grid; place-items: center; gap: 10px; }
.verify-qr svg { width: 172px; height: 172px; border: 1px solid var(--line-soft); border-radius: 14px; padding: 8px; background: #fff; }

/* ============================ 18) الاستمارة المطبوعة (A4) ============================ */
#print-root { display: none; }
.voucher { background: #fff; color: #000; font-size: 11.6px; line-height: 1.6; }
.voucher .v-head { display: flex; align-items: center; gap: 12px; border-bottom: 2.5px solid #0b1a3a; padding-bottom: 8px; margin-bottom: 10px; }
.voucher .v-logo { width: 74px; height: 74px; flex: none; }
.voucher .v-titles { flex: 1; }
.voucher .v-titles h1 { font-size: 18px; margin: 0; color: #0b1a3a; }
.voucher .v-titles .en { font-size: 10.5px; letter-spacing: 1.2px; color: #555; font-weight: 700; }
.voucher .v-titles .meta { font-size: 10px; color: #333; margin-top: 3px; }
.voucher .v-phone-box { text-align: center; border: 1px solid #0b1a3a; border-radius: 8px; padding: 5px 9px; min-width: 132px; }
.voucher .v-phone-box .k { font-size: 9.5px; color: #444; }
.voucher .v-phone-box .v { font-weight: 900; font-size: 12px; direction: ltr; }
.voucher .v-band { display: flex; justify-content: space-between; gap: 10px; background: #0b1a3a; color: #fff; padding: 6px 12px; border-radius: 7px; font-weight: 800; font-size: 11.5px; }
.voucher .v-section-title { font-weight: 900; font-size: 12px; color: #0b1a3a; margin: 10px 0 5px; border-inline-start: 4px solid #c8a24a; padding-inline-start: 7px; }
.voucher .v-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.voucher .v-cell { border: 1px solid #c9ced8; border-radius: 6px; padding: 5px 7px; }
.voucher .v-cell .k { font-size: 9.3px; color: #555; font-weight: 700; }
.voucher .v-cell .v { font-size: 11.5px; font-weight: 800; }
.voucher .v-cell.wide { grid-column: span 2; }
.voucher table { width: 100%; border-collapse: collapse; }
.voucher table th, .voucher table td { border: 1px solid #9aa3b2; padding: 5px 6px; text-align: center; font-size: 10.6px; }
.voucher table th { background: #eef1f7; font-weight: 800; color: #0b1a3a; }
.voucher table td.right { text-align: right; }
.voucher .v-foot { display: grid; grid-template-columns: 150px 1fr; gap: 14px; margin-top: 10px; align-items: start; }
.voucher .v-qr { text-align: center; }
.voucher .v-qr svg { width: 132px; height: 132px; }
.voucher .v-qr .ser { font-size: 10px; font-weight: 900; direction: ltr; }
.voucher .v-note { border: 1px dashed #8a6d2c; background: #fdf9ee; border-radius: 7px; padding: 7px 10px; font-size: 10.2px; line-height: 1.7; }
.voucher .v-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; text-align: center; font-size: 10.5px; }
.voucher .v-sign div { border-top: 1px solid #333; padding-top: 4px; }
.voucher .v-watermark {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: .045; pointer-events: none;
}
.voucher .v-watermark img { width: 70%; }
.voucher-sheet { position: relative; }

@media print {
  @page { size: A4 portrait; margin: 9mm; }
  html, body { background: #fff !important; }
  body * { visibility: hidden !important; }
  #print-root, #print-root * { visibility: visible !important; }
  #print-root { display: block !important; position: absolute; inset: 0; width: 100%; }
  #print-root .voucher { width: 100%; }
  .no-print, .toast-wrap, .modal-backdrop, .app-side, .site-header, .site-footer { display: none !important; }
  .voucher .v-watermark { opacity: .06; }
}

/* ============================ 19) استجابة الشاشات ============================ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .lion-grid { grid-template-columns: 1fr; }
  .site-footer .foot-main { grid-template-columns: 1fr 1fr; }
  .hc-email, .hc-hours { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .main-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: #08132b; flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; }
  .nav-toggle { display: inline-flex; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-field.f-search { flex: 1 1 100%; }
  .qs-field.qs-main { flex: 1 1 100%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-footer .foot-main { grid-template-columns: 1fr; }
  .attempt-slot { grid-template-columns: 40px 1fr; }
  .bar-row { grid-template-columns: 100px 1fr 96px; }
  .modal-foot { justify-content: stretch; }
  .modal-foot .btn { flex: 1; }
  .header-contact { order: 3; flex: 1 1 100%; }
  .hc-email, .hc-hours { display: inline-flex; }
  .site-header .main-nav { border-top: 0; padding-top: 0; justify-content: initial; }
}
/* خط زخرفي ذهبي بجانب العنوان الفرعي (يمتدّ في اتجاه القراءة) */
.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow-line::after {
  content: '';
  inline-size: 48px;
  block-size: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-dark .eyebrow-line::after { background: linear-gradient(90deg, var(--gold-2), transparent); }

/* مسارات الملف المستقل الواحد (تُتحكَّم بالخاصية hidden) */
.route { display: block; }
.route[hidden] { display: none !important; }

@media (max-width: 420px) {
  .hero-cta .btn { width: 100%; }
  .card-pad { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .quote-band { background-attachment: scroll; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================ 17) صفحة تسجيل الدخول ============================ */
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--night) 0%, var(--lapis-2) 50%, var(--night) 100%);
  position: relative;
  overflow: hidden;
  padding: 20px;
}
.login-screen.hidden {
  display: none !important;
  min-height: 0;
  height: 0;
  overflow: hidden;
}

.login-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(200, 162, 74, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(31, 143, 150, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(200, 162, 74, 0.04) 0%, transparent 70%);
  animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.login-container {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(200, 162, 74, 0.15), rgba(31, 143, 150, 0.15));
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(200, 162, 74, 0.3);
  box-shadow: 0 0 40px rgba(200, 162, 74, 0.2);
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(200, 162, 74, 0.2); }
  50% { box-shadow: 0 0 60px rgba(200, 162, 74, 0.35); }
}

.login-logo .emblem {
  width: 80px;
  height: 80px;
}

.login-header h1 {
  color: #fff;
  font-size: 2rem;
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.login-header p {
  color: var(--gold-2);
  font-size: 1.1rem;
  margin: 0 0 6px;
  font-weight: 700;
}

.login-subtitle {
  color: #c3cee5;
  font-size: 0.95rem;
  display: block;
}

.login-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 162, 74, 0.25);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.login-form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(200, 162, 74, 0.2);
}

.login-form-header svg {
  color: var(--gold);
}

.login-form-header h2 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
  font-weight: 800;
}

.login-form .field label {
  color: #e8d089;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 8px;
}

.login-form .field label svg {
  opacity: 0.7;
}

.login-form .field input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 162, 74, 0.3);
  color: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s;
}

.login-form .field input::placeholder {
  color: rgba(195, 206, 229, 0.5);
}

.login-form .field input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.15);
}

.login-submit {
  margin-top: 8px;
  font-size: 1.1rem;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
}

.login-back-link {
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.login-back-link:hover {
  color: var(--gold);
  transform: translateX(-4px);
}

.login-back-link svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .login-container {
    width: 100%;
  }
  
  .login-form {
    padding: 28px 24px;
  }
  
  .login-header h1 {
    font-size: 1.6rem;
  }
  
  .login-logo {
    width: 100px;
    height: 100px;
  }
  
  .login-logo .emblem {
    width: 65px;
    height: 65px;
  }
}
