/* =========================================================
   واصل — نظام تصميم (أبيض • برتقالي • أحمر)
   ========================================================= */
:root {
  --orange: #FF6B00;
  --orange-2: #FF8A1F;
  --orange-3: #FFB066;
  --red: #E5252A;
  --red-dark: #B9161B;
  --grad: linear-gradient(135deg, #FF9A1F 0%, #FF6B00 45%, #E5252A 100%);
  --grad-soft: linear-gradient(135deg, #FFF4EA 0%, #FFE9E4 100%);
  --bg: #FBF8F6;
  --surface: #FFFFFF;
  --surface-2: #FFF8F2;
  --ink: #1E1714;
  --ink-2: #3D322C;
  --muted: #85776E;
  --line: #F1E6DD;
  --line-2: #E8D9CD;
  --soft-orange: #FFF1E5;
  --soft-red: #FDECEC;
  --green: #12A150;
  --soft-green: #E7F7EE;
  --amber: #E8A300;
  --soft-amber: #FFF6DB;
  --gray: #8E8E93;
  --soft-gray: #F2F1F0;
  --blue: #2563EB;
  --soft-blue: #EAF1FE;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(60, 30, 10, .06), 0 1px 1px rgba(60, 30, 10, .04);
  --shadow: 0 6px 24px -8px rgba(80, 35, 10, .14), 0 2px 6px rgba(80, 35, 10, .05);
  --shadow-lg: 0 24px 60px -20px rgba(120, 40, 10, .30);
  --shadow-brand: 0 10px 26px -10px rgba(255, 90, 20, .65);
  --sidebar: 270px;
  --topbar: 68px;
  --bottom-nav: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink);
  font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--orange); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
h1 { font-size: 1.7rem; font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }
.bold { font-weight: 700; }
.nowrap { white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.hidden { display: none !important; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: #FFD3B0; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #E9D7C9; border-radius: 10px; border: 3px solid var(--bg); }

/* ---------- Splash ---------- */
.splash { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--grad-soft); }
.splash-name { font-size: 2rem; font-weight: 900; color: var(--ink); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #FFD9BD; border-top-color: var(--orange); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.35rem; color: var(--ink); }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-brand); font-size: 1.1rem; flex-shrink: 0; }
.logo-mark.big { width: 76px; height: 76px; border-radius: 22px; font-size: 2rem; }
.logo small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); margin-top: -4px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 46px; height: var(--h); padding: 0 20px; border-radius: 14px; border: 1.5px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: .95rem;
  background: var(--soft-gray); color: var(--ink); transition: transform .12s, box-shadow .2s, background .2s, opacity .2s; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(255, 90, 20, .8); }
.btn-red { background: var(--red); color: #fff; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 10px 22px -12px rgba(18, 161, 80, .9); }
.btn-outline { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-soft { background: var(--soft-orange); color: var(--orange); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--soft-gray); }
.btn-danger-soft { background: var(--soft-red); color: var(--red); }
.btn-sm { --h: 36px; padding: 0 14px; font-size: .85rem; border-radius: 11px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 1.05rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: var(--h); padding: 0; }
.btn .spinner { width: 18px; height: 18px; border-width: 2px; border-color: rgba(255, 255, 255, .4); border-top-color: #fff; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: none; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); position: relative; font-size: 1.1rem; }
.icon-btn:hover { background: var(--soft-orange); color: var(--orange); }
.dot-badge { position: absolute; top: 4px; left: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-weight: 700; font-size: .88rem; color: var(--ink-2); }
.field .hint { font-size: .78rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 13px; background: #fff;
  transition: border-color .2s, box-shadow .2s; outline: none; font-size: .95rem;
}
.textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 107, 0, .12); }
.input::placeholder, .textarea::placeholder { color: #B8AAA0; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .input { padding-right: 42px; }
.input-icon > .toggle-pw { position: absolute; top: 50%; left: 8px; transform: translateY(-50%); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2385776E' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 36px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.input.invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 37, 42, .1); }
input[data-mobile] { text-align: left; letter-spacing: .5px; }
input[data-mobile]::placeholder { text-align: right; letter-spacing: 0; }
.err-text { color: var(--red); font-size: .82rem; font-weight: 600; }

/* Switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 46px; height: 26px; border-radius: 20px; background: #E3D6CC; position: relative; transition: background .2s; flex-shrink: 0; }
.switch .track::after { content: ''; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked + .track { background: var(--orange); }
.switch input:checked + .track::after { transform: translateX(-20px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px rgba(255, 107, 0, .2); }

/* Option tiles (checkbox / radio) */
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .opt-body { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; transition: all .15s; height: 100%; }
.opt .opt-body i { color: var(--muted); font-size: 1.05rem; width: 22px; text-align: center; }
.opt .opt-title { font-weight: 700; font-size: .9rem; }
.opt .opt-sub { font-size: .74rem; color: var(--muted); }
.opt input:checked + .opt-body { border-color: var(--orange); background: var(--soft-orange); box-shadow: 0 0 0 3px rgba(255, 107, 0, .1); }
.opt input:checked + .opt-body i { color: var(--orange); }
.opt input:focus-visible + .opt-body { outline: 2px solid var(--orange); }

/* Stepper (number) */
.counter { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 13px; overflow: hidden; height: 48px; background: #fff; }
.counter button { width: 44px; height: 100%; border: none; background: var(--surface-2); cursor: pointer; font-size: 1.1rem; color: var(--orange); }
.counter button:hover { background: var(--soft-orange); }
.counter input { width: 56px; text-align: center; border: none; outline: none; font-weight: 800; font-size: 1.05rem; height: 100%; }

/* OTP */
.otp { display: flex; gap: 8px; justify-content: center; direction: ltr; }
.otp input { width: 50px; height: 60px; text-align: center; font-size: 1.6rem; font-weight: 800; border: 2px solid var(--line-2); border-radius: 14px; outline: none; transition: all .15s; background: #fff; }
.otp input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 107, 0, .14); transform: translateY(-2px); }
.otp input.filled { border-color: var(--orange-3); background: var(--soft-orange); }
.otp.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 20px; }
.card.flat { box-shadow: var(--shadow-sm); }
.card.pad-0 { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h3 { display: flex; align-items: center; gap: 8px; }
.card-head h3 i { color: var(--orange); }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: none; }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 30px; font-size: .75rem; font-weight: 700; background: var(--soft-gray); color: var(--ink-2); white-space: nowrap; }
.badge i { font-size: .72rem; }
.b-orange { background: var(--soft-orange); color: var(--orange); }
.b-red { background: var(--soft-red); color: var(--red); }
.b-green { background: var(--soft-green); color: var(--green); }
.b-amber { background: var(--soft-amber); color: #A87500; }
.b-blue { background: var(--soft-blue); color: var(--blue); }
.b-gray { background: var(--soft-gray); color: #6B6B70; }
.b-dark { background: var(--ink); color: #fff; }
.b-grad { background: var(--grad); color: #fff; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.s-available { background: var(--green); box-shadow: 0 0 0 3px rgba(18, 161, 80, .18); }
.s-busy { background: var(--red); box-shadow: 0 0 0 3px rgba(229, 37, 42, .18); }
.s-on_trip { background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 0, .2); }
.s-break { background: var(--amber); box-shadow: 0 0 0 3px rgba(232, 163, 0, .2); }
.s-offline { background: var(--gray); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 30px; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; font-size: .85rem; font-weight: 600; transition: all .15s; }
.chip:hover { border-color: var(--orange); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip i { color: var(--orange); }
.chip.active i { color: #FFB066; }

/* ---------- Avatar ---------- */
.avatar { width: var(--s, 44px); height: var(--s, 44px); border-radius: 50%; flex-shrink: 0; object-fit: cover; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: calc(var(--s, 44px) * .4); position: relative; background: var(--grad); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar .av-status { position: absolute; bottom: 1px; left: 1px; width: 28%; height: 28%; min-width: 10px; min-height: 10px; border-radius: 50%; border: 2px solid #fff; }
.avatar.ring { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--orange); }

/* ---------- Stars ---------- */
.stars { color: #FFB400; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #E7DCD3; }
.rate-input { display: flex; gap: 8px; justify-content: center; direction: ltr; flex-direction: row-reverse; }
.rate-input button { border: none; background: none; font-size: 2.2rem; color: #E7DCD3; cursor: pointer; transition: transform .1s, color .1s; padding: 0; }
.rate-input button.on { color: #FFB400; }
.rate-input button:hover { transform: scale(1.15); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.auth-hero { background: var(--grad); color: #fff; padding: 48px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.auth-hero::before, .auth-hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.auth-hero::before { width: 480px; height: 480px; top: -160px; left: -160px; }
.auth-hero::after { width: 320px; height: 320px; bottom: -120px; right: -80px; }
.auth-hero .logo { color: #fff; position: relative; z-index: 1; }
.auth-hero .logo-mark { background: #fff; color: var(--orange); }
.hero-copy { position: relative; z-index: 1; max-width: 480px; }
.hero-copy h1 { font-size: 2.6rem; font-weight: 900; line-height: 1.25; }
.hero-copy p { font-size: 1.1rem; opacity: .92; margin-top: 14px; }
.hero-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; position: relative; z-index: 1; }
.hero-feat { background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; padding: 14px; display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: .92rem; }
.hero-feat i { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--orange); display: grid; place-items: center; flex-shrink: 0; }
.hero-foot { position: relative; z-index: 1; opacity: .85; font-size: .85rem; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h2 { font-size: 1.7rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft-gray); border-radius: 14px; padding: 5px; margin: 22px 0; }
.auth-tabs button { height: 42px; border: none; border-radius: 10px; background: transparent; font-weight: 700; cursor: pointer; color: var(--muted); }
.auth-tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-mobile-head { display: none; }
.sms-preview { background: #1E1714; color: #fff; border-radius: 16px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; }
.sms-preview i { color: #4ADE80; font-size: 1.2rem; margin-top: 3px; }
.sms-preview b { color: #FFB066; font-size: 1.05rem; letter-spacing: 2px; }
.pw-meter { height: 6px; border-radius: 4px; background: var(--soft-gray); overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .25s, background .25s; border-radius: 4px; }
.security-note { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--soft-green); color: #0C6E37; font-size: .8rem; font-weight: 600; }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); background: #fff; border-left: 1px solid var(--line); position: fixed; top: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; padding: 20px 14px; z-index: 30;
}
.sidebar .logo { padding: 4px 10px 22px; }
.nav { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; }
.nav-label { font-size: .72rem; font-weight: 800; color: var(--muted); padding: 14px 14px 6px; letter-spacing: .5px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 13px; color: var(--ink-2); font-weight: 600; transition: all .15s; position: relative; }
.nav a i { width: 22px; text-align: center; color: var(--muted); font-size: 1.02rem; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--soft-orange); color: var(--orange); }
.nav a.active i { color: var(--orange); }
.nav a.active::before { content: ''; position: absolute; right: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px 0 0 4px; background: var(--grad); }
.nav a .count { margin-right: auto; background: var(--red); color: #fff; font-size: .7rem; font-weight: 800; padding: 1px 8px; border-radius: 20px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
.sidebar-promo { background: var(--grad); color: #fff; border-radius: 18px; padding: 16px; margin: 12px 0; position: relative; overflow: hidden; }
.sidebar-promo::after { content: ''; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .12); top: -40px; left: -30px; }
.sidebar-promo b { display: block; font-size: 1rem; }
.sidebar-promo p { font-size: .8rem; opacity: .9; margin: 4px 0 10px; }
.sidebar-promo .btn { background: #fff; color: var(--orange); position: relative; z-index: 1; }

.main { flex: 1; margin-right: var(--sidebar); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar); display: flex; align-items: center; gap: 12px; padding: 0 28px; position: sticky; top: 0; z-index: 20;
  background: rgba(251, 248, 246, .85); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar h1 { font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .back { display: none; }
.topbar .tb-logo { display: none; }
.content { padding: 8px 28px 40px; width: 100%; max-width: 1280px; margin: 0 auto; flex: 1; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 30px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .85rem; cursor: pointer; }
.status-pill:hover { border-color: var(--orange); }

.bottom-nav { display: none; }

/* ---------- Dropdown ---------- */
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); z-index: 60; overflow: hidden; animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.dd-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.dd-list { max-height: 380px; overflow-y: auto; }
.dd-item { display: flex; gap: 12px; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--line); align-items: flex-start; }
.dd-item:hover { background: var(--surface-2); }
.dd-item.unread { background: #FFFAF5; }
.dd-item.unread .dd-title::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-right: 6px; vertical-align: middle; }
.dd-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: var(--soft-orange); color: var(--orange); }
.dd-title { font-weight: 700; font-size: .88rem; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; font-weight: 600; width: 100%; border: none; background: none; text-align: right; }
.menu-item:hover { background: var(--surface-2); }
.menu-item i { width: 20px; color: var(--muted); text-align: center; }
.menu-item.danger, .menu-item.danger i { color: var(--red); }

/* ---------- Hero banner (home) ---------- */
.hello { background: var(--grad); color: #fff; border-radius: var(--radius-lg); padding: 28px; position: relative; overflow: hidden; box-shadow: var(--shadow-brand); }
.hello::before { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .1); top: -120px; left: -60px; }
.hello::after { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .08); bottom: -110px; left: 160px; }
.hello > * { position: relative; z-index: 1; }
.hello h1 { font-size: 1.8rem; font-weight: 900; }
.hello p { opacity: .92; margin-top: 4px; }
.hello .search-fake { margin-top: 18px; background: #fff; color: var(--muted); border-radius: 16px; height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 18px; cursor: pointer; max-width: 520px; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .25); }
.hello .search-fake i { color: var(--orange); }
.hello-art { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); font-size: 7rem; opacity: .2; z-index: 0 !important; }

/* Service cards */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; cursor: pointer; transition: all .2s; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #FFD2B0; }
.service .s-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 14px; background: var(--soft-orange); color: var(--orange); transition: all .2s; }
.service:hover .s-icon { background: var(--grad); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service h3 { font-size: 1.05rem; }
.service p { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.service .s-arrow { position: absolute; left: 18px; top: 22px; color: #E3CFBF; transition: all .2s; }
.service:hover .s-arrow { color: var(--orange); transform: translateX(-4px); }
.service.t-food .s-icon { background: var(--soft-red); color: var(--red); }

/* Stat cards */
.stat { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-sm); }
.stat .st-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; background: var(--soft-orange); color: var(--orange); }
.stat .st-val { font-size: 1.45rem; font-weight: 900; line-height: 1.1; }
.stat .st-lbl { font-size: .8rem; color: var(--muted); font-weight: 600; }
.stat.red .st-icon { background: var(--soft-red); color: var(--red); }
.stat.green .st-icon { background: var(--soft-green); color: var(--green); }
.stat.blue .st-icon { background: var(--soft-blue); color: var(--blue); }
.stat.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat.dark .st-lbl { color: #C9B9AE; }
.stat.dark .st-icon { background: rgba(255, 255, 255, .1); color: #FFB066; }

/* Active order banner */
.active-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1.5px solid #FFD2B0; box-shadow: var(--shadow); cursor: pointer; }
.active-banner .pulse { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; position: relative; flex-shrink: 0; }
.active-banner .pulse::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--orange); animation: ring 1.6s infinite; }
@keyframes ring { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--surface-2); }
.li-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--soft-orange); color: var(--orange); flex-shrink: 0; font-size: 1.1rem; }
.li-title { font-weight: 700; }
.li-sub { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Table */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: right; font-size: .76rem; color: var(--muted); font-weight: 800; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { cursor: pointer; transition: background .12s; }
.table tbody tr:hover { background: #FFFBF7; }

/* ---------- Wizard ---------- */
.wizard-steps { display: flex; gap: 6px; margin-bottom: 20px; }
.wizard-steps .ws { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.wizard-steps .ws .bar { height: 5px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.wizard-steps .ws.done .bar, .wizard-steps .ws.cur .bar { background: var(--grad); }
.wizard-steps .ws span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.wizard-steps .ws.cur span { color: var(--orange); }
.wizard-foot { display: flex; gap: 10px; justify-content: space-between; margin-top: 20px; position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 5; }

/* Location picker */
.picker { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; }
.loc-fields { display: flex; flex-direction: column; gap: 0; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 6px; box-shadow: var(--shadow-sm); }
.loc-field { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 13px; cursor: pointer; border: 1.5px solid transparent; }
.loc-field.active { border-color: var(--orange); background: var(--soft-orange); }
.loc-field .lf-dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.loc-field .lf-dot.a { background: var(--orange); }
.loc-field .lf-dot.b { background: var(--red); }
.loc-field .lf-label { font-size: .75rem; font-weight: 700; color: var(--muted); }
.loc-field .lf-val { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-field .lf-val.is-empty { color: #B8AAA0; font-weight: 600; }
.loc-sep { height: 1px; background: var(--line); margin: 0 12px; }
.loc-swap { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line-2); cursor: pointer; color: var(--orange); }
.search-box { position: relative; }
.search-results { position: absolute; top: calc(100% + 6px); right: 0; left: 0; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); z-index: 500; max-height: 320px; overflow-y: auto; }
.search-results .sr { padding: 11px 14px; cursor: pointer; display: flex; gap: 10px; border-bottom: 1px solid var(--line); font-size: .87rem; }
.search-results .sr:hover { background: var(--surface-2); }
.search-results .sr i { color: var(--orange); margin-top: 4px; }

/* ---------- Map ---------- */
.map-box { width: 100%; height: 420px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; direction: ltr; background: #F3EEE9; z-index: 1; }
.map-box.tall { height: 560px; }
.map-box.short { height: 260px; }
.map-overlay { position: absolute; z-index: 500; direction: rtl; }
.map-overlay.tr { top: 12px; right: 12px; }
.map-overlay.tl { top: 12px; left: 12px; }
.map-overlay.bc { bottom: 14px; left: 50%; transform: translateX(-50%); }
.map-hint { background: rgba(30, 23, 20, .82); color: #fff; padding: 8px 14px; border-radius: 30px; font-size: .8rem; font-weight: 600; white-space: nowrap; backdrop-filter: blur(4px); }
.map-fab { width: 44px; height: 44px; border-radius: 13px; border: none; background: #fff; box-shadow: var(--shadow); cursor: pointer; color: var(--orange); font-size: 1.05rem; display: grid; place-items: center; }
.map-fab:hover { background: var(--soft-orange); }
.leaflet-container { font-family: var(--font) !important; }
.leaflet-popup-content { direction: rtl; text-align: right; font-family: var(--font); margin: 12px 14px; }
.leaflet-popup-content-wrapper { border-radius: 14px !important; }
.pin { background: none !important; border: none !important; }
.pin-body { width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); border: 3px solid #fff; }
.pin-body i { transform: rotate(45deg); color: #fff; font-size: .9rem; }
.pin-a .pin-body { background: var(--orange); }
.pin-b .pin-body { background: var(--red); }
.pin-home .pin-body { background: var(--ink); }
.car-pin { background: none !important; border: none !important; }
.car-pin .cp { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); background: var(--grad); color: #fff; display: grid; place-items: center; font-size: .95rem; position: relative; overflow: hidden; }
.car-pin .cp img { width: 100%; height: 100%; object-fit: cover; }
.car-pin .cp-ring { position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--c, var(--green)); }
.car-pin.me .cp { background: var(--blue); }
.car-pin.pulse .cp-ring { animation: ring 1.6s infinite; }
.car-pin .cp-tag { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .65rem; padding: 1px 7px; border-radius: 8px; white-space: nowrap; font-weight: 700; direction: rtl; }

/* ---------- Driver cards (candidates) ---------- */
.drivers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.dcard { background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: all .18s; position: relative; }
.dcard:hover { border-color: #FFC9A0; box-shadow: var(--shadow); transform: translateY(-2px); }
.dcard.best { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 0, .12), var(--shadow); }
.dcard .best-tag { position: absolute; top: -11px; right: 16px; background: var(--grad); color: #fff; padding: 2px 12px; border-radius: 20px; font-size: .72rem; font-weight: 800; box-shadow: var(--shadow-brand); }
.dcard .dc-metrics { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 14px; padding: 10px 4px; text-align: center; }
.dcard .dc-metrics b { display: block; font-size: 1.05rem; font-weight: 900; }
.dcard .dc-metrics span { font-size: .72rem; color: var(--muted); font-weight: 600; }
.dcard .dc-metrics > div + div { border-right: 1px solid var(--line-2); }
.level { font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 20px; }
.level.bronze { background: #F6E7DA; color: #9A5B2B; }
.level.silver { background: #EEF0F3; color: #5B6470; }
.level.gold { background: #FFF3CC; color: #A07800; }
.level.platinum { background: linear-gradient(135deg, #2D2420, #5A463C); color: #FFD9A8; }

/* Waiting radar */
.radar { width: 180px; height: 180px; border-radius: 50%; margin: 10px auto 20px; position: relative; display: grid; place-items: center; }
.radar::before, .radar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 107, 0, .15); animation: radar 2s infinite ease-out; }
.radar::after { animation-delay: 1s; }
@keyframes radar { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.1); opacity: 0; } }
.radar .avatar { z-index: 1; box-shadow: 0 0 0 5px #fff, var(--shadow); }

/* Countdown ring */
.cd-ring { --p: 100; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--orange) calc(var(--p) * 1%), var(--line) 0); display: grid; place-items: center; flex-shrink: 0; }
.cd-ring span { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.1rem; }

/* ---------- Tracking ---------- */
.track-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.track-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.progress-steps { display: flex; justify-content: space-between; position: relative; margin: 6px 4px 4px; }
.progress-steps::before { content: ''; position: absolute; top: 17px; right: 18px; left: 18px; height: 4px; background: var(--line); border-radius: 4px; }
.progress-steps .pfill { position: absolute; top: 17px; right: 18px; height: 4px; background: var(--grad); border-radius: 4px; transition: width .5s; }
.progress-steps .ps { display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 1; width: 25%; }
.progress-steps .ps .pc { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: .85rem; transition: all .3s; }
.progress-steps .ps.done .pc { background: var(--orange); border-color: var(--orange); color: #fff; }
.progress-steps .ps.cur .pc { border-color: var(--orange); color: var(--orange); box-shadow: 0 0 0 5px rgba(255, 107, 0, .15); }
.progress-steps .ps span { font-size: .7rem; font-weight: 700; color: var(--muted); text-align: center; }
.progress-steps .ps.cur span, .progress-steps .ps.done span { color: var(--ink); }
.pin-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 18px; }
.pin-code b { font-size: 1.7rem; letter-spacing: 8px; color: #FFB066; direction: ltr; }
.route-line { display: flex; flex-direction: column; gap: 0; }
.route-line .rl { display: flex; gap: 12px; align-items: flex-start; position: relative; padding-bottom: 14px; }
.route-line .rl:last-child { padding-bottom: 0; }
.route-line .rl .rl-dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; border: 3px solid var(--orange); background: #fff; }
.route-line .rl.b .rl-dot { border-color: var(--red); background: var(--red); }
.route-line .rl:not(:last-child)::after { content: ''; position: absolute; right: 6px; top: 22px; bottom: 2px; border-right: 2px dashed var(--line-2); }

/* Timeline */
.timeline { display: flex; flex-direction: column; }
.tl { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.tl:not(:last-child)::before { content: ''; position: absolute; right: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.tl .tl-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--orange-3); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-2); margin-top: 4px; flex-shrink: 0; }
.tl:first-child .tl-dot { background: var(--orange); }

/* Chat */
.chat { display: flex; flex-direction: column; height: 360px; }
.chat-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--surface-2); border-radius: 14px; }
.msg { max-width: 80%; padding: 8px 12px; border-radius: 16px; font-size: .9rem; background: #fff; border: 1px solid var(--line); align-self: flex-end; border-bottom-left-radius: 4px; }
.msg.mine { align-self: flex-start; background: var(--grad); color: #fff; border: none; border-bottom-right-radius: 4px; border-bottom-left-radius: 16px; }
.msg .mt { font-size: .66rem; opacity: .7; margin-top: 2px; }
.msg.admin { background: var(--ink); color: #fff; }
.chat-form { display: flex; gap: 8px; margin-top: 10px; }
.quick-replies { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 0; scrollbar-width: none; }
.quick-replies::-webkit-scrollbar { display: none; }
.quick-replies button { flex-shrink: 0; border: 1px solid var(--line-2); background: #fff; border-radius: 20px; padding: 4px 12px; font-size: .78rem; cursor: pointer; }
.quick-replies button:hover { border-color: var(--orange); color: var(--orange); }

/* Price */
.price-box { background: var(--grad-soft); border: 1px solid #FFDCC4; border-radius: 18px; padding: 16px; }
.price-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: .9rem; }
.price-total { display: flex; justify-content: space-between; align-items: center; border-top: 1.5px dashed #F5C5A3; margin-top: 8px; padding-top: 12px; }
.price-total b { font-size: 1.6rem; font-weight: 900; color: var(--orange); }

/* Item rows (food) */
.items-list { display: flex; flex-direction: column; gap: 8px; }
.item-row { display: grid; grid-template-columns: 1fr 110px 1fr 42px; gap: 8px; align-items: center; }

/* Driver dashboard */
.status-switch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.status-switch button { border: 1.5px solid var(--line-2); background: #fff; border-radius: 16px; padding: 14px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; transition: all .15s; }
.status-switch button i { font-size: 1.3rem; color: var(--muted); }
.status-switch button.active { color: #fff; border-color: transparent; }
.status-switch button.active i { color: #fff; }
.status-switch button.active.available { background: var(--green); box-shadow: 0 10px 22px -12px var(--green); }
.status-switch button.active.busy { background: var(--red); }
.status-switch button.active.break { background: var(--amber); }
.status-switch button.active.offline { background: var(--gray); }
.go-online { border-radius: var(--radius-lg); padding: 22px; color: #fff; display: flex; align-items: center; gap: 18px; transition: background .3s; }
.go-online.available { background: linear-gradient(135deg, #18B85E, #0E8A45); }
.go-online.busy, .go-online.on_trip { background: var(--grad); }
.go-online.break { background: linear-gradient(135deg, #F2B21B, #D48A00); }
.go-online.offline { background: linear-gradient(135deg, #5D524C, #2E2622); }
.go-online .gi { width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; font-size: 1.7rem; flex-shrink: 0; }
.offer-card { border: 2px solid var(--orange); border-radius: 22px; background: #fff; padding: 18px; box-shadow: 0 0 0 6px rgba(255, 107, 0, .1), var(--shadow); animation: glow 1.5s infinite alternate; }
@keyframes glow { to { box-shadow: 0 0 0 10px rgba(255, 107, 0, .05), var(--shadow); } }

/* Charts */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.bars .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar { width: 100%; max-width: 42px; border-radius: 10px 10px 4px 4px; background: var(--grad); min-height: 4px; transition: height .6s cubic-bezier(.2, .8, .2, 1); position: relative; }
.bars .bar:hover::after { content: attr(data-v); position: absolute; top: -26px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.bars .bar-col span { font-size: .72rem; color: var(--muted); font-weight: 700; }
.hbar { display: flex; flex-direction: column; gap: 12px; }
.hbar .hb-row { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; font-size: .85rem; font-weight: 600; }
.hbar .hb-track { height: 10px; background: var(--soft-gray); border-radius: 10px; overflow: hidden; }
.hbar .hb-fill { height: 100%; background: var(--grad); border-radius: 10px; }
.donut { width: 150px; height: 150px; border-radius: 50%; position: relative; flex-shrink: 0; }
.donut::after { content: ''; position: absolute; inset: 24px; border-radius: 50%; background: #fff; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; z-index: 1; }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: .85rem; font-weight: 600; }
.legend .lg { display: flex; align-items: center; gap: 8px; }

/* Profile */
.profile-hero { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.profile-cover { height: 130px; background: var(--grad); position: relative; overflow: hidden; }
.profile-cover::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .12); top: -100px; left: 10%; }
.profile-body { padding: 0 24px 22px; display: flex; gap: 18px; align-items: flex-end; margin-top: -48px; position: relative; flex-wrap: wrap; }
.profile-body .avatar { --s: 108px; border: 5px solid #fff; box-shadow: var(--shadow); }
.avatar-edit { position: absolute; bottom: 4px; left: 4px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; border: 3px solid #fff; cursor: pointer; font-size: .8rem; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 14px; font-size: .9rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 700; word-break: break-word; }
.secure-field { display: inline-flex; align-items: center; gap: 6px; }
.secure-field i { color: var(--green); font-size: .8rem; }

/* Empty */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .e-icon { width: 84px; height: 84px; border-radius: 26px; background: var(--soft-orange); color: var(--orange); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 16px; }
.empty h3 { color: var(--ink); margin-bottom: 6px; }

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

/* Tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: none; background: none; padding: 10px 14px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--orange); border-bottom-color: var(--orange); }

/* ---------- Toast ---------- */
#toasts { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 440px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .9rem; animation: tin .25s ease-out; width: 100%; }
.toast.out { animation: tout .25s ease-in forwards; }
.toast .t-icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: rgba(255, 255, 255, .12); }
.toast.success .t-icon { background: var(--green); }
.toast.error .t-icon { background: var(--red); }
.toast.warning .t-icon { background: var(--amber); }
.toast.info .t-icon { background: var(--orange); }
.toast.sms { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.toast.sms .t-icon { background: #22C55E; color: #fff; }
.toast.sms b { color: var(--orange); letter-spacing: 3px; font-size: 1.1rem; }
@keyframes tin { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes tout { to { opacity: 0; transform: translateY(-14px) scale(.96); } }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(30, 20, 15, .5); backdrop-filter: blur(3px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 24px; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: mup .25s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { max-width: 820px; }
@keyframes mup { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-start; flex-wrap: wrap; }

/* Filters bar */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .input, .filters .select { height: 42px; width: auto; min-width: 160px; }
.filters .search { flex: 1; min-width: 200px; }

/* Rank picker */
.rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }

/* Upload */
.upload { display: flex; align-items: center; gap: 16px; padding: 14px; border: 2px dashed var(--line-2); border-radius: 16px; background: var(--surface-2); cursor: pointer; }
.upload:hover { border-color: var(--orange); }
.upload .avatar { --s: 72px; }

/* Ticket */
.ticket-msg { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ticket-msg:last-child { border-bottom: none; }
.ticket-msg .tm-body { flex: 1; }
.ticket-msg.staff .tm-text { background: var(--soft-orange); }
.tm-text { background: var(--surface-2); padding: 10px 14px; border-radius: 14px; margin-top: 6px; white-space: pre-wrap; font-size: .92rem; }

/* Landing feature strip */
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { display: flex; gap: 12px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.feature i { width: 42px; height: 42px; border-radius: 13px; background: var(--soft-orange); color: var(--orange); display: grid; place-items: center; flex-shrink: 0; }

/* =================== Responsive =================== */
@media (max-width: 1180px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track-layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .picker { grid-template-columns: 330px minmax(0, 1fr); }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --topbar: 60px; }
  .sidebar { display: none; }
  .main { margin-right: 0; padding-bottom: calc(var(--bottom-nav) + var(--safe-b)); }
  .topbar { padding: 0 14px; background: rgba(255, 255, 255, .92); border-bottom-color: var(--line); }
  .topbar h1 { font-size: 1.08rem; }
  .topbar .tb-logo { display: flex; }
  .topbar .back { display: grid; }
  .content { padding: 14px 14px 28px; }
  .bottom-nav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; right: 0; left: 0; z-index: 40;
    height: calc(var(--bottom-nav) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -12px rgba(80, 35, 10, .2);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; font-weight: 700; color: var(--muted); position: relative; }
  .bottom-nav a i { font-size: 1.15rem; }
  .bottom-nav a.active { color: var(--orange); }
  .bottom-nav a.active::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--grad); }
  .bottom-nav a.fab-link i { width: 50px; height: 50px; border-radius: 17px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-top: -26px; box-shadow: var(--shadow-brand); border: 4px solid #fff; font-size: 1.2rem; }
  .bottom-nav a .count { position: absolute; top: 6px; left: calc(50% - 20px); background: var(--red); color: #fff; font-size: .6rem; padding: 0 5px; border-radius: 10px; }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-mobile-head { display: block; background: var(--grad); color: #fff; padding: 34px 22px 60px; border-radius: 0 0 34px 34px; text-align: center; }
  .auth-mobile-head .logo-mark { margin: 0 auto 10px; background: #fff; color: var(--orange); }
  .auth-panel { padding: 0 16px 30px; flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .auth-panel .auth-mobile-head { margin: 0 -16px; }
  .auth-panel .auth-box { margin: -40px auto 0; position: relative; z-index: 1; }
  .auth-box { background: #fff; border-radius: 24px; padding: 22px 18px; box-shadow: var(--shadow); }
  .picker { grid-template-columns: minmax(0, 1fr); }
  .picker .map-box { height: 340px; }
  .track-layout { grid-template-columns: minmax(0, 1fr); }
  .map-box.tall { height: 380px; }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-strip { grid-template-columns: 1fr; }
  .dropdown { position: fixed; top: 64px; left: 10px; right: 10px; min-width: 0; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  h1 { font-size: 1.4rem; }
  .hello { padding: 22px 18px; border-radius: 22px; }
  .hello h1 { font-size: 1.4rem; }
  .hello-art { display: none; }
  .services { gap: 10px; }
  .service { padding: 16px 14px; border-radius: 18px; }
  .service .s-icon { width: 48px; height: 48px; font-size: 1.25rem; border-radius: 14px; margin-bottom: 10px; }
  .service h3 { font-size: .95rem; }
  .service p { font-size: .74rem; }
  .g-2, .g-3, .g-4, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .g-4.keep-2, .g-2.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 14px; gap: 10px; }
  .stat .st-icon { width: 42px; height: 42px; font-size: 1.05rem; }
  .stat .st-val { font-size: 1.2rem; }
  .card { padding: 16px; border-radius: 16px; }
  .drivers-grid { grid-template-columns: 1fr; }
  .status-switch { grid-template-columns: repeat(2, 1fr); }
  .item-row { grid-template-columns: 1fr 96px 42px; }
  .item-row .item-note { grid-column: 1 / -1; grid-row: 2; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .modal-bg { padding: 0; align-items: flex-end; }
  .modal { border-radius: 24px 24px 0 0; max-height: 92vh; animation: sheet .3s cubic-bezier(.2, .9, .3, 1); }
  @keyframes sheet { from { transform: translateY(100%); } }
  .otp input { width: 44px; height: 54px; font-size: 1.4rem; }
  .map-box { height: 300px; border-radius: 16px; }
  .profile-body { padding: 0 16px 18px; }
  .profile-body .avatar { --s: 92px; }
  .table-cards thead { display: none; }
  .table-cards tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 6px; }
  .table-cards td { display: flex; justify-content: space-between; gap: 10px; border: none; padding: 5px 10px; }
  .table-cards td::before { content: attr(data-l); color: var(--muted); font-size: .78rem; font-weight: 700; }
  .wizard-steps .ws span { font-size: .66rem; }
  .filters .input, .filters .select { min-width: 0; flex: 1 1 140px; }
  .hbar .hb-row { grid-template-columns: 90px 1fr 32px; }
  .btn-lg { --h: 50px; }
}
@media (max-width: 380px) {
  .services { grid-template-columns: 1fr 1fr; }
  .otp { gap: 5px; }
  .otp input { width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Admin control ---------- */
.imp-bar { display: flex; align-items: center; gap: 12px; margin: 10px 28px 0; padding: 12px 16px; border-radius: 16px; background: var(--ink); color: #fff; font-size: .9rem; flex-wrap: wrap; }
.imp-bar i { color: #FFB066; font-size: 1.2rem; }
.imp-bar .btn { background: #fff; color: var(--ink); }
.maint-bar { display: flex; align-items: center; gap: 10px; margin: 10px 28px 0; padding: 12px 16px; border-radius: 16px; background: var(--soft-amber); color: #8A6100; border: 1px solid #F5DB8F; font-weight: 700; font-size: .9rem; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 12px; text-align: center; color: var(--ink); font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: var(--shadow-sm); transition: all .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #FFD2B0; }
.tile i { width: 52px; height: 52px; border-radius: 16px; background: var(--soft-orange); color: var(--orange); display: grid; place-items: center; font-size: 1.3rem; }
.action-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.danger-zone { border: 1.5px dashed #F3B4B4; background: #FFF8F8; }
.rank-row { display: grid; grid-template-columns: 1fr 1fr 150px 42px; gap: 8px; align-items: center; }
.svc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.svc-row:last-child { border-bottom: none; }
.service.disabled { opacity: .55; cursor: not-allowed; }
.service.disabled:hover { transform: none; box-shadow: var(--shadow-sm); }
@media (max-width: 960px) { .imp-bar, .maint-bar { margin: 10px 14px 0; } }
@media (max-width: 640px) { .rank-row { grid-template-columns: 1fr 1fr 42px; } .rank-row .rank-key { display: none; } }
/* ---------- كشوفات الحساب ---------- */
.rp-filter .field { min-width: 150px; }
.report { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-sm); }
.rp-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding-bottom: 16px; border-bottom: 3px solid var(--orange); }
.rp-head .rp-app { font-size: 1.3rem; font-weight: 900; }
.rp-title { text-align: center; }
.rp-title h2 { font-size: 1.45rem; }
.rp-meta { text-align: left; line-height: 1.9; color: var(--ink-2); }
.rp-period { margin: 14px 0; padding: 10px 14px; background: var(--surface-2); border-radius: 12px; font-size: .9rem; }
.rp-period i { color: var(--orange); }
.rp-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 18px; margin: 0 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.rp-info dt { font-size: .75rem; color: var(--muted); font-weight: 700; }
.rp-info dd { margin: 0; font-weight: 600; }
.rp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 8px; }
.rp-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; }
.rp-card span { display: block; font-size: .76rem; color: var(--muted); font-weight: 700; }
.rp-card b { font-size: 1.25rem; font-weight: 900; }
.rp-card.green b { color: var(--green); }
.rp-card.red b { color: var(--red); }
.rp-card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.rp-card.dark span { color: #C9B9AE; }
.rp-card.grad { background: var(--grad); color: #fff; border: none; }
.rp-card.grad span { color: rgba(255, 255, 255, .85); }
.rp-sec { margin: 22px 0 10px; font-size: 1.05rem; padding-right: 10px; border-right: 4px solid var(--orange); }
.rp-table { font-size: .84rem; }
.rp-table th, .rp-table td { padding: 8px 10px; }
.rp-table td.num, .rp-table th.num { text-align: left; white-space: nowrap; }
.rp-table tbody tr:nth-child(even) { background: #FFFCF9; }
.rp-table tfoot td { background: var(--soft-orange); border-top: 2px solid var(--orange); padding: 10px; }
.rp-sign { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 10px; font-size: .9rem; flex-wrap: wrap; }
.rp-foot { text-align: center; margin-top: 24px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
@media (max-width: 760px) {
  .report { padding: 16px; }
  .rp-head { grid-template-columns: 1fr; text-align: center; }
  .rp-head .row { justify-content: center; }
  .rp-meta { text-align: center; }
}

/* ---------- الطباعة ---------- */
@page { size: A4; margin: 12mm 10mm; }
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  html, body { background: #fff !important; font-size: 11.5px; }
  .sidebar, .topbar, .bottom-nav, .imp-bar, .maint-bar, .no-print, #toasts, #modal-root, .dropdown { display: none !important; }
  .main { margin: 0 !important; padding: 0 !important; }
  .content { padding: 0 !important; max-width: none !important; }
  .report { border: none; box-shadow: none; padding: 0; border-radius: 0; }
  .rp-head { grid-template-columns: 1fr auto 1fr !important; text-align: initial !important; }
  .rp-meta { text-align: left !important; }
  .rp-cards { grid-template-columns: repeat(4, 1fr); }
  .rp-card { padding: 8px 10px; break-inside: avoid; }
  .rp-card b { font-size: 1.05rem; }
  .table-wrap { overflow: visible !important; }
  .rp-table { font-size: 10px; }
  .rp-table thead { display: table-header-group !important; }
  .rp-table tfoot { display: table-footer-group; }
  .rp-table tr { display: table-row !important; break-inside: avoid; }
  .rp-table td, .rp-table th { display: table-cell !important; padding: 5px 6px !important; border-bottom: 1px solid #eee; }
  .rp-table td::before { display: none !important; }
  .rp-sec { break-after: avoid; }
  .rp-sign { break-inside: avoid; }
  a { color: inherit !important; text-decoration: none !important; }
  .badge { border: 1px solid #ddd; }
}
/* ================= المحلات والتسوق ================= */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); text-align: center; box-shadow: var(--shadow-sm); transition: all .15s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #FFD2B0; }
.cat-tile i { width: 54px; height: 54px; border-radius: 17px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.35rem; box-shadow: var(--shadow-brand); }
.stores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.store-card { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; color: var(--ink); box-shadow: var(--shadow-sm); transition: all .15s; }
.store-card:hover { border-color: #FFC9A0; box-shadow: var(--shadow); }
.store-card.closed { opacity: .7; }
.store-logo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex-shrink: 0; background: var(--soft-orange); }
.store-logo.ph { display: grid; place-items: center; color: var(--orange); font-size: 1.5rem; }
.store-logo.sm { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
.store-logo.lg { width: 88px; height: 88px; border-radius: 22px; font-size: 2rem; }
.store-hero { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.sh-cover { height: 150px; background: var(--grad) center/cover no-repeat; }
.sh-body { display: flex; gap: 16px; align-items: flex-end; padding: 0 20px 18px; margin-top: -44px; flex-wrap: wrap; }
.sh-body .store-logo { border: 4px solid #fff; box-shadow: var(--shadow); }
.sh-body h1 { font-size: 1.5rem; }
.sec-chips { position: sticky; top: calc(var(--topbar) + 4px); z-index: 6; background: var(--bg); padding: 8px 0; overflow-x: auto; flex-wrap: nowrap; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); transition: all .15s; display: flex; flex-direction: column; }
.product-card:hover { border-color: #FFC9A0; box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card.off { opacity: .55; }
.pc-img { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; color: #E3CFBF; font-size: 2rem; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.pc-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-price { color: var(--orange); }
.pc-add { width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.cart-bar { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); background: var(--ink); color: #fff; border-radius: 18px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; z-index: 35; box-shadow: var(--shadow-lg); }
.cart-bar:hover { color: #fff; }
.cb-count { width: 34px; height: 34px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; font-weight: 900; }
.cart-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-item img, .cart-item .pi-ph { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.counter.sm { height: 36px; }
.counter.sm button { width: 32px; }
.counter.sm input { width: 34px; font-size: .9rem; }
.pi-ph { display: grid; place-items: center; background: var(--soft-orange); color: var(--orange); }
.part-card { border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 10px; background: var(--surface-2); }
.part-card:last-child { margin-bottom: 0; }
.part-items { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.part-item { display: flex; gap: 10px; align-items: center; font-size: .9rem; }
.part-item img, .part-item .pi-ph { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.free-text { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px dashed var(--orange-3); font-size: .9rem; white-space: pre-wrap; }
.store-order { cursor: pointer; }
.store-order.new { border: 2px solid var(--orange); box-shadow: 0 0 0 5px rgba(255, 107, 0, .1), var(--shadow); }
.service.t-store .s-icon { background: var(--grad); color: #fff; }
.zone-tip { background: rgba(30, 23, 20, .8) !important; color: #fff !important; border: none !important; border-radius: 8px !important; font-family: var(--font) !important; font-weight: 700; box-shadow: none !important; }
.zone-tip::before { display: none; }

/* ================= المحادثة الصوتية ================= */
.voice-btn { border: none; background: rgba(255, 255, 255, .25); color: inherit; border-radius: 20px; padding: 6px 12px; cursor: pointer; font: inherit; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.msg:not(.mine) .voice-btn { background: var(--soft-orange); color: var(--orange); }
.voice-audio { width: 220px; max-width: 100%; height: 36px; }
.rec-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 12px; border-radius: 14px; background: var(--soft-red); }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); animation: ring 1s infinite; }

/* ================= البحث والملاحظات والتنبيهات ================= */
.tb-search { position: relative; display: flex; align-items: center; }
.tb-search i { position: absolute; right: 12px; color: var(--muted); font-size: .85rem; }
.tb-search input { height: 40px; width: 280px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 34px 0 12px; font: inherit; font-size: .85rem; background: #fff; outline: none; }
.tb-search input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 0, .12); }
.tb-search-m { display: none; }
.fb-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fb-row:last-child { border-bottom: none; }
.alert-card.open { border: 2px solid var(--red); box-shadow: 0 0 0 4px rgba(229, 37, 42, .08), var(--shadow); }
@media (max-width: 960px) {
  .tb-search { display: none; }
  .tb-search-m { display: grid; }
  .cart-bar { bottom: calc(var(--bottom-nav) + var(--safe-b) + 10px); }
}
@media (max-width: 640px) {
  .stores-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pc-body { padding: 8px 10px 10px; font-size: .88rem; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cat-tile i { width: 46px; height: 46px; font-size: 1.15rem; }
  .sh-cover { height: 110px; }
}
@media print { .cart-bar { display: none !important; } }
.picked-acc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--soft-green); border: 1px solid #C9EED8; }
.search-results .sr .avatar { flex-shrink: 0; }

/* خانة الرمز الموحدة (متوافقة مع كل الجوالات) */
.otp input.otp-single, .otp-single { width: 100%; max-width: 300px; height: 66px; margin: 0 auto; display: block; text-align: center; direction: ltr; font-size: 2rem; font-weight: 900; letter-spacing: .55em; padding: 0 0 0 .55em; border: 2px solid var(--line-2); border-radius: 16px; background: #fff; color: var(--ink); outline: none; font-family: var(--font); -webkit-user-select: text; user-select: text; }
.otp-single::placeholder { color: #E3D3C6; letter-spacing: .55em; }
.otp input.otp-single:focus, .otp-single:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 107, 0, .14); }
.otp input.otp-single.filled, .otp-single.filled { border-color: var(--green); background: var(--soft-green); }
input, textarea { -webkit-user-select: text; user-select: text; }
/* لوحة أرقام رمز التسليم */
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 300px; margin-inline: auto; direction: ltr; }
.numpad button { height: 56px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; font: inherit; font-size: 1.4rem; font-weight: 800; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.numpad button:active { background: var(--soft-orange); border-color: var(--orange); transform: scale(.96); }
.numpad .np-ok { background: var(--grad); color: #fff; border: none; }

.rating-big { font-size: 2.6rem; margin-top: 8px; line-height: 1.2; }

/* الشروط وسياسة الخصوصية */
.legal-list { padding-right: 22px; margin: 0; display: flex; flex-direction: column; gap: 14px; line-height: 1.9; }
.legal-list li::marker { color: var(--orange); font-weight: 900; }
.legal-list b { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.legal-list p { margin: 0; white-space: pre-wrap; color: var(--ink-2); }
.clause { border-right: 4px solid var(--orange); }
.clause-no { color: var(--orange); }

/* التطبيق المثبت على الجوال */
@media (display-mode: standalone) {
  .topbar { padding-top: env(safe-area-inset-top, 0px); height: calc(var(--topbar) + env(safe-area-inset-top, 0px)); }
  body { overscroll-behavior-y: contain; }
}

/* ربط واتساب */
.wa-card { padding: 14px; }
.wa-qr { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.wa-qr img { width: 300px; max-width: 100%; aspect-ratio: 1; background: #fff; padding: 6px; border-radius: 12px; border: 2px solid #25D366; image-rendering: pixelated; }
.wa-qr ol { margin: 0; padding-inline-start: 20px; line-height: 2; flex: 1 1 200px; }
.wa-alt { border-top: 1px dashed var(--line, #ddd); padding-top: 12px; }
.wa-pair { text-align: center; }
.wa-pair ol { text-align: start; display: inline-block; margin: 8px 0 0; line-height: 2; }
.wa-code { font-size: 2.2rem; font-weight: 800; letter-spacing: 6px; color: #128C7E; background: #E9FBEF; border: 2px dashed #25D366; border-radius: 14px; padding: 10px 18px; display: inline-block; margin-top: 6px; font-family: ui-monospace, Consolas, monospace; }

/* الأجرة بالاتفاق */
.fare-pending { display: flex; gap: 12px; align-items: flex-start; background: #FFF6EC; border: 1.5px dashed #FF9A1F; border-radius: 12px; padding: 12px 14px; }
.fare-pending > i { color: #FF6B00; font-size: 1.5rem; margin-top: 2px; }
/* زر تبديل نوع الخريطة */
.map-mode { background: #fff; border: 0; border-radius: 10px; padding: 8px 12px; font: inherit; font-size: .85rem; font-weight: 700; color: #1E1714; box-shadow: 0 2px 10px rgba(0,0,0,.25); cursor: pointer; display: flex; gap: 6px; align-items: center; }
.map-mode i { color: #FF6B00; }
/* أسماء الشوارع فوق صور القمر الصناعي */
.map-blend { mix-blend-mode: multiply; filter: contrast(1.25) saturate(1.3); }

.map-warn { background: #FFF3CD; color: #7A5200; border-radius: 10px; padding: 6px 10px; font-size: .78rem; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.2); max-width: 240px; }
