/* ===== وصلني — نظام التصميم =====
   أبيض نظيف + أصفر زعفراني، والأسود للشعار والنصوص. خط IBM Plex Sans Arabic لكل النصوص، و IBM Plex Mono لأرقام العدّاد.
   كل الألوان متغيّرات هون، والصفحات ما بتكتب لون مباشر. */
:root {
  --ink: #0E0F12;          /* لون الشعار والنص الأقوى */
  --ink-2: #FFFFFF;        /* اللوحات المنبثقة */
  --ink-3: #F2F3F6;        /* الحقول والخلفيات الهادية */
  --line: #E5E7EB;
  --muted: #6B7280;
  --text: #111318;
  --gold: #FFC233;
  --gold-2: #FFD56B;
  --gold-ink: #1A1300;     /* نص فوق الأصفر */
  --gold-text: #9A6700;    /* أصفر غامق مقروء فوق الأبيض */
  --gold-soft: #FFF6DD;
  --ok: #059669;
  --warn: #B45309;
  --bad: #DC2626;
  --info: #2563EB;
  --card: #FFFFFF;
  --bg: #F6F7F9;
  --shadow: 0 8px 28px rgba(17,19,24,.10);
  --radius: 18px;
  --radius-s: 12px;
  --font: "IBM Plex Sans Arabic", -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-num: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold-text); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.gold { color: var(--gold-text); }

/* ===== أزرار ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 14px 18px; min-height: 50px;
  font-weight: 600; font-size: 16px; cursor: pointer;
  background: var(--ink-3); color: var(--text);
  transition: transform .12s ease, filter .15s ease, background .15s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { background: #fff; border: 1px solid var(--line); }
.btn-bad { background: #FEECEC; color: var(--bad); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-block { width: 100%; }
.btn-s { min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: 11px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--ink-2); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow);
}
.icon-btn svg { width: 22px; height: 22px; }

/* ===== حقول ===== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; background: var(--ink-3); border: 1px solid var(--line);
  border-radius: 13px; padding: 13px 14px; outline: none; min-height: 50px;
  transition: border-color .15s;
}
.input:focus { border-color: var(--gold); }
textarea.input { min-height: 90px; resize: vertical; }
.input.ltr { direction: ltr; text-align: left; }
.otp { display: flex; gap: 8px; direction: ltr; justify-content: center; }
.otp input {
  width: 46px; height: 56px; text-align: center; font-size: 22px; font-weight: 700;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 13px; outline: none;
}
.otp input:focus { border-color: var(--gold); }

/* ===== بطاقات ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.sheet {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 500;
  background: var(--ink-2); border-radius: 26px 26px 0 0;
  padding: 10px 16px calc(16px + var(--safe-b));
  box-shadow: 0 -10px 36px rgba(17,19,24,.14);
  max-height: 78vh; overflow-y: auto; overscroll-behavior: contain;
  animation: up .28s cubic-bezier(.2,.8,.2,1);
}
.sheet::before {
  content: ""; display: block; width: 42px; height: 5px; border-radius: 3px;
  background: var(--line); margin: 0 auto 12px;
}
/* شاشة الخريطة: الورقة ما بتغطي الخريطة كلها، بيضل شريط فوق للقائمة وزر موقعي
   (78vh بسفاري الآيفون أطول من المساحة الظاهرة لأن شريط العنوان بيقصّها) */
.screen > .sheet { max-height: min(78vh, calc(100% - 190px - var(--safe-t))); }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--ink-3); color: var(--muted); white-space: nowrap;
}
.badge.ok { background: #E7F7F0; color: var(--ok); }
.badge.warn { background: #FEF3E2; color: var(--warn); }
.badge.bad { background: #FEECEC; color: var(--bad); }
.badge.info { background: #EAF1FE; color: var(--info); }
.badge.gold { background: var(--gold-soft); color: var(--gold-text); }
.divider { height: 1px; background: var(--line); margin: 12px 0; }

/* ===== شاشات التطبيق ===== */
.app { position: fixed; inset: 0; overflow: hidden; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; overflow-y: auto; }
.screen-pad { padding: calc(20px + var(--safe-t)) 20px calc(24px + var(--safe-b)); }
.topbar {
  position: absolute; top: calc(12px + var(--safe-t)); inset-inline: 12px; z-index: 600;
  display: flex; justify-content: space-between; align-items: center; pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.chip {
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--ink-2); box-shadow: var(--shadow); font-size: 14px; font-weight: 600;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(5,150,105,.15); }

/* ===== الخريطة ===== */
#map { position: absolute; inset: 0; z-index: 1; background: #EEF0F3; }
/* خريطة هادية متل التطبيقات الكبيرة: الألوان خفيفة، فالسيارات والطريق بيبينو */
.tiles-soft { filter: saturate(.22) brightness(1.05) contrast(.9); }
.tiles-dark { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.35); }
.leaflet-container { font-family: var(--font); background: #EEF0F3; }
.leaflet-control-attribution { font-size: 9px !important; background: rgba(255,255,255,.75) !important; color: #666 !important; }
.leaflet-control-attribution a { color: #555 !important; }
.center-pin {
  position: absolute; left: 50%; top: 50%; z-index: 400; pointer-events: none;
  transform: translate(-50%, -100%); transition: transform .15s;
}
.center-pin.lift { transform: translate(-50%, -118%); }
.center-pin svg { width: 44px; height: 54px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }
.car-marker { transition: transform .9s linear; }
.car-marker svg { width: 34px; height: 34px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.place-marker {
  width: 18px; height: 18px; border-radius: 50%; border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--ink), 0 3px 8px rgba(0,0,0,.25);
}
.place-marker.from { background: var(--ok); }
.place-marker.to { background: var(--ink); border-radius: 4px; }
.place-pin svg { width: 30px; height: 37px; display: block; filter: drop-shadow(0 4px 5px rgba(0,0,0,.28)); }

/* ===== مسار من/إلى ===== */
.route-box { display: flex; gap: 12px; align-items: stretch; }
.route-line { display: flex; flex-direction: column; align-items: center; padding: 16px 0; }
.route-line i { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.route-line b { flex: 1; width: 2px; background: repeating-linear-gradient(var(--line) 0 4px, transparent 4px 8px); margin: 4px 0; }
.route-line i.to { background: var(--ink); border-radius: 2px; }
.route-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.place-btn {
  text-align: start; background: var(--ink-3); border: 1px solid var(--line); border-radius: 13px;
  padding: 12px 14px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.place-btn small { display: block; color: var(--muted); font-size: 11.5px; }
.place-btn.active { border-color: var(--gold); }

/* ===== الفئات ===== */
.classes { display: flex; flex-direction: column; gap: 8px; }
.cls {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 14px;
  border: 1.5px solid transparent; background: var(--ink-3); cursor: pointer; text-align: start; width: 100%;
}
.cls.sel { border-color: var(--gold); background: var(--gold-soft); }
.cls .car-ico { width: 56px; height: 34px; flex-shrink: 0; }
.cls b { font-size: 16px; }
.cls .price { font-weight: 700; font-size: 17px; }

/* ===== قوائم ===== */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.list-item:last-child { border-bottom: 0; }
.list-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--ink-3); display: grid; place-items: center; flex-shrink: 0; }
.list-ico svg { width: 20px; height: 20px; }

.avatar {
  width: 54px; height: 54px; border-radius: 16px; object-fit: cover; background: var(--ink-3);
  display: grid; place-items: center; font-weight: 700; font-size: 20px; color: var(--gold-text); flex-shrink: 0;
}
.plate {
  display: inline-block; direction: ltr; padding: 3px 10px; border-radius: 7px; font-weight: 700;
  background: #fff; color: #111; border: 2px solid #111; font-size: 14px; letter-spacing: 1px;
}
.stars { color: #F5A400; letter-spacing: 2px; }
.rate-stars { display: flex; gap: 6px; justify-content: center; direction: ltr; }
.rate-stars button { background: none; border: 0; font-size: 38px; color: var(--line); cursor: pointer; padding: 0 2px; }
.rate-stars button.on { color: #F5A400; }

/* ===== بحث ===== */
.search-results { display: flex; flex-direction: column; margin-top: 8px; }
.search-results button {
  display: flex; gap: 12px; align-items: center; text-align: start; padding: 12px 6px;
  background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
}

/* ===== رسائل ===== */
#toast {
  position: fixed; top: calc(16px + var(--safe-t)); left: 50%; transform: translateX(-50%) translateY(-120%);
  z-index: 9999; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px;
  font-weight: 600; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  max-width: calc(100vw - 32px); text-align: center;
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.bad { background: var(--bad); color: #fff; }
.demo-ribbon {
  position: fixed; bottom: calc(6px + var(--safe-b)); left: 8px; z-index: 9000;
  background: var(--gold-soft); color: var(--gold-text); font-size: 11px; padding: 3px 9px; border-radius: 8px;
  pointer-events: none;
}

/* ===== تحميل ===== */
.spinner {
  width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(0,0,0,.12);
  border-top-color: currentColor; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pulse {
  position: relative; width: 96px; height: 96px; margin: 8px auto 4px;
  display: grid; place-items: center;
}
.pulse::before, .pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--gold); opacity: .25;
  animation: ripple 1.8s ease-out infinite;
}
.pulse::after { animation-delay: .9s; }
.pulse img { width: 58px; height: 58px; border-radius: 16px; position: relative; z-index: 1; }
@keyframes ripple { from { transform: scale(.5); opacity: .45; } to { transform: scale(1.6); opacity: 0; } }

/* ===== شاشة الترحيب ===== */
.welcome {
  min-height: 100%; display: flex; flex-direction: column; justify-content: space-between;
  background: #fff;
}
.welcome h1 { font-size: 34px; line-height: 1.25; font-weight: 800; }
.welcome .logo-xl { width: 76px; height: 76px; border-radius: 22px; box-shadow: 0 14px 34px rgba(17,19,24,.18); }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature .list-ico { background: var(--gold-soft); color: var(--gold-text); }

/* ===== التبويبات السفلية ===== */
.tabs {
  display: flex; background: var(--ink-2); border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + var(--safe-b));
}
.tabs button {
  flex: 1; background: none; border: 0; color: var(--muted); padding: 6px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600;
}
.tabs button svg { width: 23px; height: 23px; }
.tabs button.on { color: var(--text); }
.tabs button.on svg { color: var(--gold-text); }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi { background: var(--ink-3); border-radius: 15px; padding: 14px; }
.kpi small { color: var(--muted); font-size: 12px; display: block; }
.kpi b { font-size: 22px; font-weight: 700; }

.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--gold); }

.upload {
  border: 1.5px dashed var(--line); border-radius: 15px; padding: 14px; display: flex; gap: 12px;
  align-items: center; cursor: pointer; background: var(--ink-3);
}
.upload img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.upload.done { border-style: solid; border-color: #6EE7B7; background: #F0FBF6; }

@media (min-width: 720px) {
  .phone-frame .sheet { max-width: 460px; inset-inline-start: 16px; inset-inline-end: auto; bottom: 16px; border-radius: 26px; }
}

/* صور السيارات الواقعية (خلفيتها بيضا، فبتندمج مع البطاقات) */
.car-photo { width: 70px; height: 44px; object-fit: contain; flex-shrink: 0; mix-blend-mode: multiply; }
.cls.sel .car-photo { transform: scale(1.06); transition: transform .2s; }

/* أزرار مجمّعة (اختيار واحد من عدة) */
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 12px; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: var(--ink); color: #fff; }
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: .2s; }
.switch i::after { content: ""; position: absolute; width: 22px; height: 22px; top: 3px; inset-inline-start: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { inset-inline-start: 23px; }

/* ===== الرئيسية: بطاقات الخدمات ===== */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.services button { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 8px 4px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform .12s, box-shadow .2s; }
.services button:active { transform: scale(.97); }
.services button:hover { box-shadow: var(--shadow); }
/* كل بطاقة إلها نفس «الصندوق»: صورة سيارة أو أيقونة، على نفس الخلفية والقياس */
.services .svc-ico { width: 100%; height: 46px; display: grid; place-items: center; color: var(--gold-text); background: var(--bg); border-radius: 12px; margin-bottom: 4px; overflow: hidden; }
.services .svc-ico svg { width: 26px; height: 26px; }
.services .svc-ico img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 3px 6px; }
.services b { font-size: 13px; }
.services span:not(.svc-ico) { font-size: 10.5px; color: var(--muted); }
.wallet-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; cursor: pointer; font-weight: 700; font-size: 13px; }
.wallet-chip svg { width: 18px; height: 18px; color: var(--gold-text); }
.pay-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pay-pick button { border: 1.5px solid var(--line); background: #fff; border-radius: 13px; padding: 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.pay-pick button.on { border-color: var(--gold); background: var(--gold-soft); }

/* ===== المحفظة ===== */
.wallet-card { border-radius: 22px; padding: 20px; color: #fff; position: relative; overflow: hidden;
  background: #14161B; box-shadow: 0 10px 28px rgba(17,19,24,.18); }
.wallet-amount { font-size: 38px; font-weight: 800; margin: 14px 0 4px; position: relative; z-index: 1; }
.wallet-name { margin-top: 18px; font-size: 13px; opacity: .8; position: relative; z-index: 1; }
.tx-row { display: flex; gap: 12px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.tx-row .list-ico { font-weight: 800; }
.tx-row .list-ico.in { background: #E7F7F0; color: var(--ok); }
.tx-row .list-ico.out { background: #FEECEC; color: var(--bad); }
.pos { color: var(--ok); } .neg { color: var(--bad); }
.pay-opt { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 13px; cursor: pointer; }
.pay-opt.on { border-color: var(--gold); background: var(--gold-soft); }

/* ===== البخشيش ===== */
.tip-box { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.tip-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tip-pick button { flex: 1 1 auto; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.tip-pick button.on { border-color: var(--gold); background: var(--gold-soft); }
.tip-box .pay-pick { margin-top: 10px; }
.tip-box [hidden] { display: none; }
.tip-box .pay-pick button[disabled] { opacity: .45; cursor: not-allowed; }
.tip-note { margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-text); font-weight: 700; font-size: 14px; text-align: center; }

/* ===== الراكب: من / إلى ===== */
.trip-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 0 12px; box-shadow: 0 2px 10px rgba(17,19,24,.04);
}
.trip-card::before {   /* الخط المنقّط بين النقطتين */
  content: ""; position: absolute; inset-inline-start: 22px; width: 2px; top: 37px; bottom: 37px;
  background: repeating-linear-gradient(to bottom, #C3C8D0 0 3px, transparent 3px 7px);
}
.trip-row { display: flex; align-items: stretch; gap: 12px; min-height: 58px; }
.trip-mk { width: 22px; flex-shrink: 0; display: grid; place-items: center; position: relative; z-index: 1; }
.trip-mk.from::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(5,150,105,.22);
}
.trip-mk.to svg { width: 18px; height: 22px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.18)); }
.trip-body {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 0;
  background: none; border: 0; text-align: start; cursor: pointer; color: inherit;
}
.trip-row + .trip-row .trip-body { border-top: 1px solid var(--line); }
.trip-card.has-swap .trip-body { padding-inline-end: 44px; }
.trip-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.trip-txt small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.trip-txt .v { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-txt .v.ph { color: var(--muted); font-weight: 500; }
.trip-txt .v.strong { font-size: 16.5px; font-weight: 700; color: var(--text); }
.trip-edit { font-size: 12.5px; font-weight: 700; color: var(--gold-text); flex-shrink: 0; }
.trip-body input {
  width: 100%; border: 0; outline: none; background: var(--ink-3); border-radius: 11px;
  padding: 9px 12px; font-size: 15px; font-weight: 600; min-height: 42px; border: 1.5px solid transparent;
}
.trip-body input::placeholder { color: var(--muted); font-weight: 500; }
.trip-body input:focus, .trip-body input.on { border-color: var(--gold); background: #fff; }
.swap-btn {
  position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(17,19,24,.08);
}
.swap-btn svg { width: 18px; height: 18px; }
.swap-btn:active { transform: translateY(-50%) rotate(180deg); transition: transform .2s; }

.area-banner {
  display: flex; gap: 10px; align-items: center; background: var(--gold-soft); border: 1px solid #FDE68A;
  border-radius: 16px; padding: 12px; margin-bottom: 12px;
}
.area-banner .list-ico { width: 36px; height: 36px; background: #fff; color: var(--gold-text); }
.area-banner b { display: block; font-size: 13.5px; line-height: 1.45; }
.area-banner p { margin: 1px 0 0; font-size: 12px; color: var(--muted); }
.area-banner .btn { flex-shrink: 0; }

.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sheet-head h3 { font-size: 17px; }
.sheet-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ink-3); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.sheet-close svg { width: 18px; height: 18px; }

.trip-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 5px; background: var(--ink-3); border-radius: 999px;
  padding: 5px 11px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.meta-chip svg { width: 14px; height: 14px; color: var(--muted); }
.meta-chip.est { background: #FEF3E2; color: var(--warn); }

.issue { text-align: center; padding: 6px 4px 2px; }
.issue .issue-ico { width: 56px; height: 56px; border-radius: 18px; background: #FEECEC; color: var(--bad); display: grid; place-items: center; margin: 4px auto 10px; }
.issue .issue-ico svg { width: 28px; height: 28px; }
.issue h3 { font-size: 17.5px; }
.issue p { margin: 6px 0 14px; color: var(--muted); font-size: 14px; }

.sk { border-radius: 12px; background: linear-gradient(90deg, #EEF0F3 25%, #F7F8FA 50%, #EEF0F3 75%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* شاشة البحث */
.sec-title { font-size: 12px; font-weight: 600; color: var(--muted); margin: 16px 2px 2px; }
.opt-row { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 4px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: start; }
.opt-row .list-ico { width: 38px; height: 38px; }
.opt-row .list-ico.gps { background: #E7F7F0; color: var(--ok); }
.opt-row .list-ico.map { background: var(--gold-soft); color: var(--gold-text); }
.opt-row b { font-size: 15px; }
.search-results .list-ico { width: 38px; height: 38px; }
.search-results .list-ico svg { width: 18px; height: 18px; color: var(--muted); }
.search-results b { font-size: 15px; font-weight: 600; }
.search-empty { text-align: center; color: var(--muted); padding: 28px 10px; font-size: 14px; }
.search-empty svg { width: 40px; height: 40px; opacity: .45; display: block; margin: 0 auto 8px; }
.search-loading { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; padding: 12px 4px; }
.search-loading .spinner { width: 16px; height: 16px; border-width: 2px; }
.pin-err { color: var(--bad); font-size: 13px; font-weight: 600; margin: -6px 0 10px; }
.trip-card.compact::before { top: 31px; bottom: 31px; }
.trip-card.compact .trip-row { min-height: 46px; }
.trip-card.compact .trip-body { padding-top: 5px; padding-bottom: 5px; }
.trip-card.compact .trip-txt .v { font-size: 14.5px; }
.trip-card.compact .swap-btn { width: 32px; height: 32px; }
.cls .grow .tiny { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-pick button { white-space: nowrap; min-width: 0; }
.pay-pick button .tiny { font-size: 11px; color: var(--muted); font-weight: 500; }
.sheet.quote { max-height: 66vh; padding-bottom: 0; }
.sheet-cta {
  position: sticky; bottom: 0; z-index: 3; background: var(--ink-2);
  margin: 10px -16px 0; padding: 10px 16px calc(14px + var(--safe-b));
  box-shadow: 0 -8px 16px rgba(255,255,255,.9);
}
.sheet-cta .btn { justify-content: space-between; }
.sheet-cta .btn:disabled { justify-content: center; }
.sheet-cta .btn .num { font-weight: 700; }

/* ===== السعر التقديري والعداد ===== */
.approx { font-weight: 700; color: var(--muted); margin-inline-end: 2px; }
.est-note { display: flex; gap: 8px; align-items: center; background: var(--ink-3); border-radius: 12px; padding: 8px 12px; font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.est-note svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--gold-text); }
.est-note b { color: var(--text); }
/* عداد السائق الكبير، شكل تكسي */
.taxi-meter { background: #0B0C0F; color: #fff; border-radius: 20px; padding: 14px 16px 12px; position: relative; overflow: hidden; }
.taxi-meter::after { content: ""; position: absolute; inset: 0; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(255,194,51,.35); pointer-events: none; }
.tm-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #A6ABB5; }
.tm-live { display: inline-flex; align-items: center; gap: 6px; color: #FFC233; font-weight: 700; }
.tm-live i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: tmPulse 1.4s infinite; }
.tm-live.off i { background: #6B7280; animation: none; }
@keyframes tmPulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.tm-fare { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 6px 0 4px; direction: ltr; }
.tm-fare b { font-family: var(--font-num); font-size: 52px; font-weight: 600; line-height: 1; color: #FFC233; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.tm-fare span { font-size: 15px; color: #A6ABB5; }
.tm-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 8px; }
.tm-grid div { background: #16181D; border-radius: 12px; padding: 7px 8px; text-align: center; }
.tm-grid small { display: block; font-size: 11px; color: #8B909A; }
.tm-grid b { font-family: var(--font-num); font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; direction: ltr; display: inline-block; }
.tm-note { font-size: 11px; color: #8B909A; text-align: center; margin-top: 8px; }
/* عداد صغير عند الراكب */
.meter-mini { display: flex; align-items: center; gap: 12px; background: #0B0C0F; color: #fff; border-radius: 16px; padding: 10px 14px; margin-bottom: 10px; }
.meter-mini .mm-fare { font-family: var(--font-num); font-size: 28px; font-weight: 600; color: #FFC233; direction: ltr; font-variant-numeric: tabular-nums; }
.meter-mini .mm-side { font-size: 12px; color: #A6ABB5; line-height: 1.4; }
.meter-mini .mm-side b { color: #fff; font-variant-numeric: tabular-nums; }
/* ملخص الأجرة بالنهاية */
.fare-sum { background: var(--ink-3); border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.fare-sum .row { justify-content: space-between; padding: 3px 0; }
.fare-sum .row span { color: var(--muted); }
.pay-banner { border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: 16px; text-align: center; margin-top: 10px; }
.pay-banner.cash { background: var(--gold-soft); color: var(--gold-ink); border: 2px dashed var(--gold); font-size: 18px; }
.pay-banner.wallet { background: #E7F7F0; color: var(--ok); border: 2px dashed #A7E3CC; font-size: 18px; }
.pay-banner small { display: block; font-weight: 500; font-size: 12.5px; opacity: .85; }
/* بطاقة الطلب الجديد عند السائق */
.offer-card .oc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.offer-ring { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.offer-ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.offer-ring circle { fill: none; stroke-width: 6; }
.offer-ring .bg { stroke: var(--ink-3); }
.offer-ring .fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.offer-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.offer-ring.low .fg { stroke: var(--bad); }
.oc-price { font-size: 40px; font-weight: 800; line-height: 1.05; }
.oc-price .approx { font-size: 26px; }
.oc-sub { font-size: 12.5px; color: var(--muted); }
.oc-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.oc-chips .meta-chip.hot { background: #E7F7F0; color: var(--ok); }
.oc-chips .meta-chip.hot svg { color: var(--ok); }
.oc-actions { display: grid; grid-template-columns: 1fr 2.4fr; gap: 10px; margin-top: 12px; }
.oc-actions .btn-gold { min-height: 60px; font-size: 19px; font-weight: 800; border-radius: 18px; }
.oc-actions .btn-ghost { min-height: 60px; border-radius: 18px; }
.search-ring { display: inline-flex; gap: 6px; align-items: center; background: var(--gold-soft); color: var(--gold-text); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; }

/* ===== by Zawdni: الشركة الأم (سطر صغير تحت الشعار) ===== */
.by-zawdni { direction: ltr; unicode-bidi: isolate; display: inline-block; font-size: 11px; font-weight: 400; letter-spacing: .06em; color: var(--muted); opacity: .65; line-height: 1.2; }
.brand .by-zawdni { margin-top: 3px; }
.brand-stack { display: inline-flex; flex-direction: column; line-height: 1.1; }

/* ===== بوابة مكاتب التكسي ===== */
.office-req { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.office-req.new { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,194,51,.25); }
.drv-pick { display: flex; flex-direction: column; gap: 6px; }
.drv-pick button { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); background: #fff; border-radius: 13px; padding: 9px 12px; cursor: pointer; text-align: start; font: inherit; }
.drv-pick button:hover { border-color: var(--gold); }
.drv-pick button .km { margin-inline-start: auto; font-weight: 700; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-dot.free { background: var(--ok); box-shadow: 0 0 0 3px rgba(5,150,105,.15); }
.status-dot.busy { background: var(--gold); box-shadow: 0 0 0 3px rgba(255,194,51,.25); }
.status-dot.off { background: #C4C8D0; }

/* ===== English (ltr) ===== */
[dir=ltr] .i-back { transform: scaleX(-1); }
.lang-btn {
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.lang-btn:hover { border-color: var(--ink); }
[dir=ltr] .trip-txt small, [dir=ltr] .field > span:first-letter { text-transform: capitalize; }
[dir=ltr] .badge::first-letter, [dir=ltr] .chip::first-letter, [dir=ltr] th::first-letter { text-transform: uppercase; }

/* «by Zawdni» تحت شعار الترحيب (اتجاهو ltr، فالجهة بتنحدد من اتجاه الصفحة) */
[dir=rtl] .hero-by { right: 18px; }
[dir=ltr] .hero-by { left: 18px; }

/* ===== لوحة من تحت (الأمان) ===== */
.bs-bg { position: fixed; inset: 0; background: rgba(17,19,24,.4); z-index: 950; animation: fadeIn .2s ease; }
.bs { position: fixed; inset-inline: 0; bottom: 0; z-index: 951; background: #fff; border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(18px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 -12px 40px rgba(0,0,0,.18); animation: bsUp .25s cubic-bezier(.2,.8,.2,1); max-width: 560px; margin: 0 auto; }
.bs-grab { width: 42px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 8px; }
.bs-ico { color: var(--bad); background: #FEECEC; }
.safety-btn { color: var(--bad); }
@keyframes bsUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== البيت والشغل ===== */
.saved-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.saved-card { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 14px;
  padding: 10px 12px; cursor: pointer; text-align: start; min-width: 0; transition: transform .12s, box-shadow .2s; }
.saved-card:active { transform: scale(.98); }
.saved-card:hover { box-shadow: var(--shadow); }
.saved-card b { font-size: 13.5px; display: block; }
.saved-ico { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--gold-soft); color: var(--gold-text); display: grid; place-items: center; }
.saved-ico svg { width: 18px; height: 18px; }
.saved-edit { color: var(--muted); display: grid; place-items: center; padding: 4px; border-radius: 8px; }
.saved-edit svg { width: 16px; height: 16px; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-card.saving .trip-row:first-child { display: none; }
.link-btn { background: none; border: 0; padding: 4px 0 0; color: var(--gold-text); font-weight: 600; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.link-btn svg { width: 14px; height: 14px; }

/* ===== تقييم الراكب (السائق) ===== */
.rate-rider { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.small-stars button { font-size: 30px; }
.rider-score { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; }
.rider-score.new { color: var(--muted); font-weight: 500; }

/* ===== المحادثة داخل الرحلة ===== */
.chat-full { position: fixed; inset: 0; z-index: 960; background: var(--bg); display: flex; flex-direction: column; animation: fadeIn .15s ease; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 12px 10px; background: #fff; border-bottom: 1px solid var(--line); }
.chat-list { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 78%; padding: 9px 13px 6px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; word-wrap: break-word; }
.msg small { display: block; font-size: 10.5px; opacity: .6; margin-top: 2px; }
.msg.me { align-self: flex-start; background: var(--gold); color: var(--gold-ink); border-end-start-radius: 4px; }
.msg.them { align-self: flex-end; background: #fff; border: 1px solid var(--line); border-end-end-radius: 4px; }
.chat-quick { display: flex; gap: 6px; overflow-x: auto; padding: 6px 12px; scrollbar-width: none; }
.chat-quick button { flex-shrink: 0; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.chat-bar { display: flex; gap: 8px; padding: 8px 12px calc(10px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); align-items: center; }
.chat-bar .input { flex: 1; }
.chat-bar .btn { min-height: 46px; padding: 0 16px; }
.has-dot .dot { position: absolute; top: 6px; inset-inline-end: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px #fff; }
.has-dot { position: relative; }
.has-dot .dot[hidden] { display: none; }

/* ===== أكواد الخصم ودعوة صديق ===== */
.btn-ink { background: var(--ink); color: #fff; }
.invite-card { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 12px 14px; border: 1px solid #FDE68A; background: var(--gold-soft); border-radius: 16px; cursor: pointer; font: inherit; color: inherit; }
.invite-card > svg { width: 18px; height: 18px; color: var(--muted); transform: scaleX(-1); }
[dir=ltr] .invite-card > svg { transform: none; }
.invite-hero { text-align: center; padding: 10px 6px 16px; }
.invite-code { display: flex; align-items: center; gap: 10px; justify-content: space-between; border: 1.5px dashed var(--gold); border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; background: #fff; }
.invite-code b { font-size: 24px; letter-spacing: .12em; font-family: var(--font-num); }

/* ===== الغرض المنسي ===== */
.lost-reply { background: #FEF2F2; color: #7F1D1D; padding: 9px 12px; border-radius: 10px; margin-bottom: 6px; }
.lost-reply.ok { background: #E7F7F0; color: #065F46; }

/* ===== خريطة الطلب (السائق) ===== */
.demand-btn.on { background: var(--gold); color: var(--gold-ink); }

/* ===== تقرير الأرباح ===== */
.rep-bars { display: flex; align-items: flex-end; gap: 4px; height: 130px; margin-top: 10px; }
.rep-bars > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.rep-bars i { display: block; width: 100%; max-width: 26px; min-height: 2px; background: var(--gold); border-radius: 6px 6px 2px 2px; }
.rep-bars span { font-size: 10px; color: var(--muted); white-space: nowrap; }

.promo-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: end; padding: 12px; background: var(--bg); border-radius: 14px; }

/* ===== الوقفات والحجز المسبق ===== */
.quote-tools { display: flex; gap: 8px; margin: 10px 0 2px; flex-wrap: wrap; }
.tool-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tool-chip svg { width: 15px; height: 15px; }
.tool-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.trip-mk.stop { width: 18px; height: 18px; border-radius: 50%; background: #F59E0B; color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.trip-row.stop.done .trip-mk.stop { background: var(--ok); }
.trip-row.stop .trip-body { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stop-x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; }
.stop-x svg { width: 15px; height: 15px; }
.place-marker.stop { background: #F59E0B; }

/* ===== شاشة البداية (js/splash.js) ===== */
.splash{position:fixed;inset:0;z-index:9999;background:#0E0F12;color:#fff;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;
  transition:opacity .4s ease,transform .4s ease;touch-action:manipulation;-webkit-user-select:none;user-select:none}
.splash.out{opacity:0;transform:scale(1.04);pointer-events:none}
.sp-canvas{position:absolute;inset:0;cursor:crosshair}
.sp-fade{position:absolute;inset:auto 0 0 0;height:66%;pointer-events:none;background:linear-gradient(to bottom,rgba(14,15,18,0),rgba(14,15,18,.86) 38%,#0E0F12 70%)}
.sp-top{position:absolute;top:calc(env(safe-area-inset-top,0px) + 14px);inset-inline-end:16px;z-index:2}
.sp-top .lang-btn{background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:7px 14px;font:inherit;font-size:13px;font-weight:600;backdrop-filter:blur(6px)}
.sp-body{position:relative;z-index:1;padding:0 24px calc(env(safe-area-inset-bottom,0px) + 26px);display:flex;flex-direction:column;align-items:center;text-align:center;pointer-events:none}
.sp-body>*{pointer-events:auto;opacity:0;transform:translateY(14px);animation:spUp .6s cubic-bezier(.2,.8,.2,1) forwards}
.sp-logo{width:84px;height:84px;border-radius:24px;background:#fff;display:grid;place-items:center;box-shadow:0 0 0 6px rgba(255,194,51,.14),0 18px 40px rgba(0,0,0,.5);animation-delay:.1s}
.sp-logo img{width:70px;height:70px;object-fit:contain}
.sp-logo.beat{animation:spUp .6s forwards,spBeat .7s ease}
.sp-title{margin:14px 0 0;font-size:36px;font-weight:700;letter-spacing:-.5px;animation-delay:.2s}
.sp-by{font-size:12px;color:#FFC233;font-weight:600;letter-spacing:.4px;margin-top:2px;animation-delay:.25s}
.sp-sub{margin:10px 0 0;max-width:330px;color:rgba(255,255,255,.72);font-size:15px;line-height:1.6;animation-delay:.32s}
.sp-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:16px 0 18px;animation-delay:.42s}
.sp-chips span{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);font-size:13px;font-weight:600;color:#fff}
.sp-chips svg{width:16px;height:16px;color:#FFC233}
.sp-go{max-width:360px;animation-delay:.52s;font-size:17px;padding:15px}
.sp-hint{margin-top:12px;font-size:12px;color:rgba(255,255,255,.5);animation-delay:.9s;transition:opacity .3s}
.sp-hint.off{opacity:0!important}
@keyframes spUp{to{opacity:1;transform:none}}
@keyframes spBeat{0%{transform:scale(1)}30%{transform:scale(1.12)}55%{transform:scale(.97)}100%{transform:scale(1)}}
@media (max-height:620px){.sp-sub{display:none}.sp-chips{margin:12px 0}}
@media (prefers-reduced-motion:reduce){.sp-body>*{animation:none;opacity:1;transform:none}.splash{transition:none}}

/* رقم الموبايل مع قائمة الدول (ملف 25) */
.phone-field { display: flex; gap: 8px; direction: ltr; }
.phone-field select.cc { flex: 0 0 auto; width: auto; max-width: 48%; padding-inline: 10px; font-size: 15px; }
.phone-field input { flex: 1; min-width: 0; }

/* الضيف: سبب طلب الدخول بشاشة الرقم */
.login-why { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-text); font-weight: 600; font-size: 14px; }

/* محفظة السائق والمكتب (js/acct-wallet.js) */
.acct-card{border-radius:20px;padding:18px;color:#fff;background:linear-gradient(140deg,#14532d,#0E0F12);box-shadow:0 10px 26px rgba(14,15,18,.18)}
.acct-card.low{background:linear-gradient(140deg,#92400e,#0E0F12)}
.acct-card.debt{background:linear-gradient(140deg,#7f1d1d,#0E0F12)}
.acct-bal{font-size:32px;font-weight:700;margin:4px 0 2px;font-variant-numeric:tabular-nums}
.acct-ico{background:rgba(255,255,255,.12)!important;color:#fff!important}
.acct-ghost{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.22)}
.acct-sheet{position:fixed;inset:0;z-index:950;background:var(--bg,#F5F6F8);overflow-y:auto}
.acct-sheet-in{max-width:560px;margin:0 auto;padding:calc(16px + var(--safe-t,0px)) 14px 30px}

/* كود خصم الرحلة */
.promo-row{display:flex;align-items:center;gap:8px;margin-top:10px}
.promo-on{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;flex:1;font-size:13px;font-weight:600;color:#0F7A4D;background:#E7F7F0;border:1px dashed #6FCF9F;border-radius:12px;padding:8px 12px}

/* CRM: شو الجديد */
.news-card{border-color:#FDE68A;background:linear-gradient(180deg,#FFFBEB,#fff)}
.news-item{border-top:1px solid var(--line);padding-top:10px;margin-top:10px}
.news-item ul{margin:6px 0 8px;padding-inline-start:20px;font-size:13.5px;line-height:1.7}

/* الورقة السفلية بتنسحب (js/sheet-drag.js) */
#sheet { transition: transform .28s cubic-bezier(.2,.8,.2,1); }
#sheet::before { width: 46px; height: 5px; cursor: grab; }
#sheet.min { transform: translateY(calc(100% - 86px)); overflow: hidden; }
#sheet.min::after { content: ""; position: absolute; inset: 0; }
.here-dot{display:block;width:18px;height:18px;border-radius:50%;background:#2F7BF6;border:3px solid #fff;box-shadow:0 0 0 6px rgba(47,123,246,.22),0 2px 6px rgba(0,0,0,.25)}

/* ملف القيادة (js/rider-file.js) */
.rf-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rf-tile{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;padding:10px;border:1.5px dashed var(--line);border-radius:16px;background:var(--card);cursor:pointer}
.rf-tile.done{border-style:solid;border-color:#A7F3D0;background:#F0FBF6}
.rf-ph{width:100%;aspect-ratio:16/10;border-radius:10px;background:var(--ink-3);display:grid;place-items:center;overflow:hidden}
.rf-ph img{width:100%;height:100%;object-fit:cover}
.rf-self{grid-column:1/-1}
.rf-self .rf-ph{width:110px;aspect-ratio:1;border-radius:50%}

/* السائق الجاي لعندك */
.drv-face{width:60px;height:60px;cursor:pointer;object-fit:cover}
.check-car{display:flex;gap:8px;align-items:flex-start;margin-top:12px;padding:10px 12px;border-radius:12px;background:#EEF4FF;color:#1E3A8A;font-size:13px;line-height:1.5}
.check-car svg{flex:none;margin-top:2px}
.photo-zoom{position:fixed;inset:0;z-index:2000;background:rgba(10,11,14,.88);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#fff;padding:24px;text-align:center}
.photo-zoom img{width:min(78vw,340px);aspect-ratio:1;object-fit:cover;border-radius:24px;border:3px solid #fff}
.photo-zoom b{font-size:20px}.photo-zoom small{opacity:.8}

/* كاميرا الصورة الشخصية بإطار الوجه (js/face-capture.js) */
.fc-wrap{position:fixed;inset:0;z-index:3000;background:#0B0C0F;color:#fff;display:flex;flex-direction:column}
.fc-top{display:flex;align-items:center;justify-content:space-between;padding:calc(12px + var(--safe-t)) 16px 10px}
.fc-top b{font-size:17px}.fc-top span{width:40px}
.fc-x{width:40px;height:40px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;font-size:18px;cursor:pointer}
.fc-stage{position:relative;flex:1;overflow:hidden;background:#000}
.fc-stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.fc-oval{z-index:2}.fc-msg{z-index:3}
.fc-oval{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);width:min(72vw,46vh,360px);aspect-ratio:3/4;border-radius:50%;
  border:3px dashed rgba(255,255,255,.9);transition:border-color .2s}
.fc-dim{position:absolute;inset:0;z-index:1;pointer-events:none}
.fc-oval.ok{border:4px solid #22C55E}
.fc-msg{position:absolute;inset-inline:16px;bottom:18px;text-align:center;font-weight:700;font-size:16px;padding:10px 14px;border-radius:14px;background:rgba(0,0,0,.55);transition:background .2s}
.fc-wrap.good .fc-msg{background:#15803D}
.fc-bot{display:flex;flex-direction:column;align-items:center;gap:12px;padding:14px 16px calc(16px + var(--safe-b))}
.fc-tips{font-size:12.5px;opacity:.75;text-align:center}
.fc-shot{width:74px;height:74px;border-radius:50%;border:5px solid #fff;background:#22C55E;cursor:pointer;transition:opacity .2s,transform .1s}
.fc-shot:disabled{background:#555;opacity:.55;cursor:not-allowed}
.fc-shot:not(:disabled):active{transform:scale(.94)}
.fc-retry{display:none;font:inherit;font-size:15px;border:0;background:#FFC233;color:#1A1300;padding:12px 22px;border-radius:14px;font-weight:700;cursor:pointer}
.fc-wrap.no-cam .fc-shot{display:none}
.fc-wrap.no-cam .fc-retry{display:block}
.fc-wrap.live-step .fc-msg{background:#1D4ED8}
.fc-wrap.live-step .fc-oval{border:4px solid #60A5FA}
.fc-wrap.counting .fc-oval{animation:fcPulse 1s ease-in-out}
@keyframes fcPulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.7)}100%{box-shadow:0 0 0 18px rgba(34,197,94,0)}}

/* أسباب التقييم */
.rate-tags{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:12px}
.rate-tags button{font:inherit;font-size:13px;padding:7px 12px;border-radius:999px;border:1px solid var(--line);background:var(--card);cursor:pointer}
.rate-tags button.on{background:var(--gold-soft);border-color:var(--gold);font-weight:700}
#pay-pick button:disabled{opacity:.45}

/* خطوات تفعيل السائق الجديد */
.ck-bar{height:8px;border-radius:99px;background:var(--ink-3);overflow:hidden}
.ck-bar i{display:block;height:100%;background:linear-gradient(90deg,#22C55E,#16A34A);border-radius:99px;transition:width .4s}
.ck-step{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.ck-dot{width:26px;height:26px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;flex:none;color:#fff}
.ck-dot svg{width:15px;height:15px}
.ck-step.done .ck-dot{background:#22C55E;border-color:#22C55E}
.ck-step.done b{color:var(--muted)}

/* ===== تطبيق السائق: مظهر غامق وواجهة الكابتن (js/driver-ui.js) ===== */
:root[data-theme="dark"] {
  --ink-2: #17181C; --ink-3: #24262C; --line: #2E3138; --muted: #9AA0AA; --text: #F2F3F5;
  --card: #1B1D22; --bg: #0F1013; --gold-text: #FFC233; --gold-soft: #3A2F12;
  --shadow: 0 8px 28px rgba(0,0,0,.45); color-scheme: dark;
}
:root[data-theme="dark"] .drv-map .leaflet-tile-pane { filter: invert(.92) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.7); }
:root[data-theme="dark"] .drv-map { background: #15171b; }
:root[data-theme="dark"] .icon-btn { background: #1F2228; color: #F2F3F5; }
:root[data-theme="dark"] .cls-pick button, :root[data-theme="dark"] .input { background: var(--ink-3); }
:root[data-theme="dark"] img[style*="multiply"] { mix-blend-mode: normal !important; }
.drv-top { position: absolute; z-index: 460; top: calc(10px + var(--safe-t)); inset-inline: 12px; display: flex; gap: 10px; align-items: stretch; }
.today-card { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; border-radius: 16px; padding: 10px 14px; background: var(--ink-2); color: var(--text); box-shadow: var(--shadow); font: inherit; cursor: pointer; text-align: start; }
.today-card small { display: block; font-size: 12px; color: var(--muted); }
.today-card .tc-sub { font-size: 12px; color: var(--muted); }
.today-card .tc-l small { font-size: 14px; color: var(--text); font-weight: 700; }
.today-card .tc-r { text-align: end; }
.today-card .tc-r b { font-size: 22px; color: #3B82F6; font-weight: 800; display: block; line-height: 1.1; }
:root[data-theme="dark"] .today-card .tc-r b { color: #60A5FA; }
.home-banner { position: absolute; z-index: 455; top: calc(84px + var(--safe-t)); inset-inline: 12px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: #1D4ED8; color: #fff; font-size: 13px; }
.home-banner svg { width: 18px; height: 18px; }
.home-banner button { border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.icon-btn.on { background: #2563EB !important; color: #fff !important; }
.online-bar { width: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 60px; border: 0; border-radius: 18px; background: var(--ink-3); color: var(--muted); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .25s; }
.online-bar .ob-knob { position: relative; width: 58px; height: 32px; border-radius: 16px; background: rgba(127,127,127,.35); }
.online-bar .ob-knob::after { content: ""; position: absolute; top: 4px; inset-inline-start: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: inset-inline-start .25s; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.online-bar.on { background: linear-gradient(135deg, #16A34A, #15803D); color: rgba(255,255,255,.65); }
.online-bar.on .ob-knob { background: rgba(255,255,255,.3); }
.online-bar.on .ob-knob::after { inset-inline-start: 30px; }
.online-bar span:first-child { color: var(--text); }
.online-bar.on span:first-child { color: rgba(255,255,255,.6); }
.online-bar.on span:last-child { color: #fff; }
.drv-menu { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 901; width: min(320px, 86vw); background: var(--ink-2); color: var(--text); display: flex; flex-direction: column; gap: 2px; padding: calc(20px + var(--safe-t)) 14px calc(16px + var(--safe-b)); overflow-y: auto; box-shadow: 0 0 40px rgba(0,0,0,.35); animation: drvIn .22s ease; }
@keyframes drvIn { from { transform: translateX(100%); } to { transform: none; } }
[dir=ltr] .drv-menu { animation-name: drvInL; } @keyframes drvInL { from { transform: translateX(-100%); } to { transform: none; } }
.drawer-bg { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.45); }
.dm-me { display: flex; align-items: center; gap: 12px; border: 0; background: var(--ink-3); color: inherit; border-radius: 16px; padding: 12px; margin-bottom: 10px; font: inherit; cursor: pointer; text-align: start; }
.dm-item { display: flex; align-items: center; gap: 12px; border: 0; background: none; color: inherit; padding: 10px 6px; border-radius: 12px; font: inherit; cursor: pointer; text-align: start; }
.dm-item:hover { background: var(--ink-3); }
svg.flip { transform: scaleX(-1); opacity: .5; }
[dir=ltr] svg.flip { transform: none; }
.pg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.pg-head h2 { font-size: 21px; }
.pg-head .icon-btn { box-shadow: none; }
.set-sec { font-size: 13px; color: var(--muted); font-weight: 600; margin: 18px 4px 8px; }
.set-row { gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-btn { width: 100%; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: start; }
button.card.set-btn { background: var(--card); border: 1px solid var(--line); }
.day-h { font-weight: 700; margin: 16px 2px 6px; }
.ride-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.rr-time { font-size: 12px; color: var(--muted); width: 58px; white-space: nowrap; flex: none; padding-top: 2px; }
.ab { display: flex; gap: 8px; align-items: center; font-size: 13.5px; min-width: 0; }
.ab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; flex: none; }
.ab i.a { background: var(--text); color: var(--bg); } .ab i.b { background: #3B82F6; }
.rr-fare { flex: none; text-align: end; }
.dui-panel { position: fixed; z-index: 700; inset-inline: 0; bottom: 0; background: var(--ink-2); color: var(--text); border-radius: 24px 24px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); box-shadow: 0 -10px 36px rgba(0,0,0,.25); animation: up .25s ease; }
.rd-pm { width: 52px; height: 52px; font-size: 26px; font-weight: 700; }
/* المظهر الغامق: العناصر اللي خلفيتها أبيض ثابت */
:root[data-theme="dark"] .seg, :root[data-theme="dark"] .btn-ghost, :root[data-theme="dark"] .wallet-chip, :root[data-theme="dark"] .pay-pick button,
:root[data-theme="dark"] .tip-box, :root[data-theme="dark"] .tip-pick button, :root[data-theme="dark"] .office-req, :root[data-theme="dark"] .drv-pick button,
:root[data-theme="dark"] .bs, :root[data-theme="dark"] .saved-card, :root[data-theme="dark"] .chat-head, :root[data-theme="dark"] .services button { background: var(--card); color: var(--text); }
:root[data-theme="dark"] .seg button.on { background: var(--gold); color: var(--gold-ink); }
:root[data-theme="dark"] .chip { background: var(--card); color: var(--text); }
:root[data-theme="dark"] .plate { background: #fff; color: #111; }
:root[data-theme="dark"] .trip-card, :root[data-theme="dark"] .swap-btn, :root[data-theme="dark"] .trip-body input:focus, :root[data-theme="dark"] .trip-body input.on { background: var(--card); color: var(--text); }
:root[data-theme="dark"] .trip-card b, :root[data-theme="dark"] .trip-card .place { color: var(--text); }
:root[data-theme="dark"] .trip-body input, :root[data-theme="dark"] .trip-card input { color: var(--text); background: transparent; }
:root[data-theme="dark"] .trip-txt .v { color: var(--text); }

/* ===== المسدسات والتحديات (الملف 33) ===== */
.drv-stack { position: absolute; z-index: 455; top: calc(84px + var(--safe-t)); inset-inline-start: 66px; inset-inline-end: 12px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.drv-stack > * { pointer-events: auto; }
.drv-stack .home-banner { position: static; }
.home-banner.push-nudge { background: #B45309; }
.quest-strip { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 14px; padding: 9px 12px; background: var(--ink-2); color: var(--text); box-shadow: var(--shadow); font: inherit; cursor: pointer; text-align: start; }
.quest-strip .qs-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #FEE2E2; color: #DC2626; flex: none; }
.quest-strip .qs-ico svg { width: 18px; height: 18px; }
.quest-strip .qs-t { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.quest-strip .qs-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quest-strip .qs-r { color: var(--ok); font-size: 14px; white-space: nowrap; }
.qbar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 6px; }
.qbar.big { height: 10px; margin: 10px 0 6px; }
.qbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #F59E0B, #DC2626); transition: width .6s; }
.quest-card { margin-bottom: 10px; }
.quest-card.won .qbar i { background: var(--ok); }
.hex-boost { display: inline-block; transform: translateX(-0%); background: #DC2626; color: #fff; font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.3); white-space: nowrap; text-align: center; min-width: 60px; }
.oc-chips .meta-chip.boost { background: #FEE2E2; color: #B91C1C; }
.oc-chips .meta-chip.boost svg { color: #DC2626; }
.won-pop { position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 20px; animation: fadeIn .2s; }
.won-card { width: min(340px, 100%); background: var(--bg); color: var(--text); border-radius: 22px; padding: 24px 20px; text-align: center; animation: wonIn .45s cubic-bezier(.2,1.4,.4,1); }
.won-card h2 { margin: 6px 0 4px; font-size: 24px; }
.won-card p { margin: 0 0 10px; }
.won-emoji { font-size: 54px; }
.won-amt { display: block; font-size: 32px; color: var(--ok); }
@keyframes wonIn { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
:root[data-theme="dark"] .quest-strip .qs-ico { background: rgba(220,38,38,.18); }
:root[data-theme="dark"] .oc-chips .meta-chip.boost { background: rgba(220,38,38,.2); color: #FCA5A5; }

/* ===== البلد (js/country.js) ===== */
.cty-pick { position: fixed; inset: 0; z-index: 10000; background: rgba(14,15,18,.72); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(4px); }
.cty-card { width: min(380px, 100%); background: var(--bg); color: var(--text); border-radius: 24px; padding: 24px 18px 18px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.cty-logo { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 10px; }
.cty-card h2 { margin: 0 0 4px; font-size: 22px; }
.cty-card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.cty-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; margin-top: 10px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card, #fff); color: inherit; font: inherit; cursor: pointer; text-align: start; }
.cty-opt.on, .cty-opt:hover { border-color: var(--gold); background: var(--gold-soft); }
.cty-opt b { display: block; font-size: 17px; }
.cty-opt small { color: var(--muted); font-size: 12.5px; }
.cty-flag { font-size: 30px; line-height: 1; }
.cty-x { margin-top: 12px; background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 8px; }
.cty-btn { border: 1px solid var(--line); background: var(--card, #fff); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }

/* ===== النقل الجماعي (js/pool.js) ===== */
.pool-page { position: fixed; inset: 0; z-index: 850; background: var(--bg); overflow-y: auto; padding-bottom: calc(30px + var(--safe-b, 0px)); }
.pool-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: calc(12px + var(--safe-t)) 14px 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.pool-head h2 { margin: 0; font-size: 19px; }
.pool-head .icon-btn { box-shadow: none; }
.pool-body { padding: 14px 16px; max-width: 640px; margin: 0 auto; }
.pool-card { margin-bottom: 10px; }
.pool-way { display: flex; flex-direction: column; gap: 6px; }
.pool-way > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pool-way b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pool-way i { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: #059669; }
.pool-way i.b { background: var(--ink, #0E0F12); color: var(--gold, #FFC233); }
.pool-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pool-chips span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; background: var(--ink-3, #F2F3F6); border-radius: 9px; padding: 3px 9px; }
.pool-sub { border: 1px solid var(--line); border-radius: 18px; padding: 12px; margin-bottom: 12px; background: var(--card, #fff); }
.pool-sub .pool-card { box-shadow: none; border: 0; padding: 0; margin: 0; }
.pool-sub.old { opacity: .6; }
.pool-rider { gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.pool-field { width: 100%; background: none; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.pool-days { display: flex; flex-wrap: wrap; gap: 6px; }
.pool-days button { flex: 1 0 13%; min-width: 46px; border: 1.5px solid var(--line); background: none; color: inherit; border-radius: 10px; padding: 8px 2px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pool-days button.on { background: var(--gold, #FFC233); color: #1A1300; border-color: transparent; }
.pool-pick { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; }
.pool-pick-card { width: min(560px, 100%); max-height: 88vh; overflow-y: auto; background: var(--bg); color: var(--text); border-radius: 22px 22px 0 0; padding: 16px 16px calc(18px + var(--safe-b, 0px)); display: flex; flex-direction: column; gap: 10px; }
.pool-pick-card .opt-row { width: 100%; }
:root[data-theme="dark"] .cty-opt, :root[data-theme="dark"] .pool-sub, :root[data-theme="dark"] .cty-btn { background: var(--ink-2); }
:root[data-theme="dark"] .pool-chips span { background: rgba(255,255,255,.07); }
.chip-x { border: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; padding: 0 2px; margin-inline-start: 4px; opacity: .6; }
.chip-x:hover { opacity: 1; }

/* ===== الشاشة الرئيسية بنسخة الإمارات: الاشتراك الشهري أولاً ===== */
.pool-hero { background: linear-gradient(160deg, #1A1C22, #0E0F12); color: #fff; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.pool-hero-t b { display: block; font-size: 19px; }
.pool-hero-t span { display: block; font-size: 13px; color: #C9CDD4; margin-bottom: 4px; }
.pool-hero-f { display: flex; align-items: center; gap: 10px; width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 14px; padding: 10px 12px; font: inherit; text-align: start; cursor: pointer; }
.pool-hero-f small { display: block; color: #A6ABB5; font-size: 11.5px; }
.pool-hero-f b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pool-hero-f i { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; background: #059669; color: #fff; }
.pool-hero-f i.b { background: var(--gold, #FFC233); color: #1A1300; }
.pool-hero .btn { margin-top: 4px; }
.pool-mini-way { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pool-mini-way b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.pool-mini-way span { color: var(--muted); flex: none; }
.pool-near, .pool-mine { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 8px; font: inherit; color: inherit; cursor: pointer; }
.pool-near-p { flex: none; text-align: end; }
.pool-near-p b { display: block; font-size: 16px; white-space: nowrap; }
.pool-near-p small { color: var(--muted); font-size: 11.5px; }
.pool-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--gold-soft, #FFF6DD); color: var(--gold-text, #9A6700); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; margin-bottom: 10px; }
.pool-back svg { width: 16px; height: 16px; }
/* باص أو سيارة */
.pool-price { background: var(--gold-soft, #FFF6DD); border-radius: 14px; padding: 10px 12px; }
:root[data-theme="dark"] .pool-price { background: rgba(255,194,51,.12); }

/* ===== «اسأل وصلني» المساعد الذكي (js/assistant.js) ===== */
/* النافذة العائمة: من تحت عالموبايل، وبالزاوية عالشاشات الكبيرة */
.as-win { position: fixed; z-index: 980; inset-inline: 10px; bottom: calc(10px + var(--safe-b)); height: min(74vh, 620px); display: flex; flex-direction: column;
  background: var(--bg); border-radius: 22px; overflow: hidden; box-shadow: 0 18px 50px rgba(17,19,24,.28), 0 0 0 1px var(--line); animation: asUp .22s ease; }
.as-win.hidden { display: none; }
@keyframes asUp { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@media (min-width: 700px) { .as-win { inset-inline: auto 20px; bottom: 20px; width: 380px; } }
.as-head { padding: 10px 12px !important; }
.as-hbtn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ink-3); color: var(--text); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.as-win .chat-bar { padding-bottom: 10px; }
/* زر المساعد العائم: مربع مدوّر غامق، أيقونة ذهبية، نقطة «متصل»، وتلميح أول مرات */
.as-fab { position: relative; align-self: center; width: 48px; height: 48px; border-radius: 17px; border: 1px solid rgba(255,194,51,.38); cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(150deg, #2A2D35 0%, #0E0F12 70%); color: var(--gold);
  box-shadow: 0 10px 24px rgba(14,15,18,.32), inset 0 1px 0 rgba(255,255,255,.10); transition: transform .15s, background .2s, color .2s; }
.as-fab svg { width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(255,194,51,.35)); }
.as-fab:active { transform: scale(.94); }
.as-fab.as-open { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.as-fab.as-open svg { filter: none; }
.as-live { position: absolute; top: -3px; inset-inline-end: -3px; width: 12px; height: 12px; border-radius: 50%; background: #22C55E; border: 2px solid #fff; }
.as-live::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #22C55E; animation: asPing 2s ease-out infinite; }
@keyframes asPing { from { transform: scale(1); opacity: .8; } to { transform: scale(2.2); opacity: 0; } }
.as-fab.as-open .as-live { display: none; }
.as-tip { position: absolute; top: 50%; inset-inline-start: calc(100% + 10px); transform: translateY(-50%); white-space: nowrap; text-align: start;
  background: #0E0F12; color: #fff; border-radius: 12px; padding: 7px 12px; box-shadow: 0 8px 22px rgba(0,0,0,.25); pointer-events: none; animation: asTip .3s ease; }
.as-tip b { display: block; font-size: 13px; color: var(--gold); }
.as-tip small { display: block; font-size: 11px; opacity: .8; }
.as-tip::before { content: ""; position: absolute; top: 50%; inset-inline-start: -5px; width: 10px; height: 10px; background: #0E0F12; transform: translateY(-50%) rotate(45deg); }
.as-tip.out { opacity: 0; transition: opacity .35s; }
@keyframes asTip { from { opacity: 0; transform: translate(6px, -50%); } to { opacity: 1; transform: translateY(-50%); } }
[dir="ltr"] .as-tip { animation-name: asTipL; }
@keyframes asTipL { from { opacity: 0; transform: translate(-6px, -50%); } to { opacity: 1; transform: translateY(-50%); } }
.as-ava { width: 38px; height: 38px; border-radius: 13px; background: linear-gradient(150deg, #2A2D35, #0E0F12); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.as-ava svg { width: 22px; height: 22px; }
.as-win .msg.them { max-width: 88%; }
.as-typing { display: flex; gap: 4px; padding: 13px 14px !important; }
.as-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .4; animation: asDot 1s infinite; }
.as-typing i:nth-child(2) { animation-delay: .15s; } .as-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes asDot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: .9; transform: translateY(-3px); } }
.as-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.as-acts:empty { display: none; }
.as-act { border: 1px solid var(--line); background: var(--ink-3); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.as-act svg { width: 15px; height: 15px; }
.as-team { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.as-fb { display: inline-flex; gap: 4px; }
.as-fb button { border: 1px solid var(--line); background: none; border-radius: 999px; width: 34px; height: 30px; cursor: pointer; font-size: 14px; }
.as-sugg { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.as-sugg button { text-align: start; border: 1px solid var(--line); background: var(--ink-3); color: var(--text); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13.5px; cursor: pointer; }
.as-more { margin-top: 8px; min-height: 70px; width: 100%; }
.as-entry { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-radius: var(--radius); padding: 14px; background: linear-gradient(135deg, var(--gold-soft), var(--card)); color: var(--text); font: inherit; text-align: start; cursor: pointer; box-shadow: var(--shadow); }
.as-entry .as-ava { width: 46px; height: 46px; border-radius: 15px; }
.as-entry .as-ava svg { width: 26px; height: 26px; }
:root[data-theme="dark"] .as-win .chat-bar, :root[data-theme="dark"] .as-win .chat-quick button, :root[data-theme="dark"] .as-win .chat-head { background: var(--card); color: var(--text); }


/* ===== المركبات المرسومة (pool.js: WPool.art) بأضواء بتومض متل شارة التكسي ===== */
.veh { display: block; width: 100%; height: auto; overflow: visible; }
[dir="rtl"] .veh { transform: scaleX(-1); }
.veh .v-sign, .veh .v-sign-halo { animation: vSign 1.5s ease-in-out infinite; }
.veh .v-lamp, .veh .v-halo:not(.v-sign-halo), .veh .v-beam { animation: vLamp 2.4s ease-in-out infinite; }
@keyframes vSign { 0%, 48% { opacity: 1; } 52%, 96% { opacity: .22; } 100% { opacity: 1; } }
@keyframes vLamp { 0%, 100% { opacity: .95; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .veh * { animation: none !important; } }

/* كرتين الاختيار: باص أو سيارة */
.pool-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.pool-kind { position: relative; display: flex; flex-direction: column; padding: 0; border-radius: 20px; overflow: hidden; border: 1.5px solid var(--line);
  background: var(--card); color: inherit; font: inherit; text-align: start; cursor: pointer; box-shadow: 0 4px 14px rgba(17,19,24,.06); transition: border-color .2s, box-shadow .2s, transform .15s; }
.pool-kind:active { transform: scale(.98); }
.pool-kind .pk-art { display: block; padding: 14px 12px 6px; background: radial-gradient(120% 90% at 50% 0%, #2A2D35 0%, #0E0F12 75%); }
.pool-kind .pk-art .veh { max-height: 62px; transition: transform .35s ease; }
.pool-kind:hover .pk-art .veh { transform: translateX(3px); }
[dir="rtl"] .pool-kind:hover .pk-art .veh { transform: scaleX(-1) translateX(3px); }
.pool-kind .pk-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.pool-kind .pk-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pool-kind b { font-size: 16px; }
.pool-kind small { color: var(--muted); font-size: 12px; }
.pool-kind .pk-tag { font-size: 10.5px; font-weight: 700; color: var(--gold-ink); background: var(--gold); border-radius: 999px; padding: 2px 8px; }
.pool-kind .pk-foot { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.pool-kind .pk-p { font-size: 12.5px; color: var(--muted); }
.pool-kind .pk-p b { font-size: 15px; color: var(--text); }
.pool-kind .pk-n { font-size: 11px; color: var(--muted); background: var(--ink-3); border-radius: 999px; padding: 2px 8px; }
.pool-kind.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,194,51,.28), 0 8px 22px rgba(17,19,24,.10); }
.pool-kind.on::after { content: ""; position: absolute; top: 10px; inset-inline-end: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1300' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }
.pool-kind:not(.on) .veh .v-sign, .pool-kind:not(.on) .veh .v-sign-halo { animation-duration: 2.4s; }

/* اختيار المركبة بفورم السائق */
.veh-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.veh-pick button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px 8px; border-radius: 16px; border: 1.5px solid var(--line);
  background: radial-gradient(120% 90% at 50% 0%, #2A2D35 0%, #0E0F12 80%); color: #fff; font: inherit; cursor: pointer; }
.veh-pick button .veh { max-height: 40px; }
.veh-pick button b { font-size: 13px; }
.veh-pick button.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,194,51,.3); }
.veh-pick button.on b { color: var(--gold); }

/* رسمة صغيرة بزاوية كرت الخط */
.pool-card { position: relative; }
.pool-card-art { position: absolute; top: 12px; inset-inline-end: 12px; width: 72px; padding: 6px 6px 2px; border-radius: 12px; background: radial-gradient(120% 90% at 50% 0%, #2A2D35 0%, #0E0F12 80%); }
.pool-card .pool-way { padding-inline-end: 84px; }

/* =====================================================================
   تصميم 2 (18 تشرين الأول): شكل موحّد «غامق وذهبي» لكل التطبيق.
   طبقة فوق القواعد القديمة: أزرار وحقول وكروت أنعم، بلاطات خدمات غامقة،
   قائمة مقسّمة لأقسام. الألوان من نفس المتغيرات، فالوضع الليلي بيضل شغّال.
   ===================================================================== */
:root {
  --shadow-sm: 0 1px 2px rgba(17,19,24,.05), 0 2px 8px rgba(17,19,24,.05);
  --shadow: 0 2px 6px rgba(17,19,24,.06), 0 10px 28px rgba(17,19,24,.09);
  --gold-grad: linear-gradient(180deg, #FFD15C 0%, #FFC233 55%, #F5B300 100%);
  --ink-grad: radial-gradient(120% 95% at 50% 0%, #2C2F37 0%, #0E0F12 78%);
}
::selection { background: rgba(255,194,51,.35); }
body { letter-spacing: -.005em; }
h2 { letter-spacing: -.01em; }

/* أزرار */
.btn { border-radius: 15px; font-weight: 700; transition: transform .12s ease, box-shadow .2s, filter .15s, background .15s; }
.btn-gold { background: var(--gold-grad); color: var(--gold-ink); box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 6px 16px rgba(245,179,0,.28); }
.btn-gold:hover { filter: brightness(1.03); box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 8px 22px rgba(245,179,0,.34); }
.btn-gold:disabled { box-shadow: none; }
.btn-ghost { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn:focus-visible, .icon-btn:focus-visible, .input:focus-visible { outline: 3px solid rgba(255,194,51,.45); outline-offset: 2px; }
.icon-btn { border-radius: 15px; box-shadow: var(--shadow); transition: transform .12s; }
.icon-btn:active { transform: scale(.94); }

/* حقول */
.input, select.input, textarea.input { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255,194,51,.18); }
.input::placeholder { color: #A0A6B0; }
.otp input { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; }
.otp input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255,194,51,.18); }

/* كروت وشيبس */
.card { border-color: rgba(17,19,24,.07); box-shadow: var(--shadow-sm); }
.chip { box-shadow: var(--shadow); border-color: rgba(17,19,24,.06); font-weight: 700; }
.badge { font-weight: 700; letter-spacing: .01em; }
.sheet { box-shadow: 0 -2px 6px rgba(17,19,24,.04), 0 -16px 40px rgba(17,19,24,.12); }
.sheet::before { width: 38px; height: 4.5px; background: #D9DCE1; }

/* بلاطات الخدمات: غامقة برسمة أو أيقونة ذهبية */
.services { gap: 9px; }
.services button { border: 1px solid rgba(17,19,24,.07); background: var(--card); border-radius: 18px; padding: 6px 6px 10px; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .2s; }
.services button:hover { box-shadow: var(--shadow); }
.services .svc-ico { position: relative; height: 52px; background: var(--ink-grad); color: var(--gold); border-radius: 13px; margin-bottom: 6px; overflow: visible; }
.services .svc-ico svg { width: 25px; height: 25px; filter: drop-shadow(0 0 6px rgba(255,194,51,.28)); }
.services .svc-ico .veh { width: 82%; max-width: 74px; height: auto; filter: none; }
.services .svc-badge { position: absolute; bottom: -6px; inset-inline-end: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.services .svc-badge svg { width: 12px; height: 12px; filter: none; }
.services b { font-size: 13px; font-weight: 700; }

/* القائمة الجانبية: أقسام بعناوين وصفوف مرتبة */
.dr-sec { margin-top: 12px; }
.dr-sec-t { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 0 6px 6px; letter-spacing: .02em; }
.dr-box { background: var(--card); border: 1px solid rgba(17,19,24,.07); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.dr-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; text-decoration: none; }
.dr-item:last-child { border-bottom: 0; }
.dr-item:active { background: var(--ink-3); }
.dr-item b { font-size: 14.5px; font-weight: 600; display: block; }
.dr-item small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.dr-ico { width: 36px; height: 36px; border-radius: 11px; background: var(--ink-grad); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.dr-ico svg { width: 18px; height: 18px; }
.dr-chev { color: #B8BDC5; display: grid; place-items: center; }
.dr-chev svg { width: 16px; height: 16px; transform: scaleX(-1); }
[dir="ltr"] .dr-chev svg { transform: none; }
.dr-val { font-size: 12.5px; font-weight: 700; color: var(--gold-text); background: var(--gold-soft); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.drawer { background: var(--bg) !important; }
.as-entry { box-shadow: var(--shadow-sm); border: 1px solid rgba(255,194,51,.35); }

/* الوضع الليلي */
:root[data-theme="dark"] { --shadow-sm: 0 1px 2px rgba(0,0,0,.3); }
:root[data-theme="dark"] .input, :root[data-theme="dark"] .otp input { background: var(--ink-3); }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .dr-box, :root[data-theme="dark"] .services button { border-color: var(--line); }

/* أيقونات القوائم بكل الشاشات: بلاطة غامقة وأيقونة ذهبية (متل القائمة) */
.list-ico { background: var(--ink-grad); color: var(--gold); border-radius: 12px; }
.list-ico.gps { background: #E7F7F0; color: var(--ok); }
.list-item { transition: background .15s; }
/* شاشة الدخول: 3 نقاط ثقة تحت */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.trust > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 12px 6px; border-radius: 16px; background: var(--card); border: 1px solid rgba(17,19,24,.07); box-shadow: var(--shadow-sm); }
.trust .dr-ico { margin-bottom: 4px; }
.trust b { font-size: 12.5px; }
.trust small { font-size: 11px; color: var(--muted); }

/* ===== شاشة الطلب والرحلة (تصميم 2) ===== */
/* الأسعار: كل فئة كرت، والمختارة بإطار ذهبي وعلامة */
.classes .cls { position: relative; border-radius: 16px; border: 1.5px solid rgba(17,19,24,.07); background: var(--card); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .12s; }
.classes .cls:active { transform: scale(.99); }
.classes .cls.sel { border-color: var(--gold); background: linear-gradient(0deg, rgba(255,194,51,.10), rgba(255,194,51,.10)), var(--card); box-shadow: 0 0 0 3px rgba(255,194,51,.22); }
.classes .cls .price { font-weight: 800; font-size: 16px; }
.trip-meta .meta-chip, .tool-chip { box-shadow: var(--shadow-sm); }
.pay-pick button { box-shadow: var(--shadow-sm); }
.pay-pick button.on { box-shadow: 0 0 0 3px rgba(255,194,51,.22); }
.sheet-cta { box-shadow: 0 -10px 24px rgba(17,19,24,.06); }

/* البحث عن سائق: رادار بحلقات ذهبية وسيارة بأضوائها */
.radar { position: relative; width: 132px; height: 132px; margin: 4px auto 10px; display: grid; place-items: center; }
.radar i { position: absolute; inset: 22px; border-radius: 50%; border: 2px solid rgba(255,194,51,.55); animation: radar 2.4s cubic-bezier(.2,.6,.3,1) infinite; }
.radar i:nth-child(2) { animation-delay: .8s; } .radar i:nth-child(3) { animation-delay: 1.6s; }
@keyframes radar { from { transform: scale(.75); opacity: 1; } to { transform: scale(1.55); opacity: 0; } }
.radar-core { position: relative; width: 88px; height: 88px; border-radius: 50%; background: var(--ink-grad); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(14,15,18,.35), 0 0 0 4px rgba(255,194,51,.25); }
.radar-core .veh { width: 66px; }
.radar-core img { width: 48px; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .radar i { animation: none; opacity: .4; } }

/* الرحلة: مراحل، وكرت السائق */
.ride-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 12px; }
.ride-steps > div { display: flex; flex-direction: column; gap: 6px; }
.ride-steps i { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.ride-steps .done i { background: var(--gold); }
.ride-steps .now i { background: rgba(255,194,51,.3); }
.ride-steps .now i::after { content: ""; position: absolute; inset: 0; width: 45%; background: var(--gold); border-radius: 3px; animation: stepRun 1.4s ease-in-out infinite; }
[dir="rtl"] .ride-steps .now i::after { animation-name: stepRunR; }
@keyframes stepRun { from { transform: translateX(-100%); } to { transform: translateX(230%); } }
@keyframes stepRunR { from { transform: translateX(100%); } to { transform: translateX(-230%); } }
.ride-steps span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ride-steps .done span, .ride-steps .now span { color: var(--text); }
.drv-card { padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid rgba(17,19,24,.07); box-shadow: var(--shadow-sm); }
.drv-card .avatar { box-shadow: 0 0 0 3px var(--gold-soft); }
.plate { box-shadow: var(--shadow-sm); }

/* ===== بوابة المكاتب (تصميم 2) ===== */
.feature .list-ico { background: var(--ink-grad); color: var(--gold); }
.feature { padding: 10px 12px; border-radius: 16px; background: var(--card); border: 1px solid rgba(17,19,24,.07); box-shadow: var(--shadow-sm); align-items: center; }
.login-card { box-shadow: var(--shadow); }
.office-hero { overflow: hidden; padding: 18px 16px; border-radius: 20px; background: var(--ink-grad); color: #fff; box-shadow: 0 10px 26px rgba(14,15,18,.25); }
.office-hero h1 { color: #fff; font-size: 25px !important; line-height: 1.35; }
.office-hero h1 span { color: var(--gold); background: none !important; }
.office-hero p { color: #C9CDD4 !important; }
.office-hero .oh-art { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.office-hero .oh-art .veh { width: 30%; max-width: 104px; }
.drv-row .list-ico, .docs-grid .list-ico { flex-shrink: 0; }

/* أرقام اللوحات (المكاتب والـ CRM): كروت بيضا بظل، وأول رقم غامق ذهبي */
.kpi { background: var(--card); border: 1px solid rgba(17,19,24,.07); box-shadow: var(--shadow-sm); border-radius: 16px; }
.kpi b { font-weight: 800; letter-spacing: -.01em; }
.kpi4 > .kpi:first-child, .kpis > .kpi:first-child { background: var(--ink-grad); border-color: transparent; color: #fff; box-shadow: 0 10px 24px rgba(14,15,18,.22); }
.kpi4 > .kpi:first-child small, .kpis > .kpi:first-child small, .kpi4 > .kpi:first-child .muted, .kpis > .kpi:first-child .muted { color: #A9AFB9; }
.kpi4 > .kpi:first-child b, .kpis > .kpi:first-child b { color: var(--gold); }
:root[data-theme="dark"] .kpi { border-color: var(--line); }
/* الشريط السفلي: الصفحة المختارة بحبة ذهبية خلف الأيقونة */
.tabs { box-shadow: 0 -6px 20px rgba(17,19,24,.06); border-top-color: rgba(17,19,24,.06); }
.tabs button svg { padding: 3px 14px; width: 52px; height: 30px; box-sizing: border-box; border-radius: 999px; transition: background .2s, color .2s; }
.tabs button.on { color: var(--text); font-weight: 700; }
.tabs button.on svg { background: var(--ink-grad); color: var(--gold); }

/* تحديثات الطلب بمحادثة المساعد */
.as-upd { border-inline-start: 3px solid var(--line); padding-inline-start: 10px; display: flex; flex-direction: column; gap: 2px; }
.as-upd b { font-size: 14.5px; margin-bottom: 2px; }
.as-upd div { font-size: 13.5px; color: var(--muted); }
.as-upd.ok { border-color: var(--ok); }
.as-upd.gold { border-color: var(--gold); }
.as-upd.bad { border-color: var(--bad); }
.as-unread { position: absolute; top: -6px; inset-inline-start: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; animation: asPop .3s ease; }
@keyframes asPop { from { transform: scale(.4); } to { transform: none; } }

/* ===== الطوارئ (ملف 38) ===== */
.sos-team { background: linear-gradient(180deg, #EF4444, #C81E1E) !important; color: #fff !important; flex-direction: column; gap: 2px; min-height: 64px; font-size: 17px; box-shadow: 0 8px 22px rgba(200,30,30,.35); }
.sos-team small { font-size: 12px; font-weight: 500; opacity: .9; }
#w-sos { position: fixed; inset: 0; z-index: 2000; background: rgba(14,15,18,.72); display: grid; place-items: end center; padding: 12px 12px calc(12px + var(--safe-b)); animation: fadeIn .2s; }
.sos-box { width: min(440px, 100%); background: var(--card); border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.sos-head { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #FEECEC; color: #B42318; }
.sos-head.done { background: #E7F7F0; color: var(--ok); }
.sos-head b { display: block; font-size: 17px; }
.sos-head small { font-size: 13px; opacity: .8; }
.sos-ring { position: relative; width: 46px; height: 46px; border-radius: 50%; background: currentColor; display: grid; place-items: center; flex-shrink: 0; }
.sos-ring svg { width: 24px; height: 24px; color: #fff; }
.sos-ring i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid currentColor; animation: radar 1.6s ease-out infinite; }
.sos-head.done .sos-ring i { display: none; }
.sos-state { display: flex; flex-direction: column; gap: 4px; padding: 4px 4px 6px; }
.sos-state b { font-size: 15px; }
.sos-state span { font-size: 13px; color: var(--muted); }
/* الـ CRM: شريط الطوارئ وصفحتها */
#sos-bar { position: fixed; z-index: 1500; top: 10px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 24px); display: flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 10px 18px; background: #DC2626; color: #fff; font: inherit; font-size: 14px; cursor: pointer; box-shadow: 0 10px 30px rgba(220,38,38,.45); animation: sosPulse 1.2s ease-in-out infinite; max-width: calc(100vw - 24px); }
#sos-bar b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#sos-bar.ack { background: #B45309; animation: none; box-shadow: 0 8px 20px rgba(180,83,9,.35); }
#sos-bar svg { width: 20px; height: 20px; }
#sos-bar .sos-go { opacity: .85; font-size: 12.5px; }
@keyframes sosPulse { 0%, 100% { box-shadow: 0 10px 30px rgba(220,38,38,.45); } 50% { box-shadow: 0 10px 30px rgba(220,38,38,.45), 0 0 0 8px rgba(220,38,38,.18); } }
.sos-wrap { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .sos-wrap { grid-template-columns: 1fr; } }
#sos-list { display: flex; flex-direction: column; gap: 10px; }
.sos-card { cursor: pointer; border-inline-start: 4px solid var(--line); }
.sos-card.open { border-inline-start-color: #DC2626; background: linear-gradient(0deg, rgba(220,38,38,.05), rgba(220,38,38,.05)), var(--card); }
.sos-card.ack { border-inline-start-color: #B45309; }
/* اختيار اللغة بتطبيق السائق (عربي، English، اردو، हिन्दी) */
.lang-pick { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; }
.lang-pick-bg { position: absolute; inset: 0; background: rgba(14,15,18,.55); }
.lang-pick-box { position: relative; width: min(320px, calc(100vw - 32px)); background: var(--card); border-radius: 20px; padding: 10px; display: grid; gap: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.lang-pick-box button { border: 1.5px solid var(--line); background: var(--card); color: var(--text); border-radius: 14px; padding: 14px; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.lang-pick-box button.on { border-color: var(--gold); background: var(--gold-soft); }
/* فحص السيارة (تطبيق السائق) */
.insp-page { position: fixed; inset: 0; z-index: 990; background: var(--bg); overflow-y: auto; }
.insp-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 14px 10px; background: var(--ink-2); border-bottom: 1px solid var(--line); }
.insp-head h2 { font-size: 18px; }
.insp-body { padding: 14px 14px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; }
.insp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.insp-slot { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; border: 2px dashed var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--gold-text); cursor: pointer; overflow: hidden; max-width: 100%; }
.insp-slot svg { width: 28px; height: 28px; }
.insp-slot span { font-size: 12.5px; font-weight: 600; color: var(--text); }
.insp-slot.done { border-style: solid; border-color: var(--ok); }
.insp-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.insp-slot.done span { position: absolute; bottom: 0; inset-inline: 0; background: rgba(5,150,105,.88); color: #fff; padding: 4px; text-align: center; }
.insp-banner { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 16px; padding: 12px 14px; background: var(--gold-soft); color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.insp-banner.bad { background: #FEECEC; color: #B42318; }
.insp-banner svg { width: 22px; height: 22px; flex-shrink: 0; }
.insp-banner b { display: block; font-size: 14px; }
.insp-banner small { font-size: 12px; opacity: .8; }
/* الـ CRM: صور فحص السيارة ونتيجة التحقق من الهوية */
.insp-adm { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.insp-adm a { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-3); }
.insp-adm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.insp-adm span { position: absolute; bottom: 0; inset-inline: 0; background: rgba(14,15,18,.65); color: #fff; font-size: 12px; padding: 3px 8px; }
.idc { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--ink-3); }

/* ===== توصيل الأغراض والأكل (ملف 42) ===== */
.deliv-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--card); border: 1.5px solid rgba(255,194,51,.45); box-shadow: var(--shadow-sm); margin: 10px 0; }
.deliv-h { display: flex; align-items: center; gap: 10px; }
.deliv-h b { display: block; font-size: 15px; }
.deliv-h small { font-size: 12.5px; color: var(--muted); }
.deliv-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--ink-grad); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.deliv-ico svg { width: 22px; height: 22px; }
.deliv-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.deliv-row.col { flex-direction: column; gap: 2px; }
.deliv-row span { color: var(--muted); flex-shrink: 0; }
.deliv-row b { text-align: end; }
.deliv-row.col b { text-align: start; }
.deliv-form .seg button { flex: 1; }
.deliv-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.deliv-sizes button { border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px 6px; font: inherit; font-size: 12.5px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text); }
.deliv-sizes button b { font-size: 14px; }
.deliv-sizes button.on { border-color: var(--gold); background: var(--gold-soft); }
.deliv-banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--gold-soft); margin-bottom: 10px; }
.deliv-banner .deliv-ico { width: 34px; height: 34px; }
.deliv-banner b { font-size: 14px; display: block; }
.deliv-banner small { font-size: 12px; color: var(--muted); }

/* ===== النت الضعيف (core.js) ===== */
#net-bar { position: fixed; z-index: 10001; left: 50%; top: calc(10px + env(safe-area-inset-top)); transform: translate(-50%, -160%); opacity: 0;
  display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 24px); padding: 9px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: #fff; background: #1F2937; box-shadow: 0 10px 28px rgba(0,0,0,.25); transition: transform .3s, opacity .3s; pointer-events: none; }
#net-bar.down, #net-bar.up { transform: translate(-50%, 0); opacity: 1; }
#net-bar.up { background: #15803D; }
#net-bar .net-dot { width: 9px; height: 9px; border-radius: 50%; background: #F59E0B; flex: none; animation: netBlink 1s ease-in-out infinite; }
#net-bar.up .net-dot { background: #fff; animation: none; }
@keyframes netBlink { 50% { opacity: .25; } }

/* ===== المحاسبة (admin-accounting.js) ===== */
.gl-tabs { flex-wrap: wrap; }
.gl-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
@media (max-width: 1000px) { .gl-2 { grid-template-columns: 1fr; } }
.gl-fs td { padding: 7px 10px; }
.gl-fs tr.h td { background: var(--bg-2, #F4F5F7); font-weight: 700; font-size: 13px; }
.gl-fs tr.s td:first-child { padding-inline-start: 24px; }
.gl-fs tr.t td { font-weight: 600; border-top: 1px solid var(--line, #E5E7EB); }
.gl-fs tr.g td, tr.gl-sum td { font-weight: 800; background: #FFF4D4; color: #1F1A0E; font-size: 14.5px; }
.gl-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 170px; padding-top: 8px; }
.gl-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.gl-bar-in { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.gl-bar-in i { display: block; width: 42%; border-radius: 4px 4px 0 0; min-height: 2px; }
.gl-bar-in i.rv, .gl-dot.rv { background: #16A34A; }
.gl-bar-in i.ex, .gl-dot.ex { background: #F59E0B; }
.gl-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; }
.gl-bar .bad, td.bad, .tiny.bad { color: var(--bad, #B42318); }
.gl-entry { border: 1px solid var(--line, #E5E7EB); border-radius: 12px; padding: 10px 12px; }
.gl-lines { width: 100%; margin-top: 6px; font-size: 13px; }
.gl-lines td { padding: 3px 6px; border: 0; }
.gl-lines td.cr { padding-inline-start: 34px; }
.gl-lines td.num { width: 120px; }
/* كشف الحساب المحاسبي بتطبيق السائق والمكتب (account-statement.js) */
.st-card { gap: 10px; }
.st-card input[type="date"] { flex: 1 1 130px; width: auto; min-width: 0; }
.st-k { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.st-tot { width: 100%; max-width: 360px; }
.st-tot td { padding: 3px 6px; border: 0; }
.st-tot tr.g td { font-weight: 800; border-top: 1px solid var(--line, #E5E7EB); }
.st-by { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.st-t { font-size: 12.5px; width: 100%; }
.st-t td, .st-t th { padding: 6px 4px; }
.st-t .num { white-space: nowrap; }
.pos { color: var(--ok, #0F7A55); } .neg { color: var(--bad, #B42318); }

/* ===== أيقونات مجسّمة (core.js: icSwap) ===== */
img.ic3d { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 3px 4px rgba(17,19,24,.18)); pointer-events: none; }
.dr-ico.has3d, .list-ico.has3d { background: linear-gradient(145deg, #FFF9EA, #FBEBC4); padding: 3px; }
.dr-ico.has3d { padding: 2px; }
.nav-btn > img.ic3d { width: 22px; height: 22px; flex-shrink: 0; }
.svc-ico.has3d img.ic3d { width: 44px; height: 44px; margin: auto; }
.tx-row .list-ico.has3d, .opt-row .list-ico.gps.has3d { background: linear-gradient(145deg, #F1FBF6, #DDF3E8); }
:root[data-theme="dark"] .dr-ico.has3d, :root[data-theme="dark"] .list-ico.has3d { background: linear-gradient(145deg, #2A2F3B, #1C2029); }

/* ===== بلاطات الخدمات بالصور (index.html: servicesGrid) ===== */
.services.ph-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.services button.ph { position: relative; padding: 0; overflow: hidden; border: 0; border-radius: 18px; aspect-ratio: 4 / 3; display: block; background: #222; box-shadow: var(--shadow-sm); text-align: start; }
.services.ph-grid button.ph:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.services button.ph .svc-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.services button.ph:hover .svc-ph { transform: scale(1.04); }
.services button.ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,18,0) 35%, rgba(10,12,18,.82) 100%); }
.services button.ph .svc-tx { position: absolute; z-index: 1; inset: auto 12px 10px 12px; display: flex; flex-direction: column; gap: 1px; color: #fff; }
.services button.ph .svc-tx b { font-size: 15px; font-weight: 800; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.services button.ph .svc-tx span { font-size: 11.5px; color: rgba(255,255,255,.85); }
.services.ph-grid button.ph:first-child .svc-tx b { font-size: 18px; }

/* صورة شاشة دخول السائق والمكتب */
.login-photo { width: 100%; aspect-ratio: 4 / 3.4; margin: 16px 0 4px; border-radius: 22px; background: #ddd center 30% / cover no-repeat; box-shadow: 0 14px 34px rgba(17,19,24,.18); }
.radar-core img.radar-car { width: 118%; max-width: none; height: auto; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }

/* صور السيارة واختبار السائق (driver-onboard.js) */
.login-photo.guide { aspect-ratio: 16 / 8.5; margin: 0 0 10px; }
.insp-slot small { display: block; font-size: 10.5px; color: var(--muted); text-align: center; padding: 0 6px; line-height: 1.35; }
.insp-slot .ok-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--ok, #0F7A55); color: #fff; display: grid; place-items: center; }
.insp-slot .ok-mark svg { width: 18px; height: 18px; }
.insp-slot.busy { opacity: .55; pointer-events: none; }
.quiz-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.quiz-facts span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(242,174,0,.14); font-size: 12.5px; font-weight: 600; }
.quiz-facts svg { width: 15px; height: 15px; }
.quiz-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink, #111318); color: var(--gold, #FFC233); font-size: 12px; margin-inline-end: 4px; }
.quiz-o { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line, #E5E7EB); border-radius: 12px; cursor: pointer; font-size: 14px; }
.quiz-o input { margin-top: 3px; accent-color: #F2AE00; }
.quiz-o:has(input:checked) { border-color: #F2AE00; background: rgba(242,174,0,.14); }
.quiz-res.ok { background: rgba(22,163,74,.12); border-color: rgba(22,163,74,.45); } .quiz-res.bad { background: rgba(220,38,38,.10); border-color: rgba(220,38,38,.4); }

/* صورة السيارة الحقيقية ببطاقة السائق عند الراكب */
.drv-card .drv-car { width: 96px; display: block; margin: 0 0 2px auto; mix-blend-mode: multiply; }
.drv-card .drv-car.real { width: 104px; height: 70px; object-fit: cover; border-radius: 12px; mix-blend-mode: normal; box-shadow: 0 4px 12px rgba(0,0,0,.15); cursor: zoom-in; }
.photo-zoom.car img { width: min(92vw, 520px); height: auto; aspect-ratio: auto; border-radius: 16px; }

/* CRM: صور السيارة الأربعة بملف السائق */
.car-ph { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.car-ph a, .car-ph .miss { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg); display: grid; place-items: center; text-align: center; }
.car-ph img { width: 100%; height: 100%; object-fit: cover; }
.car-ph a span { position: absolute; inset: auto 0 0 0; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 2px 0; }
.car-ph .miss { border: 1.5px dashed var(--line); color: var(--muted); font-size: 12px; }
.car-ph .miss small { display: block; color: var(--warn); }
.qz-row { display: flex; gap: 8px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.qz-row:last-child { border-bottom: 0; } .qz-row.off { opacity: .5; }

/* التسعير الذكي عند الراكب والسائق */
.smart-banner { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin: 4px 0 8px; border-radius: 14px; background: linear-gradient(135deg, #FFF4D4, #FFE7A6); color: #3B2A00; }
.smart-banner > b { flex: none; font-size: 17px; font-weight: 800; padding: 6px 10px; border-radius: 10px; background: #1F2430; color: #FFC233; direction: ltr; }
.smart-banner span { font-size: 13px; font-weight: 600; line-height: 1.4; }
.smart-banner small { display: block; font-weight: 400; font-size: 11.5px; opacity: .8; }
.mult-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #1F2430; color: #FFC233; font-size: 11.5px; font-weight: 800; direction: ltr; }

/* ادعي سائق (driver-onboard.js) */
.ref-code { font-size: 30px; letter-spacing: 4px; font-weight: 800; direction: ltr; padding: 6px 16px; border-radius: 12px; background: rgba(242,174,0,.14); }
.ref-cta { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 12px; border: 1px solid rgba(242,174,0,.45); border-radius: 16px; background: rgba(242,174,0,.10); color: inherit; font: inherit; text-align: start; cursor: pointer; }
.ref-cta small { display: block; font-size: 11.5px; opacity: .75; }
