/* Miqwad design tokens — original palette: deep teal + saffron on warm paper. */
:root {
  --brand: #0f766e; --brand-600: #0d665f; --brand-50: #e8f4f2; --brand-ink: #0b4f4a;
  --accent: #c9790a; --accent-50: #fbf1e1;
  --bg: #f5f6f3; --surface: #ffffff; --surface-2: #fafbf9; --line: #e2e6e1; --line-2: #eef1ed;
  --ink: #1b2422; --ink-2: #3b4643; --muted: #6b7672; --faint: #9aa4a0;
  --ok: #15803d; --ok-50: #e7f5ec; --info: #1d5fa8; --info-50: #e8f0fa; --warn: #b45309; --warn-50: #fdf2e2; --danger: #b42318; --danger-50: #fdecea;
  --radius: 10px; --radius-lg: 14px; --shadow: 0 1px 2px rgba(16,24,20,.05), 0 2px 8px rgba(16,24,20,.04); --shadow-lg: 0 12px 40px rgba(16,24,20,.18);
  --font: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --side: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #2bb3a3; --brand-600: #3cc3b3; --brand-50: #12302d; --brand-ink: #9fe3da; --accent: #f0a53a; --accent-50: #3a2a12;
    --bg: #0f1413; --surface: #161c1b; --surface-2: #1b2221; --line: #2a3331; --line-2: #222a28;
    --ink: #e8eeec; --ink-2: #c3ccc9; --muted: #93a09b; --faint: #6a7673;
    --ok: #4ade80; --ok-50: #11291b; --info: #7cb4f5; --info-50: #13243a; --warn: #f5b25a; --warn-50: #33240f; --danger: #f87171; --danger-50: #3a1616;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #2bb3a3; --brand-600: #3cc3b3; --brand-50: #12302d; --brand-ink: #9fe3da; --accent: #f0a53a; --accent-50: #3a2a12;
  --bg: #0f1413; --surface: #161c1b; --surface-2: #1b2221; --line: #2a3331; --line-2: #222a28;
  --ink: #e8eeec; --ink-2: #c3ccc9; --muted: #93a09b; --faint: #6a7673;
  --ok: #4ade80; --ok-50: #11291b; --info: #7cb4f5; --info-50: #13243a; --warn: #f5b25a; --warn-50: #33240f; --danger: #f87171; --danger-50: #3a1616;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.6 var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 600; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 16px; }
p { margin: 0 0 8px; }
small, .muted { color: var(--muted); }
.ic { flex: none; vertical-align: middle; }
.num, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--surface-2); border-color: var(--faint); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-600); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--line-2); }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn.lg { height: 46px; padding: 0 20px; font-size: 16px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.loading { color: transparent !important; position: relative; }
.btn.loading::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid #fff; border-inline-end-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn:not(.primary):not(.danger):not(.accent).loading::after { border-color: var(--ink); border-inline-end-color: transparent; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; background: transparent; color: var(--ink-2); border-radius: 8px; cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--line-2); }
.badge { position: absolute; inset-block-start: 2px; inset-inline-end: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; line-height: 17px; text-align: center; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field small { font-size: 12px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); height: 40px; padding: 0 12px; width: 100%; min-width: 0; }
textarea { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.money-in { position: relative; }
.money-in input { padding-inline-end: 48px; text-align: start; direction: ltr; }
.money-in i { position: absolute; inset-inline-end: 12px; inset-block-start: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 13px; pointer-events: none; }
[dir=rtl] .money-in input { text-align: right; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; } .span-all { grid-column: 1 / -1; }
.form-error { color: var(--danger); background: var(--danger-50); padding: 8px 12px; border-radius: 8px; margin: 0 20px 12px; font-size: 14px; }
.section-title { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; margin: 6px 0 -4px; grid-column: 1 / -1; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip-ok { background: var(--ok-50); color: var(--ok); } .chip-info { background: var(--info-50); color: var(--info); }
.chip-warn { background: var(--warn-50); color: var(--warn); } .chip-danger { background: var(--danger-50); color: var(--danger); }
.chip-muted { background: var(--line-2); color: var(--muted); } .chip-brand { background: var(--brand-50); color: var(--brand-ink); }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 6px; background: var(--line-2); color: var(--ink-2); margin-inline-end: 4px; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--surface); border-inline-end: 1px solid var(--line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 14px 12px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 700; font-size: 18px; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; color: #fff; flex: none; }
.brand small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: -2px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; text-decoration: none; }
.nav a:hover { background: var(--line-2); }
.nav a.on { background: var(--brand-50); color: var(--brand-ink); }
.nav a.on .ic { color: var(--brand); }
.nav .grp { font-size: 11px; font-weight: 600; color: var(--faint); padding: 14px 10px 4px; }
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; min-height: 58px; }
.topbar .search { flex: 1; max-width: 420px; position: relative; }
.topbar .search input { padding-inline-start: 36px; height: 38px; background: var(--surface-2); }
.topbar .search .ic { position: absolute; inset-inline-start: 10px; top: 9px; color: var(--muted); }
.topbar .spacer { flex: 1; }
.me { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.content { padding: 22px 24px 48px; max-width: 1360px; width: 100%; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.menu-btn { display: none; }

/* ---------- cards & tables ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.card > header h2, .card > header h3 { font-size: 15px; }
.card .pad { padding: 16px 18px; }
.cards { display: grid; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { padding: 16px 18px; }
.kpi .label { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 24px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 12px; margin-top: 2px; }
.up { color: var(--ok); } .down { color: var(--danger); }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: start; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr.link { cursor: pointer; }
.t tbody tr.link:hover td { background: var(--surface-2); }
.t .end { text-align: end; }
.t tfoot td { font-weight: 600; background: var(--surface-2); border-top: 1px solid var(--line); }
.t .sub { color: var(--muted); font-size: 12.5px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.filters input, .filters select { width: auto; height: 36px; }
.filters input[type=search] { min-width: 220px; }
.seg { display: inline-flex; background: var(--line-2); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a, .seg button { padding: 5px 12px; border-radius: 7px; color: var(--ink-2); font-size: 13.5px; border: 0; background: transparent; cursor: pointer; font: inherit; text-decoration: none !important; }
.seg .on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-weight: 500; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; font-weight: 500; }
.tabs a.on { color: var(--brand); border-color: var(--brand); }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; font-weight: 500; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; }
.between { justify-content: space-between; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 11px 18px; border-bottom: 1px solid var(--line-2); display: flex; gap: 10px; align-items: center; }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); }
.dot.danger { background: var(--danger); } .dot.warning { background: var(--warn); } .dot.success { background: var(--ok); } .dot.info { background: var(--info); }
.sum { font-size: 14px; }
.sum div { display: flex; justify-content: space-between; padding: 5px 0; }
.sum .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 16px; }
.sum .neg { color: var(--ok); }
.alert { padding: 10px 14px; border-radius: var(--radius); font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.alert.warn { background: var(--warn-50); color: var(--warn); } .alert.danger { background: var(--danger-50); color: var(--danger); } .alert.info { background: var(--info-50); color: var(--info); } .alert.ok { background: var(--ok-50); color: var(--ok); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); margin: 10px 0 4px; }
.empty .ic { color: var(--faint); }
.loading-box { display: grid; place-items: center; padding: 60px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fatal { max-width: 460px; margin: 15vh auto; text-align: center; padding: 20px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding-inline-start: 22px; padding-bottom: 14px; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.timeline li::after { content: ''; position: absolute; inset-inline-start: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.photos { display: flex; gap: 6px; flex-wrap: wrap; }
.photos img { width: 74px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.fuel-scale { display: flex; gap: 3px; direction: ltr; }
.fuel-scale label { flex: 1; }
.fuel-scale input { display: none; }
.fuel-scale span { display: block; height: 26px; border-radius: 4px; background: var(--line-2); border: 1px solid var(--line); cursor: pointer; text-align: center; font-size: 11px; line-height: 24px; color: var(--muted); }
.fuel-scale input:checked ~ span, .fuel-scale label.fill span { background: var(--brand); border-color: var(--brand); color: #fff; }
.car-thumb { width: 44px; height: 32px; border-radius: 6px; background: var(--brand-50); display: grid; place-items: center; color: var(--brand); flex: none; overflow: hidden; }
.car-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 11px var(--font); fill: var(--muted); }
.chart .grid-line { stroke: var(--line-2); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; }
.bar-mini { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; min-width: 60px; }
.bar-mini > i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.ring { position: relative; width: 120px; height: 120px; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; }

/* ---------- calendar ---------- */
.cal { overflow-x: auto; }
.cal-grid { display: grid; min-width: 900px; font-size: 12.5px; }
.cal-grid .hd { position: sticky; top: 0; background: var(--surface-2); color: var(--muted); text-align: center; padding: 6px 2px; border-bottom: 1px solid var(--line); border-inline-start: 1px solid var(--line-2); }
.cal-grid .hd.today { color: var(--brand); font-weight: 600; }
.cal-grid .car { padding: 8px 12px; border-bottom: 1px solid var(--line-2); background: var(--surface); position: sticky; inset-inline-start: 0; z-index: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-grid .cell { border-bottom: 1px solid var(--line-2); border-inline-start: 1px solid var(--line-2); min-height: 40px; }
.cal-grid .cell.we { background: var(--surface-2); }
.cal-bar { margin: 6px 2px; border-radius: 6px; padding: 3px 8px; font-size: 12px; color: #fff; background: var(--info); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; z-index: 1; text-decoration: none !important; display: block; }
.cal-bar.pending { background: var(--accent); } .cal-bar.closed { background: var(--faint); } .cal-bar.maint { background: var(--warn); }

/* ---------- modal & toast ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(10,16,14,.45); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .15s; }
.modal { background: var(--surface); border-radius: var(--radius-lg); width: 520px; max-width: 100%; max-height: calc(100vh - 32px); display: flex; box-shadow: var(--shadow-lg); }
.modal.wide { width: 760px; }
.modal form { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.modal-body { padding: 18px 20px; overflow-y: auto; display: grid; gap: 14px; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line-2); }
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; inset-block-end: 20px; inset-inline-start: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 200; }
[dir=rtl] #toasts { transform: translateX(50%); }
.toast { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 14px; transition: opacity .3s, transform .3s; max-width: 90vw; }
.toast-error { background: var(--danger); color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: var(--brand-ink); color: #e9f6f4; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art h1 { font-size: 34px; color: #fff; max-width: 440px; line-height: 1.35; }
.auth-art p { color: #b9dfda; max-width: 420px; }
.auth-art ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.auth-art li { display: flex; gap: 10px; align-items: center; }
.auth-art li .ic { color: var(--accent); }
.auth-form { display: grid; place-items: center; padding: 32px 20px; }
.auth-form .box { width: 100%; max-width: 400px; display: grid; gap: 14px; }
.demo-hint { font-size: 13px; background: var(--accent-50); color: var(--warn); padding: 10px 12px; border-radius: 8px; }

/* ---------- print ---------- */
.doc { background: #fff; color: #111; max-width: 820px; margin: 24px auto; padding: 36px 40px; border-radius: 6px; box-shadow: var(--shadow); font-size: 13.5px; }
.doc h1 { font-size: 20px; } .doc .muted { color: #555; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.doc th, .doc td { border: 1px solid #d4d4d4; padding: 6px 9px; text-align: start; }
.doc th { background: #f3f4f3; font-weight: 600; }
.doc .head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #111; padding-bottom: 12px; margin-bottom: 14px; gap: 20px; }
.doc .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; }
.doc .sign div { border-top: 1px solid #999; padding-top: 6px; text-align: center; color: #555; }
.doc-bar { display: flex; gap: 8px; justify-content: center; padding: 14px; }
@media print {
  body { background: #fff; }
  .doc-bar, .side, .topbar, #toasts { display: none !important; }
  .doc { box-shadow: none; margin: 0; max-width: none; padding: 0; }
  @page { margin: 14mm; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 270px; z-index: 50; transform: translateX(-105%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  [dir=rtl] .side { transform: translateX(105%); }
  .side.open { transform: none !important; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 8px 16px; }
  .topbar .search { display: none; }
  .content { padding: 16px 16px 40px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; }
  .auth { grid-template-columns: 1fr; } .auth-art { display: none; }
  .me span { display: none; }
}
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi .value { font-size: 19px; } .kpi { padding: 12px; } }
.cal-bar.overdue { background: var(--danger); }

/* ================= booking site ================= */
.site { --brand: var(--site-brand, #0f766e); min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.site-nav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-nav .in, .site .wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; width: 100%; }
.site-nav .in { display: flex; align-items: center; gap: 18px; height: 66px; }
.site-nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none !important; }
.site-nav .logo img { height: 40px; max-width: 120px; object-fit: contain; }
.site-nav .logo .mark { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 18px; }
.site-nav nav { display: flex; gap: 4px; }
.site-nav nav a { padding: 8px 12px; color: var(--ink-2); border-radius: 8px; text-decoration: none !important; }
.site-nav nav a:hover { background: var(--line-2); }
.site-nav .grow { flex: 1; }
.site-hero { background: linear-gradient(160deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, #000) 100%); color: #fff; padding: 64px 0 96px; position: relative; overflow: hidden; }
.site-hero::after { content: ''; position: absolute; inset-inline-end: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(255,255,255,.06); }
.site-hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.25; max-width: 640px; color: #fff; }
.site-hero p { color: rgba(255,255,255,.82); font-size: 17px; max-width: 560px; margin-top: 12px; }
.search-box { background: var(--surface); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px; display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 12px; align-items: end; margin-top: -56px; position: relative; z-index: 2; }
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.car-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none !important; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.car-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.car-card .pic { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--surface-2), var(--line-2)); display: grid; place-items: center; color: var(--faint); }
.car-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.car-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.car-card .specs { display: flex; gap: 12px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.car-card .specs span { display: inline-flex; gap: 4px; align-items: center; }
.car-card .price { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; }
.car-card .price b { font-size: 20px; color: var(--brand); }
.car-card.na { opacity: .55; }
.site-sec { padding: 48px 0; }
.site-sec h2 { font-size: 24px; margin-bottom: 18px; }
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.feat .ic { color: var(--brand); }
.feat b { display: block; margin: 8px 0 4px; }
.site-foot { margin-top: auto; background: var(--surface); border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.powered { font-size: 12px; color: var(--faint); }
.booking { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; padding: 28px 0 60px; }
.otp-input { letter-spacing: 8px; font-size: 22px; text-align: center; direction: ltr; height: 52px; }
.steps { display: flex; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.steps span { display: flex; align-items: center; gap: 6px; }
.steps i { width: 22px; height: 22px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; font-style: normal; font-size: 12px; }
.steps .on i { background: var(--brand); color: #fff; }
.pay-page { max-width: 460px; margin: 6vh auto; padding: 0 16px; }
.card-input { direction: ltr; letter-spacing: 1px; }
@media (max-width: 900px) {
  .search-box { grid-template-columns: 1fr 1fr; } .search-box button { grid-column: 1 / -1; }
  .feat { grid-template-columns: 1fr 1fr; } .booking { grid-template-columns: 1fr; }
  .site-nav nav { display: none; }
}
@media (max-width: 520px) { .search-box { grid-template-columns: 1fr; } .feat { grid-template-columns: 1fr; } .site-hero { padding: 40px 0 84px; } }

/* ================= mobile staff app ================= */
.mapp { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 84px; }
.mapp-top { position: sticky; top: 0; z-index: 10; background: var(--brand); color: #fff; padding: calc(12px + env(safe-area-inset-top)) 16px 14px; display: flex; align-items: center; gap: 10px; }
.mapp-top h1 { font-size: 18px; color: #fff; flex: 1; }
.mapp-top .icon-btn { color: #fff; }
.mapp-top .icon-btn:hover { background: rgba(255,255,255,.15); }
.mapp-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.mtabs { position: fixed; bottom: 0; inset-inline: 0; background: var(--surface); border-top: 1px solid var(--line); display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); z-index: 30; }
.mtabs .in { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 560px; }
.mtabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; font-size: 11.5px; color: var(--muted); text-decoration: none !important; position: relative; }
.mtabs a.on { color: var(--brand); }
.mtabs .badge { inset-inline-end: calc(50% - 22px); top: 4px; }
.mstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mstat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.mstat b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.mstat span { color: var(--muted); font-size: 12.5px; }
.mcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none !important; }
.mcard .grow { flex: 1; min-width: 0; }
.mcard .t1 { font-weight: 600; }
.mcard .t2 { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msec { font-size: 13px; font-weight: 600; color: var(--muted); margin: 6px 2px -4px; }
.mactions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
details summary::marker { color: var(--brand); }
[dir=rtl] .mcard > .ic:last-child { transform: scaleX(-1); }
.car-card .price > span { white-space: nowrap; }
.car-card .price { gap: 8px; flex-wrap: wrap; }
